/* Dallas RV Mechanic — свои стили сайта сети (ТЗ сайта §3 п. 9: не общие /assets/ сайтов фирм).
   Замысел вида: дорожный указатель DFW. Плитки поломок и знак названия — зелёные указатели
   с белой каймой внутри (как указатели на шоссе), главное действие — жёлтое, как разметка.
   Шрифт Overpass (OFL) — вырос из Highway Gothic, шрифта американских указателей. */

@font-face { font-family: "Overpass"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/overpass-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/overpass-latin-800-normal.woff2") format("woff2"); }

:root {
  --sign: #0e6b41;
  --sign-deep: #0a5232;
  --sign-tint: #e3efe8;
  --lane: #f5c000;
  --lane-deep: #dcac00;
  --lane-tint: #fff4cc;
  --asphalt: #22282b;
  --concrete: #eef0ec;
  --paper: #ffffff;
  --muted: #566064;
  --line: #d5d9d3;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: 16px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--asphalt); font: 400 1.125rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sign); text-underline-offset: .18em; }
a:hover { color: var(--sign-deep); }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lane); color: var(--asphalt); padding: .5rem 1rem; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--font); color: var(--asphalt); margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.015em; }
h2 { font-weight: 800; font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Кнопки: жёлтая — главное действие (звонок, а без звонка — заявка), зелёная рамка — второе */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; border-radius: 8px; font: 700 1.05rem/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--lane); color: var(--asphalt); border-color: var(--lane); }
.btn-main:hover { background: var(--lane-deep); border-color: var(--lane-deep); color: var(--asphalt); }
.btn-alt { background: transparent; color: var(--sign); border-color: var(--sign); }
.btn-alt:hover { background: var(--sign); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0 0; }

/* Шапка: строка-подсказка и основная строка */
.top { display: none; background: var(--asphalt); color: #e8ebe8; font-size: .875rem; }
@media (min-width: 720px) { .top { display: block; } }
.top .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.top a { color: #e8ebe8; text-decoration: none; margin-left: 1.25rem; }
.top a:hover { color: #fff; text-decoration: underline; }
.top-links { display: none; white-space: nowrap; }
@media (min-width: 900px) { .top-links { display: block; } }
.head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-block; text-decoration: none; background: var(--sign); color: #fff; border-radius: 8px; padding: .5rem .8rem .4rem; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #fff; font-weight: 800; font-size: 1.1rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: #fff; background: var(--sign-deep); box-shadow: inset 0 0 0 3px var(--sign-deep), inset 0 0 0 5px #fff; }
.nav { display: none; align-items: center; gap: .25rem; margin-left: auto; }
.nav > a, .nav .drop > button { font: 700 1rem/1 var(--font); color: var(--asphalt); text-decoration: none; padding: .7rem .7rem; border-radius: 6px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.nav > a:hover, .nav .drop > button:hover, .nav > a[aria-current="page"] { background: var(--concrete); }
.drop { position: relative; }
.drop-list { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; box-shadow: 0 12px 28px rgba(34, 40, 43, .14); }
.drop-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 6px; color: var(--asphalt); text-decoration: none; font-weight: 600; }
.drop-list a:hover { background: var(--sign-tint); }
.drop-list .icon { color: var(--sign); }
.drop.open .drop-list { display: block; }
@media (hover: hover) { .drop:hover .drop-list { display: block; } }
.head-actions { display: flex; gap: 8px; margin-left: auto; }
.head-actions .btn { min-height: 44px; padding: .55em 1em; font-size: .98rem; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--asphalt); cursor: pointer; }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .head-actions { margin-left: .5rem; }
  .menu-btn { display: none; }
}
@media (max-width: 1039px) { .head-actions .btn-req-top { display: none; } }

/* Меню телефона — все страницы */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; padding: 0 var(--gutter) 2rem; }
.mnav[hidden] { display: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.mnav h2 { font-size: 1rem; color: var(--muted); font-weight: 700; margin: 1.25rem 0 .4rem; }
.mnav a { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; color: var(--asphalt); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--concrete); }
.mnav a .icon { color: var(--sign); }

/* Полоса действий внизу экрана телефона */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; justify-content: center; }
@media (min-width: 1040px) { .dock { display: none; } }
body { padding-bottom: 72px; }
@media (min-width: 1040px) { body { padding-bottom: 0; } }

/* Крошки */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--asphalt); }

/* Первый экран */
.hero { padding: 2rem 0 2.5rem; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } .hero { padding: 3rem 0 3.5rem; } }
.hero .lead { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; margin-bottom: .5rem; }
.hero .where { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: 1rem; max-width: 44ch; margin: .75rem 0 0; }
.hero .where .icon { color: var(--sign); margin-top: .15em; }
.hero figure { margin: 0; }
.hero img, .fig img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--concrete); }

/* Полосы разделов */
.band { padding: 2.75rem 0; }
.band-grey { background: var(--concrete); }
.band-sign { background: var(--sign); color: #fff; }
.band-sign h2 { color: #fff; }
.band > .wrap > h2 { margin-bottom: .35em; }
.band .intro { max-width: 60ch; color: var(--muted); margin-bottom: 1.5rem; }

/* Плитки-указатели «что сломалось» — главный приём вида */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .signs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sign { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; min-height: 132px; height: 100%; padding: 1rem 1rem .9rem; background: var(--sign); color: #fff; text-decoration: none; border-radius: var(--radius); box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px #fff; }
.sign:hover { background: var(--sign-deep); box-shadow: inset 0 0 0 4px var(--sign-deep), inset 0 0 0 6px #fff; color: #fff; }
.sign .icon { width: 30px; height: 30px; stroke-width: 1.75; }
.sign b { display: block; font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.sign span { display: block; font-size: .9rem; line-height: 1.3; margin-top: .3rem; color: #d7e8de; }

/* Шаги — настоящая последовательность, поэтому с номерами */
.steps { display: grid; gap: 1.25rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; padding-top: 3.4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sign); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* Два столбца: текст и снимок */
.split { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; } .split.flip > :first-child { order: 2; } }
.fig { margin: 0; }

/* Признаки поломки */
.symptoms { display: grid; gap: 1rem; padding: 0; margin: 0 0 1rem; list-style: none; }
@media (min-width: 800px) { .symptoms { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; } }
.symptoms li { border-left: 4px solid var(--sign); padding: .1rem 0 .1rem 1rem; }
.symptoms b { display: block; font-size: 1.08rem; margin-bottom: .2rem; }
.symptoms p { margin: 0; color: var(--muted); }

/* Проверки владельца */
.prose .checks, .checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li p { margin: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; margin-bottom: .9rem; }
.checks .icon { color: var(--sign); width: 1.4rem; height: 1.4rem; margin-top: .2rem; }
.checks b { display: block; }
.stop { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; background: var(--paper); border: 2px solid var(--asphalt); border-radius: var(--radius); padding: 1rem 1.1rem; max-width: 68ch; }
.band-grey .stop { background: var(--paper); }
.stop .icon { width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.stop p:last-child { margin: 0; }
.gas { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; background: var(--lane-tint); border-left: 6px solid var(--lane); border-radius: 6px; padding: .9rem 1rem; margin: 1.25rem 0 0; max-width: 60ch; font-weight: 700; font-size: 1rem; }
.gas .icon { margin-top: .1rem; }

/* Цены */
.prices { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 1rem; }
.prices caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.prices thead th { font-size: .9rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--asphalt); }
.prices td.num { white-space: nowrap; font-weight: 800; }
.prices td.src { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.price-src { font-size: .9rem; color: var(--muted); margin: -.25rem 0 1rem; }
@media (max-width: 640px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .prices th, .prices td { padding: 0; border: 0; }
  .prices td.src { grid-column: 1 / -1; }
}
.quote-note { font-weight: 700; max-width: 68ch; }
.updated { font-size: .9rem; color: var(--muted); }

/* Вопросы и ответы */
.faq { max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--sign); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 1rem; }
.faq .answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .icon { transition: none; } }

/* Районы */
.prose .cities, .cities { columns: 2; column-gap: 2rem; padding: 0; margin: 0 0 1rem; list-style: none; }
@media (min-width: 720px) { .cities { columns: 3; } }
.cities li { break-inside: avoid; padding: .2rem 0; }

/* Связанные страницы */
.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.related a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border: 2px solid var(--sign); border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--sign); }
.related a:hover { background: var(--sign); color: #fff; }

/* Форма заявки */
.request { background: var(--paper); border-radius: var(--radius); border-top: 8px solid var(--sign); box-shadow: 0 0 0 1px var(--line); padding: 1.5rem var(--gutter) 1.75rem; }
@media (min-width: 720px) { .request { padding: 2rem 2rem 2.25rem; } }
.form { display: grid; gap: 1rem; }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: .3rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1.05rem/1.4 var(--font); color: var(--asphalt); background: #fff; border: 2px solid #9aa29d; border-radius: 8px; padding: .7rem .8rem; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sign); outline: 3px solid var(--lane); outline-offset: 1px; }
.consent { font-size: .9rem; color: var(--muted); max-width: 70ch; margin: 0; }
/* Ловушка для роботов: людям поле не видно и не доступно с клавиатуры. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 700; padding: .9rem 1rem; border-radius: 8px; background: var(--sign-tint); }
.form-msg.err { background: var(--lane-tint); }

/* Подвал: полная карта сайта и строка о модели сервиса */
.foot { background: var(--asphalt); color: #dfe3df; padding: 2.75rem 0 1.5rem; font-size: 1rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h2 { color: #fff; font-size: 1rem; margin: 0 0 .7rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45rem; }
.foot .brand { margin-bottom: 1rem; }
.disclose { border-top: 1px solid #3c4549; margin-top: 2rem; padding-top: 1.25rem; font-size: .92rem; color: #c9cfca; max-width: 90ch; }
