/* ruli-auto.ru — бюджетный сегмент. Светлый тёплый фон, мандариновый акцент,
   зелёный — для «выгоды». Системные шрифты: без загрузки веб-шрифтов. */
:root {
  /* Фирменная палитра РулиАвто: синий #2559FD, фиолетовый #662DF7, красный из логотипа #FE0600,
     тёмный #151515 / панель #1E1E1E, поверхность #F5F7FA, текст #111827, приглушённый #6B7280. */
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e3e7ee;
  --fill: #eceff4;
  --accent: #2559fd;
  --accent-d: #1b46d4;
  --accent-soft: #e7edff;
  --violet: #662df7;
  --grad: linear-gradient(90deg, #2559fd, #662df7);
  --red: #fe0600;
  --red-d: #d10500;
  --green: #1b46d4;       /* «под ключ» — фирменный синий */
  --green-soft: #e7edff;
  --dark: #151515;
  --navy: #1e1e1e;
  --r: 16px;
  --r-s: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 20px rgba(17, 24, 39, .07);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
.ic--big { width: 30px; height: 30px; }

/* ——— Шапка ——— */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--dark); border-bottom: 1px solid #2a2a2a; color: #f2f3f5; }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-plate { display: inline-flex; align-items: center; background: var(--dark); border-radius: 12px; padding: 5px 10px; flex: none; }
.logo-plate img { width: 100px; height: auto; }
.logo-tag { font-size: 12px; line-height: 1.15; font-weight: 700; color: #9ca3af; }
.hdr .logo-plate { padding: 0; }
.logo--ftr .logo-plate { background: #000; }
.ftr-role { color: #9ca3af; font-weight: 600; }
.office-role { margin-top: -4px !important; font-weight: 700; color: var(--accent-d) !important; font-size: 14px; }
.logo-txt { display: flex; flex-direction: column; font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; }
.logo-txt small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: #d1d5db; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; }
.hdr-phone { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.hdr-phone:hover { color: #c7d4ff; }
.hdr-phone .ic { color: #7f9bff; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.mnav-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav-panel a:hover { background: var(--fill); }
.mnav-phone { display: flex; align-items: center; gap: 8px; color: var(--accent-d) !important; }

/* ——— Кнопки, чипы ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; transition: transform .1s, background .15s; }
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(37, 89, 253, .3); }
.btn--accent:hover { background: linear-gradient(90deg, #1b46d4, #5520e0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--fill); color: var(--ink-2); }
.chip--green { background: var(--accent); color: #fff; }
.chip--dark { background: var(--violet); color: #fff; }
.chip--soft { background: var(--fill); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip-link:hover { border-color: var(--accent); color: var(--accent-d); }
.chip-link small { color: var(--muted); font-weight: 600; }

/* ——— Типографика блоков ——— */
.h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 12px; font-weight: 850; }
.h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 16px; font-weight: 800; }
.h3 { font-size: 19px; margin: 20px 0 10px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 820px; margin: 0 0 20px; }
.lede p { margin: 0; }
.pg { font-size: .55em; color: var(--muted); font-weight: 700; }
.sec { padding: 28px 0; }
.sec--tint { background: var(--navy); color: #fff; margin: 28px 0; padding: 44px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more .ic { width: 18px; height: 18px; }
.note { color: var(--muted); font-size: 14px; }

/* ——— Главная ——— */
.hero { padding: 36px 0 20px; background:
  radial-gradient(900px 400px at 85% -10%, #e3e9ff, transparent 70%),
  radial-gradient(600px 300px at -10% 110%, #efe7ff, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; font-size: 14px; }
.kicker .ic { color: var(--accent); width: 18px; height: 18px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 900; }
.hero mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 2px; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 0 22px; }
.qs { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; background: var(--panel); padding: 10px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.qs label, .filters label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.qs select, .filters select, .filters input[type=search] { height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 10px; font-size: 15px; color: var(--ink); min-width: 0; width: 100%; }
.qs .btn { align-self: end; height: 44px; min-height: 44px; }
.hero-ticket { background: var(--panel); border-radius: 22px; border: 2px dashed var(--accent); padding: 22px; box-shadow: var(--shadow); position: relative; }
.hero-ticket::before, .hero-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; background: var(--bg); border-radius: 50%; transform: translateY(-50%); border: 2px dashed var(--accent); }
.hero-ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.hero-ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }
.tk-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-row:last-of-type { border-bottom: 0; }
.tk-row b { font-size: 30px; font-weight: 900; color: var(--accent-d); min-width: 76px; letter-spacing: -.02em; }
.tk-row span { color: var(--ink-2); font-weight: 600; }
.tk-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.budget-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.btile { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.btile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btile span { font-weight: 700; color: var(--ink-2); }
.btile b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.btile small { color: var(--muted); }
.btile--accent { background: var(--grad); color: #fff; border-color: transparent; }
.btile--accent span, .btile--accent small { color: rgba(255, 255, 255, .88); }
.btile--accent:hover { color: #fff; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usp-i { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.usp-i .ic { color: var(--accent); background: var(--accent-soft); padding: 8px; width: 46px; height: 46px; border-radius: 14px; }
.usp-i h3 { margin: 12px 0 6px; font-size: 18px; }
.usp-i p { margin: 0; color: var(--ink-2); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; }
.steps b { font-size: 17px; }
.steps span { color: rgba(255, 255, 255, .78); font-size: 15px; }

.brand-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-cloud a { display: inline-flex; gap: 6px; align-items: baseline; padding: 9px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-cloud a:hover { border-color: var(--accent); }
.brand-cloud small { color: var(--muted); font-weight: 600; }
.brand-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.brand-table a { display: flex; flex-direction: column; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.brand-table a b { color: var(--ink); font-size: 18px; }
.brand-table a:hover { border-color: var(--accent); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

/* ——— Карточки ——— */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .12s, box-shadow .12s; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4/3; background: var(--fill); display: block; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .chip { position: absolute; left: 10px; top: 10px; }
.card-body { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 2px; flex: 1; }
.card-title { font-weight: 800; font-size: 17px; line-height: 1.25; }
.card-trim { color: var(--muted); font-size: 13px; min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: var(--ink-2); font-size: 14px; }
.card-price { margin-top: auto; padding-top: 8px; font-size: 21px; font-weight: 900; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price small { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; }

/* ——— Каталог ——— */
.filters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; background: var(--panel); border: 1px solid var(--line); padding: 14px; border-radius: 18px; margin-bottom: 14px; }
.filters .f-q { grid-column: span 4; }
.filters .f-chk { grid-column: span 2; flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); align-self: end; height: 44px; }
.filters .f-chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.found { color: var(--muted); font-weight: 600; margin: 0 0 12px; }
#more { margin-top: 20px; }
#more[hidden] { display: none; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager i { align-self: center; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 16px 0 4px; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-d); }

/* ——— Карточка авто ——— */
.car { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; margin-top: 10px; align-items: start; }
.car > *, .car-info > *, .split > *, .hero-in > * { min-width: 0; }
.gal-main { border-radius: 20px; overflow: hidden; background: var(--fill); aspect-ratio: 4/3; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scroll-snap-type: x mandatory; }
.th { flex: none; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--fill); scroll-snap-align: start; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.is-on { border-color: var(--accent); }
.car-side { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: sticky; top: 80px; }
.car-status { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.car-h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 8px; font-weight: 850; letter-spacing: -.02em; }
.car-h1 span { display: block; font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.car-price { font-size: clamp(30px, 4vw, 40px); font-weight: 900; margin: 8px 0 12px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.car-price small { font-size: 14px; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 0; }
.incl, .checks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.incl li, .checks li { position: relative; padding-left: 28px; }
.incl .ic, .checks .ic { color: var(--green); position: absolute; left: 0; top: 2px; }
.car-cta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.vs { background: var(--fill); border-radius: 14px; padding: 14px 16px; }
.vs-h { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 10px; }
.vs-h .ic { color: var(--accent); }
.vs .checks { margin: 0; font-size: 14px; }
.vs-row { display: flex; justify-content: space-between; padding: 4px 0; }
.vs-row--us b { color: var(--green); }
.vs-save { margin: 6px 0 0; font-weight: 800; color: var(--red-d); }
.car-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.specs--one { grid-template-columns: 1fr; }

/* ——— Форма ——— */
.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.lead-title { font-size: 21px; font-weight: 850; margin: 0; }
.lead-text { margin: -4px 0 0; color: var(--ink-2); }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.fld i { font-weight: 500; color: var(--muted); font-style: normal; }
.fld input, .fld select, .fld textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--ink); width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input[aria-invalid=true] { border-color: #d32f2f; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-note { font-size: 12px; color: var(--muted); margin: 0; }
.lead-msg { margin: 0; font-weight: 700; }
.lead-msg:empty { display: none; }
.lead-msg.is-ok { color: var(--green); background: var(--green-soft); padding: 12px 14px; border-radius: 12px; }
.lead-msg.is-err { color: #b42318; background: #fde8e6; padding: 12px 14px; border-radius: 12px; }
.lead.is-sent .fld, .lead.is-sent .btn, .lead.is-sent .lead-note { display: none; }

/* ——— Журнал ——— */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; }
.acard:hover { color: var(--ink); box-shadow: var(--shadow); }
.acard-img { aspect-ratio: 16/10; background: var(--fill); overflow: hidden; display: block; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.acard-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.acard-title { font-weight: 800; font-size: 18px; line-height: 1.25; }
.acard-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art { max-width: 780px; margin: 0 auto; }
.art-meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.art-lead { font-size: 20px; color: var(--ink-2); line-height: 1.5; margin: 0 0 20px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 24px; }
.toc p { margin: 0 0 6px; font-weight: 800; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.prose { font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 36px 0 12px; letter-spacing: -.015em; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; scroll-margin-top: 80px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.afig { margin: 24px 0; }
.afig img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--fill); }
.afig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--fill); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.ptable td small { display: block; color: var(--muted); font-size: 12px; }
.ptable .num { white-space: nowrap; font-weight: 800; }
.tnote { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.prose .grid { grid-template-columns: repeat(2, 1fr); margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.art-cta { margin: 32px 0; }

/* ——— Контакты, 404 ——— */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.office { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.office .h3 { margin-top: 0; }
.office .ic { color: var(--accent); }
.office p { margin: 6px 0; color: var(--ink-2); }
.big-phone { font-size: 22px; font-weight: 900; color: var(--ink); text-decoration: none; }
.nf { padding: 40px 16px; }
.nf-code { font-size: 96px; font-weight: 900; color: var(--accent); margin: 0; line-height: 1; }
.nf .grid { text-align: left; }

/* ——— Подвал ——— */
.ftr { background: var(--dark); color: #d1d5db; margin-top: 48px; padding: 40px 0 20px; font-size: 15px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { color: #9db4ff; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.logo--ftr, .logo--ftr:hover { color: #fff; }

.ftr-about { color: #a3a8b3; max-width: 380px; }
.ftr-h { color: #fff; font-weight: 800; margin: 0 0 10px; }
.ftr-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ftr-contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.ftr-contacts .ic { color: #7f9bff; margin-top: 2px; }
.ftr-legal { border-top: 1px solid #2a2a2a; margin-top: 28px; padding-top: 16px; font-size: 13px; color: #8b919c; }
.ftr-legal p { margin: 4px 0; }

/* ——— Адаптив ——— */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters .f-q { grid-column: span 2; }
  .filters .f-chk { grid-column: span 1; }
}
@media (max-width: 900px) {
  .nav, .hdr-phone span { display: none; }
  .hdr-phone { width: 44px; height: 44px; justify-content: center; background: var(--grad); color: #fff; border-radius: 12px; }
  .hdr-phone .ic { color: #fff; }
  .mnav { display: block; }
  .hdr-in { gap: 8px; }
  .hero-in, .split, .car, .car-info { grid-template-columns: 1fr; }
  .car-side { position: static; }
  .agrid, .contacts { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .budget-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid, .prose .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 15px; }
  .card-price { font-size: 17px; }
  .card-meta { font-size: 13px; }
  .qs { grid-template-columns: 1fr 1fr; }
  .qs .btn, .qs label:nth-of-type(3) { grid-column: span 2; }
  .hero-ticket::before, .hero-ticket::after { display: none; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
  .filters .f-q, .filters .f-chk { grid-column: span 2; }
  .usp, .steps, .agrid, .contacts, .specs { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .hero-sub { font-size: 16px; }
  .tk-row b { font-size: 24px; min-width: 64px; }
  .btile b { font-size: 28px; }
  .sec-head { flex-direction: column; gap: 0; margin-bottom: 8px; }
  .prose { font-size: 16.5px; }
  .art-lead { font-size: 18px; }
  .logo-plate img { width: 80px; }
  .logo-tag { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Короткая форма на первом экране карточки */
.lead--quick { padding: 14px; gap: 8px; box-shadow: none; margin: 0 0 12px; }
.q-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.lead--quick .fld input { padding: 10px 12px; }
.lead--quick .lead-note { font-size: 11px; }
.car-ru { display: block; font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.author { color: var(--ink-2); font-weight: 700; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .gal-main { aspect-ratio: 16/10; }
  .car-side { padding: 14px; }
  .car-h1 { font-size: 22px; }
  .car-price { font-size: 28px; margin: 4px 0 8px; }
  .car-status { margin-bottom: 6px; }
  .thumbs { padding-top: 6px; }
  .th { width: 72px; height: 54px; }
}
