:root {
  --navy-900: #070d24;
  --navy-800: #0b1330;
  --navy-700: #101a42;
  --navy-600: #16214f;
  --line: rgba(255,255,255,0.08);
  --text: #eef0fb;
  --text-dim: #a7adc9;
  --accent: #5b6ef5;
  --accent-text: #6d80ff;
  --accent-badge: #5568ef;
  --accent-2: #8b5cf6;
  --mint: #6ee7b7;
  --radius: 20px;
  --container: 1160px;
  --glow-accent: rgba(91,110,245,0.32);
  --glow-accent-strong: rgba(91,110,245,0.5);
  font-size: 16px;

  /* Spacing scale (8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Type scale */
  --text-xs: 12.5px;
  --text-sm: 14.5px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 24px;
  --text-xl: 32px;
  --text-2xl: 40px;
  --text-3xl: 52px;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
/* Slightly darker than the brand accent so white text passes 4.5:1 (5.1+) */
.btn-primary { background: linear-gradient(135deg, #4f5fe8, #7c4ae8); color: #fff; box-shadow: 0 10px 32px var(--glow-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--glow-accent-strong); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
/* Main call-to-action buttons: every few seconds a soft "press" and a ripple ring spreading like a circle on water */
.btn-primary.btn-lg[data-open-quiz] { position: relative; isolation: isolate; animation: btn-press 3.6s ease-in-out infinite; }
.btn-primary.btn-lg[data-open-quiz]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  animation: btn-ripple 3.6s cubic-bezier(.22,.8,.24,1) infinite;
}
.btn-primary.btn-lg[data-open-quiz]:hover { animation: none; }
.btn-primary.btn-lg[data-open-quiz]:hover::after { animation: none; }
@keyframes btn-press { 0%, 72%, 100% { transform: scale(1); } 78% { transform: scale(1.045); } 86% { transform: scale(0.99); } 92% { transform: scale(1); } }
@keyframes btn-ripple {
  0%, 74% { box-shadow: 0 0 0 0 rgba(124,74,232,0); }
  76% { box-shadow: 0 0 0 0 rgba(124,74,232,0.45); }
  100% { box-shadow: 0 0 0 18px rgba(124,74,232,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary.btn-lg[data-open-quiz], .btn-primary.btn-lg[data-open-quiz]::after { animation: none; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; background: transparent; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px;
  background: rgba(11,19,48,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; padding: 0 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a { color: var(--text-dim); font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; padding: 8px 16px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 32px 0 0; overflow: visible; }
.hero::before {
  content: ""; position: absolute; top: -300px; left: 50%; width: 1300px; height: 900px; z-index: 0;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 460px 400px at 28% 40%, rgba(91,110,245,0.4), transparent 68%),
    radial-gradient(ellipse 500px 440px at 70% 32%, rgba(110,231,183,0.22), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: center; align-items: stretch; gap: 56px; }
.hero-copy { position: relative; z-index: 1; flex: 0 1 auto; width: fit-content; max-width: 600px; min-width: 0; padding-bottom: 24px; }
.hero-hint { font-size: 13px; color: var(--text-dim); }

/* Portrait takes width in the row (so the pair centers) but no height: the image is absolute,
   so hero height follows the text and the image's overflow is covered by .trust-section. */
.hero-portrait { position: relative; z-index: 2; flex: 0 0 450px; }
.hero-portrait::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91,110,245,0.38), rgba(110,231,183,0.16) 55%, transparent 75%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
.hero-portrait img {
  position: absolute; top: 0; left: 0; z-index: 1; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}
.hero-portrait-badge {
  position: absolute; z-index: 3; left: -8px; bottom: 30%;
  background: rgba(11,19,48,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.4); white-space: nowrap;
}
.hero-portrait-name { display: block; font-weight: 800; font-size: 14px; color: var(--text); }
.hero-portrait-role { display: block; font-size: 12px; color: var(--mint); font-weight: 600; margin-top: 2px; }

.hero-stats-row { display: flex; gap: var(--space-7); margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stat-item { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: transform .2s ease, background .2s ease; }
.hero-stat-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.04); }
.hero-stat-item .stat-value { font-size: 34px; font-weight: 800; color: var(--mint); font-family: var(--font-heading); transition: text-shadow .2s ease; }
.hero-stat-item:hover .stat-value { text-shadow: 0 0 24px rgba(110,231,183,0.6); }
.hero-stat-item .stat-label { font-size: 13px; color: var(--text-dim); }

.eyebrow { color: var(--mint); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 10px; }
.hero h1 { font-size: 54px; line-height: 1.08; margin-bottom: 10px; letter-spacing: -0.02em; }
.hero h1 span {
  background: linear-gradient(120deg, var(--mint), var(--accent-text)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--mint);
}
.hero-sub { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.hero-actions { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; }
.hero-cta-group { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hero-cta-group .hero-hint { margin: 0; }

.hero-checklist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-checklist li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--text); font-weight: 600; }
.hero-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.hero-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.hero-role-chip {
  font-size: 12.5px; font-weight: 600; color: var(--text-dim); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}

/* Trust section — deliberately light to break up the all-navy page and make logos legible */
.trust-section { position: relative; z-index: 3; background: #f4f6fb; padding: 64px 0 var(--space-7); }
.trust-title { text-align: center; font-size: var(--text-2xl); color: #10163a; margin: 0 0 var(--space-6); }

/* Client grid (e-legion pattern): logo dim at rest; on hover the card lifts, glows and reveals the industry tag */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--space-4); }
.client-card {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 176px;
  padding: var(--space-5) var(--space-5) 48px; background: #fff; border: 1px solid #e2e6f0; border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.client-card img { max-width: 100%; height: auto; opacity: 0.55; transition: opacity .25s ease; }
.client-tag {
  position: absolute; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px;
  max-width: calc(100% - 32px); background: #eef0fe; color: #3444c9; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
.client-card:not(.client-card-cta):hover {
  transform: translateY(-4px); border-color: rgba(91,110,245,0.45);
  box-shadow: 0 16px 40px rgba(91,110,245,0.22), 0 0 0 4px rgba(91,110,245,0.08);
}
.client-card:hover img { opacity: 1; }
.client-card:hover .client-tag { opacity: 1; transform: none; }
/* No hover on touch screens: show everything at full strength */
@media (hover: none) {
  .client-card img { opacity: 1; }
  .client-tag { opacity: 1; transform: none; }
}

/* CTA cell blends in: same white card, button in the tag's soft indigo instead of the loud gradient */
.client-card-cta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: var(--space-5); }
.client-cta-title { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #10163a; }
.client-cta-text { margin: 0 0 var(--space-3); font-size: 14px; color: #4b5169; }
.client-cta-btn { padding: 10px 18px; font-size: 14px; background: #eef0fe; color: #3444c9; transition: background .2s ease, color .2s ease; }
.client-cta-btn:hover { background: #3444c9; color: #fff; }

/* Guarantee */
.guarantee-terms { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.guarantee-terms li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.guarantee-terms li strong { color: var(--text); font-weight: 700; }
.guarantee-terms li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(110,231,183,0.15); color: var(--mint); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Sections */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--navy-600); }
.section-label { color: var(--accent-text); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 10px; }
.section h2 { font-size: 34px; max-width: 720px; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--text); }

/* Light section — deliberate break from the navy field, mirrors .trust-section's contrast role */
.section-light { background: #f4f6fb; color: #333a55; }
/* Team block right after the founder: white, so the founder photo reads as tucked under a new section */
.section-light.section-white { background: #fff; }
/* Founder block: light blue tint, sits between the navy process block and the white team block */
.section-light.founder { background: #e8eefc; }
.section-light .section-label { color: #5b6272; }
.section-light h2, .section-light h3, .section-light h4 { color: #10163a; }
.section-light .lead { color: #333a55; }
.section-light p { color: #4b5169; }
.section-light .btn-ghost { background: rgba(16,22,58,0.06); color: #10163a; }
.section-light .btn-ghost:hover { background: rgba(16,22,58,0.1); }
.section-light .btn-outline { border-color: rgba(16,22,58,0.18); color: #10163a; }
.section-light .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.section-light .team-card h4 { color: #10163a; }
.section-light .team-card p { color: #4b5169; }
.section-light .price-card, .section-light .faq-item {
  background: #fff; border-color: rgba(16,22,58,0.08); box-shadow: 0 8px 24px rgba(16,22,58,0.08);
}

/* About */
/* Sits right under the trust grid (same light background), so only a small top padding.
   The right column stretches to the text column: h2 top to stat cards' bottom. */
#about { padding-top: var(--space-4); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; column-gap: var(--space-7); }
.about-copy { grid-column: 1; grid-row: 1; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
/* Same card language as the trust grid: white card, lift + indigo glow on hover */
.stat-card {
  background: #fff; border: 1px solid #e2e6f0; border-radius: var(--radius); padding: var(--space-5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card:hover {
  transform: translateY(-4px); border-color: rgba(91,110,245,0.45);
  box-shadow: 0 16px 40px rgba(91,110,245,0.22), 0 0 0 4px rgba(91,110,245,0.08);
}
.stat-value { display: block; font-size: 34px; font-weight: 800; color: var(--mint); margin-bottom: 6px; }
.stat-card .stat-value { color: #3444c9; }
.stat-label { font-size: 13.5px; color: var(--text-dim); }
.stat-card .stat-label { color: #4b5169; }

/* Trademark certificate card: the media box is absolutely filled, so the card never sets the row height — the text column does */
.about-doc {
  grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--space-5);
  background: #fff; border: 1px solid #e2e6f0; border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-doc:hover {
  transform: translateY(-4px); border-color: rgba(91,110,245,0.45);
  box-shadow: 0 16px 40px rgba(91,110,245,0.22), 0 0 0 4px rgba(91,110,245,0.08);
}
.about-doc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.about-doc-media { position: relative; flex: 1; min-height: 240px; margin-bottom: var(--space-4); }
.about-doc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 280px; margin: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(16,22,58,0.16));
}
.about-doc-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: #10163a; }
.about-doc-meta { font-size: 13.5px; color: #4b5169; }

/* Social links row under the about grid */
.about-social { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.about-social-label { font-weight: 600; font-size: 15px; color: #10163a; margin-right: var(--space-2); }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  background: #fff; border: 1px solid #e2e6f0; border-radius: 999px; font-weight: 600; font-size: 15px; color: #10163a;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.social-btn svg { flex: none; }
.social-btn:hover {
  transform: translateY(-3px); border-color: rgba(91,110,245,0.45);
  box-shadow: 0 12px 28px rgba(91,110,245,0.2), 0 0 0 4px rgba(91,110,245,0.08);
}
.social-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Process */
/* Route (rodinkahr-style): 4 nodes on one gradient line, each with its own color (--step as "r,g,b").
   Short title + one line of text; step 4 is detailed in the guarantee card below. */
.process-route {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5);
  list-style: none; margin: var(--space-7) 0 0; padding: 0;
}
.process-route::before {
  content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(109,128,255), rgb(167,139,250), rgb(103,232,249), rgb(110,231,183));
  opacity: 0.55;
}
.route-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.route-node {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--navy-800); border: 2px solid rgb(var(--step)); color: rgb(var(--step));
  box-shadow: 0 0 0 6px var(--navy-600), 0 0 28px rgba(var(--step),0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.route-node svg { width: 28px; height: 28px; }
.route-step:hover .route-node { transform: scale(1.08); box-shadow: 0 0 0 6px var(--navy-600), 0 0 40px rgba(var(--step),0.6); }
.route-num { margin: 14px 0 4px; font-family: var(--font-heading); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: rgb(var(--step)); }
.route-step h3 { font-size: 18px; margin: 0 0 4px; }
.route-step p { font-size: 14.5px; margin: 0; max-width: 220px; }

/* Step 4: full-width guarantee card with two plans */
.guarantee-card {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-7); align-items: center;
  margin-top: var(--space-7); padding: 40px; border-radius: 24px; border: 1px solid rgba(110,231,183,0.22);
  background:
    radial-gradient(ellipse 480px 300px at 100% 0%, rgba(110,231,183,0.10), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--navy-800));
}
.guarantee-main h3 { font-size: 24px; margin-bottom: 8px; }
.guarantee-main > p { font-size: 15.5px; margin-bottom: 0; }
.guarantee-main .guarantee-terms { margin-top: var(--space-5); }
.guarantee-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.guarantee-plan {
  display: flex; flex-direction: column; gap: 4px; padding: var(--space-5); border-radius: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.guarantee-plan.is-extended {
  background: rgba(110,231,183,0.06); border-color: rgba(110,231,183,0.45);
  box-shadow: 0 16px 40px rgba(110,231,183,0.10);
}
.plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.plan-badge {
  padding: 2px 10px; border-radius: 999px; background: rgba(110,231,183,0.14); color: var(--mint);
  font-size: 11px; letter-spacing: 0.04em;
}
.plan-value { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); margin-top: 6px; }
.guarantee-num { font-size: 48px; font-weight: 800; line-height: 1; color: var(--text); }
.is-extended .guarantee-num { color: var(--mint); }
.plan-desc { font-size: 15px; font-weight: 600; color: var(--text); }
.plan-note { font-size: 13px; color: var(--text-dim); margin-top: auto; padding-top: var(--space-3); }

/* Closing CTA of the process block: no box, just a centered call to action */
.process-cta { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: var(--space-7); }
.process-cta h3 { font-size: 26px; margin: 0 0 6px; }
.process-cta p { font-size: 15.5px; margin: 0 0 var(--space-5); }

/* Founder */
/* Same cutout as the hero; its bottom slides under the next section (like hero → trust).
   Negative margin keeps the overflow out of the row height; the next section sits above it. */
.section.founder { padding-bottom: 0; }
.founder + .section { position: relative; z-index: 2; }
/* Left: name + portrait. The portrait box flexes to fill the row (row height = text column),
   the photo is contained and pinned to the bottom, overflowing 40px under the next section. */
.founder-grid { display: grid; grid-template-columns: 52% 1fr; gap: var(--space-7); align-items: stretch; }
.founder-side { display: flex; flex-direction: column; margin-bottom: -40px; }
.founder-name { text-align: center; }
.founder-name h2 { margin: 0 auto; max-width: none; }
.founder-portrait { position: relative; flex: 1; min-height: 420px; margin-top: var(--space-4); }
.founder-text { align-self: center; padding: var(--space-4) 0 var(--space-6); }
.founder-text .lead { font-size: 17px; }
.founder-facts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); }
.founder-facts li { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(0,126,114,0.1); color: #006259; }
.founder-principles { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.founder-principles li { position: relative; padding-top: 32px; font-size: 13.5px; line-height: 1.45; color: #4b5169; }
.founder-principles li strong { display: block; margin-bottom: 2px; font-size: 15px; color: #10163a; }
.founder-principles li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #4f5fe8, #7c4ae8);
}

/* Inline callback form (no modal) */
.callback-form { margin-top: var(--space-4); padding: var(--space-5); background: #fff; border: 1px solid #e2e6f0; border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--space-3); }
.callback-title { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: #10163a; }
.callback-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.callback-row .btn { grid-column: 1 / -1; }
.callback-form input[type="text"], .callback-form input[type="tel"] { background: #f4f6fb; border-color: #d9deea; color: #10163a; }
.callback-form input::placeholder { color: #5f667f; }
.callback-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,110,245,0.18); }
.callback-form .checkbox { color: #4b5169; }
.callback-form .checkbox a { color: #3444c9; }
.section-light .form-status { background: rgba(0,126,114,0.1); color: #006259; }
.section-light .form-status.error { background: rgba(197,48,48,0.1); color: #b42323; }
.founder-tg { display: inline-block; margin-top: var(--space-3); font-weight: 600; font-size: 15px; color: #3444c9; }
.founder-tg:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.founder-portrait::before {
  content: ""; position: absolute; top: 6%; left: 50%; width: 90%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91,110,245,0.3), rgba(110,231,183,0.14) 55%, transparent 75%);
  filter: blur(26px); pointer-events: none; z-index: 0;
}
.founder-portrait img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 30px rgba(16,22,58,0.18)); }

/* Niches: equal photo cards. At rest title + count; on hover/focus the photo zooms,
   the overlay deepens and the full role list slides up (grid-rows 0fr -> 1fr). */
.niche-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.niche-card {
  position: relative; height: 300px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--navy-800); box-shadow: 0 8px 24px rgba(0,0,0,0.18); isolation: isolate; outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.niche-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.niche-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7,13,36,0.95) 0%, rgba(7,13,36,0.7) 35%, rgba(7,13,36,0.15) 70%, rgba(7,13,36,0.05) 100%);
  transition: background-color .4s ease;
}
.niche-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5); }
.niche-card h3 { font-size: 20px; margin: 0 0 4px; color: #fff; }
.niche-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mint); max-height: 24px; overflow: hidden; transition: opacity .25s ease, max-height .3s ease; }
.niche-count::after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(110,231,183,0.16); font-size: 13px; }
.niche-roles { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.niche-roles > ul { overflow: hidden; margin: 0; padding: 0; list-style: none; }
.niche-roles li { position: relative; padding: 5px 0 5px 16px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,0.92); }
.niche-roles li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--mint); }
.niche-card:hover, .niche-card:focus-visible { border-color: rgba(110,231,183,0.45); box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 4px rgba(110,231,183,0.08); }
.niche-card:hover img, .niche-card:focus-visible img { transform: scale(1.06); }
.niche-card:hover::after, .niche-card:focus-visible::after { background-color: rgba(7,13,36,0.45); }
.niche-card:hover .niche-roles, .niche-card:focus-visible .niche-roles { grid-template-rows: 1fr; }
.niche-card:hover .niche-count, .niche-card:focus-visible .niche-count { opacity: 0; max-height: 0; }
/* Touch screens have no hover: show the lists right away */
@media (hover: none) {
  .niche-card { height: auto; min-height: 280px; display: flex; align-items: flex-end; }
  .niche-body { position: relative; }
  .niche-card::after { background-color: rgba(7,13,36,0.55); }
  .niche-roles { grid-template-rows: 1fr; }
  .niche-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .niche-card img, .niche-roles, .niche-count { transition: none; }
  .niche-card:hover img, .niche-card:focus-visible img { transform: none; }
}
.profile-cta { text-align: center; margin-top: var(--space-8); }
.profile-cta p { font-size: 18px; color: var(--text); font-weight: 700; }

/* Team: 3 people; experience slides up over the portrait on hover/focus (always shown on touch) */
.section .team-title { max-width: none; margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.team-card { position: relative; text-align: left; outline: none; }
.team-photo { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: var(--space-4); aspect-ratio: 1 / 1; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.8,.24,1); }
.team-avatar-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; font-family: var(--font-heading);
}
/* Overlay covers the square photo area (same width as the card) and pins its text to the bottom */
.team-exp {
  position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-5);
  background: linear-gradient(to top, rgba(11,19,48,0.88) 0%, rgba(11,19,48,0.72) 26%, rgba(11,19,48,0.28) 46%, rgba(11,19,48,0) 66%);
  color: #fff; font-size: 15.5px; font-weight: 500; line-height: 1.45; overflow: hidden;
  opacity: 0; transition: opacity .45s ease;
}
.team-exp-body { transform: translateY(10px); transition: transform .5s cubic-bezier(.22,.8,.24,1); }
.team-exp-label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); }
.team-card:hover .team-exp, .team-card:focus-visible .team-exp { opacity: 1; }
.team-card:hover .team-exp-body, .team-card:focus-visible .team-exp-body { transform: none; }
.team-card:hover .team-photo img, .team-card:focus-visible .team-photo img { transform: scale(1.05); }
.team-card:focus-visible .team-photo { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: none) { .team-exp { opacity: 1; } .team-exp-body { transform: none; } }
@media (prefers-reduced-motion: reduce) { .team-exp, .team-exp-body, .team-photo img { transition: none; } .team-card:hover .team-photo img { transform: none; } }
.team-card h4 { font-size: 18px; margin-bottom: 2px; }
.team-card p { font-size: 14px; margin: 0; }

/* Prices */
/* Prices: same card language as the rest (lift + tier-colored glow, same easing);
   each tier has its own color (--tier "r,g,b"), like the process steps */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); align-items: stretch; }
.price-card {
  --tier: 109,128,255; position: relative; display: flex; flex-direction: column; padding: var(--space-6);
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 24px;
  transition: transform .3s cubic-bezier(.22,.8,.24,1), box-shadow .3s ease, border-color .3s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(var(--tier),0.45); box-shadow: 0 20px 44px rgba(var(--tier),0.18), 0 0 0 4px rgba(var(--tier),0.06); }
/* Featured: gradient ring (indigo -> mint) instead of a flat border */
.price-card-featured {
  border: 1.5px solid transparent;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-700)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2) 45%, var(--mint)) border-box;
  box-shadow: 0 18px 44px rgba(91,110,245,0.22);
}
.price-card-featured:hover { border-color: transparent; box-shadow: 0 24px 54px rgba(139,92,246,0.3); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--accent-badge), #6d3fe0); box-shadow: 0 8px 20px rgba(91,110,245,0.35);
}
.price-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.price-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--tier),0.14); border: 1px solid rgba(var(--tier),0.25); color: rgb(var(--tier)); flex: none; }
.price-icon svg { width: 22px; height: 22px; }
.price-card h3 { font-size: 22px; margin: 0; }
.price-value { display: flex; align-items: baseline; gap: 6px; margin: 0; line-height: 1; font-family: var(--font-heading); color: var(--text); }
.price-from { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.price-num { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.price-cur { font-size: 26px; font-weight: 700; color: rgb(var(--tier)); }
.price-note { margin: 6px 0 var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }
.price-checklist { list-style: none; margin: 0 0 var(--space-5); padding: 0; flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.price-checklist li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text); }
.price-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(var(--tier),0.15); color: rgb(var(--tier)); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.price-guarantee { margin: 0 0 var(--space-5); padding: 10px 12px; border-radius: 12px; background: rgba(110,231,183,0.08); font-size: 13px; line-height: 1.45; color: var(--text); }
.price-guarantee a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.price-card .btn { width: 100%; }

/* Reviews */
/* Reviews (white): video reviews as light covers -> Rutube player in a modal; text quotes below */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.video-card { display: flex; flex-direction: column; gap: var(--space-4); }
.video-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: #10163a; box-shadow: 0 14px 34px rgba(16,22,58,0.12);
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.8,.24,1), filter .4s ease; }
.video-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,19,48,0.45), rgba(11,19,48,0.05) 55%); transition: background-color .4s ease; }
.video-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 4px; color: #3444c9; background: #fff;
  box-shadow: 0 10px 30px rgba(11,19,48,0.35), 0 0 0 8px rgba(255,255,255,0.25); transition: transform .35s cubic-bezier(.22,.8,.24,1), box-shadow .35s ease;
}
.video-dur { position: absolute; z-index: 1; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(11,19,48,0.72); }
.video-cover:hover img, .video-cover:focus-visible img { transform: scale(1.04); }
.video-cover:hover .video-play, .video-cover:focus-visible .video-play { transform: scale(1.1); box-shadow: 0 14px 36px rgba(11,19,48,0.4), 0 0 0 12px rgba(255,255,255,0.3); }
.video-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-meta { display: flex; align-items: center; gap: var(--space-3); }
.video-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.video-meta h4 { font-size: 16px; margin: 0; }
.video-meta p { font-size: 13.5px; margin: 0; }

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-7) 0 0; padding: 0; list-style: none; }
.quote-card {
  display: flex; flex-direction: column; padding: var(--space-5); border-radius: var(--radius); background: #f4f6fb; border: 1px solid #e8ebf3;
  transition: transform .3s cubic-bezier(.22,.8,.24,1), box-shadow .3s ease, border-color .3s ease;
}
.quote-card:hover { transform: translateY(-4px); border-color: rgba(91,110,245,0.35); box-shadow: 0 14px 34px rgba(16,22,58,0.08); }
.quote-card blockquote { flex: 1; margin: 0 0 var(--space-4); font-size: 15.5px; line-height: 1.55; color: #333a55; }
.quote-author { margin: 0; font-size: 14px; }
.quote-author strong { display: block; color: #10163a; }
.quote-author span { display: block; margin-top: 2px; font-size: 13px; color: #5b6272; }

/* Video modal: fades/scales in; the iframe is created on open and removed on close */
.video-modal { padding: 0; border: 0; background: transparent; max-width: min(960px, 92vw); width: 100%; overflow: visible; }
.video-modal::backdrop { background: rgba(7,13,36,0.8); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.video-modal.is-open::backdrop { opacity: 1; }
.video-modal-box { position: relative; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.22,.8,.24,1); }
.video-modal.is-open .video-modal-box { opacity: 1; transform: none; }
.video-modal-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 26px; line-height: 1; transition: background .2s ease;
}
.video-modal-close:hover { background: rgba(255,255,255,0.26); }
@media (prefers-reduced-motion: reduce) { .video-modal-box, .video-modal::backdrop, .video-cover img, .video-play { transition: none; } }

/* Free consultation as a Telegram-style chat with Evgenia */
.consult-chat { text-align: center; }
.consult-chat h2 { margin-left: auto; margin-right: auto; }
.chat-window {
  max-width: 640px; margin: var(--space-6) auto 0; text-align: left; border-radius: 24px; overflow: hidden;
  background: var(--navy-700); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--navy-700), 0 0 0 4px rgba(110,231,183,0.6); }
.chat-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.chat-status { margin: 2px 0 0; font-size: 13px; color: var(--mint); display: flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(110,231,183,0.8); }
.chat-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 20px 28px; }
.chat-msg {
  max-width: 88%; margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--navy-600);
  color: var(--text); font-size: 15.5px; line-height: 1.5; transition: opacity .35s ease, transform .4s cubic-bezier(.22,.8,.24,1);
}
.chat-msg p { margin: 0; color: var(--text); }
.chat-msg ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.chat-msg li { margin: 2px 0; color: var(--text); }
.chat-msg li::marker { color: var(--mint); }
/* Hidden only once JS has taken over (no-JS users see the messages right away); space stays reserved -> no layout shift */
.chat-body.is-animated .chat-msg:not(.is-shown) { opacity: 0; transform: translateY(8px); }
.chat-typing {
  position: absolute; left: 20px; top: 24px; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 6px;
  background: var(--navy-600); opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.chat-typing.is-typing { opacity: 1; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: chat-dot 1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.chat-tg svg { margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .chat-msg, .chat-typing { transition: none; } .chat-typing span { animation: none; } }

/* Cases (light, editorial): one featured case per view with a dominant hero number,
   then a "board" of short cases as rows. Carousel engine: Embla (see main.js). */
.cases-carousel { margin-top: var(--space-6); }
.cases-viewport { overflow-x: auto; scrollbar-width: none; }
.cases-viewport::-webkit-scrollbar { display: none; }
.cases-viewport.is-embla { overflow: hidden; cursor: grab; touch-action: pan-y pinch-zoom; }
.cases-viewport.is-embla:active { cursor: grabbing; }
.cases-track { display: flex; gap: var(--space-5); }
.case-card {
  flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7);
  padding: 44px; border-radius: 24px; background: #fff; border: 1px solid #e2e6f0; box-shadow: 0 12px 32px rgba(16,22,58,0.06);
}
.case-kicker { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6272; }
.section-light .case-card h3 { font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 6px; color: #10163a; }
.case-role { font-size: 17px; margin: 0 0 var(--space-5); color: #4b5169; }
.case-steps { display: grid; grid-template-columns: 96px 1fr; margin: 0; }
.case-steps dt, .case-steps dd { margin: 0; padding: 12px 0; border-top: 1px solid #e8ebf3; }
.case-steps dt { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3444c9; padding-top: 14px; }
.case-steps dd { font-size: 15.5px; line-height: 1.45; color: #333a55; }
.case-tag { display: inline-block; margin-top: var(--space-4); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(0,126,114,0.1); color: #006259; }
.case-metrics { display: flex; flex-direction: column; justify-content: center; padding-left: var(--space-7); border-left: 1px solid #e8ebf3; }
.case-hero-label { margin: 0; font-size: 14px; font-weight: 600; color: #5b6272; }
.case-hero { margin: 4px 0 0; line-height: 1; color: #10163a; }
.case-hero-num { font-family: var(--font-heading); font-size: 104px; font-weight: 800; letter-spacing: -0.04em; color: #3444c9; }
.case-hero-unit { font-family: var(--font-heading); font-size: 30px; font-weight: 700; }
.case-sec { display: grid; grid-template-columns: 1fr 1fr; margin: var(--space-6) 0 0; padding: var(--space-5) 0 0; list-style: none; border-top: 1px solid #e8ebf3; }
.case-sec li { display: flex; flex-direction: column; }
.case-sec li + li { padding-left: var(--space-5); border-left: 1px solid #e8ebf3; }
.case-sec-num { font-family: var(--font-heading); font-size: 34px; font-weight: 800; line-height: 1.1; color: #10163a; }
.case-sec-label { font-size: 13.5px; color: #5b6272; }

.cases-controls { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-5); }
.cases-counter { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: #5b6272; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cases-counter span { color: #10163a; }
.cases-progress { flex: 1; height: 4px; border-radius: 2px; background: #e2e6f0; overflow: hidden; }
.cases-progress span { display: block; height: 100%; width: 100%; border-radius: 2px; background: #3444c9; transform-origin: left; transform: scaleX(0.2); transition: transform .3s ease; }
.cases-arrows { display: flex; gap: var(--space-3); flex-shrink: 0; }
.cases-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #d9deea; background: #fff; color: #10163a;
  font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cases-arrow:hover { background: #3444c9; border-color: #3444c9; color: #fff; }
.cases-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cases-arrow:disabled { opacity: 0.35; cursor: default; }
.cases-arrow:disabled:hover { background: #fff; border-color: #d9deea; color: #10163a; }

.section-light .cases-subtitle { font-size: 24px; margin: var(--space-8) 0 var(--space-4); color: #10163a; }
.cases-board { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e2e6f0; }
.case-row {
  --niche: #047857; display: grid; grid-template-columns: 180px 1.4fr 1fr 1.2fr; align-items: center; gap: var(--space-5);
  padding: 18px 12px; border-bottom: 1px solid #e2e6f0; transition: background .2s ease;
}
.case-row--as { --niche: #6d28d9; }
.case-row--ld { --niche: #3444c9; }
.case-row--mk { --niche: #0e7490; }
.case-row:hover { background: #fff; }
.case-row-when { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--niche); }
.case-row-role strong { display: block; font-size: 16px; color: #10163a; }
.case-row-niche { display: block; margin-top: 2px; font-size: 12.5px; color: #5b6272; }
.case-row-brand { font-size: 14.5px; font-weight: 600; color: #333a55; }
.case-row-stats { font-size: 13.5px; color: #5b6272; text-align: right; }
/* "Show more": height animates via grid-rows 0fr -> 1fr, rows fade in one after another */
.cases-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.22,.8,.24,1); }
.cases-extra.is-open { grid-template-rows: 1fr; }
.cases-extra-inner { overflow: hidden; min-height: 0; }
.cases-board--extra { border-top: 0; }
.cases-board--extra .case-row { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, background .2s ease; }
.cases-extra.is-open .case-row { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms); }
.cases-extra.is-open.is-closing .case-row { opacity: 0; transform: none; transition: opacity .22s ease; transition-delay: 0s; }
.cases-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-5); min-height: 50px; }
.cases-tg { display: none; }
.cases-actions.is-expanded .cases-tg { display: inline-flex; animation: fade-up .45s cubic-bezier(.22,.8,.24,1) .25s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cases-extra, .cases-board--extra .case-row { transition: none; }
  .cases-actions.is-expanded .cases-tg { animation: none; }
}

/* FAQ: two independent columns; answers open/close with a JS height animation (main.js) */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); align-items: start; margin-top: var(--space-6); }
.faq-col { display: flex; flex-direction: column; gap: var(--space-4); }
.faq-item {
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s ease, background-color .3s ease;
}
.faq-item:hover { border-color: rgba(255,255,255,0.16); }
.faq-item[open] { border-color: rgba(110,231,183,0.35); background: var(--navy-600); }
.faq-item summary {
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; border-radius: var(--radius); }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(110,231,183,0.12);
  color: var(--mint); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.22,.8,.24,1), background-color .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: rgba(110,231,183,0.22); }
.faq-answer { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 var(--space-6) var(--space-5); font-size: 15px; color: var(--text-dim); line-height: 1.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
/* Contacts: chat with Evgenia on the left (same component as the consultation block), form on the right */
.contact-head { grid-column: 1 / -1; margin-bottom: calc(-1 * var(--space-6)); }
.chat-window--left { margin: 0; max-width: none; }
.contact-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.contact-list a { font-weight: 700; font-size: 16px; }
.contact-form { background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form h3 { font-size: 20px; }
input, textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--navy-700); color: var(--text); font-family: inherit; font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.checkbox input { width: auto; margin-top: 2px; }
.checkbox a { color: var(--accent-text); text-decoration: underline; }
.form-status { font-size: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(110,231,183,0.12); color: var(--mint); }
.form-status.error { background: rgba(245,91,91,0.12); color: #f58787; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-7) 0 var(--space-5); background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--space-7); margin-bottom: var(--space-6); }
.footer-legal { font-size: 13px; color: var(--text-dim); margin-top: 14px; line-height: 1.6; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--text-dim); }

/* Quiz modal */
.quiz-overlay {
  position: fixed; inset: 0; background: rgba(4,7,20,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
  padding: 24px;
}
.quiz-overlay.open { opacity: 1; visibility: visible; }
.quiz-modal {
  background: var(--navy-700); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.quiz-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-dim); font-size: 28px; cursor: pointer; line-height: 1; }
.quiz-close:hover { color: var(--text); }
.quiz-progress { height: 4px; background: var(--navy-800); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
#quiz-progress-bar { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.quiz-step-label { color: var(--accent); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.quiz-step h3 { font-size: 22px; margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.quiz-options label {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: 14.5px; transition: border-color .15s, background .15s;
}
.quiz-options label:hover { border-color: var(--accent); }
.quiz-options input { width: auto; }
.quiz-options input:checked ~ span { color: var(--mint); font-weight: 700; }
.quiz-options label:has(input:checked) { border-color: var(--accent); background: rgba(91,110,245,0.1); }
.quiz-step input[type="text"], .quiz-step input[type="tel"] { margin-bottom: 14px; }
.quiz-nav { display: flex; gap: 12px; margin-top: 8px; }
.quiz-nav .btn-ghost { flex-shrink: 0; }
.quiz-nav .btn-primary { flex: 1; }
.quiz-step > .btn { width: 100%; margin-top: 4px; }

/* Scroll reveal */
.reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view > * { opacity: 1; transform: translateY(0); }
.reveal.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal.in-view > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .about-grid, .founder-grid, .contact-grid, .guarantee-card { grid-template-columns: 1fr; gap: 32px; }
  /* Portrait goes last so its bottom still slides under the next section */
  /* Phone: name first, then text, then the photo at the bottom (still tucked under the next section) */
  .founder-side { display: contents; }
  .founder-name { order: 0; text-align: left; }
  .founder-name h2 { margin: 0; }
  .founder-text { order: 1; padding: 0; }
  .founder-portrait { order: 2; flex: none; min-height: 0; width: 100%; max-width: 320px; margin: 0 auto -32px; }
  .founder-portrait img { position: relative; height: auto; }
  .about-grid { gap: 0; }
  .about-doc { grid-column: 1; grid-row: 2; margin-top: var(--space-6); }
  .about-doc-media { min-height: 340px; }
  .chat-actions .btn { width: 100%; }
  /* Route turns vertical: line on the left, nodes left, text right */
  .process-route { grid-template-columns: 1fr; gap: var(--space-5); }
  .process-route::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgb(109,128,255), rgb(167,139,250), rgb(103,232,249), rgb(110,231,183)); }
  .route-step { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--space-4); align-items: center; text-align: left; }
  .route-node { grid-row: 1 / span 3; }
  .route-num { margin: 0; }
  .route-step p { max-width: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: var(--space-7); }
  .case-card { grid-template-columns: 1fr; gap: var(--space-5); padding: 32px; }
  .case-metrics { padding: var(--space-5) 0 0; border-left: 0; border-top: 1px solid #e8ebf3; }
  .case-row { grid-template-columns: 130px 1fr 1fr; }
  .case-row-stats { grid-column: 2 / -1; text-align: left; margin-top: -10px; }
  .niche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 40px; }
  .hero { padding: 110px 0 0; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .hero-portrait { order: -1; flex: none; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-portrait img { position: relative; }
  .hero-portrait-badge { left: 50%; transform: translateX(-50%); bottom: 14px; white-space: nowrap; }
  .hero-copy { padding-bottom: 0; margin-top: var(--space-5); width: auto; max-width: 100%; }
  .trust-section { padding-top: 64px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .price-grid, .stats-grid, .niche-grid, .faq-list { grid-template-columns: 1fr; }
  /* Phone: small photo left, name/role/experience as plain text on the right */
  .team-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .team-card { display: grid; grid-template-columns: 112px 1fr; column-gap: var(--space-4); align-items: start; }
  .team-photo { grid-row: 1 / span 3; margin-bottom: 0; }
  .team-avatar-placeholder { font-size: 30px; }
  .team-exp {
    position: static; aspect-ratio: auto; padding: 0; margin-top: var(--space-2); background: none; border-radius: 0;
    opacity: 1; color: #4b5169; font-size: 14px;
  }
  .team-exp-body { transform: none; }
  .team-exp-label { color: #006259; font-size: 12px; }
  .case-card { padding: var(--space-5); }
  .section-light .case-card h3 { font-size: 34px; }
  .case-hero-num { font-size: 76px; }
  .case-steps { grid-template-columns: 80px 1fr; }
  .case-steps dd { font-size: 14.5px; }
  .case-row { grid-template-columns: 96px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px 4px; }
  .case-row-when { grid-row: span 3; font-size: 18px; }
  .case-row-brand, .case-row-stats { grid-column: 2; margin-top: 0; text-align: left; font-size: 13px; }
  .cases-counter { display: none; }
  .video-grid, .quote-grid { grid-template-columns: 1fr; }
  .video-modal-close { top: -50px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats-row { gap: var(--space-5); }
  .quiz-modal { padding: 28px; }
  .guarantee-card { padding: 28px; }
  .chat-msg { max-width: 94%; font-size: 15px; }
  .guarantee-plan { padding: var(--space-4); }
  .guarantee-num { font-size: 40px; }
  .trust-title { font-size: 30px; }
  .callback-row { grid-template-columns: 1fr; }
  .founder-principles { grid-template-columns: 1fr; gap: var(--space-3); }
  .about-social-label { flex-basis: 100%; }
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .client-card { min-height: 140px; padding: var(--space-4) var(--space-4) 44px; }
  .client-card img { max-width: 80%; }
  .client-tag { left: 10px; bottom: 10px; font-size: 12px; padding: 3px 10px; }
  .client-card-cta { padding: var(--space-4); }
  .client-cta-title { font-size: 17px; }
  .client-cta-text { font-size: 13px; }
  .client-cta-btn { padding: 10px 14px; font-size: 13px; white-space: normal; }
}

/* Mobile nav dropdown */
.nav.open {
  display: flex; position: absolute; top: 88px; left: 20px; right: 20px; width: auto;
  flex-direction: column; background: rgba(11,19,48,0.92); backdrop-filter: blur(14px);
  padding: 16px; border: 1px solid var(--line); border-radius: 20px; gap: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.nav.open a { padding: 10px 4px; }
