:root {
  --navy-900: #000a2c;
  --navy-800: #011039;
  --navy-700: #1f2b52;
  --navy-600: #303f70;
  --line: rgba(255,255,255,0.08);
  --text: #eef0fb;
  --text-dim: #a7adc9;
  --accent: #10b981;
  --accent-text: #34d399;
  --accent-badge: #059669;
  --accent-2: #059669;
  --mint: #6ee7b7;
  --radius: 20px;
  --container: 1160px;
  --glow-accent: rgba(16,185,129,0.32);
  --glow-accent-strong: rgba(16,185,129,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: 'Geologica', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) so body doesn't become a scroll container: that silently breaks the sticky header */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
/* Anchored sections land below the floating header */
html { scroll-padding-top: 104px; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  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.02em; }
h2, h3, h4 { text-wrap: balance; }
/* Taps: no 300ms double-tap-zoom wait; our own :active feedback replaces the grey tap flash */
a, button, label, summary, input, textarea, select { touch-action: manipulation; }
.btn, .cases-arrow, .header-phone-mobile, .social-btn, .burger, .quiz-options label, .channel-option, .faq-item summary { -webkit-tap-highlight-color: transparent; }
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, #047857, #059669); color: #fff; box-shadow: 0 10px 32px var(--glow-accent); }
@media (hover: hover) and (pointer: fine) { .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: a soft "press" and a ripple ring spreading like a circle on water.
   main.js adds .is-pulsing when the button comes into view, so each one pulses 3 times and then rests. */
.btn-primary.btn-lg[data-open-quiz] { position: relative; isolation: isolate; }
.btn-primary.btn-lg[data-open-quiz]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
}
.btn-primary.btn-lg[data-open-quiz].is-pulsing { animation: btn-press 3.6s ease-in-out 3; }
.btn-primary.btn-lg[data-open-quiz].is-pulsing::after { animation: btn-ripple 3.6s cubic-bezier(.22,.8,.24,1) 3; }
.btn-primary.btn-lg[data-open-quiz]:hover, .btn-primary.btn-lg[data-open-quiz]:active { animation: none; }
.btn-primary.btn-lg[data-open-quiz]:hover::after, .btn-primary.btn-lg[data-open-quiz]:active::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(16,185,129,0); }
  76% { box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  100% { box-shadow: 0 0 0 18px rgba(16,185,129,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary.btn-lg[data-open-quiz].is-pulsing, .btn-primary.btn-lg[data-open-quiz].is-pulsing::after { animation: none; }
}
/* Press feedback: the button visibly gives under the finger or the mouse */
.btn:active:not(:disabled), .cases-arrow:active:not(:disabled), .header-phone-mobile:active:not(:disabled), .social-btn:active:not(:disabled) {
  transform: scale(0.97); transition-duration: .1s;
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .cases-arrow:active, .header-phone-mobile:active, .social-btn:active { transform: 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;
  /* Frosted glass: see-through + blur. At 0.6 over a white section the effective background is ~#6c7183,
     so all header text is pure white (4.8:1 worst case); dim grey text would drop below 4.5 there */
  background: rgba(1,16,57,0.6); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  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; }
/* Brand logo, cut from the logo artwork so the letters are exact (no webfonts for Cruinn / Acrom).
   Header: icon + #PROYARD at the size of ordinary text. Footer: the full logo exactly as designed. */
.logo-word { display: flex; }
.logo-word img { display: block; width: 122px; height: auto; }
.site-footer .logo-full { display: block; width: 168px; height: auto; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a { color: #fff; font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; padding: 8px 16px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
/* We want messages, not calls: the floating header offers Telegram instead of the phone number */
.header-tg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; white-space: nowrap; color: #fff; }
.header-tg svg { flex: none; display: block; }
.header-tg:hover { color: var(--accent-text); }
.header-hours { font-size: 12px; color: #fff; opacity: 1; white-space: nowrap; }
.nav-contact { display: none; }
.nav-messengers { display: none; }
.header-phone-mobile {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff;
  flex: none; transition: background .15s, transform .15s ease-out;
}
.header-phone-mobile:hover { background: rgba(255,255,255,0.24); }
.header-phone-mobile svg { display: block; }
.header-write { display: none; }
.header-msg {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); transition: background .15s;
}
.header-msg:hover { background: rgba(255,255,255,0.24); }
.footer-hours { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.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(16,185,129,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; }
/* Main page: the first screen has no numbers row (they are in the next block), so the text gets more
   air and sits in the vertical middle next to the portrait */
.hero-copy:not(:has(.hero-stats-row)) { align-self: center; padding: 24px 0 64px; }
.hero-copy:not(:has(.hero-stats-row)) .eyebrow { margin-bottom: 16px; }
.hero-copy:not(:has(.hero-stats-row)) h1 { margin-bottom: 18px; }
.hero-copy:not(:has(.hero-stats-row)) .hero-checklist { margin-top: 20px; gap: 10px; }
.hero-copy:not(:has(.hero-stats-row)) .hero-actions { margin-top: 32px; }
.hero-portrait--mp,
.hero:has(+ #roles) .hero-portrait,
.page-marketplace .hero-portrait {
  flex: 0 0 510px;
}
#roles {
  position: relative;
  z-index: 3;
}
.hero-portrait::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16,185,129,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: 2; 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(1,16,57,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; }

/* Marketplace tiles in hero (desktop > 980px) */
.hero-mp-tile {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}
.hero-mp-tile img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-mp-tile--wb {
  left: -25px;
  top: 150px;
  width: 128px;
  animation: flyout-wb 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) 0.3s both;
}
.hero-mp-tile--wb img {
  animation: mp-float-wb 6s ease-in-out infinite;
}
.hero-mp-tile--ozon {
  right: 10px;
  top: 70px;
  width: 124px;
  animation: flyout-ozon 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) 0.45s both;
}
.hero-mp-tile--ozon img {
  animation: mp-float-ozon 6s ease-in-out infinite;
}

@keyframes flyout-wb {
  0% {
    opacity: 0;
    transform: translate(180px, 110px) scale(0.6) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(-10deg);
  }
}

@keyframes flyout-ozon {
  0% {
    opacity: 0;
    transform: translate(-150px, 150px) scale(0.6) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(8deg);
  }
}

@keyframes mp-float-wb {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mp-float-ozon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Marketplace badges in hero (mobile / tablet <= 980px) */
.hero-mp-badges {
  display: none;
}

.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; }
@media (hover: hover) and (pointer: fine) { .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; }
@media (hover: hover) and (pointer: fine) { .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; font-weight: 800; }
.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-desc { font-size: 15.5px; line-height: 1.5; color: var(--text-dim); margin-bottom: 14px; max-width: 520px; }
.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: #e9edf6; color: #011039; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
@media (hover: hover) and (pointer: fine) { .client-card:not(.client-card-cta):hover {
  transform: translateY(-4px); border-color: rgba(1,16,57,0.35);
  box-shadow: 0 16px 40px rgba(1,16,57,0.16), 0 0 0 4px rgba(1,16,57,0.06);
} }
@media (hover: hover) and (pointer: fine) { .client-card:hover img { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .client-card:hover .client-tag { opacity: 1; transform: none; } }
/* No hover or viewports <= 768px: show client industry tags permanently */
@media (hover: none), (max-width: 768px) {
  .client-card img { opacity: 0.92; }
  .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: #ecfdf5; color: #047857; transition: background .2s ease, color .2s ease; }
.client-cta-btn:hover { background: #047857; color: #fff; }

.client-tag-multiline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 8px;
  padding: 6px 12px;
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
  line-height: 1.35;
  pointer-events: none;
}
.client-tag-niche {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #065f46;
  white-space: normal;
}
.client-tag-marketplaces {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: #4b5169;
  margin-top: 2px;
  white-space: normal;
}
.client-logo-oltex {
  max-width: 145px;
  height: auto;
}

/* 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-900); }
.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 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 h3, .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;
}
@media (hover: hover) and (pointer: fine) { .stat-card:hover {
  transform: translateY(-4px); border-color: rgba(1,16,57,0.35);
  box-shadow: 0 16px 40px rgba(1,16,57,0.16), 0 0 0 4px rgba(1,16,57,0.06);
} }
.stat-unit { font-size: 0.58em; font-weight: 700; letter-spacing: 0; }
.stat-value { display: block; font-size: 34px; font-weight: 800; color: var(--mint); margin-bottom: 6px; }
.stat-card .stat-value { color: #011039; }
.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);
  font-family: inherit; font-size: inherit; text-align: left; cursor: pointer; width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) and (pointer: fine) { .about-doc:hover {
  transform: translateY(-4px); border-color: rgba(1,16,57,0.35);
  box-shadow: 0 16px 40px rgba(1,16,57,0.16), 0 0 0 4px rgba(1,16,57,0.06);
} }
.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-zoom {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(16, 22, 58, 0.88); backdrop-filter: blur(6px); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18); transition: background .2s ease, transform .2s ease;
}
@media (hover: hover) and (pointer: fine) { .about-doc:hover .about-doc-zoom {
  background: #011039;
  transform: translateX(-50%) translateY(-2px);
} }
.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; }
@media (hover: hover) and (pointer: fine) { .social-btn:hover {
  transform: translateY(-3px); border-color: rgba(16,185,129,0.45);
  box-shadow: 0 12px 28px rgba(16,185,129,0.2), 0 0 0 4px rgba(16,185,129,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(52,211,153), rgb(16,185,129), 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-900), 0 0 28px rgba(var(--step),0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.route-node svg { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .route-step:hover .route-node { transform: scale(1.08); box-shadow: 0 0 0 6px var(--navy-900), 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; }
/* The founder portrait slides under the next section: a transparent next section (e.g. FAQ on /marketplace)
   would let it show through, so give it the page background. Light/alt sections keep their own colour. */
.founder + .section:not(.section-light):not(.section-alt) { background-color: var(--navy-800); }
/* 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, #047857, #059669);
}

/* 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(16,185,129,0.18); }
.callback-form .checkbox { color: #4b5169; }
.callback-form .checkbox a { color: #047857; }
.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: #047857; }
.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; }
.show-mobile { display: none; }
@media (max-width: 620px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
}
.founder-portrait::before {
  content: ""; position: absolute; top: 6%; left: 50%; width: 90%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16,185,129,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(0,10,44,0.95) 0%, rgba(0,10,44,0.7) 35%, rgba(0,10,44,0.15) 70%, rgba(0,10,44,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 .3s cubic-bezier(.23,1,.32,1); }
.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-roles a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; transition: color .15s ease; }
.niche-roles a:hover { color: #fff; }
.niche-roles li:has(> .niche-more-link)::before { display: none; }
.niche-roles li:has(> .niche-more-link) { padding-left: 0; margin-top: 4px; }
.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); }
@media (hover: hover) and (pointer: fine) { .niche-card:hover { 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:focus-visible img { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) { .niche-card:hover img { transform: scale(1.06); } }
.niche-card:focus-visible::after { background-color: rgba(0,10,44,0.45); }
@media (hover: hover) and (pointer: fine) { .niche-card:hover::after { background-color: rgba(0,10,44,0.45); } }
.niche-card:focus-visible .niche-roles { grid-template-rows: 1fr; }
@media (hover: hover) and (pointer: fine) { .niche-card:hover .niche-roles { grid-template-rows: 1fr; } }
.niche-card:focus-visible .niche-count { opacity: 0; max-height: 0; }
@media (hover: hover) and (pointer: fine) { .niche-card:hover .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(0,10,44,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; }

/* Marketplace page: positions grid */
.mp-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.mp-role-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 20px;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) { .mp-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
} }
.mp-role-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}
.mp-role-title {
  flex: 1;
  min-width: 0;
}
.mp-role-badge {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.15);
  color: var(--mint);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
@media (max-width: 900px) {
  .mp-roles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .mp-roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mp-role-card { padding: 13px 12px; font-size: 13px; line-height: 1.25; gap: 8px; position: relative; }
  .mp-role-card:has(.mp-role-badge) { padding-top: 22px; }
  .mp-role-badge { position: absolute; top: 5px; right: 8px; font-size: 11px; padding: 2px 6px; margin-left: 0; }
  .mp-role-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mp-role-icon { width: 6px; height: 6px; }
}
@media (max-width: 360px) {
  .mp-roles-grid { gap: 8px; }
  .mp-role-card { padding: 10px 8px; font-size: 12px; gap: 6px; }
  .mp-role-badge { padding: 2px 5px; right: 6px; top: 4px; }
}

/* Light section variations for roles grid */
.section-light .mp-role-card {
  background: #fff;
  border-color: #e2e6f0;
  color: #10163a;
  box-shadow: 0 2px 8px rgba(16, 22, 58, 0.04);
}
@media (hover: hover) and (pointer: fine) {
  .section-light .mp-role-card:hover {
    border-color: rgba(0, 126, 114, 0.35);
    box-shadow: 0 10px 24px rgba(16, 22, 58, 0.08);
  }
}
.section-light .mp-role-icon {
  background: #007e72;
}
.section-light .mp-role-badge {
  background: rgba(0, 126, 114, 0.1);
  color: #007e72;
}
.section-light .profile-cta p {
  color: #4b5169;
}
.roles-verification-divider {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(16, 22, 58, 0.08);
}
@media (max-width: 768px) {
  .roles-verification-divider {
    margin-top: var(--space-7);
    padding-top: var(--space-7);
  }
}

/* Marketplace page: candidate verification section */
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
}
.check-card {
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(16, 22, 58, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) and (pointer: fine) { .check-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 28px rgba(16, 22, 58, 0.08);
} }
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.section-light .check-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  color: #10163a;
}
.section-light .check-card p {
  font-size: 14.5px;
  line-height: 1.45;
  color: #4b5169;
  margin: 0;
}
.check-priority-note {
  margin-top: var(--space-6);
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0, 126, 114, 0.25);
  border-left: 4px solid #007e72;
  border-radius: var(--radius-sm, 10px);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 4px 16px rgba(16, 22, 58, 0.04);
}
.check-priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 126, 114, 0.12);
  color: #007e72;
  flex-shrink: 0;
}
.check-priority-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #10163a;
}
.check-priority-note strong {
  color: #006259;
  font-weight: 700;
}
@media (max-width: 900px) {
  .check-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 620px) {
  .check-grid { gap: var(--space-3); }
  .check-card { padding: var(--space-4); }
  .check-priority-note { padding: 14px 16px; gap: 12px; }
  .check-priority-note p { font-size: 13.5px; line-height: 1.4; }
}

/* Marketplace: spacing between adjacent light sections (clients, roles) */
#clients {
  padding-bottom: 0;
}
#clients + #roles {
  padding-top: 64px;
}
@media (max-width: 768px) {
  #clients + #roles {
    padding-top: 48px;
  }
}

/* Marketplace: hero adjustments for 981-1100px so portrait always extends into #roles */
@media (min-width: 981px) and (max-width: 1100px) {
  .hero:has(+ #roles) .hero-inner,
  .page-marketplace .hero-inner {
    gap: 24px;
  }
  .hero:has(+ #roles) h1,
  .page-marketplace .hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }
  .hero:has(+ #roles) .hero-checklist li,
  .page-marketplace .hero-checklist li {
    font-size: 14px;
  }
  .hero:has(+ #roles) .hero-actions,
  .page-marketplace .hero-actions {
    gap: 10px;
  }
  .hero:has(+ #roles) .hero-actions .btn,
  .page-marketplace .hero-actions .btn {
    padding: 12px 18px;
    font-size: 14.5px;
  }
  .hero:has(+ #roles) .hero-stats-row,
  .page-marketplace .hero-stats-row {
    gap: 14px;
    flex-wrap: nowrap;
  }
  .hero:has(+ #roles) .hero-stat-item .stat-value,
  .page-marketplace .hero-stat-item .stat-value {
    font-size: 28px;
  }
  .hero:has(+ #roles) .hero-stat-item .stat-label,
  .page-marketplace .hero-stat-item .stat-label {
    font-size: 12px;
  }
}

.section .team-title { max-width: none; margin-bottom: 0; }
.team-subtitle {
  margin: var(--space-3) 0 0;
  font-size: 16px;
  color: #4b5169;
  line-height: 1.5;
  max-width: 820px;
}
@media (max-width: 768px) {
  .team-subtitle {
    font-size: 15px;
  }
}
.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-grid:has(> .team-card:last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.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(1,16,57,0.88) 0%, rgba(1,16,57,0.72) 26%, rgba(1,16,57,0.28) 46%, rgba(1,16,57,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:focus-visible .team-exp { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .team-card:hover .team-exp { opacity: 1; } }
.team-card:focus-visible .team-exp-body { transform: none; }
@media (hover: hover) and (pointer: fine) { .team-card:hover .team-exp-body { transform: none; } }
.team-card:focus-visible .team-photo img { transform: scale(1.05); }
@media (hover: hover) and (pointer: fine) { .team-card:hover .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 h3, .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-grid:has(> .price-card:last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; }
.price-card {
  --tier: 52,211,153; position: relative; display: flex; flex-direction: column; padding: var(--space-6);
  background: var(--navy-700); 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;
}
@media (hover: hover) and (pointer: fine) { .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(16,185,129,0.22);
}
@media (hover: hover) and (pointer: fine) { .price-card-featured:hover { border-color: transparent; box-shadow: 0 24px 54px rgba(5,150,105,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), #059669); box-shadow: 0 8px 20px rgba(16,185,129,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-grid--single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.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(1,16,57,0.45), rgba(1,16,57,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: #047857; background: #fff;
  box-shadow: 0 10px 30px rgba(1,16,57,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(1,16,57,0.72); }
.video-cover:focus-visible img { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) { .video-cover:hover img { transform: scale(1.04); } }
.video-cover:focus-visible .video-play { transform: scale(1.1); box-shadow: 0 14px 36px rgba(1,16,57,0.4), 0 0 0 12px rgba(255,255,255,0.3); }
@media (hover: hover) and (pointer: fine) { .video-cover:hover .video-play { transform: scale(1.1); box-shadow: 0 14px 36px rgba(1,16,57,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 h3, .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;
}
@media (hover: hover) and (pointer: fine) { .quote-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,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; display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-avatar--letter { display: inline-flex; align-items: center; justify-content: center; background: #011039; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.quote-who { min-width: 0; }
.quote-author strong { display: block; color: #10163a; }
.quote-who > 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(0,10,44,0.8); backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s ease; }
.video-modal.is-open::backdrop { opacity: 1; transition-duration: .25s; }
/* Opens in .25s, closes faster (.15s): leaving should never feel slower than arriving */
.video-modal-box { position: relative; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .15s ease, transform .15s ease; }
.video-modal.is-open .video-modal-box { opacity: 1; transform: none; transition: opacity .25s ease, transform .25s cubic-bezier(.23,1,.32,1); }
.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.is-open .video-modal-box, .video-modal::backdrop, .video-cover img, .video-play { transition: none; } }

/* Rospatent Certificate Modal */
.cert-modal {
  padding: 0; border: 0; background: transparent;
  max-width: min(860px, 94vw); width: 100%; overflow: visible;
}
.cert-modal::backdrop {
  background: rgba(0, 10, 44, 0.82); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .15s ease;
}
.cert-modal.is-open::backdrop { opacity: 1; transition-duration: .25s; }
.cert-modal-box {
  position: relative; background: #fff; border-radius: calc(var(--radius) + 4px);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 10, 44, 0.38), 0 0 0 1px rgba(255,255,255,0.15);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .15s ease, transform .15s ease;
}
.cert-modal.is-open .cert-modal-box { opacity: 1; transform: none; transition: opacity .25s ease, transform .25s cubic-bezier(.23,1,.32,1); }
.cert-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f1f4fa; color: #10163a; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
@media (hover: hover) and (pointer: fine) { .cert-modal-close:hover { background: #e2e8f4; transform: scale(1.08); } }
.cert-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cert-modal-content {
  display: grid; grid-template-columns: 320px 1fr;
  max-height: min(86vh, 680px);
}
.cert-modal-image-wrap {
  background: #f4f7fb; padding: var(--space-5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid #e5e9f2; overflow-y: auto; overscroll-behavior: contain; text-align: center;
}
.cert-modal-image-wrap img {
  max-height: 420px; width: auto; max-width: 100%; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 8px 22px rgba(16,22,58,0.14); border: 1px solid #d9dfec;
}
.cert-zoom-btn {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #047857; text-decoration: none;
  transition: color .2s ease;
}
.cert-zoom-btn:hover { color: #065f46; text-decoration: underline; }
.cert-zoom-btn svg { flex: none; }

.cert-modal-info {
  padding: 30px 28px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; background: rgba(16, 185, 129, 0.12); color: #047857;
  font-size: 12px; font-weight: 700; width: fit-content;
}
.cert-badge svg { flex: none; stroke: currentColor; }
.cert-modal-title {
  font-family: var(--font-heading); font-size: 21px; font-weight: 800; color: #10163a; margin: 0; line-height: 1.25;
}
.cert-modal-lead {
  font-size: 13.5px; color: #4b5169; line-height: 1.45; margin: 0;
}
.cert-facts {
  margin: 4px 0; padding: 12px 14px; background: #f8fafc; border-radius: 8px; border: 1px solid #eef2f7;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
}
.cert-facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px dashed #e2e8f0; padding-bottom: 6px;
}
.cert-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-facts dt { color: #64748b; font-weight: 500; font-size: 12.5px; }
.cert-facts dd { color: #0f172a; font-weight: 600; text-align: right; margin: 0; }
.cert-modal-note {
  font-size: 12.5px; color: #64748b; line-height: 1.45; margin: 0;
}
.cert-modal-actions {
  display: flex; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap;
}
.cert-modal-actions .btn { font-size: 13.5px; padding: 10px 18px; }
.cert-modal-actions .btn-ghost { color: #047857; border: 1px solid #d9dfec; background: #f8fafc; }
.cert-modal-actions .btn-ghost:hover { background: #ecfdf5; border-color: #047857; color: #065f46; }

@media (max-width: 680px) {
  .cert-modal-content {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .cert-modal-image-wrap {
    border-right: 0; border-bottom: 1px solid #e5e9f2; padding: var(--space-4);
  }
  .cert-modal-image-wrap img { max-height: 260px; }
  .cert-modal-info { padding: var(--space-4); }
  .cert-modal-title { font-size: 19px; }
  .cert-modal-actions { flex-direction: column; }
  .cert-modal-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-modal-box, .cert-modal.is-open .cert-modal-box, .cert-modal::backdrop { 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; }
/* "Не уверены, какой тариф подойдёт?" now lives inside the prices block */
#prices .consult-chat { margin-top: var(--space-9); }
.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 .chat-link { color: var(--mint); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.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); }
/* The moving strip gets its own layer: the cards are drawn once and only slid while swiping */
.cases-viewport.is-embla .cases-track { will-change: transform; backface-visibility: hidden; }
.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: #047857; 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: #011039; }
.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: #047857; 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, transform .15s ease-out;
}
@media (hover: hover) and (pointer: fine) { .cases-arrow:hover { background: #047857; border-color: #047857; color: #fff; } }
.cases-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cases-arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .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: #011039; 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: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 .35s cubic-bezier(.23,1,.32,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; }
/* The consultation form now follows the FAQ inside one block */
#faq .contact-grid { margin-top: var(--space-9); }
/* Contacts: chat with Evgenia on the left (same component as the consultation block), form on the right */
/* Desktop: heading and chat on the left, the form on the right at full height, level with the heading */
.contact-head { grid-column: 1; grid-row: 1; margin-bottom: calc(-1 * var(--space-6)); }
.contact-side { grid-column: 1; grid-row: 2; }
/* The form runs from the top of the heading letters (13px below its line box) down to the bottom of the chat */
.contact-form { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; margin-top: 13px; }
.contact-form textarea { flex: 1 1 auto; min-height: 96px; }
.chat-window--left { margin: 0; max-width: none; }
.contact-form { background: var(--navy-700); 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-800); 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; }
.quiz-error { margin: -4px 0 14px; font-size: 14px; font-weight: 600; color: #f58787; }
.field-error { display: block; font-size: 13.5px; line-height: 1.35; color: #f58787; margin: -6px 0 14px; }
.section-light .field-error, .callback-form .field-error { color: #b42323; }
.callback-row .field-error { grid-column: 1 / -1; margin: -2px 0 4px; }
.contact-form .field-error { margin-top: calc(-1 * var(--space-2)); margin-bottom: 0; }

/* 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(0,6,26,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; overflow-x: hidden; overscroll-behavior: contain;
  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: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0.3333); transition: transform .25s cubic-bezier(.23,1,.32,1); }
.quiz-step-label { color: var(--accent-text); 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(16,185,129,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; }

/* Quiz step 3: preview summary box & channel picker */
.quiz-preview-box {
  background: rgba(16,22,58,0.75); border: 1px solid rgba(110,231,183,0.35);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px;
}
.quiz-preview-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--mint);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.quiz-preview-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.quiz-preview-desc { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.4; }
.quiz-contact-heading { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.quiz-channel-picker { display: flex; gap: 8px; margin-bottom: 14px; }
.channel-option { flex: 1; text-align: center; cursor: pointer; position: relative; margin: 0; }
.channel-option input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.channel-option span {
  display: block; padding: 9px 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--navy-800); font-size: 13.5px; font-weight: 500; color: var(--text-dim);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.channel-option:hover span { border-color: rgba(255,255,255,0.3); color: #fff; }
.channel-option input:checked + span {
  border-color: var(--accent); background: rgba(16,185,129,0.25); color: #fff;
  font-weight: 600; box-shadow: 0 0 0 1px var(--accent);
}
.form-microcopy { font-size: 12.5px; color: var(--text-dim); text-align: center; margin: 6px 0 0; line-height: 1.4; }

/* Scroll reveal: children rise 12px one after another (50ms apart). A keyframe animation with
   fill "backwards" holds only the start state, so afterwards each card keeps its own hover transition. */
.reveal:not(.in-view) > * { opacity: 0; }
.reveal.in-view > * { animation: reveal-in .45s cubic-bezier(.23,1,.32,1) backwards; }
.reveal.in-view > *:nth-child(2) { animation-delay: .05s; }
.reveal.in-view > *:nth-child(3) { animation-delay: .1s; }
.reveal.in-view > *:nth-child(4) { animation-delay: .15s; }
.reveal.in-view > *:nth-child(5) { animation-delay: .2s; }
.reveal.in-view > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal:not(.in-view) > * { opacity: 1; }
  .reveal.in-view > * { animation-name: reveal-fade; }
  @keyframes reveal-fade { from { opacity: 0; } }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-contact { display: none; }
  .about-grid, .founder-grid, .contact-grid, .guarantee-card { grid-template-columns: 1fr; gap: 32px; }
  .contact-head, .contact-side, .contact-form { grid-column: auto; grid-row: auto; }
  .contact-form { margin-top: 0; }
  /* 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; }
  /* Stacked: portrait first, then name and text. The cut-off bottom of the portrait fades out instead of ending in a hard edge */
  .founder-portrait { order: 0; flex: none; min-height: 0; width: 100%; max-width: 300px; margin: 0 auto calc(-1 * var(--space-5)); }
  .founder-portrait img { position: relative; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
  .founder-name { order: 1; text-align: left; }
  .founder-name h2 { margin: 0; }
  .founder-text { order: 2; padding: 0; }
  .section.founder { padding-bottom: var(--space-8); }
  .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(52,211,153), rgb(16,185,129), 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,
  .price-grid:has(> .price-card:last-child:nth-child(2)) { 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; }
  /* Stacked layout: the headline comes first, the founder is presented in her own block further down */
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .hero-portrait { display: none; }
  .hero-copy { padding-bottom: 0; width: auto; max-width: 100%; }
  .hero-copy:not(:has(.hero-stats-row)) { padding: 8px 0 40px; }
  .hero-mp-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-4);
  }
  .hero-mp-badge-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    animation: mp-badge-in 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  }
  .hero-mp-badge-img:nth-child(1) {
    animation-delay: 0.3s;
  }
  .hero-mp-badge-img:nth-child(2) {
    animation-delay: 0.45s;
  }
  .eyebrow { margin-bottom: var(--space-4); }
  .hero h1 { margin-bottom: var(--space-4); }
  .hero-sub { margin-bottom: var(--space-5); }
  .hero-checklist { gap: var(--space-3); }
  .hero-actions { margin-top: var(--space-6); gap: var(--space-4); }
  .hero-stats-row { margin-top: var(--space-6); padding-top: var(--space-5); }
  .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, .niche-grid, .faq-list { grid-template-columns: 1fr; }
  .price-card .btn,
  .contact-form .btn,
  .callback-form .btn,
  .cases-actions .btn {
    width: 100%;
    white-space: normal;
    text-wrap: balance;
    line-height: 1.25;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    text-align: center;
  }
  /* About stats stay 2x2 on phones: four short cards, less scrolling */
  .stats-grid { gap: var(--space-3); }
  .stat-card { padding: var(--space-4); }
  .stat-card .stat-value { font-size: 26px; margin-bottom: 4px; }
  .stat-card .stat-label { font-size: 13px; line-height: 1.35; display: block; }
  /* Phone: small photo left, name/role/experience as plain text on the right */
  .team-grid,
  .team-grid:has(> .team-card:last-child:nth-child(2)) { 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-cta-group .btn { width: 100%; }
  .hero-cta-group { align-items: stretch; }
  .hero-hint { text-align: center; }
  .quiz-overlay { padding: 12px; }
  .quiz-modal { padding: 26px 18px; border-radius: 16px; }
  .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-4); }
  .founder-principles { margin-top: var(--space-5); }
  .founder-principles li { padding: 0 0 0 36px; }
  .founder-text .callback-form { margin-top: var(--space-6); }
  .founder-principles li::before { top: 1px; }
  .founder-tg {
    display: flex; justify-content: center; margin-top: var(--space-5); padding: 14px var(--space-4);
    border: 1px solid #d9deea; border-radius: 999px; background: #fff;
  }
  .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%; opacity: 0.92; }
  .client-tag { left: 10px; bottom: 10px; font-size: 11.5px; padding: 3px 8px; opacity: 1; transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .client-card:has(.client-tag-multiline),
  .page-marketplace .client-card {
    min-height: 160px;
    padding: 14px 10px 62px;
  }
  .client-tag-multiline,
  .page-marketplace .client-tag {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
  }
  .client-tag-multiline .client-tag-niche,
  .page-marketplace .client-tag-niche {
    font-size: 11px;
    line-height: 1.25;
  }
  .client-tag-multiline .client-tag-marketplaces,
  .page-marketplace .client-tag-marketplaces {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 1px;
  }
  .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; }
}

/* Phones: clean header with logo + phone call button + burger */
@media (max-width: 620px) {
  .site-header { padding: 8px 12px; }
  .header-inner { height: 56px; gap: 12px; padding: 0 14px; }
  .header-actions { gap: 10px; }
  .header-cta { display: none; }
  .header-phone-mobile { display: inline-flex; }
  .site-header .logo-word img { width: 112px; }
  .site-header .nav.open { top: 68px; left: 12px; right: 12px; }
  html { scroll-padding-top: 80px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; padding: 0 10px 0 12px; }
  .header-actions { gap: 6px; }
  .header-phone-mobile { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
}

/* Mobile nav dropdown */
.nav.open {
  display: flex; position: absolute; top: 88px; left: 20px; right: 20px; width: auto;
  flex-direction: column; background: var(--navy-700);
  padding: 18px; border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; gap: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.25);
}
.nav.open a { padding: 10px 6px; }
.nav.open .nav-contact { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 14px 6px 4px; border-top: 1px solid var(--line); }
.nav.open .nav-contact a { padding: 0; color: var(--text); font-weight: 700; }
.nav.open .nav-contact span { font-size: 13px; color: var(--text-dim); }
.nav.open .nav-messengers { display: flex; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav.open .nav-msg-link {
  flex: 1; min-height: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px !important; border-radius: 10px;
  background: rgba(255,255,255,0.08); font-size: 14px !important; font-weight: 600 !important;
  color: #fff !important; border: 1px solid var(--line); white-space: nowrap;
}
.nav.open .nav-msg-link svg { flex: none; display: block; }
.nav.open .nav-msg-link:hover { background: var(--accent) !important; }

/* Skip link: hidden until focused from the keyboard */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: #10163a; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ===== Legal pages (offer, privacy policy, trademark) — same brand: navy head, light reading area ===== */
.legal-head { padding: var(--space-7) var(--space-5) var(--space-7); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--text-dim); margin-bottom: var(--space-5); }
.breadcrumbs a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,173,201,0.4); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text); }
.legal-head h1 { font-size: var(--text-3xl); line-height: 1.1; max-width: 820px; margin-bottom: var(--space-4); }
.legal-lead { font-size: var(--text-md); max-width: 720px; line-height: 1.6; margin-bottom: var(--space-6); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.legal-tabs a {
  padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line); transition: color .15s, background .15s, border-color .15s;
}
.legal-tabs a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.legal-tabs a[aria-current] { color: #fff; background: rgba(16,185,129,0.22); border-color: rgba(52,211,153,0.55); }

.legal-body { padding: var(--space-8) 0 var(--space-9); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.legal-grid--single { grid-template-columns: minmax(0, 1fr); }
.legal-grid--single .legal-doc { max-width: none; }
.legal-toc { position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; padding-right: 4px; }
.legal-toc-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6272; margin-bottom: var(--space-3); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: grid; grid-template-columns: 26px 1fr; padding: 7px 10px; border-radius: 10px;
  font-size: 14px; line-height: 1.4; color: #4b5169; transition: background .15s, color .15s;
}
.legal-toc a::before { content: counter(toc) "."; color: #5b6272; font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: rgba(16,22,58,0.06); color: #10163a; }
.legal-toc a[aria-current] { background: rgba(16,185,129,0.1); color: #10163a; font-weight: 500; }
.legal-toc a[aria-current]::before { color: #047857; }

.legal-doc {
  background: #fff; border: 1px solid #e3e7f2; border-radius: var(--radius); padding: var(--space-7) var(--space-8);
  box-shadow: 0 14px 40px rgba(16,22,58,0.06); color: #333a55; font-size: var(--text-base); line-height: 1.7; max-width: 860px;
}
.legal-doc > :first-child { margin-top: 0; }
.legal-doc h2 { font-size: 24px; line-height: 1.25; color: #10163a; margin: var(--space-7) 0 var(--space-4); padding-top: var(--space-5); border-top: 1px solid #edf0f7; }
.legal-doc h3 { font-size: 18px; color: #10163a; margin: var(--space-5) 0 var(--space-3); }
.legal-doc p, .section-light .legal-doc p { color: #333a55; margin: 0 0 var(--space-4); }
.legal-doc strong { color: #10163a; }
.legal-doc a:not(.btn) { color: #047857; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-doc a:not(.btn):hover { color: #10163a; }
.legal-doc ul { margin: 0 0 var(--space-4); padding-left: 0; display: grid; gap: 6px; }
.legal-doc ul li { position: relative; padding-left: 22px; }
.legal-doc ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-doc ul.legal-cols { display: block; columns: 2; column-gap: var(--space-6); }
.legal-doc ul.legal-cols li { break-inside: avoid; margin-bottom: 6px; }
.legal-num { margin: 0 0 var(--space-4); padding: 0; list-style: none; display: grid; gap: var(--space-4); }
/* Clause number sits in a left gutter (not a grid: inline <strong> inside the text must stay inline) */
.legal-num > li { position: relative; padding-left: 52px; }
.legal-num > li::before { content: attr(data-n); position: absolute; left: 0; top: 2px; color: #5b6272; font-size: 14px; font-variant-numeric: tabular-nums; }
.legal-num > li > :is(ul, p, h3, aside) { margin-top: var(--space-3); }
.legal-num > li > aside { display: block; }
.legal-meta { font-size: 14.5px; color: #5b6272 !important; padding-bottom: var(--space-4); border-bottom: 1px solid #edf0f7; }
.legal-note { background: #ecfdf5; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: var(--space-3) var(--space-4); font-size: 15px; }
.legal-note strong { display: block; margin-bottom: 2px; }
.legal-download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-7); padding: var(--space-5); border-radius: 16px; background: #f4f6fb;
}
.legal-download p { margin: 0 !important; font-size: 15px; }

/* Trademark */
.tm-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: start; }
.tm-image { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid #e3e7f2; box-shadow: 0 10px 30px rgba(16,22,58,0.1); }
.tm-image img { width: 100%; height: auto; transition: transform .3s ease; }
@media (hover: hover) and (pointer: fine) { .tm-image:hover img { transform: scale(1.02); } }
.tm-zoom {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: rgba(1,16,57,0.85); color: #fff; font-size: 13px; font-weight: 600;
}
.legal-doc .tm-info h2 { margin-top: 0; padding-top: 0; border: 0; }
.tm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: var(--space-5) 0 var(--space-6); background: #e3e7f2; border: 1px solid #e3e7f2; border-radius: 14px; overflow: hidden; }
.tm-facts div { background: #fff; padding: var(--space-3) var(--space-4); }
.tm-facts dt { font-size: 13px; color: #5b6272; }
.tm-facts dd { margin: 2px 0 0; font-weight: 600; color: #10163a; }

/* 404 */
.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound-inner { padding: var(--space-8) var(--space-5); text-align: center; }
.notfound-code {
  font-family: var(--font-heading); font-size: clamp(96px, 20vw, 180px); font-weight: 800; line-height: 1; margin: 0 0 var(--space-3);
  background: linear-gradient(135deg, var(--accent-text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: var(--text-2xl); }
.notfound p { max-width: 480px; margin: 0 auto var(--space-6); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

@media (max-width: 980px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
  .legal-doc { padding: var(--space-6); max-width: none; }
  .tm-card { grid-template-columns: 1fr; }
  .tm-image { max-width: 420px; }
}
@media (max-width: 620px) {
  .legal-head { padding: var(--space-6) var(--space-5); }
  .legal-head h1 { font-size: 32px; }
  .legal-lead { font-size: var(--text-base); }
  .legal-body { padding: var(--space-5) 0 var(--space-8); }
  .legal-body .container { padding: 0 12px; }
  .legal-doc { padding: var(--space-5) var(--space-4); font-size: 15.5px; }
  .legal-doc h2 { font-size: 20px; }
  .legal-num > li { padding-left: 42px; }
  .legal-doc ul.legal-cols { columns: 1; }
  .tm-facts { grid-template-columns: 1fr; }
  .legal-download .btn { width: 100%; }
}

/* ===== Cookie consent (152-FZ: analytics only after an explicit "Принять") ===== */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(440px, calc(100% - 32px));
  padding: 24px 24px 22px; border-radius: 20px; border: 1px solid rgba(110,231,183,0.22);
  /* same card as "Гарантия на испытательный срок", so it stands out from the dark blocks */
  background:
    radial-gradient(ellipse 320px 220px at 100% 0%, rgba(110,231,183,0.10), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--navy-800));
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(16px); transition: opacity .15s ease, transform .15s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; transition: opacity .25s ease, transform .25s cubic-bezier(.23,1,.32,1); }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner .cookie-title { margin: 0 0 6px; padding-right: 28px; font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: #fff; }
.cookie-banner p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: #d9ddef; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cookie-actions .btn { width: 100%; justify-content: center; }
.cookie-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255,255,255,0.55); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cookie-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
/* "Отказаться" is hidden once the visitor has already opted out */
.cookie-withdraw { display: block; align-self: center; padding: 4px; border: 0; background: none; color: #aebfdc; font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-banner.is-declined .cookie-withdraw { display: none; }
.footer-cookie-btn {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.footer-cookie-btn:hover { color: var(--text); }
.legal-table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); border: 1px solid #e3e7f2; border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0f7; }
.legal-table th { background: #f4f6fb; color: #10163a; font-weight: 600; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-doc code { font-size: .92em; background: #f1f3fa; padding: 1px 5px; border-radius: 5px; color: #10163a; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px 18px 18px; border-radius: 18px; }
  .cookie-banner[hidden] { display: none !important; }
  .cookie-banner .cookie-title { font-size: 17px; }
  .cookie-banner p { font-size: 14px; }
  /* Phones: each cookie row becomes a small card, so cookie names are never broken mid-word */
  .legal-table-wrap { border: 0; overflow: visible; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border: 1px solid #e3e7f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .legal-table td { border: 0; padding: 2px 0; font-size: 14px; }
  .legal-table td:first-child { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
  .legal-table td:not(:first-child)::before { content: attr(data-label) ": "; color: #5b6272; }
  .legal-table code { white-space: nowrap; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner, .cookie-banner.is-visible { transition: none; } }

@keyframes mp-badge-in {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mp-tile,
  .hero-mp-tile img,
  .hero-mp-badges,
  .hero-mp-badge-img {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero-mp-tile--wb {
    transform: rotate(-10deg) !important;
  }
  .hero-mp-tile--ozon {
    transform: rotate(8deg) !important;
  }
  .hero-mp-badge-img {
    transform: none !important;
  }
}

/* ===== Textures: a layer between a block's background and its content =====
   Grid on the first screen and prices; soft sky blobs on the other blocks.
   No mask-image anywhere: masks are expensive to repaint on phones (a block that grows while a list
   expands would re-rasterise its mask every frame). Blobs are sized to fade out well before the top and
   bottom edge, so neighbouring blocks of the same colour meet without a seam; grids fade into the block
   colour with an overlay gradient instead of a mask. */
.hero, .section, .trust-section { position: relative; isolation: isolate; }
/* Neighbouring blocks overlap by 1px: on a fractional boundary the dark page background
   would otherwise show through as a hairline between two blocks of the same colour */
.section + .section, .trust-section + .section, .section + .trust-section, .hero + .section, .hero + .trust-section { margin-top: -1px; }
.hero::after, .section::after, .trust-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 32% at 10% 40%, rgba(160,206,255,0.09), transparent 70%),
    radial-gradient(35% 28% at 90% 62%, rgba(223,239,255,0.05), transparent 70%);
}
.section-light::after, .trust-section::after {
  background:
    radial-gradient(40% 32% at 88% 40%, rgba(16,185,129,0.10), transparent 70%),
    radial-gradient(35% 28% at 8% 62%, rgba(16,185,129,0.07), transparent 70%);
}
.hero::after, #prices::after {
  background:
    radial-gradient(ellipse 75% 65% at 50% 20%, transparent, var(--navy-800) 80%),
    linear-gradient(rgba(160,206,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,206,255,0.08) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
}
/* The first block's grid starts at the very top of the page and runs under the floating header */
.hero::after { top: -120px; }
#prices::after {
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 20%, transparent, var(--navy-900) 80%),
    linear-gradient(rgba(160,206,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,206,255,0.08) 1px, transparent 1px);
}
/* Grid inside the case cards and the guarantee card, strongest in the top-right corner */
.guarantee-card { position: relative; isolation: isolate; overflow: hidden; }
.guarantee-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.guarantee-card::after {
  background:
    linear-gradient(rgba(160,206,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,206,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 75%);
}
/* Cases: the grid is the block's background (behind the carousel and heading), not inside the cards,
   so it never crosses the lines of the case tables. It fades out before the list of closed vacancies. */
#cases::after {
  background:
    linear-gradient(to bottom, rgba(244,246,251,0) 0, rgba(244,246,251,0) 420px, #f4f6fb 680px),
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(244,246,251,0) 40%, #f4f6fb 85%),
    linear-gradient(rgba(4,120,87,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4,120,87,0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}
@media (max-width: 980px) {
  /* On phones the carousel is taller: the grid fades out by 1000px, above the list of vacancies */
  #cases::after {
    background:
      linear-gradient(to bottom, rgba(244,246,251,0) 0, rgba(244,246,251,0) 700px, #f4f6fb 1000px),
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(244,246,251,0) 40%, #f4f6fb 90%),
      linear-gradient(rgba(4,120,87,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(4,120,87,0.07) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  }
}

/* ===== Phones: text that did not fit, rows that broke for no reason, lighter animations ===== */
@media (max-width: 980px) {
  /* A smaller blur radius under the sticky header is much cheaper to redraw while the page moves */
  .header-inner { backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
  /* "Show more" cases: the list opens at once (animating the height of a long list stutters on phones),
     the rows still fade in one after another */
  .cases-extra { transition: none; }
}
@media (max-width: 620px) {
  /* Long words ("маркетплейсов") must fit the narrowest screens */
  .page-marketplace .hero h1 { font-size: clamp(30px, 9.6vw, 40px); }
  /* Hero numbers: three equal columns in one row, numbers never wrap */
  .hero-stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stat-item { margin: 0; padding: 0; }
  .hero-stat-item .stat-value { font-size: clamp(24px, 7.4vw, 30px); white-space: nowrap; }
  .hero-stat-item .stat-label { font-size: 12px; }
  /* Social buttons in one row; the "Мы в соцсетях:" label stays for screen readers */
  .about-social { flex-wrap: nowrap; gap: 8px; }
  .about-social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .about-social .social-btn { flex: 1 1 0; justify-content: center; gap: 6px; padding: 10px 8px; font-size: 14px; }
  /* Each row of logos is as tall as its own content (the "Станьте следующим" card no longer stretches every row) */
  .client-grid { grid-auto-rows: auto; }
  /* "Станьте следующим" fits the height of a logo card: no small print, a tighter title and button */
  .client-grid .client-card.client-card-cta { padding: 14px 12px; justify-content: center; gap: 10px; }
  .client-card-cta .client-cta-text { display: none; }
  .client-card-cta .client-cta-title { font-size: 16px; line-height: 1.2; }
  .client-card-cta .client-cta-btn { padding: 9px 12px; font-size: 13px; line-height: 1.2; }
  /* Client niches wrap to a second line instead of being cut with "…" */
  .client-card { padding-bottom: 56px; }
  .client-tag, .client-tag-niche { right: 10px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; -webkit-hyphens: auto; hyphens: auto; }
  /* Guarantee: both plans fit side by side without words sticking out of the cards */
  .guarantee-card { padding: 24px 18px; }
  .guarantee-plans { gap: 10px; }
  .guarantee-plan { padding: 14px 10px; }
  .plan-name { font-size: 11px; letter-spacing: 0.03em; }
  .plan-desc { font-size: 14px; }
}
@media (max-width: 359px) {
  .guarantee-plans { grid-template-columns: 1fr; }
  .client-tag, .client-tag-multiline, .page-marketplace .client-tag { left: 6px; right: 6px; max-width: none; padding-left: 6px; padding-right: 6px; }
}

/* ===== Reviews: one row that slowly runs left in an endless loop (see main.js) ===== */
.quote-marquee { position: relative; overflow: hidden; margin-top: var(--space-7); padding: 8px 0; }
.quote-marquee::before, .quote-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 64px; pointer-events: none; }
.quote-marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.quote-marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.quote-grid.is-marquee { display: flex; gap: var(--space-4); width: max-content; margin: 0; padding-right: var(--space-4); will-change: transform; }
/* The strip is moved by main.js; it can be dragged with the mouse or a finger */
.quote-marquee:not(.is-static) { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.quote-marquee.is-dragging { cursor: grabbing; }
.quote-marquee img { -webkit-user-drag: none; }
.quote-grid.is-marquee > .quote-card { flex: 0 0 var(--card-w, 340px); max-width: 86vw; }
.quote-marquee.is-static { overflow-x: auto; }
.quote-marquee.is-static .quote-grid.is-marquee { padding-right: 0; }
@media (max-width: 620px) {
  .quote-marquee::before, .quote-marquee::after { width: 24px; }
}
/* Two actions side by side under the reviews: calculate the price, or check every review in the Telegram channel */
.cta-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-row .btn svg { flex: none; margin-right: 8px; }
@media (max-width: 620px) { .cta-row { flex-direction: column; align-items: stretch; } }
/* Long heading that should stay on one line on desktop (the 720px limit of section headings is lifted) */
.section h2.h2-wide { max-width: none; }
/* The last block before the footer (FAQ + consultation) has the grid too: strongest at the bottom, fading upwards */
#faq::after {
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, transparent, var(--navy-800) 85%),
    linear-gradient(rgba(160,206,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,206,255,0.08) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-position: 0 0, 0 100%, 0 100%;
}
/* Three video reviews in one row (assistants page) */
.video-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .video-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .video-grid--three { grid-template-columns: 1fr; } }
/* Phones: headings inherit the body 1.5 line height, which is too airy for 2-3 line titles */
@media (max-width: 620px) {
  h2 { line-height: 1.2; }
  h3, h4 { line-height: 1.25; }
}

/* Offer: "Главное за минуту" summary and the requisites table (label | text rows) */
.offer-summary, .offer-requisites {
  margin: 0 0 var(--space-4); border: 1px solid #e3e7f2; border-radius: 14px; overflow: hidden;
}
.offer-summary { background: #f6f8fc; }
.offer-summary > div, .offer-requisites > div {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-3) var(--space-4); border-top: 1px solid #e3e7f2;
}
.offer-summary > div:first-child, .offer-requisites > div:first-child { border-top: 0; }
.offer-summary dt { font-weight: 700; color: #10163a; }
.offer-requisites dt { color: #5b6272; font-size: 14.5px; }
.offer-summary dd, .offer-requisites dd { margin: 0; color: #333a55; overflow-wrap: anywhere; }
.offer-requisites dd { color: #10163a; font-variant-numeric: tabular-nums; }
.legal-doc p.offer-summary-note { font-size: 14.5px; color: #5b6272; }
@media (max-width: 620px) {
  .offer-summary > div, .offer-requisites > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Home first screen (2026-10): ~80% of the screen with the header, text on an 8px rhythm
   (label 24 → headline 24 → subtitle 40 → points 16 apart → 48 → buttons), portrait standing on the next block ===== */
.hero.hero--home { display: flex; flex-direction: column; min-height: max(540px, calc(80svh - 96px)); padding-top: 0; }
.hero.hero--home .hero-inner { flex: 1; }
.hero.hero--home .hero-copy { padding: 56px 0; }
.hero.hero--home .eyebrow { margin-bottom: 24px; }
.hero.hero--home h1 { margin-bottom: 24px; }
.hero.hero--home .hero-sub { max-width: 520px; margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; color: #c9d2ea; }
.hero.hero--home .hero-checklist { margin-top: 40px; gap: 16px; }
.hero.hero--home .hero-checklist li { font-size: 16.5px; }
.hero.hero--home .hero-actions { margin-top: 48px; }
.hero.hero--home .hero-portrait { flex-basis: 480px; }
/* the cutout has a 40/1400 transparent strip under the body: shift it down so the body sits on the light block below */
.hero.hero--home .hero-portrait > img { top: auto; bottom: 0; left: 50%; transform: translate(-50%, 3.5%); width: auto; max-width: none; height: min(100%, 640px); }
.hero.hero--home .hero-portrait::before { top: auto; bottom: 10%; }
@media (max-width: 980px) {
  .hero.hero--home { min-height: max(520px, calc(82svh - 72px)); padding-bottom: 0; }
  .hero.hero--home .hero-inner { justify-content: center; }
  .hero.hero--home .hero-copy { padding: 32px 0 48px; }
}
@media (max-width: 620px) {
  .hero.hero--home .eyebrow { margin-bottom: 16px; }
  .hero.hero--home h1 { margin-bottom: 16px; font-size: clamp(30px, 8.6vw, 36px); }
  .hero.hero--home .hero-sub { font-size: 18px; }
  .hero.hero--home .hero-checklist { margin-top: 32px; gap: 14px; }
  .hero.hero--home .hero-checklist li { font-size: 15.5px; }
  .hero.hero--home .hero-actions { margin-top: 40px; }
}

/* ===== «Мы собеседуем, вы решаете» (#recordings): steps on the left, a sample of the shared candidate sheet on the right ===== */
.recordings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: var(--space-7); align-items: center; }
.recordings-title span { color: var(--mint); }
.recordings-steps { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: rec; }
.recordings-steps li { position: relative; padding-left: 56px; color: var(--text-dim); font-size: 15.5px; line-height: 1.5; counter-increment: rec; }
.recordings-steps li::before {
  content: counter(rec); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--mint);
  background: rgba(110,231,183,0.12); border: 1px solid rgba(110,231,183,0.35);
}
.recordings-steps strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 17px; }
.recordings-cta { margin-top: var(--space-6); }
.recordings-demo { margin: 0; }
.recordings-demo figcaption { margin-top: var(--space-3); font-size: 13px; color: var(--text-dim); text-align: center; }
@media (max-width: 980px) {
  .recordings-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .recordings-cta .btn { width: 100%; }
}
@media (max-width: 620px) {
  .recordings-steps { gap: var(--space-4); margin-top: var(--space-5); }
  .recordings-steps li { padding-left: 50px; font-size: 14.5px; }
  .recordings-steps strong { font-size: 16px; }
}
/* Sheet: columns as in the real one; on phones one compact card per candidate */
.sheet { border-radius: 18px; overflow: hidden; background: #fff; color: #1f2433; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.sheet-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; font-size: 14px; font-weight: 700; color: #1f2433; border-bottom: 1px solid #e3e7f2; background: #f8f9fc; }
.sheet-scroll { overflow-x: auto; scrollbar-width: thin; }
.sheet-grid { min-width: 560px; font-size: 13px; }
.sheet-row { display: grid; grid-template-columns: 1.05fr 0.95fr 0.95fr 1.7fr 1.05fr; align-items: center; border-bottom: 1px solid #edf0f6; }
.sheet-row:last-child { border-bottom: 0; }
.sheet-row > span { padding: 10px 12px; min-width: 0; border-right: 1px solid #edf0f6; }
.sheet-row > span:last-child { border-right: 0; }
.sheet-row > span:nth-child(2) { white-space: nowrap; color: #3b4256; }
.sheet-row--head > span { padding-block: 8px; font-size: 12px; font-weight: 700; color: #5b6272; background: #f8f9fc; }
.sheet-row.is-new { background: #f1fbf6; }
.sheet-name { font-weight: 700; color: #10163a; }
.sheet-new { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; vertical-align: 1px; }
.sheet-file { display: inline-block; margin-right: 6px; padding: 1px 4px; border-radius: 3px; font-size: 10px; font-weight: 800; color: #fff; background: #e5483b; vertical-align: 1px; }
.sheet-link { display: inline-flex; align-items: center; gap: 5px; color: #1a56db; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.sheet-desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #3b4256; }
.sheet-stage { color: #10163a; font-weight: 600; }
.sheet-ai { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 1px 6px 1px 5px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); vertical-align: 1px; }
.sheet-ai-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) {
  .sheet { border-radius: 14px; }
  .sheet-grid { min-width: 0; }
  .sheet-row--head { display: none; }
  .sheet-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .sheet-row > span { padding: 0; border: 0; }
  .sheet-row > span:nth-child(1) { grid-area: 1 / 1; }
  .sheet-row > span:nth-child(2) { grid-area: 2 / 1; }
  .sheet-row > span:nth-child(3) { grid-area: 2 / 2; justify-self: end; }
  .sheet-row > span:nth-child(4) { grid-area: 3 / 1 / 4 / 3; }
  .sheet-row > span:nth-child(5) { grid-area: 1 / 2; justify-self: end; }
  .sheet-row > .sheet-desc { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .sheet-row > .sheet-desc::before { content: "ИИ-саммари"; display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 17px; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); vertical-align: 1px; }
}
/* "О нас" used to continue the light logos block; after the dark block it needs the normal top padding */
#recordings + #about { padding-top: var(--space-8); }
/* "О нас": three short points about the agency instead of the stat cards (the numbers are elsewhere on the page) */
.about-points { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.about-points li {
  padding: var(--space-4) var(--space-5); background: #fff; border: 1px solid #e2e6f0; border-radius: var(--radius);
  font-size: 15px; line-height: 1.5; color: #4b5169;
}
.about-points strong { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-size: 17px; color: #10163a; }
#recordings + #about { padding-bottom: var(--space-8); }
@media (max-width: 620px) { .about-points li { padding: var(--space-4); font-size: 14.5px; } .about-points strong { font-size: 16px; } }

/* Referral discount: a plain line under the tariffs, aligned with the grid */
.referral-line { margin: var(--space-5) 0 0; text-align: left; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.referral-line strong { color: var(--mint); font-weight: 700; }
/* the line already sits under the tariffs: keep the gap to "Не уверены, какой тариф подойдёт?" close to the old one */
#prices .referral-line + .consult-chat { margin-top: var(--space-8); }
/* Niche pages share the home first screen; the marketplace headline is longer, so it is a bit smaller on phones */
@media (max-width: 620px) { .page-marketplace .hero.hero--home h1 { font-size: clamp(26px, 7.6vw, 32px); } }
/* Marketplace first screen: the bigger portrait would cover the WB / Ozon tiles — keep them in front, at the edges */
.hero.hero--home .hero-mp-tile { z-index: 3; }
.hero.hero--home .hero-mp-tile--wb { left: -56px; top: 30%; }
.hero.hero--home .hero-mp-tile--ozon { right: -24px; top: 16%; }

/* Cookie notice, compact (2026-10): one line of text with "Подробнее", two equal small buttons — accept and refuse */
.cookie-banner {
  display: flex; align-items: center; gap: 16px; width: min(560px, calc(100% - 32px));
  padding: 12px 44px 12px 18px; border-radius: 14px;
}
.cookie-banner p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.45; color: #d9ddef; }
.cookie-actions { flex: none; flex-direction: row; align-items: center; gap: 8px; }
.cookie-btn {
  min-height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.cookie-btn--accept { border: 0; color: #011039; background: var(--mint); }
.cookie-btn--accept:hover { background: #8ff0c8; }
.cookie-banner .cookie-withdraw { display: inline-flex; align-items: center; align-self: auto; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #d9ddef; text-decoration: none; }
.cookie-banner .cookie-withdraw:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-banner.is-declined .cookie-withdraw { display: none; }
.cookie-close { top: 50%; right: 6px; width: 32px; height: 32px; font-size: 20px; transform: translateY(-50%); }
@media (max-width: 620px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; flex-wrap: wrap; gap: 10px; padding: 12px 40px 12px 14px; border-radius: 14px; }
  .cookie-banner p { flex-basis: 100%; font-size: 13px; }
  .cookie-close { top: 6px; transform: none; }
}
/* Logos block followed by the dark recordings block (marketplace page): keep the bottom padding it has on the home page */
.trust-section:has(+ #recordings) { padding-bottom: var(--space-7); }
/* Plain-text service description (search engines need the query words in body text) */
.seo-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); margin-top: var(--space-6); }
.seo-text h3 { font-size: 19px; margin-bottom: 8px; }
.seo-text p { margin: 0; font-size: 15.5px; line-height: 1.6; }
@media (max-width: 768px) { .seo-text { grid-template-columns: 1fr; gap: var(--space-5); } }
