/* SEO-56 · дизайн v2 SEO-хабов выкупа авто · 09.11.2026 · якорь Swiss: белый, один гротеск, сетка тонких линий, один акцент. */
:root {
  --paper: #ffffff;
  --wash: #f7f7f8;
  --ink: #121417;
  --ink-2: #2b2f36;
  --muted: #5a606c;
  --line: #e2e4e9;
  --line-strong: #c9ccd4;
  --accent: #002fa7;
  --accent-hover: #00247f;
  --accent-wash: #eef2fc;
  --ok: #0f7a3d;
  --err: #a42121;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); }
:where(body.v2) img { display: block; max-width: 100%; height: auto; }
body.v2 a { color: var(--accent); }
body.v2 h1, body.v2 h2, body.v2 h3 { margin: 0; font-family: var(--font); color: var(--ink); text-wrap: balance; }
body.v2 p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff !important; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
svg { width: 18px; height: 18px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 700 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .auto-city-field select, .auto-city-field input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: 400 17px/1.2 var(--font); }
.field input:focus, .auto-city-field select:focus { border-color: var(--accent); outline: 3px solid rgba(0, 47, 167, .16); outline-offset: 0; }
.form-honeypot { position: absolute !important; left: -9999px; opacity: 0; }
body.v2 .pd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
body.v2 .pd-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.form-status { min-height: 0; font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }
.form-status.is-success { color: var(--ok); }
.form-note { font-size: 13px; color: var(--muted); }
.lead-form { display: grid; gap: 12px; }
.lead-form__fields { display: grid; gap: 12px; }
.auto-city-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.auto-city-field label { display: grid; gap: 6px; }
/* город уже выбран (select валиден) — поле в формах не показываем: город виден и меняется в шапке */
body.v2 form .auto-city-field:has(select:valid) { display: none; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.brand__txt { display: grid; line-height: 1.1; white-space: nowrap; }
.brand__txt strong { font-size: 15px; letter-spacing: .04em; }
.brand__txt small { font-size: 12.5px; color: var(--muted); }
.hdr__nav { display: flex; gap: 22px; margin-left: 8px; }
.hdr__nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.hdr__nav a:hover { color: var(--accent); }
.hdr__act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink) !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hdr .auto-city { font-size: 14px; }

/* hero */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin-top: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
.lead { margin-top: 22px; max-width: 32em; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks svg { color: var(--accent); margin-top: 2px; }
.ticks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.hero__media { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--wash); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__chat { position: sticky; top: 88px; }

/* chat */
.chat { border: 1px solid var(--line-strong); border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(18, 20, 23, .28); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__badge { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.chat__badge::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #18a957; border: 2px solid #fff; }
.chat__title { font-weight: 700; font-size: 16px; }
.chat__sub { font-size: 13px; color: var(--muted); }
.chat__step { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat__progress { height: 3px; background: var(--line); }
.chat__progress i { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.chat__log { display: grid; gap: 10px; padding: 18px 18px 0; }
.chat__form { display: grid; gap: 12px; padding: 10px 18px 16px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; animation: msg-in .22s ease-out both; }
.msg--bot { justify-self: start; background: var(--wash); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg--me { justify-self: end; background: var(--accent); color: #fff; border-top-right-radius: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-step { display: grid; gap: 12px; }
.quiz-step[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.chip:hover { border-color: var(--accent); background: var(--accent-wash); }
.chip.is-selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.chat__summary { display: none; } /* ответы уже видны в переписке */
.chat__actions { display: flex; gap: 10px; }
.chat__actions [data-quiz-action] { flex: 1; }
.chat__form .button--small { min-height: 52px; }
.chat__form .auto-city-field { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--wash); }
.chat__alt { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.chat__alt a { font-weight: 700; text-decoration: none; }

/* facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__grid p { display: grid; gap: 2px; padding: 22px 20px; border-left: 1px solid var(--line); }
.facts__grid p:first-child { border-left: 0; padding-left: 0; }
.facts__grid b { font-size: 18px; letter-spacing: -.01em; }
.facts__grid span { font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding: 72px 0; }
.sec--wash { background: var(--wash); border-block: 1px solid var(--line); }
.sec--band { padding: 0; }
.sec__head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 34px; }
.sec__head h2, .band h2, .split h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.sec__head > p { max-width: 60ch; font-size: 17px; color: var(--ink-2); }
.muted { color: var(--muted); font-size: 14.5px; margin-bottom: 18px !important; }
.fine { margin-top: 18px !important; font-size: 13px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--ink); }
.step { display: grid; align-content: start; gap: 10px; }
.step__media { margin: 0 0 6px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wash); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__num { font-size: 44px; line-height: 1; font-weight: 300; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; letter-spacing: -.015em; }
.step p:not(.step__num) { font-size: 15px; color: var(--ink-2); }

/* band with form */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; padding: 44px 0; border-block: 1px solid var(--line); }
.band > div > p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.band .lead-form__fields { grid-template-columns: 1fr 1fr; }

/* documents */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.doc { display: grid; align-content: start; gap: 14px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 19px; letter-spacing: -.01em; }
.doc ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.doc li { display: flex; gap: 8px; font-size: 15px; color: var(--ink-2); }
.doc li svg { color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }
.doc__link { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; }
.doc__link:hover { text-decoration: underline; }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split h2 { margin: 10px 0 22px; }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split .lead-form__fields { grid-template-columns: 1fr 1fr; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); opacity: 1 !important; transform: none !important; }
.faq-trigger { display: flex; width: 100%; justify-content: space-between; gap: 16px; padding: 20px 0; border: 0; background: none; color: var(--ink); font: 700 17px/1.35 var(--font); text-align: left; cursor: pointer; }
.faq-trigger__icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.faq-trigger__icon::before, .faq-trigger__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--accent); transition: transform .2s ease; }
.faq-trigger__icon::after { transform: rotate(90deg); }
.faq-trigger[aria-expanded="true"] .faq-trigger__icon::after { transform: rotate(0); }
.faq-content { padding: 0 0 20px; color: var(--ink-2); }
.faq-content p { margin: 0; }
.side-form { position: sticky; top: 92px; display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 18px; }
.side-form h3 { font-size: 21px; }
.side-form > p { color: var(--ink-2); font-size: 15px; }

/* seo text from live page */
.seo-wrap { border-top: 1px solid var(--line); }
.seo-wrap .seo-native-content, .seo-wrap section[id="seo-details"] { background: var(--paper) !important; color: var(--ink) !important; padding: 64px 0 !important; }
.seo-wrap .seo-shell, .seo-wrap .seo-native-content > div { width: min(100% - 32px, 700px); margin-inline: auto; }
.seo-wrap section section { margin-top: 44px; }
body.v2 .seo-wrap h2 { margin: 40px 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
body.v2 .seo-wrap h2:first-child { margin-top: 0; }
.seo-wrap .seo-shell .seo-shell { width: 100%; }
body.v2 .seo-wrap p + p { margin-top: 12px; }
body.v2 .seo-wrap nav { margin-top: 8px; }
.seo-wrap p, .seo-wrap li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.seo-wrap p + p { margin-top: 12px; }
.seo-wrap nav ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.seo-wrap nav a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink); }
.seo-wrap nav a:hover { border-color: var(--accent); color: var(--accent); }
.seo-wrap .seo-cta { display: inline-flex; align-items: center; min-height: 50px; margin-top: 20px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.seo-wrap .seo-block { padding: 0 !important; background: none !important; }

/* dark contacts */
.sec--dark { background: var(--ink); color: #fff; padding: 0; }
.band--dark { border: 0; padding: 64px 0; }
.band--dark > div h2, .band--dark > div > p { color: #fff !important; }
.band--dark > div > p { color: #d4d8e0 !important; }
.band--dark .kicker { color: #9db4ff; }
.band--dark .lead-form { padding: 24px; border-radius: 18px; background: #fff; }
.band--dark .lead-form__fields { grid-template-columns: 1fr; }
.big-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #fff !important; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.big-phone svg { width: 26px; height: 26px; }

/* footer */
.ftr { padding: 28px 0 96px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ftr a { color: inherit; }
body.v2 > nav[aria-label="Города выкупа"] { font-size: 13px; color: var(--muted); }
body.v2 > nav[aria-label="Города выкупа"] a { color: var(--muted); }

/* sticky mobile bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
.mobile-cta__call, .mobile-cta__main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 12px; font: 700 16px/1 var(--font); text-decoration: none; }
.mobile-cta__call { flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--line-strong); color: var(--ink) !important; background: #fff; }
.mobile-cta__main { flex: 1; border: 0; background: var(--accent); color: #fff; cursor: pointer; }

/* modal & toast (native-auto.js: .is-open / .is-visible) */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .55); }
.modal__dialog { position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 24px; border-radius: 20px; background: #fff; }
.modal__dialog h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.modal__lead { margin: 10px 0 16px !important; color: var(--ink-2); }
.modal__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--wash); font-size: 24px; line-height: 1; cursor: pointer; }
.mini-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px !important; }
.modal-form { display: grid; gap: 12px; }
.contact-form__grid { display: grid; gap: 12px; }
.modal-form .button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 700 16px/1 var(--font); cursor: pointer; }
.modal-form .button:hover { background: var(--accent-hover); }
.form-status--modal, .modal-form .form-status { font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 88px; z-index: 90; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .side-form { position: static; }
}
@media (max-width: 860px) {
  .hero { padding: 24px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__copy { display: contents; }
  .hero__copy > .kicker { order: 1; }
  .hero h1 { order: 2; }
  .lead { order: 3; margin-top: -8px; font-size: 17px; }
  .hero__chat { order: 4; position: static; }
  .ticks:not(.ticks--grid) { order: 5; margin-top: 0; }
  .hero__media { order: 6; margin-top: 0; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid p { padding: 16px 0 16px 16px; border-bottom: 1px solid var(--line); }
  .facts__grid p:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band, .split { grid-template-columns: 1fr; gap: 24px; }
  .split__media { order: -1; }
  .sec { padding: 52px 0; }
  .hdr__phone span { display: none; }
  .hdr__phone { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; }
  .mobile-cta { display: flex; }
}
@media (max-width: 560px) {
  .hdr__in { gap: 10px; min-height: 60px; }
  .brand__txt small { display: none; }
  .hdr__act { gap: 8px; }
  .hdr__act > .btn { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .steps { grid-template-columns: 1fr; }
  .step__media { aspect-ratio: 16 / 9; }
  .step { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; }
  .band .lead-form__fields, .split .lead-form__fields, .ticks--grid { grid-template-columns: 1fr; }
  .chat__head { padding: 14px; }
  .chat__log { padding: 14px 14px 0; }
  .chat__form { padding: 10px 14px 14px; }
  .msg { max-width: 94%; }
  .facts__grid b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Выбор города (auto-city) · v2 · 09.11.2026 ===== */
body.v2 .auto-city { margin: 0; color: var(--ink); font-family: var(--font); }
body.v2 .auto-city summary { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
body.v2 .auto-city summary::before { content: ""; width: 14px; height: 14px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
body.v2 .auto-city summary:hover { border-color: var(--ink); }
body.v2 .auto-city-panel { padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -20px rgba(18, 20, 23, .35); color: var(--ink); font-family: var(--font); }
body.v2 .auto-city-panel p { margin: 0 0 12px; }
body.v2 .auto-city [data-city-question-text] { font-size: 16px; font-weight: 700; }
body.v2 .auto-city button { font-family: var(--font); border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; }
body.v2 .auto-city button:hover { border-color: var(--accent); }
body.v2 .auto-city [data-city-yes], body.v2 .auto-city [data-city-other-save] { background: var(--accent); border-color: var(--accent); color: #fff; }
body.v2 .auto-city [data-city-yes]:hover, body.v2 .auto-city [data-city-other-save]:hover { background: var(--accent-hover); }
body.v2 .auto-city input { border-color: var(--line-strong); border-radius: 12px; min-height: 48px; padding: 0 14px; font-family: var(--font); }
body.v2 .auto-city input:focus { border-color: var(--accent); outline: 3px solid rgba(0, 47, 167, .16); outline-offset: 0; }
body.v2 .auto-city label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
body.v2 .auto-city-note { display: none; }
body.v2 .auto-city-panel a[data-city-page] { display: none !important; }
/* модальный режим: выбор из списка */
body.v2 .auto-city.is-choosing .auto-city-menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(18, 20, 23, .5); }
body.v2 .auto-city.is-choosing .auto-city-panel { position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 22px 24px 24px; inset-inline: auto; }
.city-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.city-head b { font-size: 21px; letter-spacing: -.015em; }
body.v2 .auto-city .city-close { width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--wash); font-size: 22px; line-height: 1; }
body.v2 .auto-city:not(.is-choosing) .city-head { display: none; }
body.v2 .auto-city-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; max-height: none; margin: 14px 0 18px; padding: 12px 0; border-block: 1px solid var(--line); overflow: visible; }
body.v2 .auto-city-list .city-letter { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
body.v2 .auto-city-list .city-letter:first-child { margin-top: 0; }
body.v2 .auto-city-list button { justify-content: flex-start; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-weight: 500; text-align: left; font-size: 15px; }
body.v2 .auto-city-list button:hover { background: var(--accent-wash); color: var(--accent); }
body.v2 .auto-city-list button.is-current { background: var(--accent-wash); color: var(--accent); font-weight: 700; }
body.v2 .auto-city-list button.is-current::after { content: " · эта страница"; font-weight: 500; font-size: 12.5px; color: var(--muted); }
body.v2 .auto-city [data-city-choices] > label:first-child input { background: var(--wash); }
body.v2 .auto-city [data-city-other-save] { margin-top: 10px; min-height: 46px; width: 100%; }
.city-going { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(255, 255, 255, .85); font: 700 18px/1.3 var(--font); color: var(--ink); }
@media (max-width: 720px) {
  body.v2 .auto-city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .auto-city.is-choosing .auto-city-panel { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 86vh; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  body.v2 .auto-city summary { padding: 0 10px; font-size: 13px; }
  body.v2 .auto-city:not(.is-choosing) .auto-city-panel { position: fixed !important; left: 12px !important; right: 12px !important; top: 66px !important; width: auto !important; transform: none !important; }
}
/* окно города поверх нижней панели и чужих виджетов: шапка (sticky, z-index) иначе держит его в своём слое */
body.v2.city-open .hdr { z-index: 2147483000; }
body.v2.city-open .mobile-cta { display: none; }
/* длинное название города в шапке на телефоне — многоточие, а не вылезающая кнопка телефона */
@media (max-width: 560px) {
  body.v2 .hdr__act { min-width: 0; }
  body.v2 .hdr .auto-city { min-width: 0; }
  body.v2 .auto-city summary { display: block; max-width: calc(100vw - 216px); overflow: hidden; text-overflow: ellipsis; line-height: 40px; }
  body.v2 .auto-city summary::before { display: inline-block; vertical-align: -2px; margin-right: 6px; }
}
