/* ============================================================
   нейросео — landing styles
   White bg, orange accent (#FF5A1F), clean grotesque type
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #16140f;
  --ink-2: #56514a;
  --ink-3: #8c867c;
  --line: #e9e5dd;
  --line-2: #f1eee8;
  --accent: #ff5a1f;
  --accent-700: #e6470f;
  --ink-section: #131210;

  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --shadow-sm: 0 1px 2px rgba(20,18,12,.04);
  --shadow-md: 0 14px 40px -18px rgba(20,18,12,.22);
  --shadow-lg: 0 30px 70px -30px rgba(20,18,12,.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* ---------- modern scrollbar ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(22,20,15,.22) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(22,20,15,.22), rgba(22,20,15,.32));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background .25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-700));
  background-clip: padding-box;
  border: 2px solid transparent;
}
::-webkit-scrollbar-corner { background: transparent; }
html:hover {
  scrollbar-color: rgba(22,20,15,.32) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(64px, 10vw, 132px); }
.section--tight { padding-block: clamp(40px, 7vw, 32px); }

.section-head { max-width: 820px; }
.section-title {
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.04;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.section-sub {
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
  margin: 18px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}

.accent { color: var(--accent); }

/* strike-through word with accent slash */
.strike {
  position: relative;
  white-space: nowrap;
  color: var(--ink-3);
}
.strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  top: 52%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(-4deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-700); box-shadow: 0 12px 24px -10px rgba(255,90,31,.6); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  flex: none;
}
.brand__tag {
  max-width: 220px;
  border-left: 1px solid #d7d9d4;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #101216;
}
.brand__tag--light {
  border-left-color: rgba(255,255,255,.18);
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__contacts { display: flex; flex-direction: column; line-height: 1.35; text-align: right; }
.header__contacts a { font-size: 13.5px; color: var(--ink); transition: color .15s; }
.header__contacts a:hover { color: var(--accent); }
.header__contacts span { font-size: 12px; color: var(--ink-3); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 76px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 48px);
  line-height: 1;
  font-weight: 600;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero__lead {
  color: var(--ink-2);
  font-size: clamp(17px, 1.7vw, 20px);
  margin: 22px 0 0;
  max-width: 520px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__chips {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero__chip svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.hero__chip b {
  font-weight: 600;
  color: var(--ink);
}
.hero__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .03em;
}
@media (min-width: 960px) {
.hero__media {
  position: relative;
  aspect-ratio: 4 / 4.2;
}}
.hero__media image-slot { width: 100%; height: 100%; }
.hero__badge {
  position: absolute;
  left: -8px; bottom: 82px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  animation: hero-badge-float 3.6s ease-in-out infinite;
}
@keyframes hero-badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__badge { animation: none; }
}
.hero__badge b { font-size: 22px; letter-spacing: -.02em; }
.hero__badge span { font-size: 13px; color: var(--ink-2); line-height: 1.25; }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex:none; }

/* ---------- advantages — coverflow swiper ---------- */
.adv {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 64px);
}
.adv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(16px, 4vw, 52px);
}
.adv-head__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.adv-nav {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.adv-nav:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.adv-swiper {
  /* break out of .wrap and span full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 30px 0 50px;
  overflow: hidden;
}
.adv-swiper .swiper-wrapper { align-items: stretch; }
.adv-swiper .swiper-slide {
  width: clamp(400px, 40vw, 540px);
  height: auto;
  opacity: .35;
  transition-property: opacity, transform;
  transition-timing-function: ease;
}
.adv-swiper .swiper-slide-prev,
.adv-swiper .swiper-slide-next {
  opacity: .6;
}
.adv-swiper .swiper-slide-active {
  opacity: 1;
}

/* on wide screens — pump up the active card */
@media (min-width: 1560px) {
  .adv-swiper .swiper-slide { width: clamp(560px, 36vw, 720px); }
}
.adv-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
}
.adv-card__ill {
  position: relative;
  aspect-ratio: 20 / 11;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f4f3ef;
}
.adv-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.adv-card__ill image-slot { width: 100%; height: 100%; }
.adv-card h3 {
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 4px 14px 0;
}
.adv-card p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: 0 14px 14px;
}

/* coverflow pagination */
.adv-pagination {
  position: relative;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.adv-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--ink-3);
  opacity: .35;
  transition: opacity .2s, width .25s, background .2s;
  border-radius: 999px;
}
.adv-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  width: 26px;
}


/* ---------- pain (block 2) ---------- */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.pain__media { aspect-ratio: 5 / 4; }
.pain__media image-slot { width: 100%; height: 100%; }
.pain__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.pain__list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
}
.pain__ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 600;
}
.pain__list p { margin: 0; font-size: 17px; color: var(--ink); }
.pain__list b { font-weight: 600; }

/* ---------- approach (block 3) — ACB-style step circle ---------- */
.approach-section {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  background: #fff;
}

.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.approach-stage { grid-column: 1; grid-row: 1; }
.approach-left  { grid-column: 2; grid-row: 1; }

.approach-left { display: flex; flex-direction: column; gap: 28px; }

/* the orbit circle */
.approach-stage {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}
.approach-stage__art {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.approach-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform .7s cubic-bezier(.22,.85,.3,1);
}
.approach-art image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.approach-art.is-active {
  opacity: 1;
  transform: scale(1);
}
/* white circle background behind photos */
.approach-stage__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 20px 60px -30px rgba(20,18,12,.18);
  z-index: 0;
}

/* CircularProgressbar svgs — two stacked rings (outer thick trail, inner thin animated) */
.approach-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 1;
  overflow: visible;
}
.approach-ring .CircularProgressbar-trail {
  stroke: rgba(22, 20, 15, 0.12);
}
.approach-ring--outer .CircularProgressbar-trail {
  stroke: rgba(22, 20, 15, 0.16);
}
.approach-ring .CircularProgressbar-path {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 311;
  stroke-dashoffset: 311;
  transition: stroke-dashoffset .7s cubic-bezier(.22,.85,.3,1);
}
@media (min-width: 1200px) {
#hero-illustration {
  left: 9% !important;
}}
  #pain-illustration::part(frame) {                                                                                                
    overflow: visible;                                                                                                             
  }       
/* numbered step buttons, positioned on the ring perimeter */
.approach-step {
  --orbit: 50cqi;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--angle, 0deg)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--angle, 0deg)));
  transform-origin: center;
  transition: background .25s, color .25s, border-color .25s, transform .35s ease, box-shadow .25s;
  z-index: 3;
}
.approach-step:hover {
  border-color: var(--accent);
}
.approach-step.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(var(--angle, 0deg)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--angle, 0deg))) scale(1.15);
  box-shadow: 0 14px 30px -12px rgba(20,20,20,.4);
}

/* tap-hint — pointer finger that taps step "2" until user interacts */
.approach-hint {
  --angle: -18deg;
  --orbit: 50cqi;
  --offset: 32px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: 22px 0 0 -16px;
  pointer-events: none;
  z-index: 4;
  color: var(--accent, #ff4a2b);
  opacity: 0;
  transition: opacity .35s ease;
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit) - var(--offset))) rotate(calc(-1 * var(--angle)));
}
.approach-hint.is-on {
  opacity: 1;
  animation: approachHintTap 1.6s cubic-bezier(.5,.05,.4,1) infinite;
}
.approach-hint__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(20,20,20,.25));
}
.approach-hint__ripple {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.approach-hint.is-on .approach-hint__ripple {
  animation: approachHintRipple 1.6s ease-out infinite;
}
@keyframes approachHintTap {
  0%, 100% {
    transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit) - var(--offset))) rotate(calc(-1 * var(--angle))) scale(1);
  }
  45% {
    transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit) - 14px)) rotate(calc(-1 * var(--angle))) scale(.9);
  }
  60% {
    transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit) - 18px)) rotate(calc(-1 * var(--angle))) scale(.92);
  }
}
@keyframes approachHintRipple {
  0%, 40% { opacity: 0; transform: scale(.4); }
  55%     { opacity: .55; transform: scale(1); }
  100%    { opacity: 0; transform: scale(2.4); }
}
@media (prefers-reduced-motion: reduce) {
  .approach-hint.is-on { animation: none; }
  .approach-hint.is-on .approach-hint__ripple { animation: none; opacity: .4; }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .hero h1 {
    font-size: 40px;
  }
}

/* detail panel — light/white version */
.approach-detail {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: 0 0 clamp(60px, 8vw, 120px);
}
.approach-detail__inner { position: relative; }
.approach-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.approach-detail__head--top {
  margin-bottom: clamp(28px, 4vw, 56px);
}
.approach-detail__nav { display: flex; gap: 10px; }
.approach-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.approach-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.approach-detail__stack {
  position: relative;
  min-height: 280px;
}
.approach-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  max-width: 780px;
}
.approach-card.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: .08s;
}
.approach-detail__nav--above-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.approach-card__num { margin-bottom: 18px; color: var(--ink); }
.approach-card__title {
  font-size: clamp(22px, 2.4vw, 18px);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
}
.approach-card__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.approach-card__sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.approach-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.approach-card__list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.approach-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px;
}

/* ---------- calculator (block 4) ---------- */
#calc { background: transparent; padding: 0; margin: 0; color: inherit; }
#calc > .wrap {
  max-width: calc(var(--maxw) + 80px);
  background: var(--accent);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='140' viewBox='0 0 280 140'><path d='M0 35 C 46 5, 94 65, 140 35 S 234 5, 280 35' fill='none' stroke='%23ffffff' stroke-width='1.6' opacity='0.18'/><path d='M0 105 C 46 75, 94 135, 140 105 S 234 75, 280 105' fill='none' stroke='%23ffffff' stroke-width='1.6' opacity='0.18'/></svg>");
  background-repeat: repeat;
  background-size: 280px 140px;
  color: #fff;
  border-radius: clamp(20px, 2.4vw, 36px);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  margin-block: clamp(40px, 6vw, 80px);
}
#calc .section-title { color: #fff; }
#calc .section-sub { color: rgba(255, 255, 255, .82); }
.calc__grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: stretch;
}
.calc__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 32px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 48px);
  row-gap: clamp(22px, 2.5vw, 28px);
}
.calc__panel .field { margin-bottom: 0; }
.calc__panel .field:nth-child(3) { grid-column: 1 / -1; }
.field { margin-bottom: 30px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
}
.field__label span { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.field__val { font-size: 19px; font-weight: 500; color: var(--ink); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: var(--line); outline: none; margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 4px solid #fff; box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
  transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 4px solid #fff; box-shadow: 0 0 0 1px var(--accent);
}
.field__scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--ink-3); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  color: black;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--ink-3); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--line); flex: none;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.check__box svg { opacity: 0; transform: scale(.6); transition: .15s; color: #fff; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check:has(input:checked) { border-color: var(--accent); }

/* results — three tariffs in a row, prices at the bottom of each card */
.results {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.result-card--feature { border-color: var(--accent); box-shadow: 0 18px 24px -26px rgba(255,90,31,.55); }
.result-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-card__name { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.result-card__tag {
  font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 9px;
}
.result-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.18; margin: 6px 0 0; }
.result-card__desc { color: var(--ink-2); font-size: 13px; line-height: 1.45; margin: 10px 0 0; flex-grow: 1; }
.result-card__price {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-2);
}
.result-card__price b { font-weight: 700; color: var(--ink); font-size: 16px; }

.metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
}
.metric:nth-last-of-type(2) { border-bottom: 0; }
.metric__k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.metric__v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;color: #131210; }
.metric__v small { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }

/* focal leads cell — colored fill, white number; tier-specific accents */
.metric--leads {
  --leads-bg: var(--accent);
  --leads-shadow: rgba(255,90,31,.32);
  margin-top: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--leads-bg);
  box-shadow: 0 14px 28px -18px var(--leads-shadow);
  align-items: center;
}
.metric--leads .metric__k {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.metric--leads .metric__v {
  color: #fff;
  font-size: 26px;
  letter-spacing: -.02em;
}
.metric--leads .metric__v small { color: rgba(255,255,255,.78); }

.result-card[data-tariff="base"]  .metric--leads { --leads-bg: #ff5a1f; --leads-shadow: rgba(255,90,31,.36); }
.result-card[data-tariff="key"]   .metric--leads { --leads-bg: #e11d48; --leads-shadow: rgba(225,29,72,.36); }
.result-card[data-tariff="aggro"] .metric--leads { --leads-bg: #7c3aed; --leads-shadow: rgba(124,58,237,.36); }

.calc__hint { margin-top: 16px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ---------- direct (block 5) ---------- */
.direct__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.direct__media { aspect-ratio: 4 / 4.4; }
.direct__media image-slot { width: 100%; height: 100%; }
.direct__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.direct__list li { display: flex; gap: 15px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.direct__list li::before {
  content: "✓"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px;
  margin-top: 1px;
}
.direct__list b { font-weight: 700; }

/* ---------- cases (block 6) ---------- */
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cases__banner {
  margin-top: clamp(20px, 2.5vw, 32px);
  aspect-ratio: 16 / 7;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cases__banner image-slot { width: 100%; height: 100%; display: block; }
.cases__nav { display: flex; gap: 10px; }
.cases__nav button {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--ink);
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.cases__nav button:hover { border-color: var(--ink); }
.cases__nav button:active { transform: scale(.94); }
.cases__nav button:disabled { opacity: .35; cursor: default; }

/* Swiper cases track */
.cases-swiper {
  margin: clamp(32px, 4vw, 48px) auto 0;
  width: 100%;
  max-width: 100%;
  height: min(640px, calc(100svh - 220px));
  min-height: 360px;
}
.cases-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
}
.cases-swiper .swiper-slide.cases-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  padding: 0;
  background: var(--line);
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.mini-case {
  display: flex;
  flex-direction: row;
  background: #fff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.mini-case__shot {
  flex: 1.05;
  position: relative;
  border-right: 1px solid var(--line);
  min-width: 0;
  background: var(--line-2);
}
.mini-case__shot image-slot { width: 100%; height: 100%; display: block; }
.mini-case__shot-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  padding: 3px 7px; border-radius: 5px;
  z-index: 2;
}
.mini-case__body {
  flex: 1;
  padding: clamp(10px, 1.2vw, 14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.mini-case__niche {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-2);
  flex: none;
}
.mini-case__niche image-slot { width: 100%; height: 100%; display: block; }
/* cursors:
   - photos    → zoom-in (Fancybox)
   - elsewhere → grab / grabbing (swipe)
   !important needed: Swiper's cube effect can set inline cursor on the
   swiper root, which would otherwise leak onto photos.                */
.cases-swiper,
.cases-swiper .swiper-wrapper,
.cases-swiper .swiper-slide,
.cases-swiper .cases-page,
.cases-swiper .mini-case,
.cases-swiper .mini-case__body,
.cases-swiper .mini-case__metrics,
.cases-swiper .mini-case__metric,
.cases-swiper .mini-case__metric *,
.cases-swiper .mini-case__domain,
.cases-swiper .mini-case__domain * { cursor: grab !important; }
.cases-swiper.swiper-grabbing,
.cases-swiper.swiper-grabbing .swiper-wrapper,
.cases-swiper.swiper-grabbing .swiper-slide,
.cases-swiper.swiper-grabbing .cases-page,
.cases-swiper.swiper-grabbing .mini-case,
.cases-swiper.swiper-grabbing .mini-case__body,
.cases-swiper.swiper-grabbing .mini-case__metrics,
.cases-swiper.swiper-grabbing .mini-case__metric,
.cases-swiper.swiper-grabbing .mini-case__metric *,
.cases-swiper.swiper-grabbing .mini-case__domain,
.cases-swiper.swiper-grabbing .mini-case__domain * { cursor: grabbing !important; }
.cases-swiper .case__shot,
.cases-swiper .case__shot *,
.cases-swiper .mini-case__shot,
.cases-swiper .mini-case__shot * { cursor: zoom-in !important; }
.cases-swiper .case__niche,
.cases-swiper .case__niche *,
.cases-swiper .mini-case__niche,
.cases-swiper .mini-case__niche * { cursor: grab !important; }
.cases-swiper.swiper-grabbing .case__niche,
.cases-swiper.swiper-grabbing .case__niche *,
.cases-swiper.swiper-grabbing .mini-case__niche,
.cases-swiper.swiper-grabbing .mini-case__niche * { cursor: grabbing !important; }
/* tag pill on the screenshot is non-interactive (no zoom there) */
.cases-swiper .case__shot-tag,
.cases-swiper .mini-case__shot-tag { cursor: default !important; pointer-events: none; }
/* cube back-face / shadows must not eat hit-tests on the front slide */
.cases-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-prev) { pointer-events: none; }
/* swiper cube shadow overlays should never block clicks/hover */
.cases-swiper .swiper-cube-shadow,
.cases-swiper .swiper-slide-shadow-top,
.cases-swiper .swiper-slide-shadow-bottom,
.cases-swiper .swiper-slide-shadow-left,
.cases-swiper .swiper-slide-shadow-right { pointer-events: none; }
.mini-case__domain {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-case__domain .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.mini-case__metrics { display: flex; gap: 14px; }
.mini-case__metric { min-width: 0; }
.mini-case__metric small { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: block; margin-bottom: 4px; }
.mini-case__metric b { font-size: clamp(15px, 1.5vw, 19px); font-weight: 700; letter-spacing: -.02em; line-height: 1; display: block; white-space: nowrap; }
.mini-case__metric b.up { color: var(--accent); }
@media (max-width: 760px) {
  .cases-swiper .swiper-slide.cases-page {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
  .cases-swiper { height: min(1040px, calc(100svh - 120px)); min-height: 720px; }
  .mini-case__niche { aspect-ratio: 16 / 7; }
  .mini-case__body { padding: 10px 12px; gap: 6px; }
  .mini-case__metric small { font-size: 9px; margin-bottom: 2px; }
  .mini-case__metric b { font-size: 15px; }
}
/* fallback when Swiper fails to load */
.no-swiper .swiper-wrapper { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.no-swiper .swiper-wrapper::-webkit-scrollbar { display: none; }

.cases__track {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(440px, 82vw);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.cases__track::-webkit-scrollbar { display: none; }
.case {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 20px -40px rgba(20,18,12,.28);
}
.case__shot {
  flex: 1.85;
  border-right: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.case__shot image-slot { width: 100%; height: 100%; }
.case__shot-tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px;
}
.case__body { flex: 1; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.case__domain {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.case__domain .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.case__niche { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; }
.case__niche image-slot { width: 100%; height: 100%; }
.case__metrics { display: flex; gap: clamp(28px, 4vw, 56px); margin-top: auto; }
.case__metric small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); display: block; margin-bottom: 6px; }
.case__metric b { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.case__metric b.up { color: var(--accent); }

/* ---------- ratings (block 7) ---------- */
.ratings-section {
  background: #fff;
  padding-block: clamp(56px, 8vw, 120px);
}
.ratings-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
.ratings-intro { max-width: 540px; }
.ratings-sub {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  text-wrap: pretty;
}
.hero__chip span { max-width: 460px; }

/* ratings cards (Swiper effect: cards) — minimal styles, like the official demo */
.ratingsSwiper { width: 225px; height: 380px; margin: 0 auto; }
.ratingsSwiper .swiper-slide {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(20,18,12,.28), 0 0 0 1px var(--line);
}
.ratingsSwiper .swiper-slide img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  background: var(--line-2);
  box-sizing: border-box;
}
.ratingsSwiper .rating-meta {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-2);
}
.ratingsSwiper .rating-meta b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.ratingsSwiper .rating-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ---------- final CTA (block 8) ---------- */
.final-cta {
  background: #fff;
  padding-block: clamp(56px, 8vw, 120px);
}
.final-cta__grid {
  display: grid;
  grid-template-columns: 0.72fr 0.98fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.final-cta__preview { grid-column: 1; grid-row: 1; }
.final-cta__text    { grid-column: 2; grid-row: 1; }
.final-cta__title {
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.04;
  margin: 0;
  font-weight: 600;
  max-width: 720px;
  text-wrap: balance;
  color: var(--ink);
}
.final-cta__sub {
  margin: 22px 0 32px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  text-wrap: pretty;
}
.final-cta__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.final-cta__preview image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 960px) {
  .ratings-grid { grid-template-columns: 1fr; }
  .final-cta__grid { grid-template-columns: 1fr; }
  .final-cta__preview { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 11; }
  .final-cta__text    { grid-column: 1; grid-row: 2; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink-section); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer__about { color: rgba(255,255,255,.6); font-size: 15px; margin: 18px 0 0; max-width: 320px; }
.footer__col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 500; margin: 0 0 16px; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,.8); font-size: 15px; margin: 0 0 11px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.footer__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- lead form (fancybox inline) ---------- */
.lead-form {
  position: relative;
  padding: 28px 32px;
  width: min(640px, 94vw);
  border-radius: var(--r-lg);
  background: #fff;
  box-sizing: border-box;
  overflow: visible;
}
.lead-form__head { margin-bottom: 20px; }
.lead-form__title { font-size: 24px; font-weight: 600; line-height: 1.15; margin: 0; }
.lead-form__sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.lead-form__form { display: grid; gap: 12px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form__field { display: grid; gap: 6px; }
.lead-form__label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.lead-form__opt { color: var(--ink-3); font-weight: 400; }
.lead-form__field input,
.lead-form__field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lead-form__field textarea { resize: vertical; min-height: 72px; line-height: 1.4; }
.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder { color: var(--ink-3); }
.lead-form__field input:focus,
.lead-form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,31,.16);
}
.lead-form__field.is-error input,
.lead-form__field.is-error textarea {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225,29,72,.14);
}
.lead-form__hint {
  margin: 2px 0 0;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(255,90,31,.06);
  border: 1px solid rgba(255,90,31,.18);
  border-radius: 10px;
  line-height: 1.4;
}
.lead-form__submit { margin-top: 4px; padding: 14px 26px; font-size: 16px; }
.lead-form__submit[disabled] { opacity: .6; cursor: progress; }
.lead-form__legal { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; text-align: center; }
.lead-form__legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.lead-form__legal a:hover { color: var(--accent); }
.lead-form__success { display: none; padding: 16px 0 6px; text-align: center; }
.lead-form.is-success .lead-form__form { display: none; }
.lead-form.is-success .lead-form__head { display: none; }
.lead-form.is-success .lead-form__success { display: block; }
.lead-form__success-ico {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 32px -16px rgba(255,90,31,.6);
}
.lead-form__success-ico svg { width: 36px; height: 36px; }
.lead-form__success h3 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.lead-form__success p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 640px) {
  .lead-form { padding: 22px 20px; }
  .lead-form__title { font-size: 21px; }
  .lead-form__sub { font-size: 14px; }
  .lead-form__row { grid-template-columns: 1fr; }
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20,18,12,.6); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-lg);
  width: min(820px, 100%); max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .24s cubic-bezier(.2,.8,.25,1);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal__head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.modal__close:hover { border-color: var(--ink); }
.modal__body { padding: 26px; }
.modal__shot { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.modal__shot image-slot { width: 100%; height: 100%; }
.modal__cap { margin-top: 16px; color: var(--ink-2); font-size: 15px; }

/* Fancybox inline content */
.fbox { padding: 30px; width: min(760px, 90vw); }
.fbox h3 { margin: 0 0 18px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.fancybox__content { border-radius: var(--r-lg);}
.fancybox__content > .carousel__button.is-close { color: var(--ink); top: 14px; right: 14px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* reveal animations are handled by WOW.js + animate.css.
   WOW sets visibility:hidden on .reveal elements until they enter viewport. */
.reveal.animate__animated {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { visibility: visible !important; }
  .reveal.animate__animated { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16/11; max-height: 100%; }
  .pain__grid, .direct__grid { grid-template-columns: 1fr; }
  .direct__media { aspect-ratio: 16/12; max-height: 380px; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__panel { position: static; grid-template-columns: 1fr; }
  .calc__panel .field:nth-child(3) { grid-column: 1; }
  .results { grid-template-columns: 1fr; }
  .approach-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: clamp(60px, 8vw, 120px); }
  .approach-stage { grid-column: 1; grid-row: 1; width: min(440px, 80vw); }
  .approach-left  { grid-column: 1; grid-row: 2; }
  .approach-step { width: 50px; height: 50px; margin: -25px 0 0 -25px; font-size: 15px; }
  .approach-hint { width: 38px; height: 38px; margin: -19px 0 0 -19px; --offset: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .header__cta .btn--ghost { display: none; }
  .adv-swiper .swiper-slide { width: 80vw; }
  .approach-stage { width: 90vw; }
  .approach-step { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 14px; }
  .approach-hint { width: 34px; height: 34px; margin: -17px 0 0 -17px; --offset: 28px; }
  .approach-detail__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .approach-detail__nav { align-self: flex-end; }
  .checks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
      .hero__media {
        aspect-ratio: 14/11;
      }
}
@media (max-width: 960px) {
  #pain-illustration::part(frame) {
    overflow: hidden;
  }
  .hero__badge {
    display: none;
  }
    .approach-hint {
    width: 30px;
    height: 30px;
    margin: 20px 0 0 -10px;
    --offset: 22px;
  }
}

@media (max-width: 480px) {
  .adv-head { gap: 12px; }
  .adv-head .section-title { flex: 1; min-width: 0; }

  /* ===== Цикл нейросео — мобильная версия ===== */
  .approach-section { padding-top: clamp(48px, 12vw, 72px); }
  .approach-layout { gap: 24px; padding-bottom: 48px; }
  .approach-stage { width: min(320px, 78vw); }
  .approach-step {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    font-size: 13px;
    border-width: 1px;
  }
  .approach-step.is-active {
    transform: rotate(var(--angle, 0deg)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--angle, 0deg))) scale(1.12);
    box-shadow: 0 8px 18px -8px rgba(20,20,20,.45);
  }
  .approach-detail { padding-bottom: 48px; }
  .approach-detail__head--top { margin-bottom: 60px; }
  .approach-detail__nav--above-cards { margin-bottom: 14px; }
  .approach-nav { width: 42px; height: 42px; }
  .approach-detail__stack { min-height: 240px; }
  .approach-card__title { font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
  .approach-card__lead { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
  .approach-card__sub { font-size: 13px; margin-bottom: 10px; }
  .approach-card__list { gap: 8px; }
  .approach-card__list li { font-size: 14.5px; line-height: 1.5; padding-left: 26px; }
  .approach-card__list li::before { width: 16px; height: 16px; background-size: 10px; top: 4px; }
}

@media (max-width: 1180px) {
  .nav {
    display: none;
  }
}
@media (max-width: 870px) {
  .brand__logo {
    height: 30px;
  }

  .brand__tag {
    max-width: 170px;
    font-size: 13.5px;
  }

  .header__contacts {
    display: none;
  }
}
@media (max-width: 540px) {
  .brand__tag {
    display: none;
  }
  .hero__note {
    display: none;
  }
      .hero__media {
        aspect-ratio: 11/11;
        margin-top: -30px;
      }
    .section-title {
      font-size: 28px;
    }
    .section.hero {
      padding-top: 0;
    }
    .hero__grid {
      gap: 0;
    }
        .direct__media {
          aspect-ratio: 13/12;
        }
        .pain__media {
          aspect-ratio: 4/4;
        }
}
@media (max-width: 412px) {
  .hero h1 {
    font-size: 30px;
  }
}