/* ==========================================================================
   davanya.site — премиальная тёмная тема (чёрный + красный, бренд «Дядя Ваня»)
   Mobile-first. Без внешних шрифтов и зависимостей.
   ========================================================================== */

:root {
  --c-bg: #0b0b0e;
  --c-bg-soft: #111116;
  --c-bg-soft2: #16161c;
  --c-surface: #16161d;
  --c-surface-2: #1d1d26;
  --c-border: #2a2a34;
  --c-border-soft: #22222b;
  --c-hair: rgba(255, 255, 255, .07);

  --c-text: #e7e8ee;
  --c-text-soft: #b3b6c2;
  --c-muted: #868a98;
  --c-dim: #6b6f7d;

  --c-red: #e11d2a;
  --c-red-2: #ff3446;
  --c-red-3: #ff5763;
  --c-red-deep: #9c121c;
  --c-red-soft: rgba(225, 29, 42, .12);
  --c-red-line: rgba(225, 29, 42, .38);

  --c-ok: #35d08a;
  --c-ok-soft: rgba(53, 208, 138, .12);
  --c-warn: #f0b544;
  --c-white: #ffffff;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
  --glow-red: 0 18px 46px -16px rgba(225, 29, 42, .55);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--c-bg); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--c-text-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-red-3); text-decoration: none; }
a:hover { color: var(--c-red-2); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--c-white); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; margin: 0 0 .5em; }
h2 { font-size: 1.7rem; margin: 2.4rem 0 .9rem; }
h3 { font-size: 1.22rem; margin: 1.7rem 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
strong { color: #f2f3f7; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.section { padding: 42px 0; position: relative; }
.section + .section { padding-top: 6px; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Надстрочная метка (eyebrow) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-red-3);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--c-red-2), transparent); border-radius: 2px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: 1.03rem; line-height: 1.1;
  padding: 15px 30px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  text-align: center; letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-cta {
  color: #fff;
  background: linear-gradient(180deg, var(--c-red-2) 0%, var(--c-red) 60%, var(--c-red-deep) 100%);
  box-shadow: var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 24px 54px -14px rgba(225, 29, 42, .7), inset 0 1px 0 rgba(255, 255, 255, .28); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a2a34, #16161d);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { color: #fff; border-color: var(--c-red-line); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(225,29,42,.5); }

.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--c-text); border: 1px solid var(--c-border); }
.btn-ghost:hover { color: #fff; border-color: var(--c-red-line); background: rgba(225, 29, 42, .08); }

.btn-lg { font-size: 1.12rem; padding: 17px 38px; }
.btn-block { display: flex; width: 100%; }
.btn-note { font-size: .86rem; color: var(--c-muted); margin-top: 10px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--c-border-soft);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-red-line), transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; color: #fff; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: #fff; }
.brand .logo-mark { flex: 0 0 auto; width: 34px; height: 34px; filter: drop-shadow(0 3px 8px rgba(225, 29, 42, .5)); }
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--c-red-3); letter-spacing: .12em; text-transform: uppercase; }

/* перекраска инлайн-логотипа под бренд через CSS */
.logo-mark path:first-of-type { fill: var(--c-red); }
.logo-mark path:last-of-type { stroke: #fff; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--c-text-soft); font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 9px; transition: color .15s, background-color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.nav a.active { color: #fff; background: var(--c-red-soft); box-shadow: inset 0 0 0 1px var(--c-red-line); }

.nav-toggle { display: none; background: rgba(255,255,255,.03); border: 1px solid var(--c-border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: #e7e8ee; position: relative; transition: .2s; border-radius: 2px; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border-soft); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); }
.breadcrumbs li::after { content: "›"; color: var(--c-dim); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-red-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 54px;
  background:
    radial-gradient(920px 480px at 82% -8%, rgba(225, 29, 42, .30), transparent 58%),
    radial-gradient(700px 420px at 6% 6%, rgba(225, 29, 42, .10), transparent 55%),
    linear-gradient(180deg, #0f0f14 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 60% 0, #000, transparent 72%);
  mask-image: radial-gradient(circle at 60% 0, #000, transparent 72%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.75rem; background: linear-gradient(180deg, #ffffff 30%, #c9ccd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.16rem; color: var(--c-text-soft); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; color: var(--c-text-soft); font-size: .93rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.tick { color: var(--c-red-3); font-weight: 900; }

/* ---------- Полоса показателей (фишка) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--c-border-soft);
  border: 1px solid var(--c-border-soft); border-radius: var(--radius);
  overflow: hidden; margin-top: 34px;
}
.stat { background: var(--c-surface); padding: 20px 18px; text-align: center; }
.stat .n { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat .n b { background: linear-gradient(180deg, var(--c-red-3), var(--c-red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: .84rem; color: var(--c-muted); margin-top: 8px; }

/* ---------- Карточки-хаб ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.hub-card {
  position: relative; display: block; overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft); border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: var(--c-text-soft);
}
.hub-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--c-red-line), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hub-card:hover { text-decoration: none; transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg), 0 20px 46px -24px rgba(225, 29, 42, .5); }
.hub-card:hover::after { opacity: 1; }
.hub-card .ico { width: 42px; height: 42px; margin-bottom: 14px; color: var(--c-red-3); padding: 8px; background: var(--c-red-soft); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--c-red-line); }
.hub-card h3 { margin: 0 0 6px; font-size: 1.14rem; color: #fff; }
.hub-card p { margin: 0; color: var(--c-muted); font-size: .96rem; }
.hub-card .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--c-red-3); font-size: .95rem; }
.hub-card:hover .go { color: var(--c-red-2); }

/* ---------- Преимущества (фишка) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: 22px; transition: transform .18s, border-color .18s; }
.feature:hover { transform: translateY(-3px); border-color: var(--c-red-line); }
.feature .fi { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 13px; color: var(--c-red-3); background: var(--c-red-soft); box-shadow: inset 0 0 0 1px var(--c-red-line); margin-bottom: 14px; }
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; color: #fff; }
.feature p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- Общие блоки ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.soft-block { background: linear-gradient(180deg, var(--c-surface), var(--c-bg-soft)); border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: 22px 24px; }

.note { border-left: 3px solid var(--c-red); background: var(--c-red-soft); padding: 15px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; color: var(--c-text-soft); }
.note.warn { border-color: var(--c-warn); background: rgba(240, 181, 68, .1); }
.note.danger { border-color: var(--c-red-2); background: rgba(255, 52, 70, .12); }
.note strong { color: #fff; }

/* Списки-инструкции */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
ol.steps > li { position: relative; padding: 3px 0 18px 54px; margin: 0; color: var(--c-text-soft); }
ol.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  background: linear-gradient(180deg, var(--c-red-2), var(--c-red-deep));
  color: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .98rem; box-shadow: 0 8px 18px -8px rgba(225, 29, 42, .8), inset 0 1px 0 rgba(255,255,255,.25);
}
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: linear-gradient(var(--c-red-line), transparent); }
ol.steps > li strong { color: #fff; }

ul.checks { list-style: none; padding: 0; margin: 18px 0; }
ul.checks li { position: relative; padding: 5px 0 5px 32px; color: var(--c-text-soft); }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--c-red-3); font-weight: 900; }
ul.checks li strong { color: #fff; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--c-border-soft); color: var(--c-text-soft); }
table.data thead th { background: var(--c-bg-soft2); font-size: .88rem; color: #fff; letter-spacing: .02em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, .02); }
table.data td b { color: #fff; }
table.data td.yes { color: var(--c-ok); font-weight: 600; }
table.data td.no { color: var(--c-red-3); font-weight: 600; }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 24px 0; }
.plan { position: relative; border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: 26px 22px; background: var(--c-surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
.plan:hover { transform: translateY(-3px); border-color: var(--c-border); }
.plan.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(160deg, var(--c-red-2), rgba(225, 29, 42, .2) 46%, rgba(255, 255, 255, .1)) border-box;
  box-shadow: 0 0 0 1px rgba(225, 29, 42, .12), 0 26px 60px -22px rgba(225, 29, 42, .55);
}
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--c-red-2), var(--c-red)); color: #fff; font-size: .77rem; font-weight: 800; letter-spacing: .03em; padding: 5px 14px; border-radius: 20px; white-space: nowrap; box-shadow: var(--glow-red); }
.plan .term { font-weight: 700; color: #fff; font-size: 1.08rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 10px 0 2px; letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--c-muted); }
.plan .save { color: var(--c-red-3); font-weight: 700; font-size: .9rem; min-height: 1.2em; }
.plan .per { color: var(--c-muted); font-size: .9rem; margin: 8px 0 16px; }
.plan .btn { margin-top: auto; }

/* ---------- Отзывы ---------- */
.rating-summary { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.rating-score { text-align: center; }
.rating-score .num { font-size: 3.7rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.rating-score .stars { color: var(--c-red-2); font-size: 1.35rem; letter-spacing: 2px; }
.rating-score .count { color: var(--c-muted); font-size: .88rem; }
.rating-bars { display: grid; gap: 11px; }
.rbar { display: grid; grid-template-columns: 134px 1fr 46px; gap: 12px; align-items: center; font-size: .92rem; color: var(--c-text-soft); }
.rbar .track { background: var(--c-bg-soft2); height: 9px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--c-border-soft); }
.rbar .fill { height: 100%; background: linear-gradient(90deg, var(--c-red-3), var(--c-red)); border-radius: 6px; box-shadow: 0 0 12px rgba(225, 29, 42, .5); }

.reviews-list { display: grid; gap: 15px; margin: 22px 0; }
.review { border: 1px solid var(--c-border-soft); border-radius: var(--radius); padding: 18px 20px; background: var(--c-surface); box-shadow: var(--shadow-sm); transition: border-color .18s, transform .18s; }
.review:hover { border-color: var(--c-border); transform: translateY(-2px); }
.review .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review .who { font-weight: 700; color: #fff; }
.review .stars { color: var(--c-red-2); letter-spacing: 1px; }
.review .date { color: var(--c-muted); font-size: .84rem; }
.review p { margin: 8px 0 0; color: var(--c-text-soft); }
.stars .dim { color: #3a3a44; }

/* ---------- FAQ ---------- */
.faq { margin: 20px 0; }
.faq details { border: 1px solid var(--c-border-soft); border-radius: var(--radius-sm); background: var(--c-surface); margin-bottom: 11px; overflow: hidden; transition: border-color .18s; }
.faq details[open] { border-color: var(--c-red-line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: #fff; position: relative; user-select: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--c-red-3); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 17px; color: var(--c-text-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA-подвал ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--c-red-line); border-radius: var(--radius-lg);
  padding: 46px 30px;
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(225, 29, 42, .4), transparent 60%),
    linear-gradient(180deg, #16121a, #0f0d12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 0, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 0, #000, transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: var(--c-text-soft); max-width: 580px; margin: 0 auto 22px; }

/* ---------- Внутренняя перелинковка ---------- */
.related-inline { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-left: 3px solid var(--c-red); border-radius: var(--radius-sm); padding: 15px 19px; margin: 20px 0; font-size: .96rem; color: var(--c-text-soft); }
.related-inline strong { color: #fff; }

/* ---------- Футер ---------- */
.site-footer { position: relative; background: #08080a; color: var(--c-muted); margin-top: 54px; padding: 44px 0 28px; font-size: .93rem; border-top: 1px solid var(--c-border-soft); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-red-line), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .82rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: var(--c-text-soft); }
.site-footer a:hover { color: var(--c-red-3); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 14px 0 0; color: var(--c-muted); max-width: 330px; }
.footer-bottom { border-top: 1px solid var(--c-border-soft); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--c-dim); font-size: .84rem; }
.disclosure { color: var(--c-dim); font-size: .82rem; line-height: 1.55; margin-top: 10px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 14, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--c-border); }
.mobile-cta .btn { width: 100%; }

/* ---------- Появление при прокрутке (прогрессивное улучшение) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .rating-summary { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 42px 0 38px; }
  .section { padding: 32px 0; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 13, 17, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-lg);
    padding: 8px 14px 14px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .rbar { grid-template-columns: 104px 1fr 40px; font-size: .86rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 80px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.8rem; }
  .plan .price { font-size: 1.9rem; }
  .btn { font-size: 1rem; padding: 14px 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat .n { font-size: 1.6rem; }
}
