/* палитра «петроль» — из build/config.py */
:root { --primary: #0f4d4a; --primary-dark: #0a3633; --primary-tint: #e2eeec; --primary-soft: #c3dad6; --accent: #f2a630; --accent-dark: #e08f12; --accent-ink: #9a5f00; --bg: #fffdf9; --soft: #f5f0e7; --field: #faf7f1; --ink: #172523; --muted: #5c6866; --line: #e6dfd2; --line-strong: #b3aa99; --footer: #0b2f2d; --primary-rgb: 15, 77, 74; --primary-dark-rgb: 10, 54, 51; --accent-rgb: 242, 166, 48; --ink-rgb: 23, 37, 35; }
/* ГазРемонт. Светлая тема в цветах палитры из config.py (сейчас — петроль и янтарь), шрифт Golos Text,
   значки Phosphor duotone. Заказчик просил, чтобы сайт ничем не напоминал kotel-pro.ru. */
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Цвета задаёт PALETTE в build/config.py: сборка дописывает блок :root в начало этого файла. */
:root { --ok: #15803d; --err: #c0362c; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Golos Text", system-ui, -apple-system, "Segoe UI",
  Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.14; letter-spacing: -.015em; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; --duo: var(--accent); --duo-o: .85; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--primary); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .icon { width: 18px; height: 18px; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo-mark { width: 52px; height: 52px; flex: none; --lg-gap: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand-text i { font-style: normal; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--primary); background: var(--soft); }
.nav .nav-cta { display: none; }
.head-call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.phone { font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--primary); }
.head-call span { font-size: 12.5px; color: var(--muted); }
.head-cta { min-height: 46px; padding: 0 20px; font-size: 15px; flex: none; }
.head-tel, .menu-toggle { display: none; }

/* ---------- первый экран ---------- */
.hero { padding: 44px 0 72px; background: linear-gradient(180deg, var(--soft), #fff 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs i { font-style: normal; color: var(--line-strong); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); }
.hero h1 span { display: block; color: var(--primary); }
.hero-lead { margin-top: 18px; max-width: 580px; color: var(--muted); font-size: 17px; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; line-height: 1.4; }
.ticks .icon { width: 24px; height: 24px; color: var(--primary); margin-top: -1px; }
.quick-form { margin-top: 28px; max-width: 580px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 50px -30px rgba(var(--primary-dark-rgb), .45); }
.qf-row { display: flex; align-items: flex-end; gap: 10px; }
.qf-phone { flex: 1; }
.quick-form .btn { min-height: 52px; }
.quick-form .check { margin-top: 10px; }
.quick-form.sent .qf-row, .quick-form.sent .check { display: none; }
.hero-media { position: relative; }
.hero-media > img { width: 100%; height: auto; aspect-ratio: 1 / .9; object-fit: cover; object-position: 62% 50%; border-radius: 26px; }
.media-note { position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(var(--ink-rgb), .45); }
.media-note .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); }
.media-note span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.3; }
.media-note b { color: var(--ink); font-size: 16px; }
.media-price { position: absolute; top: 28px; right: -18px; display: flex; flex-direction: column; padding: 12px 20px; background: var(--accent);
  border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(var(--ink-rgb), .45); line-height: 1.2; }
.media-price span { font-size: 14px; font-weight: 600; }
.media-price b { font-size: 26px; font-weight: 800; }

/* поля форм */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field i { color: var(--err); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--field); font-size: 16px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6778' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14); }
.field.invalid input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(192, 54, 44, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check a { color: var(--primary); }
.check.invalid span { color: var(--err); }
.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { margin-top: 10px; padding: 12px 14px; border-radius: 10px; color: var(--ok); background: #ecfdf3; border: 1px solid #b7ebc9; }
.form-status.err { margin-top: 10px; padding: 12px 14px; border-radius: 10px; color: var(--err); background: #fef3f2; border: 1px solid #f5c2bd; }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .6); } }

/* ---------- полоса марок ---------- */
.brand-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.brand-strip .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand-strip p { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.brand-strip ul { display: flex; flex: 1; gap: 30px; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent); }
.brand-strip li { color: var(--ink); opacity: .55; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand-strip a { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; }
.brand-strip a .icon { width: 16px; height: 16px; }
.brand-strip a:hover { text-decoration: underline; }

/* ---------- полоса фактов ---------- */
.facts { background: var(--primary); color: #fff; }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 26px 24px; border-left: 1px solid rgba(255, 255, 255, .2); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; color: var(--accent); font-size: 30px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.facts span { display: block; margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .86); line-height: 1.4; }

/* ---------- разделы ---------- */
.section { padding: 88px 0; }
.soft { background: var(--soft); }
.sec-head { max-width: 780px; margin-bottom: 38px; }
.sec-head h2, .section h2 { font-size: clamp(28px, 3.3vw, 42px); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* услуги */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.svc { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.svc-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.svc h3 { font-size: 22px; }
.svc-body > p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.svc ul { margin: 14px 0 20px; }
.svc li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 15.5px; line-height: 1.35; }
.svc li b { color: var(--primary); white-space: nowrap; }
.svc .btn { align-self: flex-start; }
.note { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; padding: 16px 20px; background: rgba(var(--accent-rgb), .13); border: 1px solid rgba(var(--accent-rgb), .5);
  border-radius: 14px; font-size: 15.5px; }
.note .icon { color: var(--accent-ink); margin-top: 2px; }

/* неисправности */
.tr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tr-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.tr-list a:hover { border-color: var(--primary); transform: translateY(-2px); }
.tr-ic { width: 52px; height: 52px; display: grid; place-items: center; color: var(--primary); }
.tr-ic .icon { width: 44px; height: 44px; }
.tr-text b { display: block; font-size: 17px; }
.tr-text span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tr-price { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 15px; white-space: nowrap; }
.tr-price .icon { width: 16px; height: 16px; transition: transform .15s; }
.tr-list a:hover .tr-price .icon { transform: translateX(3px); }

/* ошибки */
.err-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.boiler { position: relative; width: 270px; margin: 0 auto; }
.boiler-body { position: relative; width: 250px; height: 340px; margin: 0 auto; border-radius: 22px; background: linear-gradient(160deg, #ffffff, var(--soft));
  border: 1px solid var(--line); box-shadow: 0 30px 50px -28px rgba(var(--ink-rgb), .55); }
.boiler-logo { position: absolute; top: 30px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); }
.lcd { position: absolute; left: 50%; top: 96px; width: 150px; height: 80px; margin-left: -75px; display: grid; place-items: center; border-radius: 10px;
  background: #1c2733; box-shadow: inset 0 0 0 4px #c9d3df, inset 0 4px 14px rgba(0, 0, 0, .6); }
.lcd span { display: block; font: 700 42px/1 "Courier New", Consolas, monospace; letter-spacing: 3px; color: #ffbf47;
  text-shadow: 0 0 8px rgba(255, 191, 71, .5); animation: glow 2.8s ease-in-out infinite;
  transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.lcd span.out { opacity: 0; transform: translateY(5px) scale(.96); filter: blur(2px); }
.lcd i { position: absolute; right: 12px; bottom: 7px; font: 700 11px/1 Consolas, monospace; font-style: normal; color: rgba(255, 191, 71, .7); }
@keyframes glow { 50% { text-shadow: 0 0 16px rgba(255, 191, 71, .95), 0 0 2px rgba(255, 220, 150, .8); } }
.knobs { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; justify-content: center; gap: 20px; }
.knobs i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #c6d0dc);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1), 0 3px 5px rgba(0, 0, 0, .18); }
.knobs i:nth-child(2) { background: radial-gradient(circle at 40% 35%, #fff, var(--accent)); }
.boiler-pipes { display: flex; justify-content: center; gap: 24px; }
.boiler-pipes i { width: 12px; height: 64px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #a9b2bd, #f1f4f7, #8f99a5); }
.boiler-pipes i:nth-child(2) { height: 52px; }
.boiler-pipes i:nth-child(3) { height: 74px; background: linear-gradient(90deg, #c08a45, #f5d39e, #a8732f); }
.err-table { width: 100%; border-collapse: collapse; }
.err-table th, .err-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.err-table thead th { padding-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.err-table tbody th { font-size: 17px; white-space: nowrap; }
.err-table code { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 8px; border-radius: 6px; background: var(--primary-tint); color: var(--primary-dark);
  font: 700 13.5px/1.4 Consolas, "Courier New", monospace; }
.err-table td:last-child { text-align: right; }
.err-table a { color: var(--primary); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.err-table a:hover { text-decoration: underline; }

/* марки */
.brand-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.brand-wall a { display: flex; flex-direction: column; justify-content: center; min-height: 78px; height: 100%; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, color .15s; }
.brand-wall b { font-size: 16.5px; }
.brand-wall span { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.brand-wall a:hover { border-color: var(--primary); }
.brand-wall a:hover b { color: var(--primary); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top .icon { width: 44px; height: 44px; color: var(--primary); }
.steps .num { color: var(--line-strong); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.steps b { display: block; margin-top: 18px; font-size: 20px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.steps li:last-child { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li:last-child .num { color: rgba(255, 255, 255, .6); }
.steps li:last-child .step-top .icon { color: #fff; }
.steps li:last-child p { color: rgba(255, 255, 255, .85); }

/* полоса «дома холодно»: текст и фото рядом */
.cta { padding: 72px 0; color: #fff; background: var(--primary); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.cta h2 { max-width: 620px; color: #fff; font-size: clamp(28px, 3.4vw, 44px); }
.cta p { max-width: 560px; margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .86); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.cta-phone { font-size: 32px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.cta-phone:hover { color: var(--accent); }
.cta-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 35%; border-radius: 24px; }

/* отзывы: вёрстку собирают build/reviews.py и server/otzyvy/lib.php. Оценка подана как в Яндекс Картах —
   крупная цифра, звёзды с дробной заливкой и число отзывов. Звезда — Phosphor star (MIT). */
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: 38px; }
.rv-head .sec-head { margin-bottom: 0; }
.rv-badge { display: inline-flex; align-items: center; gap: 14px; flex: none; padding: 14px 22px 14px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s; }
a.rv-badge:hover { border-color: var(--primary); }
.rv-score { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rv-meta { display: flex; flex-direction: column; gap: 6px; }
.rv-count { color: var(--muted); font-size: 14.5px; line-height: 1.2; }
a.rv-badge .rv-count { color: var(--primary); font-weight: 700; }
.stars { --v: 100%; display: block; width: 120px; height: 24px; flex: none;
  background: linear-gradient(90deg, var(--accent) var(--v), rgba(var(--ink-rgb), .14) var(--v));
  -webkit-mask: var(--star) 0 0 / 24px 24px repeat-x; mask: var(--star) 0 0 / 24px 24px repeat-x;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z'/%3E%3C/svg%3E"); }
.stars-sm { width: 85px; height: 17px; -webkit-mask-size: 17px 17px; mask-size: 17px 17px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.rv-top { display: flex; align-items: center; gap: 13px; }
.rv-ava { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; font-size: 19px; font-weight: 800; }
.rv-t0 { background: var(--primary-tint); color: var(--primary); }
.rv-t1 { background: rgba(var(--accent-rgb), .25); color: var(--accent-ink); }
.rv-t2 { background: var(--primary); color: #fff; }
.rv-t3 { background: var(--soft); color: var(--ink); }
.rv-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rv-id b { font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.rv-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv-date { color: var(--muted); font-size: 13.5px; line-height: 1.2; }
.rv-text { flex: 1; margin-top: 16px; font-size: 16px; overflow-wrap: anywhere; }
.rv-text p + p { margin-top: 10px; }
.rv-all { margin-top: 30px; text-align: center; }
.rv-empty { color: var(--muted); font-size: 17px; }
.page-head .rv-head { margin-bottom: 0; }
.rv-page { padding-top: 48px; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side p { margin: 14px 0 20px; color: var(--muted); font-size: 17px; }
.faq-phone { display: block; color: var(--primary); font-size: 28px; font-weight: 800; text-decoration: none; }
.faq-hours { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font-size: 17.5px; font-weight: 700;
  cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.plus { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--primary-tint); }
.plus::before, .plus::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 2px; border-radius: 2px; background: var(--primary);
  transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { background: var(--accent); }
.faq-item[open] .plus::before, .faq-item[open] .plus::after { background: var(--ink); }
.faq-item[open] .plus::after { transform: rotate(0); }
.faq-item p { padding: 0 48px 22px 0; color: var(--muted); }

/* зона выезда */
.zone-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.zone-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-block; padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  text-decoration: none; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.map { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.map-in { position: relative; }
.map-in > img { width: 100%; height: auto; }
.map figcaption { margin-top: 6px; font-size: 11.5px; color: var(--muted); text-align: right; }
.map figcaption a { color: inherit; }
.map-radius, .map-dot, .map-pin { position: absolute; }
.map-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.map-radius { border-radius: 50%; background: rgba(var(--primary-rgb), .08); border: 2px dashed rgba(var(--primary-rgb), .55); }
.map-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent-dark); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.map-pin { transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; }
.map-pin b { position: relative; display: block; padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12.5px; white-space: nowrap; }
.map-pin b::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--primary); }
.zone-search { display: flex; align-items: center; gap: 10px; margin-top: 20px; max-width: 520px; padding: 5px 5px 5px 16px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; }
.zone-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.zone-search .icon { color: var(--muted); }
.zone-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: 16px; outline: none; }
.zone-search .btn { min-height: 44px; }
.zone-empty { margin-top: 16px; color: var(--muted); }
.inline-phone { color: var(--primary); font-weight: 700; white-space: nowrap; }
.zone-list { padding-top: 40px; }
.zone-list .container { columns: 4 240px; column-gap: 32px; }
.zone-group { break-inside: avoid; margin-bottom: 26px; }
.zone-group h2 { margin-bottom: 8px; color: var(--primary); font-size: 24px !important; }
.zone-group li { padding: 3px 0; }
.zone-group a { text-decoration: none; }
.zone-group a:hover { color: var(--primary); text-decoration: underline; }
.zone-group a.admin { color: var(--muted); }

/* заявка и контакты */
.order { padding: 88px 0; color: #fff; background: radial-gradient(700px 420px at 0% 100%, rgba(var(--accent-rgb), .16), transparent 60%),
  linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.order h2 { font-size: clamp(28px, 3.3vw, 42px); }
.order-info > p { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .88); }
.clist { margin-top: 26px; }
.clist li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.clist .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.clist span { display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.clist b, .clist a { color: #fff; font-weight: 600; font-size: 16.5px; text-decoration: none; }
.c-phone { font-size: 24px !important; font-weight: 800 !important; }
.clist a:hover { color: var(--accent); }
.order-form { display: grid; gap: 14px; padding: 28px; color: var(--ink); background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.form-title { font-size: 23px; font-weight: 800; }
.order-form.sent .field, .order-form.sent .field-row, .order-form.sent .check, .order-form.sent button[type=submit] { display: none; }

/* служебные страницы */
.page-head { padding: 44px 0 36px; background: linear-gradient(180deg, var(--soft), #fff); }
.page-head h1 { font-size: clamp(30px, 4vw, 48px); }
.page-head .lead { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: 17px; }
.page-head .chips { margin-top: 26px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prose { max-width: 820px; }
.prose h2 { margin: 32px 0 12px; font-size: 21px !important; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; color: var(--ink); }

/* ---------- подвал ---------- */
.footer { padding: 56px 0 26px; background: var(--footer); color: rgba(255, 255, 255, .76); font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.6fr); gap: 40px; }
.footer .brand-text b { color: #fff; }
.footer .logo-mark { --lg-gap: var(--footer); --lg-flame: #ffffff; --lg-side: #7cc4b8; --lg-gear: rgba(255, 255, 255, .88);
  --lg-bar1: rgba(255, 255, 255, .3); --lg-bar2: rgba(255, 255, 255, .58); --lg-bar3: rgba(255, 255, 255, .88); }
.footer .brand-text i { color: rgba(255, 255, 255, .6); }
.footer-brand p { margin-top: 18px; line-height: 1.8; }
.f-phone { color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-places > p { margin-bottom: 10px; color: #fff; font-weight: 700; }
.footer-places div { columns: 3 140px; column-gap: 20px; }
.footer-places div a { display: block; padding: 3px 0; }
.footer .more { color: var(--accent); margin-top: 12px; }
.footer-legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.8; }

/* круглая кнопка звонка в углу экрана — как просил заказчик (образец: remont-konditcionera.ru) */
.call-fab { position: fixed; right: 24px; bottom: 24px; z-index: 55; display: grid; place-items: center; width: 62px; height: 62px;
  border: 3px solid #fff; border-radius: 50%; background: var(--primary); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(var(--primary-rgb), .7);
  transition: transform .2s ease, background-color .2s ease; }
.call-fab .icon { width: 30px; height: 30px; animation: ring 4s ease-in-out infinite; }
.call-fab::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--primary);
  animation: pulse 2.4s ease-out infinite; }
.call-fab:hover { transform: scale(1.06); background: var(--primary-dark); }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.65); opacity: 0; } }
@keyframes ring { 0%, 76%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 84% { transform: rotate(12deg); }
  88% { transform: rotate(-10deg); } 92% { transform: rotate(6deg); } }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 16px;
  align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(var(--ink-rgb), .4); }
.cookie[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1260px) {
  .head-cta { display: none; }
  .brand-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .head-in { gap: 12px; min-height: 68px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    cursor: pointer; flex: none; }
  .menu-toggle .icon { width: 22px; height: 22px; }
  .menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .head-call { margin-left: auto; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 24px 32px; flex-direction: column; gap: 0; background: #fff;
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-cta { display: flex; justify-content: center; margin-top: 20px; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .hero-grid, .err-grid, .faq-grid, .zone-grid, .order-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-photo { max-width: 520px; }
  .cta-photo img { aspect-ratio: 16 / 11; }
  .brand-strip p { display: none; }
  .hero-media { max-width: 560px; }
  .hero-media > img { aspect-ratio: 16 / 11; }
  .media-note { left: 14px; }
  .media-price { right: 14px; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .2); }
  .svc-grid, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-side { position: static; }
  .zone-grid > .map { order: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-places { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .head-call { display: none; }
  .head-tel { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; background: var(--primary); color: #fff; flex: none; }
  .call-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .tr-list { grid-template-columns: 1fr; }
  .cookie { bottom: 90px; flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand-text b { font-size: 19px; }
  .brand-text i { display: none; }
  .logo-mark { width: 44px; height: 44px; }
  .hero { padding: 26px 0 48px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-lead { font-size: 16px; }
  .qf-row { flex-direction: column; align-items: stretch; }
  .quick-form { padding: 16px; }
  .media-price { top: 14px; padding: 10px 14px; }
  .media-price b { font-size: 21px; }
  .media-note { bottom: 14px; padding: 10px 14px 10px 10px; }
  .facts li { padding: 18px 12px; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts b { font-size: 22px; }
  .facts span { font-size: 13px; }
  .section, .order { padding: 60px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head p { font-size: 16px; }
  .svc-grid, .reviews, .steps { grid-template-columns: 1fr; }
  .svc-body { padding: 18px; }
  .tr-list a { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .tr-ic { width: 44px; height: 44px; }
  .tr-price { grid-column: 2; }
  .err-table thead { display: none; }
  .err-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .err-table th, .err-table td { border: 0; padding: 2px 0; }
  .err-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .err-table td:last-child { grid-row: 1; grid-column: 2; }
  .boiler { transform: scale(.85); margin: -24px auto; }
  .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 56px 0; }
  .brand-strip .container { min-height: 60px; gap: 16px; }
  .brand-strip li { font-size: 17px; }
  .brand-strip ul { gap: 20px; }
  .brand-strip a { display: none; }
  .cta-phone { font-size: 28px; }
  .cta-actions .btn { width: 100%; }
  .faq-item p { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .order-form { padding: 20px 18px; }
  .c-phone { font-size: 21px !important; }
  .zone-search .btn { padding: 0 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-places div { columns: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
