/* ===========================================================
   скупка.рф — дизайн-система
   Чёрный + неон-зелёный (#6EFF00). Премиальный тёмный стиль.
   =========================================================== */

/* Фирменный шрифт AKONY — используется ТОЛЬКО в логотипе «скупка.рф».
   Заголовки и крупный текст — Unbounded (подключается через Google Fonts в HTML).
   Основной текст — Manrope. */
@font-face {
  font-family: "Akony";
  src: url("../fonts/Akony.woff2") format("woff2"),
       url("../fonts/Akony.woff") format("woff"),
       url("../fonts/Akony.otf") format("opentype"),
       url("../fonts/Akony.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Цвета */
  --bg: #0A0B0A;
  --bg-2: #0F110F;
  --card: #14171500;
  --surface: #131614;
  --surface-2: #181C19;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F3F6F3;
  --muted: #9BA49E;
  --muted-2: #6E776F;

  --green: #6EFF00;
  --green-600: #57DB00;
  --green-700: #49B800;
  --green-soft: rgba(110, 255, 0, .12);
  --green-soft-2: rgba(110, 255, 0, .22);
  --green-glow: rgba(110, 255, 0, .35);

  /* Типографика */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", -apple-system, sans-serif;
  --font-logo: "Akony", "Unbounded", "Manrope", -apple-system, sans-serif;

  /* Радиусы / тени */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
  --shadow-green: 0 18px 50px -16px var(--green-glow);

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* фоновое зелёное свечение */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(110, 255, 0, .14), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { position: relative; z-index: 1; padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
/* eyebrow::before removed — было пульсирующее «AI» */

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
/* Unbounded — кругло-геометричный, читается воздушно, поэтому можно дать чуть больше кегля, чем AKONY */
.h-xl { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; }
.h-lg { font-size: clamp(28px, 4vw, 44px); }
.h-md { font-size: clamp(23px, 2.8vw, 32px); }
h3 { font-size: 22px; line-height: 1.2; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 56ch; }
.text-green { color: var(--green); }
.muted { color: var(--muted); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--green);
  color: #052614;
  box-shadow: var(--shadow-green);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -14px var(--green-glow); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--green); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 10, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(10, 11, 10, .9); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .01em;
  text-transform: lowercase;
}
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #052614;
  font-weight: 900;
}
.logo b { color: var(--green); }
.nav__menu { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav__menu a { font-size: 15px; color: var(--muted); font-weight: 600; transition: color .2s; white-space: nowrap; }
.nav__menu a:hover { color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__phone { font-weight: 800; font-size: 17px; white-space: nowrap; }
.nav__phone span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat__num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat__num b { color: var(--green); }
.stat__label { font-size: 13px; color: var(--muted); }

/* визуал героя — стеклянная карточка с телефоном */
.hero__visual { position: relative; }
.phone-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 30px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(110, 255, 0, .18), transparent 55%),
    linear-gradient(180deg, #14181500, #0d0f0e00);
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(110, 255, 0, .06));
  pointer-events: none;
}
.phone-mock { margin: 0 auto; width: 100%; max-width: 280px; }
.price-badge {
  position: absolute;
  top: 26px; left: 26px;
  background: rgba(10, 11, 10, .7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
}
.price-badge b { display: block; font-size: 18px; color: var(--green); }
.float-chip {
  position: absolute;
  right: 18px; bottom: 26px;
  display: flex; align-items: center; gap: 10px;
  background: var(--green);
  color: #052614;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 100px;
  box-shadow: var(--shadow-green);
}

/* ---------- Лента доверия ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }
.trust__item svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }

/* ---------- Карточки / сетки ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Категории ---------- */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
}
.cat-card.is-accent {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--green-soft-2), transparent 60%),
    var(--surface);
  border-color: var(--green-soft-2);
}
.cat-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cat-card__price { font-size: 14px; color: var(--muted); }
.cat-card__price b { color: var(--green); font-size: 16px; }
.cat-card h3 { margin: 24px 0 6px; }
.cat-card .arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: .25s;
}
.cat-card:hover .arrow { background: var(--green); color: #052614; border-color: var(--green); }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 10px; border-radius: 100px;
}

/* ---------- Процесс ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  font-size: 15px; font-weight: 800; color: #052614;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Калькулятор ---------- */
.calc {
  background:
    radial-gradient(100% 120% at 0% 0%, var(--green-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
}
.calc__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .03em; }
.field select, .field input {
  width: 100%;
  padding: 15px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--text);
  appearance: none;
  transition: border-color .2s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--green); }
.field--select { position: relative; }
.field--select::after {
  content: ""; position: absolute; right: 18px; bottom: 21px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.calc__result {
  text-align: center;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.calc__result .small { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.calc__price { font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: var(--green); margin: 8px 0 4px; letter-spacing: -.02em; }
.calc__note { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }

/* ---------- Прайс-таблица ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.price-table td b { color: var(--green); }
.price-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: var(--green); letter-spacing: 3px; }
.review p { color: var(--text); font-size: 16px; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; }
.review__author b { font-size: 15px; }
.review__author span { font-size: 13px; color: var(--muted); }

/* ---------- Виджет отзывов Яндекс ---------- */
.reviews-widget {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  overflow: hidden;
}
.reviews-widget__frame {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: var(--r);
  background: #fff;
  display: block;
}
.reviews-widget__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-left: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.reviews-widget__link::after { content: "→"; }
.reviews-widget__link:hover { text-decoration: underline; }
@media (max-width: 760px) { .reviews-widget__frame { height: 460px; } }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 18px; font-weight: 700;
}
.faq__q .ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .3s; position: relative; }
.faq__q .ic::before, .faq__q .ic::after { content: ""; position: absolute; background: var(--text); transition: .3s; }
.faq__q .ic::before { width: 11px; height: 2px; }
.faq__q .ic::after { width: 2px; height: 11px; }
.faq__item.is-open .ic { background: var(--green); border-color: var(--green); }
.faq__item.is-open .ic::before, .faq__item.is-open .ic::after { background: #052614; }
.faq__item.is-open .ic::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { color: var(--muted); padding-bottom: 24px; max-width: 75ch; }

/* ---------- CTA баннер ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 60px;
  background:
    radial-gradient(90% 140% at 100% 0%, var(--green-soft-2), transparent 55%),
    linear-gradient(180deg, #15191600, #0e110f00);
  background-color: var(--surface);
  border: 1px solid var(--green-soft-2);
}
.cta-banner h2 { max-width: 18ch; margin-bottom: 16px; }
.cta-banner .lead { margin-bottom: 28px; }

/* ---------- Контакты / карта ---------- */
.contacts__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.contact-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.contact-line b { display: block; }
.contact-line span { color: var(--muted); font-size: 15px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.3) invert(.92) hue-rotate(120deg); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 32px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 48px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--muted); font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--green); }
.footer__about p { color: var(--muted); font-size: 15px; margin: 16px 0; max-width: 36ch; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.footer__bottom a { color: var(--muted); }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: var(--muted-2); }

/* ---------- Контент статей ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin: 18px 0 30px; flex-wrap: wrap; }
.article__cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 36px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 30px; margin: 44px 0 16px; }
.prose h3 { font-size: 22px; margin: 30px 0 12px; }
.prose p { margin-bottom: 18px; color: #D7DDD8; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #D7DDD8; }
.prose li { margin-bottom: 10px; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -22px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.prose strong { color: var(--text); }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.callout {
  background: var(--green-soft);
  border: 1px solid var(--green-soft-2);
  border-radius: var(--r);
  padding: 22px 24px;
  margin: 28px 0;
  font-size: 16px;
}
.callout b { color: var(--green); }

/* блог-карточки */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.post-card h3 { line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .more { margin-top: auto; color: var(--green); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal анимация ----------
   Прогрессивное улучшение: контент виден всегда.
   Прячем и анимируем только если есть JS (html.js). */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner, .calc { padding: 30px 22px; }
  .hero__stats { gap: 22px; }
  }
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Модалка заявки (лид-форма → Telegram)
   =========================================================== */
.lead-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
}
.lead-modal.is-open { display: flex; }
.lead-dialog {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  animation: leadIn .28s ease;
}
@keyframes leadIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lead-dialog .eyebrow { margin-bottom: 12px; }
.lead-dialog h3 { font-size: 25px; margin-bottom: 6px; }
.lead-dialog .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.lead-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted);
  font-size: 20px; line-height: 1; transition: .2s;
}
.lead-close:hover { color: var(--text); border-color: var(--green); }
.lead-form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 14px; color: var(--text);
  min-height: 76px; resize: vertical; transition: border-color .2s;
}
.lead-form textarea:focus { outline: none; border-color: var(--green); }
.lead-form .field input.invalid, .lead-form .field textarea.invalid { border-color: #ff6b6b; }
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .form-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; text-align: center; }
.lead-form button[disabled] { opacity: .6; cursor: default; }
.lead-success { text-align: center; padding: 14px 0 6px; }
.lead-success .ic {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.lead-success .ic svg { width: 32px; height: 32px; }
.lead-success h3 { margin-bottom: 8px; }
.lead-success p { color: var(--muted); font-size: 15px; }

/* ===========================================================
   Плавающая кнопка контактов (FAB) + каналы связи
   =========================================================== */
.fab { position: fixed; right: 22px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__menu { display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity .25s, transform .25s; }
.fab.is-open .fab__menu { opacity: 1; transform: none; pointer-events: auto; }
.fab__item { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; white-space: nowrap; }
.fab__item:hover { transform: translateX(-3px); border-color: var(--green); }
.fab__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.fab__ic svg { width: 18px; height: 18px; }
.fab__ic.tg { background: #28a8e9; }
.fab__ic.wa { background: #25d366; }
.fab__ic.call { background: var(--green); color: #052614; }
.fab__ic.vk { background: #0077ff; }
.fab__toggle { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: #052614; display: grid; place-items: center; box-shadow: 0 14px 36px -8px var(--green-glow); transition: transform .25s; }
.fab__toggle svg { width: 28px; height: 28px; transition: transform .3s, opacity .2s; position: absolute; }
.fab__toggle .ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .fab__toggle .ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__toggle .ic-close { opacity: 1; transform: none; }
/* fab__toggle::after removed */
@keyframes fabPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 760px) {
.fab__toggle { width: 56px; height: 56px; }
}

/* ===========================================================
   Изображения: рамки под реальные фото + галерея места
   =========================================================== */
.media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame .badge-float { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; background: rgba(10,11,10,.72); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.media-frame .badge-float b { color: var(--green); }
.media-frame.ratio { aspect-ratio: 4 / 5; }
.media-frame.ratio-square { aspect-ratio: 1 / 1; }

/* плейсхолдер, пока нет фото */
.ph { width: 100%; height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background:
  radial-gradient(120% 120% at 80% 0%, var(--green-soft), transparent 55%), var(--surface-2); color: var(--muted); }
.ph svg { width: 54px; height: 54px; color: var(--green); opacity: .8; }
.ph b { color: var(--text); font-size: 16px; }
.ph span { font-size: 13px; color: var(--muted-2); max-width: 28ch; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .media-frame { aspect-ratio: 4 / 3; }
.gallery .media-frame.tall { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .media-frame.tall { grid-row: span 1; } }

/* ---------- Блок «Как пройти» (маршрут) ---------- */
.route-step .media-frame { aspect-ratio: 4 / 3; position: relative; }
.route-num {
  position: absolute; top: 14px; left: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #052614;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-green);
}
.route-step h3 { margin: 18px 0 6px; font-size: 19px; }
.route-step p { font-size: 15px; }

/* На узких экранах ужимаем кегли героя */
@media (max-width: 760px) {
  .hero .h-xl { font-size: clamp(26px, 7vw, 34px); }
  .h-lg { font-size: clamp(24px, 6vw, 34px); }
}

/* ===========================================================
   3D-блок героя: model-viewer с ротацией устройств
   =========================================================== */
.hero-3d {
  position: relative;
  border-radius: var(--r-xl);
  padding: 24px 24px 22px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(110, 255, 0, .18), transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(110, 255, 0, .08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.hero-3d::before {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 30%, rgba(110, 255, 0, .25) 60%, transparent 70%);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.hero-3d::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 14%;
  height: 28px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(110, 255, 0, .45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}
.hero-3d__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  z-index: 2;
}
.hero-3d__stage model-viewer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity .55s ease;
  --poster-color: transparent;
}
.hero-3d__stage model-viewer.is-active { opacity: 1; }
.hero-3d__caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  z-index: 3;
  pointer-events: none;
}
.hero-3d__device {
  background: rgba(10, 11, 10, .72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  pointer-events: auto;
}
.hero-3d__device b { display: block; color: var(--text); font-size: 15px; }
.hero-3d__price {
  display: flex; align-items: center; gap: 8px;
  background: var(--green);
  color: #052614;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-green);
  pointer-events: auto;
  font-size: 14px;
}
.hero-3d__price b { font-size: 16px; }
.hero-3d__dots {
  position: absolute;
  top: 18px; right: 18px;
  display: flex; gap: 6px;
  z-index: 3;
}
.hero-3d__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: background .3s, transform .3s;
}
.hero-3d__dot.is-active { background: var(--green); transform: scale(1.3); box-shadow: 0 0 10px var(--green); }
.hero-3d__hint {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 11, 10, .55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.hero-3d__hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

/* Фоллбек когда GLB ещё не подгрузился / отключён JS */
.hero-3d__fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 1;
}
.hero-3d__fallback svg { width: 60%; max-width: 220px; height: auto; opacity: .9; }

@media (max-width: 760px) {
  .hero-3d__stage { aspect-ratio: 1 / 1; }
  .hero-3d__device { font-size: 12px; padding: 8px 12px; }
  .hero-3d__device b { font-size: 14px; }
  .hero-3d__price { font-size: 13px; padding: 10px 14px; }
}

/* ===========================================================
   Hero-блок «фото входа + адрес» — продающий локальный визуал
   =========================================================== */
.hero-place {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-place__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.hero-place__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hero-place__photo:hover img { transform: scale(1.025); }

/* Затемнение нижней трети для читаемости плашек поверх фото */
.hero-place__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 10, .55) 0%, transparent 18%, transparent 60%, rgba(10, 11, 10, .85) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(110, 255, 0, .12), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-place__address {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  z-index: 2;
  color: var(--text);
}
.hero-place__metro {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green);
  color: #052614;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.hero-place__metro::before {
  content: ""; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23052614'><path d='M12 2 4 7v6c0 4.5 3.5 8.4 8 10 4.5-1.6 8-5.5 8-10V7l-8-5Zm0 12-2-2.5L6 16h12l-4-4.5L12 14Z'/></svg>") no-repeat center / contain;
}
.hero-place__address b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.hero-place__address span.tip {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.hero-place__hours {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(10, 11, 10, .62);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
/* hero-place__hours::before removed */
@keyframes hpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.7); }
}
/* closed::before removed */

.hero-place__pin {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(10, 11, 10, .55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
/* hero-place__pin::before removed */

.hero-place__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-place__actions .btn {
  padding: 16px 14px;
  font-size: 15px;
  gap: 8px;
}
.hero-place__actions .btn svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .hero-place__photo { aspect-ratio: 4 / 4.6; }
  .hero-place__hours { font-size: 11px; padding: 6px 10px; }
  .hero-place__address b { font-size: 20px; }
  .hero-place__address span.tip { font-size: 13px; }
}


/* ===========================================================
   Сравнение «скупка.рф vs Авито vs ломбард»
   =========================================================== */
.vs-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vs-table th, .vs-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vs-table thead th {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: -.01em;
  background: var(--bg-2);
}
.vs-table thead th.us {
  color: var(--green);
  background: linear-gradient(180deg, rgba(110, 255, 0, .14), rgba(110, 255, 0, .04));
  position: relative;
}
.vs-table thead th.us::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--green);
}
.vs-table tbody td { color: var(--muted); }
.vs-table tbody td:first-child { color: var(--text); font-weight: 600; }
.vs-table tbody td.us { color: var(--text); background: rgba(110, 255, 0, .04); font-weight: 700; }
.vs-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.vs-mark.yes::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EFF00' stroke-width='3'><path d='m5 12 5 5 9-11'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 12px;
  flex: 0 0 auto;
}
.vs-mark.no::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 107, 107, .14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='3'><path d='M6 6l12 12M18 6 6 18'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 12px;
  flex: 0 0 auto;
}
.vs-mark.mid::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 200, 0, .14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc800' stroke-width='3'><circle cx='12' cy='12' r='1.5'/><circle cx='5' cy='12' r='1.5'/><circle cx='19' cy='12' r='1.5'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 12px;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .vs-table th, .vs-table td { padding: 14px 12px; font-size: 13px; }
  .vs-table th:first-child, .vs-table td:first-child { font-size: 13px; }
}


/* ===========================================================
   📱 МОБИЛЬНЫЙ АДАПТИВ — продающий, плотный, без горизонталки
   =========================================================== */

@media (max-width: 760px) {

  /* --- Базовая типографика и отступы --- */
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .lead { font-size: 16px; }
  .container { padding: 0 18px; }

  /* === Шапка === */
  .nav { gap: 12px; height: 64px; }
  .logo { font-size: 19px; gap: 8px; }
  .nav__right { gap: 8px; }
  /* Прячем большую кнопку «Оставить заявку» в шапке — она есть в hero + callbar */
  .header .nav__right .btn { display: none; }
  /* Текстовый телефон в шапке заменяем на компактную иконку */
  .nav__phone span { display: none; }
  .nav__phone {
    padding: 0; border-radius: 50%; background: var(--green-soft);
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--green);
    font-size: 0;
  }
  .nav__phone svg { width: 20px; height: 20px; display: block; }

  /* Бургер — кнопка-крест */
  .burger {
    width: 42px; height: 42px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; transition: background .2s;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0; transform-origin: center; transition: transform .25s, opacity .2s; border-radius: 2px; }
  .header.is-menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.is-menu-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Меню — full-screen overlay с большими тапами */
  .nav__menu {
    display: flex !important; flex-direction: column; gap: 0;
    position: fixed; left: 0; right: 0; top: 64px; bottom: 0;
    background: var(--bg); padding: 24px 18px calc(96px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
    overflow-y: auto;
    z-index: 49;
  }
  .nav__menu.is-open { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .nav__menu a {
    display: flex; align-items: center;
    padding: 14px 4px;
    font-size: 17px; color: var(--text); font-weight: 700;
    border-bottom: 1px solid var(--line);
    min-height: 50px;
  }
  .nav__menu a::after {
    content: "→"; margin-left: auto; color: var(--green); font-size: 18px; opacity: .55;
    transition: opacity .2s, transform .2s;
  }
  .nav__menu a:hover::after, .nav__menu a:active::after { opacity: 1; transform: translateX(4px); }
/* Блокируем скролл фона когда меню открыто */
  html.menu-open, html.menu-open body { overflow: hidden; }

  /* === Hero === */
  .hero { padding: 28px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__visual { max-width: none; }
  .hero h1 { margin: 8px 0 14px; }
  .hero .h-xl { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
  .hero__lead { font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
  .hero__cta { gap: 10px; margin-bottom: 26px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta .btn--lg { padding: 15px 22px; font-size: 16px; min-height: 52px; }
  .hero__stats { gap: 14px 22px; }
  .stat { flex: 1 1 calc(50% - 12px); min-width: 130px; }
  .stat__num { font-size: 20px; }
  .stat__num b { font-size: 22px; }
  .stat__label { font-size: 12px; line-height: 1.4; }

  /* Hero-place: фото входа */
  .hero-place { gap: 12px; }
  .hero-place__photo { aspect-ratio: 4 / 3.6; border-radius: var(--r-lg); }
  .hero-place__address {
    left: 12px; right: 12px; bottom: 12px;
    background: rgba(10, 11, 10, .72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 18px; padding: 14px 14px 16px;
  }
  .hero-place__address b { font-size: 19px; letter-spacing: -.01em; }
  .hero-place__address span.tip { font-size: 12px; line-height: 1.45; }
  .hero-place__metro { font-size: 11px; padding: 5px 11px 5px 9px; margin-bottom: 14px; align-self: flex-start; }
  .hero-place__metro::before { width: 12px; height: 12px; }
  .hero-place__hours { top: 14px; right: 14px; font-size: 11px; padding: 6px 10px; }
  .hero-place__hours::before { width: 6px; height: 6px; }
  .hero-place__pin { top: 14px; left: 14px; font-size: 9px; padding: 5px 9px 5px 8px; letter-spacing: .06em; }
  .hero-place__pin::before { width: 5px; height: 5px; }
  /* Две кнопки колонкой полной ширины */
  .hero-place__actions { grid-template-columns: 1fr; gap: 8px; }
  .hero-place__actions .btn { padding: 14px; font-size: 14px; min-height: 50px; }

  /* === Trust-полоска === */
  .trust__row { gap: 10px 18px; padding: 16px 0; }
  .trust__item { font-size: 13px; gap: 8px; }
  .trust__item svg { width: 18px; height: 18px; }

  /* === Карточки / гриды === */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px 20px; border-radius: var(--r); }
  .feature h3 { font-size: 17px; line-height: 1.3; }
  .feature p { font-size: 14px; }
  .feature__icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .feature__icon svg { width: 22px; height: 22px; }

  /* Категории — карточки шире, иконка-стрелка справа */
  .cat-card { min-height: 160px; padding: 22px; }
  .cat-card h3 { font-size: 19px; margin: 16px 0 4px; }
  .cat-card .arrow { width: 36px; height: 36px; }
  .cat-card__price { font-size: 13px; }
  .cat-card__price b { font-size: 15px; }

  /* === Шаги === */
  .step__num { width: 34px; height: 34px; font-size: 14px; margin-bottom: 12px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }

  /* === Таблицы: гориз. скролл с тенью-подсказкой === */
  .price-wrap, .vs-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .price-wrap::after, .vs-table-wrap::after {
    content: "";
    position: sticky; right: 0; top: 0; bottom: 0;
    display: block; width: 24px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10,11,10,.55));
    pointer-events: none;
    margin-top: -100%;
  }
  .vs-table { min-width: 540px; }
  .vs-table th, .vs-table td { padding: 12px 14px; font-size: 14px; }
  /* Прайс — карточный формат на мобиле, без гориз. скролла */
  #prices .price-wrap { overflow: visible; background: transparent; border: none; border-radius: 0; padding: 0; }
  #prices .price-wrap::after { display: none; }
  #prices .price-table { min-width: 0; width: 100%; display: block; border-spacing: 0; border-collapse: separate; }
  #prices .price-table thead { display: none; }
  #prices .price-table tbody, #prices .price-table tr, #prices .price-table td { display: block; width: 100%; }
  #prices .price-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px; padding: 16px 18px;
    margin-bottom: 10px;
  }
  #prices .price-table td {
    padding: 4px 0; border: none;
    font-size: 14px; color: var(--muted);
    display: flex; justify-content: space-between; gap: 14px;
  }
  #prices .price-table td:first-child {
    font-size: 17px; font-weight: 700; color: var(--text);
    margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  #prices .price-table td:nth-child(2)::before { content: "Память"; color: var(--muted); font-weight: 600; }
  #prices .price-table td:nth-child(3)::before { content: "Состояние"; color: var(--muted); font-weight: 600; }
  #prices .price-table td:nth-child(4)::before { content: "Выкупаем до"; color: var(--muted); font-weight: 600; }
  #prices .price-table td:last-child { color: var(--text); font-weight: 700; }
  #prices .price-table td:last-child b { color: var(--green); font-size: 17px; }

  /* === Отзывы Яндекс === */
  .reviews-widget__frame { height: 420px; }

  /* === Блок-баннер CTA === */
  .cta-banner { padding: 32px 22px; border-radius: var(--r-lg); }
  .cta-banner .hero__cta .btn { flex: 1 1 100%; }
  .cta-banner h2 { font-size: clamp(22px, 6vw, 28px); }

  /* === FAQ === */
  .faq__item { }
  .faq__q { padding: 20px 0; font-size: 15px; line-height: 1.4; gap: 14px; }
  .faq__q .ic { width: 24px; height: 24px; }
  .faq__a p { font-size: 14px; padding-bottom: 20px; }

  /* === Контакты, маршрут, карта === */
  .contacts__grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-line { padding: 14px 0; gap: 12px; }
  .contact-line svg { width: 20px; height: 20px; }
  .contact-line b { font-size: 15px; }
  .contact-line span { font-size: 13px; }
  .map-embed { min-height: 280px; }
  .map-embed iframe { min-height: 280px; }
  /* Маршрут — колонкой, крупное фото, читабельный текст */
  #contacts .section-head h2 { font-size: clamp(28px, 7vw, 36px); }
  #contacts .section-head .lead { font-size: 15px; }
  .route { gap: 16px; }
  .route-step { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .route-step .media-frame { flex: none; aspect-ratio: 4/3; border-radius: var(--r); width: 100%; }
  .route-step h3 { font-size: 18px; margin: 16px 0 6px; }
  .route-step p { font-size: 14px; }
  .route-num { width: 38px; height: 38px; font-size: 16px; top: 12px; left: 12px; }
  .map-embed { min-height: 320px; }
  .map-embed iframe { min-height: 320px; }

  /* === Footer === */
  .footer { padding: 44px 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 32px; }
  .footer__col h4 { font-size: 13px; margin-bottom: 14px; }
  .footer__col a { font-size: 14px; padding: 5px 0; }
  .footer__about { grid-column: 1 / -1; }
  .footer__about p { font-size: 14px; max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; font-size: 12px; }

  /* === Lead-модалка — полноэкранная на мобиле === */
  .lead-modal { padding: 0; align-items: flex-end; }
  .lead-dialog {
    max-width: none; width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
    max-height: 92vh; overflow-y: auto;
    animation: leadInMobile .3s ease;
  }
  @keyframes leadInMobile { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .lead-dialog h3 { font-size: 22px; }
  .lead-dialog .sub { font-size: 13px; margin-bottom: 18px; }
  .lead-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .lead-form .field { margin-bottom: 14px; }
  /* iOS: 16px+ чтобы избежать авто-зума при фокусе */
  .lead-form .field input,
  .lead-form .field select,
  .lead-form textarea { font-size: 16px; padding: 13px 14px; }
  /* Sticky-кнопка отправки чтобы клавиатура не перекрывала */
  .lead-form button[type="submit"] {
    position: sticky; bottom: 0;
    width: 100%; padding: 16px;
    margin-top: 8px;
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,.5);
  }

  /* === Шапка тоньше при is-scrolled === */
  .header.is-scrolled .nav { height: 58px; }

  /* === Видеоплашка для категорий (декоративно) — увеличить tap area === */
  .nav__menu a, .footer__col a, .cat-card, .post-card { min-height: 44px; }

  /* === Hero-stat layout: компактнее === */
  .hero__stats .stat { flex: 1 1 calc(50% - 11px); }
}

/* === Очень узкие экраны (iPhone SE 320-360) === */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero .h-xl { font-size: clamp(24px, 7.4vw, 30px); }
  .callbar .cb { font-size: 10px; padding: 8px 4px; }
  .callbar .cb svg { width: 20px; height: 20px; }
  .nav__menu a { font-size: 17px; padding: 14px 4px; }
}

/* === Уважение к prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  .hero-place__hours::before { animation: none; }
  .fab__toggle::after { animation: none; }
  @keyframes leadInMobile { from { transform: none; opacity: 1; } to { transform: none; opacity: 1; } }
}

/* ===========================================================
   📱 МОБИЛЬНОЕ МЕНЮ-ЭКРАН с карточками категорий
   =========================================================== */
.mobile-menu { display: none; }

@media (max-width: 760px) {
  /* Десктопное nav-меню больше не используется на мобиле — прячем полностью */
  .nav__menu { display: none !important; }

  .mobile-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    z-index: 100;
    background: var(--bg);
    background-image:
      radial-gradient(70% 50% at 50% 0%, rgba(110, 255, 0, .12), transparent 60%),
      radial-gradient(60% 60% at 100% 100%, rgba(110, 255, 0, .08), transparent 60%);
    padding: 0;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .3s ease, visibility .25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.is-open { opacity: 1 !important; visibility: visible !important; transform: none !important; }

  /* Верхняя плашка: лого + крестик */
  .mobile-menu__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 2;
    background: rgba(10, 11, 10, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-menu__top .logo { font-size: 19px; }
  .mobile-menu__close {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    color: var(--text);
    transition: background .15s, border-color .15s, transform .15s;
  }
  .mobile-menu__close svg { width: 22px; height: 22px; }
  .mobile-menu__close:active { transform: scale(.95); background: rgba(255,255,255,.06); border-color: var(--green); }

  /* Сетка категорий 2×3 */
  .mobile-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 18px;
    flex: 1 1 auto;
  }
  .mm-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    min-height: 132px;
    transition: transform .15s, border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
  }
  .mm-card:active { transform: scale(.97); border-color: var(--green); background: var(--surface-2); }
  .mm-card::after {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--green-soft-2), transparent 70%);
    opacity: 0; transition: opacity .25s;
  }
  .mm-card:active::after { opacity: 1; }
  .mm-card__ic {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .mm-card__ic svg { width: 22px; height: 22px; }
  .mm-card b {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--text);
  }
  .mm-card__sub {
    display: block;
    font-size: 11px; line-height: 1.4;
    color: var(--muted);
    margin-top: auto;
  }

  /* Нижний блок: CTA + каналы */
  .mobile-menu__bottom {
    padding: 14px 18px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    display: flex; flex-direction: column; gap: 14px;
  }
  .mobile-menu__bottom .btn--block { width: 100%; padding: 16px; font-size: 16px; min-height: 54px; }
  .mobile-menu__chans {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px;
  }
  .mm-ch {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-size: 11px; font-weight: 700;
    min-height: 56px;
    transition: transform .15s, border-color .15s;
  }
  .mm-ch:active { transform: scale(.95); }
  .mm-ch svg { width: 20px; height: 20px; }
  .mm-ch.mm-ch--call { color: var(--green); border-color: rgba(110, 255, 0, .35); }
  .mm-ch.mm-ch--wa { color: #25d366; border-color: rgba(37, 211, 102, .35); }
  .mm-ch.mm-ch--tg { color: #28a8e9; border-color: rgba(40, 168, 233, .35); }
  .mobile-menu__hours {
    text-align: center; font-size: 12px; color: var(--muted);
    margin: 4px 0 0;
  }

  /* На очень узких — карточки покрупнее (1 колонкой не делаю, чтобы помещалось всё в один экран) */
}

@media (max-width: 360px) {
  .mm-card { padding: 14px 12px; min-height: 120px; }
  .mm-card b { font-size: 14px; }
  .mm-card__sub { font-size: 10px; }
  .mobile-menu__grid { gap: 10px; padding: 16px 14px; }
  .mobile-menu__bottom { padding: 12px 14px calc(18px + env(safe-area-inset-bottom)); }
  .mm-ch { font-size: 10px; padding: 8px 4px; }
}

@media (max-width: 760px) {
  /* Фейковые SVG-силуэты телефонов на посадочных — на мобиле прячем */
  .phone-card { display: none !important; }
  /* На посадочных без реального фото — hero__visual может быть пустым → скрываем целиком */
  body:not(.has-hero-photo) .hero__visual:empty,
  body:not(.has-hero-photo) .hero__visual:has(> .phone-card:only-child) { display: none; }
}

@media (max-width: 760px) {
  .fab { display: none !important; }
}

/* === iphone.html и др. многоколоночные прайсы — гориз. скролл на мобиле === */
@media (max-width: 760px) {
  body:not(.has-card-prices) .price-table {
    min-width: 540px;
  }
  body:not(.has-card-prices) .price-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body:not(.has-card-prices) .price-table td,
  body:not(.has-card-prices) .price-table th {
    padding: 12px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}


/* ===========================================================
   🍏 iPhone-промо баннер (главный экран, под hero)
   =========================================================== */
.iphone-promo {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    radial-gradient(60% 90% at 100% 50%, rgba(110, 255, 0, .18), transparent 65%),
    radial-gradient(40% 60% at 0% 100%, rgba(110, 255, 0, .08), transparent 70%),
    var(--bg);
}
.iphone-promo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(110, 255, 0, .04) 50%, transparent);
  pointer-events: none;
}
.iphone-promo__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  position: relative; z-index: 1;
}
.iphone-promo__content h2 { margin: 12px 0 18px; }
.iphone-promo__content h2 em { font-style: normal; color: var(--green); }
.iphone-promo__content .lead { margin-bottom: 22px; max-width: 50ch; }
.iphone-promo__list {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0 0 28px;
}
.iphone-promo__list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-size: 16px; font-weight: 600;
}
.iphone-promo__list li::before {
  content: ""; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EFF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-11'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 14px;
}
.iphone-promo__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  min-height: 520px;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(110, 255, 0, .25);
  box-shadow:
    0 0 0 1px rgba(110, 255, 0, .08),
    0 40px 80px -20px rgba(110, 255, 0, .25),
    0 30px 60px -15px rgba(0, 0, 0, .55);
  isolation: isolate;
}
.iphone-promo__photo picture, .iphone-promo__photo img {
  width: 100%; height: 100%;
  display: block;
}
.iphone-promo__photo img {
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}
.iphone-promo__photo:hover img { transform: scale(1.02); }

@media (max-width: 980px) {
  .iphone-promo { padding: 60px 0; }
  .iphone-promo__grid { grid-template-columns: 1fr; gap: 32px; }
  .iphone-promo__photo { max-height: 560px; min-height: 440px; order: -1; border-radius: 28px; }
}
@media (max-width: 760px) {
  .iphone-promo { padding: 48px 0; }
  .iphone-promo__photo { max-height: 480px; min-height: 380px; border-radius: 24px; }
  .iphone-promo__list li { font-size: 15px; gap: 10px; }
  .iphone-promo__list li::before { width: 20px; height: 20px; }
  .iphone-promo__content .hero__cta .btn { flex: 1 1 100%; }
}

/* ===========================================================
   🍏 Hero на iphone.html — реальное фото iPhone вместо SVG-мокапа
   =========================================================== */
.iphone-hero {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  min-height: 520px;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(110, 255, 0, .25);
  box-shadow:
    0 0 0 1px rgba(110, 255, 0, .08),
    0 40px 80px -20px rgba(110, 255, 0, .25),
    0 30px 60px -15px rgba(0, 0, 0, .55);
}
.iphone-hero picture, .iphone-hero img {
  width: 100%; height: 100%;
  display: block;
}
.iphone-hero img {
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}
.iphone-hero:hover img { transform: scale(1.02); }

/* Лёгкий тёмный градиент сверху и снизу для лучшей читаемости плашек */
.iphone-hero::before,
.iphone-hero::after {
  content: ""; position: absolute; left: 0; right: 0;
  pointer-events: none; z-index: 1;
}
.iphone-hero::before {
  top: 0; height: 110px;
  background: linear-gradient(180deg, rgba(10, 11, 10, .55) 0%, transparent 100%);
}
.iphone-hero::after {
  bottom: 0; height: 130px;
  background: linear-gradient(0deg, rgba(10, 11, 10, .65) 0%, transparent 100%);
}

.iphone-hero .price-badge {
  position: absolute; top: 22px; left: 22px;
  z-index: 2;
  background: rgba(10, 11, 10, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 12px 16px;
}
.iphone-hero .float-chip {
  z-index: 2;
  bottom: 22px; right: 22px;
}

@media (max-width: 980px) {
  .iphone-hero {
    aspect-ratio: 4 / 5;
    max-height: 560px;
    min-height: 440px;
    border-radius: 28px;
  }
}
@media (max-width: 760px) {
  .iphone-hero {
    max-height: 480px;
    min-height: 380px;
    border-radius: 24px;
  }
  .iphone-hero .price-badge {
    top: 14px; left: 14px;
    font-size: 12px; padding: 9px 13px;
    border-radius: 14px;
  }
  .iphone-hero .price-badge b { font-size: 14px; }
  .iphone-hero .float-chip { right: 14px; bottom: 16px; padding: 10px 16px; font-size: 13px; }
}


/* Блок «Узнайте свою цену» вместо прайс-таблиц */
.price-cta {
  position: relative;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(110, 255, 0, .14), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--green-soft-2);
  border-radius: var(--r-xl);
  padding: 44px 48px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--green-glow);
}
.price-cta::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--green-soft-2), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.price-cta__head { max-width: 56ch; margin-bottom: 26px; position: relative; z-index: 1; }
.price-cta__head .eyebrow { margin-bottom: 14px; }
.price-cta__head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700; letter-spacing: -.02em;
  line-height: 1.1; margin-bottom: 14px;
}
.price-cta__head p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.price-cta__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px; position: relative; z-index: 1;
}
.price-cta__hint {
  color: var(--muted-2); font-size: 13px;
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); padding-top: 18px;
}
@media (max-width: 760px) {
  .price-cta { padding: 28px 22px; border-radius: var(--r-lg); }
  .price-cta__head h3 { font-size: 22px; }
  .price-cta__head p { font-size: 15px; }
  .price-cta__actions .btn { flex: 1 1 100%; }
  .price-cta__hint { font-size: 12px; padding-top: 14px; }
}


/* Trust на мобиле — иконки строго в одну линию */
@media (max-width: 760px) {
  .trust__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust__item { display: flex; align-items: center; gap: 12px; padding-left: 0; width: 100%; font-size: 14px; }
  .trust__item svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--green); }
}


/* nav__phone: текст для десктопа, SVG для мобилы */
.nav__phone svg { display: none; }
@media (max-width: 760px) {
  .nav__phone .nav__phone-text { display: none; }
  .nav__phone svg { display: block; }
}
@media (min-width: 761px) {
  .nav__phone { background: transparent; padding: 0; width: auto; height: auto; border-radius: 0; }
}


/* === Лечим пустой промежуток между hero и iphone-promo на мобиле === */
@media (max-width: 760px) {
  .hero { padding-bottom: 24px !important; }
  .iphone-promo { padding-top: 32px !important; }
  .hero-place { margin-bottom: 0; }
  .hero-place__actions { margin-bottom: 0; }
}


/* mm-ch: расцветка VK + компактнее в 4 колонки */
@media (max-width: 760px) {
  .mm-ch { font-size: 10px; padding: 8px 4px; min-height: 52px; }
  .mm-ch svg { width: 18px; height: 18px; }
  .mm-ch.mm-ch--vk { color: #0077ff; border-color: rgba(0, 119, 255, .35); }
}
