/* Los Angeles RV Mechanic — свои стили (ТЗ сайта Лос-Анджелеса: свой вид, не повторять пять сайтов сети).
   Замысел «Pacific Dusk»: белая шапка, тёмно-синий первый экран и подвал (океан в сумерках), золотая кнопка
   главного действия (закат), синие ссылки. Шрифты (OFL): Red Hat Display — заголовки, Red Hat Text — текст (одна семья,
   два оптических размера). Углы почти прямые (2 px), признаки — с золотой чертой слева.
   Главный приём — проверка размера автодома под ночной запрет стоянки в Лос-Анджелесе (гайд о стоянке и хранении). */

@font-face { font-family: "Red Hat Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/red-hat-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/red-hat-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/red-hat-text-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Шкала кеглей: пять ступеней — мелкий 15, текст 18, крупный 22, заголовок раздела, заголовок страницы */
  --fs-s: .9375rem; --fs-b: 1.125rem; --fs-l: 1.375rem;
  --shade: #0f2f52;      /* океан в сумерках: первый экран, подвал, заголовки */
  --shade-2: #1b4272;
  --ink: #142235;
  --sky: #1a5fa8;
  --copper: #1a5fa8;     /* синий: ссылки и значки (золото — только кнопка) */
  --copper-dk: #134b86;
  --copper-hi: #f2a93b;
  --gold: #f2a93b;       /* закат: главное действие */
  --gold-dk: #e0921f;
  --sage: #2f7a4a;
  --heat: #8a4b00;
  --bleach: #f1f5fa;     /* светлые полосы */
  --line: #d7e0ea;
  --mute: #4d5b6c;
  --paper: #fff;
  --head: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --g: 18px;
}
@media (min-width: 760px) { :root { --g: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-b)/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: .2em; text-decoration-thickness: .06em; }
a:hover { color: var(--shade); }
:focus-visible { outline: 3px solid #6aa6e8; outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: #fff; color: var(--shade); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { left: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--head); margin: 0 0 .55em; color: inherit; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.15rem); line-height: 1.07; letter-spacing: -.02em; max-width: 18ch; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.15; letter-spacing: -.012em; }
h3 { font-weight: 700; font-size: var(--fs-l); line-height: 1.3; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }
.prose { max-width: 66ch; }
.prose ol, .prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { overflow-wrap: anywhere; }
.prose .checks, .prose .related { padding-left: 0; }
.small { font-size: var(--fs-s); color: var(--mute); }
.muted { color: var(--mute); }
.intro { max-width: 62ch; margin-bottom: 1.4rem; }

/* Кнопки: медная — главное действие; радиус небольшой, без теней */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .75em 1.3em; border-radius: 6px; border: 0; font: 700 var(--fs-b)/1.1 var(--head); letter-spacing: .005em; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--copper); color: #fff; }
.btn-main:hover { background: var(--copper-dk); color: #fff; }
.btn-alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Шапка — одна строка в тени */
.head { background: var(--shade); color: #fff; position: sticky; top: 0; z-index: 40; }
.head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5em; color: #fff; text-decoration: none; font: 800 var(--fs-l)/1 var(--head); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.mark { width: 32px; height: 32px; color: #f3f6f9; }
.nav { display: none; gap: 0; align-items: center; margin-left: auto; margin-right: 4px; }
.nav > a, .drop > button { color: #e8eef4; text-decoration: none; font: 700 var(--fs-b)/1 var(--head); padding: .7em .55em; white-space: nowrap; border-radius: 6px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.nav > a:hover, .drop > button:hover, .nav > a[aria-current] { color: #fff; background: var(--shade-2); }
.drop { position: relative; }
.drop-list { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; box-shadow: 0 12px 28px rgba(20,30,45,.18); }
.drop.open .drop-list { display: block; }
.drop-list a { display: flex; align-items: center; gap: .6em; padding: .6em .7em; color: var(--ink); text-decoration: none; border-radius: 5px; }
.drop-list a:hover, .drop-list a[aria-current] { background: var(--bleach); color: var(--copper); }
.drop-list .icon { color: var(--copper); }
.head-actions { display: none; }
.menu-btn { margin-right: -10px; margin-left: auto; background: none; border: 0; color: #fff; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; }
.menu-btn .icon { width: 28px; height: 28px; }
@media (min-width: 980px) {
  .head-actions { display: flex; margin-left: auto; }
  .head-actions .btn { white-space: nowrap; }
  .menu-btn { margin-left: 10px; }
}
/* Меню строкой — только когда все пункты помещаются в одну строку (на 1024 переносились, приёмка 24.11) */
@media (min-width: 1240px) {
  .nav { display: flex; }
  .head-actions { margin-left: 0; }
  .menu-btn { display: none; }
}
.mnav { position: fixed; inset: 0; z-index: 70; background: #fff; overflow: auto; padding: 0 var(--g) 40px; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; min-height: 68px; margin: 0 calc(var(--g) * -1) 8px; padding: 0 var(--g); background: var(--shade); }
.mnav h2 { font-size: var(--fs-s); color: var(--mute); margin: 1.3rem 0 .3rem; font-weight: 700; }
.mnav a:not(.brand) { display: flex; align-items: center; gap: .6em; padding: .7em 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav a .icon { color: var(--copper); }

.crumbs { text-wrap: balance; font-size: var(--fs-s); padding-top: 14px; padding-bottom: 0; color: #c9d4df; }
.crumbs a { color: #e8eef4; }
.crumbs span[aria-current] { color: #fff; }

/* Первый экран — в тени; на главной справа форма за 5 секунд */
main { display: block; }
main > .crumbs { background: var(--shade); max-width: none; padding-left: max(var(--g), calc((100% - var(--wrap)) / 2 + var(--g))); }
.hero { background: var(--shade); color: #fff; padding: 28px 0 44px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: var(--fs-l); color: #dbe4ec; max-width: 46ch; }
.hero .where { display: flex; gap: .55em; align-items: flex-start; color: #f0c7a8; font-size: var(--fs-s); margin: 0; }
.hero .where .icon { margin-top: .2em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 8px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .hero { padding: 40px 0 64px; } }
.hero-form .request { position: relative; overflow: hidden; background: #fff; color: var(--ink); border-radius: 10px; padding: 26px 20px 20px; }
.hero-form .request::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--copper); }
.hero-form .request h2 { font-size: var(--fs-l); margin-bottom: .3em; }
@media (min-width: 900px) { .hero-form .request { padding: 28px 28px 24px; } }

/* Полосы страницы */
.band { padding: 52px 0; }
.band-grey { background: var(--bleach); }
@media (min-width: 900px) { .band { padding: 72px 0; } }
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.fig { margin: 0; }
.fig img { border-radius: 8px; }

/* Список поломок строками: значок, название, когда чаще ищут */
.rlist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .rlist { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.rlist li { border-bottom: 1px solid var(--line); }
.rlist a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 2px; text-decoration: none; color: var(--ink); }
.rlist a:hover .rl-name { color: var(--copper); text-decoration: underline; text-underline-offset: .2em; }
.rlist .icon { width: 30px; height: 30px; color: var(--copper); }
.rl-name { font: 700 var(--fs-b)/1.25 var(--head); }
.rl-peak { font-size: var(--fs-s); color: var(--mute); white-space: nowrap; }

/* Календарь поломок — главный приём страницы */
.cal { border-collapse: separate; border-spacing: 6px 8px; min-width: 660px; }
.cal th { font: 700 var(--fs-s)/1.2 var(--head); color: var(--mute); text-align: center; padding: 0 0 4px; }
.cal th[scope=row] { text-align: left; padding: 0 14px 0 0; white-space: nowrap; font-size: var(--fs-s); color: var(--ink); position: sticky; left: 0; background: var(--bleach); }
.cal th[scope=row] a { color: var(--ink); text-decoration: none; }
.cal th[scope=row] a:hover { color: var(--copper); text-decoration: underline; }
.cal td { width: 44px; height: 38px; border-radius: 5px; }
@media (min-width: 1000px) { .cal { width: calc(100% + 12px); } }
.lv0 { background: #e2e8ee; }
.lv1 { background: #efcdb6; }
.lv2 { background: #d58552; }
.lv3 { background: var(--copper); }
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--fs-s); color: var(--mute); margin: 14px 0 0; }
.cal-key .lv { display: inline-block; width: 18px; height: 18px; border-radius: 4px; margin-right: -6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }

/* Шаги — настоящая последовательность, поэтому с номерами */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 860px) { .steps { gap: 40px; } }
.steps li { counter-increment: s; border-top: 4px solid var(--shade); padding-top: 14px; }
.steps li::before { content: counter(s); font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem)/1 var(--head); color: var(--copper); display: block; margin-bottom: 8px; }
.steps p { margin: 0; }

/* Признаки, проверки */
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 56px; align-items: start; }
@media (min-width: 860px) { .symptoms { grid-template-columns: 1fr 1fr; } }
.symptoms li { padding-left: 16px; border-left: 4px solid var(--copper-hi); }
.symptoms b { display: block; font: 700 var(--fs-b)/1.3 var(--head); margin-bottom: .25em; }
.symptoms p { margin: 0; }
.checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checks li { display: flex; gap: 12px; margin-bottom: 14px; }
.checks .icon { color: var(--sage); margin-top: .2em; width: 1.4em; height: 1.4em; }
.checks b { display: block; font-family: var(--head); }
/* Проверки без картинки на широком экране — в две колонки, чтобы справа не оставалось пустой полосы (приёмка вёрстки) */
@media (min-width: 1000px) { .wrap > .prose:has(> .checks) { max-width: none; } .wrap > .prose > .checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; } .wrap > .prose > h2 { max-width: 30ch; } }
.stop { display: flex; gap: 12px; padding: 16px 18px; background: #fff4f2; border-left: 5px solid var(--heat); border-radius: 0 6px 6px 0; max-width: 66ch; }
.stop .icon { color: var(--heat); width: 1.5em; height: 1.5em; }
.gas { display: flex; gap: 12px; padding: 14px 18px; margin: 32px 0; background: #fff4f2; border-left: 5px solid var(--heat); }
.gas .icon { color: var(--heat); }

/* Инструмент страницы */
.tool { border: 2px solid var(--shade); border-radius: 10px; padding: 24px 20px; }
@media (min-width: 900px) { .tool { padding: 34px 36px; } }
.tool-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; } }
.size-form { background: var(--bleach); border-radius: 8px; padding: 20px; display: grid; gap: 14px; }
.size-result { border-radius: 6px; padding: 14px 16px; font-size: var(--fs-b); }
.size-result b { display: block; font-family: var(--head); font-size: var(--fs-b); margin-bottom: .2em; }
.size-result.ok { background: #e7f0e8; border-left: 5px solid var(--sage); }
.size-result.warn { background: #fbeee5; border-left: 5px solid var(--copper); }
.size-result.bad { background: #fff0ee; border-left: 5px solid var(--heat); }

/* Цены */
.prices { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: var(--fs-b); }
.prices th, .prices td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font: 700 var(--fs-s)/1.2 var(--head); color: var(--mute); }
.prices .num { font-family: var(--head); font-weight: 700; white-space: nowrap; }
.prices .src { font-size: var(--fs-s); color: var(--mute); }
.quote-note { font-weight: 700; font-family: var(--head); max-width: 66ch; }
.prose b, .prose strong { font-family: var(--head); }
.updated, .price-src { font-size: var(--fs-s); color: var(--mute); }
/* На телефоне — строка «работа · цена», источник под ней на всю ширину */
@media (max-width: 640px) {
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prices tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .prices td { border: 0; padding: 2px 4px; }
  .prices td.src { grid-column: 1 / -1; padding-top: 4px; }
  .prices td.num { white-space: normal; text-align: right; }
}

/* Вопросы */
.faq { max-width: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; padding: 18px 0; font: 700 var(--fs-b)/1.35 var(--head); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--copper); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 16px; max-width: 66ch; }
@media (prefers-reduced-motion: reduce) { .faq summary .icon { transition: none; } }

.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: .45em; padding: .55em .9em; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; }
.related a:hover { border-color: var(--copper); color: var(--copper); }
.related .icon { color: var(--copper); }
.cities { columns: 2; padding-left: 1.1em; }
/* Блок без картинки не делится на две колонки — иначе правая пустует */
.split:not(:has(> .fig)) { display: block; }
@media (min-width: 760px) { .cities { columns: 3; } }

/* Форма заявки */
.request { max-width: none; }
.request h2 { margin-bottom: .25em; }
.form { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .form-quick { grid-template-columns: 1fr 1fr; } .form-more { grid-template-columns: 1fr 1fr; } }
.hero-form .form-quick { grid-template-columns: 1fr; }
@media (min-width: 640px) { .hero-form .form-quick { grid-template-columns: 2fr 3fr; } .hero-form .form-quick .field:has(#f-phone) { grid-column: 1 / -1; } }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font: 700 var(--fs-b)/1.2 var(--head); }
.hint { font-weight: 400; color: var(--mute); }
input, select, textarea { font: 400 var(--fs-b)/1.3 var(--body); color: var(--ink); padding: .7em .75em; min-height: 50px; border: 2px solid #b9c6d2; border-radius: 6px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(31,95,168,.25); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { padding: .5em; }
.consent { font-size: var(--fs-s); color: var(--mute); margin: 0; }
.form .btn { width: 100%; }
@media (min-width: 640px) { .form .btn { width: auto; } }
.hero-form .form .btn { width: 100%; }
.form-msg { padding: 14px 16px; border-radius: 6px; background: #e7f0e8; border-left: 5px solid var(--sage); }
.form-msg.err { background: #fff0ee; border-left-color: var(--heat); }
.more-lead { margin: 4px 0 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Подвал — снова тень */
.foot { background: var(--shade); color: #c9d4df; padding: 52px 0 96px; font-size: var(--fs-s); }
@media (min-width: 980px) { .foot { padding-bottom: 40px; } }
.foot a { color: #e8eef4; }
.foot .small { color: #9fb0c1; }
.foot h2 { font: 700 var(--fs-b)/1.2 var(--head); color: #fff; margin-bottom: .7em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45em; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 600px) and (max-width: 859px) { .foot-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'brand brand' 'rep help' 'rep about'; } .foot-grid > :nth-child(1) { grid-area: brand; } .foot-grid > :nth-child(2) { grid-area: rep; } .foot-grid > :nth-child(3) { grid-area: help; } .foot-grid > :nth-child(4) { grid-area: about; } }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot .brand { margin-bottom: 12px; }
.disclose { margin-top: 32px; padding-top: 18px; border-top: 1px solid #3b4c60; padding-right: max(0px, calc(100% - 80ch)); }
.disclose + .disclose { margin-top: 8px; padding-top: 0; border-top: 0; }

/* Нижняя кнопка на телефоне */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: var(--shade); }
.dock .btn { flex: 1; }
.dock-off { display: none; }
@media (min-width: 980px) { .dock { display: none; } }

/* ---- Приёмка вёрстки, часть 2 (отдельные проверяющие 24.11) ---- */
/* Соседние разделы одного цвета не складывают отступы */
.band:not(.band-grey) + .band:not(.band-grey), .band-grey + .band-grey { padding-top: 0; }
/* Последний абзац раздела не добавляет отступ к полю раздела */
.prose > :last-child, .tool > :last-child { margin-bottom: 0; }
.symptoms + .prose { margin-top: 28px; }
.prose + .updated { margin-top: 1.4em; }
.prose + .stop { margin-top: 24px; }
.field label { text-wrap: balance; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 300px) auto auto auto; justify-content: space-between; column-gap: 40px; } .foot li a { white-space: nowrap; } }
/* Одиночное слово в последней строке абзаца */
p, li, summary, .lead { text-wrap: pretty; }
/* Таблица цен: первая колонка по краю заголовка */
.prices th:first-child, .prices td:first-child { padding-left: 0; }
/* Три пункта — три колонки по порядку чтения */
@media (min-width: 860px) { .symptoms:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }
/* Поле «что сломалось» в нижней форме — во всю строку, в первом экране — рядом с индексом */
.form-quick .field:has(#f-problem) { grid-column: 1 / -1; }
.hero-form .form-quick .field:has(#f-problem) { grid-column: auto; }
/* Узкая колонка формы в первом экране (900–1199): поля друг под другом, подписи не переносятся */
@media (min-width: 900px) and (max-width: 1199px) { .hero-form .form-quick { grid-template-columns: 1fr; } }
select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a44a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; padding-right: 42px; }
.hero .where { max-width: 60ch; }
.consent { max-width: 80ch; }
.wrap > .stop { max-width: none; }
.cal-key + .prose { margin-top: 20px; }
/* Календарь: подписи строк по краю раздела; на узком экране весь год без прокрутки */
.cal { margin-left: -6px; }
.cal .m1 { display: none; }
@media (max-width: 639px) {
  .cal { min-width: 0; width: calc(100% + 6px); border-spacing: 3px 6px; margin-left: -3px; }
  .cal .m1 { display: inline; }
  .cal .m3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cal td { width: auto; height: 24px; border-radius: 3px; }
  .cal { table-layout: fixed; }
  .cal thead td { width: 32%; }
  .cal th[scope=row] { white-space: normal; font-size: var(--fs-s); line-height: 1.2; padding-right: 6px; width: 34%; }
}
/* Текстовый раздел без картинки на широком экране: заголовок над текстом, абзацы в две колонки — без пустой полосы справа
   (проверяющие 24.11: колонка «заголовок слева» пустует под заголовком, газетные колонки рвут фразу; документ из нескольких разделов — одной колонкой) */
@media (min-width: 1000px) {
  /* Раздел из заголовка и двух и более блоков — сеткой в две колонки по абзацам: абзац не рвётся между колонками */
  .wrap > .prose:has(> h2:first-child + * + *):not(:has(> .checks)):not(:has(> h2 ~ h2)) { max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  .wrap > .prose:has(> h2:first-child + * + *):not(:has(> .checks)):not(:has(> h2 ~ h2)) > h2 { grid-column: 1 / -1; }
  /* нечётное число абзацев — последний во всю ширину, без пустой клетки */
  .wrap > .prose:has(> h2:first-child + * + *):not(:has(> .checks)):not(:has(> h2 ~ h2)) > :last-child:nth-child(even) { grid-column: 1 / -1; }
  .wrap > .prose:has(> h2 ~ h2) > h2:first-child { margin-top: 0; }

  .wrap:has(> .request) .form-quick { grid-template-columns: 1fr 1fr 1.4fr; }
  .wrap:has(> .request) .form-quick .field:has(#f-problem) { grid-column: auto; }
}
/* Подзаголовки внутри документа (политика, условия) — ближе к своему тексту, дальше от предыдущего */
.prose > * + h2 { margin-top: 1.5em; }
/* Связанные страницы — ровной сеткой, без рваных рядов */
.related { display: grid; gap: 10px; grid-auto-rows: 1fr; }
.related > li > a { display: flex; height: 100%; box-sizing: border-box; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
/* Страница без подзаголовка в первом экране (политика, условия, контакты) — ниже тёмная полоса */
.hero:not(:has(.lead)) { padding-bottom: 32px; }
/* Цены на широком экране: таблица слева, оговорка и пояснения справа — без пустой полосы и без разъезда «работа — цена» */
@media (min-width: 1000px) {
  .wrap > div:has(> .table-scroll > .prices) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-content: start; }
  .wrap > div:has(> .table-scroll > .prices) > .price-src { order: 10; }
  .wrap > div:has(> .table-scroll > .prices) > h2, .wrap > div:has(> .table-scroll > .prices) > .intro { grid-column: 1 / -1; }
  .wrap > div:has(> .table-scroll > .prices) > .table-scroll { grid-column: 1; grid-row: span 6; }
  .wrap > div:has(> .table-scroll > .prices) > :not(h2):not(.intro):not(.table-scroll) { grid-column: 2; }
  .wrap > div:has(> .table-scroll > .prices) > .quote-note { margin-top: 0; }
}

/* Проверки с картинкой на широком экране: предупреждение — под картинкой, картинка тянется на остаток высоты списка
   (проверяющие 24.11: пустая колонка под картинкой); картинка неподвижна */
@media (min-width: 900px) {
  .split:has(> div > .prose > .checks) > div { display: contents; }
  .split:has(> div > .prose > .checks) { grid-template-rows: 1fr auto; align-items: stretch; row-gap: 24px; }
  .split:has(> div > .prose > .checks) > div > .prose { grid-column: 1; grid-row: 1 / span 2; }
  .split:has(> div > .prose > .checks) > div > .stop { grid-column: 2; grid-row: 2; margin-top: 0; }
  .split:has(> div > .prose > .checks) > .fig { grid-column: 2; grid-row: 1; position: relative; min-height: 280px; }
  .split:has(> div > .prose > .checks):not(:has(.stop)) > .fig { grid-row: 1 / span 2; }
  .split:has(> div > .prose > .checks) > .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .split:has(> div > .prose > .checks) > .fig:has(+ *) { margin-bottom: 0; }
}

/* ---- Приёмка, раунд 4 (24.11) ---- */
/* Плашки ссылок не похожи на поля ввода: медный тон и шеврон */
.related a { background: #fbefe7; border-color: #f0cdb6; color: var(--copper); font-weight: 700; font-family: var(--head); }
.related a::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.related a:hover { background: #f7e0d1; }
/* Таблица из одной-двух строк — по содержимому, цена рядом с работой */
/* Одинаковый зазор от заголовка раздела до первого содержимого */
.prices thead th { padding-top: 0; }
.faq { margin-top: -14px; }




/* ======== Лос-Анджелес: «Pacific Dusk» — поверх общей основы ======== */
.btn, .hero figure img, .fig img, .hero-form .request, .related a, .drop-list, .drop-list a { border-radius: 2px; }
.btn-main { background: var(--gold); color: var(--shade); }
.btn-main:hover { background: var(--gold-dk); color: var(--shade); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -.015em; }
/* Белая шапка с синим текстом */
.head { background: #fff; color: var(--shade); box-shadow: 0 1px 0 var(--line); }
.brand, .brand:hover { color: var(--shade); }
.nav > a, .drop > button { color: var(--shade); }
.nav > a:hover, .drop > button:hover, .nav > a[aria-current] { color: var(--shade); background: var(--bleach); }
.menu-btn { color: var(--shade); }
.mnav-head { background: #fff; border-bottom: 1px solid var(--line); }
/* Первый экран — тёмно-синий, строка «куда приезжают» золотом */
.hero .where { color: var(--gold); }
.hero-form .request::before { background: var(--gold); }
/* Признаки — золотая черта слева */
.symptoms li { border-left-color: var(--gold); }
.symptoms b { color: var(--shade); }
.checks .icon { color: var(--sky); }
/* Предупреждения */
.stop, .gas { border: 0; border-left: 5px solid var(--gold-dk); background: #fff7ea; border-radius: 0; max-width: none; }
.stop .icon, .gas .icon { color: var(--heat); width: 1.5em; height: 1.5em; flex: none; }
.gas { margin: 56px 0 0; }
.wrap:has(> .gas) + .band, .wrap:has(> .gas) + section { padding-top: 40px; }
.related a { background: #fff; border-color: var(--line); color: var(--shade); }
.related a::after { color: var(--gold-dk); }
.related a:hover { background: var(--bleach); color: var(--sky); }
@media (min-width: 640px) and (max-width: 999px) { .related { grid-template-columns: 1fr 1fr; } }
.split .related { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.faq summary .icon { color: var(--sky); }
.steps li { border-top-color: var(--gold); }
.steps li::before { color: var(--shade); }
/* Список поломок строками */
.rlist .icon { color: var(--sky); }
.rlist a:hover .rl-name { color: var(--sky); }
/* Проверка размера автодома */
.tool { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0; background: #fff; padding: 28px 24px; }
@media (min-width: 900px) { .tool { padding: 34px 38px; } }
.tool-grid { align-items: start; }
.size-form { display: grid; gap: 14px; align-content: start; background: var(--bleach); border-radius: 0; padding: 20px; }
.size-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-result { padding: 14px 16px; border-left: 5px solid var(--sky); background: #fff; }
.size-result b { display: block; font-family: var(--head); font-size: var(--fs-l); margin-bottom: .25em; }
.size-result.warn { border-left-color: var(--gold-dk); }
.size-result.ok { border-left-color: var(--sage); }
/* Календарь — синяя шкала */
.lv0 { background: #e6edf5; }
.lv1 { background: #a9c3e0; }
.lv2 { background: #4f7fb8; }
.lv3 { background: var(--shade); }
.cal td { border-radius: 0; }
.cal th { font-family: var(--body); }
.cal th[scope=row] { font-weight: 700; padding-right: 12px; }
/* Города */
.prose:has(> .cities) { max-width: none; }
.prose:has(> .cities) > p { max-width: 66ch; }
@media (min-width: 1100px) { .cities { columns: 4; } }
/* Цены */
.prices .num { font-family: var(--body); font-weight: 700; }
.prices:has(td.src) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prices:has(td.src) tr { display: grid; grid-template-columns: minmax(42%, 1fr) auto; column-gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.prices:has(td.src) td { border: 0; padding: 2px 0; }
.prices:has(td.src) td.src { grid-column: 1 / -1; padding: 4px 0 0; }
.prices:has(td.src) td.num { text-align: right; white-space: normal; text-wrap: balance; max-width: 24ch; justify-self: end; }
@media (min-width: 1000px) {
  .wrap > div:has(> .table-scroll > .prices-short) { display: block; }
  .wrap > div:has(> .table-scroll > .prices-short) > .table-scroll { max-width: 66ch; }
  .wrap > div:has(> .table-scroll > .prices-short tbody tr:nth-child(2)) { display: grid; }
  .wrap > div:has(> .table-scroll > .prices-short tbody tr:nth-child(2)) > .table-scroll { max-width: none; }
}
.prose p b, .prose p strong, .prose > ul:not(.checks) b { font-family: inherit; font-weight: 700; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a5fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); }
.dock { background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -8px 18px rgba(15, 47, 82, .12); }
/* Подвал: до 1200 px строками, дальше четыре колонки */
@media (min-width: 600px) { .foot-grid > :nth-child(2) ul { columns: 2; column-gap: 36px; } .foot li { break-inside: avoid; } }
@media (min-width: 600px) and (max-width: 1199px) {
  .foot-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'brand brand' 'rep rep' 'help about'; }
  .foot-grid > :nth-child(1) { grid-area: brand; } .foot-grid > :nth-child(2) { grid-area: rep; } .foot-grid > :nth-child(3) { grid-area: help; } .foot-grid > :nth-child(4) { grid-area: about; }
}
@media (min-width: 1200px) { .foot-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .6fr); } }
/* Первый экран: снимок по высоте текста; заявка — текст сверху */
@media (min-width: 900px) {
  .hero-grid:has(> figure) { align-items: stretch; }
  .hero-grid > figure { position: relative; min-height: 300px; }
  .hero-grid > figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.hero-grid:has(.hero-form), .hero-grid:has(.request) { align-items: start; }
@media (max-width: 639px) { .hero .actions .btn { width: 100%; justify-content: center; } }
@media (min-width: 640px) and (max-width: 759px) { :root { --g: 26px; } }
@media (min-width: 1000px) { .wrap > .prose > p:last-child:nth-child(even) { max-width: 75ch; } }
.request > p.muted { font-size: var(--fs-b); }
.skip { left: 8px; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

/* ---- Осмотр отдельным проверяющим 24.11 (Орландо; то же у Лос-Анджелеса и Хьюстона) ---- */
/* Ссылки сезонного блока — столбиком, без сиротской клетки; снимок рядом тянется по высоте текста */
.split .related { grid-template-columns: 1fr; }
@media (min-width: 900px) { .split:has(> .prose > .related) { align-items: stretch; } .split:has(> .prose > .related) > .fig img { height: 100%; object-fit: cover; } }
/* Подписи строк календаря — с отступом от края полосы */
.cal th[scope=row] { padding-left: 10px; }
/* Третий абзац под двумя колонками — в своей колонке, а не на всю ширину */
@media (min-width: 1000px) { .wrap > .prose:has(> h2:first-child + * + *):not(:has(> .checks)):not(:has(> h2 ~ h2)) > :last-child:nth-child(even) { grid-column: auto; max-width: none; } }
/* Подвал: шире промежуток между колонками, чтобы название сайта не сливалось с «Repairs» */
@media (min-width: 1200px) { .foot-grid { column-gap: 56px; } }
/* Длинное название сайта в подвале переносится, а не наезжает на «Repairs» */
.foot .brand { white-space: normal; }
@media (min-width: 1200px) { .foot-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .6fr); } }
.foot .brand { text-wrap: balance; }
/* ---- Осмотр отдельным проверяющим 24.11 (Лос-Анджелес) ---- */
/* Подвал: ссылки ремонта переносятся внутри своей колонки; название сайта — одной строкой, кеглем текста */
.foot li a { white-space: normal; }
.foot .brand { white-space: nowrap; font-size: var(--fs-b); }
/* Список поломок на телефоне: месяц пика под названием, а не сбоку */
@media (max-width: 639px) { .rlist a { grid-template-columns: auto 1fr; row-gap: 2px; } .rl-peak { grid-column: 2; white-space: normal; } }
/* Проверка размера: панель по центру высоты текста */
.tool-grid { align-items: center; }
/* Заявка: форма и текст первого экрана по центру друг друга */
@media (min-width: 900px) { .hero-grid:has(.hero-form), .hero-grid:has(.request) { align-items: center; } }
