/* page.css — лендинг, юридические страницы и поддержка Т-Горизонт. */

/* ---------- База ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Стеклянная поверхность (GlassCard) ---------- */
.glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

/* ---------- Навигация ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: 12px clamp(var(--space-md), 4vw, 48px);
  max-width: 1180px; margin: 0 auto;
}
.nav-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 3px 10px rgba(28,27,24,0.16); }
.nav .links { display: flex; gap: var(--space-lg); font-size: 14.5px; color: var(--text-secondary); align-items: center; }
.nav .links a:hover { color: var(--text-primary); }
.cta-sm {
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff !important; font-weight: 700;
  box-shadow: 0 6px 18px rgba(169,117,14,0.32);
}
@media (max-width: 680px) { .nav .links a:not(.cta-sm) { display: none; } }

/* ---------- Герой ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 76px) var(--space-md) var(--space-xl); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--radius-pill);
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: var(--space-lg);
}
.hero h1 {
  font-size: clamp(34px, 6.2vw, 60px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.03em; margin: 0 0 var(--space-md);
}
.hero h1 .amber { color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); line-height: 1.55; margin: 0 0 var(--space-lg); max-width: 540px; }
.badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 22px; border-radius: var(--radius-control);
  background: var(--text-primary); color: #fff; font-weight: 700; font-size: 15.5px;
  box-shadow: var(--shadow-raised); transition: transform .2s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .badge-ico { width: 24px; height: 24px; flex: none; }
.store-badge .small { display: block; font-size: 10.5px; font-weight: 600; opacity: .72; line-height: 1; margin-bottom: 2px; }
.trust { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-lg); }
.trust .item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-secondary); }
.trust .item svg { width: 15px; height: 15px; color: var(--positive); flex: none; }

/* ---------- Карточка-график в герое ---------- */
.hero-card { padding: var(--space-lg); }
.hero-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.hero-card .head .t { font-size: 17px; font-weight: 700; }
.hero-card .head .s { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.hero-card .verdict { text-align: right; flex: none; }
.hero-card .verdict .v { font-size: 21px; font-weight: 800; color: var(--accent); }
.hero-card .verdict .c { font-size: 11.5px; color: var(--text-secondary); }
.chart-surface { background: rgba(255,255,255,0.7); border: 1px solid var(--hairline); border-radius: var(--radius-inner); padding: 14px 12px 8px; }
.legend { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-secondary); }
.legend .k { display: inline-flex; align-items: center; gap: 7px; }
.legend .swatch { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.legend .swatch.dashed { background: repeating-linear-gradient(90deg, var(--positive) 0 6px, transparent 6px 10px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: var(--space-md); }
.tile { background: var(--accent-wash); border-radius: var(--radius-control); padding: 10px 8px; text-align: center; }
.tile .l { font-size: 11px; color: var(--text-secondary); }
.tile .v { font-size: 15.5px; font-weight: 700; margin-top: 2px; }

/* Отрисовка кривых при загрузке */
.draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s ease forwards; }
.draw.d2 { animation-delay: .18s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { opacity: 0; animation: pop .5s cubic-bezier(.2,1.4,.4,1) 1.35s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .draw, .pop { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Секции ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(44px, 7vw, 84px) var(--space-md); }
.section-title { text-align: center; margin-bottom: var(--space-2xl); }
.section-title h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
.section-title p { color: var(--text-secondary); font-size: 16px; max-width: 620px; margin: 0 auto; line-height: 1.55; }

/* Разбор счёта — горизонтальная шкала */
.split-bar { display: flex; height: 62px; border-radius: var(--radius-inner); overflow: hidden; box-shadow: var(--shadow-card); }
.split-bar .seg { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13.5px; padding: 0 6px; text-align: center; }
.split-bar .seg span { opacity: .82; font-weight: 600; font-size: 11px; display: block; }
.seg.fuel { background: var(--accent); flex: 44; }
.seg.depr { background: #8A5F14; flex: 33; }
.seg.wear { background: #6E6A61; flex: 16; }
.seg.toll { background: #B99A55; flex: 7; }
.split-note { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: var(--space-md); }
@media (max-width: 640px) { .split-bar .seg span { display: none; } .split-bar .seg { font-size: 12px; } }

/* Сетка возможностей */
.features { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: var(--space-lg); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.feature .ico {
  width: 46px; height: 46px; border-radius: var(--radius-control); display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  color: var(--accent); margin-bottom: var(--space-md);
}
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { margin: 0 0 7px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

/* Метод — как считается */
.method { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 860px) { .method { grid-template-columns: 1fr 1fr; } }
.method .step { padding: var(--space-lg); }
.method .step .n {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.method .step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.method .step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.62; }
.formula {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-control);
  background: rgba(28,27,24,0.045); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-primary);
  overflow-x: auto; white-space: nowrap;
}

/* Приватность */
.privacy-card { padding: clamp(28px, 5vw, 48px); text-align: center; }
.privacy-card h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin: 0 0 var(--space-sm); letter-spacing: -0.02em; }
.privacy-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0 auto var(--space-lg); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill { padding: 9px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.8); border: 1px solid var(--hairline); font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.pill b { color: var(--positive); }

/* Финальный призыв */
.final { max-width: 900px; margin: 0 auto; padding: clamp(40px, 7vw, 76px) var(--space-md); }
.final .card { padding: clamp(32px, 6vw, 60px) var(--space-lg); text-align: center; background: linear-gradient(155deg, rgba(216,168,63,0.20), rgba(255,255,255,0.9)); }
.final h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
.final p { color: var(--text-secondary); margin: 0 auto var(--space-lg); max-width: 500px; line-height: 1.55; }
.final .badges { justify-content: center; }

/* ---------- Юридические страницы ---------- */
.page { max-width: 760px; margin: 0 auto; padding: var(--space-xl) var(--space-md) 72px; }
.legal-card { padding: clamp(24px, 4vw, 44px); }
.legal h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 var(--space-xs); letter-spacing: -0.02em; }
.legal .updated { color: var(--text-secondary); font-size: 13px; margin-bottom: var(--space-lg); }
.legal h2 { font-size: 18px; font-weight: 700; margin: var(--space-xl) 0 var(--space-sm); color: var(--accent); }
.legal p, .legal li { color: #34322D; font-size: 15.5px; line-height: 1.68; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text-primary); }
.callout {
  margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: var(--accent-wash);
}
.callout p { margin: 0; font-size: 15px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-lg); }
.toc a { font-size: 13px; padding: 6px 13px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.75); border: 1px solid var(--hairline); color: var(--text-secondary); text-decoration: none; }
.toc a:hover { border-color: var(--accent-line); color: var(--accent); }

/* Поддержка */
.support-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 700px) { .support-grid { grid-template-columns: 1fr 1fr; } }
.support-item { padding: var(--space-lg); }
.support-item h3 { margin: 0 0 7px; font-size: 16.5px; font-weight: 700; }
.support-item p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: var(--space-md);
  padding: 13px 22px; border-radius: var(--radius-control);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px;
  box-shadow: var(--shadow-accent);
}
.faq { margin-top: var(--space-xl); }
.faq details { padding: var(--space-md) var(--space-lg); margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 21px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.62; margin: 12px 0 0; }

/* ---------- Подвал ---------- */
footer { max-width: 1180px; margin: 0 auto; padding: var(--space-xl) var(--space-md) var(--space-2xl); color: var(--text-secondary); font-size: 13.5px; border-top: 1px solid var(--hairline); }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-lg); margin-bottom: var(--space-lg); }
footer .fine { line-height: 1.6; max-width: 460px; margin-top: 10px; }
footer .row { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
footer a:hover { color: var(--accent); }

/* ---------- Форма обратной связи ---------- */
.form { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px var(--space-md);
  border-radius: var(--radius-control);
  background: rgba(255,255,255,0.75); border: 1px solid var(--hairline-strong);
  color: var(--text-primary); font-size: 15.5px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"] { justify-self: start; margin-top: 0; border: none; }
.form button[disabled] { opacity: .6; cursor: default; }
.form-status { font-size: 14.5px; min-height: 21px; margin: 0; line-height: 1.5; }
.form-status.ok { color: var(--positive); font-weight: 600; }
.form-status.err { color: var(--negative); font-weight: 600; }
.form-fallback { margin-top: var(--space-lg); font-size: 14px; color: var(--text-secondary); }
.form-fallback a { color: var(--accent); }
