/* =========================================================
   OST 2026 — основные стили
   Цвета взяты из логотипа: синий #0098D8, зелёный #6BD150
   ========================================================= */

:root {
	--blue: #0098d8;
	--blue-600: #0083bb;
	--blue-700: #006b99;
	--blue-50: #eaf6fc;
	--green: #2fa136;
	--green-600: #268a2c;
	--green-logo: #6bd150;
	--green-50: #edf9e9;
	--ink: #0f1f2c;
	--ink-2: #2b3a47;
	--muted: #5d6c79;
	--line: #e2e9ef;
	--bg: #ffffff;
	--bg-soft: #f3f7fa;
	--dark: #0b1a26;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(15, 31, 44, .06), 0 2px 8px rgba(15, 31, 44, .05);
	--shadow: 0 10px 30px -12px rgba(15, 31, 44, .22);
	--shadow-lg: 0 30px 60px -24px rgba(15, 31, 44, .35);
	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--topbar-h: 40px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Жирный — 700 (у Onest загружены 400–800). По умолчанию браузер делает «жирное внутри полужирного» 900 —
   такого начертания нет, оно рисуется искусственно (было в заголовках таблиц цен). */
b, strong { font-weight: 700; }
:is(h1, h2, h3, h4, th, .btn, button) :is(b, strong) { font-weight: inherit; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico.flip { transform: scaleX(-1); }
.ico-max { border-radius: 25%; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6em 1.1em; font-size: 15px; }
.btn--lg { padding: 1em 1.7em; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--accent { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 161, 54, .6); }
.btn--accent:hover { background: var(--green-600); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn .ico { width: 1.1em; height: 1.1em; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Топбар и шапка ---------- */
/* Чёрная строка закреплена вместе с меню: она сверху, меню — сразу под ней */
.topbar { position: sticky; top: 0; z-index: 51; background: var(--dark); color: #c9d6e0; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 28px; height: var(--topbar-h); }
.topbar__item, .topbar__badge { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar a.topbar__item:hover { color: #fff; }
.topbar__badge { color: #fff; font-weight: 600; margin-right: auto; }
.topbar__badge .ico { color: var(--green-logo); }
.topbar .ico { width: 16px; height: 16px; opacity: .85; }

.header { position: sticky; top: var(--topbar-h); z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(15, 31, 44, .35); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { width: 190px; height: auto; }
.nav { margin-right: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 16px; }
.nav__link:hover, .nav__item--mega:focus-within .nav__link { background: var(--bg-soft); color: var(--blue-700); }
.nav__link .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav__item--mega:hover .nav__link .ico { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.mega__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.mega__title .ico { color: var(--blue); }
.mega ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.mega li a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.mega li a:hover { color: var(--blue-600); }
.mega__cta { background: var(--bg-soft); border-radius: var(--radius); padding: 14px; font-size: 15px; }
.mega__cta img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 12px; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); }
.header__phone-num { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.header__phone-note { font-size: 12.5px; color: var(--muted); }
.header__max { display: inline-grid; width: 38px; height: 38px; }
.header__max .ico { width: 38px; height: 38px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; }

.drawer { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; overflow-y: auto; animation: drawerIn .25s var(--ease); }
.drawer[hidden] { display: none; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.drawer__nav { padding: 8px var(--gutter); display: flex; flex-direction: column; }
.drawer__nav > a, .drawer__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 18px; list-style: none; cursor: pointer; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav details[open] summary .ico { transform: rotate(180deg); }
.drawer__nav ul { list-style: none; margin: 0; padding: 6px 0 10px 12px; }
.drawer__nav ul a { display: block; padding: 8px 0; color: var(--ink-2); }
.drawer__contacts { margin-top: auto; padding: 20px var(--gutter) 32px; background: var(--bg-soft); }
.drawer__phone { display: block; font-size: 24px; font-weight: 700; color: var(--ink); }
.drawer__phone--2 { font-size: 19px; font-weight: 600; margin-top: 4px; }
.drawer__contacts p { color: var(--muted); font-size: 15px; }

/* ---------- Общие секции ---------- */
.main { display: block; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(24px, 4vw, 40px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 720px; }
.section__title { font-size: clamp(30px, 4.2vw, 46px); }
.section__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 0; }
.section__foot { margin-top: 32px; display: flex; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--green-logo)); }
.eyebrow--light { color: #9fe08b; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-top: 2px; stroke-width: 2.6; }
.checks--light li { color: #e7f0f6; }
.checks--light .ico { background: rgba(107, 209, 80, .2); color: var(--green-logo); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 500; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.card__title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; isolation: isolate; background: var(--dark); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 22, 34, .92) 0%, rgba(8, 22, 34, .78) 42%, rgba(8, 22, 34, .35) 100%), linear-gradient(0deg, rgba(8, 22, 34, .85) 0%, transparent 40%); }
.hero__in { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-weight: 500; font-size: 15px; margin-bottom: 22px; }
.hero__years { display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, var(--green-logo), var(--green)); color: #fff; font-weight: 800; }
.hero__title { color: #fff; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; }
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: #d6e2ea; max-width: 620px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.card--glass { background: rgba(255, 255, 255, .97); color: var(--ink-2); }
.stats { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 26px 20px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat__num { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat__label { color: #a9bccb; font-size: 15px; line-height: 1.35; }

/* ---------- Табы ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--bg-soft); border-radius: 999px; }
.section--soft .tabs { background: #fff; }
.tabs__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.tabs__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.section--soft .tabs__btn.is-active { background: var(--blue); color: #fff; }
.tabs--scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs--scroll::-webkit-scrollbar { display: none; }
/* Вкладки «Что входит»: на компьютере видны все сразу (в несколько строк), на телефоне — прокрутка
   с затуханием у края, чтобы было понятно, что вкладок больше (классы ставит main.js) */
@media (min-width: 761px) { .tabs--scroll { display: flex; flex-wrap: wrap; overflow: visible; border-radius: 24px; } }
@media (max-width: 760px) {
	.tabs--scroll.is-overflow:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
	.tabs--scroll.is-overflow.is-scrolled:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
	.tabs--scroll.is-overflow.is-scrolled.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
}
/* Значок reCAPTCHA скрыт (на телефоне уходил под нижнюю панель); вместо него — текст под формами, как требует Google */
.grecaptcha-badge { visibility: hidden !important; }
.form-recaptcha-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.form-recaptcha-note a { color: inherit; text-decoration: underline; }

/* ---------- Карточки услуг ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.svc-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 900px) { .svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* класс ставит ost_grid_class() */
@media (min-width: 600px) { .svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* 2 или 4 вида услуги — 2 в ряд, а не 3+1 */
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.svc-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.svc-card__title { font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.25; }
.svc-card__price { color: var(--green); font-weight: 700; }
.svc-card__more { margin-top: auto; align-self: flex-start; }

/* Зелёная кнопка «Подробнее» и кликабельные блоки целиком */
.go-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(47, 161, 54, .7); transition: background .2s, transform .2s var(--ease); }
.go-btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.svc-card:hover .go-btn, .is-linked:hover .go-btn { background: var(--green-600); }
.svc-card:hover .go-btn .ico, .is-linked:hover .go-btn .ico { transform: translateX(4px); }
.is-linked { position: relative; cursor: pointer; }
.is-linked .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.is-linked .stretched:focus-visible { outline: none; }
.is-linked:has(.stretched:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.is-linked:hover .svc-row__title a, .is-linked:hover .price-card__title a { color: var(--blue-600); }
.price-card.is-linked { transition: transform .3s var(--ease), box-shadow .3s; }
.price-card.is-linked:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card__go { align-self: flex-start; margin-top: 16px; }

/* ---------- Вступление (текст прежней главной) ---------- */
.intro__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(32px, 5vw, 56px); }
.intro__lead { font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; color: var(--ink); line-height: 1.5; }
.intro__checks { grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 20px; }
.intro__objects { border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 32px); background: linear-gradient(160deg, var(--blue-50), var(--green-50)); }
.intro__objects-title { font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.4; }
.objects { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.objects li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .8); font-weight: 500; color: var(--ink-2); }
.objects .ico { color: var(--blue); width: 20px; height: 20px; }
.intro__region { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--green-600); }
.intro__region .ico { width: 18px; }
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { border: 0; background: none; padding: 0; margin: 0 0 10px; color: var(--blue-600); font-weight: 600; font-size: 14px; }

/* ---------- Плашка вместо фото ---------- */
.photo-ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; aspect-ratio: 4/3; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(140deg, var(--blue) 0%, var(--blue-700) 60%, #0d5b3a 100%); color: #fff; border-radius: inherit; overflow: hidden; }
.photo-ph .ico { width: 30%; height: auto; max-width: 120px; opacity: .9; stroke-width: 1.2; }
.photo-ph__years { position: absolute; right: 14px; bottom: 12px; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.page-hero__media .photo-ph { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }

/* ---------- Цены ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.price-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.price-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.price-card__title { font-size: 21px; margin-bottom: 12px; }
.price-card__title a { color: var(--ink); }
.price-card__title a:hover { color: var(--blue-600); }
.price-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 14px; }
.price-card--cta { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-700) 100%); color: #e6f4fb; }
.price-card--cta .price-card__body { justify-content: center; gap: 6px; }
.price-card--cta .price-card__title { color: #fff; }
.price-card__ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; margin-bottom: 8px; }
.price-card__ico .ico { width: 28px; height: 28px; color: #fff; }
.price-list { margin: 0; display: grid; }
.price-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.price-list > div:last-child { border-bottom: 0; }
.price-list dt { color: var(--muted); }
.price-list dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-list--inline { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; }
.price-list--inline > div { flex-direction: column; gap: 0; padding: 0; border: 0; }
.price-list--inline dt { font-size: 13.5px; }

/* ---------- Работа: видео и галерея ---------- */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.reel { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9/16; background: var(--dark); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(11, 26, 38, .62); backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 500; }
.reel figcaption .ico { width: 16px; height: 16px; fill: currentColor; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--0 { grid-column: span 2; grid-row: span 2; }
.gallery__item--1 { grid-row: span 2; }
.gallery__item--5 { grid-column: span 2; }

/* ---------- О компании ---------- */
.about__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__visual { position: relative; }
.about__photo { border-radius: calc(var(--radius) + 8px); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about__years { position: absolute; right: -16px; bottom: 32px; background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; }
.about__years-num { font-size: 52px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--green-logo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__years-label { font-weight: 600; color: var(--ink); line-height: 1.3; }
.accordion { margin-top: 20px; display: grid; gap: 10px; }
.accordion__item, .more { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.accordion__item summary, .more summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.accordion__item summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.accordion__item summary .ico, .more summary .ico { transition: transform .2s; color: var(--blue); }
.accordion__item[open] summary .ico, .more[open] summary .ico { transform: rotate(180deg); }
.accordion__item .prose, .more .prose { padding: 0 20px 18px; font-size: 16px; }
.adv-grid { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.adv { background: #fff; border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.adv__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.adv:nth-child(even) .adv__ico { background: var(--green-50); color: var(--green); }
.adv__text { font-weight: 600; color: var(--ink); line-height: 1.3; font-size: 16px; }

/* ---------- Акция ---------- */
.promo { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: linear-gradient(120deg, var(--green-50), var(--blue-50)); }
.promo__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; min-height: 240px; } /* обрезка ближе к верху — люди на фото не без головы */
.promo__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.promo__badge { background: var(--green); color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.promo__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.promo__note { color: var(--muted); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step__num { position: absolute; top: 18px; right: 22px; font-size: 56px; font-weight: 800; line-height: 1; color: var(--bg-soft); letter-spacing: -.04em; }
.step__ico { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-700)); color: #fff; margin-bottom: 18px; }
.step__title { font-size: 20px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Команда ---------- */
.team__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.team__text .more { margin-top: 20px; }
.team__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }

/* ---------- Клиенты ---------- */
.marquee { overflow: hidden; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__logo { flex: none; width: 180px; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 14px 20px; }
.marquee__logo img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee__logo:hover img { filter: none; opacity: 1; }

/* ---------- Отзывы ---------- */
.carousel-nav { display: flex; gap: 8px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.review { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 18px; box-shadow: var(--shadow-sm); }
.review__scan { position: relative; flex: none; width: 110px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; align-self: flex-start; cursor: zoom-in; }
.review__scan img { width: 100%; height: auto; }
.review__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 107, 153, .55); color: #fff; opacity: 0; transition: opacity .2s; }
.review__scan:hover .review__zoom, .review__scan:focus-visible .review__zoom { opacity: 1; }
.review__body { min-width: 0; }
.review__company { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 18px; line-height: 1.25; }
.review__company a { color: inherit; }
.review__text { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.review__author { font-size: 14px; color: var(--muted); margin: 0; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }
.review--single { box-shadow: none; padding: 0; }
.review--single .review__scan { width: 280px; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: #d4e0e9; position: relative; overflow: hidden; isolation: isolate; }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.cta__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta__title { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.cta__lead { font-size: 18px; color: #b7c8d5; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 26px; font-weight: 700; margin-top: 4px; }
.cta__phone:hover { color: var(--green-logo); }

/* ---------- Страницы ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 20px 0 clamp(32px, 5vw, 56px); }
.page-hero--compact { padding-bottom: clamp(24px, 3vw, 36px); }
.page-hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__title { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.03em; margin: 8px 0 18px; }
.page-hero__lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }
.page-hero__badge { position: absolute; left: -14px; bottom: 24px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 600; color: var(--ink); }
.page-hero__badge strong { font-size: 26px; font-weight: 800; color: var(--green); margin-right: 4px; }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); line-height: 1.25; }
.chip span { font-size: 13px; color: var(--muted); }
.chip strong { color: var(--ink); font-size: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 12px 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-600); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.quick__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15px; }
.quick__link:hover { border-color: var(--blue); color: var(--blue-700); }
.quick__link .ico { color: var(--blue); width: 18px; }

.layout > * { min-width: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.layout__aside { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.aside-card--soft { background: var(--bg-soft); box-shadow: none; border: 0; padding: 20px; border-radius: var(--radius); }
.aside-card__label { font-weight: 600; color: var(--ink); font-size: 15px; }
.aside-card__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--ink); font-size: 18px; }
.happy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.happy li { background: #fff; border-radius: 12px; padding: 10px; display: grid; place-items: center; height: 72px; }
.happy img { max-height: 52px; width: auto; object-fit: contain; }
.block { margin-bottom: clamp(36px, 5vw, 56px); }
.block__title { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.block__title .ico { color: var(--blue); width: 30px; height: 30px; }

.prose { color: var(--ink-2); overflow-wrap: break-word; hyphens: auto; }
.legacy-cols > div, .legacy-cell { overflow-wrap: anywhere; }
.prose--lead { font-size: 18px; margin-bottom: clamp(32px, 4vw, 48px); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--blue); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 152, 216, .35); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--green-logo); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose iframe { display: block; width: 100%; height: auto; max-width: 100%; border: 0; border-radius: var(--radius); background: var(--bg-soft); }
.prose iframe:not([style*="aspect-ratio"]) { aspect-ratio: 16/9; }
.prose iframe.is-vertical { max-width: 340px; }
.legacy-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 1.5em; }
.legacy-videos iframe.is-vertical { max-width: none; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
/* Широкие таблицы на телефоне (классы ставит main.js): подсказка, затухание у края, закреплённая первая колонка */
.table-hint { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--blue-600); }
.table-hint span { display: inline-block; animation: tableHint 1.4s var(--ease) infinite; }
@keyframes tableHint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.table-wrap.is-narrow table { min-width: 0; }
@media (max-width: 760px) { .prose .table-wrap.is-narrow td, .prose .table-wrap.is-narrow th { white-space: normal !important; padding: 10px 12px; overflow-wrap: anywhere; } }
.table-wrap.is-scrollable:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), rgba(0, 0, 0, .25)); }
.table-wrap.is-scrollable:not(.is-narrow) tr > :first-child { position: sticky; left: 0; z-index: 1; background: #fff; max-width: 38vw; }
.table-wrap.is-scrollable:not(.is-narrow) tbody tr:nth-child(even) > :first-child { background: #fafcfd; }
.table-wrap.is-scrollable:not(.is-narrow) tr:first-child > :first-child, .table-wrap.is-scrollable:not(.is-narrow) thead th:first-child { background: var(--bg-soft); }
.table-wrap.is-scrolled:not(.is-narrow) tr > :first-child { box-shadow: 6px 0 8px -6px rgba(15, 30, 45, .25); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose thead th, .prose tr:first-child th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.prose tbody tr:nth-child(even) td { background: #fafcfd; }
.prose--prices td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.incl { display: grid; gap: 14px; }
.incl__item { display: flex; gap: 20px; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.incl__img { flex: none; width: 160px; }
.incl__img img { border-radius: 12px; }
.incl__text { font-size: 16px; }
.incl__text > :last-child { margin-bottom: 0; }

.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ba { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; --pos: 50%; user-select: none; background: var(--bg-soft); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .3); pointer-events: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 26, 38, .65); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; z-index: 2; }
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; background: var(--green); }

.svc-rows { display: grid; gap: 14px; }
.svc-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, border-color .25s; }
.svc-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.svc-row__img img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-row__title { font-size: 20px; margin-bottom: 10px; }
.svc-row__title a { color: var(--ink); }
.svc-row__title a:hover { color: var(--blue-600); }
.svc-row__text { color: var(--muted); font-size: 15px; margin: 0; }
.link-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-cloud a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.link-cloud a:hover { border-color: var(--blue); color: var(--blue-700); }
.link-cloud span { color: var(--green); font-weight: 700; font-size: 14px; }

/* 4 карточки: 2×2, на широком — в ряд, на телефоне — столбиком (ровные ряды) */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
@media (min-width: 1400px) { .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card__extra { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--blue-600); }
.contact-card .contact-card__extra .ico { width: 18px; height: 18px; margin: 0; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); }
.contact-card .ico { width: 28px; height: 28px; color: var(--blue); margin-bottom: 8px; }
.contact-card__label { font-size: 14px; color: var(--muted); }
.contact-card__value { font-weight: 600; }
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--blue-600); }
.logo-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-grid li { height: 110px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 16px; }
.logo-grid img { max-height: 74px; width: auto; object-fit: contain; }
.post-list { display: grid; gap: 20px; padding-bottom: 60px; }
.err404__code { font-size: clamp(80px, 14vw, 160px); font-weight: 800; line-height: 1; margin: 20px 0 0; background: linear-gradient(135deg, var(--blue), var(--green-logo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 8px; justify-content: center; padding-bottom: 40px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Старая вёрстка из полей ACF ---------- */
.legacy-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
/* .prose — чтобы общее .prose img { height:auto } не перебивало: все фото галереи одного размера */
.prose .legacy-gallery img, .legacy-gallery img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); cursor: zoom-in; margin: 0; }
.prose img { max-width: 100%; height: auto; }
/* Таблицы-раскладки, разобранные на строки и ячейки */
.legacy-table { margin: 0 0 1.5em; display: grid; gap: 14px; }
.legacy-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.legacy-cell { flex: 1 1 240px; min-width: 0; }
.legacy-cell > :last-child { margin-bottom: 0; }
.legacy-cell--icon { flex: 0 0 auto; }
.legacy-cell--icon img { width: 56px; height: 56px; object-fit: contain; margin: 0; }
.legacy-row:has(.legacy-cell--icon) { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); flex-wrap: nowrap; }
.legacy-cell[style*="font-weight"], .legacy-table:has(a[href^="tel:"]) { text-align: left; }
.legacy-cell br + br { display: none; }
.legacy-cell > img:only-child { border-radius: var(--radius-sm); }
/* Ячейки «фото + описание» (каталог техники и т. п.): аккуратные карточки, фото не выше 300 px */
.legacy-row:not(:has(.legacy-cell--icon)) { align-items: stretch; }
.legacy-cell:has(> img:not(:only-child)), .legacy-cell--photo { padding: 16px; border-radius: var(--radius); background: var(--bg-soft); }
.legacy-cell > img:first-child:not(:only-child), .legacy-cell--photo > img { display: block; width: auto; max-width: 100%; max-height: 300px; margin: 0 auto 14px; border-radius: var(--radius-sm); }
.legacy-cell--photo { display: grid; place-items: center; }
.legacy-cell--photo > img { margin-bottom: 0; }
.prose :not(.legacy-gallery):not(.legacy-cell) > img.legacy-photo { width: auto; max-width: 100%; max-height: 460px; border-radius: var(--radius-sm); }
.legacy-cell:has(> img:not(:only-child)) p { font-size: 15.5px; }
.legacy-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; flex-basis: 100%; }
.legacy-cols > div { padding: 22px 20px; border-radius: var(--radius); background: var(--bg-soft); font-size: 15.5px; line-height: 1.5; text-align: left; }
.legacy-cols > div:not(.twob_left) > img { display: block; width: 56px; height: 56px; object-fit: contain; margin: 0 0 12px; }
.legacy-cols > div br { display: none; }
/* Карточки-фото (класс ставит inc/legacy.php): фото на всю карточку, подпись снизу */
.legacy-cols--photos > div { padding: 0 0 14px; overflow: hidden; text-align: center; }
.legacy-cols.legacy-cols--photos > div > img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 12px; border-radius: 0; cursor: zoom-in; }
.legacy-cols.legacy-cols--photos.is-portrait > div > img { aspect-ratio: 3 / 4; object-position: center top; }
.legacy-cols.legacy-cols--photos.is-square > div > img { aspect-ratio: 1; }
/* Одна фото-карточка — не на всю ширину колонки, по центру */
.legacy-cols.legacy-cols--photos.cols-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.legacy-media { display: flow-root; flex-basis: 100%; }
/* .legacy-cell.legacy-media — специфичнее общего правила картинок ячеек (иначе фото теряет отступ и наезжает на текст) */
.legacy-cell.legacy-media > img:first-child { float: left; width: min(45%, 400px); max-height: none; height: auto; margin: 4px 28px 14px 0; border-radius: var(--radius-sm); }
@media (max-width: 760px) { .legacy-cell.legacy-media > img:first-child { float: none; width: 100%; margin: 0 0 14px; } }
/* Ровные ряды по числу карточек (класс cols-N ставит inc/legacy.php) */
.legacy-cols > :not(div) { grid-column: 1 / -1; }
.legacy-cols.cols-1 { grid-template-columns: minmax(0, 1fr); }
.legacy-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legacy-cols.cols-10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legacy-cols.cols-10 > div { display: flex; gap: 14px; align-items: flex-start; }
.legacy-cols.cols-10 > div > img { flex: none; width: 48px; height: 48px; margin: 0; }
.legacy-cols.cols-3, .legacy-cols.cols-6, .legacy-cols.cols-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legacy-cols.cols-4, .legacy-cols.cols-8, .legacy-cols.cols-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legacy-cols.cols-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.legacy-cols.cols-5 > div:nth-of-type(-n+3) { grid-column: span 2; }
.legacy-cols.cols-5 > div:nth-of-type(n+4) { grid-column: span 3; }
.legacy-cols.cols-7 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.legacy-cols.cols-7 > div:nth-of-type(-n+4) { grid-column: span 3; }
.legacy-cols.cols-7 > div:nth-of-type(n+5) { grid-column: span 4; }
.legacy-cols.cols-11 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
	.legacy-cols.cols-4, .legacy-cols.cols-6, .legacy-cols.cols-8, .legacy-cols.cols-10, .legacy-cols.cols-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.legacy-cols[class*="cols-"] { grid-template-columns: minmax(0, 1fr); }
	.legacy-cols[class*="cols-"] > div { grid-column: auto; }
}
.legacy-cta { display: flex; justify-content: center; flex-basis: 100%; }
/* Две колонки «фото | текст» (twob) */
.legacy-cols > .twob_left, .legacy-cols > .twob_right { background: none; padding: 0; }
.legacy-cols:has(> .twob_left) { align-items: center; }
.twob_left { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.twob_left img { width: calc(50% - 6px); height: 260px; object-fit: cover; border-radius: var(--radius-sm); margin: 0; }
.twob_left img:only-child { width: 100%; }
.twob_right { font-size: 18px; line-height: 1.55; color: var(--ink); }
/* Списки с галочками из старой темы */
.prose .ulic-chekeds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .ulic-chekeds li { margin: 0; padding: 6px 12px 6px 30px; border-radius: 999px; background: var(--green-50); color: var(--green-600); font-weight: 600; font-size: 14.5px; position: relative; }
.prose .ulic-chekeds li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 12px; margin-top: -8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose .cblue { color: var(--blue-600); font-weight: 600; }
.prose .zakaz, .prose .callback { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .85em 1.6em; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(47, 161, 54, .6); transition: background .2s, transform .2s; }
.prose .zakaz:hover, .prose .callback:hover { background: var(--green-600); transform: translateY(-1px); }
/* Внутри карточки (этап «Заявка…») большая зелёная кнопка выглядит чужой — там это ссылка в тексте */
.prose .legacy-cols > div .callback { display: inline-flex; margin-top: 10px; padding: 0; background: none; box-shadow: none; color: var(--blue); font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(0, 152, 216, .35); border-radius: 0; }
.prose .legacy-cols > div .callback::after { content: "→"; transition: transform .2s; }
.prose .legacy-cols > div .callback:hover { background: none; transform: none; color: #0079ad; border-bottom-color: currentColor; }
.prose .legacy-cols > div .callback:hover::after { transform: translateX(3px); }
.prose p[style*="text-align: center"] { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose .newspaper { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 1.5em; }
.prose .newspaper.ncol-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prose .newspaper-item { margin-bottom: 16px; }
.prose .newspaper-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); }
.prose .newspaper-item-img img { width: 72px; height: 72px; object-fit: contain; margin: 0; border-radius: 12px; }
.prose .newspaper > .column { display: grid; gap: 14px; align-content: start; }
.prose .newspaper-item-desc { font-size: 15.5px; }
.prose .show_in_mobile { display: none; }
.prose table.category-price-tab td { text-align: center; vertical-align: middle; }
.prose table.category-price-tab td:first-child, .prose td.text-left { text-align: left; font-weight: 600; color: var(--ink); }
.prose table.category-price-tab tr:first-child td { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
/* Строка «Стоимость» (класс ставит inc/legacy.php) — цены зелёным; обычные строки работ не выделяем */
.prose table.category-price-tab tr.is-cost-row td:nth-child(n+2) { color: var(--green); font-weight: 700; font-size: 17px; }
/* Таблицы: без переносов внутри слов («Стои-мость»); подписи строк и цены — в одну строку, длинные описания — мельче */
.prose th, .prose td { hyphens: manual; overflow-wrap: normal; }
.prose td.is-price { white-space: nowrap; } /* класс ставит inc/legacy.php ячейкам вида «от 20 руб./м²» */
.prose table.category-price-tab td:first-child { min-width: 7.5em; }
.prose table.category-price-tab td { font-size: 14.5px; line-height: 1.45; padding: 11px 8px; }
.prose table.category-price-tab td:first-child { padding-left: 14px; }
.prose table.category-price-tab tr:first-child td { font-size: 15px; }
.prose table.category-price-tab tr.is-cost-row td:nth-child(n+2) { font-size: 15.5px; }
/* Правило «последняя колонка — цена» из простых таблиц цен здесь не подходит */
.prose--prices table.category-price-tab tr:not(.is-cost-row) td:last-child:not(:first-child) { font-weight: 400; color: inherit; white-space: normal; }
.prose--prices table.category-price-tab tr:first-child td:last-child { font-weight: 600; color: var(--ink); }
.prose img.alignnone, .prose img.size-full, .prose img.size-medium { border-radius: var(--radius-sm); margin: 0 0 1em; }

/* ---------- Калькулятор ---------- */
.calc { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--bg-soft); }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input[type=number], .field select { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.field--check { flex-direction: row; align-items: center; gap: 10px; height: 50px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--blue); }
.field[hidden] { display: none; }
.calc__extra { margin-top: 16px; }
.calc__extra summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--blue-600); list-style: none; margin-bottom: 14px; }
.calc__extra summary::-webkit-details-marker { display: none; }
.calc__extra[open] summary .ico { transform: rotate(180deg); }
.calc__result { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 16px; background: #fff; }
.calc__label { display: block; font-size: 14px; color: var(--muted); }
.calc__sum { display: block; font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.calc__hint { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Формы CF7 ---------- */
.wpcf7 { position: relative; }
.wpcf7 form p { margin: 0; }
.wpcf7 br { display: none; }
.wpcf7 h2, .wpcf7 h2 + p { display: none; } /* заголовок формы выводим своим */
.wpcf7 form > p:has(> .wpcf7-form-control-wrap) + p { margin-top: 0; }
.wpcf7 .form-row { display: grid; gap: 10px; }
.wpcf7-form-control-wrap { display: block; margin-bottom: 10px; }
.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.wpcf7 textarea { height: 96px; padding: 12px 16px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 152, 216, .14); }
.wpcf7 ::placeholder { color: #8796a3; }
.wpcf7-acceptance { display: block; margin: 4px 0 6px; }
.wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0 0 6px; }
.wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.wpcf7-acceptance input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.wpcf7 .checkbox-mark { display: none; }
.wpcf7 .form-consents { margin: 4px 0 8px; }
.wpcf7 input[type=submit] { width: 100%; height: 54px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(47, 161, 54, .6); transition: background .2s, transform .2s; }
.wpcf7 input[type=submit]:hover { background: var(--green-600); transform: translateY(-1px); }
.wpcf7 input[type=submit]:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.wpcf7 .send-button-desc { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.wpcf7 .popup-title { display: none; }
.wpcf7-spinner { position: absolute; right: 16px; bottom: 16px; }
.wpcf7-not-valid-tip { font-size: 13px; color: #d33; margin-top: 4px; }
.wpcf7-response-output { margin: 12px 0 0 !important; padding: 10px 14px !important; border-radius: 12px; font-size: 14px; border-width: 1px !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green) !important; background: var(--green-50); color: var(--green-600); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #f0b4b4 !important; background: #fdf1f1; color: #b42b2b; }
.wpcf7 .wpcf7-not-valid { border-color: #e06b6b !important; background: #fff6f6 !important; }
/* Экран «Заявка принята» вместо формы (main.js, шаблон в footer.php) */
.form-success { padding: 28px 20px; border-radius: 16px; background: #fff; color: var(--ink); text-align: center; outline: 0; animation: formSuccessIn .35s var(--ease); }
.form-success__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 161, 54, .6); }
.form-success__icon .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.form-success__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.form-success__text { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.form-success__btn { min-width: 180px; height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; }
.form-success__btn:hover { border-color: var(--green); color: var(--green-600); }
.modal.is-sent .modal__eyebrow, .modal.is-sent .modal__title, .modal.is-sent .modal__text { display: none; }
@keyframes formSuccessIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpcf7 [class*=-zblock], .wpcf7 [class*=-upblock], .wpcf7 [class*=-cublock], .wpcf7 [class*=single-ra] { display: block; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: #a9bccb; padding: clamp(48px, 6vw, 72px) 0 0; font-size: 15.5px; }
.footer a { color: #d6e2ea; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer__logo { width: 190px; margin-bottom: 18px; background: #fff; padding: 8px 12px; border-radius: 12px; box-sizing: content-box; }
.footer__about { max-width: 360px; }
.footer__phone { display: block; font-size: 24px; font-weight: 700; color: #fff !important; margin-bottom: 4px; }
.footer__phone2 { display: block; font-size: 18px; font-weight: 600; color: #fff !important; opacity: .85; margin-bottom: 14px; }
.footer__contacts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--green-logo); }
.footer__max { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.footer__max .ico { width: 28px; height: 28px; }
.footer__title { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 17px; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col--cta p { font-size: 15px; }
.footer__region { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.footer__region .ico { width: 18px; color: var(--green-logo); margin-top: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer__bottom a { color: #a9bccb; }

/* ---------- Мобильная панель ---------- */
.mbar { display: none; }

/* ---------- Кнопка «Наверх» ---------- */
.to-top { position: fixed; right: 24px; bottom: 96px; z-index: 55; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 107, 153, .6); opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .25s, transform .25s var(--ease), background .2s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--blue-700); }
.to-top .ico { width: 24px; height: 24px; transform: rotate(180deg); stroke-width: 2.4; }

/* ---------- Модальные окна ---------- */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-lg); color: var(--ink-2); overflow-y: auto; }
.modal::backdrop { background: rgba(8, 20, 30, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.modal__close:hover { background: var(--line); }
.modal__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.modal__title { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; padding-right: 40px; }
.modal__text { color: var(--muted); font-size: 15px; }
.modal--media { width: min(1100px, calc(100% - 24px)); padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.modal--media .modal__close { top: -48px; right: 0; background: rgba(255, 255, 255, .9); }
.modal__media img { max-height: calc(100dvh - 100px); width: auto; margin: 0 auto; border-radius: var(--radius); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =================== Адаптив =================== */
@media (max-width: 1400px) {
	.header__in { gap: 18px; }
	.logo img { width: 170px; }
	.nav__link { padding: 10px 10px; font-size: 15px; }
	.header__phone-note { display: none; }
}
@media (max-width: 1240px) {
	.adv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
	.nav, .header__max { display: none; }
	.header__actions { margin-left: auto; }
	.burger { display: inline-grid; }
	.topbar__item:nth-of-type(3) { display: none; }
	.hero__in, .cta__in, .page-hero__in, .about__in, .team__in, .intro__in { grid-template-columns: minmax(0, 1fr); }
	.hero__form { max-width: 560px; }
	.price-grid { grid-template-columns: repeat(2, 1fr); }
	.steps__list { grid-template-columns: repeat(2, 1fr); }
	.reels { grid-template-columns: repeat(2, 1fr); }
	.carousel { grid-auto-columns: calc((100% - 20px) / 2); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__aside { position: static; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.about__visual { max-width: 560px; }
	.page-hero__media { max-width: 640px; }
}
@media (max-width: 760px) {
	body { font-size: 16px; padding-bottom: 72px; }
	:root { --header-h: 64px; }
	.topbar__in { gap: 14px; overflow: hidden; }
	.topbar__item { display: none; }
	.topbar__badge { font-size: 13px; }
	.logo img { width: 150px; }
	.header__in { gap: 12px; }
	.header__phone { display: none; }
	.header__cta { display: none; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 18px 12px 18px 0; }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
	.price-grid, .steps__list, .review-grid, .intro__checks { grid-template-columns: minmax(0, 1fr); }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
	.gallery__item--0 { grid-column: span 2; }
	.gallery__item--1 { grid-row: span 1; }
	.reels { gap: 10px; }
	.carousel { grid-auto-columns: 88%; }
	.review { flex-direction: column; }
	.review__scan { width: 100%; max-height: 220px; }
	.review__scan img { object-fit: cover; object-position: top; max-height: 220px; width: 100%; }
	.review--single .review__scan { width: 100%; max-height: none; }
	.review--single .review__scan img { max-height: none; }
	.adv-grid { grid-template-columns: repeat(2, 1fr); }
	.promo { grid-template-columns: 1fr; }
	.svc-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.svc-row__go { grid-column: 2; justify-self: start; padding: 8px 14px; font-size: 14px; }
	.svc-row__title { font-size: 17px; margin-bottom: 6px; }
	.incl__item { flex-direction: column; padding: 18px; }
	.incl__img { width: 100%; max-width: 220px; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.about__years { right: 12px; bottom: 16px; padding: 14px 18px; }
	.about__years-num { font-size: 40px; }
	.page-hero__badge { left: 12px; bottom: 12px; }
	.section__head--row .tabs { width: 100%; }
	.section__head--row .tabs__btn { flex: 1; justify-content: center; padding: 10px 8px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
	.mbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; }
	.mbar__btn .ico { width: 22px; height: 22px; }
	.mbar__btn--accent { background: var(--green); border-color: var(--green); color: #fff; }
	.to-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
	.modal--media .modal__close { top: 8px; right: 8px; }
}

/* Карточки-фото на телефоне — по две в ряд, иначе длинная лента крупных фото */
@media (max-width: 760px) { .legacy-cols.legacy-cols--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .legacy-cols--photos > div { font-size: 14px; padding-bottom: 10px; } }
/* Карточка без фото среди фото-карточек — на телефоне во всю ширину (иначе нечётное число ломает ряды) */
@media (max-width: 760px) { .legacy-cols.legacy-cols--photos > div:not(:has(> img)) { grid-column: 1 / -1; padding: 14px; } }
.legacy-cols--photos > div:not(:has(> img)) { display: flex; align-items: center; justify-content: center; padding: 14px; }
