/* ============================================================
   DST Sales — премиум тёмная тема (лаймовый акцент)
   Дизайн-токены в :root → лёгкая смена бренда и перенос в Tailwind.
   ============================================================ */

:root {
  /* Цвета: фон и поверхности (глубокий тёмно-зелёный «премиум») */
  --bg: #080d0a;
  --bg-2: #0a120d;
  --surface: #0f1813;
  --surface-2: #14211a;
  --surface-3: #1b2c22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Текст */
  --text: #e9eef6;
  --text-muted: #9aa7b8;
  --text-dim: #66748a;

  /* Акцент — премиальный изумруд (рост) + золото (статус) для люкс-деталей */
  --accent: #16b886;
  --accent-2: #34d6a0;
  --accent-strong: #0c8f68;
  --accent-soft: rgba(22, 184, 134, 0.12);
  --accent-glow: rgba(22, 184, 134, 0.32);
  --accent-ink: #04150e; /* тёмный текст на изумрудных кнопках */
  --gold: #e3c585;
  --gold-2: #f0d49a;
  --gold-soft: rgba(227, 197, 133, 0.14);
  --danger: #f87171;

  /* Типографика */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Геометрия */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Тени */
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 16px 40px -12px var(--accent-glow);

  /* Тайминги */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / база ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scroll-snap-type: y proximity; /* мягкое «прилипание» к блокам при прокрутке */
  -webkit-text-size-adjust: 100%;
}
/* Каждая секция — точка остановки (выравнивание по верху с учётом шапки) */
main > section { scroll-snap-align: start; scroll-snap-stop: normal; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(22, 184, 134, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, rgba(227, 197, 133, 0.045), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.accent-text { color: var(--accent-2); }
.dim { color: var(--text-dim); font-size: 0.85em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-sm);
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap; text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  color: var(--accent-ink); box-shadow: var(--shadow-accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-2); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow { color: var(--accent-2); font-weight: 700; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 20, 0.9); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong)); color: var(--accent-ink);
}
.logo__text strong { color: var(--accent-2); }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { color: var(--text-muted); font-weight: 600; font-size: 15px; transition: color var(--t); }
.nav a:hover { color: var(--text); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; font-size: 15px; color: var(--text); }
.header__phone:hover { color: var(--accent-2); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 14px var(--gutter) 24px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
/* Уважаем атрибут hidden (иначе display:flex его перебивает) */
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: none; margin-top: 12px; }
.mobile-menu .btn { color: var(--accent-ink); }

/* ---------- Секции (общее) ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section__title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.section__lead { margin-top: 16px; color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero__glow {
  position: absolute; top: -200px; right: -160px; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%); opacity: 0.5; filter: blur(20px);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(22, 184, 134, 0.25);
  color: var(--accent-2); font-weight: 700; font-size: 14px; margin-bottom: 22px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero__title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; }
.hero__subtitle { margin-top: 22px; font-size: clamp(16px, 2.1vw, 20px); color: var(--text-muted); max-width: 600px; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 26px; color: var(--text-muted); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__trust strong { color: var(--text); }
.stars { color: var(--gold); letter-spacing: 2px; }

.stat-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}
.stat-card__big { font-size: clamp(56px, 9vw, 86px); font-weight: 800; line-height: 1; color: var(--accent-2); letter-spacing: -0.03em; }
.stat-card__label { margin-top: 12px; color: var(--text-muted); font-size: 16px; }
.stat-card__divider { height: 1px; background: var(--border); margin: 26px 0 22px; }
.stat-card__mini { display: flex; justify-content: space-between; gap: 12px; }
.stat-card__mini li { display: flex; flex-direction: column; gap: 4px; }
.stat-card__mini b { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-card__mini span { font-size: 12.5px; color: var(--text-dim); line-height: 1.3; }
.stat-card__note { margin-top: 22px; font-size: 12px; color: var(--text-dim); }

/* ---------- Логотипы ---------- */
.logos { padding: 40px 0; border-block: 1px solid var(--border); background: var(--bg-2); }

/* Пилюля-подпись над лентой */
.logos__pill-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.logos__pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: 14.5px;
}
.logos__pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Бесконечная горизонтальная лента (marquee) с затуханием по краям */
.marquee {
  position: relative; overflow: hidden;
  pointer-events: none; /* лента некликабельна и не «залипает» от тапа/hover — просто крутится */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; } /* статичный fallback без JS */
.marquee.is-animated .marquee__track {
  flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content;
  animation: marquee-x 38s linear infinite;
  will-change: transform;
}
.marquee.is-animated:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Монохромные логотипы прямо на тёмном фоне (белые силуэты, единый размер) */
.logo-tile { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.logo-tile img {
  height: 54px; width: auto; object-fit: contain; display: block;
  opacity: 0.6; transition: opacity var(--t);
}
.logo-tile:hover img { opacity: 1; }
.marquee.is-animated .logo-tile { margin: 0 18px; } /* зазор через margin → бесшовный цикл при -50% */

@media (max-width: 640px) {
  .logo-tile img { height: 44px; }
  .marquee.is-animated .logo-tile { margin: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .marquee.is-animated .logo-tile { margin: 0; }
}

/* ---------- Боли ---------- */
.problems { background: var(--bg); }
.pain-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color var(--t), transform var(--t);
}
.pain-card:hover { border-color: rgba(248, 113, 113, 0.4); transform: translateY(-3px); }
.pain-card__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.12); color: var(--danger); font-size: 18px; font-weight: 800; margin-bottom: 16px;
}
.pain-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.pain-card p { color: var(--text-muted); font-size: 15.5px; }
.problems__cta { text-align: center; margin-top: 44px; font-size: 19px; font-weight: 600; }

/* ---------- Услуги ---------- */
.service-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); font-size: 26px; margin-bottom: 18px;
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15.5px; }
.tag-inline { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 700; }
.service-card--accent { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.service-card__link { display: inline-block; margin-top: 14px; color: var(--accent-2); font-weight: 700; font-size: 15px; }
.service-card__link:hover { text-decoration: underline; }

/* ---------- Почему мы ---------- */
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color var(--t), transform var(--t);
}
.why-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.why-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); font-size: 24px; margin-bottom: 16px;
}
.why-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Результаты / метрики ---------- */
.metric {
  text-align: center; padding: 34px 24px; background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}
.metric:hover { border-color: var(--accent); transform: translateY(-4px); }
.metric__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent-2);
}
.metric__icon svg { width: 28px; height: 28px; }
.metric__num { font-size: clamp(40px, 6vw, 56px); font-weight: 800; color: var(--accent-2); line-height: 1; letter-spacing: -0.03em; }
.metric__label { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.results__note { text-align: center; margin-top: 26px; color: var(--text-dim); font-size: 14px; }

/* ---------- Этапы / таймлайн ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; }
.timeline__item::marker { content: none; }
.timeline__item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.timeline__num { font-size: 40px; font-weight: 800; color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent); display: block; margin-bottom: 14px; }
.timeline__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.timeline__body p { color: var(--text-muted); font-size: 15px; }
.timeline__tag { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 700; }

/* ---------- Кейсы ---------- */
.case-card {
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px;
  transition: border-color var(--t), transform var(--t);
}
.case-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.case-card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.case-card__icon svg { width: 24px; height: 24px; }
/* Реальный логотип компании (белый mono) на карточке кейса */
.case-card__logo { display: flex; align-items: center; height: 46px; margin-bottom: 14px; }
.case-card__logo img { height: 44px; width: auto; max-width: 165px; object-fit: contain; opacity: 0.95; }
.case-card__industry { display: block; min-height: 1.4em; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); }
.case-card__top h3 { font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: 8px; min-height: 2.4em; }
/* «было→стало»: подписи в 1 строку, одинаковая высота у всех карточек */
.case-card__beforeafter { display: flex; align-items: stretch; gap: 12px; padding: 16px; background: var(--bg-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ba { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ba__label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2; min-height: 1.4em; white-space: nowrap; }
.ba__val { font-size: clamp(20px, 2vw, 27px); font-weight: 800; line-height: 1.1; min-height: 1.7em; }
.ba__unit { display: block; font-size: 0.56em; font-weight: 700; opacity: 0.92; margin-top: 2px; }
.ba__val--bad { color: var(--danger); }
.ba__val--good { color: var(--accent-2); }
.case-card__text { color: var(--text-muted); font-size: 15px; }
.case-card__text b { color: var(--text); }
.case-card__result { margin-top: auto; padding: 14px 16px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--accent-2); font-weight: 700; font-size: 16px; }

/* ---------- Отзывы ---------- */
.review-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--t), transform var(--t);
}
.review-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.review-card__quote { position: absolute; top: 8px; right: 22px; font-size: 88px; line-height: 1; color: var(--gold); opacity: 0.16; font-family: Georgia, serif; pointer-events: none; }
.person__logo { margin-left: auto; height: 30px; width: auto; max-width: 104px; object-fit: contain; opacity: 0.85; flex-shrink: 0; }
.review-card__stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.review-card blockquote { font-size: 16.5px; color: var(--text); line-height: 1.6; position: relative; }
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.person__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent-strong)); color: var(--accent-ink); font-weight: 800; font-size: 16px; }
.person__meta { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.person__meta b { font-size: 15px; }
.person__meta span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- О команде ---------- */
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  display: grid; place-items: center; text-align: center; color: var(--text-dim); font-weight: 600;
}
.about__photo small { color: var(--accent-2); }
.about__stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 28px 0 30px; }
.about__stats > div { display: flex; flex-direction: column; }
.about__stats b { font-size: 38px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.about__stats span { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- Тарифы ---------- */
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color var(--t), transform var(--t);
}
.plan-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.plan-card--featured { border-color: var(--accent); background: linear-gradient(175deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-accent); }
.plan-card__badge { position: absolute; top: -12px; right: 24px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1d05; font-size: 13px; font-weight: 800; }
.plan-card__name { font-size: 21px; font-weight: 700; }
.plan-card__price { font-size: 30px; font-weight: 800; color: var(--accent-2); }
.plan-card__price span { font-size: 18px; color: var(--text-muted); }
.plan-card__desc { color: var(--text-muted); font-size: 15px; }
.plan-card__list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.plan-card__list li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 15px; }
.plan-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.plan-card .btn { margin-top: auto; }
.pricing__note { text-align: center; margin-top: 24px; }

/* ---------- Лид-секция / форма ---------- */
.lead { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.lead__inner { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.lead__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.lead__lead { margin-top: 16px; color: var(--text-muted); font-size: 18px; }
.lead__list { margin: 26px 0; display: flex; flex-direction: column; gap: 14px; }
.lead__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; }
.check { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; font-size: 13px; margin-top: 2px; }
.lead__scarcity { padding: 14px 18px; background: var(--gold-soft); border: 1px solid rgba(227,197,133,0.28); border-radius: var(--radius-sm); color: var(--gold-2); font-weight: 600; font-size: 15px; }
.lead__guarantee { margin-top: 12px; color: var(--text-muted); font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }

.lead__form-wrap { position: relative; }
.lead-form { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); }
.lead-form__title { font-size: 23px; font-weight: 800; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color var(--t);
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.is-invalid .field__error { display: block; }
.lead-form button[type="submit"] { margin-top: 8px; }
.lead-form__trust { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--text-dim); }
.lead-form__alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim); }
.msg { font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); transition: var(--t); }
.msg--wa:hover { color: #25d366; border-color: #25d366; }
.msg--tg:hover { color: #29a9eb; border-color: #29a9eb; }

.lead-success { text-align: center; background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 48px 32px; box-shadow: var(--shadow-accent); }
.lead-success__icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent-strong)); color: var(--accent-ink); font-size: 32px; font-weight: 800; }
.lead-success h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lead-success p { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--accent-2); transition: transform var(--t); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; color: var(--text-muted); font-size: 15.5px; }

/* ---------- Финальный CTA ---------- */
.final-cta__box {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px); box-shadow: var(--shadow-accent);
}
.final-cta__box::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 360px; background: radial-gradient(circle, var(--accent-glow), transparent 65%); opacity: 0.45; pointer-events: none; }
.final-cta__box h2 { position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; max-width: 760px; margin: 0 auto; }
.final-cta__box p { position: relative; margin: 18px auto 30px; color: var(--text-muted); font-size: 18px; max-width: 620px; }
.final-cta__sub { position: relative; display: block; margin-top: 16px; font-size: 14px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-muted); font-size: 15px; padding: 5px 0; transition: color var(--t); }
.footer__col a:hover { color: var(--accent-2); }
.footer__tagline { color: var(--text-muted); font-size: 15px; margin-top: 14px; max-width: 280px; }
.footer__socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.footer__socials a { padding: 0; }
.footer__brand .btn { display: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-dim); }
.footer__bottom a:hover { color: var(--accent-2); }

/* ---------- Липкая мобильная CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 20, 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  transform: translateY(120%); transition: transform var(--t);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ---------- Scroll-reveal (плавное появление блоков + каскад) ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
/* На десктопе мобильное меню недоступно — бургера нет, меню не показываем */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 980px) {
  .nav, .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stat { max-width: 480px; }
  .about__inner { grid-template-columns: 1fr; }
  .lead__inner { grid-template-columns: 1fr; }
  .lead__form-wrap { order: -1; }            /* на мобиле форма первой → CTA ведёт прямо к ней */
  .faq__inner { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand .btn { display: inline-flex; margin-top: 6px; }
  .hero__cta .btn { width: 100%; }
  .about__stats { gap: 20px; }
  .sticky-cta { display: block; }
  .stat-card { padding: 28px 22px; }
  .stat-card__mini { flex-wrap: wrap; gap: 16px; }
  .logos__pill { font-size: 12.5px; padding: 8px 15px; line-height: 1.35; gap: 8px; }
  .logos__pill-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--accent-soft); flex-shrink: 0; }
  .logos { padding: 30px 0; }
  .lead-form { padding: 26px 20px; }
  .final-cta__box { padding: 40px 22px; }
  .case-card, .service-card, .plan-card, .why-card, .review-card { padding: 24px 22px; }
  .case-card__beforeafter { padding: 14px; }
  /* чуть больше воздуха под основным контентом из-за липкой кнопки */
  main { padding-bottom: 8px; }
}

/* ---- Горизонтальные ленты на мобиле: кейсы и отзывы (нативный скролл — надёжно на iOS) ---- */
@media (max-width: 760px) {
  /* на мобиле выключаем вертикальный scroll-snap — иначе скролл «прилипает» и дёргается */
  html { scroll-snap-type: none; }
  .cases__grid,
  .reviews__grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    align-items: stretch;                 /* одинаковая высота карточек */
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;    /* инерционный свайп на iOS */
    scroll-snap-type: x mandatory;        /* карточка чётко встаёт по месту */
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    scroll-padding-left: var(--gutter);
  }
  .cases__grid::-webkit-scrollbar,
  .reviews__grid::-webkit-scrollbar { display: none; }
  .cases__grid > .case-card,
  .reviews__grid > .review-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
    opacity: 1;          /* в ленте карточки сразу видимы */
    transform: none;
  }
  /* на тач-устройствах не залипает hover (рамка/сдвиг) */
  .cases__grid > .case-card:hover,
  .reviews__grid > .review-card:hover {
    transform: none;
    border-color: var(--border);
  }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  html { scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
