/* ============================================
   NFH Funnel — Design System v3
   Unified alignment: center
   ============================================ */

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --gold: #E5A83B;
  --gold-hover: #f0b94e;
  --gold-glow: rgba(229, 168, 59, 0.2);
  --white: #FFFFFF;
  --gray-300: #E0E0E0;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-700: #333333;
  --green: #22C55E;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(229, 168, 59, 0.3);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --max-w: 1100px;
  --r: 8px;
  --r-sm: 6px;
  --ease: cubic-bezier(0.25, 0, 0.2, 1);
}

/* === Reset === */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; color-scheme: dark; }
body { font-family: var(--font); background: var(--bg); color: var(--gray-300); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.gold { color: var(--gold); }

/* === Container === */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* === Section (все секции — центр) === */

.section {
  padding: 96px 0;
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0 auto 16px;
  max-width: 800px;
  text-wrap: balance;
}

.section__subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin: 0 auto 48px;
  max-width: 650px;
  line-height: 1.6;
}

.section__cta {
  margin-top: 48px;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--r);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 24px var(--gold-glow);
  transform: translateY(-2px);
}

.btn--large { font-size: 17px; padding: 18px 40px; }
.btn--small { font-size: 14px; padding: 10px 24px; }

/* === Header === */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; padding: 4px 0; }
.header__logo img { height: 36px; }

/* === Hero === */

.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgb(0, 0, 0)), url('assets/hero-bg-desktop.jpg') center/cover no-repeat;
}

/* Мобильная версия hero-bg: 35KB вместо 516KB (87% экономии трафика) */
@media (max-width: 768px) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgb(0, 0, 0)), url('assets/hero-bg-mobile.jpg') center/cover no-repeat;
  }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 168, 59, 0.25), transparent);
}

.hero__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__highlight {
  font-size: 1.15em;
}

.hero__subtitle {
  font-size: 19px;
  color: var(--gray-300);
  line-height: 1.65;
  margin: 0 auto 12px;
  max-width: 700px;
}

.hero__subtext {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 700px;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* === Scheme Cards === */

.schemes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(229, 168, 59, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.card__icon { width: 48px; height: 48px; margin-bottom: 20px; }
.card__title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--gray-400); line-height: 1.6; }

/* === Video === */

.video-myth__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  text-align: left;
}

.video-myth__player {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-myth__points ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-myth__points li {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.video-myth__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.video-myth__points li strong { color: var(--white); }

/* === Process === */

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process__step {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px 20px;
  transition: all 0.3s var(--ease);
}

.process__step:hover {
  border-color: rgba(229, 168, 59, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.process__step-number {
  font-size: 44px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.process__step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.process__step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.process__step-text {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.process__connector { display: none; }

/* === Stats === */

.stats {
  padding: 64px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  margin: 0 auto;
  max-width: var(--max-w);
}

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

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stats__number, .stats__number-text {
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stats__plus {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
}

.stats__label {
  font-size: 15px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* === Team === */

.team__slider {
  display: flex;
  margin-top: 40px;
  overflow: hidden;
  /* без gap — одна карточка видна, gap ломал transform */
}

.team__card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 36px;
  text-align: left;
  transition: transform 0.5s ease;
}

.team__photo {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
}

.team__name { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.team__role { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.team__education { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; line-height: 1.5; }

.team__stat {
  font-size: 15px;
  color: var(--gray-300);
  padding: 10px 14px;
  background: rgba(229, 168, 59, 0.05);
  border: 1px solid rgba(229, 168, 59, 0.12);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.team__stat strong { color: var(--gold); }

.team__quote {
  font-size: 15px;
  font-style: italic;
  color: var(--gray-300);
  margin-bottom: 14px;
  line-height: 1.6;
  border: none;
  padding: 0;
}

.team__bio { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

.team__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.team__nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(229, 168, 59, 0.25);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
              background 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
              transform 0.15s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.team__nav-btn:hover {
  border-color: var(--gold);
  background: rgba(229, 168, 59, 0.08);
  transform: translateY(-1px);
}

.team__nav-btn:active {
  transform: scale(0.96);
}

.team__nav-btn:disabled,
.team__nav-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Индекс "02 / 03" вместо точек + progress bar */
.team__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.team__dot {
  display: none; /* Прячем dots, используем progress bar + counter */
}

.team__dots::before {
  content: attr(data-current) ' / ' attr(data-total);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.team__dots::after {
  content: '';
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.team__dots {
  --slider-progress: 33%;
}

.team__dots::after {
  background: linear-gradient(90deg,
    var(--gold) 0%, var(--gold) var(--slider-progress),
    rgba(255,255,255,0.08) var(--slider-progress), rgba(255,255,255,0.08) 100%);
  transition: background 0.35s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

/* === Cases === */

.cases__slider {
  display: flex;
  margin-top: 40px;
  overflow: hidden;
  /* без gap — одна карточка видна, gap ломал transform */
}

.cases__card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 0;
  text-align: left;
  transition: transform 0.5s ease;
}

.cases__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cases__svg { width: 100%; height: auto; }

.cases__case-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  padding: 6px 14px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 4px;
  margin-bottom: 12px;
}

.cases__case-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.cases__detail { margin-bottom: 8px; }

.cases__label {
  display: inline;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.cases__detail p { display: inline; font-size: 15px; color: var(--gray-400); line-height: 1.6; }

.cases__result {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray-300);
}

.cases__result-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.cases__result-amount { font-size: 24px; font-weight: 900; color: var(--green); }
.cases__result-percent { color: var(--green); font-weight: 600; font-size: 15px; }

.cases__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.cases__nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(229, 168, 59, 0.25);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
              background 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
              transform 0.15s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.cases__nav-btn:hover {
  border-color: var(--gold);
  background: rgba(229, 168, 59, 0.08);
  transform: translateY(-1px);
}

.cases__nav-btn:active {
  transform: scale(0.96);
}

.cases__nav-btn:disabled,
.cases__nav-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cases__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  --slider-progress: 25%;
}

.cases__dot {
  display: none;
}

.cases__dots::before {
  content: attr(data-current) ' / ' attr(data-total);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.cases__dots::after {
  content: '';
  width: 60px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--gold) 0%, var(--gold) var(--slider-progress),
    rgba(255,255,255,0.08) var(--slider-progress), rgba(255,255,255,0.08) 100%);
  transition: background 0.35s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

/* === FAQ === */

.faq__list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease);
}

.faq__item:hover { border-color: var(--border-hover); }
.faq__item--open { border-color: var(--border-hover); }

.faq__question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s var(--ease);
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq__item--open .faq__question::after { transform: rotate(45deg); }
.faq__question:hover { background: rgba(255, 255, 255, 0.03); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__item--open .faq__answer { max-height: 300px; }

.faq__answer p {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* === Urgency === */

.urgency {
  text-align: center;
}

.urgency__countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.urgency__number {
  font-size: 72px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.urgency__number-label {
  font-size: 18px;
  color: var(--gray-400);
}

.urgency__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0 auto 20px;
  max-width: 750px;
}

.urgency__text {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 36px;
}

/* === Final CTA === */

.final-cta {
  text-align: center;
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.final-cta__text {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}

/* === Unified Site Footer === */

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__logo { margin-bottom: 20px; }
.site-footer__logo img { height: 24px; }

.site-footer__legal {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 24px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer__copy { font-size: 12px; color: var(--gray-500); }
.site-footer__address { font-size: 12px; color: var(--gray-500); }
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a { font-size: 13px; color: var(--gray-500); transition: color 0.2s; }
.site-footer__links a:hover { color: var(--white); }

/* === Responsive === */

@media (max-width: 1024px) {
  .schemes__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .video-myth__content { grid-template-columns: 1fr; }
  .team__card { grid-template-columns: 1fr; }
  .team__photo { aspect-ratio: 4 / 5; max-height: 420px; }
  /* Cases на узком — центр, крупнее, текст вокруг круга центрирован */
  .cases__card { grid-template-columns: 1fr; text-align: center; }
  .cases__visual {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }
  .cases__content { text-align: left; }
  .cases__content h3,
  .cases__content h4 { text-align: left; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 56px; }
  .hero__title { font-size: 28px; }
  .hero__trust { flex-direction: column; gap: 6px; }
  .hero__trust-dot { display: none; }
  .schemes__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; gap: 32px; }
  .stats__grid { grid-template-columns: 1fr; gap: 28px; }
  .stats__number, .stats__number-text { font-size: 44px; }
  .btn--large { font-size: 16px; padding: 16px 28px; width: 100%; justify-content: center; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* === Scroll Reveal === */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__inner { animation: none; }
}

/* ========================================
   POLISH UPGRADES v4
   ======================================== */

/* --- Better easing curves --- */
:root {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Gold glow on CTA buttons --- */
.btn {
  position: relative;
  transition: background 0.3s var(--ease-out-quart),
              transform 0.3s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart);
}

.btn:hover {
  box-shadow: 0 8px 32px rgba(229, 168, 59, 0.35),
              0 0 0 1px rgba(229, 168, 59, 0.2);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* --- Soft radial glow behind hero --- */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 800px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(229, 168, 59, 0.08) 0%,
    rgba(229, 168, 59, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- Card hover: subtle glow + smoother lift --- */
.card {
  transition: border-color 0.4s var(--ease-out-quart),
              background 0.4s var(--ease-out-quart),
              transform 0.4s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart);
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(229, 168, 59, 0.15),
              0 0 24px rgba(229, 168, 59, 0.06);
  transform: translateY(-3px);
}

/* --- Focus ring (keyboard navigation only) --- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}

/* --- Input focus glow --- */
input:focus, textarea:focus, select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(229, 168, 59, 0.12);
  transition: border-color 0.25s var(--ease-out-quart),
              box-shadow 0.25s var(--ease-out-quart);
}

/* --- Hero gold highlight: gradient fade underline --- */
.hero__highlight {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(229, 168, 59, 0.75) 25%,
    rgba(229, 168, 59, 0.75) 75%,
    transparent 100%);
  transform-origin: center;
  animation: underlineGrow 1.2s 0.6s var(--ease-out-expo) backwards;
}

@keyframes underlineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* --- Smoother scroll reveal --- */
.reveal {
  transition: opacity 0.7s var(--ease-out-quart),
              transform 0.7s var(--ease-out-quart);
}

/* --- Header shadow on scroll --- */
.header {
  transition: background 0.3s var(--ease-out-quart),
              box-shadow 0.3s var(--ease-out-quart);
}

.header--scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header--hidden {
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

/* --- Urgency section: pulsing gold border --- */
.urgency {
  position: relative;
}

.urgency::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(229, 168, 59, 0.06) 0%,
    transparent 60%);
  pointer-events: none;
}

/* --- Reduced motion for new animations --- */
@media (prefers-reduced-motion: reduce) {
  .hero__highlight::after { animation: none; }
  .btn, .card { transition: none !important; }
}

/* ============================================
   MOBILE AUDIT v5 — основательная мобильная адаптация
   ============================================ */

/* Scroll anchor offset (фикс sticky-header при anchor-клике) */
html { scroll-padding-top: 80px; }

/* --- 1024px: планшет и малые десктопы (уже есть выше, дополняем) --- */

/* --- 768px: стандартный мобильный (уже есть выше, дополняем) --- */
@media (max-width: 768px) {
  /* Hero — уменьшить вертикальный отступ */
  .hero { padding: 100px 0 56px; }
  .hero__title { font-size: 26px; line-height: 1.25; }
  .hero__subtitle { font-size: 17px; }
  .hero__subtext { font-size: 15px; }

  /* Section header */
  .section__title { font-size: 24px; line-height: 1.25; padding: 0 8px; }
  .section__subtitle { font-size: 16px; }

  /* Cards */
  .card { padding: 24px 20px; }

  /* Team photo — не слишком большое */
  .team__photo { aspect-ratio: 4 / 5; max-height: 380px; }
  .team__card { gap: 16px; }
  .team__name { font-size: 22px; }

  /* Cases */
  .cases__result-amount { font-size: 20px; }
  .cases__visual { max-width: 240px; }

  /* Urgency — большой номер */
  .urgency__number { font-size: 80px; }
  .urgency__title { font-size: 22px; line-height: 1.3; }

  /* FAQ */
  .faq__question { font-size: 15px; padding: 18px 16px; }
  .faq__answer p { font-size: 14px; }

  /* Footer — легальные ссылки в строчку, а не в столбик */
  .site-footer__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-start;
  }
  .site-footer__links a { font-size: 13px; }
}

/* --- 480px: малые телефоны (iPhone SE, Pixel 4a, Galaxy S8) --- */
@media (max-width: 480px) {
  /* Header — ужать, но сохранить CTA */
  .header { padding: 10px 0; }
  .header__logo img { height: 32px; }
  .header .btn--small {
    font-size: 12px;
    padding: 9px 14px;
    letter-spacing: 0;
  }

  /* Container tighter padding */
  .container { padding: 0 16px; }

  /* Sections padding */
  .section { padding: 48px 0; }

  /* Hero */
  .hero { padding: 90px 0 48px; }
  .hero__title { font-size: 24px; }
  .hero__subtitle { font-size: 16px; margin-bottom: 10px; }
  .hero__subtext { font-size: 14px; margin-bottom: 28px; }
  .hero__trust { font-size: 11px; gap: 4px; }

  /* Section titles */
  .section__title { font-size: 22px; padding: 0 4px; }
  .section__subtitle { font-size: 15px; margin-bottom: 32px; }

  /* Cards/cases tighter */
  .card { padding: 20px 18px; }
  .cases__card { padding: 0; }
  .cases__case-title { font-size: 20px; }
  .cases__case-subtitle { font-size: 15px; }

  /* Process numbers */
  .process__step-number { font-size: 42px; }

  /* Team */
  .team__photo { aspect-ratio: 4 / 5; max-height: 340px; }
  .team__name { font-size: 20px; }
  .team__quote { font-size: 14px; }

  /* Stats — убрать лишний padding */
  .stats__number, .stats__number-text { font-size: 38px; }
  .stats__label { font-size: 13px; }

  /* Urgency */
  .urgency__title { font-size: 20px; }
  .urgency__number { font-size: 64px; }

  /* FAQ */
  .faq__question { font-size: 14px; padding: 16px 14px; }

  /* Final CTA */
  .final-cta__title { font-size: 22px; }
  .final-cta__text { font-size: 14px; }

  /* Buttons full-width уже настроено в .btn--large */
  .btn { font-size: 14px; padding: 12px 20px; }
  .btn--large { font-size: 15px; padding: 14px 20px; }

  /* Footer */
  .site-footer { padding: 32px 0; }
  .site-footer__legal p { font-size: 12px; line-height: 1.5; }
  .site-footer__copy { font-size: 12px; }
  .site-footer__address { font-size: 12px; }
}

/* --- 360px: очень узкие экраны (старые Android, складной портрет) --- */
@media (max-width: 360px) {
  .hero__title { font-size: 22px; }
  .section__title { font-size: 20px; }
  .header .btn--small { padding: 8px 12px; font-size: 11px; }
  .header__logo img { height: 28px; }
  .urgency__number { font-size: 56px; }
}

/* --- iOS fixes --- */
@supports (-webkit-touch-callout: none) {
  /* Фикс для фиксированного фона на iOS Safari (отключаем parallax) */
  .hero { background-attachment: scroll; }
  /* Min-height 100vh baggy на iOS — используем min-height: 100dvh где возможно */
  input, textarea, select {
    font-size: 16px; /* Предотвращает zoom-in на iOS при фокусе */
  }
}

/* --- Touch-friendly hover reset --- */
@media (hover: none) {
  /* На тач-устройствах hover залипает — убираем stagger-эффекты */
  .btn:hover, .card:hover, .quiz__option:hover {
    transform: none;
  }
  /* Keep color hover effects (work with :active too) */
}

/* --- Минимум 44px touch target для всех интерактивных --- */
.btn, .faq__question, .team__nav-btn, .cases__nav-btn {
  min-height: 44px;
}

/* Dots — touch-target через padding, не через height */
.team__dot, .cases__dot {
  padding: 10px 4px;   /* невидимая touch-зона 28×20 */
  background-clip: content-box !important;
  box-sizing: content-box;
}
