/* ОКЕЛЬ · основной стиль сайта
   Здесь: шрифт, цвета, кнопки, шапка, меню, первый экран главной, попапы.
   Шрифт один на весь сайт – Wix Madefor Display, лежит на нашем хостинге (assets/fonts).
   Цвета и размеры шапки взяты с текущего ok-e.ru: текст #202020, меню 14 px, телефоны 16 px,
   кнопки и маркеры в зелёном градиенте #44D68F → #45BC82. */

/* ===== шрифт ===== */
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/wix-madefor-display-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/wix-madefor-display-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: "Wix Madefor Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/wix-madefor-display-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* запасной шрифт с подогнанными размерами: пока грузится основной, строки не прыгают */
@font-face {
  font-family: "Wix Madefor Display Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 103.6%;
  ascent-override: 97.3%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}

/* ===== токены ===== */
:root {
  /* цвет */
  --c-g1: #44D68F;          /* зелёный сайта, светлый край градиента */
  --c-g2: #45BC82;          /* зелёный сайта, тёмный край */
  --grad: linear-gradient(96deg, #44D68F 0%, #45BC82 100%);
  --c-green-700: #176B45;   /* зелёный текст и значки на белом: 6,5:1 */
  --c-green-600: #1E7D52;   /* белый текст на нём 5,1:1; рамка фокуса */
  --c-green-100: #DDF5E8;
  --c-green-50: #F0FAF4;
  --c-ink: #202020;         /* основной текст сайта: 16,3:1 */
  --c-ink-2: #4A4F4C;       /* вторичный текст: 8,4:1 */
  --c-ink-3: #666B68;       /* подписи и подсказки в полях: 5,4:1 */
  --c-line: rgba(32, 32, 32, .12);   /* тонкий контур, как у меню на ok-e.ru */
  --c-line-strong: #C9D0CC;
  --c-soft: #F5F7F6;
  --c-dark: 12, 22, 15;     /* RGB затемнения на фото: почти чёрный с зелёным оттенком */
  --c-sale: #D3281E;        /* акция и ошибки: белый на нём 5,1:1 */
  --c-white: #fff;

  /* форма */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-pop: 0 24px 64px rgba(12, 22, 15, .30);

  /* шрифт */
  --f: "Wix Madefor Display", "Wix Madefor Display Fallback", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* сетка */
  --wrap: 1392px;
  --gutter: 24px;
  --hdr-top: 76px;          /* верхняя ступень шапки: логотип, подписи, телефоны */
  --hdr-nav: 56px;          /* нижняя ступень: меню; она остаётся при прокрутке */
  --hdr-h: calc(var(--hdr-top) + var(--hdr-nav));   /* вся шапка целиком: под прозрачной шапкой лежит первый экран главной */
  --hero-r: 50px;           /* скругление нижних углов первого экрана */
  --mbar-h: 60px;           /* высота нижней панели на телефоне без отступа безопасной зоны; от неё считаются места «Наверх», баннера cookie и низа страницы */
  --hero-more: 40px;        /* на столько фон первого экрана выше окна: под плашкой фактов остаётся полоса фото */
  --sec-y: clamp(56px, calc(6.2vw + 8px), 104px);   /* вертикальный отступ секций главной: 56 на телефоне, до 104 на широком экране */
  --hdr-gap: 16px;   /* компактные отступы с обеих сторон разделителей в верхней строке */
  --edge-a: .32;            /* обводка стекла (правило ниже): яркий конец градиента */
  --edge-b: .16;            /* и тусклый конец; в среднем .24, как у плашки с фактами */
  --focus: var(--c-green-600);
  --panel-dark: radial-gradient(60% 90% at 100% 0%, rgba(68, 214, 143, .20), transparent 62%), radial-gradient(55% 70% at 0% 100%, rgba(69, 188, 130, .12), transparent 66%), linear-gradient(165deg, #183222 0%, #0F1D14 55%, #0A140D 100%);   /* фон тёмных панелей: «Есть свой проект?» и подвал */
  --sbw: 0px;               /* ширина полосы прокрутки, ставится скриптом при блокировке */
}

/* ===== основа ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--c-ink); background: var(--c-white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-dark { --focus: #fff; }
html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nb { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--c-ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* значки: один набор, штрих наследует цвет текста */
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ===== кнопки и ссылки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 500; font-size: 16px; line-height: 1.1; letter-spacing: .005em; text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer; transition: filter .18s, box-shadow .18s, transform .18s, background-color .18s, color .18s, border-color .18s; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 60px; padding: 0 9px 0 32px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
/* главная кнопка: градиент сайта и белый текст; лёгкая тень под буквами держит читаемость на светлом зелёном */
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(69, 188, 130, .34), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 72, 42, .34); }
.btn--primary:hover { filter: brightness(.94) saturate(1.06); box-shadow: 0 14px 32px rgba(69, 188, 130, .44), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn__go { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c-green-700); text-shadow: none; transition: transform .18s; }
.btn__go .i { stroke-width: 2.3; }
.btn:hover .btn__go { transform: translateX(3px); }
.btn--outline { background: #fff; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--outline:hover { border-color: var(--c-g2); color: var(--c-green-700); background: var(--c-green-50); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; line-height: 1.2; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 6px; text-decoration-thickness: 1.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 1px 14px rgba(0, 0, 0, .45); }
.link-arrow .i { stroke-width: 2; transition: transform .18s; }
.link-arrow:hover { text-decoration-color: #fff; }
.link-arrow:hover .i { transform: translateX(4px); }
.link-dotted { padding: 0; min-height: 36px; border: 0; background: none; font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--c-ink-2); text-decoration: underline dotted; text-underline-offset: 5px; cursor: pointer; }
.link-dotted:hover { color: var(--c-ink); }
.on-dark .link-dotted { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.on-dark .link-dotted:hover { color: #fff; }

.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-ink); text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.iconbtn:hover { background: var(--c-green-50); border-color: var(--c-g2); color: var(--c-green-700); }
.iconbtn--green { border-color: transparent; background: var(--grad); color: #fff; }
.iconbtn--green:hover { border-color: transparent; background: var(--grad); color: #fff; filter: brightness(.94); }
.iconbtn__count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-green-600); color: #fff; font-weight: 700; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.iconbtn__count[hidden] { display: none; }
.msg { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; transition: transform .18s, box-shadow .18s; }
.msg img { width: 40px; height: 40px; }
.msg:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12, 22, 15, .22); }

/* ===== шапка ===== */
/* Шапка липкая. Верхняя ступень (логотип, подписи, телефоны) уезжает вверх вместе со страницей,
   нижняя (меню) остаётся на экране: поэтому ничего не прыгает. Класс is-compact ставит скрипт,
   когда верхняя ступень ушла за край: тогда в нижней появляются малый логотип и телефон. */
.hdr { position: sticky; top: calc(var(--hdr-top) * -1); z-index: 40; }
.hdr__top { height: var(--hdr-top); background: #fff; transition: background-color .2s, border-color .2s; }
.hdr__row { display: flex; align-items: center; height: 100%; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 52px; width: auto; }
.hdr__about { flex: 0 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--c-ink); text-wrap: balance; }
.hdr__about--1, .hdr__about--2 { margin-left: var(--hdr-gap); padding-left: var(--hdr-gap); border-left: 1px solid var(--c-line); }   /* слева у каждой подписи чёрточка: от неё до текста и до соседа по --hdr-gap */
.hdr__about--1 { margin-left: calc(var(--hdr-gap) + 50px); }
.hdr__about--2 { font-weight: 400; color: var(--c-green-700); }
.hdr__contacts { display: flex; flex: none; align-items: center; gap: 18px; margin-left: auto; padding-left: 16px; }
.hdr__actions { display: flex; align-items: center; gap: 8px; }
.hdr__phones { display: flex; flex-direction: column; align-items: flex-end; margin-left: -8px; }
.hdr__phones .phone { font-size: 20px; }
.hdr__expert { display: flex; align-items: center; gap: 8px; }
.hdr__avatar { position: relative; display: block; width: 38px; height: 38px; flex: none; overflow: hidden; border-radius: 50%; }
.hdr__avatar img { position: absolute; width: 96px; height: 120px; max-width: none; left: -28px; top: -8px; }
.hdr__expert-copy { display: flex; flex-direction: column; gap: 2px; max-width: 154px; font-size: 11px; line-height: 1.15; }
.hdr__expert-copy b { font-size: 12px; }
.hdr__expert-copy > span { color: var(--c-ink-2); text-wrap: balance; }
.phone { font-weight: 600; font-size: 16px; line-height: 1.375; color: var(--c-ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--c-green-600); }
.hdr__m { display: none; align-items: center; gap: 8px; margin-left: auto; }

.hdr__nav { height: var(--hdr-nav); border-bottom: 1px solid var(--c-line); background: #fff; transition: box-shadow .2s, background-color .2s; }
.hdr__nav .wrap { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__item { display: flex; align-items: center; position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 999px; background: none; font-weight: 400; font-size: 14px; line-height: 1; color: var(--c-ink); text-decoration: none; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.nav__link:hover, .nav__item.is-open > .nav__link { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.nav__link[aria-current="page"] { border-color: transparent; background: var(--c-green-100); color: var(--c-green-700); }
.nav__link .i { stroke-width: 2.4; transition: transform .18s; }
.nav__item.is-open > .nav__link .i { transform: rotate(180deg); }

.hdr__minilogo { display: none; flex: none; margin-right: 8px; }
.hdr__minilogo img { height: 34px; width: auto; }
.hdr__mini { display: none; align-items: center; gap: 12px; margin-left: auto; }
.hdr__miniphone { display: none; }
.hdr__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__minilogo, .hdr__mini, .hdr__tools { flex: none; }
.hdr .btn { white-space: nowrap; }

.search { position: relative; width: 244px; }
.search > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-ink-3); pointer-events: none; }
.search__input { width: 100%; height: 40px; padding: 0 44px 0 40px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 400; font-size: 14px; line-height: 1.2; color: var(--c-ink); transition: border-color .15s, box-shadow .15s; }
.search__input::placeholder { color: var(--c-ink-3); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:hover { border-color: var(--c-line-strong); }
.search__input:focus { outline: none; border-color: var(--c-g2); box-shadow: 0 0 0 4px rgba(69, 188, 130, .2); }
.search__go { position: absolute; right: 4px; top: 4px; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--grad); color: #fff; transition: filter .15s; }
.search__go:hover { filter: brightness(.93); }
.search__go .i { stroke-width: 2.3; }
.iconbtn--search { display: none; }
/* подсказки поиска: список под полем в шапке, в меню на телефоне, на страницах 404 и /search; скрипт – main.js */
.suggest { position: absolute; z-index: 75; left: 0; right: 0; top: calc(100% + 6px); max-height: min(420px, 60vh); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-pop); }
.suggest[hidden] { display: none; }
.suggest__item { margin: 0; }
.suggest__link { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--c-ink); font-size: 15.5px; line-height: 1.3; text-decoration: none; }
.suggest__kind { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--c-ink-3); white-space: nowrap; }
.suggest__item[aria-selected="true"] .suggest__link, .suggest__link:hover { background: var(--c-green-50); color: var(--c-green-700); }
.suggest__item[aria-selected="true"] .suggest__link { box-shadow: inset 0 0 0 2px var(--c-g2); }
.hdr .suggest, .mmenu .suggest { left: auto; right: 0; width: max(100%, min(400px, 92vw)); }
.mmenu .suggest { left: 0; right: 0; width: auto; }
.suggest__link > span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* меню «Проекты» (версия 22): окно во всю ширину контентной сетки. Привязано не к кнопке «Проекты», а к строке меню (.hdr__nav .wrap, у неё position: relative и
   ширина сетки), поэтому края окна совпадают с краями логотипа и кнопки «Обратный звонок». Окно прилегает к нижней границе строки меню.
   Внутри два блока: «Категории» (четыре колонки: картинка 96×72 слева, название и число проектов справа) и под чертой «Частые подборки» (те же четыре колонки).
   Если окно не помещается по высоте (очень низкое окно браузера), прокручивается внутренняя часть .mega__in; саму .mega обрезать нельзя: из неё торчит мостик ::before. */
.nav__item--mega { position: static; }
.mega { --mt-w: 96px; --mt-h: 72px; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-pop); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }   /* мостик над окном: указатель переходит от кнопки к окну, не покидая меню */
.mega__in { max-height: calc(100vh - var(--hdr-h) - 28px); overflow-y: auto; overscroll-behavior: contain; padding: 32px 40px 28px; border-radius: inherit; }
.hdr.is-compact .mega__in { max-height: calc(100vh - var(--hdr-nav) - 28px); }   /* в сжатой шапке верхней части нет, места больше */
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__title { margin-bottom: 14px; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); opacity: .6; }   /* подпись блока бледная; такая же в меню на телефоне */
.mega__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; margin-inline: -14px; }   /* минус 14 px = поле ссылки: края картинок и текста совпадают с краем подписи блока */
.mega__link { display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 0 14px; border-radius: 16px; font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--c-ink); text-decoration: none; transition: background-color .15s, color .15s; }
.mega__link:hover { background: var(--c-green-50); color: var(--c-green-700); }
.mega__link[aria-current] { background: var(--c-green-100); color: var(--c-green-700); }
/* категории: слева картинка 96×72, число проектов – над названием справа, как степень (12 px, бледно) */
.mega__link--cat { min-height: calc(var(--mt-h) + 12px); padding-block: 6px; }
.mega__thumb { position: relative; flex: none; width: var(--mt-w); height: var(--mt-h); overflow: hidden; border-radius: 14px; }
.mega__thumb .ph .i { width: 28px; height: 28px; stroke-width: 1.4; }
.mega__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__name { display: block; min-width: 0; text-wrap: balance; }   /* длинное название делится на две ровные строки */
.mega__n { margin-left: 3px; font-weight: 500; font-size: 12px; line-height: 1; vertical-align: top; opacity: .5; white-space: nowrap; }
/* частые подборки: под чертой, обычные строки в тех же колонках */
.mega__col--sel { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.mega__list--picks { gap: 2px 12px; }
.mega__link--pick { min-height: 42px; font-weight: 500; font-size: 16px; }
/* Ниже 1440 окно узкое: картинка 88×66 и поля меньше, чтобы названия («Каркасные дома 69») помещались в одну строку; ниже 1280 картинка 80×60 */
@media (max-width: 1439px) {
  .mega { --mt-w: 88px; --mt-h: 66px; }
  .mega__in { padding: 30px 36px 26px; }
  .mega__list { margin-inline: -12px; }
  .mega__link { gap: 16px; padding-inline: 12px; font-size: 16.5px; }
}
@media (max-width: 1279px) {
  .mega { --mt-w: 80px; --mt-h: 60px; }
  .mega__in { padding: 28px 28px 24px; }
  .mega__list { gap: 6px 10px; }
  .mega__link { gap: 14px; font-size: 16px; }
  .mega__thumb { border-radius: 12px; }
  .mega__thumb .ph .i { width: 24px; height: 24px; }
  .mega__col--sel { margin-top: 18px; padding-top: 18px; }
  .mega__link--pick { font-size: 15.5px; }
}

/* поиск в сжатой шапке раскрывается панелью под ней */
.searchpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(480px, 100%); padding: 10px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-pop); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.searchpanel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.searchpanel .search { width: 100%; }
.searchpanel .search__input { height: 46px; }
.searchpanel .search__go { top: 7px; right: 7px; }

/* сжатая шапка: верх ушёл, меню стекло с размытием */
.hdr.is-compact .hdr__nav { border-bottom-color: transparent; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 8px 28px rgba(12, 22, 15, .1); }
.hdr.is-compact .hdr__minilogo, .hdr.is-compact .hdr__mini { display: flex; animation: appear .24s ease both; }
.hdr.is-compact .hdr__tools { margin-left: 0; }
.hdr.is-compact .hdr__tools .search { display: none; }
.hdr.is-compact .iconbtn--search { display: inline-flex; }

/* ===== шапка поверх фото (главная) =====
   Вариант over: шапка прозрачная и лежит на фото первого экрана, надписи и значки светлые, логотип светлый.
   Как только страницу прокрутили (класс is-compact), шапка становится обычной белой. Первый экран подтянут под неё. */
.logo--light { display: none; }
.hdr--over { margin-bottom: calc(var(--hdr-h) * -1); }
.hdr--over:not(.is-compact) { isolation: isolate; }
@media (min-width: 1024px) {
  .hdr--over:not(.is-compact)::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto; height: calc(var(--hdr-h) + 32px); pointer-events: none; background: linear-gradient(180deg, rgba(var(--c-dark), .1), rgba(var(--c-dark), 0)); }
  .hdr--over:not(.is-compact) .hdr__top, .hdr--over:not(.is-compact) .hdr__nav { position: relative; z-index: 1; }
}
.hdr--over:not(.is-compact) .logo--color { display: none; }
.hdr--over:not(.is-compact) .logo--light { display: inline; }
.hdr--over:not(.is-compact) .hdr__top, .hdr--over:not(.is-compact) .hdr__nav { border-color: transparent; background: transparent; }
.hdr--over:not(.is-compact) .hdr__about { color: rgba(255, 255, 255, .96); text-shadow: 0 1px 12px rgba(var(--c-dark), .5); }
.hdr--over:not(.is-compact) .hdr__about--1, .hdr--over:not(.is-compact) .hdr__about--2 { border-left-color: rgba(255, 255, 255, .4); }
.hdr--over:not(.is-compact) .hdr__about--2 { color: #fff; }
.hdr--over:not(.is-compact) .phone { color: #fff; text-shadow: 0 1px 12px rgba(var(--c-dark), .5); }
.hdr--over:not(.is-compact) .hdr__expert-copy { color: #fff; text-shadow: 0 1px 10px rgba(var(--c-dark), .6); }
.hdr--over:not(.is-compact) .hdr__expert-copy > span { color: rgba(255, 255, 255, .86); }
.hdr--over:not(.is-compact) .phone:hover { color: var(--c-g1); }
.hdr--over:not(.is-compact) .nav__link, .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green), .hdr--over:not(.is-compact) .hdr__tools .search__input {
  border-color: transparent; background: rgba(var(--c-dark), .34); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }   /* тёмное стекло: белый текст читается и на светлых местах фото; обводку рисует кольцо из блока «обводка стекла» */
.hdr--over:not(.is-compact) .nav__link:hover, .hdr--over:not(.is-compact) .nav__item.is-open > .nav__link, .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green):hover {
  --edge-a: .95; --edge-b: .6; border-color: transparent; background: rgba(var(--c-dark), .52); color: #fff; }
.hdr--over:not(.is-compact) .nav__link[aria-current="page"] { --edge-a: .95; --edge-b: .6; border-color: transparent; background: rgba(var(--c-dark), .52); color: #fff; }
.hdr--over:not(.is-compact) .hdr__tools .search > .i { z-index: 1; color: rgba(255, 255, 255, .9); }   /* z-index: поле с размытием иначе ложится поверх значка */
.hdr--over:not(.is-compact) .hdr__tools .search__input::placeholder { color: rgba(255, 255, 255, .92); }
.hdr--over:not(.is-compact) .hdr__tools .search:hover { --edge-a: .95; --edge-b: .6; }
.hdr--over:not(.is-compact) .hdr__tools .search:focus-within { --edge-a: 1; --edge-b: 1; }
.hdr--over:not(.is-compact) .hdr__tools .search__input:focus { background: rgba(var(--c-dark), .55); box-shadow: 0 0 0 4px rgba(255, 255, 255, .24); }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ===== меню на телефоне и планшете ===== */
.mmenu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.mmenu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mmenu__bar { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 16px; border-bottom: 1px solid var(--c-line); }
.mmenu__bar .iconbtn { width: 44px; height: 44px; }
.mmenu__bar .hdr__logo img { height: 40px; }
.mmenu__search { padding: 14px 16px 0; }
.mmenu__search .search { width: 100%; }
.mmenu__search .search__input { height: 48px; font-size: 16px; }
.mmenu__search .search__go { top: 7px; right: 7px; }
.mmenu__list { padding: 6px 16px 0; }
.mmenu__row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--c-line); background: none; font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--c-ink); text-decoration: none; text-align: left; }
.mmenu__row .i { color: var(--c-ink-3); stroke-width: 2.2; transition: transform .18s; }
.mmenu__row[aria-expanded="true"] { color: var(--c-green-700); }
.mmenu__row[aria-expanded="true"] .i { transform: rotate(180deg); color: var(--c-green-700); }
.mmenu__row small { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: 10px; padding: 0 7px; border-radius: 12px; background: var(--c-green-600); color: #fff; font-weight: 700; font-size: 13px; }
.mmenu__row small[hidden] { display: none; }
.mmenu__row[hidden] { display: none; }
.mmenu__sub { --mt-w: 72px; --mt-h: 54px; padding: 6px 0 14px; border-bottom: 1px solid var(--c-line); }   /* --mt-w и --mt-h: размер картинки категории, как у окна на компьютере */
.mmenu__sub[hidden] { display: none; }
.mmenu__sub a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--c-ink); text-decoration: none; }
.mmenu__sub a:hover { background: var(--c-green-50); color: var(--c-green-700); }
.mmenu__sub a[aria-current] { background: var(--c-green-100); color: var(--c-green-700); }
/* категории в меню на телефоне (версия 23): слева картинка 72×54 (на планшете крупнее, на очень узком экране мельче), справа название; число проектов «69 шт» стоит над названием
   справа от него, как степень (класс .mega__n из меню на компьютере: 12 px, непрозрачность .5). Слово «проектов» дописано только для чтения с экрана (.sr-only). */
.mmenu__sub .mmenu__cat { justify-content: flex-start; gap: 14px; min-height: calc(var(--mt-h) + 12px); padding-block: 6px; border-radius: 16px; font-weight: 600; font-size: 17px; }
@media (min-width: 600px) { .mmenu__sub { --mt-w: 88px; --mt-h: 66px; } .mmenu__sub .mmenu__cat { gap: 18px; } }
@media (max-width: 359px) { .mmenu__sub { --mt-w: 64px; --mt-h: 48px; } .mmenu__sub .mmenu__cat { gap: 12px; font-size: 16px; } }
.mmenu__sub .mega__title { margin: 0; padding: 24px 12px 6px; }   /* над подписью на 10 px больше, чем было (14): блоки не слипаются */
.mmenu__foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding: 20px 16px 24px; border-top: 1px solid var(--c-line); background: var(--c-soft); }
.mmenu__about { font-size: 14px; line-height: 1.4; color: var(--c-ink-2); }
.mmenu__about b { display: block; margin-top: 4px; font-weight: 600; color: var(--c-green-700); }
.mmenu__phones { display: flex; flex-direction: column; gap: 10px; }
.mmenu__phones a { display: flex; align-items: center; gap: 12px; min-height: 46px; font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--c-ink); text-decoration: none; }
.mmenu__phones .i { color: var(--c-green-700); }
.mmenu__msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mmenu__msgs a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 500; font-size: 16px; line-height: 1; color: var(--c-ink); text-decoration: none; }
.mmenu__msgs img { width: 28px; height: 28px; }

/* ===== первый экран ===== */
/* нижние углы скруглены (--hero-r); следующий блок заходит под них на ту же величину, поэтому в вырезах виден его фон, а не белый.
   Блоку сразу после первого экрана: класс .under-hero и к верхнему отступу прибавить var(--hero-r) */
.hero { position: relative; z-index: 1; isolation: isolate; display: flex; flex-direction: column; min-height: calc(720px + var(--hero-more)); margin-bottom: calc(var(--hero-r) * -1); border-radius: 0 0 var(--hero-r) var(--hero-r); overflow: hidden; background: #1A2A1D; color: #fff; }
@supports (min-height: 100svh) {
  .hero { min-height: clamp(calc(580px + var(--hdr-h) + var(--hero-more)), calc(100svh + var(--hero-more)), calc(900px + var(--hdr-h) + var(--hero-more))); }
}
.under-hero { scroll-margin-top: calc((var(--hero-r) + 16px) * -1); }   /* ссылка-якорь на этот блок приземляется ниже скруглённого низа первого экрана, а не на его полосу фото */
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }   /* версия 25: новое фото (семья справа, размытая листва слева): прижато к правому краю, чтобы при обрезке по бокам вся семья оставалась в кадре; текст лежит слева на листве и саду под затемнением */
@media (min-width: 600px) and (max-width: 1023px) { .hero__media img { object-position: 90% 50%; } }   /* планшет: окно узкое, сдвиг чуть влево оставляет в кадре отца, мать и сына */
/* затемнение: сверху под шапкой, слева под текстом, снизу под плашкой с фактами; справа фото остаётся ярким */
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(var(--c-dark), .66) 0, rgba(var(--c-dark), .36) calc(var(--hdr-h) * .85), rgba(var(--c-dark), 0) calc(var(--hdr-h) + 90px)),
  linear-gradient(90deg, rgba(var(--c-dark), .78) 0%, rgba(var(--c-dark), .70) 24%, rgba(var(--c-dark), .48) 42%, rgba(var(--c-dark), .16) 60%, rgba(var(--c-dark), 0) 74%),
  linear-gradient(0deg, rgba(var(--c-dark), .5) 0%, rgba(var(--c-dark), .16) 24%, rgba(var(--c-dark), 0) 42%); }
.hero__wrap { display: flex; flex: 1; flex-direction: column; gap: 32px; padding-block: calc(var(--hdr-h) + 48px) calc(32px + var(--hero-more)); }
.hero__body { display: flex; flex: 1; align-items: center; }
.hero__text { max-width: 660px; }
.hero__title { font-weight: 800; font-size: clamp(38px, calc(3.5vw + 4px), 58px); line-height: 1.06; letter-spacing: -.024em; color: #fff; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .3); }
.hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; }
.hero__lead { max-width: 560px; margin-top: 20px; font-weight: 400; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .94); text-wrap: pretty; text-shadow: 0 1px 14px rgba(0, 0, 0, .38); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
/* главная кнопка первого экрана: выше большой кнопки на 10 px и длиннее на 20 px */
.hero__actions .btn--lg { min-height: 70px; min-width: 265px; padding: 0 10px 0 36px; justify-content: space-between; }
.hero__actions .btn__go { width: 50px; height: 50px; }

/* акция: стеклянная карточка в колонке с текстом, фото справа остаётся открытым */
.promo { display: flex; flex-direction: column; gap: 6px; max-width: 540px; margin-top: 26px; padding: 16px 20px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-lg); background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); color: #fff; }
.promo__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.promo__badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--c-sale); color: #fff; font-weight: 700; font-size: 11.5px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.promo__until { font-weight: 600; font-size: 14px; line-height: 1.2; color: rgba(255, 255, 255, .92); }
.promo__head .link-dotted { margin-left: auto; }
.promo__title { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.015em; color: #fff; white-space: nowrap; }
.promo__text { font-weight: 400; font-size: 15px; line-height: 1.42; color: rgba(255, 255, 255, .9); }
.promo .link-arrow { min-height: 36px; font-size: 15px; }

/* шесть фактов: стеклянная плашка с размытием фона, перед каждым пунктом капля-маркер сайта */
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-xl); background: rgba(var(--c-dark), .42); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 60px rgba(0, 0, 0, .26); }
.facts li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.fact { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 20px 22px; font-weight: 500; font-size: 14.5px; line-height: 1.38; color: rgba(255, 255, 255, .95); text-decoration: none; transition: background-color .18s; }
.fact::before { content: ""; flex: none; width: 16px; height: 13px; margin-top: 4px; background: url("../img/drop.svg") no-repeat center / contain; }
a.fact:hover { background: rgba(255, 255, 255, .09); }
.fact strong { font-weight: 800; color: #fff; }
@media (min-width: 720px) { .fact strong { white-space: nowrap; } }

/* ===== обводка стекла =====
   Правило пользователя (2026-10-21), для всех обводок такого типа: у стеклянных элементов на фото светлая обводка 1 px,
   непрозрачность как у плашки с фактами (в среднем .24) и чуть-чуть градиентом: ярче сверху слева, прозрачнее снизу справа.
   Сейчас так обведены пункты меню, поле поиска и значки в шапке поверх фото, плашка фактов и карточка акции, кнопка воспроизведения и метки на постере видео, сердечко и значок «Сравнить» на фото карточки проекта, кнопки мессенджеров и значки соцсетей на тёмной панели и в подвале (у них при наведении – слой ::after с прозрачностью, см. ниже),
   подпись руководителя на его фото и ссылка на образец договора на тёмной панели, стрелки и счётчик фото в галерее проекта и в просмотре на весь экран (catalog.css); при наведении обводка ярче.
   Градиент у border при скруглении не получается, поэтому обводка – кольцо: псевдоэлемент с маской «только рамка».
   Новый стеклянный элемент на фото: добавить его в оба списка ниже (position: relative и ::before). */
@property --edge-a { syntax: "<number>"; inherits: true; initial-value: .32; }
@property --edge-b { syntax: "<number>"; inherits: true; initial-value: .16; }
.facts, .promo, .fav__dot, .cmpb__dot, .msgbtn, a.soc, .docl, .pgal__nav, .pgal__count, .lbox__btn, .lbox__count, .hdr--over:not(.is-compact) .nav__link, .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green), .hdr--over:not(.is-compact) .hdr__tools .search { position: relative; }
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .facts, .promo { border-color: transparent; }
  .facts { border-width: 0; padding: 1px; }   /* у плашки overflow: hidden срезал бы кольцо снаружи рамки: рамки нет, кольцо лежит по краю, а отступ 1 px держит прежнюю ширину ячеек (и переносы текста) */
  .facts::before, .promo::before, .vplay__btn::before, .vtag::before, .vtime::before, .fav__dot::before, .cmpb__dot::before, .msgbtn::before, a.soc::before, .dir__cap::before, .docl::before, .pgal__nav::before, .pgal__count::before, .lbox__btn::before, .lbox__count::before, .hdr--over:not(.is-compact) .nav__link::before, .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green)::before, .hdr--over:not(.is-compact) .hdr__tools .search::before {
    content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, var(--edge-a)), rgba(255, 255, 255, var(--edge-b)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: --edge-a .18s, --edge-b .18s; }
  .facts::before { inset: 0; }
  .hdr--over:not(.is-compact) .hdr__tools .search::before { inset: 0; border-radius: 999px; }
  /* кнопки на тёмной панели (мессенджеры и соцсети в подвале, «Есть свой проект?»): кольцо при наведении – второй слой ::after с теми же .95/.6, он только проявляется (opacity), поэтому не перерисовывается каждый кадр.
     Прежний вариант (переход --edge-a и --edge-b у слоя с маской плюс размытие фона под кнопкой) в Chrome на видеокарте давал рывки и светлые вертикальные полосы на соседних кнопках (замечание пользователя 2026-11-09). */
  .msgbtn::after, a.soc::after { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none; opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: opacity .18s; }
  .msgbtn:hover::after, a.soc:hover::after { opacity: 1; }
  .msgbtn--light::after { display: none; }
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {   /* запасной вариант: сплошная обводка той же непрозрачности */
  .vplay__btn, .vtag, .vtime, .fav__dot, .cmpb__dot, .msgbtn, a.soc, .dir__cap, .docl, .pgal__nav, .pgal__count, .lbox__btn, .lbox__count { border: 1px solid rgba(255, 255, 255, .24); }
  .vplay:hover .vplay__btn, .fav:hover .fav__dot, .cmpb:hover .cmpb__dot, .msgbtn:hover, a.soc:hover, .docl:hover, .pgal__nav:hover, .lbox__btn:hover { border-color: rgba(255, 255, 255, .8); }
  .hdr--over:not(.is-compact) .nav__link, .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green), .hdr--over:not(.is-compact) .hdr__tools .search__input { border-color: rgba(255, 255, 255, .24); }
  .hdr--over:not(.is-compact) .nav__link:hover, .hdr--over:not(.is-compact) .nav__item.is-open > .nav__link, .hdr--over:not(.is-compact) .nav__link[aria-current="page"], .hdr--over:not(.is-compact) .iconbtn:not(.iconbtn--green):hover { border-color: rgba(255, 255, 255, .8); }
}

/* внутренняя страница (заготовка): белая шапка и содержимое */
.page { padding: 56px 0 120px; }
.page__title { font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.page__text { max-width: 720px; margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--c-ink-2); }
.page__text > * + * { margin-top: 16px; }

/* ===== попап и формы ===== */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: var(--r-xl); background: #fff; color: var(--c-ink); box-shadow: var(--sh-pop); overscroll-behavior: contain; }
.modal::backdrop { background: rgba(12, 22, 15, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .24s cubic-bezier(.2, .8, .2, 1) both; }
.modal[open]::backdrop { animation: appear .24s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal__body { position: relative; padding: 40px 40px 32px; }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal__title { padding-right: 48px; font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.modal__sub { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }
.modal__text { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--c-ink-2); }
.modal__text p + p { margin-top: 10px; }
.modal__note { margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--c-ink-3); text-align: center; }
.modal__done { display: none; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 4px; }
.modal__done .iconbtn { width: 56px; height: 56px; margin-bottom: 6px; pointer-events: none; }
.modal.is-sent .form, .modal.is-sent .modal__note, .modal.is-sent .modal__sub { display: none; }
.modal.is-sent .modal__done { display: flex; }
.modal__done p { font-size: 17px; line-height: 1.5; color: var(--c-ink-2); }

.form { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--c-ink-2); }
.field__label b { color: var(--c-sale); font-weight: 700; }
.input { width: 100%; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); background: #fff; font-weight: 500; font-size: 17px; line-height: 1.2; color: var(--c-ink); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--c-ink-3); opacity: 1; }
.input:hover { border-color: var(--c-ink-3); }
.input:focus { outline: none; border-color: var(--c-green-600); box-shadow: 0 0 0 4px rgba(30, 125, 82, .18); }
.field.has-error .input { border-color: var(--c-sale); box-shadow: 0 0 0 4px rgba(211, 40, 30, .12); }
.input--select { -webkit-appearance: none; appearance: none; padding-right: 52px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A4F4C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; }
.field__error { display: none; font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--c-sale); }
.field.has-error .field__error { display: block; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--c-ink-2); cursor: pointer; }
.check__input { position: absolute; top: 0; left: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--c-line-strong); border-radius: 7px; background: #fff; color: transparent; transition: background-color .15s, border-color .15s; }
.check__box .i { width: 16px; height: 16px; stroke-width: 3.2; }
.check__input:checked + .check__box { border-color: var(--c-green-600); background: var(--c-green-600); color: #fff; }
.check__input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check:hover .check__box { border-color: var(--c-ink-3); }
.check a { color: var(--c-green-700); text-underline-offset: 3px; }
.field.has-error .check__box { border-color: var(--c-sale); box-shadow: 0 0 0 4px rgba(211, 40, 30, .12); }
.check__text { display: block; }

/* ===== секции главной (блоки 2–13): общий каркас =====
   Один ритм: отступ --sec-y сверху и снизу, заголовок с каплей-меткой, светлая лента со скруглением 50 px (как низ первого экрана), тёмная панель.
   Блоку сразу после первого экрана или после тёмной панели ставится класс .under-hero: его верх заходит под скруглённый низ предыдущего. */
.sec { position: relative; padding-block: var(--sec-y); }
.sec--soft { background: var(--c-soft); }
.sec--band { border-radius: var(--hero-r); }
.sec--pt-s { padding-top: calc(var(--sec-y) * .72); }
.sec--pb-s { padding-bottom: calc(var(--sec-y) * .72); }
.sec.under-hero { padding-top: calc(var(--sec-y) * .8 + var(--hero-r)); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: clamp(28px, 3.2vw, 48px); }
.sec__titles { min-width: 0; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--c-green-700); }
.eyebrow::before { content: ""; flex: none; width: 16px; height: 13px; background: url("../img/drop.svg") no-repeat center / contain; }
.sec__title { font-weight: 800; font-size: clamp(28px, calc(1.9vw + 15px), 46px); line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.sec__lead { max-width: 620px; margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }

/* ссылка со стрелкой на светлом фоне (на тёмном – .link-arrow) */
.link-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--c-green-700); text-decoration: underline; text-decoration-color: rgba(23, 107, 69, .32); text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: color .18s, text-decoration-color .18s; }
.link-more .i { flex: none; stroke-width: 2; transition: transform .18s; }
.link-more:hover { color: var(--c-green-600); text-decoration-color: currentColor; }
.link-more:hover .i { transform: translateX(4px); }

/* заглушка вместо фото: тёмно-зелёное поле с едва заметными досками и подписью, какое фото нужно; настоящая картинка её заменяет */
.ph { --ph-a: #24412F; --ph-b: #11201A; position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, .62);
  background: radial-gradient(90% 80% at 88% 0%, rgba(68, 214, 143, .30), transparent 62%), radial-gradient(70% 60% at 0% 100%, rgba(var(--c-dark), .55), transparent 70%), linear-gradient(155deg, var(--ph-a), var(--ph-b)); }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px); }
.ph[data-v="2"] { --ph-a: #1F3B3A; --ph-b: #0E1E20; }
.ph[data-v="3"] { --ph-a: #43321F; --ph-b: #1F170E; }
.ph[data-v="4"] { --ph-a: #2B3C22; --ph-b: #121C10; }
.ph .i { position: relative; width: 56px; height: 56px; stroke-width: 1.2; opacity: .62; }
/* подпись заглушки (какое фото нужно): по центру, мелко и бледнее значка (у него .62), чтобы не бросалась в глаза */
.ph__label { position: absolute; left: 12px; right: 12px; bottom: 12px; font-weight: 500; font-size: 10.5px; line-height: 1.3; letter-spacing: .08em; text-align: center; text-wrap: balance; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
@media (max-width: 599px) {
  .ph__label { left: 8px; right: 8px; bottom: 10px; font-size: 10px; letter-spacing: .07em; color: rgba(255, 255, 255, .36); }
}

/* ===== блок 2: видеообзор ===== */
.videos { --vgap: clamp(20px, 2.4vw, 36px); display: grid; gap: clamp(28px, 2.6vw, 40px) var(--vgap); }
.videos--one { grid-template-columns: minmax(0, 1fr); }
.videos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.videos--one .vcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
/* три ролика и больше – ряд из трёх; лишние прокручиваются, края ряда с запасом под рамку фокуса */
.videos--row { grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--vgap)) / 3); margin-inline: -6px; padding: 6px 6px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; }
.videos--row::-webkit-scrollbar { display: none; }
.videos--row .vcard { scroll-snap-align: start; }
.vcard { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.vcard__media { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-xl); background: #12201A; }
.vcard__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__media iframe, .vcard__media video { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; background: #000; }
.vplay { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-xl); background: none; color: #fff; cursor: pointer; --focus: #fff; }
.vplay:focus-visible { outline-offset: -8px; }
.vcard__media.is-playing .vplay { display: none; }
.vplay__btn { --s: clamp(64px, 6.4vw, 88px); position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: rgba(var(--c-dark), .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); transition: transform .22s, background-color .22s, color .22s; }
.vplay__btn .i { width: calc(var(--s) * .38); height: calc(var(--s) * .38); margin-left: 4px; }   /* треугольник чуть правее центра: так он выглядит по центру круга */
.vplay:hover .vplay__btn, .vplay:focus-visible .vplay__btn { --edge-a: .95; --edge-b: .6; transform: scale(1.07); background: var(--grad); color: #fff; text-shadow: 0 1px 2px rgba(0, 72, 42, .34); }
.vplay:hover .vplay__btn .i, .vplay:focus-visible .vplay__btn .i { filter: drop-shadow(0 1px 1px rgba(0, 72, 42, .34)); }   /* белый на светлом зелёном: лёгкая тень держит читаемость, как у кнопок с градиентом */
.vtag, .vtime { position: absolute; z-index: 3; display: inline-flex; align-items: center; height: 32px; border-radius: 999px; background: rgba(var(--c-dark), .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.vtag { left: 16px; top: 16px; padding: 0 14px 0 34px; background-image: url("../img/drop.svg"); background-repeat: no-repeat; background-position: 14px center; background-size: 12px 10px; background-color: rgba(var(--c-dark), .5); }
.vtime { right: 16px; bottom: 16px; padding: 0 14px; }
.vmsg { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 5; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: rgba(var(--c-dark), .9); color: #fff; font-size: 14.5px; line-height: 1.4; }
.vmsg[hidden] { display: none; }
.vcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.vcard__title { font-weight: 700; font-size: clamp(20px, calc(.6vw + 15px), 25px); line-height: 1.2; letter-spacing: -.012em; text-wrap: balance; }
.vcard__text { max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--c-ink-2); text-wrap: pretty; }

/* ===== блок 3: как мы строим ===== */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 24px); }
.tile { display: flex; flex-direction: column; grid-column: span 4; min-width: 0; padding: 10px; border: 1px solid var(--c-line); border-radius: 32px; background: #fff; }
.tile--wide { grid-column: span 6; }
.tile__top { position: relative; flex: none; }
.tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: #12201A; }
.tile--wide .tile__media { aspect-ratio: 16 / 10; }
.tile__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ph__label { bottom: auto; top: 16px; }   /* внизу фото лежит номер в капле */
/* номер в капле выступает за нижний край фото; белая кромка «вырезает» каплю из снимка */
.tile__num { position: absolute; left: 18px; bottom: -26px; z-index: 2; display: grid; place-items: center; width: 68px; height: 56px; padding-right: 12px; background: url("../img/drop-badge.svg") no-repeat center / contain; font-weight: 800; font-size: 19px; line-height: 1; color: #0C160F; }
.tile__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 44px 20px 20px; }
.tile__title { font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -.012em; }
.tile__text { font-size: 16.5px; line-height: 1.55; color: var(--c-ink-2); text-wrap: pretty; }
.tile__body .link-more { margin-top: auto; }

/* ===== блок 4: каталог ===== */
.cnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 4vw, 56px); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--c-ink); text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.chip small { font-weight: 500; font-size: 12px; color: var(--c-ink); opacity: .5; white-space: nowrap; transition: color .18s, opacity .18s; }   /* число в чипе («44 шт.» у проектов): бледное, как степень в меню (.mega__n), чтобы не сливалось с названием (версия 25, замечание пользователя 2026-11-09) */
.chip:hover { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.chip:hover small { color: var(--c-green-700); opacity: .65; }

.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head all" "cards cards"; align-items: end; gap: 0 32px; }
.cat + .cat { margin-top: clamp(44px, 5vw, 72px); }
.cat__head { grid-area: head; min-width: 0; margin-bottom: 20px; }
.cat__title { font-weight: 800; font-size: clamp(24px, calc(1vw + 16px), 32px); line-height: 1.1; letter-spacing: -.018em; }
.cat__title a { text-decoration: none; transition: color .18s; }
.cat__title a:hover { color: var(--c-green-700); }
.cat__meta { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--c-ink-2); }
.cat__all { grid-area: all; margin-bottom: 14px; }
.cards { grid-area: cards; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 16px; border: 1px solid var(--c-line); border-radius: 26px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card__media { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #12201A; }
.card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card .ph .i { width: 44px; height: 44px; }
.card__flags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.flag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.flag--hit { background: var(--grad); color: #0C160F; }
.flag--sale { background: var(--c-sale); color: #fff; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; --focus: var(--c-green-600); }
.fav__dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(var(--c-dark), .52); transition: background-color .18s, color .18s, transform .18s; }   /* без размытия: сердечек в каталоге два десятка, размытие под каждым нагрузило бы телефон */
.fav:hover .fav__dot { --edge-a: .95; --edge-b: .6; background: rgba(var(--c-dark), .66); transform: scale(1.06); }
.fav[aria-pressed="true"] .fav__dot { background: var(--grad); color: #0C160F; }
.fav[aria-pressed="true"] .i { fill: currentColor; }
/* значок «Сравнить» (версия 28): справа внизу фото карточки, вид как у сердечка; нажатое состояние – зелёный градиент и закрашенные столбики */
.cmpb { position: absolute; right: 6px; bottom: 6px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; --focus: var(--c-green-600); }
.cmpb__dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(var(--c-dark), .52); transition: background-color .18s, color .18s, transform .18s; }
.cmpb:hover .cmpb__dot { --edge-a: .95; --edge-b: .6; background: rgba(var(--c-dark), .66); transform: scale(1.06); }
.cmpb[aria-pressed="true"] .cmpb__dot { background: var(--grad); color: #0C160F; }
.cmpb[aria-pressed="true"] .i { fill: currentColor; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 10px 0; }
.card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 17px; line-height: 1.28; letter-spacing: -.008em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* вся карточка – одна ссылка */
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 26px; }
.card__params { display: flex; flex-wrap: wrap; font-size: 14.5px; line-height: 1.4; color: var(--c-ink-3); }
.card__params span { white-space: nowrap; }
.card__params span:not(:last-child)::after { content: "·"; margin: 0 .5em; }
.card__price { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card__price small { margin-right: 3px; font-weight: 600; font-size: 14px; letter-spacing: 0; color: var(--c-ink-3); }
.card__price--ask { font-weight: 600; font-size: 16px; letter-spacing: 0; color: var(--c-ink-2); }
@media (hover: hover) {
  .card:hover { border-color: rgba(69, 188, 130, .65); box-shadow: 0 20px 44px rgba(12, 22, 15, .1); transform: translateY(-3px); }
  .card:hover .card__media > img { transform: scale(1.04); }
}

.picks { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 32px; margin-top: clamp(44px, 5vw, 72px); padding: 24px 28px; border-radius: 28px; background: var(--c-soft); }
.picks__title { font-weight: 700; font-size: 18px; line-height: 1.25; }
.picks__list { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin-top: 28px; font-size: 17px; color: var(--c-ink-2); }

/* ===== блок 5: свой проект ===== */
/* тёмная панель; её низ заходит под следующий блок на --hero-r, как у первого экрана */
.own { position: relative; z-index: 1; isolation: isolate; margin-bottom: calc(var(--hero-r) * -1); padding-block: var(--sec-y); border-radius: var(--hero-r); overflow: hidden; color: #fff;
  background: var(--panel-dark); }
.own__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.own__text { min-width: 0; }
.own .eyebrow { color: var(--c-g1); }
.own__title { font-weight: 800; font-size: clamp(32px, calc(2.2vw + 14px), 52px); line-height: 1.06; letter-spacing: -.024em; text-wrap: balance; }
.own__lead { max-width: 480px; margin-top: 18px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.own__note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; font-size: 16px; line-height: 1.3; color: #fff; }
.own__note .i { color: var(--c-g1); }
.own__msgs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.msgbtn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; text-decoration: none; transition: background-color .18s; }
.msgbtn:hover { background: rgba(255, 255, 255, .15); }   /* ярче обводка при наведении – слой ::after в блоке «обводка стекла»; размытия фона нет: панель под кнопкой – ровный тёмный фон */
.msgbtn img { width: 28px; height: 28px; }
.own__plan { display: block; width: min(100%, 460px); height: auto; margin-top: 44px; color: rgba(255, 255, 255, .3); }
.own__plan text { font-family: var(--f); }

.formcard { padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: #fff; color: var(--c-ink); box-shadow: var(--sh-pop); --focus: var(--c-green-600); }
.formcard .form { gap: 20px; margin-top: 0; }
.formcard__title { font-weight: 800; font-size: clamp(22px, calc(1.2vw + 14px), 28px); line-height: 1.15; letter-spacing: -.015em; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }   /* две колонки, пока в карточке хватает места под телефон; уже – одна */
.form__fail { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--c-sale); }
.form__fail[hidden] { display: none; }
.form__fail a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__fail a:hover { text-decoration-thickness: 2px; }
.field__label small { margin-left: 6px; font-weight: 500; font-size: 13px; color: var(--c-ink-3); }
.btn--go { justify-content: space-between; }
.btn[hidden] { display: none; }   /* display кнопки сильнее атрибута hidden у браузера: без правила скрытая кнопка («Вернуться…» на странице «Спасибо») остаётся на экране */
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__go .i { display: none; }
.btn.is-loading .btn__go::after { content: ""; width: 20px; height: 20px; border: 2.5px solid var(--c-green-700); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.formhost.is-sent .form, .formhost.is-sent .modal__note { display: none; }
.formhost.is-sent .modal__done { display: flex; }
.formhost .modal__done { padding: 12px 0 4px; }
.formhost .modal__title { padding-right: 0; }
.formhost .link-dotted { min-height: 44px; }
/* белая карточка внутри тёмной секции (.own): ссылка «Отправить ещё…» не должна наследовать белый цвет .on-dark (раньше была невидимой, контраст 1,00:1) */
.on-dark .formhost .link-dotted { color: var(--c-ink-2); text-shadow: none; }
.on-dark .formhost .link-dotted:hover { color: var(--c-ink); }

/* поле для файлов: вся область – настоящий input (клик и перетаскивание работают сами) */
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-md); background: var(--c-soft); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.drop:hover, .drop.is-over { border-color: var(--c-g2); background: var(--c-green-50); }
.drop:focus-within { border-color: var(--c-green-600); box-shadow: 0 0 0 4px rgba(30, 125, 82, .18); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop__icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-green-700); }
.drop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--c-ink-3); }
.drop__text b { font-weight: 700; font-size: 16px; color: var(--c-ink); }
.drop__list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.drop__list[hidden], .drop__err[hidden] { display: none; }
.drop__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px 0 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; font-size: 14.5px; line-height: 1.3; }
.drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.drop__size { flex: none; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.drop__del { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-ink-3); transition: background-color .15s, color .15s; }
.drop__del:hover { background: var(--c-soft); color: var(--c-ink); }
.drop__err { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: #FDEEEC; }
.drop__msg { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--c-sale); }
.drop__links { display: flex; gap: 16px; margin-top: 6px; }
.drop__links a { font-weight: 600; font-size: 14px; color: var(--c-green-700); }

/* счётчик избранного в шапке подпрыгивает, когда проект добавили */
.iconbtn__count.is-bump { animation: bump .36s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

/* ===== плавающее меню на телефоне =====
   Четыре самых посещаемых раздела внизу экрана. Панель на всю ширину, вплотную к левому, правому и нижнему краю (просьба пользователя 2026-10-28: отступы занимают лишнее место),
   фон под отступом безопасной зоны (чёлка, жест «домой»). Только на узких экранах и не в горизонтальном положении телефона: там высоты и так мало.
   Пока открыто меню или попап, а также пока в фокусе поле ввода (экранная клавиатура), панель уезжает вниз. */
.mbar { display: none; }
@media (max-width: 767px) and (min-height: 461px) {
  html { scroll-padding-bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }   /* поле или флажок, на который перевели фокус, не оказывается под панелью */
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: block; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); border-top: 1px solid rgba(12, 22, 15, .1); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 -6px 24px rgba(12, 22, 15, .1); transition: transform .26s ease, opacity .2s ease, visibility 0s; }
  .mbar__list { display: flex; justify-content: space-between; gap: 0; height: var(--mbar-h); padding: 4px 4px; }
  .mbar__list > li { flex: 1 1 0; min-width: 0; }
  .mbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 4px 4px 3px; border-radius: 16px; font-weight: 500; font-size: 11.5px; line-height: 1.1; letter-spacing: -.005em; color: var(--c-ink-2); text-decoration: none; text-align: center; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color .18s, color .18s; }
  .mbar__ico { position: relative; display: block; width: 24px; height: 24px; }
  .mbar__ico .i { width: 24px; height: 24px; stroke-width: 1.8; }
  .mbar__item:active { background: var(--c-green-50); }
  .mbar__item[aria-current] { background: var(--c-green-100); color: var(--c-green-700); font-weight: 600; }
  .mbar__item .iconbtn__count { top: -6px; right: -11px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; line-height: 18px; box-shadow: 0 0 0 2px #fff; }
  html.is-locked .mbar, html.is-typing .mbar { transform: translateY(130%); opacity: 0; visibility: hidden; transition: transform .26s ease, opacity .2s ease, visibility 0s .26s; }
}
@media (max-width: 359px) {
  .mbar__item { padding-inline: 2px; font-size: 10.5px; letter-spacing: -.02em; }
}

/* ===== плавающие кнопки: Telegram, MAX, звонок и «Наверх» =====
   Правый нижний угол, на всех страницах (чанк float). Столбик контактов – от 1024 px шириной и 561 px высотой окна: он появляется, когда страницу прокрутили
   (в сжатой шапке значков мессенджеров нет), и уходит, когда к экрану подъезжает подвал с теми же контактами. «Наверх» – на любой ширине после трёх четвертей экрана прокрутки:
   на телефоне она над нижней панелью (а пока на экране баннер cookie – над ним), на планшете это единственная кнопка. Классы is-box и is-top ставит main.js; пока открыто меню или попап (is-locked), кнопок нет.
   Вид как у нижней панели на телефоне: белая плашка с размытием и тонкой тёмной рамкой; звонок – зелёный градиент с белой трубкой. Стеклянной обводки по правилу пользователя здесь нет:
   кнопки лежат не на фото, а на любом фоне страницы, поэтому им нужна плотная светлая подложка. */
.float { position: fixed; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px)); z-index: 44; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; transition: bottom .3s ease; }
.float__top, .float__box { border: 1px solid rgba(12, 22, 15, .09); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 12px 32px rgba(12, 22, 15, .2), 0 2px 8px rgba(12, 22, 15, .08); }
.float__top, .float__box { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .28s ease, background-color .18s ease, color .18s ease, visibility 0s .28s; }
.float.is-top .float__top, .float.is-box .float__box { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .28s cubic-bezier(.2, .7, .2, 1), background-color .18s ease, color .18s ease, visibility 0s; }
html.is-locked .float .float__top, html.is-locked .float .float__box { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .28s ease, background-color .18s ease, color .18s ease, visibility 0s .28s; }
.float__box { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 999px; }
.float__btn { position: relative; display: block; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; font: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.float__ico { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; transition: transform .18s ease, filter .18s ease; }
.float__ico img { width: 100%; height: 100%; border-radius: 50%; }
.float__btn--call .float__ico { background: var(--grad); box-shadow: 0 6px 14px rgba(69, 188, 130, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
.float__btn--call .i { width: 24px; height: 24px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 72, 42, .34)); }
.float__btn:hover .float__ico { transform: scale(1.07); }
.float__btn--call:hover .float__ico { filter: brightness(.94) saturate(1.06); }
.float__btn:active .float__ico { transform: scale(.95); }
.float__top { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--c-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.float__top .i { width: 22px; height: 22px; stroke-width: 2; }
.float__top:hover { background: #fff; color: var(--c-green-700); }
.float__btn:focus-visible, .float__top:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
/* кнопка «Сравнение проектов» над «Наверх» (версия 28): стоит, пока в списке сравнения есть проекты (показывает main.js); вид как у «Наверх», со счётчиком; на самой странице сравнения её нет */
.float__cmp { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(12, 22, 15, .09); border-radius: 50%; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 12px 32px rgba(12, 22, 15, .2), 0 2px 8px rgba(12, 22, 15, .08); color: var(--c-ink); text-decoration: none; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: background-color .18s ease, color .18s ease, opacity .2s ease, transform .18s ease; }
.float__cmp[hidden] { display: none; }
.float__cmp .i { width: 22px; height: 22px; stroke-width: 2; }
.float__cmp:hover { background: #fff; color: var(--c-green-700); }
.float__cmp:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.float__cmp .iconbtn__count { top: -4px; right: -4px; }
html.is-locked .float .float__cmp { opacity: 0; visibility: hidden; pointer-events: none; }
main[data-page-type="compare"] ~ .float .float__cmp { display: none; }
/* подсказка слева от кнопки: только при наведении мышью и при переходе с клавиатуры; скринридеры её пропускают (aria-hidden), название кнопки в aria-label */
.float__tip { position: absolute; top: 50%; right: calc(100% + 12px); padding: 8px 14px; border-radius: 999px; background: rgba(12, 22, 15, .9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px rgba(12, 22, 15, .28); color: #fff; font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap; text-shadow: none; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(6px, -50%); transition: opacity .16s ease, transform .2s ease, visibility 0s .2s; }
@media (hover: hover) {
  .float__btn:hover .float__tip, .float__top:hover .float__tip, .float__cmp:hover .float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
}
.float__btn:focus-visible .float__tip, .float__top:focus-visible .float__tip, .float__cmp:focus-visible .float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
@media (max-width: 1023px), (max-height: 560px) {
  .float__box { display: none; }
}
@media (max-width: 767px) {
  .float { right: max(10px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .float__top, .float__cmp { width: 44px; height: 44px; }
  .float__top .i, .float__cmp .i { width: 20px; height: 20px; }
  .float__tip { display: none; }
  html.is-typing .float .float__top, html.is-typing .float .float__cmp { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
}
@media (max-width: 767px) and (min-height: 461px) {
  .float { bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }   /* над нижней панелью mbar */
  html.has-cookie .float { bottom: calc(var(--mbar-h) + 24px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }   /* и над баннером cookie */
}
@media (max-width: 767px) and (max-height: 460px) {
  html.has-cookie .float { bottom: calc(26px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
}

/* ===== подсказка «Сравнение проектов» (версия 28) =====
   Появляется внизу экрана на несколько секунд после нажатия «Сравнить» (создаёт main.js): что произошло и ссылка «Открыть сравнение». Выше баннера cookie и нижней панели mbar, как плавающие кнопки.
   Читается скринридером (role status), закрывается крестиком и клавишей Esc, пока на ней мышь или фокус – не уходит. */
.cmpt { position: fixed; left: 50%; bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px)); z-index: 47; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; width: max-content; max-width: min(540px, calc(100% - 2 * var(--gutter))); padding: 12px 10px 12px 20px; border-radius: 22px; background: rgba(12, 22, 15, .95); box-shadow: 0 16px 40px rgba(12, 22, 15, .32), 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; opacity: 0; visibility: hidden; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .28s ease, visibility 0s .28s; }
.cmpt.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; transition: opacity .2s ease, transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.cmpt__text { grid-column: 1; font-weight: 600; font-size: 15px; line-height: 1.35; }
.cmpt__link { grid-column: 1; justify-self: start; font-weight: 700; font-size: 15px; line-height: 1.3; color: #7BE0A9; text-decoration: underline; text-decoration-color: rgba(123, 224, 169, .5); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.cmpt__link:hover { text-decoration-color: currentColor; }
.cmpt__link[hidden] { display: none; }
.cmpt__link:focus-visible, .cmpt__x:focus-visible { outline: 3px solid #7BE0A9; outline-offset: 2px; border-radius: 8px; }
.cmpt__x { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .78); cursor: pointer; transition: background-color .18s, color .18s; }
.cmpt__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 768px) {
  .cmpt { display: flex; gap: 6px 18px; padding: 10px 10px 10px 22px; border-radius: 999px; }
  .cmpt__link { white-space: nowrap; }
  html.has-cookie .cmpt { bottom: calc(var(--gutter) + var(--cookie-h, 0px) + 12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) and (min-height: 461px) {
  .cmpt { bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  html.has-cookie .cmpt { bottom: calc(var(--mbar-h) + 24px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cmpt, .cmpt.is-on { transition: none; }
}

/* ===== баннер cookie =====
   Карточка слева внизу (на телефоне – над нижней панелью mbar, на всю ширину панели). В разметке скрыт, показывает main.js через 0,9 с после загрузки, пока посетитель не нажал «Принять».
   Пока баннер на экране, у html стоят класс has-cookie и переменная --cookie-h (высота баннера): по ним плавающие кнопки встают выше, а прокрутка к полю или ссылке с клавиатуры не прячет их под баннером.
   Текст утверждён пользователем 2026-10-28 (пометки «Образец» нет); если юрист клиента поправит формулировку, меняется только чанк cookie. */
.cookie { position: fixed; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px)); z-index: 46; width: min(560px, calc(100% - 2 * var(--gutter))); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.cookie[hidden] { display: none; }
.cookie.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookie__card { display: flex; align-items: center; gap: 20px; padding: 18px 20px 18px 24px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; box-shadow: 0 18px 48px rgba(12, 22, 15, .22), 0 2px 8px rgba(12, 22, 15, .08); }
.cookie__text { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); }
.cookie__text a { color: var(--c-green-700); text-decoration: underline; text-decoration-color: rgba(23, 107, 69, .4); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.cookie__text a:hover { text-decoration-color: currentColor; }
.cookie__ok { flex: none; }
html.has-cookie { scroll-padding-bottom: calc(var(--cookie-h, 0px) + 40px); }
@media (max-width: 767px) {
  .cookie { left: 10px; right: 10px; width: auto; max-width: 420px; margin-inline: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .cookie__card { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 16px 14px; }
  .cookie__text { font-size: 13.5px; }
  html.is-typing .cookie { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
}
@media (max-width: 767px) and (min-height: 461px) {
  .cookie { bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  html.has-cookie { scroll-padding-bottom: calc(var(--cookie-h, 0px) + var(--mbar-h) + 52px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) and (max-height: 460px) {
  .cookie__card { flex-direction: row; align-items: center; }
}
@media print {
  .float, .cookie, .mbar { display: none !important; }   /* на бумаге плавающим кнопкам, баннеру и нижней панели делать нечего */
}

/* ===== блоки 6–13: общее ===== */
/* пометка «Образец», «Черновик», «Заглушка» рядом с текстом, которого клиент ещё не дал; в продакшене убирается вместе с текстом-образцом */
.draft { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #FCEFC7; color: #6F4A00; font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; vertical-align: .1em; }
.sec__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
button.link-more { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
/* кнопки мессенджеров на светлом фоне: белая кнопка с серой рамкой вместо стекла */
.msgbtn--light { min-height: 48px; padding: 0 20px 0 10px; border: 1px solid var(--c-line-strong); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--c-ink); font-size: 15px; transition: border-color .18s, background-color .18s, color .18s; }
.msgbtn--light::before { display: none; }
.msgbtn--light:hover { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.formcard--flat { border: 1px solid var(--c-line); box-shadow: none; }

/* поля попапов: многострочное поле (вопрос в «Консультации»), выбор способа связи, строка «Хочу такой же» */
.input--area { display: block; min-height: 112px; padding: 15px 18px; resize: vertical; line-height: 1.4; }
.modal__ctx { margin-top: 16px; padding: 11px 16px; border-radius: var(--r-md); background: var(--c-green-50); color: var(--c-green-700); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.modal__ctx[hidden] { display: none; }
.pills { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.pills legend { margin-bottom: 8px; padding: 0; }
.pills__row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 500; font-size: 15.5px; line-height: 1; color: var(--c-ink); transition: border-color .15s, background-color .15s, color .15s; }
.pill:hover span { border-color: var(--c-ink-3); }
.pill input:checked + span { border-color: var(--c-green-600); background: var(--c-green-50); color: var(--c-green-700); font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

/* карта: картинка-заглушка с меткой и кнопкой; настоящая карта Яндекса подставляется по нажатию (класс is-live) */
.mapbox { position: relative; isolation: isolate; display: grid; place-items: center; height: clamp(320px, 34vw, 480px); overflow: hidden; border-radius: var(--r-xl); background: #E3EBE6; }
.mapbox__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapbox__tag { position: absolute; left: 20px; top: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(12, 22, 15, .16); font-weight: 600; font-size: 14.5px; line-height: 1; color: var(--c-ink); }
.mapbox__tag .i { color: var(--c-green-700); }
.mapbox__btn { position: relative; z-index: 2; }
.mapbox .vmsg { top: 16px; bottom: auto; }
.mapbox__live { position: absolute; inset: 0; z-index: 1; }
.mapbox.is-live .mapbox__img, .mapbox.is-live .mapbox__tag, .mapbox.is-live > .mapbox__btn, .mapbox.is-live .mapcard .mapbox__btn { display: none; }
.ymb { max-width: 240px; padding: 2px; font-family: var(--f); color: var(--c-ink); }
.ymb__t { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--c-ink); text-decoration: none; }
.ymb__p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--c-ink-3); }
.ymb__term { margin: 6px 0 0; font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--c-green-700); }

/* ===== блок 6: мы построили ===== */
.mapnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--c-ink-2); }
.mapnote .i { margin-top: 1px; color: var(--c-green-700); }
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); margin-top: clamp(28px, 3.2vw, 44px); }
.cases > li { display: flex; min-width: 0; }
.case { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 8px 8px 16px; border: 1px solid var(--c-line); border-radius: 26px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.case__media { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #12201A; }
.case__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case .ph .i { width: 44px; height: 44px; }
.case__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 10px 0; }
.case__title { font-weight: 700; font-size: 18px; line-height: 1.26; letter-spacing: -.01em; text-wrap: balance; }
.case__title a { color: inherit; text-decoration: none; transition: color .18s; }
.case__title a:hover { color: var(--c-green-700); }
.case__place { font-size: 14.5px; line-height: 1.4; color: var(--c-ink-3); }
.case__term { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--c-green-700); }
.case__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.case__actions .btn { flex: 1 1 auto; padding-inline: 14px; }   /* рядом, если хватает места; иначе одна под другой на всю ширину карточки */
@media (hover: hover) {
  .case:hover { border-color: rgba(69, 188, 130, .65); box-shadow: 0 20px 44px rgba(12, 22, 15, .1); transform: translateY(-3px); }
  .case:hover .case__media > img { transform: scale(1.04); }
}

/* ===== блок 7: видеоотзывы ===== */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 44px) clamp(20px, 2.4vw, 36px); }
.rev { gap: 18px; }
.rev .vcard__body { gap: 4px; }
.rev__name { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.rev__place { font-size: 15.5px; line-height: 1.4; color: var(--c-ink-2); }
.rev__obj { font-size: 15px; line-height: 1.4; color: var(--c-ink-3); }
.rev__date { font-size: 14px; line-height: 1.3; color: var(--c-ink-3); }
.rev .link-more { min-height: 40px; margin-top: 6px; font-size: 15px; }
/* кнопка-«таблетка» вместо круглой: значок и слово «Смотреть»; по центру через translate, чтобы не мешать увеличению при наведении */
.vplay__btn--pill { --s: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: var(--s); margin: 0; padding: 0 24px 0 20px; translate: -50% -50%; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; }
.vplay__btn--pill .i { width: 20px; height: 20px; margin-left: 0; }

/* ===== блок 8: экскурсия и видеосвязь с директором ===== */
.dir { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: clamp(20px, 2.4vw, 36px); }
.dir__who { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dir__media { position: relative; isolation: isolate; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-xl); background: #12201A; }
.dir__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dir__media iframe, .dir__media video { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; background: #000; }
.dir__media.is-playing .vplay, .dir__media.is-playing .dir__cap { display: none; }
.dir__media .ph__label { top: 16px; bottom: auto; }   /* внизу фото лежит подпись с именем */
.dir__cap { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; gap: 3px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-md); background: rgba(var(--c-dark), .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); pointer-events: none; }
.dir__cap b { font-weight: 700; font-size: 18px; line-height: 1.2; }
.dir__cap span { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .92); }
.dir__quote { margin: 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--c-g2); font-size: clamp(17px, calc(.4vw + 14px), 19px); line-height: 1.55; color: var(--c-ink); text-wrap: pretty; }
.dir__quote.is-sample { color: var(--c-ink-2); }
.dir__acts { display: flex; flex-direction: column; gap: clamp(16px, 1.7vw, 24px); min-width: 0; }
.act { display: flex; flex: 1 1 auto; flex-direction: column; gap: 22px; padding: clamp(22px, 2.6vw, 38px); border: 1px solid var(--c-line); border-radius: 32px; background: #fff; }
.act--tour { border-color: rgba(69, 188, 130, .4); background: var(--c-green-50); }
.act__head { display: flex; align-items: flex-start; gap: 18px; }
.act__ico { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-700); }
.act--tour .act__ico { background: #fff; }
.act__title { font-weight: 800; font-size: clamp(21px, calc(.7vw + 16px), 27px); line-height: 1.18; letter-spacing: -.016em; text-wrap: balance; }
.act__q { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--c-ink-2); }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 12px; background: url("../img/drop.svg") no-repeat center / contain; }
.act__btn { align-self: flex-start; min-width: 320px; margin-top: auto; }
.act__msgs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.act__msgs p { margin-right: 4px; font-weight: 600; font-size: 15px; color: var(--c-ink-2); }

/* ===== блок 9: договор, оплата и этапы ===== */
.steps { --sgap: clamp(16px, 1.7vw, 28px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--sgap); }
.step { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.step__ico { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 72px; height: 72px; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-green-700); box-shadow: 0 10px 26px rgba(12, 22, 15, .06); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 86px; right: calc(var(--sgap) * -1 + 14px); border-top: 2px dashed rgba(69, 188, 130, .6); }   /* пунктир к следующему шагу */
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__no { font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--c-green-700); }
.step__title { font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -.015em; }
.step__text { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }
.pay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 1.7vw, 24px); margin-top: clamp(40px, 4.6vw, 68px); }
.paycard { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--c-line); border-radius: 32px; background: #fff; }
.paycard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.paycard__title { font-weight: 800; font-size: clamp(22px, calc(.7vw + 16px), 28px); line-height: 1.15; letter-spacing: -.015em; }
.paytable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.paytable th, .paytable td { padding: 14px 16px 14px 0; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.paytable thead th { padding-top: 0; padding-bottom: 10px; border-top: 0; font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.paytable tbody th { font-weight: 700; }
.paytable td:nth-child(2) { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paytable td:last-child { padding-right: 0; color: var(--c-ink-2); }
.paycard__methods { margin-top: auto; font-size: 16px; line-height: 1.5; color: var(--c-ink-2); }
.paycard__methods b { font-weight: 700; color: var(--c-ink); }
.paycard--dark { position: relative; isolation: isolate; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(70% 80% at 100% 0%, rgba(68, 214, 143, .22), transparent 62%), radial-gradient(60% 60% at 0% 100%, rgba(69, 188, 130, .12), transparent 66%), linear-gradient(165deg, #183222 0%, #0F1D14 60%, #0A140D 100%); }
.paycard--dark .paycard__title { color: #fff; }
.docl { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color .18s; }
.docl:hover { --edge-a: .95; --edge-b: .6; background: rgba(255, 255, 255, .14); }
.docl__ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; }
.docl__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docl__text b { font-weight: 700; font-size: 17px; line-height: 1.25; }
.docl__text small { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
.credit { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.credit .i { margin-top: 1px; color: var(--c-g1); }
.paycard__btn { align-self: stretch; margin-top: auto; }

/* ===== блок 10: блог ===== */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 36px); }
.post { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.post__cover { position: relative; flex: none; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-xl); background: #12201A; }
.post__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post__date { font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--c-ink-3); }
.post__title { font-weight: 700; font-size: clamp(19px, calc(.5vw + 15px), 23px); line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
.post__title a { color: inherit; text-decoration: none; transition: color .18s; }
.post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* вся карточка – одна ссылка */
.post__title a:focus-visible { outline: none; }
.post__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 32px; }
.post__text { font-size: 16px; line-height: 1.55; color: var(--c-ink-2); text-wrap: pretty; }
@media (hover: hover) {
  .post:hover .post__title a { color: var(--c-green-700); }
  .post:hover .post__cover > img { transform: scale(1.04); }
}

/* ===== блок 11: команда ===== */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(14px, 1.5vw, 22px); }
.person { display: flex; flex-direction: column; min-width: 0; }
.person__photo { position: relative; flex: none; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-xl); background: #12201A; }
.person__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .ph .i { width: 44px; height: 44px; }
.person__name { margin-top: 16px; font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.person__role { margin-top: 5px; font-size: 14.5px; line-height: 1.4; color: var(--c-ink-2); text-wrap: pretty; }
.person--wide { grid-column: span 2; }
.person--wide .person__photo { flex: 1 1 auto; min-height: 200px; aspect-ratio: auto; }   /* групповое фото тянется на высоту ряда */

/* ===== блок 12: вопрос-ответ ===== */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px clamp(20px, 2.4vw, 36px); }
.faq__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.q { border: 1px solid var(--c-line); border-radius: 24px; background: #fff; transition: border-color .2s, background-color .2s; }
.q[open] { border-color: rgba(69, 188, 130, .55); background: var(--c-green-50); }
.q__sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 26px; border-radius: 24px; list-style: none; cursor: pointer; }
.q__sum::-webkit-details-marker { display: none; }
.q__title { font-weight: 700; font-size: clamp(17px, calc(.4vw + 14px), 20px); line-height: 1.3; letter-spacing: -.008em; text-wrap: balance; }
.q__ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-soft); color: var(--c-green-700); transition: transform .22s, background-color .22s, color .22s; }
.q[open] .q__ico { transform: rotate(45deg); background: var(--grad); color: #fff; }
.q__sum:hover .q__ico { background: var(--c-green-100); }
.q[open] .q__sum:hover .q__ico { background: var(--grad); }
/* закрытие: пока скрипт убирает высоту ответа, вид уже «свёрнутый» (атрибут open снимается после анимации; класс ставит main.js) */
.q.is-closing { border-color: var(--c-line); background: #fff; }
.q.is-closing .q__ico { transform: none; background: var(--c-soft); color: var(--c-green-700); }
.q.is-closing .q__sum:hover .q__ico { background: var(--c-green-100); }
.q__a { padding: 0 26px 24px; font-size: 16.5px; line-height: 1.55; color: var(--c-ink-2); text-wrap: pretty; }
.q__a > * + * { margin-top: 12px; }
.q__a .link-more { min-height: 36px; font-size: 15.5px; }
.faq__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; margin-top: clamp(20px, 2.6vw, 36px); }
.faq__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 17px; color: var(--c-ink-2); }

/* ===== блок 13: о компании и контакты ===== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 3.4vw, 56px); }
.about--solo { grid-template-columns: minmax(0, 1fr); }
.about__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; font-size: 17px; line-height: 1.62; color: var(--c-ink-2); text-wrap: pretty; }
.about__text > p:first-child { font-size: 19px; line-height: 1.55; color: var(--c-ink); }
.about__text .link-more { align-self: flex-start; min-height: 40px; }
.about__photo { position: relative; flex: 1 1 auto; min-height: 300px; max-height: 620px; margin-top: 6px; overflow: hidden; border-radius: var(--r-xl); background: #12201A; }   /* фото тянется до низа правой колонки */
.about__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__side { display: flex; flex-direction: column; gap: clamp(16px, 1.7vw, 24px); min-width: 0; }
.contact { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--c-line); border-radius: 32px; background: #fff; }
.contact__row { display: flex; align-items: flex-start; gap: 16px; }
.contact__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-700); }
.contact__body { min-width: 0; }
.contact__label { font-weight: 600; font-size: 12.5px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.contact__val { margin-top: 4px; font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; }
a.contact__val { transition: color .18s; }
a.contact__val:hover { color: var(--c-green-700); text-decoration: underline; text-decoration-color: rgba(23, 107, 69, .4); text-underline-offset: 4px; }
.contact__phones { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.contact__phones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.contact__hint { font-size: 14px; line-height: 1.3; color: var(--c-ink-3); }
.contact__msgs { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__msgs .msgbtn { flex: 1 1 auto; justify-content: center; }
.contact__invite { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--c-green-50); font-size: 15.5px; line-height: 1.5; color: var(--c-ink); }
.contact__invite .i { margin-top: 1px; color: var(--c-green-700); }
.mapbox--office { margin-top: clamp(24px, 3vw, 40px); height: clamp(320px, 33vw, 460px); }
.mapcard { position: absolute; left: 20px; bottom: 20px; z-index: 3; display: flex; flex-direction: column; gap: 14px; width: min(470px, calc(100% - 40px)); padding: 18px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 14px 36px rgba(12, 22, 15, .2); }
.mapcard__addr { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.mapcard__addr .i { margin-top: 2px; color: var(--c-green-700); }
.mapcard__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mapcard__btns .btn { gap: 8px; }

/* ===== блок 14: подвал =====
   Тёмная панель, как у блока «Есть свой проект?» (общий фон --panel-dark), верхние углы скруглены на --hero-r.
   Если последний блок страницы – лента с углами (на главной это «О компании и контакты»), подвал заходит под её низ на --hero-r,
   и углы ленты открывают его тёмный фон (правила с :has; в браузере без :has подвал просто идёт следом со своими углами).
   Разметка и данные – в чанке footer. До 767 px четыре группы ссылок складываются в гармошку (main.js), шире – всегда раскрыты.
   На телефоне внизу оставлено место под плавающую панель mbar и под кнопку «Наверх» над ней (--mbar-h и ещё 44 px): оно в нижнем отступе подвала, а не у body, чтобы под тёмным фоном не было белой полосы, а в конце страницы кнопка не лежала на тексте. */
.ftr { --ftr-y: clamp(48px, calc(4.6vw + 8px), 88px); --ftr-b: clamp(24px, 2.6vw, 36px); position: relative; z-index: 0; isolation: isolate; padding-block: var(--ftr-y) var(--ftr-b); border-radius: var(--hero-r) var(--hero-r) 0 0; background: var(--panel-dark); color: rgba(255, 255, 255, .78); }
@supports selector(:has(*)) {
  main > .sec--band:last-child { z-index: 1; }
  main:has(> .sec--band:last-child) + .ftr { margin-top: calc(var(--hero-r) * -1); padding-top: calc(var(--ftr-y) + var(--hero-r)); border-radius: 0; }
}
.ftr__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 5.5vw, 96px); }
.ftr__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.ftr__logo { display: block; border-radius: 8px; }
.ftr__logo img { width: 173px; height: auto; }
.ftr__about { max-width: 340px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .72); text-wrap: pretty; }
.ftr__contacts { display: flex; flex-wrap: wrap; gap: 0 28px; }   /* два телефона в строку, почта и адрес – каждая в своей */
.ftr__contacts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.ftr__contacts .ftr__full { flex-basis: 100%; }
.ftr__phone { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.012em; color: #fff; text-decoration: none; white-space: nowrap; transition: color .18s; }
.ftr__phone:hover { color: var(--c-g1); }
.ftr__label { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .62); }
.ftr__mail { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; font-size: 17px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; overflow-wrap: anywhere; transition: text-decoration-color .18s; }
.ftr__mail:hover { text-decoration-color: #fff; }
.ftr__contacts .ftr__addr { flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin-top: 8px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.ftr__addr .i { flex: none; margin-top: 2px; color: var(--c-g1); }
.ftr__msgs { display: flex; flex-wrap: wrap; gap: 12px; }
.ftr__soc { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr__h { font-weight: 700; font-size: 12.5px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--c-g1); }
.socs { display: flex; flex-wrap: wrap; gap: 10px; }   /* ряд круглых значков соцсетей: подвал (.ftr__socs), «Контакты» (.ctlinks__socs), «О нас» (.abopen__soc); кнопку рисует общий чанк soc_icon (версия 26) */
.soc { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; text-decoration: none; }   /* круглая кнопка со знаком соцсети (версия 25; до неё были плашки с названием) */
.soc__i { width: 30px; height: 30px; fill: currentColor; stroke: none; pointer-events: none; }   /* знаки заливкой, не штрихом, как остальные значки сайта (спрайт icons, i-soc-…) */
a.soc { background: rgba(255, 255, 255, .08); transition: background-color .18s; }
a.soc:hover { background: rgba(255, 255, 255, .15); }
.soc--off { border: 1px dashed rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .6); cursor: default; }   /* адреса ещё нет: серая заглушка, не ссылка */
/* светлая панель («Контакты», «О нас»; пожелание пользователя 2026-11-10: значки везде, где есть соцсети): белая кнопка с серой рамкой и зелёным наведением, как .msgbtn--light. Стекла и кольца при наведении нет: они только для тёмного фона. Знак #202020 на белом 16:1, при наведении #176B45 на #F0FAF4 6:1. */
.soc.soc--light { border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink); transition: border-color .18s, background-color .18s, color .18s; }
a.soc.soc--light:hover { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
a.soc.soc--light::before, a.soc.soc--light::after { display: none; }
.soc--off.soc--light { border-style: dashed; background: transparent; color: var(--c-ink-3); }
.ftr__note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 340px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.ftr__nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: 32px clamp(20px, 2.4vw, 40px); align-content: start; }
.ftr__grp { min-width: 0; }
summary.ftr__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: default; }
summary.ftr__h::-webkit-details-marker { display: none; }
.ftr__chev { display: none; flex: none; transition: transform .24s; }
.ftr__list { display: flex; flex-direction: column; gap: 1px; margin-top: 12px; }
.ftr__list a:not(.link-arrow) { display: inline-block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s; }
.ftr__list a:not(.link-arrow):hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 4px; }
.ftr__all { margin-top: 8px; }
.ftr__all .link-arrow { min-height: 36px; }
.ftr__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 40px; margin-top: clamp(40px, 4.6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.ftr__legal { display: flex; flex-direction: column; gap: 14px; min-width: 0; }   /* версия 27: над строкой реквизитов ИП отступ как под ней (было 2 px) */
.ftr__copy { font-weight: 600; color: rgba(255, 255, 255, .88); }
.ftr__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 28px; }
.ftr__links a { display: inline-block; padding: 4px 0; color: rgba(255, 255, 255, .8); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.ftr__links a:hover { color: #fff; text-decoration-color: #fff; }
.ftr__offer { grid-column: 1 / -1; max-width: 780px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
/* версия 27 (просьба пользователя 2026-11-10): весь нижний текст подвала на компьютере 12 px: ©, реквизиты ИП, ссылки справа и оговорка про оферту; до 1023 прежние 14 и 13,5 px */
@media (min-width: 1024px) {
  .ftr__bottom, .ftr__offer { font-size: 12px; }
}
/* подвал по ширинам: до 1199 слева и справа не помещаются – сверху контакты, ниже четыре колонки ссылок; до 1023 – две колонки; до 767 – гармошка */
@media (max-width: 1199px) {
  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ftr__brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "logo contacts" "about contacts" "msgs soc"; align-items: start; gap: 22px 48px; }
  .ftr__logo { grid-area: logo; justify-self: start; }
  .ftr__about { grid-area: about; }
  .ftr__contacts { grid-area: contacts; }
  .ftr__msgs { grid-area: msgs; }
  .ftr__soc { grid-area: soc; }
}
@media (max-width: 1099px) {
  .ftr__bottom { grid-template-columns: minmax(0, 1fr); }   /* ссылки уходят под реквизиты: рядом им не хватает места */
  .ftr__links { justify-content: flex-start; }
}
@media (max-width: 1023px) {
  .ftr__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}
@media (max-width: 767px) {
  .ftr__top { gap: 36px; }
  .ftr__brand { display: flex; }
  .ftr__nav { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .ftr__grp { border-top: 1px solid rgba(255, 255, 255, .14); }
  summary.ftr__h { min-height: 56px; cursor: pointer; font-size: 13px; }
  .ftr__chev { display: block; color: #fff; }
  .ftr__grp[open]:not(.is-closing) .ftr__chev { transform: rotate(180deg); }
  .ftr__list { margin-top: 0; padding-bottom: 14px; }
  .ftr__list a:not(.link-arrow) { display: block; padding: 11px 0; font-size: 15px; }
  .ftr__bottom { grid-template-columns: minmax(0, 1fr); margin-top: 28px; padding-top: 0; border-top: 0; }
  .ftr__links { flex-direction: column; justify-content: flex-start; }
  .ftr__links a { padding: 8px 0; }
}
@media (max-width: 767px) and (min-height: 461px) {
  .ftr { padding-bottom: calc(var(--ftr-b) + var(--mbar-h) + 44px + env(safe-area-inset-bottom, 0px)); }   /* место под нижнюю панель (--mbar-h) и под кнопку «Наверх» над ней (12 + 44 px), чтобы в конце страницы она не лежала на тексте */
}
@media (max-width: 599px) {
  .ftr__phone { font-size: 22px; }
  .ftr__msgs { width: 100%; }
  .ftr__msgs .msgbtn { flex: 1 1 auto; justify-content: center; }
}

/* ===== ширины ===== */
@media (min-width: 1440px) {
  .search { width: 280px; }
}
/* колонка текста первого экрана: заголовок целиком в три строки, без «России» одной на четвёртой */
@media (min-width: 1280px) { .hero__text { max-width: 720px; } }
@media (min-width: 1366px) { .hero__text { max-width: 780px; } }

/* поле поиска в шапке помещается от 1366; уже – значок, поле открывается панелью */
@media (max-width: 1365px) {
  .hdr__tools .search { display: none; }
  .iconbtn--search { display: inline-flex; }
}
@media (max-width: 1279px) {
  :root { --gutter: 20px; }
}

/* сжатая шапка: логотип, меню, значки и кнопка вместе занимают около 1260 px, поэтому до этой ширины логотип в ней не показываем */
@media (max-width: 1263px) {
  .hdr.is-compact .hdr__minilogo { display: none; }
}
@media (max-width: 1139px) {
  .hdr__about--1, .hdr__about--2 { display: none; }
  .nav__link { padding: 0 14px; }
}
@media (max-width: 1099px) {
  .nav { gap: 6px; }
  .nav__link { padding: 0 12px; }
}

/* телефон в сжатой шапке: текстом от 1340, значком от 1140 */
@media (max-width: 1339px) {
  .hdr.is-compact .hdr__mini .phone { display: none; }
  .hdr.is-compact .hdr__miniphone { display: inline-flex; }
}
@media (max-width: 1139px) {
  .hdr.is-compact .hdr__miniphone { display: none; }
}

/* полоса фактов: шесть колонок от 1340, три в две строки до 720, две в три строки на телефоне */
@media (max-width: 1439px) {
  .fact { gap: 10px; padding: 18px 16px 18px 18px; font-size: 14px; }
}
@media (max-width: 1339px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li:nth-child(3n + 1) { border-left: 0; }
  .facts li:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .fact { padding: 16px 18px; }
}

@media (min-width: 1024px) and (max-height: 860px) {
  .hero__wrap { gap: 24px; padding-block: calc(var(--hdr-h) + 32px) calc(28px + var(--hero-more)); }
  .hero__title { font-size: clamp(38px, calc(3.2vw + 4px), 50px); }
  .hero__lead { margin-top: 14px; font-size: 18px; }
  .hero__actions { margin-top: 26px; }
  .promo { margin-top: 20px; padding-block: 12px 10px; }
}

@media (max-width: 1023px) {
  :root { --hdr-top: 64px; --hdr-h: var(--hdr-top); }
  html { scroll-padding-top: 76px; }
  .hdr { top: 0; }
  .hdr__top { border-bottom: 1px solid var(--c-line); }
  .hdr__nav, .hdr__contacts, .hdr__about { display: none; }
  .hdr__logo img { height: 40px; }
  .hdr__m { display: flex; flex: none; gap: 6px; }
  .hdr__m .iconbtn { width: 44px; height: 44px; }
  .hdr__m .msg, .hdr__m .msg img { width: 38px; height: 38px; }   /* значки мессенджеров чуть меньше бургера (44 px) */
  .hero { min-height: 0; }
  @supports (min-height: 100svh) {
    .hero { min-height: clamp(calc(560px + var(--hdr-h) + var(--hero-more)), calc(100svh + var(--hero-more)), calc(820px + var(--hdr-h) + var(--hero-more))); }
  }
  .hero__wrap { gap: 28px; padding-block: calc(var(--hdr-h) + 40px) calc(24px + var(--hero-more)); }
  .hero__title { font-size: clamp(36px, calc(5.2vw + 4px), 48px); }
  .hero__shade { background:
    linear-gradient(180deg, rgba(var(--c-dark), .66) 0, rgba(var(--c-dark), .36) calc(var(--hdr-h) * .85), rgba(var(--c-dark), 0) calc(var(--hdr-h) + 90px)),
    linear-gradient(90deg, rgba(var(--c-dark), .74) 0%, rgba(var(--c-dark), .6) 50%, rgba(var(--c-dark), .22) 100%),
    linear-gradient(0deg, rgba(var(--c-dark), .55) 0%, rgba(var(--c-dark), 0) 40%); }
}

@media (max-width: 719px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3n + 1) { border-left: 1px solid rgba(255, 255, 255, .16); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 767px) {
  .hero__body { align-items: flex-start; }
}

/* телефон: вертикальное фото, текст сверху на размытой листве; плашка с фактами заходит на нижний край фото,
   но не закрывает семью. Высота фото – его пропорции 863×1822 (--photo-full) минус срез --photo-cut: срезается листва сверху
   (object-position 80 %, то есть четыре пятых среза сверху, одна пятая снизу), чтобы первый экран был ниже. Срез растёт с шириной
   (на 320 px его нет: заголовок и так упирается в головы семьи) и не больше четверти ширины: на 390 px он 98 px (первый экран ниже на 12 %) */
@media (max-width: 599px) {
  :root { --gutter: 16px; --photo-full: calc(100vw * 1822 / 863); --photo-cut: clamp(0px, calc((100vw - 320px) * 1.4), calc(100vw * .25)); --photo-h: calc(var(--photo-full) - var(--photo-cut)); }
  .hero { min-height: 0; background: #0E1810; }
  .hero__media, .hero__shade { bottom: auto; height: var(--photo-h); }
  .hero__media { -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
  .hero__media img { object-position: 50% 80%; }
  .hero__shade { background:
    linear-gradient(180deg, rgba(var(--c-dark), .8) 0%, rgba(var(--c-dark), .68) 30%, rgba(var(--c-dark), .28) 52%, rgba(var(--c-dark), 0) 66%),
    linear-gradient(0deg, rgba(var(--c-dark), .5) 0%, rgba(var(--c-dark), 0) 22%); }
  .hero__wrap { display: block; padding-block: calc(var(--hdr-h) + 20px) calc(16px + var(--hero-more)); }
  .hero__body { min-height: calc(var(--photo-h) - var(--hdr-h) - 20px); padding-bottom: 64px; }   /* плашка фактов заходит на последние 56 px блока; запас 64 px не даёт ей закрыть кнопки, когда текст (с акцией, на 320 px) выше фото */
  .facts { position: relative; margin-top: -56px; border-radius: 22px; }
  .hero__title { font-size: clamp(24px, 6.7vw, 30px); line-height: 1.1; letter-spacing: -.02em; } /* кегль подобран: заголовок в три строки, «России» не остаётся одна */
  .hero__lead { margin-top: 12px; font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 18px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__actions .link-arrow { justify-content: center; }
  .promo { max-width: none; margin-top: 20px; padding: 14px 16px 12px; }
  .promo__title { font-size: 23px; white-space: normal; text-wrap: balance; }
  .promo__text { font-size: 14px; }
  .fact { gap: 6px; padding: 10px 12px; font-size: 13.5px; }
  .fact::before { width: 10px; height: 8px; margin-top: 5px; }   /* маркер поменьше (на компьютере 16×13): «Своё производство, склады и автопарк» держится в три строки */
  .modal__body { padding: 28px 20px 22px; }
  .modal { border-radius: 24px; }
  .modal__title { font-size: 26px; }
}

/* ===== блоки 2–5 по ширинам ===== */
@media (max-width: 1279px) {
  .tile__title { font-size: 21px; }
}
@media (max-width: 1023px) {
  .videos--one .vcard { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .videos--row { grid-auto-columns: calc((100% - var(--vgap)) / 2); }
  .tile, .tile--wide { grid-column: span 6; }
  .tile:last-child:nth-child(odd) { grid-column: span 12; }
  .tile--wide .tile__media { aspect-ratio: 16 / 9; }
  .tile:last-child:nth-child(odd) .tile__media { aspect-ratio: 2 / 1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .own__lead { max-width: 560px; }
  .own__plan { display: none; }
}
@media (max-width: 899px) {
  .picks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .videos--two { grid-template-columns: minmax(0, 1fr); }
  .videos--row { grid-auto-columns: 84%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 639px) {
  .tile, .tile--wide, .tile:last-child:nth-child(odd) { grid-column: span 12; }
  .tile .tile__media, .tile--wide .tile__media, .tile:last-child:nth-child(odd) .tile__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .sec__head { align-items: flex-start; }
  .sec__lead { font-size: 17px; }
  .vcard__media, .vplay { border-radius: 22px; }
  .vtag { left: 12px; top: 12px; }
  .vtime { right: 12px; bottom: 12px; }
  .vmsg { left: 12px; right: 12px; bottom: 12px; }
  .vcard { gap: 18px; }
  .vcard__text { font-size: 16px; }
  .tile { border-radius: 28px; }
  .tile__media { border-radius: 18px; }
  .tile__body { padding: 44px 14px 16px; }
  .tile__text { font-size: 16px; }
  /* ссылки на категории – лента, которая прокручивается вбок */
  .cnav { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cnav::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .chip small { font-size: 11.5px; }
  /* карточки категории – лента с «подглядывающей» следующей карточкой; «все проекты» под лентой */
  .cat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "cards" "all"; }
  .cat__head { margin-bottom: 14px; }
  .cat__all { margin: 8px 0 0; }
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; margin: -6px calc(var(--gutter) * -1); padding: 6px var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card__params { font-size: 15px; }
  .picks { padding: 20px 18px; border-radius: 24px; }
  .catalog__foot { justify-content: flex-start; }
  .own { padding-block: calc(var(--sec-y) * .9); }
  .own__title { font-size: clamp(30px, 8.4vw, 36px); }
  .own__lead { font-size: 17px; }
  .own__msgs { flex-direction: column; align-items: stretch; }
  .formcard { padding: 22px 18px; border-radius: 24px; }
  .drop { gap: 12px; padding: 14px; }
  .drop__icon { width: 44px; height: 44px; }
}

/* ===== блоки 6–13 по ширинам ===== */
@media (max-width: 1279px) {
  .case__title { font-size: 17px; }
  .rev__name { font-size: 19px; }
  .step__title { font-size: 21px; }
  .step__text { font-size: 15.5px; }
}
@media (max-width: 1139px) {
  .pay { grid-template-columns: minmax(0, 1fr); }   /* таблица и тёмная карточка друг под другом: в таблице хватает места на «Когда» */
}
@media (max-width: 1023px) {
  .cases, .revs, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* директор: фото и цитата в одну строку, карточки действий под ними */
  .dir { grid-template-columns: minmax(0, 1fr); }
  .dir__who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 28px; }
  .dir__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act__btn { align-self: stretch; min-width: 0; }
  /* шаги столбиком: слева значок и пунктирная линия вниз */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step__ico { width: 60px; height: 60px; }
  .step:not(:last-child)::after { top: 68px; bottom: 8px; left: 29px; right: auto; border-top: 0; border-left: 2px dashed rgba(69, 188, 130, .6); }
  .step__body { padding-top: 4px; }
  .step__title { font-size: 22px; }
  .step__text { max-width: 60ch; font-size: 16px; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  /* блог: третья статья занимает обе колонки – обложка слева, текст справа */
  .post:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
  .post:last-child:nth-child(odd) .post__cover { flex: 0 0 46%; }
  /* команда: четыре колонки, группа «Строители» – во всю ширину */
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .person--wide { grid-column: 1 / -1; }
  .person--wide .person__photo { flex: none; min-height: 0; aspect-ratio: 21 / 8; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { flex: none; min-height: 0; aspect-ratio: 2 / 1; }
  .about__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }   /* контакты и форма рядом */
}
@media (max-width: 767px) {
  .dir__who { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dir__media { aspect-ratio: 5 / 4; }
  .dir__acts, .about__side { grid-template-columns: minmax(0, 1fr); }
  /* видеоотзывы и команда – ленты, которые листаются вбок */
  .revs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .revs::-webkit-scrollbar { display: none; }
  .rev { scroll-snap-align: start; }
  .team { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .team::-webkit-scrollbar { display: none; }
  .person { scroll-snap-align: start; }
  .person--wide { grid-column: auto; }
  .person--wide .person__photo { aspect-ratio: 4 / 5; }
}
@media (max-width: 599px) {
  .sec__head > .sec__titles { flex: 1 1 100%; }   /* ссылка рядом с заголовком («Все статьи», «О компании») на телефоне уходит под него */
  .sec__links { gap: 0 24px; }
  .mapbox { height: 340px; border-radius: 22px; }
  .mapbox__tag { left: 12px; top: 12px; height: 34px; font-size: 13.5px; }
  .mapbox .vmsg { left: 12px; right: 12px; top: 12px; }
  .mapnote { font-size: 14.5px; }
  /* кейсы – лента с «подглядывающей» следующей карточкой */
  .cases { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .cases::-webkit-scrollbar { display: none; }
  .cases > li { scroll-snap-align: start; }
  .rev__name { font-size: 18px; }
  .dir__media { aspect-ratio: 4 / 5; border-radius: 22px; }
  .dir__cap { left: 12px; bottom: 12px; padding: 10px 14px; }
  .dir__cap b { font-size: 17px; }
  .act { gap: 18px; padding: 22px 18px; border-radius: 28px; }
  .act__head { gap: 14px; }
  .act__ico { width: 48px; height: 48px; }
  .act__q { font-size: 16px; }
  .ticks li { font-size: 16px; }
  .act__msgs p { flex-basis: 100%; }
  .step { gap: 16px; }
  .step__ico { width: 52px; height: 52px; }
  .step:not(:last-child)::after { top: 60px; left: 25px; }
  .paycard { gap: 16px; padding: 22px 18px; border-radius: 28px; }
  .docl { padding: 14px 16px; }
  /* таблица оплаты – карточки: этап сверху, под ним строки «доля стоимости» и «когда» */
  .paytable thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .paytable, .paytable tbody, .paytable tr, .paytable th, .paytable td { display: block; }
  .paytable tr { padding: 14px 0; border-top: 1px solid var(--c-line); }
  .paytable tbody tr:first-child { padding-top: 0; border-top: 0; }
  .paytable tbody th, .paytable td { padding: 0; border: 0; }
  .paytable tbody th { margin-bottom: 8px; font-size: 17px; }
  .paytable td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
  .paytable td::before { content: attr(data-label); flex: none; font-weight: 500; color: var(--c-ink-3); }
  .paytable td:last-child { text-align: right; }
  /* блог: список – обложка слева (треть ширины), справа дата, заголовок и анонс */
  .posts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .post, .post:last-child:nth-child(odd) { flex-direction: row; align-items: flex-start; gap: 16px; }
  .post__cover, .post:last-child:nth-child(odd) .post__cover { flex: 0 0 36%; border-radius: 18px; }
  .post__cover .ph__label { display: none; }   /* на маленькой обложке подпись заглушки не помещается */
  .post__cover .ph .i { width: 32px; height: 32px; }
  .post__body { gap: 6px; }
  .post__title { font-size: 17px; }
  .post__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; }
  .team { grid-auto-columns: 46%; gap: 14px; }
  .person__photo { border-radius: 22px; }
  .person__name { margin-top: 12px; font-size: 17px; }
  .person__role { font-size: 13.5px; }
  .q { border-radius: 22px; }
  .q__sum { gap: 12px; padding: 16px 14px 16px 18px; border-radius: 22px; }
  .q__ico { width: 36px; height: 36px; }
  .q__a { padding: 0 18px 20px; font-size: 16px; }
  .faq__foot { flex-direction: column; align-items: flex-start; }
  .about__photo { aspect-ratio: 3 / 2; border-radius: 22px; }
  .contact { gap: 18px; padding: 22px 18px; border-radius: 28px; }
  .contact__row { gap: 14px; }
  .contact__ico { width: 40px; height: 40px; }
  .contact__val { font-size: 17px; }
  .contact__msgs .msgbtn { flex-basis: 100%; }
  .mapbox--office { height: 380px; }
  .mapcard { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 16px; }
}

/* ===== узкие телефоны ===== */
/* до 389 px: у фактов поля и кегль чуть меньше, чтобы «Своё производство, склады и автопарк» оставалось в три строки */
@media (max-width: 389px) {
  .fact { padding-inline: 10px; font-size: 13px; }
}
/* до 359 px: шапка и значки чуть меньше, чтобы всё влезло в одну строку */
@media (max-width: 359px) {
  .hdr__logo img { height: 34px; }
  .hdr__m { gap: 4px; }
  .hdr__m .iconbtn { width: 40px; height: 40px; }
  .hdr__m .msg, .hdr__m .msg img { width: 34px; height: 34px; }
}
/* до 359 px: длинные подписи на больших кнопках переносятся, ленты чуть шире */
@media (max-width: 359px) {
  .act__btn, .paycard__btn { padding-left: 22px; white-space: normal; text-align: left; line-height: 1.2; }
  .cases { grid-auto-columns: 86%; }
  .revs { grid-auto-columns: 88%; }
}

/* Client materials, November 2026. */
.own { background-image: linear-gradient(90deg, rgba(9,28,20,.86), rgba(9,28,20,.78)), url('/assets/home/own-background.webp'); background-position: center; background-size: cover; }
.own__project { border-radius: 24px; width: min(100%, 460px); object-fit: contain; }
.pay--single { grid-template-columns: minmax(0, 1fr); }
.dir__media--video { aspect-ratio: 16 / 9; }

/* Brief 2: compact sections, a larger catalogue mockup and actual payment terms. */
.own { padding-block:clamp(32px,3.4vw,52px); background-image:linear-gradient(90deg,rgba(5,22,14,.58),rgba(5,22,14,.22)),var(--own-bg,url('/assets/home/own-background.webp')); }
.own__grid { grid-template-columns:minmax(0,1fr) minmax(0,1.06fr); align-items:center; gap:clamp(32px,4vw,64px); }
.own__text { position:relative; z-index:1; padding-bottom:0; }
.own__project { position:relative; display:block; width:min(100%,560px); max-width:100%; height:clamp(210px,19vw,280px); left:auto; bottom:auto; margin:24px auto 0; object-fit:contain; object-position:center; transform:none; pointer-events:none; }
.own__grid > .formcard { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:flex-start; align-self:center; padding:clamp(24px,2.5vw,36px); }
.dir { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:stretch; }
.dir__acts { display:contents; }
.dir__who { display:flex; flex-direction:column; grid-column:1; grid-row:1; min-height:0; }
.dir__media--video { flex:1 1 auto; min-height:0; height:100%; aspect-ratio:auto; }
.dir__media--video > img { object-position:65% center; }
.dir .act { gap:16px; padding:clamp(22px,2vw,30px); }
.dir .act--tour { grid-column:2; grid-row:1; }
.dir .act__btn { margin-top:0; min-width:0; }
.dir .act--call { display:grid; grid-column:1 / -1; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto; align-items:center; gap:24px; }
.dir .act--call .act__head { align-items:center; }
.dir .act--call .act__btn { align-self:center; }
.payment-advance { display:flex; align-items:baseline; gap:12px; color:var(--c-green-700); font-size:16px; }
.payment-advance strong { font-size:32px; font-weight:800; }
.payment-schemes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px; margin-top:0; }
.payment-scheme { padding:24px; border:1px solid var(--c-line); border-radius:22px; background:var(--c-green-50); }
.payment-scheme > h4 { margin:0; font-size:23px; font-weight:750; line-height:1.25; }
.payment-scheme__note { margin-top:8px; color:var(--c-ink-2); line-height:1.5; }
.payment-scheme__steps { display:grid; gap:20px; margin-top:24px; list-style:none; }
.payment-scheme__steps > li { display:grid; grid-template-columns:70px minmax(0,1fr); gap:16px; align-items:start; }
.payment-scheme__share { color:var(--c-green-700); font-size:30px; line-height:1.1; font-weight:800; }
.payment-scheme__steps h5 { margin:0; font-size:17px; line-height:1.35; font-weight:700; }
.payment-scheme__steps p { margin-top:6px; font-size:15px; line-height:1.5; color:var(--c-ink-2); }
@media(max-width:1279px) {
 .dir .act--call { grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:16px 24px; }
 .dir .act--call .act__head { grid-row:1 / span 2; }
 .dir .act--call .act__btn { grid-column:2; justify-self:start; }
}
@media(max-width:1023px) {
 .own__grid { grid-template-columns:minmax(0,1fr); gap:24px; }
 .own__text { padding-bottom:0; }
 .own__project { position:relative; width:min(100%,600px); height:auto; max-width:100%; left:auto; bottom:auto; margin:24px auto 0; transform:none; }
 .dir { grid-template-columns:minmax(0,1fr); }
 .dir__who,.dir .act--tour { grid-column:auto; grid-row:auto; }
 .dir__media--video { flex:none; min-height:0; width:100%; height:auto; aspect-ratio:16/9; }
 .dir .act--call { display:flex; grid-column:auto; align-items:stretch; gap:16px; }
 .dir .act--call .act__head { align-items:flex-start; }
 .dir .act--call .act__btn { align-self:flex-start; }
}
@media(max-width:767px) {
 .payment-schemes { grid-template-columns:minmax(0,1fr); gap:16px; }
 .paycard__head { align-items:flex-start; flex-wrap:wrap; gap:12px; }
 .payment-scheme { padding:20px 16px; }
 .payment-scheme__steps > li { grid-template-columns:60px minmax(0,1fr); gap:12px; }
 .payment-scheme__share { font-size:27px; }
 .dir .act { padding:22px 18px; }
 .dir .act__btn { align-self:stretch; }
 .dir .act--call .act__btn { align-self:stretch; }
}

/* Brief 3: natural spacing and complete team. */
.own__lead { margin-top:16px; }
.own__note { margin-top:18px; }
.own__msgs { margin-top:22px; }
@media(min-width:1024px) { .team:not(.team--grid) { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1023px) { .own__grid > .formcard { width:100%; max-width:720px; justify-self:center; } .own__project { height:260px; } }
@media(max-width:767px) { .own { padding-block:32px; } .own__grid { gap:24px; } .own__project { height:auto; max-height:240px; } .own__grid > .formcard { padding:24px 20px; border-radius:24px; } }

/* Layout refinements requested by the owner. */
.step__text { font-size:14px; }
.payment-scheme__steps > li { grid-template-columns:42px 70px minmax(0,1fr); gap:14px; }
.payment-scheme__icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; color:var(--c-green-700); background:#fff; border:1px solid var(--c-line); }
.team.team--slider { --team-gap:22px; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 3 * var(--team-gap)) / 4); gap:var(--team-gap); overflow-x:auto; overflow-y:hidden; margin:0; padding:0 0 8px; scroll-snap-type:x mandatory; scroll-padding:0; scrollbar-width:none; overscroll-behavior-x:contain; }
.team.team--slider::-webkit-scrollbar { display:none; }
.team--slider > .person { scroll-snap-align:start; grid-column:auto; }
.team-slider__nav { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin-top:20px; }
.team-slider__nav > span { font-size:14px; color:var(--c-ink-2); margin-right:8px; }
.team-slider__nav button:disabled { opacity:.35; cursor:default; }
.own { overflow:visible; }
.own__art { position:relative; height:300px; margin-top:24px; }
.own__art .own__project { position:absolute; bottom:-104px; left:-34px; width:calc(100% + 160px); max-width:none; height:auto; max-height:none; margin:0; transform:rotate(-4deg); border-radius:0; }
@media(max-width:1279px) { .step__text { font-size:13.5px; } .payment-scheme__steps > li { grid-template-columns:38px 58px minmax(0,1fr); gap:10px; } .payment-scheme__icon { width:38px; height:38px; } }
@media(max-width:1023px) { .step__text { font-size:14px; } .team.team--slider { --team-gap:18px; grid-auto-columns:calc((100% - var(--team-gap)) / 2); } .own__art { height:300px; margin-top:16px; } .own__art .own__project { width:560px; max-width:100%; height:100%; object-fit:contain; left:50%; bottom:0; transform:translateX(-50%); } }
@media(max-width:767px) { .team.team--slider { grid-auto-columns:80%; --team-gap:14px; } .own__art { height:240px; margin-top:16px; } .own__art .own__project { max-width:calc(100% + 16px); } .payment-scheme__steps > li { grid-template-columns:38px 58px minmax(0,1fr); } }

@media(max-width:767px) {
 .payment-scheme__steps > li { grid-template-columns:38px minmax(0,1fr); gap:10px 12px; }
 .payment-scheme__share { grid-column:2; align-self:center; }
 .payment-scheme__steps > li > div { grid-column:1 / -1; }
}

/* Brief 4: payment emphasis and full-width excursion invitation. */
.payment-advance { padding:10px 18px; border-radius:16px; background:var(--c-green-50); border:1px solid #a9dbc2; gap:12px; }
.payment-schemes { align-items:stretch; }
.payment-scheme { height:100%; }
.ftr__links .ftr__developer { color:rgba(255,255,255,.55); font-size:12px; }
.ftr__links .ftr__developer:hover,.ftr__links .ftr__developer:focus-visible { color:#fff; }

/* ТЗ 6: illustration-led payment cards, mirrored forest without an overlay. */
.payment-schemes { align-items:stretch; }
.payment-scheme { display:flex; flex-direction:column; }
.payment-scheme__art { display:block; width:100%; height:clamp(145px,16vw,215px); object-fit:contain; margin:-4px 0 20px; }
.own { background:transparent; }
.own::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--own-bg,url('/assets/home/own-background.webp')) center/cover no-repeat; transform:scaleX(-1); pointer-events:none; }
/* One category-card style, also used on error and empty-state pages. */
.ocats, .ocats.rvpick__cats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
.ocats .ocat { display:grid; grid-template-columns:88px minmax(0,1fr); grid-template-rows:auto auto; align-content:center; align-items:center; column-gap:16px; row-gap:5px; min-height:106px; padding:12px; border:1px solid var(--c-line); border-radius:20px; background:#fff; position:relative; min-width:0; }
.ocat__photo { grid-column:1; grid-row:1 / span 2; width:88px; height:72px; object-fit:cover; border-radius:12px; background:var(--c-green-50); }
.ocats .ocat__name { grid-column:2; align-self:end; font-size:17px; line-height:1.3; }
.ocats .ocat__meta { grid-column:2; align-self:start; margin:0; font-size:13px; line-height:1.45; }
.ocats .ocat:not(:has(.ocat__meta)) .ocat__name { grid-row:1 / span 2; align-self:center; }
.ocat__name::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
.ocat:focus-within { outline:3px solid var(--focus); outline-offset:3px; }
@media(max-width:1100px) { .ocats, .ocats.rvpick__cats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .ocats, .ocats.rvpick__cats { grid-template-columns:minmax(0,1fr); } .payment-scheme__art { height:170px; } }

/* ТЗ 7: rectangular delivery photos, even cover-card insets and compact mobile layout. */
.payment-scheme__art { height:auto; aspect-ratio:2 / 1; object-fit:cover; border-radius:14px; margin:0 0 20px; }
.ocats .ocat { min-height:0; }
.ocats .ocat__photo { height:100%; min-height:72px; align-self:stretch; }
@media(max-width:599px) {
  :root { --photo-h:calc(var(--photo-full) - var(--photo-cut) - 50px); }
  .hero__media img { object-position:50% 100%; }
  .hero .fact { font-size:12.5px; }
  .picks__list .chip { font-size:12px; padding-inline:12px; }
}
@media(max-width:767px) {
  .own { padding-top:48px; overflow:clip; }
  .own__art { height:220px; margin-top:0; margin-bottom:-16px; }
  .own__art .own__project { width:150%; max-width:none; height:auto; max-height:none; left:50%; top:50%; bottom:auto; transform:translate(-50%,-50%); pointer-events:none; }
  .own__msgs { position:relative; z-index:2; }
  .own__grid { gap:16px; }
}
@media(max-width:599px) { .picks__list .chip { padding-inline:8px; } .post__title { overflow-wrap:anywhere; } }

@media(max-width:599px) { .hero__wrap { padding-bottom:36px; } }

/* ТЗ 8: слоган и подбор проекта */
.hdr__about--2{font-weight:700}
.quiz{padding-block:clamp(40px,6vw,80px);background:#f5f8f6}
.quiz h2{max-width:850px;margin-bottom:28px}
.quiz__card{padding:clamp(18px,4vw,48px);border:1px solid #e0e8e2;border-radius:24px;background:#fff;min-width:0}
.quiz__progress{font-size:14px;color:#52645a;margin-bottom:8px}
.quiz progress{width:100%;height:7px;border:0;border-radius:9px;margin:0 0 28px;accent-color:#45bc82}
.quiz progress::-webkit-progress-bar{background:#e7eee9;border-radius:9px}
.quiz progress::-webkit-progress-value{background:linear-gradient(90deg,#44d68f,#45bc82);border-radius:9px}
.quiz__step{min-width:0;border:0;padding:0;margin:0 0 28px}
.quiz__step legend{font-size:clamp(22px,2.5vw,32px);font-weight:600;line-height:1.25;margin-bottom:24px;max-width:100%;overflow-wrap:anywhere}
.quiz__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quiz__option{display:flex;align-items:center;gap:12px;border:1px solid #dfe6e1;border-radius:12px;min-height:64px;padding:16px;cursor:pointer;overflow-wrap:anywhere}
.quiz__option:has(input:checked){background:#effbf4;border-color:#45bc82}
.quiz__option input{flex-shrink:0;accent-color:#45bc82;width:20px;height:20px}
.quiz__option:focus-within{outline:2px solid #45bc82;outline-offset:3px}
.quiz__custom{display:block;margin-top:22px}
.quiz__nav{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.quiz__error{color:#b32d2d}
.quiz [hidden]{display:none!important}
.quiz .drop{min-height:150px}
.quiz .drop__text{min-width:0}
@media(max-width:599px){.quiz__options{grid-template-columns:1fr}.quiz__nav .btn{flex:1}.quiz__step legend{margin-bottom:18px}.quiz__card{border-radius:18px}}

/* Квиз: помощь руководителя рядом с вопросами */
.quiz__layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:stretch}
.quiz__expert{position:static;min-width:0;padding:22px;border-radius:24px;background:#e8f2ec;border:1px solid #dbe7de}
.quiz__expert-photo{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top;border-radius:16px;margin-bottom:18px}
.quiz__expert h3{font-size:20px;line-height:1.25;font-weight:750;margin:0 0 6px}
.quiz__expert-role{font-size:13px;line-height:1.4;color:#53675a}
.quiz__expert-comment{font-size:15px;line-height:1.6;margin-top:16px}
.quiz__expert-body{min-width:0;overflow-wrap:anywhere}
@media(max-width:1023px){.quiz__layout{grid-template-columns:minmax(0,1fr);gap:18px}.quiz__expert{position:static;grid-row:1;display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;padding:18px;border-radius:18px}.quiz__expert-photo{width:76px;margin:0;border-radius:12px}.quiz__expert h3{font-size:18px}.quiz__expert-comment{font-size:14px;line-height:1.45;margin-top:10px}}

/* Одинаковый нижний край карточек на каждом шаге квиза */
.quiz__card{display:flex;flex-direction:column}
.quiz__card>.form{flex:1}
.quiz__nav{margin-top:auto}

/* Полные имена проектов из клееного бруса, включая номер */
.card__title:has(a[href^="/proekty-domov-iz-brusa/dbvch"]){display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}

/* Квиз: загрузка и контактные поля на одном шаге */
.quiz__step>p{margin-bottom:20px}
.quiz .drop{justify-content:center;text-align:center}
.quiz .drop__text{align-items:center}
.quiz__contact-content{display:flex;flex-direction:column;gap:24px}
.quiz__consent{margin-top:8px}
.quiz__hint{font-size:14px;line-height:1.4;color:var(--c-ink-3)}
@media(max-width:599px){.quiz__contact-content{gap:20px}.quiz__consent{margin-top:4px}}

/* Shared fullscreen viewer for project photos and acceptance documents. */
.lbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: #fff; --focus: #fff; }
.lbox[open] { display: block; animation: appear .2s ease both; }
.lbox::backdrop { background: rgba(12, 22, 15, .75); }
.lbox__bar { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.lbox__bar > * { pointer-events: auto; }
.lbox__count { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 15px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lbox__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .18s; }
.lbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 72px 84px; touch-action: pan-y; }
.lbox__img { flex: 0 1 auto; min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.lbox__nav { position: absolute; top: 50%; z-index: 2; margin-top: -24px; }
.lbox__nav--prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.lbox__nav--next { right: max(16px, env(safe-area-inset-right, 0px)); }
.lbox__nav--prev .i { transform: scaleX(-1); }
.lbox__btn:hover { --edge-a: .95; --edge-b: .6; background: rgba(var(--c-dark), .7); }
.lbox__btn:focus-visible { --edge-a: 1; --edge-b: 1; }
@media (max-width: 767px) {
.lbox__stage { padding: 64px 12px; }
.lbox__nav { width: 44px; height: 44px; margin-top: -22px; }
.lbox__nav--prev { left: 8px; }
.lbox__nav--next { right: 8px; }
}
