:root {
    --canvas: #0e151d; --paper: #151e28; --ink: #f1f6fb; --ink2: #ffffff; --mute: #97a5b4; --line: rgba(233,241,250,.13);
    --max: 1080px; --accent: #f0cc6a; --accent-ink: #1a1508; --accent-soft: rgba(240,204,106,.22);
    --btn-bg: #f0cc6a; --btn-fg: #1a1508; --header-bg: rgba(14,21,29,.8);
    --glass-bg: rgba(255,255,255,.08); --glass-line: rgba(255,255,255,.14);
    --metal-hi: #f5e4b0; --metal-mid: #f0cc6a; --metal-lo: #b8943a;
    --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-pill: 999px;
    --elev-flag: 0 1px 0 rgba(255,255,255,.34) inset, 0 8px 18px rgba(0,0,0,.22);
    --elev-flag-hi: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 24px rgba(0,0,0,.28);
    --elev-cta: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 8px 20px rgba(240,204,106,.28);
    --elev-cta-hi: 0 1px 0 rgba(255,255,255,.45) inset, 0 -1px 0 rgba(0,0,0,.14) inset, 0 12px 26px rgba(240,204,106,.34);
    --elev-cta-press: 0 1px 0 rgba(255,255,255,.2) inset, 0 3px 10px rgba(0,0,0,.28);
    --elev-disc: 0 1px 0 rgba(255,255,255,.38) inset, 0 -2px 4px rgba(0,0,0,.22) inset, 0 6px 14px rgba(0,0,0,.28);
    --elev-disc-hi: 0 1px 0 rgba(255,255,255,.46) inset, 0 -2px 4px rgba(0,0,0,.18) inset, 0 10px 18px rgba(0,0,0,.3);
    --elev-float: 0 22px 40px rgba(0,0,0,.32); --elev-sheet: 0 18px 48px rgba(0,0,0,.42);
    /* золотая кнопка: объёмный градиент, кант и мягкая тень */
    --gold3d: linear-gradient(180deg, #ffe6a6 0%, #f5d477 55%, #e7bf53 100%);
    --gold3d-hi: linear-gradient(180deg, #fff0c0 0%, #f9d985 55%, #eec85f 100%);
    --ring-gold: inset 0 1px 0 rgba(255,255,255,.42), 0 0 0 1px rgba(240,204,106,.26),
                 0 1px 2px rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.20);
    --ring-gold-hi: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px rgba(255,236,175,.4),
                 0 2px 4px rgba(0,0,0,.2), 0 12px 24px rgba(0,0,0,.26), 0 8px 20px rgba(240,204,106,.18);
    --ring-gold-press: inset 0 2px 4px rgba(96,66,8,.22), 0 1px 2px rgba(0,0,0,.18);
    --dur: 220ms; --ease: cubic-bezier(.22,.7,.25,1);
    /* autocrm compat aliases */
    --bg: var(--canvas); --card: var(--paper); --gold: var(--accent); --gold-ink: var(--accent-ink);
    color-scheme: dark;
  }
  html[data-theme="light"] {
    --canvas: #f3eee4; --paper: #faf6ee; --ink: #1a1712; --ink2: #120f0b; --mute: #6f675c; --line: rgba(26,23,18,.14);
    --accent: #c9a227; --accent-ink: #1a1508; --accent-soft: rgba(201,162,39,.18);
    --btn-bg: #c9a227; --btn-fg: #1a1508; --header-bg: rgba(243,238,228,.84);
    --glass-bg: rgba(255,255,255,.4); --glass-line: rgba(255,255,255,.7);
    --metal-hi: #e8d48a; --metal-mid: #c9a227; --metal-lo: #8a6e16;
    --elev-flag: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 16px rgba(40,36,30,.12);
    --elev-flag-hi: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 22px rgba(40,36,30,.16);
    --elev-cta: 0 1px 0 rgba(255,255,255,.28) inset, 0 -1px 0 rgba(0,0,0,.16) inset, 0 8px 18px rgba(201,162,39,.28);
    --elev-cta-hi: 0 1px 0 rgba(255,255,255,.36) inset, 0 -1px 0 rgba(0,0,0,.12) inset, 0 12px 24px rgba(201,162,39,.32);
    --elev-cta-press: 0 1px 0 rgba(255,255,255,.16) inset, 0 3px 8px rgba(40,36,30,.18);
    --elev-disc: 0 1px 0 rgba(255,255,255,.55) inset, 0 -2px 4px rgba(0,0,0,.1) inset, 0 6px 14px rgba(0,0,0,.1);
    --elev-disc-hi: 0 1px 0 rgba(255,255,255,.7) inset, 0 -2px 4px rgba(0,0,0,.08) inset, 0 10px 18px rgba(0,0,0,.12);
    --elev-float: 0 18px 32px rgba(40,36,30,.16); --elev-sheet: 0 18px 44px rgba(40,36,30,.22);
    --bg: var(--canvas); --card: var(--paper); --gold: var(--accent); --gold-ink: var(--accent-ink);
    color-scheme: light;
  }
  html[data-theme="light"] body.skin-catalog {
    --canvas: #eef0f3; --bg: #eef0f3; --paper: #ffffff; --card: #ffffff;
    --ink: #1c1c1c; --mute: #5c5c5c; --line: rgba(20,20,20,.12);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  .page [id] { scroll-margin-top: 88px; }
  html, body { background: var(--bg); color: var(--ink); }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    line-height: 1.55; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left,0); padding-right: env(safe-area-inset-right,0);
    transition: background-color .48s ease, color .48s ease;
  }
  section.band, .modal-card, .lightbox-card, header { transition: background-color .48s ease, border-color .48s ease; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; }
  .page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 96px; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  /* header — sanoriauto exact */
  header, .topbar { position: relative; z-index: 60; background: transparent; backdrop-filter: none; }
  .topbar { position: relative; backdrop-filter: blur(16px); background: var(--header-bg); border-bottom: 1px solid var(--line); }
  html[data-theme="light"] .topbar { background: rgba(243,238,228,.88); }
  html[data-theme="light"] body.skin-catalog .topbar { background: rgba(238,240,243,.92); }
  .nav, .topbar .inner { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 10px 0; min-width: 0; justify-content: flex-start; }
  /* шапка выравнивается по контенту: у страницы двойной отступ (page + wrap), поэтому 80px */
  .topbar .inner { width: min(var(--max), calc(100% - 80px)); margin: 0 auto; }
  .theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--r-pill); color: var(--mute); background: transparent; font-size: 13px; font-weight: 700; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
  .theme-toggle:hover { background: rgba(127,127,127,.12); color: var(--ink); }
  .theme-toggle .sun { display: none; }
  html[data-theme="light"] .theme-toggle .moon { display: none; }
  html[data-theme="light"] .theme-toggle .sun { display: inline; }
  /* фирменный блок: знак-дорога и надпись — оба векторные, один цвет */
  .brand { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; color: var(--ink); }
  .brand-mark-wrap { display: block; position: relative; width: 46px; height: 46px; }
  .brand-mark-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  html[data-theme="light"] .brand { color: #17140f; }
  /* вход шапки: знак рисуется золотой линией, проявляется, следом наводится надпись */
  .brand-mark-wrap .bm-base {
    color: inherit;
    animation: hdrMarkIn .24s ease .3s both;
    transition: color var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .topbar .brand:hover .bm-base,
  .topbar .brand:focus-visible .bm-base {
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 60%, transparent));
    transform: scale(1.06);
  }
  html[data-theme="light"] .topbar .brand:hover .bm-base,
  html[data-theme="light"] .topbar .brand:focus-visible .bm-base {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(201,162,39,.7)) drop-shadow(0 0 14px rgba(201,162,39,.45));
  }
  .brand-mark-wrap .bm-draw { color: #ffe6a6; fill: none; stroke: currentColor; stroke-width: 16;
    stroke-linejoin: round; stroke-linecap: round; opacity: .95;
    filter: drop-shadow(0 0 6px rgba(255,214,120,.6)); animation: hdrDrawOut .26s ease .32s both; }
  html[data-theme="light"] .brand-mark-wrap .bm-draw { color: #c9a227; filter: drop-shadow(0 0 5px rgba(201,162,39,.5)); }
  .brand-mark-wrap .bm-draw use { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hdrDraw .34s cubic-bezier(.45,.06,.3,1) .02s both; }
  @keyframes hdrDraw { to { stroke-dashoffset: 0; } }
  @keyframes hdrMarkIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hdrDrawOut { from { opacity: .95; } to { opacity: 0; visibility: hidden; } }
  .nav-right, .top-cta { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; margin-left: auto; }
  .topbar nav { display: flex; gap: 18px; font-size: 14px; color: var(--mute); }
  .topbar nav a { position: relative; transition: color var(--dur) var(--ease); }
  .topbar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 50%; transition: transform 220ms var(--ease); }
  .topbar nav a:hover { color: var(--ink); }
  .topbar nav a:hover::after { transform: scaleX(1); }
  .topbar .brand img { transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
  .topbar .brand:hover img { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(240,204,106,.32)); }
  /* контакты в шапке: номер и мессенджеры */
  .top-contacts { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .top-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 650; font-size: 14px; white-space: nowrap; padding: 4px 2px; transition: color var(--dur) var(--ease); }
  .top-phone svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
  .top-mail { display: flex; flex-direction: row; align-items: center; gap: 8px; line-height: 1.15; color: inherit; text-decoration: none; }
  .top-mail svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
  .top-mail span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
  .top-phone:hover { color: var(--accent); }
  .top-msgr { display: flex; align-items: center; gap: 6px; }
  .top-msgr .m { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--mute); transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .top-msgr .m svg { width: 18px; height: 18px; display: block; }
  .top-msgr .m:hover { transform: translateY(-1px); }
  /* фирменные цвета мессенджеров — на всех ширинах, не только на телефоне */
  .top-msgr .m.tg { color: #229ED9; }
  .top-msgr .m.max { color: #6a45d8; }
  .top-msgr .m.wa { color: #25d366; }
  .top-msgr .m.tg:hover { background: #229ED9; border-color: transparent; color: #fff; }
  .top-msgr .m.max:hover { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); border-color: transparent; color: #fff; }
  .top-msgr .m.wa:hover { background: #25d366; border-color: transparent; color: #fff; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border-radius: var(--r-pill); background: var(--gold3d); color: var(--btn-fg); font-weight: 800; font-size: 14px; letter-spacing: .012em; box-shadow: var(--ring-gold); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur) var(--ease); white-space: nowrap; position: relative; overflow: hidden; }
  .btn:not(.ghost)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%); transform: translateX(-130%); pointer-events: none; }
  .btn:not(.ghost):hover::after { transform: translateX(130%); transition: transform 560ms var(--ease); }
  .btn:hover { transform: translateY(-2px); background: var(--gold3d-hi); box-shadow: var(--ring-gold-hi); filter: brightness(1.03); }
  .btn:active { transform: translateY(1px); background: var(--gold3d); box-shadow: var(--ring-gold-press); }
  .btn:focus-visible, .fab-toggle:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .btn.sm { min-height: 40px; padding: 9px 18px; font-size: 13px; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 4px 12px var(--accent-soft); }
  .btn.sm:hover { transform: translateY(-1px); }
  .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn-gold { background: var(--gold3d); color: var(--gold-ink); box-shadow: var(--ring-gold); }
  .btn-gold:hover { background: var(--gold3d-hi); box-shadow: var(--ring-gold-hi); }
  .btn-gold:active { background: var(--gold3d); box-shadow: var(--ring-gold-press); }
  .btn-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .btn-wa { background: #25d366; color: #fff; }
  /* compat size overrides for catalog buttons */
  .card .btn, .filters .btn { min-height: 42px; border-radius: 10px; }

  /* hero — sanoriauto exact */
  .hero { position: relative; padding: 20px 0 34px; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,340px); gap: 36px 48px; align-items: center; }
  .hero-cat { padding: 36px 0 22px; }
  .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
  h1 { font-size: clamp(30px,4.8vw,46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 14px; text-wrap: balance; }
  .hero-full h1 { font-size: clamp(32px,5vw,52px); }
  .lead { font-size: 16.5px; color: var(--mute); max-width: 38ch; margin-bottom: 26px; }
  .lead .closer { display: block; margin-top: 8px; color: var(--ink); font-weight: 600; }
  .hero-cta { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn { min-width: 188px; }
  .k, .hero-cat .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
  h2 { font-size: clamp(24px,3.2vw,32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 8px; }
  .sub { color: var(--mute); font-size: 15px; max-width: 48ch; margin-bottom: 24px; }
  h1, h2, h3, .brand { font-family: inherit; font-weight: 800; }

  /* markets — sanoriauto with 3D + expandable panels */
  .markets { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 16px; max-width: 480px; align-items: start; }
  .catalog-markets { max-width: 560px; margin: 16px auto 10px; }
  /* блок стоимости выровнен по левому краю, как остальные секции */
  #price .markets, #price .offer-join, #price .offer-cta { max-width: 480px; margin-left: auto; margin-right: auto; }
  .mkt { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; }
  .mkt .flag { width: 100%; aspect-ratio: 3/2; border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: var(--elev-flag); line-height: 0; transform: perspective(420px) rotateX(5deg); transform-origin: 50% 100%; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .mkt:hover .flag, .mkt.on .flag, .mkt[aria-expanded="true"] .flag { transform: perspective(420px) rotateX(0deg) translateY(-3px); box-shadow: var(--elev-flag-hi); }
  .mkt .flag svg { width: 100%; height: 100%; display: block; }
  .mkt .name { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); text-align: center; line-height: 1.2; }
  .mkt .sum { font-size: 16px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
  .mkt .n { font-size: 12px; color: var(--mute); }
  .offer-join { display: block; width: 100%; max-width: 480px; height: 20px; margin: 6px 0 0; color: var(--accent); }
  .offer-join svg { display: block; width: 100%; height: 20px; }
  .offer-cta { display: flex; justify-content: center; max-width: 480px; margin-top: 10px; }
  .offer-cta .offer-label, .offer-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-align: center; display: block; margin-top: 10px; }
  /* фирменный спрайт: графика лежит в документе один раз, дальше ссылки <use> */
  .brand-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .hero-logo { position: relative; justify-self: end; width: 100%; max-width: 320px; }
  .hero-logo .lockup { position: relative; z-index: 1; display: block; width: 100%; color: var(--ink); }
  /* без CSS-тени: Chrome считает drop-shadow по всему полотну svg (1024x1280) и на светлой
     теме под логотипом проступает серый прямоугольник. Глубину даёт сам знак. */
  .hero-logo .lockup svg { display: block; width: 100%; height: auto; }
  html[data-theme="light"] .hero-logo .lockup { color: #17140f; }
  /* знак-дорога рисуется золотой линией, под ней проявляется эмблема, затем надпись наводится на резкость */
  .hero-logo .lockup .lk-mark { animation: lkMarkIn .4s ease 1.14s both; }
  .hero-logo .lockup .lk-word { animation: lkWordIn .62s cubic-bezier(.2,.7,.2,1) 1.28s both; }
  @keyframes lkMarkIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes lkWordIn {
    from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
  /* золотая линия рисует дорогу, впереди бежит светящаяся голова.
     Слои после отрисовки гасим через visibility: иначе композитный слой с тенью
     оставляет после себя рамку до ближайшей перерисовки (видно как «осталась рамка»). */
  .hero-logo .lockup-draw { position: absolute; z-index: 3; pointer-events: none; color: #ffe6a6;
    left: 13.61%; top: 12.53%; width: 71.22%; height: 57.37%; opacity: 0;
    animation: markDrawIn .12s linear .28s both, markDrawOut .38s ease 1.22s both; }
  .hero-logo .lockup-draw svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    fill: none; stroke-linejoin: round; stroke-linecap: round; }
  /* золотая линия ведёт контур, впереди бежит светящаяся голова */
  .hero-logo .lockup-draw .ld-line { stroke: currentColor; stroke-width: 7;
    filter: drop-shadow(0 0 10px rgba(255,214,120,.65)); }
  .hero-logo .lockup-draw .ld-head { stroke: #fff8e2; stroke-width: 14;
    filter: drop-shadow(0 0 11px rgba(255,236,180,.9)); }
  /* рисуем контур: свойства наследуются в содержимое <use>, поэтому вешаем их на него */
  .hero-logo .lockup-draw .ld-line use { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: markDraw .9s cubic-bezier(.42,.05,.28,1) .3s both; }
  .hero-logo .lockup-draw .ld-head use { stroke-dasharray: .07 1; stroke-dashoffset: 1.07;
    animation: markHead .9s cubic-bezier(.42,.05,.28,1) .3s both; }
  @keyframes markDraw { to { stroke-dashoffset: 0; } }
  @keyframes markHead { to { stroke-dashoffset: 0; } }
  @keyframes markDrawIn { to { opacity: .95; } }
  @keyframes markDrawOut { from { opacity: .95; } to { opacity: 0; visibility: hidden; } }
  /* блик по маске убран: он грузил лишние 135 КБ ради одного прохода света */
.hero-logo::after { content: none; }

  /* текст первого экрана поднимается по очереди */
  .hero-copy > .eyebrow { animation: heroRise .7s cubic-bezier(.2,.7,.2,1) .05s both; }
  .hero-copy > h1 { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .16s both; }
  .hero-copy > .lead { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .28s both; }
  .hero-copy > .hero-cta { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .4s both; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* знак в шапке — вектор: чистый на любом размере, появляется без рывка */

  /* «как мы работаем»: дорога прорисовывается, по ней бежит блик,
     шаги поднимаются по очереди, иконки обводятся, узлы на дороге вспыхивают */
  .steps.anim::before {
    animation: roadGrow 1.6s cubic-bezier(.4,.05,.3,1) both,
               roadSheen 3.9s ease-in-out .45s 1 both;
    background-image: linear-gradient(90deg, transparent 0 44%, rgba(240,204,106,.95) 50%, transparent 56%),
                      linear-gradient(90deg, transparent, var(--accent) 6%, var(--accent) 94%, transparent);
    background-size: 26% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: -30% 0, 0 0;
  }
  .steps.anim > .step { animation: stepRise .9s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--si, 0) * 225ms + 180ms); }
  .steps.anim > .step .step-ic { animation: iconPop .75s cubic-bezier(.2,.9,.3,1) both;
    animation-delay: calc(var(--si, 0) * 225ms + 390ms); }
  .steps.anim > .step .step-ic svg {
    filter: drop-shadow(0 0 9px rgba(240,204,106,.32));
    transition: filter .4s var(--ease);
  }
  .steps.anim > .step .step-ic svg * {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: iconDraw 1.2s cubic-bezier(.5,.05,.35,1) both;
    animation-delay: calc(var(--si, 0) * 225ms + 480ms);
  }
  .steps.anim > .step .step-ic::after {
    animation: nodePop .68s cubic-bezier(.2,.9,.3,1) both;
    animation-delay: calc(var(--si, 0) * 225ms + 645ms);
  }
  .steps.anim > .step h3 { animation: stepWake .75s ease both;
    animation-delay: calc(var(--si, 0) * 225ms + 450ms); }
  @keyframes roadGrow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes roadSheen { from { background-position: -30% 0, 0 0; } to { background-position: 130% 0, 0 0; } }
  @keyframes stepRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes iconPop { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes iconDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes nodePop { from { transform: rotate(45deg) scale(.2); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
  @keyframes stepWake { from { color: var(--mute); } to { color: var(--ink2); } }
  @media (max-width: 900px) {
    .steps.anim::before {
      animation-name: roadGrowDown, roadSheenDown;
      background-image: linear-gradient(180deg, transparent 0 44%, rgba(240,204,106,.95) 50%, transparent 56%),
                        repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 12px);
      background-size: 100% 26%, 100% 100%;
      background-position: 0 -30%, 0 0;
    }
    @keyframes roadGrowDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
    @keyframes roadSheenDown { from { background-position: 0 -30%, 0 0; } to { background-position: 0 130%, 0 0; } }
  }

  /* блоки проявляются при прокрутке и шапка обретает глубину */
  [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .75s cubic-bezier(.2,.7,.2,1) var(--rd,0ms),
                transform .75s cubic-bezier(.2,.7,.2,1) var(--rd,0ms);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  .topbar { transition: box-shadow .35s var(--ease), background .35s var(--ease); }
  .topbar.scrolled { box-shadow: 0 12px 34px rgba(0,0,0,.34); backdrop-filter: saturate(150%) blur(12px); }
  html[data-theme="light"] .topbar.scrolled { box-shadow: 0 10px 28px rgba(20,18,14,.1); }
  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.34) 50%, transparent 60%);
    transform: translateX(-130%); transition: transform .75s var(--ease);
  }
  .btn:hover::after { transform: translateX(130%); }
  @media (max-width: 900px) { .hero-logo .sheen { animation-duration: 1.15s; } }

  /* geo */
  .geo-frame { position: absolute; inset: 2% 6% 6%; pointer-events: none; z-index: 2; }
  .geo-frame i { position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; opacity: .5; }
  .geo-frame .tl { top:0; left:0; border-width:1.5px 0 0 1.5px; } .geo-frame .tr { top:0; right:0; border-width:1.5px 1.5px 0 0; }
  .geo-frame .bl { bottom:0; left:0; border-width:0 0 1.5px 1.5px; } .geo-frame .br { bottom:0; right:0; border-width:0 1.5px 1.5px 0; }
  .geo-rule { display: flex; align-items: center; gap: 10px; height: 12px; margin: 8px 0 0; color: var(--accent); opacity: .55; }
  .geo-rule::before, .geo-rule::after { content:""; width:8px; height:8px; border:1.5px solid currentColor; transform: rotate(45deg); flex-shrink:0; }
  .geo-rule b { display:block; flex:1; height:1px; background: currentColor; opacity:.55; }

  /* generic */
  .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; }
  section.block { padding: 56px 0; }
  section.band { background: transparent; }
  #why.band { background: transparent; }

  /* country-tabs — portal pills, separate from expandable flags */
  .country-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  .country-tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--mute); font-weight: 700; font-size: 14px; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .country-tab.active, .country-tab:hover { border-color: var(--accent); color: var(--accent); }
  .country-tab:active, .chip:active, .price-tag:active { transform: scale(.96); }
  .chip, .price-tag { transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }

  /* filters */
  .filters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 16px; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
  .filters .f { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .filters label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .filters select { width: 100%; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(233,241,250,.28); background: rgba(255,255,255,.12); color: var(--ink2); font: inherit; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .filters select option { background: var(--paper); color: var(--ink); }
  html[data-theme="light"] .filters select option { background: #fff; color: #1a1712; }
  .filters select:focus, .filters input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .filters.loading { opacity: .55; pointer-events: none; cursor: wait; }
  .filters .actions { flex-direction: row; align-self: end; height: 42px; gap: 8px; }
  .filters .actions .btn { flex: 1; height: 42px; min-width: 0; padding: 0 10px; }
  .filters .search { grid-column: 1 / -1; }
  .filters input[type="search"] { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(233,241,250,.28); background: rgba(255,255,255,.14); color: var(--ink2); font: inherit; font-size: 16px; }
  .filters input[type="search"]::placeholder { color: #b7c4d2; opacity: 1; }
  .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
  .count { color: var(--mute); font-size: 13px; margin: 0 0 12px; }
  html[data-theme="light"] body.skin-catalog .filters { background: transparent; border: 0; padding: 0 0 12px; box-shadow: none; }
  html[data-theme="light"] body.skin-catalog .filters select, html[data-theme="light"] body.skin-catalog .filters input[type="search"] { background: #fff; border-color: rgba(0,0,0,.10); }

  /* catalog grid + card */
  .grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
  /* Каталог — ровная сетка: колоночная раскладка рвала карточку между колонками,
     от карточки оставался только низ с иконками */
  /* stretch, не start: иначе карточки в ряду получают высоту по содержимому и «пляшут» */
  .catalog.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; align-items: stretch; }
  @media (max-width: 1100px) { .catalog.grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
  /* планшет: те же три карточки, но крупнее — на 480 px они терялись в ширине экрана */
  @media (min-width: 561px) and (max-width: 1200px) {
    #price .markets, .markets.catalog-markets { max-width: 700px; gap: 18px; }
    #price .offer-cta, #price .offer-join { max-width: 700px; }
  }
  /* шапка на телефонах и планшетах — одна компактная строка: номер, три мессенджера,
     кнопка темы. Логотип убран: он и так крупный в первом экране */
  @media (max-width: 1100px) {
    .topbar .inner {
      display: flex; align-items: center; gap: 10px;
      min-height: 0; padding: 10px 0;
    }
    .topbar nav { display: none; }
    .topbar .brand-mark-wrap { width: 32px; height: 32px; }
    .top-mail { display: none; }
    .top-phones { gap: 10px; }
    .top-phones .top-phone { font-size: 13px; }
    .top-msgr .m { width: 34px; height: 34px; border-radius: 10px; }
    .top-msgr .m svg { width: 17px; height: 17px; }
    .top-msgr .m.tg { background: #229ED9; color: #fff; border-color: transparent; }
    .top-msgr .m.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); color: #fff; border-color: transparent; }
    .top-msgr .m.wa { background: #25d366; color: #fff; border-color: transparent; }
  }
  @media (max-width: 820px) { .catalog.grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 560px) { .catalog.grid { grid-template-columns: 1fr; } }
  .catalog .card, .grid .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform 220ms var(--ease), border-color 220ms, box-shadow 220ms; }
  .card:hover { border-color: rgba(240,204,106,.55); transform: translateY(-5px); box-shadow: 0 22px 40px rgba(0,0,0,.38); }
  html[data-theme="light"] .catalog .card { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 10px 28px rgba(16,16,16,.08); }
  html[data-theme="light"] .catalog .card-price { color: #1c1c1c; }
  html[data-theme="light"] .catalog .card-btn { background: #1c1c1c; color: #fff; }
  html[data-theme="light"] .price-box .p-main { color: #111; }
  html[data-theme="light"] .price-box .card-price { color: #111; }
  html[data-theme="light"] .calc-grid.head { color: #111; }
  html[data-theme="light"] .eyebrow, html[data-theme="light"] .k, html[data-theme="light"] .hero-cat .k,
  html[data-theme="light"] .offer-label, html[data-theme="light"] .offer-cta .offer-label { color: #8a6e16; }
  html[data-theme="light"] body.skin-catalog .rows span, html[data-theme="light"] body.skin-catalog .rows b { background: var(--bg); }
  html[data-theme="light"] body.skin-home #specials .catalog .card { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 10px 28px rgba(16,16,16,.08); }
  html[data-theme="light"] body.skin-home #specials .catalog .card-price { color: #1c1c1c; }
  html[data-theme="light"] body.skin-home #specials .catalog .card-btn { background: #1c1c1c; color: #fff; }
  .card .media { display: flex; flex-direction: column; }
  .card .shot { position: relative; display: block; overflow: hidden; aspect-ratio: var(--shot-ratio, 4/3); background: #1c1915; touch-action: pan-y; }
  /* пока фото грузится, окно не должно выглядеть провалом: мягкое дыхание на месте снимка */
  .card .shot::before { content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(100deg, #1c1915 12%, #262119 42%, #1c1915 72%); background-size: 220% 100%;
    animation: shotLoading 1600ms linear infinite; }
  .card .shot.g-loaded::before { display: none; }
  @keyframes shotLoading { from { background-position: 130% 0; } to { background-position: -30% 0; } }
  @media (prefers-reduced-motion: reduce) { .card .shot::before { animation: none; } }
  .card .shot img, .card .shot .g-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .card .shot .g-img { position: absolute; inset: 0; opacity: 0; transition: opacity 320ms var(--ease); }
  .card .shot .g-img.on { opacity: 1; }
  .card .shot.has-gal { cursor: pointer; }
  .g-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
  .g-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
  .g-dots span.on { background: #fff; }
  .card .shot img { transition: transform 420ms var(--ease); }
  .card:hover .shot:not(.has-gal) img { transform: scale(1.05); }
  .card-label, .card-type { position: absolute; z-index: 2; top: 10px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: rgba(10,8,6,.78); color: #fff; }
  .card-label { left: 10px; } .card-type { right: 10px; }
  .card-bid { position: absolute; z-index: 2; bottom: 10px; left: 10px; font-size: 11px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: #e3c567; background: rgba(10,8,6,.78); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
  .card .shot.has-gal .card-bid { bottom: 22px; }
  .card-price-note { font-size: 12px; color: var(--mute); margin: 2px 0 0; }
  .bid-flag { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #e3c567; margin: 0 0 8px; }
  .spec-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; background: linear-gradient(180deg, #ffe08a, var(--accent)); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
  .card .ph { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center; display: grid; place-items: center; background: #111; color: var(--mute); font-size: 13px; }
  .card .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; padding: 0 4px 0; }
  .card .thumbs img { aspect-ratio: 16/10; border-radius: 6px; }
  .card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .card h3, .card-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; word-break: break-word; }
  .card .year { font-size: 15px; color: var(--mute); margin: 2px 0 0; }
  .card .facts { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--mute); margin-top: 6px; }
  .card .facts span + span::before { content: "·"; margin: 0 8px; color: rgba(166,158,144,.7); }
  .card-price { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; margin: 8px 0 0; }
  .card-price span { font-size: 15px; margin-left: 4px; }
  /* название всегда в две строки: цены и кнопки встают на одном уровне во всём ряду */
  .card-title { min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .facts { min-height: 1.4em; align-content: flex-start; }
  .card-foot { margin-top: auto; padding-top: 8px; }
  .card-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
  .card-bottom .msgr button { border: 0; cursor: pointer; font: inherit; }
  .order-choice { margin: 0; flex: 0 0 auto; }
  .card-msgr { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: 8px; }
  .msgr.icon-only { display: grid; place-items: center; width: 100%; height: 40px; border-radius: 10px; color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.22); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease); }
  .msgr.icon-only:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 10px rgba(0,0,0,.26); }
  .msgr.icon-only svg { width: 20px; height: 20px; display: block; }
  .msgr.icon-only.tg { background: #229ED9; } .msgr.icon-only.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); } .msgr.icon-only.wa { background: #25d366; }
  .msgr.icon-only.max svg { width: 22px; height: 22px; }
  .card-btn { width: 100%; flex: 0 0 auto; height: 40px; display: grid; place-items: center; background: var(--gold3d); color: var(--accent-ink); font-weight: 800; font-size: 13.5px; letter-spacing: .01em; border-radius: 10px; white-space: nowrap; box-shadow: var(--ring-gold); transition: background 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease); }
  .card-btn:hover { background: var(--gold3d-hi); box-shadow: var(--ring-gold-hi); transform: translateY(-1px); }
  .card-btn:active { background: var(--gold3d); box-shadow: var(--ring-gold-press); transform: translateY(0); }
  .order-choice { display: flex; gap: 8px; }
  .order-choice .msgr { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 10px; font-weight: 800; font-size: 13px; flex: 1; color: #fff; min-width: 0; }
  .order-choice .msgr svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }
  .order-choice .msgr.tg { background: #229ED9; } .order-choice .msgr.wa { background: #25d366; } .order-choice .msgr.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); color: #fff; }
  .order-choice .msgr:hover { filter: brightness(1.08); }
  .order-choice.compact { gap: 6px; } .order-choice.compact .msgr { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; }
  .panel .order-choice { margin: 0 0 4px; }
  .abc { margin: 0 0 18px; }
  .abc-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 12px 0 8px; }
  .abc-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .abc-l { min-width: 40px; min-height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(233,241,250,.28); border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ink2);
    background: rgba(255,255,255,.12); text-decoration: none; }
  a.abc-l:hover { border-color: var(--accent); color: var(--accent); }
  .abc-l.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
  .abc-l.dead { opacity: .3; pointer-events: none; }
  .price-tags, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
  .price-tag, .chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-size: 13px; font-weight: 700; }
  .price-tag.on, .price-tag:hover, .chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); }

  /* вкладки категорий: видимые категории без сложных фильтров */
  .cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
  .cat-tab { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .cat-tab:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
  .cat-tab:active { transform: scale(.97); }
  .cat-tab.line { color: var(--muted); }
  @media (max-width: 720px) {
    .cat-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
    .cat-tabs::-webkit-scrollbar { display: none; }
    .cat-tab { flex: 0 0 auto; min-height: 48px; padding: 12px 18px; font-size: 15px; }
  }
  .rail { padding-bottom: 8px; }
  .rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
  .rail-head h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
  .rail-all { flex: 0 0 auto; color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
  .rail-all:hover { text-decoration: underline; }
  .rail-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 268px);
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 2px 2px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .rail-track .card { scroll-snap-align: start; min-width: 0; }
  @media (max-width: 560px) {
    .rail-track { grid-auto-columns: minmax(220px, 78vw); }
    .rail-head { flex-wrap: wrap; gap: 6px 12px; }
  }
  .rows > div { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; font-size: 16px; background-image: linear-gradient(to right, var(--line) 40%, transparent 0); background-position: 0 1.35em; background-size: 5px 1px; background-repeat: repeat-x; }
  .rows span { color: var(--mute); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; background: var(--bg); padding-right: 4px; font-size: 15px; }
  .rows b { font-weight: 800; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; background: var(--bg); padding-left: 4px; margin-left: auto; font-size: 17px; }
  .full-price { margin-top: 40px; max-width: 760px; }
  .full-price h2 { font-size: 24px; margin-bottom: 10px; }
  .full-price .exchange { color: var(--mute); font-size: 15px; margin-bottom: 14px; }
  .landed-calc { max-width: 760px; }
  .calc-grid { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr .9fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
  .calc-grid.head { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 0; padding-top: 16px; }
  .calc-grid.sub { font-weight: 800; } .calc-grid.total { border: 0; color: var(--accent); font-size: 18px; padding-top: 14px; }
  .calc-input { width: 118px; height: 36px; padding: 0 8px; margin-right: 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; font-weight: 800; }
  .trade-list { display: flex; flex-direction: column; gap: 4px; }
  .trade-card { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .trade-photo img { width: 140px; height: 88px; object-fit: cover; border-radius: 10px; background: #111; }
  .trade-desc p { color: var(--mute); font-size: 13px; }
  .trade-price { text-align: right; min-width: 160px; }
  .trade-price .gold { color: var(--accent); font-weight: 800; font-size: 18px; }
  .trade-price .card-btn { margin-top: 8px; display: inline-grid; min-width: 160px; }
  .lot-gallery { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .lot-hero-frame { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 10; min-height: 360px; line-height: 0; border-radius: 18px; overflow: hidden; background: #111; }
  .lot-gallery .lot-img.hero { position: static; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center 42%; border-radius: 18px; background: transparent; cursor: zoom-in; display: block; }
  .lot-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; min-width: 0; }
  .lot-gallery, .lot-hero-frame, .gallery-cta { min-width: 0; max-width: 100%; }
  .lot-thumb { width: 100%; aspect-ratio: 4/3; min-height: 72px; object-fit: cover; border-radius: 12px; background: #111; cursor: pointer; opacity: .78; }
  .lot-thumb.on, .lot-thumb:hover { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }
  .lot-img { width: 100%; height: auto; aspect-ratio: auto; object-fit: unset; object-position: center; border-radius: 14px; display: block; background: transparent; cursor: zoom-in; }
  .gallery-cta { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 10px; align-items: center; min-width: 0; }
  .gallery-cta a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gallery-cta a { height: 42px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 13px; background: var(--paper); border: 1px solid var(--line); }
  .gallery-cta a[href="#order-form"] { flex: 1; min-width: 0; background: var(--gold3d); color: var(--accent-ink); border: 0; box-shadow: var(--ring-gold); }
  .gallery-cta a[href="#order-form"]:hover { background: var(--gold3d-hi); box-shadow: var(--ring-gold-hi); }
  .gallery-cta a.tg, .gallery-cta a.wa, .gallery-cta a.max { flex: 0 0 42px; width: 42px; min-width: 42px; padding: 0; color: #fff; border: 0; }
  .gallery-cta a.tg { background: #229ED9; }
  .gallery-cta a.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); }
  .gallery-cta a.wa { background: #25d366; }
  .gallery-cta a svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }
  .product { padding-top: 20px; }
  body:has(.product) { --max: 1280px; }
  .product h1 { font-size: clamp(24px,3.4vw,34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
  .product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
  .product-tags span { font-size: 13px; color: var(--mute); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
  .product-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .85fr) minmax(280px, .72fr); gap: 22px; align-items: start; }
  .similar h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
  .similar .catalog.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .similar .card .shot { aspect-ratio: 16 / 10; }
  .similar .card .shot img, .similar .card .shot .g-img { filter: saturate(1.07) contrast(1.04); }
  @media (prefers-reduced-motion: reduce) {
    .lot-gallery .lot-img.hero, .lot-thumb, .similar .card .shot img, .similar .card .shot .g-img { filter: none; }
  }
  /* на телефоне колонка не должна раздуваться шире экрана из-за содержимого */
  .product-grid > * { min-width: 0; }
  .desc-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; line-height: 1.25; }
  .desc-title span { display: block; font-weight: 650; color: var(--mute); font-size: 15px; }
  .price-box .p-main { font-size: 30px; color: var(--accent); font-weight: 800; letter-spacing: -.03em; }
  .price-box .card-price { font-size: clamp(34px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
  .price-box .card-price span { font-size: .52em; margin-left: 6px; }
  .price-box .origin { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin-top: 4px; }
  .price-box .order-choice { margin: 14px 0 0; flex-wrap: wrap; }
  /* четыре подписанные кнопки в узкой колонке не влезают в строку — раскладываем по две */
  .price-box .order-choice .msgr { flex: 1 1 calc(50% - 5px); min-width: 0; white-space: nowrap; }
  .price-box .p-note { color: var(--mute); font-size: 16px; font-weight: 700; margin-top: 4px; }
  .price-box .fee-line { font-size: 16px; font-weight: 800; margin: 12px 0 16px; }
  .product-price { display: grid; gap: 12px; margin-bottom: 10px; }
  .price-decode { display: inline-block; margin: 8px 0 12px; color: var(--accent); font-weight: 800; font-size: 16px; border-bottom: 1px dashed rgba(240,204,106,.45); }
  .lot-cta { width: 100%; margin-top: 10px; }
  .price-box .lead-form { margin: 14px 0 8px; max-width: none; }
  #lb { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(8,6,4,.88); padding: 24px; cursor: zoom-out; }
  #lb.on { display: grid; }
  #lb img { width: auto; height: auto; max-width: min(1200px, 96vw); max-height: 92vh; max-height: 92dvh; border-radius: 12px; object-fit: contain; background: transparent; cursor: default; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .flag-hint { color: var(--mute); font-size: 13px; margin: 0 0 16px; }

  /* wall / steps / terms / faq — sanoriauto exact */
  .wall { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
  .tile { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #c8c4bc; cursor: pointer; border: 0; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit; display: block; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.16); }
  .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
  .tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 42%, rgba(20,18,16,.72) 100%); pointer-events: none; }
  .tile .tag { position: absolute; top: 8px; left: 8px; z-index: 2; width: 34px; height: 23px; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); line-height: 0; }
  .tile .tag svg { width: 100%; height: 100%; display: block; }
  .tile .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px; }
  .tile .model { font-size: 12px; font-weight: 800; color: #f7f5f0; line-height: 1.2; }
  .tile .cls { font-size: 10.5px; color: rgba(247,245,240,.78); margin-top: 2px; font-weight: 600; }
  .steps { --road-y: 72px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0 12px; max-width: none; margin-top: 28px; padding-top: 2px; }
  .steps::before { content: ""; position: absolute; left: 7%; right: 7%; top: var(--road-y); height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 6%, var(--accent) 94%, transparent); opacity: .38; pointer-events: none; }
  .steps::after { content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--road-y) + 1px); height: 0; border-top: 1px dashed var(--accent); opacity: .45; pointer-events: none; }
  .step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px 0; border: 0; background: none; border-radius: 0; min-width: 0; }
  .step-ic { width: 56px; height: 56px; position: relative; z-index: 1; color: var(--accent); flex-shrink: 0; transition: transform var(--dur) var(--ease); }
  .step-ic svg { width: 56px; height: 56px; display: block; }
  .step-ic::after { content: ""; display: block; width: 7px; height: 7px; margin: 6px auto 0; border: 1.5px solid var(--accent); transform: rotate(45deg); background: var(--bg); }
  .step:hover .step-ic { transform: translateY(-3px); }
  .step h3 { font-size: 15px; font-weight: 800; margin: 18px 0 6px; line-height: 1.25; }
  .step p { font-size: 13px; color: var(--mute); line-height: 1.45; max-width: 22ch; }
  .terms { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px 28px; margin-top: 20px; }
  .term { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; text-align: left; }
  .term b { display: block; font-size: 16px; margin-bottom: 8px; font-weight: 800; line-height: 1.25; }
  .term p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
  .faq-list { margin-top: 20px; }
  .faq-list details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
  .faq-list details:first-of-type { border-top: 1px solid var(--line); }
  .faq-list summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; transition: color var(--dur) var(--ease); }
  .faq-list summary:hover { color: var(--accent); }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after { content: "+"; color: var(--accent); font-size: 18px; transition: transform var(--dur) var(--ease); }
  .faq-list details[open] summary::after { content: "−"; }
  .faq-list .a { color: var(--mute); margin-top: 8px; font-size: 14.5px; }

  /* order / footer / fab — sanoriauto exact, не криво */
  .order-slab { text-align: center; padding: 8px 0 12px; }
  .order-slab .geo-rule { max-width: 200px; margin: 0 auto 22px; }
  .order-slab .k { margin: 0; }
  .order-slab h2 { margin: 8px 0 0; }
  .order-slab .btn { margin: 20px auto 0; }
  .order-slab p { color: var(--mute); max-width: 42ch; margin: 12px auto 0; font-size: 15px; }
  .order-soc { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
  .order-soc a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(42,42,42,.06); color: var(--ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .order-soc a:hover { transform: translateY(-2px); }
  .order-soc a.tg:hover { background: rgba(42,171,238,.15); color: #2aabee; }
  .order-soc a.wa:hover { background: rgba(37,211,102,.15); color: #25d366; }
  .order-soc a.max:hover { background: rgba(108,92,231,.14); color: #6c5ce7; }
  .order-soc svg { width: 22px; height: 22px; fill: currentColor; display: block; flex-shrink: 0; }
  footer.site-foot { padding: 28px 0 calc(100px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; color: var(--mute); font-size: 13px; max-width: var(--max); margin: 24px auto 0; width: min(var(--max), calc(100% - 40px)); }
  footer.site-foot .mini { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; }
  footer.site-foot .foot-mark {
    flex-shrink: 0; width: 34px; height: 34px; color: var(--ink); opacity: .9;
    transition: color var(--dur) var(--ease), filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  footer.site-foot a:hover .foot-mark,
  footer.site-foot .foot-mark:hover {
    color: var(--accent); opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent));
  }
  footer.site-foot .foot-mark svg { display: block; width: 100%; height: 100%; }
  footer.site-foot .foot-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
  footer.site-foot .foot-copy .brand { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.35; word-break: break-word; }
  footer.site-foot .foot-copy .mail { color: var(--mute); font-size: 13.5px; word-break: break-all; }
  footer.site-foot .foot-copy .mail:hover { color: var(--accent); }
  footer.site-foot .legal { display: flex; align-items: flex-end; gap: 12px; font-size: 12px; line-height: 1.45; opacity: .9; }
  footer.site-foot .legal .foot-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--ink); opacity: .85; }
  footer.site-foot .legal-text { min-width: 0; }
  footer.site-foot .legal-text b { color: var(--ink); font-weight: 700; }
  footer.site-foot .legal-text a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
  footer.site-foot .legal-text a:hover { color: var(--accent); }
 }

  .cookie-bar { position: fixed; left: max(12px, env(safe-area-inset-left,0px)); bottom: max(12px, env(safe-area-inset-bottom,0px)); z-index: 54; width: min(340px, calc(100vw - 88px)); padding: 14px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--elev-sheet); color: var(--mute); font-size: 12.5px; line-height: 1.45; }
  .cookie-bar[hidden] { display: none !important; }
  .cookie-bar p { margin: 0 0 10px; }
  .cookie-bar .row { display: flex; flex-wrap: wrap; gap: 8px; }
  .cookie-bar .btn { min-height: 36px; padding: 7px 14px; font-size: 12.5px; }
  .modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 240ms var(--ease), visibility 240ms; }
  .modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .modal-card { width: min(440px,100%); max-height: min(92vh,900px); max-height: min(92dvh,900px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px 20px; box-shadow: var(--elev-sheet); position: relative; transform: translateY(12px) scale(.985); opacity: .96; transition: transform 280ms var(--ease), opacity 280ms var(--ease); }
  .modal.open .modal-card { transform: none; opacity: 1; }
  .modal-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
  .modal-card .hint { font-size: 13.5px; color: var(--mute); margin-bottom: 14px; }
  .modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; font-size: 22px; color: var(--mute); border-radius: 50%; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease); }
  .modal-close:hover { color: var(--ink); background: rgba(255,255,255,.06); transform: rotate(90deg); }
  .contact-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .contact-list a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 700; font-size: 13px; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .contact-list a:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
  .contact-list svg { width: 26px; height: 26px; flex-shrink: 0; display: block; }
  .contact-list a.tg svg { color: #229ED9; fill: currentColor; }
  /* мессенджеры в модалке и подвале — фирменные цвета, узнаются с первого взгляда */
  .contact-list a.tg { background: #229ED9; border-color: transparent; color: #fff; }
  .contact-list a.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); border-color: transparent; color: #fff; }
  .contact-list a.wa { background: #25d366; border-color: transparent; color: #06301a; }
  .contact-list a.tg svg, .contact-list a.max svg, .contact-list a.wa svg { color: #fff; fill: currentColor; }
  .contact-list a.tg:hover, .contact-list a.max:hover, .contact-list a.wa:hover { filter: brightness(1.07); transform: translateY(-1px); }
  .contact-list.foot { margin-top: 12px; max-width: 430px; }

  /* на зелёной кнопке иконка должна быть тёмной: зелёная на зелёной была не видна */
  .contact-list a.wa svg { color: #fff; fill: currentColor; }
  @media (max-width: 560px) {
    .contact-list { grid-template-columns: 1fr; }
    .contact-list a { justify-content: flex-start; padding: 11px 14px; font-size: 14px; gap: 10px; }
  }
  .modal-manager { display: flex; flex-direction: column; gap: 2px; margin: 0 36px 12px 0; }
  .modal-manager b { font-size: 16px; font-weight: 800; line-height: 1.2; }
  .modal-manager span { font-size: 12px; color: var(--mute); font-weight: 700; }
  .modal-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
  .modal-features span { font-size: 12px; font-weight: 700; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
  .modal-features span::before { content: "✓"; color: var(--accent); margin-right: 5px; }
  .lead-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lead-social legend { font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 2px; grid-column: 1 / -1; }
  .lead-social label { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; cursor: pointer; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .lead-social input { width: 16px !important; height: 16px !important; min-height: 16px !important; padding: 0 !important; accent-color: var(--accent); }
  .lead-social label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .lead-form button[disabled] { opacity: .55; cursor: not-allowed; filter: none; transform: none; }
  .modal-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--mute); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .modal-or::before, .modal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .lead-form { display: grid; gap: 10px; max-width: 520px; margin: 0; text-align: left; }
  .lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lead-form .btn { width: 100%; margin-top: 4px; }
  .lead-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; color: var(--mute); }
  .lead-form input:not([type="radio"]):not([type="checkbox"]), .lead-form select, .lead-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); font: inherit; font-size: 16px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .lead-form textarea { min-height: 72px; resize: vertical; }
  .lead-form input:not([type="radio"]):not([type="checkbox"]):focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  html[data-theme="light"] .lead-form input:not([type="radio"]):not([type="checkbox"]), html[data-theme="light"] .lead-form select, html[data-theme="light"] .lead-form textarea { background: rgba(255,255,255,.72); }
  .lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lead-fields .lead-wide, .lead-fields button { grid-column: 1 / -1; }
  .lead-consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; font-weight: 500 !important; color: var(--mute); }
  .lead-consent input { margin-top: 3px; flex: 0 0 18px; width: 18px; height: 18px; }
  .lead-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .modal-card .lead-fields { grid-template-columns: 1fr; }
  .lead-ok { display: none; color: var(--accent); font-weight: 800; margin-bottom: 10px; }
  .fab-folder { position: fixed; right: max(12px, env(safe-area-inset-right,0px)); bottom: max(12px, env(safe-area-inset-bottom,0px)); z-index: 55; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .fab-toggle { position: absolute; right: 0; bottom: 0; width: 56px; height: 56px; border-radius: var(--r-lg); display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 22%, rgba(255,255,255,.38), transparent 46%), var(--accent); color: var(--accent-ink); box-shadow: var(--elev-disc); z-index: 3; transition: transform var(--dur) var(--ease), border-radius var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color .48s ease; }
  .fab-toggle:hover { transform: translateY(-2px); box-shadow: var(--elev-disc-hi); }
  .fab-toggle:active { transform: translateY(1px); }
  .fab-toggle .ic-send, .fab-toggle .ic-close { position: absolute; inset: 0; margin: auto; width: 25px; height: 25px;
    transition: transform .34s var(--ease), opacity .22s ease; }
  .fab-toggle .ic-close { opacity: 0; transform: rotate(-40deg) scale(.55); }
  .fab-folder.open .fab-toggle .ic-send { opacity: 0; transform: rotate(40deg) scale(.55); }
  .fab-folder.open .fab-toggle .ic-close { opacity: 1; transform: none; }
  .fab-toggle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    animation: fabPulse 3s cubic-bezier(.3,.6,.35,1) 1.4s infinite; }
  @keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(240,204,106,.42); }
    62%  { box-shadow: 0 0 0 15px rgba(240,204,106,0); }
    100% { box-shadow: 0 0 0 0 rgba(240,204,106,0); }
  }
  @media (prefers-reduced-motion: reduce) { .fab-toggle::after { animation: none; } }
  .fab-tray { position: absolute; right: 4px; bottom: 64px; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; pointer-events: none; }
  .fab-folder .app { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.7); transition: transform var(--dur) var(--ease), opacity 180ms ease; box-shadow: 0 6px 16px rgba(0,0,0,.2); pointer-events: none; }
  .fab-folder.open .app { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .fab-folder.open .app:nth-child(1) { transition-delay: .02s; } .fab-folder.open .app:nth-child(2) { transition-delay: .06s; } .fab-folder.open .app:nth-child(3) { transition-delay: .1s; }
  .fab-folder.open .fab-tray { pointer-events: auto; }
  .fab-folder.open .fab-toggle { border-radius: 50%; }
  .fab-folder .app svg { width: 24px; height: 24px; display: block; fill: currentColor; }
  .fab-folder .app { color: #fff; }
  .fab-folder .app.wa { background: #25d366; } .fab-folder .app.tg { background: #229ED9; } .fab-folder .app.max { background: linear-gradient(135deg, #00A2F9 0%, #7A00F0 100%); }
  .fab-folder .app.max svg { width: 26px; height: 26px; fill: none; }
  .fab-folder .app:hover { filter: brightness(1.05); }
  .lightbox { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(12,11,10,.72); backdrop-filter: blur(8px); }
  .lightbox.open { display: flex; }
  .lightbox-card { width: min(720px,100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--elev-sheet); position: relative; }
  .lightbox-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a1a1a; }
  .lightbox-meta { padding: 16px 18px 18px; }
  .lightbox-meta .country { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
  .lightbox-meta h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
  .lightbox-meta p { font-size: 14px; color: var(--mute); margin-bottom: 14px; }
  .lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.15); z-index: 2; }
  /* responsive */
  @media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .filters { grid-template-columns: repeat(3, minmax(0,1fr)); } .product-grid { grid-template-columns: 1fr 1fr; } .price-box { grid-column: 1 / -1; } .lot-hero-frame { min-height: 280px; aspect-ratio: 4 / 3; } .similar .catalog.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 12px; padding: 8px 0 44px; } .hero-logo { order: -1; justify-self: center; max-width: min(72vw, 280px); width: 100%; } .steps { --road-y: auto; display: flex; flex-direction: column; gap: 0; margin-top: 12px; padding-left: 18px; } .steps::before { left: 5px; right: auto; top: 28px; bottom: 28px; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 12px); opacity: .45; } .steps::after { display: none; } .step { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: start; text-align: left; column-gap: 14px; padding: 16px 0; } .step-ic { width: 52px; height: 52px; grid-row: 1 / span 2; background: var(--bg); z-index: 1; } .step-ic svg { width: 52px; height: 52px; } .step-ic::after { display: none; } .step h3 { margin: 6px 0 4px; font-size: 16px; grid-column: 2; } .step p { max-width: 46ch; font-size: 13.5px; grid-column: 2; } .terms { grid-template-columns: 1fr 1fr; gap: 28px 24px; } .wall { grid-template-columns: repeat(3,1fr); } section.block { padding: 44px 0; } }
  @media (max-width: 720px) {
    .calc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 2px; font-size: 13px; }
    .calc-grid > span:first-child { grid-column: 1 / -1; font-weight: 700; }
    .calc-grid.head > span:first-child { font-size: 12px; }
    .calc-input { width: 100%; max-width: 170px; margin-right: 6px; }
    .trade-card { grid-template-columns: 1fr; }
    .trade-price { text-align: left; min-width: 0; }
    .trade-price .card-btn { min-width: 0; width: 100%; }
    .lot-thumbs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  }
  /* промежуточные ширины (821–1000): убираем навигацию и подпись темы,
     чтобы шапка не сжималась и не переносила слова */
  @media (max-width: 1000px) {
    .topbar nav { display: none; }
    .theme-toggle span:last-child { display: none; }
    .topbar .inner { gap: 12px; }
    .top-phone { font-size: 14px; }
  }
  .topbar nav a, .top-phone, .theme-toggle, .top-msgr .m, .btn { white-space: nowrap; }
  @media (max-width: 820px) {
    .lot-layout, .product-grid { grid-template-columns: 1fr; }
    .price-box { grid-column: auto; }
    .topbar nav { display: none; }
    /* строки компоновки для планшета оставляем ниже */

    .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 560px) {
    /* фильтры в две колонки: блок вдвое короче, поиск и кнопки — во всю ширину */
    .filters { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
    .filters .f.search, .filters .f.actions { grid-column: 1 / -1; }
    .filters .f select { height: 44px; font-size: 16px; }
    .filters .f input[type="search"] { height: 48px; font-size: 16px; }
    .calc-input { font-size: 16px; }
  }
  @media (max-width: 560px) { .filters .f.actions { grid-column: 1 / -1; } .terms { grid-template-columns: 1fr; } .wrap { width: calc(100% - 28px); } .page { width: calc(100% - 28px); } .topbar .inner { width: calc(100% - 56px); }
    /* рынки на телефоне — карточки в столбик: флаг слева, название с количеством,
       цена справа. Как на компе, только в один столбец: ничего не режется и не листается */
    .markets, .markets.catalog-markets { display: grid; grid-template-columns: 1fr; gap: 10px;
      padding: 0; margin: 16px 0 4px; max-width: none; overflow: visible; }
    .mkt { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center;
      column-gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card);
      border: 1px solid var(--line); text-align: left; }
    .mkt .flag { width: 64px; aspect-ratio: 3/2; margin: 0; transform: none; box-shadow: var(--elev-flag); grid-row: 1 / span 2; }
    .mkt:hover .flag, .mkt.on .flag, .mkt[aria-expanded="true"] .flag { transform: none; }
    .mkt .name { font-size: 15px; grid-column: 2; text-align: left; }
    .mkt .n { font-size: 12px; color: var(--mute); grid-column: 2; text-align: left; }
    .mkt .sum { font-size: 17px; grid-column: 3; grid-row: 1 / span 2; }
    .mkt.on { border-color: var(--accent); }
    .topbar .inner { gap: 6px; padding: 8px 0; }
    .topbar .brand { margin-right: 6px; }
    .topbar .brand-mark-wrap { width: 28px; height: 28px; }
    .top-contacts .top-phone span { display: none; }
    .top-contacts .top-phone { padding: 6px; }
    .top-msgr { gap: 5px; }
    .top-msgr .m { width: 31px; height: 31px; border-radius: 9px; }
    .top-msgr .m svg { width: 16px; height: 16px; }
    .topbar .theme-toggle { width: 31px; height: 31px; border-radius: 9px; }
    .hero-logo { max-width: min(66vw, 240px); } .offer-join, .offer-cta { max-width: none; } .nav-right { gap: 6px; } .theme-toggle { padding: 8px 10px; gap: 6px; font-size: 12px; } .theme-toggle span:last-child { display: none; } .topbar .brand-mark-wrap { width: 38px; height: 38px; } .btn.sm { min-height: 38px; padding: 8px 12px; font-size: 12.5px; } .wall { grid-template-columns: repeat(2,1fr); } h1 { font-size: clamp(26px,7.6vw,34px); } .lead { max-width: none; } .hero { padding: 4px 0 32px; gap: 8px; } .hero-cta { flex-direction: column; align-items: stretch; } .hero-cta .btn { width: 100%; min-width: 0; } .fab-toggle { width: 52px; height: 52px; border-radius: var(--r-md); } .fab-tray { bottom: 60px; } .fab-folder .app { width: 46px; height: 46px; border-radius: var(--r-md); } .fab-folder .app svg { width: 22px; height: 22px; } footer.site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)); } .grid { grid-template-columns: 1fr; } }
  @media (pointer: coarse) {
    .country-tab, .chip, .price-tag, .cat-tab, .abc-l { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; font-size: 15px; }
    .abc-l { min-width: 48px; padding: 0 10px; }
    .faq-list summary { min-height: 44px; }
    .msgr.icon-only { height: 44px; }
    .card-bottom .card-btn { height: 44px; font-size: 14px; }
    .lot-thumb { min-height: 64px; }
  }
  @media (max-width: 560px) {
    .filters select, .filters input[type="search"],
    .lead-form input:not([type="radio"]):not([type="checkbox"]), .lead-form select, .lead-form textarea,
    .calc-input { font-size: 16px; }
  }
  /* появление карточек, пришедших при подгрузке: мягко и быстро, без «пустых» слотов */
  @keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
  .card-new { animation: cardIn 440ms var(--ease) both; }
  /* плавная смена главного кадра в галерее лота */
  .lot-img.hero { transition: opacity 240ms var(--ease), transform 700ms var(--ease); }
  .lot-img.hero.swap { opacity: .35; }
  .ph-inline { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; background: #141210; color: var(--mute); font-size: 13px; border-radius: 12px; }
  /* кадры карточки: нерабочий кадр не должен гасить рабочий и не должен менять высоту карточки */
  .card .shot .g-img { opacity: 0; }
  .card .shot .g-img.on { opacity: 1; }
  .card .shot .g-img.is-dead { display: none; }
  .card .shot .ph { position: absolute; inset: 0; height: 100%; }
  .card .shot .g-dots { display: none; }
  .lot-thumbs img.is-dead { display: none; }
  /* сообщения формы заявки — вместо системных alert */
  .lead-ok { color: #4ea36a; font-weight: 700; font-size: 14px; margin: 4px 0 8px; }
  .lead-err { color: #e0865a; font-weight: 700; font-size: 14px; margin: 4px 0 8px; }
  /* === плавность: единые переходы, мягкое появление, спокойные hover === */
  .catalog .card, .grid .card, .btn, .mkt, .lot-thumb, .msgr {
    transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease),
                background-color 260ms var(--ease), color 200ms var(--ease), opacity 260ms var(--ease);
    will-change: transform;
  }
  .catalog .card:hover, .grid .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.34); }
  .card .shot img, .shot .g-img { transition: transform 700ms var(--ease), opacity 420ms var(--ease); }
  .catalog .card:hover .shot img, .catalog .card:hover .shot .g-img.on { transform: scale(1.035); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .lot-thumb:hover { transform: translateY(-2px); }
  .rise { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
  .rise.in { opacity: 1; transform: none; }
  .page, .catalog, .legal-body { animation: pageIn 480ms var(--ease) both; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .shot { transition: aspect-ratio 420ms var(--ease); }
  @media (prefers-reduced-motion: reduce) { .rise { opacity: 1 !important; transform: none !important; } .page, .catalog, .legal-body { animation: none !important; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } .mkt .flag, .mkt:hover .flag { transform: none; } }
  /* контакты и ссылки в подвале */
  .foot-social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; }
  .foot-social a { color: var(--mute); text-decoration: none; border-bottom: 1px solid rgba(240,204,106,.35); }
  .foot-social a:hover { color: var(--accent); }
  /* документы (оферта, ПД) */
  .legal-body { max-width: 820px; margin-top: 22px; display: grid; gap: 26px; }
  .legal-body p { color: var(--mute); font-size: 15px; line-height: 1.72; }
  .legal-body p + p { margin-top: 8px; }
  .legal-body a { color: var(--accent); }
  .legal-body h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; color: var(--ink); }
  .legal-body ul { margin: 9px 0 0 18px; display: grid; gap: 6px; }
  .legal-body li { color: var(--mute); font-size: 14.5px; line-height: 1.62; }
  .legal-sec { padding-top: 20px; border-top: 1px solid var(--line); }
  .legal-sec:first-child { border-top: 0; padding-top: 0; }
  .legal-updated { color: var(--mute); font-size: 13px; margin-top: 8px; }
  .legal-back { margin-top: 4px; }
  /* сравнение с рынком в карточке лота */
  .market-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 10px 0 4px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
  .market-note .mk-label { color: var(--mute); font-size: 12.5px; }
  .market-note b { color: var(--ink); font-size: 16px; }
  .market-note .mk-sub { color: var(--mute); font-size: 12.5px; }
  .market-note .mk-good { color: #4ea36a; font-weight: 700; }
  .market-note .mk-bad { color: #c2703a; font-weight: 700; }
  .market-note .mk-flat { color: var(--mute); }
  .duty-tags { margin-top: 8px; align-items: center; }
  .duty-tags .duty-hint { color: var(--mute); font-size: 12.5px; }
  /* подписка на новые лоты */
  .sub-cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 10px 0 4px; }
  .sub-cta a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--r-pill); color: var(--accent); font-size: 13.5px; font-weight: 700; }
  .sub-cta a:hover { background: var(--accent-soft); }
  .sub-cta .sub-hint { color: var(--mute); font-size: 12.5px; }
  /* аналитика в админке */
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 14px 0 6px; }
  .stats .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
  .stats .stat b { display: block; font-size: 22px; color: var(--ink); }
  .stats .stat span { font-size: 12px; color: var(--mute); }
  .bars { display: grid; gap: 4px; margin-top: 10px; }
  .bars .row { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); }
  .bars .track { background: var(--line); border-radius: var(--r-pill); height: 8px; overflow: hidden; }
  .bars .fill { height: 8px; background: var(--accent); border-radius: var(--r-pill); }
  @media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  /* ===== шлифовка: фото, переходы между страницами, микроанимации ===== */
  /* фото проявляется, когда декодировано — вместо «кривой загрузки» */
  .card .shot .g-img { opacity: 0; transform: scale(1.015); transition: opacity 460ms var(--ease), transform 700ms var(--ease); }
  .card .shot .g-img.on.ready { opacity: 1; transform: none; }
  .lot-thumbs img, .gallery img, .card .thumbs img { opacity: 0; transition: opacity 420ms var(--ease); }
  .lot-thumbs img.ready, .gallery img.ready, .card .thumbs img.ready { opacity: 1; }
  .card .shot.broken::before { animation: none; }
  /* цифры не «пляшут» при разных значениях */
  .card-price, .mkt .sum, .stat b, .price-total b, .lot-price b { font-variant-numeric: tabular-nums; }
  /* параллакс логотипа в первом экране (мягкий, только на широком экране) */
  .hero-logo .lockup { translate: 0 var(--py, 0); }
  /* переходы между страницами: знак остаётся на месте, фото карточки перелетает в галерею */
  @view-transition { navigation: auto; }
  .brand-mark-wrap { view-transition-name: brandMark; }
  .card .shot .g-img.on { view-transition-name: match-element; }
  ::view-transition-old(root) { animation: vtOut 150ms var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn 200ms var(--ease) both; }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; } }
  /* ===== шлифовка: каталог, расчёты, мелочи ===== */
  ::selection { background: var(--accent-soft); color: var(--ink2); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
  section[id], .block[id], #order { scroll-margin-top: 88px; }
  h1, h2, h3 { text-wrap: balance; }
  .sub, .lead, .legal-body p { text-wrap: pretty; }
  /* заголовок каталога: заголовок, бейдж с количеством, пояснение */
  .hero-cat { padding: 34px 0 12px; }
  .hero-cat h1 { margin-bottom: 8px; }
  .count-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; }
  .count-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
  .count-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
  /* панель фильтров: ровные поля и заметные подписи */
  .filters { gap: 14px; padding: 18px; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
  .filters .f label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
  .filters .f select { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; }
  .filters .f input[type="search"] { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; }
  .filters .f.actions { display: flex; align-items: flex-end; gap: 8px; }
  .filters .f.actions .btn { flex: 1; min-width: 0; }
  /* расчёт в карточке лота: деньги в столбик, итог заметно */
  .calc-grid > span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
  .calc-grid.item { border-bottom-style: dashed; border-bottom-color: rgba(246,241,230,.13); }
  .calc-grid.sub { color: var(--ink); }
  .calc-grid.total { font-size: 22px; letter-spacing: -.02em; padding: 14px 10px; border-radius: 12px;
    background: linear-gradient(90deg, rgba(240,204,106,.12), rgba(240,204,106,0) 72%); }
  html[data-theme="light"] .calc-grid.item { border-bottom-color: rgba(26,23,18,.14); }
  /* полоска прогресса чтения — тонкая, у верха страницы */
  .read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%;
    transform: scaleX(0); background: linear-gradient(90deg, var(--metal-lo), var(--accent), var(--metal-hi));
    z-index: 80; opacity: .85; }
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
    .hero-logo .lockup { translate: none; }
    .read-progress { display: none; }
  }

  /* ==========================================================================
     Переработка по брифу владельца (14 сентября, вечер):
     единая тема без переключателя, первый экран без логотипа, крупнее текст,
     переработанная стоимость услуги, короче FAQ, появление блоков при прокрутке.
     ========================================================================== */

  /* первый экран: всю высоту экрана, крупный читаемый текст */
  .hero { display: block; padding: 0; gap: 0; grid-template-columns: none; }
  .brand-line { font-size: clamp(13px, 1.3vw, 17px); font-weight: 800; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(29px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 0; text-wrap: balance; }
  .hero .lead { font-size: clamp(16.5px, 1.75vw, 22px); line-height: 1.5; color: var(--ink); max-width: 42ch; margin: 22px 0 0; }
  .hero-cta { margin: 30px 0 0; gap: 12px; }
  .hero-cta .btn { min-height: 54px; padding: 15px 30px; font-size: 16px; min-width: 208px; }
  .hero-copy > .brand-line { animation: heroRise .7s cubic-bezier(.2,.7,.2,1) .05s both; }
  .hero-copy > h1 { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .16s both; }
  .hero-copy > .lead { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .28s both; }
  .hero-copy > .hero-cta { animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .4s both; }

  @media (min-width: 901px) {
    .hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 104px); padding: 44px 0 56px; }

    /* схема работы: крупнее иконки и текст — «читаемость прежде всего» */
    .steps { margin-top: 40px; gap: 0 22px; }
    #steps { min-height: 84svh; display: flex; flex-direction: column; justify-content: center; }
    .step-ic, .step-ic svg { width: 96px; height: 96px; }
    .steps { --road-y: 118px; }
    .step h3 { font-size: 23px; margin: 30px 0 10px; }
    .step p { font-size: 16px; max-width: 26ch; }
    .step-ic::after { width: 9px; height: 9px; margin-top: 8px; }
    .step h3 { font-size: 21px; margin: 26px 0 8px; }
    .step p { font-size: 15.5px; line-height: 1.5; max-width: 27ch; }

    /* почему SANORI: крупнее */
    .terms { gap: 44px 38px; margin-top: 28px; }
    .term b { font-size: 21px; }
    .term p { font-size: 16px; }
  }
  @media (max-width: 900px) {
    .hero-copy { padding: 18px 0 30px; }
    .hero-cta .btn { width: 100%; }
    .step h3 { font-size: 17px; }
    .step p { font-size: 14.5px; }
    .term b { font-size: 18px; }
    .term p { font-size: 15px; }
  }

  /* заголовки секций и подписи — крупнее */
  h2 { font-size: clamp(26px, 3.4vw, 40px); }
  .sub { font-size: 16.5px; max-width: 58ch; }

  /* стоимость услуги: крупная понятная плашка */
  /* без коробок: цена и списки живут на фоне страницы, разделяет тонкая линия */
  .price-board { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 0; margin-top: 30px; align-items: start; }
  .pb-main { background: none; border: 0; border-radius: 0; padding: 0 48px 0 0; }
  .pb-country { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
  .pb-sum { font-size: clamp(50px, 5.6vw, 82px); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 14px 0 10px; color: var(--accent); }
  .pb-sum span { font-size: .46em; margin-left: 4px; letter-spacing: 0; }
  .pb-sum em { font-style: normal; font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--mute); margin-left: 14px; }
  .pb-h { font-size: 16px; font-weight: 800; margin: 28px 0 12px; }
  .pb-list.plain li::before { background: var(--mute); }
  .pb-note { color: var(--mute); font-size: 15.5px; }
  .pb-list { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
  .pb-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
  .pb-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .pb-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }
  .pb-count { margin-top: 16px; color: var(--mute); font-size: 14.5px; }
  .pb-side { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 6px 0 0 48px; }
  .pb-side h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
  .pb-side ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--mute); font-size: 15.5px; }
  .pb-tip { margin-top: 20px; color: var(--mute); font-size: 14.5px; line-height: 1.55; }
  @media (max-width: 900px) {
    .price-board { grid-template-columns: 1fr; }
    .pb-main { padding: 0 0 26px; }
    .pb-side { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  }

  /* частые вопросы: крупнее строки */
  .faq-list summary { font-size: 18px; }
  .faq-list .a { font-size: 16px; line-height: 1.55; }

  /* тёмные подложки под фото — в тон новой темы, без тёплого коричневого */
  .card .shot { background: #121a23; }

  /* три рынка: карточки стран вместо центрированной плитки с флагами */
  .markets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; max-width: none; align-items: stretch; }
  .markets .mkt { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .markets .mkt:hover, .markets .mkt.on { transform: translateY(-3px); border-color: rgba(240,204,106,.45); box-shadow: 0 16px 32px rgba(0,0,0,.28); }
  .markets .mkt .flag { width: 100%; aspect-ratio: 3/2; border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: var(--elev-flag); transform: none; line-height: 0; }
  .markets .mkt .flag svg { width: 100%; height: 100%; display: block; }
  .markets .mkt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .markets .mkt .name { font-size: 19px; font-weight: 800; line-height: 1.2; }
  .markets .mkt .n { font-size: 14px; color: var(--mute); }
  .markets .mkt .sum { font-size: 15px; font-weight: 700; color: var(--accent); margin-top: 4px; }
  .markets-note { margin: 22px 0 0; max-width: none; color: var(--mute); font-size: 15.5px; line-height: 1.5; white-space: nowrap; }
  #markets .sub { max-width: none; }
  #markets .pb-cta { margin-top: 18px; }
  @media (max-width: 900px) {
    .markets { grid-template-columns: 1fr; gap: 12px; }
    .markets .mkt { flex-direction: row; align-items: center; gap: 16px; padding: 14px; }
    .markets .mkt .flag { width: 76px; flex: 0 0 76px; }
    .markets .mkt .name { font-size: 17px; }
    .markets .mkt .sum { margin-top: 2px; }
    .markets-note { white-space: normal; }
  }
  /* цена по странам в блоке стоимости */
  .pb-fees { margin: 0 0 24px; }
  .pb-fees li { font-size: 15.5px; }

  /* админка — настройки */
  .settings-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-bottom:24px; }
  .settings-grid .card { background:#fff; border-radius:12px; padding:18px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
  .settings-grid .card h3 { font-size:15px; color:#1e293b; }
  .settings-grid label { font-size:13px; color:#334155; }
  .settings-grid .in {
    border:1px solid #cbd5e1; border-radius:8px; padding:6px 10px; font-size:13px;
    outline:none; transition: border .15s;
  }
  .settings-grid .in:focus { border-color:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,.15); }
  @media (max-width:768px) {
    .settings-grid { grid-template-columns:1fr; }
  }

  /* hero: видео пути автомобиля */
  .hero-media { display: flex; flex-direction: column; gap: 12px; }
  .hero-video {
    width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover;
    border-radius: 18px; background: #0e1018; border: 1px solid rgba(255,255,255,.07);
  }
  .hero-road { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-road span {
    font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted, #8b93a7); padding: 5px 11px; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  }
  @media (min-width: 1000px) {
    .hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: center; }
    .hero-copy { min-width: 0; }
    .hero-media { min-width: 0; }
  }
  @media (max-width: 999px) {
    .hero-media { margin-top: 22px; }
  }

  /* первый экран: живая машина из наличия */
  .hero-car {
    display: block; text-decoration: none; color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.09); border-radius: 20px; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
  }
  .hero-car:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.45); }
  .hero-car-frame { display: block; background: #0d0f17; }
  /* у фото поставщика внизу строка с его номером — кадрируем по верху, чтобы она не попала в кадр */
  .hero-car-frame img { width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: 50% 0%; display: block; }
  .hero-car-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
  .hero-car-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
  .hero-car-spec { font-size: 13.5px; color: var(--muted, #8b93a7); }
  .hero-car-price { margin-top: 6px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
  .hero-car-price i { display: block; font-size: 12.5px; font-weight: 500; font-style: normal; color: var(--muted, #8b93a7); letter-spacing: 0; margin-top: 2px; }
  .hero-car-go { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #e3c567; }
  .steps-video { max-width: 900px; margin: 4px auto 30px; }
  @media (max-width: 999px) {
    .hero-car-price { font-size: 22px; }
  }


  .route-video .hero-road { margin-top: 12px; }

  /* карточка лота: маршрут — 4 кадра, без стокового видео */
  .route-full {
    position: relative; width: 100%; isolation: isolate;
    background: #0d0f17; color: #f4f6fb;
  }
  .route-copy { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 28px 46px; }
  .route-copy h2 { font-size: clamp(26px, 3.4vw, 44px); margin: 6px 0 10px; }
  .route-copy .sub { max-width: 640px; color: #e8eaf2; opacity: .92; }
  .route-cards {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px; margin-top: 22px;
  }
  .route-card {
    position: relative; margin: 0; overflow: hidden;
    background: #07080c; border: 1px solid rgba(255,255,255,.08);
  }
  .route-card img {
    display: block; width: 100%; aspect-ratio: 16 / 10;
    object-fit: cover; object-position: center;
  }
  .route-card figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 12px 10px; font-size: 13px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    background: linear-gradient(transparent, rgba(7,8,12,.88));
  }
  @media (max-width: 860px) {
    .route-cards { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 768px) {
    .route-copy { padding: 26px 18px 32px; }
    .route-copy .sub { font-size: 15px; }
  }

  /* тикер наличия сверху */
  .ticker { position: relative; overflow: hidden; background: linear-gradient(90deg, #1a2340, #223059 40%, #1a2340); border-bottom: 1px solid rgba(255,255,255,.07); }
  .ticker-track { display: flex; gap: 34px; padding: 9px 0; width: max-content; animation: tickerMove 70s linear infinite; }
  .ticker-item { font-size: 13px; color: #d7dcea; text-decoration: none; white-space: nowrap; }
  .ticker-item b { color: #fff; font-weight: 700; }
  @keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

  /* первый экран: видео фоном на весь экран, текст поверх */
  .hero-full { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
  /* фон центрируем по вьюпорту: так он закрывает экран независимо от контейнера страницы */
  .hero-bg { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw; min-width: 100%; height: 100%; object-fit: cover; z-index: 0;
    background: #0d0f17; border-radius: 0; filter: brightness(1.14) saturate(1.07) contrast(1.03); }
  .hero-full > video.hero-clip { z-index: 1; }
  @media (prefers-reduced-motion: reduce) {
    .hero-full > video.hero-clip { display: none; }
  }
  /* первый экран: заставка из кадров вместо видео (видео тяжёлое для мобильных) */
  .hero-stills { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0d0f17; }
  .hero-stills img { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw; min-width: 100%; height: 100%; object-fit: cover;
    filter: brightness(1.14) saturate(1.07) contrast(1.03); }
  .hero-stills img.hs { opacity: 0; animation: heroStill 42s infinite; }
  .hero-stills img.hs1 { opacity: 1; animation-name: heroStillFirst; }
  .hero-stills img.hs2 { animation-delay: 6s; }
  .hero-stills img.hs3 { animation-delay: 12s; }
  .hero-stills img.hs4 { animation-delay: 18s; }
  .hero-stills img.hs5 { animation-delay: 24s; }
  .hero-stills img.hs6 { animation-delay: 30s; }
  .hero-stills img.hs7 { animation-delay: 36s; }
  @keyframes heroStill { 0% { opacity: 0; } 2.4% { opacity: 1; } 12% { opacity: 1; } 14.28% { opacity: 0; } 100% { opacity: 0; } }
  @keyframes heroStillFirst { 0% { opacity: 1; } 12% { opacity: 1; } 14.28% { opacity: 0; } 97.6% { opacity: 0; } 100% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .hero-stills img.hs { animation: none; }
    .hero-stills img.hs2, .hero-stills img.hs3, .hero-stills img.hs4, .hero-stills img.hs5,
    .hero-stills img.hs6, .hero-stills img.hs7 { display: none; }
  }
  .hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    /* только вертикальный градиент: радиальный затемнял края и давал чёрные полосы по бокам */
    background: linear-gradient(180deg, rgba(11,13,20,.50) 0%, rgba(11,13,20,.18) 26%, rgba(11,13,20,.22) 62%, rgba(11,13,20,.86) 100%); }
  .hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 84px 24px 72px; text-align: center; }
  .hero-inner .brand-line {
    font-size: clamp(22px, 3.8vw, 36px);
    letter-spacing: .2em;
    color: #ffe7a4;
    text-shadow: 0 2px 14px rgba(0,0,0,.8), 0 0 28px rgba(240,204,106,.4);
    margin-bottom: 16px;
  }
  .hero-fade {
    position: absolute; left: 0; right: 0; bottom: -1px; height: min(32vh, 200px);
    z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(14,21,29,0) 0%, var(--canvas) 100%);
  }
  .hero-inner { z-index: 3; }
  .hero-inner .hero-cta .btn { min-height: 62px; padding: 18px 38px; font-size: 18px; min-width: 240px; }
  .top-phones { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 14px; align-items: center; justify-content: flex-end; }
  .top-phones .top-phone { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
  .top-mail { flex-direction: row; align-items: center; gap: 8px; }
  .top-mail small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; display: block; }
  .top-mail b { font-size: 13px; font-weight: 700; display: block; }
  .top-mail:hover b { color: var(--accent); }
  @media (max-width: 720px) {
    .top-cta .btn.js-order { display: none; }
    .top-phones { flex-direction: column; gap: 0; align-items: flex-end; }
    .top-phones .top-phone { font-size: 12.5px; }
  }
  .markets .mkt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .markets .mkt .sum { margin-top: 0; font-size: 18px; }
  .hero-inner h1 { font-size: clamp(30px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 8px 34px rgba(0,0,0,.45); }
  .hero-inner .lead { max-width: 720px; margin: 16px auto 0; color: #f6f7fb; opacity: .97;
    text-shadow: 0 1px 8px rgba(0,0,0,.65), 0 4px 20px rgba(0,0,0,.5); }
  .hero-inner .hero-cta { justify-content: center; margin-top: 26px; }

  /* наличие — строка под кнопками */
  .hero-stock { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 30px;
    padding: 12px 20px; border-radius: 999px; text-decoration: none; color: inherit;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    transition: border-color .2s ease, transform .2s ease; }
  .hero-stock:hover { border-color: rgba(212,175,55,.5); transform: translateY(-2px); }
  .hero-stock-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #e3c567; }
  .hero-stock-title { font-size: 15px; font-weight: 600; }
  .hero-stock-price { font-size: 15px; font-weight: 700; }
  .hero-stock-go { font-size: 13.5px; color: var(--muted, #9aa2b6); }

  /* кино-постер: наши машины справа, текст слева. Не растягиваем 640px на 1920. */
  .hero-full.hero-cinema {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    grid-template-areas: "copy stage";
    align-items: stretch;
    min-height: 100svh;
    background: #0b0d14;
  }
  .hero-cinema .hero-inner {
    grid-area: copy;
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 108px 28px 48px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-cinema .hero-inner .lead { margin-left: 0; margin-right: 0; max-width: 36em; }
  .hero-cinema .hero-inner .hero-cta { justify-content: flex-start; }
  .hero-cinema .hero-inner h1,
  .hero-cinema .hero-inner .lead { text-shadow: none; color: #f4f6fb; }
  .hero-stage {
    grid-area: stage;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 88px 24px 28px 8px;
    min-width: 0;
  }
  .hero-poster {
    position: relative;
    flex: 1 1 auto;
    min-height: 280px;
    aspect-ratio: 16 / 10;
    max-height: calc(100svh - 200px);
    background: #07080c;
    border: 1px solid rgba(240,204,106,.18);
    overflow: hidden;
  }
  .hero-shot {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .55s ease;
  }
  .hero-shot.on { opacity: 1; pointer-events: auto; }
  .hero-shot img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #07080c;
    max-width: none;
  }
  .hero-cast {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-dot {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 6px 10px 6px 6px;
    text-align: left;
    color: #f4f6fb;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    cursor: pointer;
  }
  .hero-dot.on { border-color: rgba(240,204,106,.55); background: rgba(240,204,106,.1); }
  .hero-dot img { width: 56px; height: 40px; object-fit: cover; background: #111; }
  .hero-dot-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .hero-dot-meta em { font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #e3c567; }
  .hero-dot-meta b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-dot-meta i { font-style: normal; font-size: 13px; font-weight: 700; }
  @media (max-width: 860px) {
    .hero-full.hero-cinema {
      grid-template-columns: 1fr;
      grid-template-areas: "copy" "stage";
      min-height: 0;
    }
    .hero-stage { padding: 8px 16px 28px; }
    .hero-poster { max-height: 42vh; aspect-ratio: 4 / 3; min-height: 180px; }
    .hero-cinema .hero-inner { padding: 84px 18px 12px; justify-content: flex-start; }
    .hero-cinema .hero-inner h1 { font-size: clamp(26px, 8vw, 36px); }
    .hero-cast { grid-template-columns: 1fr 1fr; }
    .hero-cast .hero-dot.on { display: none; }
  }
  @media (max-width: 768px) {
    .hero-full:not(.hero-cinema) .hero-inner { padding: 58px 18px 52px; }
    .hero-stock { border-radius: 18px; }
    .ticker-item { font-size: 12px; }
  }

  /* подборки на главной: категории-плитки */
  .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
  .pick { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; text-decoration: none; color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
    transition: transform .22s ease, border-color .22s ease; }
  .pick:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.45); }
  .pick b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
  .pick span { font-size: 13px; color: var(--muted, #9aa2b6); }
  @media (max-width: 900px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }

  /* первый экран во всю ширину: тикер и видео выходят из контейнера страницы */
  html, body { overflow-x: clip; }   /* прижим на уровне документа: контейнер страницы больше не режет широкие блоки */
  .ticker, .hero-full {
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-full { border-radius: 0; }

  /* главная: тикер и шапка лежат поверх первого экрана — как на референсе */
  body.skin-home .top-stack { position: fixed; top: 0; left: 0; right: 0; z-index: 70; transition: background .3s ease, border-color .3s ease; }
  body.skin-home .top-stack .topbar { background: transparent; border-bottom: 0; backdrop-filter: none; }
  body.skin-home .top-stack:has(.topbar.scrolled) { background: var(--header-bg); border-bottom: 1px solid var(--line); }
  body.skin-home .hero-full {
    min-height: 100svh;
    background: #0d0f17 url("/static/media/hero_poster_hd.jpg") center / cover no-repeat;
  }

  /* подстраховка: .hero-full не должен наследовать старую сетку .hero */
  .hero-full { display: flex; grid-template-columns: none; padding: 0; }
  .hero-full.hero-cinema {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  }
  body.skin-home .hero-full.hero-cinema { background: #0b0d14; }
  @media (max-width: 860px) {
    .hero-full.hero-cinema { grid-template-columns: 1fr; grid-template-areas: "copy" "stage"; min-height: 0; }
    body.skin-home .hero-full.hero-cinema { min-height: 0; }
  }

  /* на главной шапка лежит на светлом кадре видео: пока страница не прокручена — светлый текст */
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar nav a,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar .brand,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar .top-phone,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar .top-mail { color: #f4f6fb; }
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar nav a,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar .brand,
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar .top-phone { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  body.skin-home .top-stack:not(:has(.topbar.scrolled)) .topbar nav a:hover { color: #fff; }

  /* главная: шапка лежит на видео — светлый текст в начале страницы, обычный после прокрутки */
  body.skin-home .topbar nav a { color: #f2f5fb; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
  body.skin-home .topbar .brand { color: #ffffff; }
  body.skin-home .topbar .top-phone { color: #f2f5fb; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
  body.skin-home .topbar nav a:hover { color: #ffffff; }
  body.skin-home .topbar.scrolled nav a,
  body.skin-home .topbar.scrolled .top-phone { color: var(--mute); text-shadow: none; }
  body.skin-home .topbar.scrolled .brand { color: var(--ink); }
