/* ============================================
   ALEF-LEGAL — IP Legal Support
   Design system inspired by kuzniaproject.ru
   ============================================ */

/* Font loading moved to <link> tags in HTML for render-performance */

:root {
  --bg: oklch(99.5% 0.005 75);
  --bg-alt: oklch(96.5% 0.007 75);
  --bg-hover: oklch(93% 0.009 70);
  --bg-dark: oklch(9% 0.008 50);
  --ink: oklch(9% 0.008 50);
  --ink-muted: oklch(47% 0.009 60);
  --ink-soft: oklch(67% 0.007 65);
  --line: oklch(91.5% 0.006 75);
  --line-soft: oklch(93.5% 0.005 75);
  --accent: oklch(65% 0.217 38.4);
  --accent-hover: oklch(70% 0.185 40);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1320px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Dark-surface tokens — use these instead of bare #fff / rgba(255,255,255,...) */
  --bg-on-dark: oklch(99.5% 0.005 75);
  --soft-on-dark: oklch(99.5% 0.005 75 / 0.85);
  --muted-on-dark: oklch(99.5% 0.005 75 / 0.6);
  --pale-on-dark: oklch(99.5% 0.005 75 / 0.45);
  --border-on-dark: oklch(99.5% 0.005 75 / 0.18);
  --line-on-dark: oklch(99.5% 0.005 75 / 0.1);
  --faint-on-dark: oklch(99.5% 0.005 75 / 0.08);
}

/* ---------- Skip navigation ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-on-dark);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transition: top .2s var(--ease);
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
.service-card:focus-visible,
.case:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
.form-row input:focus-visible,
.form-row textarea:focus-visible,
.form-row select:focus-visible { outline: none; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  width: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; touch-action: manipulation; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }

.h-display {
  font-size: clamp(44px, 8vw, 124px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.h1 { font-size: clamp(40px, 5.5vw, 80px); font-weight: 700; letter-spacing: -0.025em; }
.h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.015em; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-on-dark);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: var(--bg-on-dark);
}
.btn-dark:hover { background: oklch(14% 0.008 50); }
.btn .arrow {
  display: inline-block;
  transition: transform .35s var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: oklch(99.5% 0.005 75 / 78%);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-mark {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .nav-link.active { background: var(--bg-alt); }
.nav-link svg { transition: transform .25s var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 12px;
  transition: background .2s var(--ease);
}
.dropdown a:hover { background: var(--bg-alt); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-tel {
  font-size: 15px;
  font-weight: 500;
}
.header-cta {
  padding: 10px 18px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Promote to compositor layer — avoids blending with DOM content each frame */
  transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain { display: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.hero-display {
  font-size: clamp(48px, 10.2vw, 156px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero-display .accent { color: var(--accent); }
.hero-display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-display .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero-display .word:nth-child(1) > span { animation-delay: 0.05s; }
.hero-display .word:nth-child(2) > span { animation-delay: 0.18s; }
.hero-display .word:nth-child(3) > span { animation-delay: 0.31s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta p { margin: 0; font-size: 19px; line-height: 1.4; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item .dot {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.marquee-item a { transition: color .25s var(--ease); }
.marquee-item a:hover { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Logos marquee ---------- */
.logos-marquee {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.logos-track {
  display: flex;
  gap: 0;
  align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logo-chip {
  height: 60px;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  background: var(--bg);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.logo-chip:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Section heading ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: end;
  padding: 88px 0 40px;
}
.section-head .h2 { max-width: 720px; }
.section-head p { margin: 0; color: var(--ink-muted); font-size: 18px; max-width: 480px; }

/* ---------- Services cards ---------- */
.services {
  padding-bottom: 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), background .5s var(--ease);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.service-card:hover { background: var(--ink); color: var(--bg-on-dark); }
.service-card .num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color .4s var(--ease);
}
.service-card:hover .num { color: var(--muted-on-dark); }
.service-card h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 24px;
}
.service-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.service-card .tag {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: oklch(9% 0.008 50 / 0.06);
  color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.service-card:hover .tag { background: var(--border-on-dark); color: var(--bg-on-dark); }
.service-card .arrow-circle {
  position: absolute;
  top: 36px; right: 36px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover .arrow-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats {
  padding: 64px 0 88px;
  border-top: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; /* Asymmetric: primary stat owns the left */
  gap: 0;
  align-items: end;
}
.stat {
  padding: 32px 40px 32px 40px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
  padding-right: 56px;
}
.stat .num {
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
/* Primary stat — 95% — gets hero scale */
.stat:first-child .num {
  font-size: clamp(80px, 13.5vw, 200px);
}
.stat .num .accent { color: var(--accent); white-space: nowrap; }
.stat .label {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 280px;
}
.stat:first-child .label {
  max-width: 380px;
  font-size: 17px;
}

/* ---------- About block ---------- */
.about {
  padding: 88px 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 0.7/0.75;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.about-photo::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.about-photo .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  color: var(--line);
  letter-spacing: -0.03em;
}
.about-photo .caption {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 18px;
}
.about-text .h2 { margin-bottom: 24px; }
.about-text p { color: var(--ink-muted); font-size: 18px; line-height: 1.5; max-width: 540px; margin: 0 0 18px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Cases ---------- */
.cases { padding: 88px 0; border-top: 1px solid var(--line); }
.cases-list { display: grid; gap: 16px; }
.case {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 80px;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  transition: background .4s var(--ease), color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.case:hover { background: var(--ink); color: var(--bg-on-dark); }
.case:hover .num { color: var(--pale-on-dark); }
.case:hover .label { color: var(--muted-on-dark); }
.case:hover .text { color: var(--bg-on-dark); }
.case:hover .result .text { color: var(--bg-on-dark); }
.case:hover .result .text strong { color: var(--accent); }
.case:hover .arrow-icon { background: var(--accent); }
.case .num { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.case .problem, .case .result {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.case .text {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.case .result .text { color: var(--ink); }
.case .result .text strong { color: var(--accent); font-weight: 700; }
.case .arrow-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.case:hover .arrow-icon { background: var(--accent); transform: rotate(-45deg); }

/* ---------- Contact form ---------- */
.contact {
  padding: 88px 0 120px;
  background: var(--ink);
  color: var(--bg-on-dark);
  border-radius: 40px 40px 0 0;
  margin-top: 88px;
}
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .h2 { color: var(--bg-on-dark); }
.contact .lead { color: var(--muted-on-dark); }
.contact .eyebrow { color: var(--muted-on-dark); }
.contact-meta { margin-top: 40px; display: grid; gap: 16px; }
.contact-meta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--bg-on-dark);
  transition: color .25s var(--ease);
}
.contact-meta a:hover { color: var(--accent); }
.contact-meta .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--faint-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
}

.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 12px; font-weight: 700; color: var(--soft-on-dark); letter-spacing: 0.06em; text-transform: uppercase; }
.form-row input,
.form-row textarea,
.form-row select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-on-dark);
  color: var(--bg-on-dark);
  padding: 14px 0;
  font-size: 17px;
  outline: none;
  transition: border-color .25s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--accent); }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row select option { background: var(--ink); color: var(--bg-on-dark); }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-on-dark);
  line-height: 1.4;
}
.form-check input { accent-color: var(--accent); margin-top: 3px; }
.form-check a { color: var(--soft-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { margin-top: 16px; align-self: start; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg-on-dark);
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer-display {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-display .accent { color: var(--accent); }
.footer-display .arrow {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 0.9em; height: 0.9em;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.5em;
  transition: transform .4s var(--ease);
}
.footer-display:hover .arrow { transform: rotate(-45deg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line-on-dark);
}
.footer-grid h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 500; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 6px 0; color: var(--soft-on-dark); font-size: 15px; transition: color .25s var(--ease); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--muted-on-dark); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
  color: var(--muted-on-dark);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--soft-on-dark); margin-left: 16px; transition: color .25s var(--ease); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 56px;
}
.page-hero .h-display {
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.92;
}
.page-hero .breadcrumb {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero .lead { margin-top: 32px; }

/* ---------- Contact page hero (two-column) ---------- */
.page-hero--contact {
  padding-bottom: 72px;
}
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding-top: 8px;
}
.contact-hero-left .h-display { margin-top: 24px; }
.contact-channels--hero {
  max-width: none;
  padding-top: 16px;
}

/* ---------- Two-column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.split .label-col h3 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.split .label-col p { margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.5; }
.split .content-col p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.split .content-col p:last-child { margin-bottom: 0; }
.split-list {
  display: grid;
  gap: 0;
}
.split-list .item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: baseline;
}
.split-list .item:last-child { border-bottom: 0; }
.split-list .item .num { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.split-list .item h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.split-list .item p { color: var(--ink-muted); font-size: 15px; margin: 0; line-height: 1.5; }

/* ---------- Process steps ---------- */
.steps {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.step-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .4s var(--ease);
}
.step-card:hover { background: var(--bg-hover); }
.step-card .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.step-card h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.step-card p { color: var(--ink-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Pricing / Tariff list ---------- */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.tariff {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tariff:hover { border-color: var(--ink); transform: translateY(-2px); }
.tariff.featured { background: var(--ink); color: var(--bg-on-dark); border-color: var(--ink); }
.tariff h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.tariff .price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 16px; }
.tariff .price small { font-size: 14px; font-weight: 500; color: var(--ink-muted); display: block; margin-top: 6px; }
.tariff.featured .price small { color: var(--muted-on-dark); }
.tariff ul { display: grid; gap: 10px; margin: 16px 0 24px; }
.tariff li { font-size: 14px; line-height: 1.5; padding-left: 24px; position: relative; }
.tariff li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tariff .btn { margin-top: auto; }

/* ---------- Subscription (абонентское сопровождение) — ALEF style ---------- */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  align-items: stretch;
}
/* фирменная карточка ALEF: светлая → тёмная при наведении */
.sub-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.sub-card:hover { background: var(--ink); transform: translateY(-4px); }

.sub-top { display: block; margin-bottom: 4px; }
.sub-tier {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); display: inline-flex; align-items: center; gap: 10px;
}
.sub-tier::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.sub-price { font-size: 33px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-top: 16px; color: var(--ink); }
.sub-price small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-top: 7px; }
.sub-for {
  font-size: 14px; color: var(--ink); line-height: 1.5; margin: 20px 0 0;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 11px 14px 12px;
  background: color-mix(in oklch, var(--accent) 7%, transparent);
}
.sub-for::before {
  content: 'Для кого';
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.sub-for b { color: var(--ink); font-weight: 700; }
.sub-promise { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.45; margin: 14px 0 0; letter-spacing: -0.01em; }
.sub-incl { font-size: 12px; font-weight: 600; color: var(--ink-muted); margin: 22px 0 0; text-transform: uppercase; letter-spacing: 0.06em; }
.sub-feats { list-style: none; display: grid; gap: 12px; margin: 18px 0 24px; padding: 0; }
.sub-feats li { font-size: 14px; line-height: 1.5; color: var(--ink-muted); padding-left: 26px; position: relative; }
.sub-feats li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sub-anchor {
  font-size: 13px; line-height: 1.5; color: var(--ink-muted);
  background: var(--bg-hover); border-radius: 12px;
  padding: 13px 15px; margin: 6px 0 24px;
}
.sub-anchor b { color: var(--ink); font-weight: 700; }
.sub-btn { margin-top: auto; justify-content: center; }
.sub-badge {
  position: absolute; top: 28px; right: 28px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

/* hover → тёмная: переворачиваем цвета (как у .case) */
.sub-card:hover .sub-tier,
.sub-card:hover .sub-price small,
.sub-card:hover .sub-anchor { color: var(--muted-on-dark); }
.sub-card:hover .sub-price,
.sub-card:hover .sub-for b,
.sub-card:hover .sub-promise,
.sub-card:hover .sub-incl { color: #fff; }
.sub-card:hover .sub-for,
.sub-card:hover .sub-feats li { color: var(--soft-on-dark); }
.sub-card:hover .sub-anchor { background: var(--faint-on-dark); }
.sub-card:hover .sub-anchor b { color: #fff; }
.sub-card:hover .btn-ghost { border-color: var(--border-on-dark); color: #fff; }

/* Бизнес — тёмная по умолчанию (featured) */
.sub-card--featured { background: var(--ink); }
.sub-card--featured .sub-tier,
.sub-card--featured .sub-price small,
.sub-card--featured .sub-anchor { color: var(--muted-on-dark); }
.sub-card--featured .sub-price,
.sub-card--featured .sub-for b,
.sub-card--featured .sub-promise,
.sub-card--featured .sub-incl { color: #fff; }
.sub-card--featured .sub-for,
.sub-card--featured .sub-feats li { color: var(--soft-on-dark); }
.sub-card--featured .sub-anchor { background: var(--faint-on-dark); }
.sub-card--featured .sub-anchor b { color: #fff; }
.sub-card--featured:hover { background: var(--ink); transform: translateY(-4px); }

/* Индивидуальный пакет — тёмная продающая карточка */
.sub-custom {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--ink);
  color: var(--bg-on-dark);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
}
.sub-custom .eyebrow { color: var(--soft-on-dark); }
.sub-custom h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 16px 0 0; line-height: 1.08; color: #fff; }
.sub-custom p { font-size: 15px; color: var(--soft-on-dark); line-height: 1.6; margin: 14px 0 0; }
.sub-custom-list { list-style: none; display: grid; gap: 10px; margin: 20px 0 0; padding: 0; }
.sub-custom-list li { font-size: 14.5px; color: var(--soft-on-dark); padding-left: 26px; position: relative; }
.sub-custom-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sub-custom-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sub-custom-note { font-size: 13px; color: var(--muted-on-dark); }

/* Снятие возражений — чипы */
.sub-reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.sub-reassure > div {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.sub-reassure > div:hover { border-color: var(--accent); background: var(--bg-hover); }
.sub-more { margin-top: 28px; text-align: center; }
.sub-page-grid { margin-top: 48px; }
.sub-re-ico { font-size: 0; flex-shrink: 0; line-height: 0; }
.sub-re-ico::before {
  content: ''; display: inline-block; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); margin-bottom: 3px;
}

/* Результаты абонентов — кейсы с метриками */
.sub-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.sub-case {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.sub-case:hover { background: var(--ink); transform: translateY(-4px); }
.sub-case .m { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.sub-case .m small { font-size: 17px; font-weight: 700; }
.sub-case h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 18px 0 10px; color: var(--ink); }
.sub-case p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; margin: 0; }
.sub-case:hover h4 { color: #fff; }
.sub-case:hover p { color: var(--soft-on-dark); }

/* ---------- Section padding utility ---------- */
.section-top { padding-top: 56px; }

/* ---------- Contact channels ---------- */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.contact-channel:hover {
  background: var(--ink);
  color: var(--bg-on-dark);
  transform: translateX(6px);
}
.ch-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .35s var(--ease);
}
.contact-channel:hover .ch-icon { background: var(--line-on-dark); }
.ch-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ch-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .35s var(--ease);
}
.contact-channel:hover .ch-label { color: var(--muted-on-dark); }
.ch-value {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ch-arrow {
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.contact-channel:hover .ch-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- CEO photo ---------- */
.caption-role {
  font-weight: 400;
  color: oklch(99.5% 0.005 75 / 0.7);
}
.ceo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-photo .caption {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: 18px;
  color: var(--bg-on-dark);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* ---------- Logo image chips ---------- */
.logo-img-chip {
  width: 180px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 0 20px;
}
.logo-img-chip img {
  width: 130px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) opacity(50%);
  transition: filter .3s var(--ease);
}
.logo-img-chip:hover img {
  filter: grayscale(0%) opacity(100%);
}

/* ---------- Press / Мы в СМИ ---------- */
.press {
  padding: 0 0 80px;
  border-top: 1px solid var(--line);
}
.press .section-head { padding-top: 88px; }
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.press-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s var(--ease);
}
.press-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: oklch(86% 0.006 75);
}
.press-logo-zone {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.press-logo-zone img {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(10%);
}
.press-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 24px;
  flex: 1;
}
.press-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.press-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* ---------- Articles section ---------- */
.articles-section {
  padding: 0 0 80px;
  border-top: 1px solid var(--line);
}
.articles-section .section-head {
  padding-top: 88px;
}
.articles-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 32px 0 8px;
  scroll-padding-inline: var(--gutter);
}
.articles-scroll-wrap::-webkit-scrollbar { display: none; }
.articles-track {
  display: flex;
  gap: 20px;
  padding: 0 var(--gutter);
  width: max-content;
}
.article-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.10);
  border-color: transparent;
}
.article-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.ac-decor {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--border-on-dark);
  position: absolute;
  bottom: 12px;
  right: 20px;
  font-family: inherit;
}
.ac-1 { background: linear-gradient(135deg, oklch(9% 0.008 50) 0%, oklch(22% 0.015 42) 100%); }
.ac-2 { background: linear-gradient(160deg, oklch(40% 0.09 240) 0%, oklch(25% 0.06 230) 100%); }
.ac-3 { background: linear-gradient(135deg, oklch(65% 0.217 38.4) 0%, oklch(48% 0.17 34) 100%); }
.ac-4 { background: linear-gradient(160deg, oklch(18% 0.01 50) 0%, oklch(30% 0.015 45) 100%); }
.ac-5 { background: linear-gradient(135deg, oklch(35% 0.08 290) 0%, oklch(22% 0.05 280) 100%); }
.ac-6 { background: linear-gradient(160deg, oklch(45% 0.12 38) 0%, oklch(32% 0.09 35) 100%); }
.ac-7 { background: linear-gradient(135deg, oklch(28% 0.012 50) 0%, oklch(18% 0.008 50) 100%); }
.ac-8 { background: linear-gradient(160deg, oklch(38% 0.10 160) 0%, oklch(26% 0.07 150) 100%); }
.ac-9 { background: linear-gradient(135deg, oklch(20% 0.008 50) 40%, oklch(55% 0.18 38) 100%); }
.ac-10 { background: linear-gradient(160deg, oklch(55% 0.14 38) 0%, oklch(38% 0.11 34) 100%); }
.article-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.article-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.article-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ===== Article pages ===== */
.article-page-hero { padding-bottom: 0; }

.article-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.article-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--ink-muted);
  padding: 4px 12px;
  border-radius: 999px;
}
.article-h1 {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 860px;
}
.article-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}
.article-prose {
  max-width: 740px;
}
.article-prose h2 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 52px 0 14px;
  color: var(--ink);
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  color: var(--ink);
}
.article-prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 18px;
}
.article-prose .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 40px;
  max-width: none;
}
.article-prose ul, .article-prose ol {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.article-prose ul li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding-left: 20px;
  position: relative;
}
.article-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.article-prose ol { counter-reset: prose-ol; }
.article-prose ol li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding-left: 28px;
  position: relative;
  counter-increment: prose-ol;
}
.article-prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.9;
}
.article-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--accent); }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--ink-muted);
}
.article-prose .callout {
  margin: 32px 0;
  padding: 20px 28px;
  background: oklch(97.5% 0.012 75);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.article-prose .callout strong { color: var(--ink); }
.article-prose .faq {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.article-prose .faq h3 { margin-top: 0; margin-bottom: 8px; font-size: 16px; color: var(--ink); }
.article-prose .faq p { margin-bottom: 0; font-size: 16px; }
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article-prose th, .article-prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}
.article-prose th { font-weight: 600; color: var(--ink); background: var(--bg-alt); }
.article-prose tr:last-child td { border-bottom: none; }
.article-prose .related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article-prose .related h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
}
.article-prose .related ul { gap: 12px; }
.article-prose .related li { padding-left: 0; }
.article-prose .related li::before { display: none; }

/* Articles index page */
.articles-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.article-index-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.article-index-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
  border-color: var(--line);
}
.article-index-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-index-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}
.article-index-title a { color: inherit; text-decoration: none; }
.article-index-title a:hover { color: var(--accent); }
.article-index-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex-grow: 1;
  margin-bottom: 16px;
}
.article-index-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.article-index-tag {
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--ink-muted);
  padding: 4px 10px;
  border-radius: 999px;
}
.article-index-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  margin-top: 12px;
}
.articles-section-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.articles-section-title:first-of-type { margin-top: 0; }

/* ---------- Reviews / testimonials ---------- */
.reviews-section {
  padding: 0 0 100px;
  border-top: 1px solid var(--line);
}
.reviews-section .section-head { padding-top: 88px; }
.reviews-head { align-items: center; }
.reviews-head .h2 { margin: 0; }
.reviews-head > div p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 480px;
}
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  white-space: nowrap;
}
.reviews-stars { color: var(--accent); font-size: 17px; letter-spacing: 2px; }
.reviews-score { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.reviews-sep { width: 1px; height: 22px; background: var(--line); display: inline-block; }
.reviews-count { font-size: 14px; color: var(--ink-muted); font-weight: 500; }

.reviews-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 32px 0 8px;
  scroll-padding-inline: var(--gutter);
}
.reviews-scroll-wrap::-webkit-scrollbar { display: none; }
.reviews-track {
  display: flex;
  gap: 20px;
  padding: 0 var(--gutter);
  width: max-content;
}
.review-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.10);
  border-color: transparent;
}
.rc-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.rc-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.rc-task {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.rc-name { font-weight: 700; font-size: 14px; }
.rc-date { font-size: 13px; color: var(--ink-soft); }

.review-card--featured {
  width: 440px;
  background: var(--ink);
  color: var(--bg-on-dark);
  border-color: transparent;
}
.review-card--featured .rc-text { color: var(--soft-on-dark); }
.review-card--featured .rc-task { color: var(--muted-on-dark); }
.review-card--featured .rc-footer { border-top-color: var(--border-on-dark); }
.review-card--featured .rc-name { color: var(--bg-on-dark); }
.review-card--featured .rc-date { color: var(--pale-on-dark); }

.review-card--cta {
  width: 280px;
  background: var(--bg-alt);
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.review-card--cta:hover { background: var(--ink); color: var(--bg-on-dark); }
.rc-cta-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-on-dark);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.rc-cta-icon svg { width: 20px; height: 20px; }
.review-card--cta:hover .rc-cta-icon { background: var(--accent); color: #fff; }
.rc-cta-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.rc-cta-sub { font-size: 14px; color: var(--ink-muted); line-height: 1.4; }
.review-card--cta:hover .rc-cta-sub { color: var(--muted-on-dark); }

@media (max-width: 960px) {
  .reviews-head { align-items: start; }
  .reviews-badge { justify-self: start; }
}
@media (max-width: 560px) {
  .review-card { width: 80vw; max-width: 340px; padding: 26px 24px 22px; }
  .review-card--featured { width: 86vw; max-width: 380px; }
  .review-card--cta { width: 70vw; max-width: 300px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .nav, .header-tel { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .hero-meta, .about-grid, .contact .container, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { justify-content: flex-start; }
  .contact-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-channels--hero { padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .stat:first-child { border-top: 0; padding-right: 0; }
  .stat:first-child .num { font-size: clamp(72px, 18vw, 120px); }
  .case { grid-template-columns: 40px 1fr 56px; gap: 16px; padding: 24px; }
  .case .result { grid-column: 2 / 4; padding-top: 12px; border-top: 1px dashed var(--line); }
  .press-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid a { padding: 12px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; padding: 56px 0 32px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .tariff-grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .sub-cases { grid-template-columns: 1fr; gap: 14px; }
  .sub-card { padding: 26px 22px; }
  .sub-custom { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
  .sub-custom-side { align-items: stretch; }
  .sub-custom-btn { width: 100%; justify-content: center; }

  /* Section vertical rhythm — compress for small screens */
  .hero { padding-bottom: 56px; }
  .stats { padding: 48px 0 64px; }
  .about { padding: 56px 0; }
  .cases { padding: 56px 0; }
  .steps { padding: 56px 0; }
  .articles-section { padding-bottom: 56px; }
  .split { padding: 40px 0; }
  .contact { padding: 64px 0 88px; }
  .page-hero { padding: calc(var(--header-h) + 48px) 0 40px; }

  /* mobile menu */
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    padding: 16px 24px 32px;
    border-bottom: 1px solid var(--line);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.mobile-open .nav-link { padding: 16px 0; font-size: 22px; }
  .nav.mobile-open .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 16px;
    /* hidden by default on mobile — toggled via .dropdown-open */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
  .nav.mobile-open .dropdown.dropdown-open {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 40px;
  }
  /* clamp min 22px so «интеллектуальную» at 375px ≈ 32px wide ≈ 280px — fits 343px container */
  .hero-display { font-size: clamp(22px, 8.5vw, 76px); }
  .hero-meta {
    margin-top: 28px;
    padding-top: 20px;
    gap: 20px;
  }
  .hero-meta p { font-size: 16px; line-height: 1.5; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { font-size: 15px; padding: 14px 20px; }
  .footer-display { font-size: clamp(36px, 13.5vw, 80px); }
  .service-card { padding: 24px; min-height: 260px; }
  .contact { border-radius: 20px 20px 0 0; padding: 48px 0 64px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { aspect-ratio: 3/2; }
  .stats { padding: 40px 0 56px; }
  .about { padding: 48px 0; }
  .cases { padding: 48px 0; }
  .section-head { padding: 40px 0 24px; }
  .page-hero { padding: calc(var(--header-h) + 28px) 0 28px; }
  .page-hero .h-display { font-size: clamp(36px, 11vw, 76px); }
  .contact-hero-grid { gap: 32px; }
  .article-h1 { font-size: clamp(26px, 7.5vw, 56px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}

/* ── Urgency bar ─────────────────────────────── */
.urgency-bar {
  background: #1a0a2e;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.urgency-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.urgency-text {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.btn-urgent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #D4AF5A;
  color: #1C1C2E;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.btn-urgent:hover { opacity: 0.88; }

/* ── Hero trust strip ────────────────────────── */
.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-trust-item {
  font-size: 13px;
  color: var(--muted-on-dark, rgba(255,255,255,0.55));
}
.hero-trust-item strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.hero-trust-divider {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}

/* ============================================
   Landing-only: Samara trademark page
   ============================================ */

/* Page hero (interior pages) */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 56px;
}
.page-hero .h-display {
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.92;
}
.page-hero .breadcrumb {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero .lead { margin-top: 32px; }

/* Split list */
.split-list {
  display: grid;
  gap: 0;
}
.split-list .item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: baseline;
}
.split-list .item:last-child { border-bottom: 0; }
.split-list .item .num { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.split-list .item h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.split-list .item p { color: var(--ink-muted); font-size: 15px; margin: 0; line-height: 1.5; }

/* Geo chip */
.geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.geo-chip .pin {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
}
.geo-chip .pin::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.geo-chip .price-from {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-muted);
}
.geo-chip .price-from b { color: var(--ink); font-weight: 600; }

/* Chip-nav */
.chip-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.chip-nav-track {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-nav-track::-webkit-scrollbar { display: none; }
.chip-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip-nav a:hover, .chip-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-nav .num { color: var(--ink-soft); font-size: 12px; font-weight: 500; }

/* Price menu */
.price-menu {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}
.price-row {
  display: grid;
  grid-template-columns: 1.6fr 2fr 1fr 56px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: padding-left .35s var(--ease);
}
.price-row:hover { padding-left: 12px; }
.price-row.featured {
  background: linear-gradient(to right, rgba(255,90,31,0.04), transparent 80%);
}
.price-row .name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-row .name h4 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.price-row .name .tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.price-row .desc { color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.price-row .desc ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.price-row .desc li { padding-left: 18px; position: relative; }
.price-row .desc li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--ink-muted);
}
.price-row .price {
  text-align: right;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-row .price small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0;
}
.price-row .pick {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.price-row:hover .pick { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.price-foot {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 14px;
}
.price-foot strong { color: var(--ink); font-weight: 600; }

/* Calculator */
.calc {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc-controls { padding: 36px; border-right: 1px solid var(--line); background: var(--bg); }
.calc-result {
  background: var(--ink);
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.calc-controls h3 { font-size: 22px; font-weight: 700; margin: 0 0 24px; letter-spacing: -0.015em; }
.calc-field { padding: 18px 0; border-top: 1px solid var(--line); }
.calc-field:first-of-type { border-top: 0; padding-top: 0; }
.calc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.calc-field-head label { font-size: 15px; font-weight: 500; }
.calc-field-head .hint { font-size: 13px; color: var(--ink-muted); }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 14px;
}
.seg input { display: none; }
.seg label {
  text-align: center;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg input:checked + label { background: var(--ink); color: #fff; }

/* Tariff feature list inside calculator */
.calc-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
}
.calc-features li {
  font-size: 13px;
  color: var(--ink-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.calc-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 1px;
  background: var(--accent);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  width: 44px; height: 44px;
  font-size: 20px;
  background: var(--bg);
  transition: background .2s var(--ease);
}
.stepper button:hover { background: var(--bg-alt); }
.stepper .val {
  min-width: 56px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px 0;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.toggle-row label.txt { font-size: 15px; cursor: pointer; flex: 1; }
.toggle-row label.txt small { display: block; color: var(--ink-muted); font-size: 13px; margin-top: 2px; }
.toggle {
  position: relative;
  width: 48px; height: 28px;
  border-radius: 999px;
  background: var(--line);
  transition: background .25s var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle input { display: none; }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(20px); }
.calc-result .label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.calc-result .total {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 6px;
}
.calc-result .breakdown {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.calc-result .breakdown .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-result .breakdown .row span:last-child { color: #fff; font-weight: 500; }
.calc-result .term { font-size: 14px; color: rgba(255,255,255,0.7); }
.calc-result .term b { color: #fff; font-weight: 600; }
.calc-result .btn { width: 100%; }

/* Process timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 12px; left: 6%; right: 6%;
  height: 1px;
  background: var(--line);
}
.timeline .step {
  position: relative;
  padding-top: 32px;
}
.timeline .step::before {
  content: '';
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline .step .when {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.timeline .step h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 6px;
}
.timeline .step p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* Quilt layout */
.quilt {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
  margin-top: 40px;
}
.quilt .tile {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .35s var(--ease);
}
.quilt .tile:hover { background: #ebeae7; }
.quilt .tile h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.quilt .tile p { color: var(--ink-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.quilt .tile.big { grid-column: span 3; grid-row: span 2; background: var(--ink); color: #fff; padding: 36px; }
.quilt .tile.big h4 { font-size: 32px; line-height: 1.05; }
.quilt .tile.big p { color: rgba(255,255,255,0.7); font-size: 16px; }
.quilt .tile.wide { grid-column: span 3; }
.quilt .tile.tall { grid-column: span 2; grid-row: span 2; }
.quilt .tile.std { grid-column: span 2; }
.quilt .tile .stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
}

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--ink); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat;
  flex-shrink: 0;
  transition: transform .35s var(--ease), background-size .25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-size: 12px 1.5px, 0 0;
}
.faq summary:hover { color: var(--accent); }
.faq .answer {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 760px;
  animation: faqOpen .35s var(--ease);
}
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Sticky CTA bar */
.cta-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 140%);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .55s var(--ease);
  max-width: calc(100vw - 32px);
}
.cta-bar.show { transform: translate(-50%, 0); }
.cta-bar .pricetxt { font-size: 14px; color: rgba(255,255,255,0.85); }
.cta-bar .pricetxt b { color: #fff; font-weight: 600; }
.cta-bar .btn { padding: 12px 20px; font-size: 14px; }
.cta-bar .close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .2s var(--ease);
}
.cta-bar .close:hover { background: rgba(255,255,255,0.2); }

/* Samara landing — responsive */
@media (max-width: 960px) {
  .price-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .price-row .price { text-align: left; }
  .price-row .pick { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .calc-result { padding: 28px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .timeline::before { display: none; }
  .timeline .step { padding-top: 28px; padding-left: 24px; border-top: 1px solid var(--line); }
  .timeline .step::before { left: 0; top: 28px; transform: none; }
  .quilt { grid-template-columns: 1fr; }
  .quilt .tile.big, .quilt .tile.wide, .quilt .tile.tall, .quilt .tile.std {
    grid-column: span 1; grid-row: auto;
  }
  .cta-bar { padding: 8px 8px 8px 16px; gap: 10px; }
  .cta-bar .pricetxt { font-size: 13px; }
}

/* ============================================
   About hero — weave / DNA animation
   ============================================ */
.about-hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 48px;
}
.about-hero-split__text {
  min-width: 0;
}
.about-hero-split__text .h-display {
  font-size: clamp(40px, 6vw, 96px);
}
.about-hero-split__anim {
  display: flex;
  align-items: center;
  justify-content: center;
}
.weave-scene {
  width: 100%;
  max-width: 420px;
}
.weave-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Threads draw in, then accent threads flow dashes */
.wv-thread {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.4;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: wvDraw 2s ease-out forwards;
}
.wv-accent {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-opacity: 1;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 0;
  animation: wvAccentIn 2s ease-out forwards, wvFlow 2s linear 2s infinite;
}
@keyframes wvDraw { to { stroke-dashoffset: 0; } }
@keyframes wvAccentIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wvFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -120; } }

/* Scan band sweeps across */
.wv-scan {
  animation: wvSweep 5s ease-in-out 2s infinite;
}
@keyframes wvSweep {
  0%   { transform: translateX(0); opacity: 0; }
  5%   { opacity: 1; }
  50%  { transform: translateX(560px); opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateX(560px); opacity: 0; }
}

/* Signature tag fades in */
.wv-tag { opacity: 0; animation: wvFadeUp 0.5s ease-out 2.2s forwards; }
@keyframes wvFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Blinking elements */
.wv-blink { animation: wvBlink 1.2s ease-in-out infinite; }
@keyframes wvBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Rising particles */
.wv-particle {
  animation-name: wvRise;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes wvRise {
  0%   { opacity: 0; transform: translateY(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-380px); }
}

/* Match pulse */
.wv-match { animation: wvMatchPulse 2s ease-in-out 3s infinite; }
@keyframes wvMatchPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Bottom ticker scroll */
.wv-ticker { animation: wvTick 10s linear 3s infinite; }
@keyframes wvTick { from { transform: translateX(0); } to { transform: translateX(-60px); } }

/* Responsive */
@media (max-width: 960px) {
  .about-hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-hero-split__text .h-display {
    font-size: clamp(36px, 10vw, 72px);
  }
  .about-hero-split__anim { overflow: hidden; }
  .weave-scene { max-width: min(360px, 90vw); margin: 0 auto; }
}
@media (max-width: 480px) {
  .weave-scene { max-width: min(280px, 85vw); }
}

/* ============================================
   Hero phone animation — marketplace
   ============================================ */
.hero-mp-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.hero-mp-split__text { min-width: 0; }
.hero-mp-split__text .h-display {
  font-size: clamp(40px, 5.5vw, 86px);
}
.hero-mp-split__anim {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-scene {
  position: relative;
  width: 380px;
  height: 520px;
  max-width: 100%;
  overflow: hidden;
}
.hp-dashes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Phone frame */
.hp-phone {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 240px;
  height: 440px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hpBob 4s ease-in-out infinite;
}
.hp-phone > * {
  position: relative;
  z-index: 1;
}
/* White inner area */
.hp-phone::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  background: white;
  border-radius: 28px;
  z-index: 0;
}

/* Status bar */
.hp-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
}
.hp-time {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.hp-dots {
  font-size: 8px;
  color: var(--ink);
  letter-spacing: 2px;
}

/* Product image area */
.hp-product-img {
  margin: 4px 14px 0;
  height: 170px;
  background: var(--bg-alt);
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.hp-product-box {
  width: 80px;
  height: 90px;
  border-radius: 16px;
  background: var(--accent);
  opacity: 0.85;
}

/* Product info */
.hp-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px 0;
}
.hp-platform {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.hp-price {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Protected badge */
.hp-badge {
  margin: 8px 14px 0;
  background: var(--accent);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: hpPulse 3s ease-in-out infinite;
}
.hp-badge-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  color: white;
}
.hp-badge-check {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Cart button */
.hp-cart {
  margin: 6px 14px 0;
  background: var(--ink);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
}

/* Floating marketplace pills */
.hp-pill {
  position: absolute;
  padding: 14px 22px;
  border-radius: 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: white;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.hp-pill--wb {
  background: #cb11ab;
  top: 60px;
  right: 20px;
  font-size: 22px;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 12px 28px rgba(203,17,171,0.35);
  animation: hpFloat 3s ease-in-out infinite;
}
.hp-pill--ozon {
  background: #005bff;
  top: 230px;
  right: 0;
  font-size: 16px;
  border-radius: 18px;
  padding: 12px 20px;
  box-shadow: 0 12px 28px rgba(0,91,255,0.35);
  animation: hpFloat 3s ease-in-out 0.6s infinite;
}
.hp-pill--ym {
  background: #ffd60a;
  color: var(--ink);
  bottom: 110px;
  right: 30px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 18px;
  padding: 10px 18px;
  box-shadow: 0 12px 28px rgba(255,214,10,0.35);
  animation: hpFloat 3s ease-in-out 1.2s infinite;
}

/* Keyframes */
@keyframes hpBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes hpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,77,35,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,77,35,0); }
}
@keyframes hpFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -8px); }
}

/* Mobile */
@media (max-width: 960px) {
  .hero-mp-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-mp-split__text .h-display {
    font-size: clamp(36px, 10vw, 72px);
  }
  .hero-mp-split__anim {
    justify-content: center;
    overflow: hidden;
  }
  .hp-scene {
    width: min(320px, 85vw);
    height: 460px;
  }
  .hp-phone {
    width: 200px;
    height: 380px;
    left: 10px;
    top: 20px;
  }
  .hp-product-img { height: 130px; }
  .hp-product-box { width: 60px; height: 68px; }
  .hp-price { font-size: 18px; }
  .hp-badge { padding: 10px 14px; }
  .hp-badge-text { font-size: 13px; }
  .hp-pill--wb { width: 52px; height: 52px; font-size: 18px; top: 40px; right: 10px; }
  .hp-pill--ozon { top: 190px; right: 0; font-size: 14px; padding: 10px 16px; }
  .hp-pill--ym { bottom: 80px; right: 20px; font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 480px) {
  .hp-scene { width: min(280px, 80vw); height: 420px; }
  .hp-phone { width: 180px; height: 340px; border-radius: 28px; }
  .hp-phone::after { border-radius: 22px; }
  .hp-product-img { height: 100px; border-radius: 14px; }
  .hp-product-box { width: 48px; height: 54px; border-radius: 12px; }
  .hp-price { font-size: 16px; }
  .hp-badge { border-radius: 10px; padding: 8px 12px; }
  .hp-badge-text { font-size: 12px; }
  .hp-cart { font-size: 13px; padding: 10px; border-radius: 10px; }
  .hp-pill--ozon { right: 5px; }
}

/* ============================================
   Dark strip — marketplace cards
   ============================================ */
.mp-strip {
  background: var(--bg-dark);
  border-radius: 24px;
  padding: 48px 40px;
  margin-top: 48px;
}
.mp-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mp-logo-text {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.mp-logo-text:hover { opacity: 1; }
.mp-logo__img {
  height: clamp(36px, 5vw, 64px);
  width: auto;
  object-fit: contain;
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.mp-logo__img:hover { opacity: 1; }
.mp-logo__img--lamoda {
  height: clamp(60px, 10vw, 130px);
}
.mp-strip__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 28px;
  text-align: center;
}
.mp-strip__footer {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  text-align: center;
  margin-top: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   Marketplace responsive
   ============================================ */
@media (max-width: 960px) {
  .mp-logos { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .mp-strip { padding: 28px 20px; }
  .mp-logo-text { font-size: 16px; }
  .mp-logo__img { height: 28px; }
  .mp-logo__img--lamoda { height: 44px; }
}
@media (max-width: 480px) {
  .mp-logo-text { font-size: 14px; }
  .mp-logo__img { height: 22px; }
  .mp-logo__img--lamoda { height: 36px; }
}

/* ============================================
   Scan animation (04) — risks section
   ============================================ */
.risks-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.scan-anim {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.scan-card {
  position: relative;
  width: 280px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}
.scan-svg { width: 100%; height: auto; display: block; }
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(200,80,35,0) 0%, rgba(200,80,35,0.15) 50%, rgba(200,80,35,0) 100%);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  animation: scanMove 3s ease-in-out infinite;
}
@keyframes scanMove {
  0%   { top: -10%; }
  50%  { top: 90%; }
  100% { top: -10%; }
}
.scan-hud {
  font-family: monospace;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.scan-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.scan-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  animation: scanBlink 1s ease-in-out infinite;
}
@keyframes scanBlink { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Mobile — risks / scan */
@media (max-width: 960px) {
  .risks-split { grid-template-columns: 1fr; }
  .scan-anim { display: none; }
}
