/* ═══════════════════════════════════════════
   MD — дизайн-система
   Тёплый уголь + неоновый эмбер. Смело, экспериментально.
   ═══════════════════════════════════════════ */
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --coal: #15110d;
  --coal-2: #1d1813;
  --surface: #241d16;
  --surface-2: #2c241b;
  --cream: #fbf3ea;
  --dim: #b0a496;
  --faint: #7d7264;
  --ember: #ff5b2e;
  --ember-soft: #ff7a52;
  --amber: #ffb23e;
  --gold: #ffd27a;
  --line: rgba(251, 243, 234, 0.1);
  --line-strong: rgba(251, 243, 234, 0.2);
  --display: 'Unbounded', sans-serif;
  --body: 'Golos Text', sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--coal);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ember); color: var(--coal); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* плёночное зерно */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
main { animation: pageIn 0.55s var(--ease); }

/* ── прогресс ── */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 8000;
  background: linear-gradient(90deg, var(--ember), var(--amber)); }

/* ══ типографика ══ */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.01em; }
h3, h4 { overflow-wrap: break-word; }
h1 { font-weight: 700; font-size: clamp(46px, 7.5vw, 116px); text-transform: uppercase; }
h2 { font-weight: 500; font-size: clamp(30px, 4.2vw, 60px); text-transform: uppercase; }
h3 { font-weight: 500; font-size: clamp(20px, 2vw, 27px); }
h4 { font-weight: 500; font-size: 15px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember);
}
.eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--ember); }
.grad { background: linear-gradient(96deg, var(--ember) 0%, var(--amber) 70%, var(--gold) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.6px var(--ember); }
.muted { color: var(--dim); }

/* ══ раскладка ══ */
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 64px; }
.section-head .ttl { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { color: var(--dim); margin-top: 18px; max-width: 540px; font-size: 17px; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; gap: 11px; border: none; cursor: pointer;
  font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 18px 32px; border-radius: 100px; will-change: transform;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease; }
.btn-primary { background: var(--ember); color: var(--coal); }
.btn-primary:hover { background: var(--ember-soft); box-shadow: 0 12px 44px -10px rgba(255, 91, 46, 0.6); }
.btn-primary svg path { stroke: var(--coal); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ember); color: var(--ember); }
.btn-ghost svg path { stroke: currentColor; }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

/* ── ссылка-стрелка ── */
.arrow-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--dim);
  font-size: 15px; font-weight: 600; transition: color 0.25s ease, gap 0.25s ease; }
.arrow-link:hover { color: var(--ember); gap: 15px; }

/* ══ навигация — стеклянный остров ══ */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 7000; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; transition: top 0.4s var(--ease); }
.nav-wrap.scrolled { top: 8px; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 6px;
  background: rgba(29, 24, 19, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 8px 7px 18px;
  box-shadow: 0 16px 50px -16px rgba(0,0,0,0.7); max-width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 14px; }
.logo .mk { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ember), var(--amber)); color: var(--coal);
  font-size: 17px; line-height: 1; }
.logo .wd { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 14.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 100px; white-space: nowrap; transition: color 0.25s ease, background 0.25s ease; }
.nav-links a:hover { color: var(--cream); background: rgba(251,243,234,0.06); }
.nav-links a.active { color: var(--cream); background: rgba(255,91,46,0.16); }
.nav-side { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  color: var(--cream); border: 1px solid var(--line); transition: border-color 0.25s ease, background 0.25s ease; }
.nav-ico:hover { border-color: var(--ember); background: rgba(255,91,46,0.1); }
.nav-cta { display: inline-flex; align-items: center; background: var(--ember); color: var(--coal);
  font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 10px 20px; border-radius: 100px;
  white-space: nowrap; border: none; cursor: pointer; transition: background 0.25s ease, transform 0.25s ease; }
.nav-cta:hover { background: var(--ember-soft); transform: scale(1.04); }
.burger { display: none; background: none; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s ease, top 0.35s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 6900; background: rgba(21,17,13,0.97); backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--dim); text-decoration: none;
  padding: 11px 22px; opacity: 0; transform: translateY(16px); transition: transform 0.45s var(--ease), opacity 0.45s ease, color 0.25s ease; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ember); }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(2){transition-delay:.04s} body.menu-open .mobile-menu a:nth-child(3){transition-delay:.08s}
body.menu-open .mobile-menu a:nth-child(4){transition-delay:.12s} body.menu-open .mobile-menu a:nth-child(5){transition-delay:.16s}
body.menu-open .mobile-menu a:nth-child(6){transition-delay:.2s} body.menu-open .mobile-menu a:nth-child(7){transition-delay:.24s}
body.menu-open .mobile-menu a:nth-child(8){transition-delay:.28s}

/* ══ 3D-блобы (градиентные пятна) ══ */
.blob { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; will-change: transform; }
.blob-ember { background: radial-gradient(circle at 35% 35%, rgba(255,91,46,0.85), rgba(255,91,46,0) 70%); }
.blob-amber { background: radial-gradient(circle at 35% 35%, rgba(255,178,62,0.7), rgba(255,178,62,0) 70%); }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(4%,-6%) scale(1.06); } 66% { transform: translate(-5%,4%) scale(0.96); } }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ══ карта-прожектор ══ */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--coal-2);
  overflow: hidden; transition: border-color 0.4s ease, transform 0.4s var(--ease); will-change: transform; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,91,46,0.14), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255,91,46,0.4); transform: translateY(-6px); }

/* ══ бегущая строка ══ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--coal-2); }
.mq-track { display: flex; gap: 50px; width: max-content; animation: mq 30s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: 50px; font-family: var(--display); font-size: 20px; font-weight: 400;
  text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.mq-item em { font-style: normal; color: var(--ember); font-size: 14px; }
.mq-item a { color: inherit; text-decoration: none; transition: color .25s ease; }
.mq-item a:hover { color: var(--ember); }

/* ══ герой страниц ══ */
.page-hero { position: relative; padding: 190px 0 70px; overflow: hidden; }
.page-hero .crumbs { display: flex; gap: 9px; font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.page-hero .crumbs a { text-decoration: none; color: var(--faint); transition: color 0.25s ease; }
.page-hero .crumbs a:hover { color: var(--ember); }
.page-hero .lead { max-width: 640px; margin-top: 26px; color: var(--dim); font-size: 19px; }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.page-hero h1 { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.page-hero h1 .w span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1 .w span { transform: translateY(110%); animation: riseW 0.85s var(--ease) forwards; }
}
@keyframes riseW { to { transform: translateY(0); } }

/* ══ цифры-лента ══ */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band .c { position: relative; padding: 52px 32px; border-left: 1px solid var(--line); transition: background 0.4s ease; overflow: hidden; }
.stats-band .c:first-child { border-left: none; }
.stats-band .idx { position: absolute; top: 16px; right: 20px; font-family: var(--display); font-size: 11px; color: var(--faint); }
.stats-band .n { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.6vw, 70px); line-height: 1;
  background: linear-gradient(96deg, var(--gold), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band .l { margin-top: 12px; font-size: 14.5px; color: var(--dim); }

/* ══ футер ══ */
footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--coal-2); }
.footer-top { max-width: 1380px; margin: 0 auto; padding: 80px 40px 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .wd { font-family: var(--display); font-weight: 700; font-size: 30px; }
.footer-brand p { color: var(--dim); font-size: 15px; margin: 16px 0 0; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; font-size: 15px; color: var(--cream); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .inner { max-width: 1380px; margin: 0 auto; padding: 22px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 13.5px; }
.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--ember); }

/* ══ модалка ══ */
.modal-back { position: fixed; inset: 0; z-index: 9500; background: rgba(10,8,6,0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.modal-back.open { opacity: 1; visibility: visible; }
.modal { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 44px 40px; position: relative; transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease); max-height: 92vh; overflow-y: auto; }
.modal-back.open .modal { transform: translateY(0) scale(1); }
.modal-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: border-color 0.25s ease, transform 0.3s ease; }
.modal-x:hover { border-color: var(--ember); transform: rotate(90deg); }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.modal .sub { color: var(--dim); font-size: 15px; margin-bottom: 28px; }
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  color: var(--cream); font-family: var(--body); font-size: 16px; padding: 11px 2px; outline: none; resize: none; transition: border-color 0.3s ease; }
.field label { position: absolute; left: 2px; top: 11px; color: var(--faint); font-size: 16px; pointer-events: none;
  transition: top 0.3s var(--ease), font-size 0.3s ease, color 0.3s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: -11px; font-size: 12px; color: var(--ember); }
.field::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--ember);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.modal .btn { width: 100%; justify-content: center; margin-top: 8px; }
.modal-sent { text-align: center; padding: 20px 0; display: none; }
.modal.sent .modal-form { display: none; }
.modal.sent .modal-sent { display: block; animation: pageIn 0.5s var(--ease); }
.sent-check { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--ember); display: grid; place-items: center;
  animation: pop 0.55s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ══ cookie ══ */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9400; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
  transform: translateY(140%); transition: transform 0.5s var(--ease); }
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 14px; color: var(--dim); flex: 1; min-width: 220px; }
.cookie p a { color: var(--ember); text-decoration: none; }
.cookie-btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 22px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  main, .reveal, .mq-track, .blob, .page-hero h1 .w span { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
}

/* Убрать тап-хайлайт + задержку 300мс на тач */
a, button, [role="button"], input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
a, button, [role="button"] {
  touch-action: manipulation;
}

/* Мобильное меню — кнопка «Связаться» */
.mobile-menu-cta {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.45s var(--ease) 0.32s, opacity 0.45s ease 0.32s;
}
body.menu-open .mobile-menu-cta { opacity: 1; transform: translateY(0); }

/* ══ адаптив ══ */
@media (max-width: 1000px) {
  .nav-links, .nav-side .nav-cta, .nav-side .nav-ico { display: none; }
  .burger { display: block; }
  .wrap { padding: 0 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 60px 22px 40px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band .c:nth-child(3) { border-left: none; }
  .stats-band .c { border-top: 1px solid var(--line); }
  .stats-band .c:nth-child(-n+2) { border-top: none; }
  .footer-bottom .inner { padding: 20px 22px; }
  .page-hero { padding-top: 150px; }
}

/* 768px — планшет / большой телефон */
@media (max-width: 768px) {
  /* Зерно убрать — убивает GPU мобиле */
  body::after { display: none; }
  /* Блобы — остановить анимацию, оставить как фон */
  .blob { animation: none !important; }

  section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head p { font-size: 16px; }

  .btn { padding: 15px 26px; font-size: 15px; }
  .modal { padding: 36px 26px; }
  .cta-wrap { padding: 80px 0; }
  .cta-inner { padding: 72px 32px; }
  .page-hero { padding: 140px 0 60px; }
  .page-hero .lead { font-size: 17px; }

  /* Карта — убрать hover-трансформ (дёргается при скролле) */
  .card:hover { transform: none; }
  .card:hover::before { opacity: 0; }
}

/* 480px — смартфоны */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  /* Навигация */
  .nav { padding: 6px 6px 6px 14px; }
  .logo .wd { font-size: 19px; }

  /* Кнопки */
  .btn { padding: 14px 22px; font-size: 14.5px; gap: 8px; }

  /* Marquee */
  .mq-item { font-size: 17px; gap: 32px; }
  .mq-track { gap: 32px; }

  /* Модалка */
  .modal { padding: 28px 18px; border-radius: 20px; }
  .modal h3 { font-size: 22px; }
  .modal .sub { font-size: 14px; }

  /* CTA */
  .cta-inner { padding: 52px 20px; }
  .cta-wrap { padding: 60px 0; }
  .cta-frame { border-radius: 24px; }
  .cta-inner { border-radius: 22.5px; }

  /* Cookie — вертикальный стак */
  .cookie { flex-direction: column; padding: 18px; gap: 14px;
    left: 8px; right: 8px; bottom: 8px; border-radius: 16px; }
  .cookie p { min-width: 0; font-size: 13.5px; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center;
    padding: 12px 14px; font-size: 13.5px; }

  /* Stats */
  .stats-band .c { padding: 34px 18px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; padding: 48px 16px 32px; gap: 28px; }
  .footer-bottom .inner { padding: 18px 16px; flex-direction: column;
    align-items: flex-start; gap: 8px; }

  /* Mobile menu */
  .mobile-menu a { font-size: 22px; padding: 9px 18px; }

  /* Eyebrow */
  .eyebrow { font-size: 12px; }
  .eyebrow::before { width: 22px; }

  /* Page hero */
  .page-hero { padding: 120px 0 48px; }
  .page-hero .lead { font-size: 15px; }
}

/* 360px — очень маленькие экраны */
@media (max-width: 360px) {
  .modal { padding: 22px 14px; }
  .btn { padding: 13px 18px; font-size: 14px; }
  .nav { padding: 5px 5px 5px 12px; }
}

/* Stats — мобиль (1 колонка) */
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band .c { border-left: none; }
  .stats-band .c:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ══ Дополнительные мобильные улучшения ══ */

/* Section-head: на узких экранах — столбец, стрелка внизу */
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head .arrow-link { align-self: flex-start; }

  /* Мобильное меню: scroll если ссылок много */
  .mobile-menu { overflow-y: auto; padding: 40px 0; justify-content: flex-start; padding-top: max(60px, env(safe-area-inset-top)); }
  body.menu-open .mobile-menu a { transform: translateY(0) !important; }

  /* CTA: отключить вращение — дорого на мобиле */
  .cta-frame::before { animation: none; background: var(--ember); opacity: 0.6; }

  /* Карточки: убрать min-height на столбцах */
  .pillar { min-height: auto; }

  /* Sol-item: уменьшить иконку на маленьких */
  .sol-item { grid-template-columns: 44px 1fr 34px; gap: 14px; }
  .sol-item .ic { width: 44px; height: 44px; }
  .sol-item .go { width: 34px; height: 34px; }

  /* Reveal: меньше смещение на мобиле */
  .reveal { transform: translateY(24px); }
}

@media (max-width: 480px) {
  /* Hero footer: стак в колонку */
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  /* Пиллары: меньше отступы */
  .pillar { padding: 24px 20px; gap: 18px; }
  .pillar h3 { font-size: clamp(17px, 4.5vw, 22px); }

  /* Why-points: компактнее */
  .why-point { gap: 14px; padding-bottom: 18px; }
  .why-point h4 { font-size: 17px; }

  /* Process steps */
  .step { padding: 22px 18px; }

  /* Sol-item: мелкие телефоны */
  .sol-item { grid-template-columns: 40px 1fr 32px; gap: 12px; padding: 16px 14px; }
  .sol-item .nm { font-size: 15px; }
  .sol-item .nm small { font-size: 12.5px; }

  /* Posты: убрать aspect-ratio на маленьких */
  .post-body { padding: 20px 22px 24px; }
  .post h3 { font-size: 17px; }


  /* Stats: компактнее */
  .stats-band .n { font-size: clamp(32px, 11vw, 52px); }
  .stats-band .l { font-size: 13px; margin-top: 8px; }

  /* Footer brand */
  .footer-brand .wd { font-size: 24px; }
  .footer-brand p { font-size: 14px; }

  /* Footer cols: мельче */
  .footer-col a { font-size: 14px; }
  .footer-col ul { gap: 9px; }

  /* Marquee: медленнее анимация на мобиле */
  .mq-track { animation-duration: 22s; }
}

/* Safe area для айфонов с чёлкой */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav-wrap { top: max(16px, env(safe-area-inset-top)); }
  .cookie { bottom: max(16px, env(safe-area-inset-bottom)); }
  .modal-back { padding-bottom: env(safe-area-inset-bottom); }
}
