:root {
  --ink: #15171c;
  --muted: #5c6270;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --accent: #2b54c6;
  --accent-ink: #1d3e9c;
  --accent-soft: #eef2fc;
  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 84px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.lead {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* Hero photo */
.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  z-index: 0;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Stats */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-narrow {
  max-width: 720px;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.section p {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.section p:last-child { margin-bottom: 0; }

.section-intro {
  max-width: 44em;
  margin-top: -8px;
  margin-bottom: 36px !important;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-meta {
  font-size: 0.92rem !important;
  font-weight: 600;
  color: var(--accent) !important;
  margin-bottom: 12px !important;
}

.card-feature .card-meta {
  color: #8fb0ff !important;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 1rem;
  margin-bottom: 0;
}

.card-feature {
  grid-column: span 3;
  background: var(--ink);
  border-color: var(--ink);
}

.card-feature h3 { color: #fff; }

.card-feature p { color: #b9bdc8; max-width: 46em; }

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.card-link {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover { color: var(--accent-ink); }

.card-link-inline {
  margin-top: auto;
  padding-top: 18px;
}

.card-feature .card-link {
  color: #fff;
}

.card-feature .card-link:hover { color: var(--accent-soft); }

/* Certificates */
.cert-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  border-top: 1px solid var(--line);
}

.cert-grid li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.cert-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Services */
.cards.services {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cards.services { grid-template-columns: 1fr; }
}

/* Contacts */
.contacts .btn { margin-top: 10px; }

.contacts-extra {
  margin-top: 22px !important;
  font-size: 0.98rem !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-photo { order: -1; }
  .photo-frame { max-width: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .cards { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { display: none; }
  .hero { padding: 56px 0 52px; }
  .hero-text h1 { font-size: 2.6rem; }
  .lead { font-size: 1.1rem; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 1.85rem; }
  .stat-num { font-size: 2.1rem; }
  .footer-inner { flex-direction: column; }
}
