/* Супер-СТО: оформление сайта. Телефон — по умолчанию, одна колонка — до 1023 px, компьютер — от 1024 px. */
/* Шрифт Roboto — с этого сайта, лицензия SIL Open Font License 1.1 (https://openfontlicense.org). Переменный по насыщенности 400–800.
   Наборы знаков: кириллица и латиница нужны первому экрану (их файлы загружаются заранее), ₽ — из latin-ext, стрелки → ← — из symbols:
   браузер скачивает набор, только когда на странице есть такой знак. У symbols оставлены только стрелки, чтобы смайлики не стали чёрно-белыми. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("/data/fonts/roboto-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("/data/fonts/roboto-latin.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; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("/data/fonts/roboto-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("/data/fonts/roboto-symbols.woff2") format("woff2"); unicode-range: U+2190-2199; }
:root {
	--brand: #d65700;
	--brand-ink: #b34800;
	--ink: #1f1f1f;
	--muted: #66615b;
	--line: #e7e2dc;
	--bg: #ffffff;
	--card: #ffffff;
	--soft: #f6f3ef;
	--form: #fff7b8;
	--head: #ffffff;
	--head-ink: #1f1f1f;
	--band: #f6f3ef;
	--band-ink: #1f1f1f;
	--bar: #ffffff;
	--bar-ink: #1f1f1f;
	--foot: #2b2b2b;
	--foot-ink: #f2f2f2;
	--ok: #2e7d32;
	--err: #c62828;
	--r: 12px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
	--font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
body.has-bar { padding-bottom: 64px; }
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--brand-ink); text-decoration: none; }
/* подчёркивание только при наведении; :where() — нулевой вес, поэтому кнопки и плашки с text-decoration: none не подчёркиваются */
@media (hover: hover) { a:where(:hover) { text-decoration: underline; text-underline-offset: 2px; } }
button { cursor: pointer; }
img { max-width: 100%; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---- кнопки ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
	border: 2px solid var(--brand); border-radius: var(--r); background: transparent; color: var(--brand-ink);
	font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
}
.btn .i { width: 18px; height: 18px; }
.btn-main { background: var(--brand); color: #fff; }
.btn-alt { background: var(--card); }
.btn, .requestFormBtm, .nav a, .all-link a, .tags li a, .tags .show_all button { transition: background-color .15s, border-color .15s, color .15s; }
/* кнопки с оранжевой рамкой и ячейки нумерации при наведении заливаются оранжевым */
@media (hover: hover) {
	.btn:hover, .nav li:not(.active) a:hover, .nav a.next:hover, .nav a.prev:hover, .all-link a:hover { background: var(--brand); color: #fff; }
	.tags li a:hover, .tags .show_all button:hover { background: #fdeee3; }
	.btn-main:hover, .requestFormBtm:hover { border-color: var(--brand-ink); background: var(--brand-ink); }
}

/* ---- шапка ---- */
.logo {
	display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "logo call menu" "line line line" "nav nav nav";
	align-items: center; gap: 0 8px; background: var(--head); color: var(--head-ink); border-bottom: 1px solid var(--line);
}
#logoTxt { grid-area: logo; padding: 10px 0 10px 12px; }
/* логотип уменьшается вместе с колонкой, сохраняя пропорции: на узком телефоне рядом кнопки звонка и меню */
#logoTxt img { display: block; width: auto; height: auto; max-height: 34px; }
.h-line {
	position: relative; grid-area: line; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
	padding: 8px 12px; background: var(--band); color: var(--band-ink); font-size: 15px; line-height: 1.3;
}
@media (max-width: 370px) { .h-line { gap: 4px 8px; font-size: 14px; } }
.h-addr { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.h-addr .i { width: 16px; height: 16px; color: var(--brand); }
.h-open::before, .hours-now::before {
	content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; border-radius: 50%; background: #9a9a9a;
}
.h-open.is-open::before, .hours-now.is-open::before { background: #2e9e4f; }
/* кнопка графика: отступы для пальца без сдвига строки; что нажимается — пунктир под текстом (стрелка не помещается в строку на 360–390 px) */
.h-open {
	margin: -8px 0; padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; white-space: nowrap;
	text-decoration: underline dotted rgba(0, 0, 0, .45); text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.hours-pop {
	position: absolute; top: 100%; right: 8px; z-index: 950; width: min(300px, calc(100vw - 16px)); margin-top: 2px; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
	font-size: 15px; line-height: 1.4;
}
.hours-t { margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; font-size: 17px; }
.hours-note { margin-top: 2px; color: var(--muted); }
.hours-now { margin-top: 10px; font-weight: 600; }
.hours-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.h-call {
	grid-area: call; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 15px;
	background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
}
.h-full { display: none; }
.m-btn {
	grid-area: menu; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; height: 48px;
	margin-right: 6px; border: 0; background: none; color: inherit; font: 500 12px/1 var(--font);
}
.m-btn .i { width: 26px; height: 26px; }
.m-nav { grid-area: nav; display: none; padding: 4px 0 12px; border-top: 1px solid var(--line); background: var(--head); }
.menu-open .m-nav { display: block; }
.m-main, .m-pop-list { list-style: none; margin: 0; padding: 0; }
.m-main a, .m-pop-list a {
	display: flex; align-items: center; min-height: 48px; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: 17px;
	border-bottom: 1px solid var(--line);
}
.m-main a { font-weight: 600; }
.m-main a::after, .m-pop-list a::after { content: "›"; margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 22px; }
.m-pop-title { padding: 16px 16px 4px; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.m-pop-list a { font-size: 16px; }

/* ---- раскладка: на телефоне и планшете одна колонка, правая колонка — только на компьютере ---- */
.page-main { min-width: 0; padding: 0 16px; }
.page-side { display: none; }
.breadcrumbs { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a { color: var(--muted); padding-right: 4px; }
.breadcrumbs a:not(.home), .breadcrumbs span { padding-left: 4px; }
.info h1 { margin: 10px 0; color: var(--ink); font: 700 24px/1.25 var(--font); }

/* ---- текст статьи ---- */
.dataMain { overflow-wrap: break-word; }
.dataMain p, .dataMain li { font-size: 16px; line-height: 1.6; }
.dataMain h2 { margin: 28px 0 10px; font: 700 20px/1.3 var(--font); color: var(--ink); }
.dataMain h2 a { color: inherit; }
/* h2.part — заголовок большого раздела текста: больше h2, меньше заголовка страницы; h3 — подзаголовок */
.dataMain h2.part { margin: 32px 0 12px; font-size: 22px; }
.dataMain h3 { margin: 22px 0 8px; font: 700 17px/1.35 var(--font); color: var(--ink); }
.dataMain h3 a { color: inherit; }
.dataMain ul { padding-left: 22px; }
.dataMain img { height: auto !important; border-radius: calc(var(--r) / 2); vertical-align: top; margin: 0 4px 6px 0; }
/* группа фото в тексте: на телефоне и планшете — лента, листается пальцем; на компьютере — сетка по 3 в ряд */
.dataMain p.photo-group {
	display: flex; align-items: flex-start; gap: 8px; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.dataMain p.photo-group::-webkit-scrollbar { display: none; }
.dataMain p.photo-group > a, .dataMain p.photo-group > img { flex: 0 0 min(78%, 360px); scroll-snap-align: start; }
.dataMain p.photo-group > a > img, .dataMain p.photo-group > img {
	display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; margin: 0;
}
.dataMain p.photo-group > img { width: min(78%, 360px) !important; }
.dataMain iframe { max-width: 100%; border: 0; }
.dataMain iframe[src*="video_ext"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.dataMain iframe.video { display: block; width: 100%; height: auto; border-radius: calc(var(--r) / 2); background: #111; }
.table-wrap { max-width: 100%; margin: 12px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* таблицы в тексте: на телефоне — по ширине колонки, на компьютере — ширина автора, но не шире колонки; широкая листается внутри .table-wrap */
.dataMain table { max-width: 100%; height: auto !important; margin: 12px 0 18px; border: 0; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
@media (max-width: 1023px) { .dataMain table { width: 100% !important; } }
.table-wrap > table { margin: 0; }
.dataMain td, .dataMain th { padding: 8px 10px; border: 1px solid var(--line); vertical-align: middle; }
.dataMain th { background: var(--soft); font-weight: 600; }
.dataMain td p, .dataMain th p, .dataMain td li { margin: 0; font-size: inherit; line-height: inherit; }
.dataMain td p + p, .dataMain th p + p { margin-top: 6px; }
.dataMain td img { margin: 0; }

/* ---- жёлтая форма заявки ---- */
.requestFormMain { margin: 16px 0; padding: 12px 14px; border-radius: var(--r); background: var(--form); }
.requestFormTitle { margin: 0 0 8px; font: 700 18px/1.3 var(--font); color: var(--ink); }
/* без заголовка поле не прижимается к верху: отступ сверху — как по бокам */
.requestFormMain:not(:has(.requestFormTitle)) { padding-top: 14px; }
.requestForm { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
.requestForm .input_cell_phone {
	width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid #c9c2b6; border-radius: calc(var(--r) / 1.5);
	background: #fff; color: var(--ink); font: 18px/1.2 var(--font);
}
.requestFormBtm {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 10px 18px;
	border: 0; border-radius: calc(var(--r) / 1.5); background: var(--brand); color: #fff; font: 700 16px/1.2 var(--font); text-align: center;
}
.requestFormBtm .i { width: 18px; height: 18px; }
.requestFormBtm:disabled { opacity: .7; cursor: progress; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form-err { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; color: var(--err); font-size: 14px; font-weight: 600; line-height: 18px; }
/* значок «!» в красном круге перед текстом ошибки */
.form-err::before {
	content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
	background: var(--err) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10.6 5h2.8l-.5 9h-1.8zM10.5 16h3v3h-3z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* кнопка под ошибкой устаревшей страницы */
.form-reload { grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 8px 16px; background: #fff; font-size: 15px; }
.err-phone .input_cell_phone { border-color: var(--err); box-shadow: 0 0 0 2px rgba(198, 40, 40, .15); }
/* поле с ошибкой получает фокус: рамка фокуса тоже красная, иначе она закрывает подсветку */
.err-phone .input_cell_phone:focus { outline: 2px solid var(--err); outline-offset: 0; }
.form-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.form-ok::before {
	content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---- блок в конце статьи ---- */
.endb { margin: 28px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.dataMain .endb h2.endb-title { margin: 0 0 12px; font-size: 22px; }
.endb .requestFormMain { margin: 0 0 12px; }
.endb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.endb-btns .btn { flex: 1 1 100%; }
.endb-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---- теги ---- */
.tags { margin: 20px 0; }
.tags ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dataMain .tags li { font-size: 14px; line-height: 1.5; }
.tags li a::first-letter, .t-list .info h1::first-letter { text-transform: uppercase; }
.tags li.clr { width: 100%; font-weight: 700; }
.tags li a { display: inline-block; padding: 6px 14px; border-radius: 16px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; }
.tags .show_all button {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 0; border-radius: 16px; background: var(--soft);
	color: var(--muted); font: 14px/1.5 var(--font);
}
.tags .show_all b { color: var(--ink); font-weight: 600; }

/* ---- главная ---- */
.hero-why { margin: 10px 0 14px; padding: 0; list-style: none; }
.hero-why li { position: relative; margin: 0 0 4px; padding-left: 28px; font-size: 16px; line-height: 1.4; }
/* срок запчастей: на телефоне и планшете — короче, в одну строку */
.hero-why .why-wide { display: none; }
.hero-why li::before {
	content: ""; position: absolute; left: 2px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero-form { display: none; }
.hero-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hero-btns .btn { gap: 6px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.hero-btns .btn-main { grid-column: 1 / -1; }
/* на 320 px «Перезвоните мне» и «Написать» в одну строку не помещаются — друг под другом */
@media (max-width: 359px) { .hero-btns { grid-template-columns: 1fr; } }
h2.sec { margin: 28px 0 12px; font: 700 22px/1.25 var(--font); color: var(--ink); }
.free h2.sec { margin-top: 24px; }
.free-item {
	position: relative; display: block; margin: 0 0 10px; padding: 14px 16px 14px 76px; border-radius: var(--r); background: var(--card);
	box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.free-item::before {
	content: "0 ₽"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
	background: var(--brand); color: #fff; font: 800 15px/50px var(--font); text-align: center;
}
.free-item b { display: block; font-size: 17px; }
.free-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }
/* наведение: блок оранжевый, текст и круг «0 ₽» — белые */
.free-item, .free-item::before, .free-item span { transition: background-color .15s, border-color .15s, color .15s; }
@media (hover: hover) {
	.free-item:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
	.free-item:hover::before { background: #fff; color: var(--brand-ink); }
	.free-item:hover span { color: #fff; }
}

/* ---- списки материалов ---- */
.dataBlock ul { margin: 0; padding: 0; list-style: none; }
.dataBlock li h2 { margin: 0; font: 600 17px/1.3 var(--font); }
.dataBlock li h2 a { color: var(--ink); }
.dataBlock .dataPreview { color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.45; }
.dataBlock .readMore { font-size: 15px; }

/* «Популярные услуги»: на телефоне — строки с картинкой, на компьютере — плитки */
.pop-list > li {
	display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; padding: 8px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
}
.pop-list > li > a:first-child img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: calc(var(--r) / 1.5); }
.pop-list .dataPreview, .pop-list .readMore { display: none; }

/* «Наши работы», лента и теги: картинка слева, справа заголовок, превью и «все подробности» */
.fresh-list > li, .t-list .dataBlock ul > li { display: grid; grid-template-columns: 112px 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.fresh-list > li > a:first-child, .t-list .dataBlock ul > li > a:first-child { grid-row: span 3; }
.fresh-list > li > a:first-child img, .t-list .dataBlock ul > li > a:first-child img { display: block; width: 112px; height: 84px; object-fit: cover; border-radius: calc(var(--r) / 1.5); }
.fresh-list h2, .t-list .dataBlock ul > li h2 { font-size: 16px; }
.fresh-list .dataPreview, .t-list .dataBlock .dataPreview {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; align-self: start; max-height: calc(1.45em * 3);
}
.fresh-list .readMore a, .t-list .dataBlock .readMore a { color: var(--brand-ink); }
.fresh-list > li:not(:has(img)), .t-list .dataBlock ul > li:not(:has(img)) { grid-template-columns: 1fr; }
.fresh-list > li:not(:has(img)) .dataPreview, .t-list .dataBlock ul > li:not(:has(img)) .dataPreview { color: var(--ink); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; }
.nav ol { display: contents; }
.nav li { display: block; list-style: none; margin: 0; padding: 0; }
.nav li a, .nav a.next, .nav a.prev {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px;
	background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav li.active a { background: var(--brand); color: #fff; }
/* телефон: до 7 страниц — все, без стрелок; больше — в одну строку: первая, последняя и три страницы вокруг
   текущей (у края списка — три от края), пропуски — «…»; на экране уже 360 px без стрелок */
@media (max-width: 640px) {
	.nav { align-items: center; }
	.nav li a, .nav a.next, .nav a.prev { min-width: 38px; height: 44px; padding: 0 4px; }
	.nav:not(:has(li:nth-child(8))) :is(.prev, .next) { display: none; }
	.nav:has(li:nth-child(8)) { flex-wrap: nowrap; }
	.nav:has(li:nth-child(8)) li { display: none; }
	.nav:has(li:nth-child(8)) li:is(:first-child, .active, :has(+ .active), .active + li, :last-child),
	.nav:has(li:nth-child(8)) li:is(:first-child, :nth-child(2)).active ~ li:nth-child(-n+4),
	.nav:has(li:nth-child(8)) li:nth-last-child(-n+4):has(~ li:is(:last-child, :nth-last-child(2)).active) { display: flex; align-items: center; gap: 4px; }
	.nav:has(li:nth-child(8)) li:first-child:not(.active, :has(+ .active, + li + .active))::after,
	.nav:has(li:nth-child(8)) li:last-child:not(.active, .active + li, .active + li + li)::before { content: "…"; color: var(--muted); font-weight: 600; }
}
@media (max-width: 359px) {
	.nav { gap: 3px; }
	.nav:has(li:nth-child(8)) :is(.prev, .next) { display: none; }
}
.all-link a {
	display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--brand); border-radius: var(--r);
	font-weight: 700; text-decoration: none;
}

/* ---- описание тега ---- */
.tag-desc { margin: 0 0 14px; color: var(--ink); font-size: 15px; line-height: 1.45; }

/* ---- лента «Отзывы клиентов»: на телефоне листается пальцем, на компьютере — 3 карточки (на главной 4) ----
   карточка ленты не шире карточки компьютера, иначе на планшете фото растягивается почти на весь экран */
.revs { margin: 28px 0 8px; }
.revs h2.sec { margin: 0 0 12px; }
.revs-list {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(76%, 280px); gap: 12px; margin: 0 -16px; padding: 2px 16px 8px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.revs-list::-webkit-scrollbar { display: none; }
.rev {
	display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
	background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
@media (hover: hover) { .rev:hover .rev-t { text-decoration: underline; text-underline-offset: 2px; } }
.rev img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rev-t { padding: 10px 12px 4px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.rev-p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 12px 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.revs-all { margin: 10px 0 0; font-size: 16px; }
.revs-all a { font-weight: 600; }

/* ---- «Нам доверяют»: нажимается весь блок вместе со значком рейтинга ---- */
.trust { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.trust-t { color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; }
.trust-t::after { content: ""; position: absolute; inset: 0; }
/* значок-фрейм Яндекса, выключен: .trust .ya-badge { display: block; width: 150px; height: 50px; border: 0; pointer-events: none; } */

/* ---- значок «Рейтинг на Яндекс Картах» ---- */
.ya-rating {
	box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; width: 150px; height: 50px; padding: 0 10px;
	border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #222; font: 12px/1.2 var(--font); vertical-align: middle;
}
.ya-rating b { font-size: 24px; font-weight: 700; }
.ya-rating-s { display: block; color: #f5b400; font-size: 14px; letter-spacing: 1px; }
.ya-rating-n { display: block; color: #777; font-size: 11px; }
.trust-row { margin: 0 0 12px; }
.dataMain .trust-top { margin: -4px 0 6px; }

/* ---- карточки правой колонки: «Ещё на эту тему» и «Обратите внимание» ---- */
#content_more, #more_topic { margin: 0 0 20px; padding: 14px 14px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
#content_more .maintitle, #more_topic .maintitle { margin: 0 0 4px; font: 700 18px/1.3 var(--font); color: var(--ink); }
#content_more a, #more_topic a {
	display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; margin: 0 -8px; padding: 8px; border-radius: 8px;
	position: relative; color: var(--ink); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background-color .15s;
}
#content_more a:not(:has(img)), #more_topic a:not(:has(img)) { grid-template-columns: 1fr; }
/* линия между пунктами — отдельная прямая полоса по ширине содержимого: у пункта скруглённые углы для подсветки */
#content_more a + a, #more_topic a + a { margin-top: 1px; }
#content_more a + a::before, #more_topic a + a::before { content: ""; position: absolute; left: 8px; right: 8px; top: -1px; height: 1px; background: var(--line); }
@media (hover: hover) {
	#content_more a:hover, #more_topic a:hover { background: #fdeee3; }
	#content_more a:hover::before, #more_topic a:hover::before, #content_more a:hover + a::before, #more_topic a:hover + a::before { display: none; }
}
#content_more img, #more_topic img { width: 72px; height: 54px; margin-top: 5px; object-fit: cover; border-radius: 6px; }
#content_more .title, #more_topic .title {
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-height: calc(1.35em * 4);
}
.side-cta { display: none; }

/* ---- 404 ---- */
.e404 p { margin: 0 0 16px; font-size: 17px; }
.e404-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- подвал ---- */
#footer { margin-top: 32px; padding: 24px 16px 16px; background: var(--foot); color: var(--foot-ink); font-size: 15px; }
#footer a { color: #ffd2a8; }
#footer .f-route a { color: #fff; }
.f-title { margin: 0 0 8px; font-weight: 700; font-size: 18px; }
.f-route { display: flex; flex-wrap: wrap; gap: 8px; }
.f-route .btn { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 15px; min-height: 44px; }
@media (hover: hover) { .f-route .btn:hover { background: rgba(255, 255, 255, .12); } }
.f-map {
	height: 220px; margin: 16px 0 12px; border-radius: var(--r); overflow: hidden;
	background: #e9e6e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d65700' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 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 / 40px no-repeat;
}

/* ---- нижняя панель телефона ---- */
.bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none; grid-template-columns: 1fr 1fr 1fr; height: 64px;
	background: var(--bar); color: var(--bar-ink); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}
.bar-btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none;
	color: inherit; font: 600 13px/1.1 var(--font); text-decoration: none;
}
.bar-btn .i { width: 24px; height: 24px; }
.bar-call { margin: 6px; border-radius: var(--r); background: var(--brand); color: #fff; }
.has-bar .bar { display: grid; }
@media (max-width: 640px) { .bar { display: grid; } body { padding-bottom: 64px; } }
/* кнопка чата встаёт над нижней панелью: подъём — высота панели. Подвал длиннее на высоту кнопки с отступом, чтобы в
   конце страницы кнопка стояла на тёмном фоне, а не на тексте */
html:has(> body.has-bar) { --chat-lift: 64px; }
html:has(> tcw-widget):has(> body.has-bar) #footer { padding-bottom: 88px; }

/* ---- окна «Написать» и «Перезвоните мне»: на телефоне — снизу экрана, на компьютере — по центру ---- */
.sheet {
	position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 90vh; margin: 0; padding: 0; border: 0;
	background: transparent; color: var(--ink); overflow: visible;
}
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet-box { max-height: 90vh; overflow: auto; padding: 8px 16px 20px; border-radius: 16px 16px 0 0; background: var(--card); }
.sheet-head { display: flex; align-items: center; min-height: 48px; }
.sheet-title { margin: 0; font: 700 20px/1.2 var(--font); }
.sheet-x { width: 48px; height: 48px; margin-left: auto; border: 0; background: none; color: var(--muted); }
.sheet-x .i { width: 26px; height: 26px; }
/* мессенджеры — четыре в ряд, значок над названием; под ними во всю ширину — «Написать через сайт» */
.msg-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
.msg {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 2px;
	border: 0; border-radius: var(--r); color: #fff; font: 700 14px/1.2 var(--font); text-decoration: none;
}
.msg .i { width: 26px; height: 26px; }
/* узкий телефон: самая длинная подпись, «ВКонтакте», встаёт в четверть окна без обрезки */
@media (max-width: 389px) { .msg-list { gap: 6px; } .msg { padding-inline: 0; } }
@media (max-width: 359px) { .msg { font-size: 13px; } .sheet-box { padding-inline: 12px; } }
.msg-site { grid-column: 1 / -1; flex-direction: row; gap: 8px; min-height: 56px; background: var(--brand); font-size: 17px; }
.msg-site .i { width: 22px; height: 22px; }
.msg-max { background: #5b3df5; }
.msg-tg { background: #2aa3df; }
.msg-wa { background: #1fa855; }
.msg-vk { background: #0077ff; }
.sheet-text { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border-radius: var(--r); background: var(--soft); font-size: 15px; }
.sheet-text .i { color: var(--brand); width: 24px; height: 24px; }
.sheet .requestFormMain { margin: 6px 0 0; }
.sheet .requestFormTitle { display: none; }

/* ---- просмотр фото ---- */
.lightbox {
	position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(0, 0, 0, .92); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-img { position: absolute; inset: 0; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.lb-btn {
	position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: #fff;
}
.lb-btn .i { width: 30px; height: 30px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-x { top: 8px; right: 8px; }

/* ---- компьютер ---- */
@media (min-width: 1024px) {
	.hero-why .why-wide { display: inline; }
	.hero-why .why-narrow { display: none; }
	.breadcrumbs { white-space: normal; }
	#wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
	.logo { grid-template-columns: auto 1fr; grid-template-areas: "logo full" "nav nav"; gap: 0 24px; padding: 14px 0 0; border-bottom: 0; }
	#logoTxt { padding: 0 0 14px; }
	#logoTxt img { max-height: 64px; max-width: none; }
	.h-line, .h-call, .m-btn { display: none; }
	/* шапка компьютера: справа три сведения — адрес, мобильный с мессенджерами, основной номер с часами;
	   один шрифт — 15 px жирный и 13 px обычный, цвета — чёрный, серый и оранжевый только у значков */
	.h-full { grid-area: full; display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-width: 0; padding-bottom: 14px; }
	.h-item { display: flex; align-items: center; gap: 9px; color: var(--ink); line-height: 1.3; white-space: nowrap; }
	.h-item > .i { width: 22px; height: 22px; color: var(--brand); }
	.h-item > span { display: flex; flex-direction: column; }
	.h-item b { font-size: 15px; font-weight: 600; }
	.h-item small { font-size: 13px; color: var(--muted); }
	.h-item a { color: inherit; }
	/* основной номер: значок в оранжевом круге — главное действие шапки */
	.h-item-tel .h-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; }
	.h-item-tel .h-ico .i { width: 18px; height: 18px; }
	a.h-item { text-decoration: none; }
	a.h-item:hover b { text-decoration: underline; text-underline-offset: 2px; }
	/* полоса меню со скруглёнными краями: overflow обрезает подсветку крайних пунктов по скруглению */
	.m-nav, .menu-open .m-nav { display: block; padding: 0; border: 0; background: var(--band); border-radius: var(--r); overflow: hidden; }
	.m-main { display: flex; flex-wrap: wrap; }
	.m-main a { min-height: 48px; padding: 0 18px; border: 0; color: var(--band-ink); font-size: 16px; }
	.m-main a::after { content: none; }
	.m-main a:hover { background: rgba(0, 0, 0, .06); }
	.m-main a:focus-visible { outline-offset: -3px; }
	.m-pop { display: none; }

	.page { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; margin-top: 8px; }
	.t-home .page { grid-template-columns: minmax(0, 1fr); }
	.page-main { padding: 0; }
	.page-side { display: block; }
	.side-cta {
		position: sticky; top: 12px; z-index: 5; display: grid; gap: 8px; margin: 0 0 24px; padding: 14px; border: 1px solid var(--line);
		border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
	}
	.side-cta .trust { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
	.side-cta .btn { width: 100%; }
	.trust-row { display: none; }
	.revs-list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
	.revs-list > .rev:nth-child(n+4) { display: none; }
	.t-home .revs-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.t-home .revs-list > .rev:nth-child(4) { display: flex; }
	.tag-desc { font-size: 16px; }
	.info h1 { font-size: 32px; margin-top: 14px; }
	.dataMain p, .dataMain li { font-size: 17px; }
	.dataMain h2 { font-size: 23px; }
	.dataMain h2.part { font-size: 26px; }
	.dataMain h3 { font-size: 18px; }
	.requestForm { grid-template-columns: minmax(0, 340px) auto; justify-content: start; }
	.sheet .requestForm { grid-template-columns: 1fr; }
	.endb-btns .btn { flex: 0 1 auto; }
	.dataMain iframe.video { max-width: 690px; }
	.dataMain p.photo-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 0; margin-right: 0; padding: 0; overflow: visible; }
	.dataMain p.photo-group > img { width: 100% !important; }

	.hero { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px 48px; align-items: start; }
	.hero-why li { font-size: 18px; margin-bottom: 6px; }
	.hero-btns { display: flex; flex-wrap: wrap; }
	.hero-btns .btn-main { grid-column: auto; }
	.hero-form { display: block; }
	.hero-form .requestFormMain { margin: 0; padding: 18px; }
	.hero-form .requestForm { grid-template-columns: minmax(0, 1fr) auto; }
	.free { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
	.free h2.sec { grid-column: 1 / -1; }
	.pop-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.pop-list > li { display: block; margin: 0; padding: 0; overflow: hidden; }
	.pop-list > li > a:first-child img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
	.pop-list h2 { padding: 10px 12px 12px; font-size: 16px; }
	.fresh-list > li, .t-list .dataBlock ul > li { grid-template-columns: 200px 1fr; gap: 6px 20px; }
	.fresh-list > li > a:first-child img, .t-list .dataBlock ul > li > a:first-child img { width: 200px; height: 150px; }
	.fresh-list h2, .t-list .dataBlock ul > li h2 { font-size: 19px; }
	.all-link a { display: inline-flex; padding: 0 24px; }

	#footer { margin-top: 40px; padding: 28px 24px 18px; border-radius: var(--r) var(--r) 0 0; }
	.f-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	.f-wrap, .f-map { max-width: 1152px; margin-left: auto; margin-right: auto; }
	.f-map { height: 320px; margin-top: 16px; margin-bottom: 12px; }

	.sheet { inset: 0; width: 460px; height: fit-content; margin: auto; }
	.sheet-box { border-radius: 16px; }
	.lb-img { max-width: calc(100% - 128px); max-height: calc(100% - 32px); }
}
/* компьютер поуже: адрес — в подвале и контактах, в шапке не помещается */
@media (min-width: 1024px) and (max-width: 1199px) { .h-item-addr { display: none; } }
