/* Карлсон: шрифты, фон страницы и служебные правила. Вид блоков в home.css (перенос из макета). */
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/commissioner-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/commissioner-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
body { margin: 0; background: #0B232D; }
html { scroll-behavior: smooth; }
.kw .pat-pink { background-image: url(/static/brand/pat-pink.svg); background-size: 160px 100px; }
.kw .pat-steel { background-image: url(/static/brand/pat-steel.svg); background-size: 160px 100px; }
.kw [hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html.gal-open { overflow: hidden; }
.pcard img { height: auto; } /* у фото в карточках калькулятора нет высоты в CSS, атрибут height не должен её задавать */
.kw .pv svg { position: absolute; left: 12%; top: 14%; width: 76%; height: 72%; } /* превью DXF: размер от блока, как у демо-детали в макете, чтобы высокие и круглые детали не обрезались */
/* галерея объектов на телефоне: фото на всю ширину экрана с отступами 16px, стрелки под фото (в макете то же правило в @container k) */
@media (max-width: 820px) {
  .gal { padding: 16px; }
  .gal .gal-main { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
  .gal .gal-main > img { grid-column: 1 / -1; grid-row: 1; max-height: none; }
  .gal .gal-main > .ibtn:first-child { grid-column: 1; grid-row: 2; justify-self: start; }
  .gal .gal-main > .ibtn:last-child { grid-column: 2; grid-row: 2; justify-self: end; }
}
/* цены «от» из page-prices.json (решение Дениса 06.10): цена и мелко дата проверки */
.kw .pp-v { font-weight: 600; color: var(--ink, #1D1D1B); }
.kw .pp-d { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--muted); }
.kw .spec span.pp { color: inherit; } /* цена в строке «Цена» не серая, как подпись слева */
.kw .qa .pp-q { margin: -12px 0 24px; color: var(--ink); }
/* аудит продающих страниц 06.10: в липкой панели телефона WhatsApp и Telegram рядом с кнопкой звонка */
@container k (max-width: 1180px) {
  .mbar .btn.msgb, .mbar .btn.call { flex: 0 0 48px; width: 48px; min-height: 52px; padding: 0; gap: 0; }
  .mbar .btn.msgb { background: var(--white, #fff); color: var(--steel, #0B232D); border: 1px solid var(--line, #C3CED3); }
  .mbar .btn.msgb svg { width: 22px; height: 22px; transform: none; }
  .mbar .btn.btn-red { min-width: 0; padding: 0 14px; font-size: 14px; line-height: 1.15; text-align: center; }
}
@media (max-width: 1180px) {
  .mbar .btn.msgb svg, .mbar .btn.call svg { transform: none !important; }
}
/* аудит 06.10, главная: седьмое направление «Мягкая мебель» во всю ширину сетки, под ним вопросы */
.kw .dirs .d7 { grid-column: 1 / 13; grid-row: 4 / 5; }
.kw .dirs .d7 img { object-position: 50% 62%; }
.kw .home-faq .faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.kw .home-faq .faq-l { grid-column: 1 / 5; }
.kw .home-faq .faq-l .lead { margin: 28px 0 32px; }
.kw .home-faq .faq-list { grid-column: 5 / 13; border-top: 1px solid var(--ink); }
.kw .home-faq .qa { border-bottom: 1px solid var(--line); }
.kw .home-faq .qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 20px; font-weight: 500; line-height: 1.35; }
.kw .home-faq .qa summary::-webkit-details-marker { display: none; }
.kw .home-faq .qa .pm { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s, border-color .3s; }
.kw .home-faq .qa[open] .pm { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.kw .home-faq .qa p { margin: 0 0 24px; max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.55; }
@container k (max-width: 820px) {
  .kw .dirs .d7 { height: 330px; }
  .kw .home-faq .faq { display: block; }
  .kw .home-faq .faq-l { margin-bottom: 24px; }
  .kw .home-faq .faq-l .btn { width: 100%; }
  .kw .home-faq .qa summary { font-size: 17px; padding: 18px 0; }
  .kw .home-faq .qa p { font-size: 15px; }
  /* первый экран на телефоне: сначала заголовок, подзаголовок и кнопки, фото ниже и короче */
  .kw .hero-home .hero-main { flex-direction: column; }
  .kw .hero-home .hero-l { padding-top: calc(var(--hd) + 24px); }
  .kw .hero-home .hero-r { margin-top: 0; height: 260px; }
}
/* аудит 06.10: точка заголовка не уходит на отдельную строку, цифры первого экрана сразу в итоговом значении */
.kw .nw { white-space: nowrap; }
.kw .hero .cnt { animation: none !important; }
/* аудит 06.10: на телефоне у лифтов, металлокаркасов, ресторанов и новогодней страницы сначала оффер и кнопки, фото или видео ниже и короче */
@container k (max-width: 820px) {
  .kw .lift-hero .hero-main, .kw .hero-k .hero-main, .kw .hh .hero-main, .kw .hero-main.nyh { flex-direction: column; }
  .kw .lift-hero .hero-l, .kw .hero-k .hero-l, .kw .hh .hero-l, .kw .nyh .hero-l { padding-top: calc(var(--hd) + 20px); }
  .kw .lift-hero .hero-r, .kw .hero-k .hero-r, .kw .hh .hero-r { height: 260px; }
  .kw .nyh .hero-r.vid { height: 300px; }
}
.kw .hk-names { margin: 28px 0 0; max-width: 980px; }
.kw .hk-names a { color: var(--ink); text-underline-offset: 3px; }
/* подарки, блок «Логотип, вырезанный лазером»: два кадра вместо четырёх, пока нет новых фото с надписью «КАРЛСОН» */
.kw .proof .pf4 { grid-row: span 2; }
/* садовая коллекция, блок «Кому подходит» (аудит 06.10) */
.kw .sg-who { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); }
.kw .sg-who h3.disp { margin: 0 0 20px; font-size: 32px; line-height: 1; }
.kw .sg-who-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kw .sg-who-g > div { display: grid; gap: 10px; align-content: start; }
.kw .sg-who-g a { color: var(--ink); text-underline-offset: 3px; }
@container k (max-width: 820px) { .kw .sg-who-g { grid-template-columns: 1fr; gap: 18px; } .kw .sg-who h3.disp { font-size: 26px; } }
.kw .a-svc { margin: -8px 0 22px; font-size: 16px; }
/* аудит 06.10: длинная подпись кнопки в липкой панели переносится, а не вылезает; дуга главной на телефоне уходит к фото; длинный заголовок сада на компьютере мельче */
@container k (max-width: 1180px) { .mbar .btn.btn-red { white-space: normal; } }
@container k (max-width: 820px) { .kw .hero-home .hero-mark { top: auto; bottom: 20px; } }
@container k (min-width: 821px) { .kw .sg-hero .h1l { font-size: min(4.8cqi, 68px); } }
/* ===== Первый экран целиком в видимой области (требование Дениса 06.10, проверено на 1920×910, 1536×730, 1440×800, 1366×650, 390×844) =====
   Кегль H1 считается и от ширины, и от высоты окна, отступы первого экрана сжимаются на низких экранах, фото справа не выше окна.
   Одно правило на все шаблоны первого экрана: .hero (главная и направления), .lh (посадочные, услуги, кейсы, сад, компания, мягкая мебель), .pc (карточка сада). */
.kw h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 821px) {
  .kw :is(.hero, .lh) h1 { font-size: clamp(34px, min(4.3vw, 7vh), 80px) !important; line-height: .95; }
  .kw .hero-home h1.h1 { font-size: clamp(40px, min(5.2vw, 8.6vh), 98px) !important; }
  .kw .lh.kh h1, .kw .lh.ah h1 { font-size: clamp(30px, min(3.4vw, 6vh), 60px) !important; }
  .kw .pc .bb h1 { font-size: clamp(28px, min(2.6vw, 5.4vh), 48px) !important; line-height: .95; }

  .kw .lh { padding-top: calc(var(--hd) + clamp(10px, 3.2vh, 40px)); }
  .kw .lh .lh-grid { padding-bottom: clamp(28px, 6vh, 80px); }
  .kw :is(.hero, .lh, .pc) .crumbs { margin-bottom: clamp(8px, 2.2vh, 26px); }
  .kw :is(.hero, .lh) .hero-tag { margin-bottom: clamp(8px, 2.2vh, 28px); }
  .kw :is(.hero, .lh) .lh-l { padding-top: 0; }
  .kw :is(.hero, .lh) .hero-sub { margin: clamp(10px, 2.2vh, 28px) 0 clamp(14px, 2.6vh, 32px); font-size: clamp(15px, min(1.1vw, 2.2vh), 19px); line-height: 1.45; max-width: 620px; }
  .kw :is(.hero, .lh) .btns .btn { min-height: clamp(46px, 6.4vh, 56px); }
  .kw :is(.hero, .lh) .dz { margin-top: clamp(12px, 2.4vh, 30px); padding-top: clamp(8px, 1.5vh, 18px); padding-bottom: clamp(8px, 1.5vh, 18px); }
  .kw :is(.hero, .lh) .dz-ico { width: clamp(40px, 5.6vh, 52px); height: clamp(40px, 5.6vh, 52px); }
  .kw :is(.hero, .lh) .trust { margin-top: clamp(14px, 3.2vh, 48px); }
  .kw :is(.hero, .lh) .trust > div { padding-top: clamp(8px, 1.6vh, 16px); }
  .kw :is(.hero, .lh) .trust .disp { font-size: clamp(22px, 3.3vh, 30px); }
  .kw :is(.hero, .lh) .trust .p { margin-top: clamp(4px, .8vh, 8px); }
  .kw :is(.hero, .lh) .fam-chip { margin-top: clamp(12px, 2.4vh, 28px); }
  /* форма имя и телефон в первом экране мягкой мебели */
  .kw .lh .hq { padding: clamp(10px, 2vh, 22px) 22px clamp(10px, 1.8vh, 18px); }
  .kw .lh .hq-t { margin-bottom: clamp(6px, 1.2vh, 12px); }
  .kw .lh .hq .inp, .kw .lh .hq .btn { height: clamp(40px, 5.6vh, 48px); min-height: 0; }
  .kw .lh .hq .chk { margin-top: clamp(6px, 1.2vh, 12px); }
  .kw .lh .hmsg { margin-top: clamp(6px, 1.4vh, 14px); }
  /* фото справа не выше окна */
  .kw .lh .lh-r :is(.lh-ph, .sk-media) { max-height: calc(100svh - var(--hd) - 56px); }
  .kw .lh .lh-r .qcard { min-height: min(640px, calc(100svh - var(--hd) - 56px)); }
  /* .hero: высота по содержимому, но не меньше окна за вычетом полосы цифр */
  .kw .hero .hero-main { height: auto !important; min-height: min(calc(100svh - 128px), 840px) !important; }
  .kw .hero:not(:has(.facts)) .hero-main { min-height: min(100svh, 880px) !important; }
  .kw .hero .hero-l { padding-top: calc(var(--hd) + clamp(12px, 4vh, 64px)) !important; padding-bottom: clamp(18px, 3.4vh, 56px) !important; }
  .kw .hero .facts .fact { padding-top: clamp(12px, 2.4vh, 30px); padding-bottom: clamp(12px, 2.4vh, 30px); }
  .kw .hero .facts .fact .num { font-size: clamp(26px, 4.4vh, 44px) !important; }
  .kw .hero .fx2 { margin-bottom: clamp(12px, 2.4vh, 26px); }
  /* карточка изделия сада */
  .kw .pc { padding-top: clamp(12px, 2.4vh, 28px); }
  .kw .pc .pg-main { max-height: calc(100svh - var(--hd) - 120px); }
  /* лифты: шире колонка текста, чтобы длинный заголовок вставал в 3 строки */
  .kw .lift-hero .hero-main { grid-template-columns: 54% 46%; }
  .kw .lift-hero h1 { font-size: clamp(32px, min(3.5vw, 6.4vh), 66px) !important; }
  /* мягкая мебель: текст первого экрана сверху, а не по центру высокой колонки справа */
  .kw .lh .lh-grid:has(.hq) { align-items: start; }
  /* рестораны: кнопки выше карточек «металл + мягкая часть» */
  .kw .hh .fx2 { margin-top: clamp(14px, 2.4vh, 28px); }
  /* карточка изделия сада компактнее по высоте */
  .kw .pc .bb { padding: clamp(14px, 3vh, 34px) clamp(18px, 2vw, 32px); gap: clamp(8px, 1.6vh, 18px); }
  .kw .pc .bb-pr { padding: clamp(8px, 1.4vh, 16px) 0; }
  .kw .pc .bb-pr b { font-size: clamp(20px, 3vh, 26px); }
  .kw .pc .bb-t { flex-flow: row wrap; gap: 6px 18px; }
  .kw .pc .bb-t li { font-size: 13px; flex: 1 1 40%; }
  .kw .pc .spec li { padding-top: clamp(5px, 1vh, 10px); padding-bottom: clamp(5px, 1vh, 10px); }
}
@media (min-width: 821px) and (max-height: 1000px) {
  .kw .hh .fx .t, .kw .hh .fx-one { display: none; }
}
@media (min-width: 821px) and (max-height: 800px) {
  .kw .hero .fam-chip { display: none; }
  .kw .pc .bb-s { font-size: 14px; line-height: 1.45; }
  .kw .pc .bb-art { display: none; }
  .kw :is(.hero, .lh) .hero-sub { font-size: 15px; line-height: 1.4; }
  .kw .lh .hq .chk { font-size: 11px; }
  .kw :is(.hero, .lh) .trust .p { font-size: 12px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .kw :is(.hero, .lh) .crumbs { font-size: 12px; }
  .kw :is(.hero, .lh) .hero-tag .lbl { font-size: 10px; }
  .kw :is(.hero, .lh) .trust .p { font-size: 11.5px; line-height: 1.25; }
}
/* телефон: заголовок не шире экрана, первый экран короче */
@media (max-width: 820px) {
  .kw :is(.hero, .lh) h1 { font-size: clamp(28px, 9.4vw, 44px) !important; line-height: .95; }
  .kw .hero-home h1.h1 { font-size: clamp(34px, 11vw, 48px) !important; }
  .kw .lh { padding-top: calc(var(--hd) + 12px); }
  .kw :is(.hero, .lh) .crumbs { margin-bottom: 12px; }
  .kw :is(.hero, .lh) .hero-tag { margin-bottom: 12px; }
  .kw :is(.hero, .lh) .hero-sub { margin: 14px 0 18px; font-size: 15px; line-height: 1.45; }
  .kw :is(.hero, .lh) .trust { margin-top: 20px; }
  .kw :is(.hero, .lh) .btns .btn { min-height: 50px; }
  /* зона перетаскивания файла нужна на компьютере, на телефоне файл прикладывают в форме внизу */
  .kw :is(.hero, .lh) :is([data-hdz], [data-dz], [data-hero-dz]) { display: none; }
  /* .hero: сначала оффер, кнопки и полоса цифр, фото под ними */
  .kw section.hero { display: flex; flex-direction: column; }
  .kw section.hero > .hero-main { display: contents; }
  .kw section.hero .hero-l { order: 1; }
  .kw section.hero > .facts { order: 2; }
  .kw section.hero .hero-r { order: 3; }
  .kw section.hero .hero-mark { display: none; }
  .kw section.hero .facts .fact { padding-top: 14px; padding-bottom: 14px; }
  .kw section.hero .facts .fact .num { font-size: 26px !important; }
}
/* первый экран, доводка после замеров 06.10 */
@media (min-width: 821px) {
  .kw .hero:not(.hero-home) .hero-main { grid-template-columns: 54% 46%; }
  .kw .hero:not(.hero-home) h1 { font-size: clamp(32px, min(3.5vw, 6.4vh), 66px) !important; }
  .kw .kb-hero .lh-grid { align-items: start; }
  .kw .lh :is(.trust) { margin-top: clamp(10px, 2.6vh, 48px); }
  .kw .pc .bb-b { flex-direction: row; flex-wrap: wrap; }
  .kw .pc .bb-b .btn { flex: 1 1 200px; width: auto; min-height: clamp(44px, 6vh, 56px); padding: 0 14px; }
}
@media (min-width: 821px) and (max-height: 1000px) {
  .kw .hh .fx2 { display: none; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .kw .hero .facts .fact { padding-top: 10px; padding-bottom: 10px; }
  .kw .hero .facts .fact .p { font-size: 12px; line-height: 1.3; }
  .kw :is(.hero, .lh) .hero-sub { font-size: 14.5px; }
  .kw .lh .hq .hq-t span { display: none; }
  .kw .pc .spec { display: none; }
}
@media (max-width: 820px) {
  .kw .lh .hmsg { display: none; }
  .kw .lh .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
  .kw .lh .trust > div, .kw .lh .trust > div + div { padding: 10px 6px 0 0; border-left: 0; border-top: 0; margin-top: 0; }
  .kw .lh .trust > div + div { padding-left: 6px; border-left: 1px solid var(--line); }
  .kw .lh .trust .disp { font-size: 19px; white-space: normal; }
  .kw .lh .trust .disp small { font-size: 12px; }
  .kw .lh .trust .p { font-size: 11px; line-height: 1.25; margin-top: 4px; }
  .kw .lh .hq { padding: 14px 14px 12px; }
  .kw .lh .hq-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kw .lh .hq-row .btn { grid-column: 1 / -1; }
  .kw .lh .hq-t span { display: none; }
  .kw .pc .spec, .kw .pc .bb-art, .kw .pc .pg-th { display: none; }
  .kw .pc .pg-main { max-height: 34svh; }
}
@media (min-width: 821px) and (max-height: 800px) {
  .kw .hero .facts .fact { padding-top: 10px; padding-bottom: 10px; }
  .kw .hero .facts .fact .p { font-size: 12px; line-height: 1.3; }
  .kw .hero .hero-l { padding-bottom: 12px !important; }
  .kw .kt-hero .bigphone { margin-top: 12px; font-size: clamp(34px, 6.4vh, 56px); }
  .kw .kt-hero .kt-mail { margin-top: 8px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .kw :is(.hero, .lh) .dz .dz-s { display: none; }
}
@media (max-width: 820px) {
  .kw .hero:not(.hero-home) h1 { font-size: clamp(28px, 8.6vw, 40px) !important; }
  .kw .hero .fam-chip { display: none; }
  /* карточка изделия сада на телефоне: под фото название, кнопки и гарантии, ниже описание и цена */
  .kw .pc .pg-main { max-height: 25svh; }
  .kw .pc .bb .lbl { order: 0; }
  .kw .pc .bb h1 { order: 1; }
  .kw .pc .bb-b { order: 2; }
  .kw .pc .bb-t { order: 3; }
  .kw .pc .bb-s { order: 4; }
  .kw .pc .bb-pr { order: 5; }
  .kw .pc .bb-3d { order: 6; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .kw .hh .dz { display: none; }
}
@media (max-width: 820px) {
  .kw .hh .fx2 { display: none; }
  .kw .pc .pg-main { max-height: 22svh; }
  .kw .pc .bb-t { flex-flow: row wrap; gap: 6px 14px; }
  .kw .pc .bb-t li { flex: 1 1 40%; font-size: 12.5px; }
}
/* первый экран, доводка 06.10 (вечер): заголовки и оставшиеся 10 случаев */
/* H1 крупного кегля: надстрочные знаки (Й, Ё) не касаются строки выше, число строк не меняется */
.kw h1.disp { line-height: 1.02 !important; }
/* контакты: красная кнопка маршрута в первом экране телефона (на компьютере она на фото с адресом) */
.kw .kt-route-m { display: none; }
@media (min-width: 821px) and (max-height: 700px) {
  .kw .lh .trust { margin-top: 8px; }
}
@media (max-width: 820px) {
  /* карточка изделия сада: название кеглем как у H1 посадочных, текущая страница в крошках не повторяет заголовок, фото ниже */
  .kw .pc .bb h1 { font-size: clamp(28px, 8.6vw, 36px) !important; }
  .kw .pc .crumbs > span:last-child, .kw .pc .crumbs > i:last-of-type { display: none; }
  .kw .pc .pg-main { max-height: 20svh; }
  /* рестораны и направления: полоса цифр и отступы первого экрана компактнее */
  .kw section.hero .facts .fact { padding-top: 10px; padding-bottom: 10px; }
  .kw section.hero .hero-sub { margin: 12px 0 14px; }
  /* контакты: мессенджеры в одну строку, под почтой кнопка маршрута */
  .kw .kt-hero .msg { flex-wrap: nowrap; gap: 8px; margin-top: 16px; width: 100%; max-width: none; }
  .kw .kt-hero .msg .btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13.5px; gap: 6px; }
  .kw .kt-route-m { display: flex; width: 100%; margin-top: 14px; min-height: 50px; }
}

/* Карлсон главная, светлая подача. Общие стили артбордов. */
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }

.kw {
  --pink: #FBEDEB; --pink2: #F6DCD8; --ti: #E1E1E0; --steel: #0B232D; --ink: #1D1D1B;
  --red: #FE3725; --corten: #882727; --muted: #565B5E; --white: #FFFFFF;
  --line: rgba(11, 35, 45, .18); --line2: rgba(11, 35, 45, .08);
  --pad: 56px; --max: 1440px; --hd: 84px;
  position: relative; background: var(--pink); color: var(--ink);
  font-family: 'Commissioner', 'Helvetica Neue', sans-serif;
  font-variation-settings: "FLAR" 0; font-weight: 400; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.kw.framed { width: 390px; height: 844px; overflow-y: auto; overflow-x: hidden; }
.kw *, .kw *::before, .kw *::after { box-sizing: border-box; }
.kw img { display: block; max-width: 100%; }
.kw a { color: inherit; }
.kw button { font: inherit; color: inherit; }
.kw input, .kw select, .kw textarea { font: inherit; color: inherit; }
.kw :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.k { container: k / inline-size; position: relative; overflow-x: clip; }

/* ---------- типографика ---------- */
.disp { font-variation-settings: "FLAR" 100; font-weight: 500; text-transform: uppercase; letter-spacing: -.028em; line-height: .9; margin: 0; }
.h1 { font-size: min(7.3cqi, 108px); }
.h2 { font-size: min(5.4cqi, 78px); }
.h3 { font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.lbl { font-size: 12px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.lbl b { font-weight: 600; color: var(--corten); margin-right: 10px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.5; margin: 0; max-width: 520px; }
.p { margin: 0; color: var(--muted); }
.dot { display: inline-block; width: .16em; height: .16em; background: var(--red); margin-left: .06em; vertical-align: baseline; }

/* ---------- каркас ---------- */
.wrap { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec { position: relative; padding: 128px 0; scroll-margin-top: 60px; }
.sec > .wrap { z-index: 1; }
.gl { position: absolute; top: 0; bottom: 0; left: var(--pad); right: var(--pad); max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px calc(100% / 12)); border-right: 1px solid var(--line2); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.bg-white { background: var(--white); }
.bg-pink { background: var(--pink); }
.bg-pink2 { background: var(--pink2); }
.bg-ti { background: var(--ti); }
.bg-steel { background: var(--steel); color: var(--white); }
.bg-red { background: var(--red); color: var(--ink); }

/* шапка секции: линия, метка, перекрестие как в брендбуке */
.sh { margin-bottom: 64px; }
.sh-top { position: relative; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 40px; }
.sh-top::before, .x-cross::before { content: ''; position: absolute; left: -7px; top: -7px; width: 13px; height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.sh-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.sh-row .disp { grid-column: 1 / 9; }
.sh-row .lead { grid-column: 9 / 13; }
.bg-steel .sh-top { border-color: rgba(255,255,255,.22); }
.bg-steel .lbl b { color: #FF8A7D; }
.bg-red .sh-top { border-color: rgba(29,29,27,.35); }
.bg-red .lbl b { color: var(--ink); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-red { background: var(--red); color: var(--ink); }
.btn-red:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--steel); color: var(--white); }
.btn-dark:hover { background: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--pink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--white); color: var(--ink); }
.bg-steel .btn-line:hover, .bg-red .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
/* цвет текста кнопок сильнее общих .kw a и .kw button (color: inherit) */
.kw .btn-red, .kw .btn-red:focus-visible { color: var(--ink); }
.kw .btn-red:hover { color: var(--white); }
.kw .btn-dark, .kw .btn-dark:hover, .kw .btn-dark:focus-visible { color: var(--white); }
.kw .btn-ink, .kw .btn-ink:focus-visible { color: var(--white); }
.kw .btn-ink:hover { color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ibtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.ibtn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ulink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .35s; }
.ulink:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- 1. шапка ---------- */
.hd { position: sticky; top: 0; z-index: 60; height: var(--hd); transition: background .35s, border-color .35s, height .35s; border-bottom: 1px solid transparent; }
.hd .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.hd.on { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); height: 72px; }
.logo { display: block; color: var(--ink); text-decoration: none; }
.logo svg { display: block; height: 22px; width: auto; fill: currentColor; }
.nav { display: flex; gap: 2px; padding: 5px; margin-left: auto; border-radius: 999px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .35s; }
.hd.on .nav { background: transparent; }
.nav a { padding: 9px 15px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: background .2s; }
.nav a:hover { background: var(--pink2); }
.hd-r { display: flex; align-items: center; gap: 8px; }
.hd-phone { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .35s; }
.hd-phone small { font-weight: 400; font-size: 11px; color: var(--muted); }
.hd.on .hd-phone { background: transparent; }
.hd .btn { min-height: 48px; padding: 0 20px; font-size: 14px; }
.burger { display: none; }
.mmenu { display: none; }
/* шапка в одну строку на любой ширине: пункты и телефон не переносятся, блоки не сжимаются */
.logo, .nav, .hd-r, .hd .msgr, .hd-phone { flex: none; }
.nav a, .hd-phone { white-space: nowrap; }

/* ---------- 2. первый экран ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--hd)); isolation: isolate; background: var(--pink); }
.hero-main { position: relative; height: 840px; display: grid; grid-template-columns: 46% 54%; }
.hero-l { position: relative; z-index: 2; padding: calc(var(--hd) + 64px) 48px 0 max(var(--pad), calc((100cqi - var(--max)) / 2 + var(--pad))); }
.hero-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-tag svg { width: 30px; height: 20px; fill: var(--red); }
.hero-sub { margin: 28px 0 32px; font-size: 19px; line-height: 1.5; max-width: 500px; }
.hero-r { position: relative; overflow: hidden; background: var(--ti); }
.hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hs.on { opacity: 1; }
.hs.on img { transform: scale(1); }
.hero-cap { position: absolute; left: 28px; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 22px; background: var(--white); padding: 14px 18px 14px 20px; }
.hero-cap .lbl { white-space: nowrap; }
.bars { display: flex; gap: 6px; }
.bar { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.bar::before, .bar i { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.bar i { right: auto; width: 0; background: var(--ink); }
.bar.on i { animation: barfill 5.5s linear forwards; }
@keyframes barfill { to { width: 100%; } }
.hero-vert { position: absolute; right: 22px; top: calc(var(--hd) + 40px); z-index: 3; writing-mode: vertical-rl; color: var(--white); }
.hero-mark { position: absolute; z-index: 1; left: 37%; top: 70px; width: 1320px; pointer-events: none; color: rgba(255,255,255,.62); filter: drop-shadow(0 0 1.5px rgba(11,35,45,.32)); } /* 06.10: дуга белая полупрозрачная вместо difference, лёгкая тень держит её на розовом */
.hero-mark svg, .mk-out { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4px; vector-effect: non-scaling-stroke; overflow: visible; }
.hero-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.65,0,.35,1) .3s forwards; }
.hero-mark path + path { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.dz { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 30px; max-width: 540px; padding: 18px 20px; border: 1px dashed rgba(11,35,45,.45); background: rgba(255,255,255,.5); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.dz:hover { background: rgba(255,255,255,.85); }
.dz.over { border-color: var(--red); border-style: solid; background: var(--white); transform: scale(1.01); }
.dz.done { border-style: solid; border-color: var(--steel); background: var(--white); }
.dz input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: var(--steel); color: var(--white); }
.dz.over .dz-ico { background: var(--red); color: var(--ink); }
.dz-t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.dz-s { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.dz-s u { color: var(--ink); text-underline-offset: 3px; }

.facts { position: relative; background: var(--white); border-top: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 30px 28px 30px 0; border-right: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact .num { font-size: 44px; }
.fact .p { font-size: 14px; line-height: 1.4; }

/* ---------- счётчики ---------- */
.cnt { --n: var(--to); counter-reset: n var(--n); }
.cnt::after { content: counter(n); }

/* ---------- 3. кто вы ---------- */
.roles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.tabs { grid-column: 1 / 5; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 8px 22px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 19px; line-height: 1.3; color: var(--muted); transition: color .25s, padding .35s; }
.tab .lbl { width: 28px; color: var(--muted); }
.tab .sq { margin-left: auto; width: 10px; height: 10px; background: var(--red); transform: scale(0); transition: transform .3s; flex: none; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); padding-left: 10px; font-weight: 500; }
.tab.on .lbl { color: var(--corten); }
.tab.on .sq { transform: scale(1); }
.rstage { grid-column: 5 / 13; position: relative; min-height: 640px; }
.rimg { position: absolute; top: 0; right: 0; width: 72%; height: 640px; overflow: hidden; opacity: 0; transition: opacity .7s; background: var(--ti); }
.rimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.4s ease; }
.rimg.on { opacity: 1; }
.rimg.on img { transform: scale(1); }
/* студийный кадр на белом: вписываем в открытую часть, левые 38,9% закрывает плашка */
.rimg.studio { background: #fff; }
.rimg.studio img { box-sizing: border-box; object-fit: contain; background: #fff; padding: 40px 32px 40px calc(38.9% + 32px); }
.rpanel { position: absolute; left: 0; bottom: 0; width: 56%; padding: 40px 40px 40px; background: var(--pink); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s; pointer-events: none; }
.rpanel.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.rpanel .h3 { margin: 14px 0 22px; }
.pts { list-style: none; margin: 0 0 28px; padding: 0; }
.pts li { display: grid; grid-template-columns: 30px 1fr; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.pts li > span:first-child { color: var(--corten); font-size: 12px; font-weight: 600; padding-top: 3px; }

/* ---------- 4. направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 320px; gap: 16px; }
.dcard { position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--ink); background: var(--ti); }
.dcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.dcard:hover img { transform: scale(1.06); }
.d2 img { object-position: 50% 0%; }
.d5 img { object-position: 50% 30%; }
.d1 { grid-column: 1 / 6; grid-row: 1 / 3; }
.d2 { grid-column: 6 / 13; grid-row: 1 / 2; }
.d3 { grid-column: 6 / 9; grid-row: 2 / 4; }
.d4 { grid-column: 9 / 13; grid-row: 2 / 3; }
.d5 { grid-column: 1 / 6; grid-row: 3 / 4; }
.d6 { grid-column: 9 / 13; grid-row: 3 / 4; }
.dnum { position: absolute; top: 16px; left: 16px; background: var(--white); padding: 7px 10px; }
.darr { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--white); transition: background .3s, transform .45s; }
.dcard:hover .darr { background: var(--red); transform: rotate(45deg); }
.dplate { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); width: 380px; background: var(--white); padding: 18px 22px 18px; }
.dplate .lbl { color: var(--corten); }
.dplate .disp { font-size: 26px; line-height: .98; margin-top: 8px; }
.dmore { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.dmore > span { overflow: hidden; }
.dmt { display: block; padding-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dcard:hover .dmore, .dcard:focus-visible .dmore { grid-template-rows: 1fr; }
.dline { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .6s ease; }
.dcard:hover .dline { width: 100%; }

/* ---------- 5. квиз ---------- */
.quiz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.quiz-l { grid-column: 1 / 6; position: relative; }
.quiz-l .lead { margin-top: 28px; }
.quiz-l .alt { margin-top: 36px; display: flex; gap: 14px; align-items: center; }
.qcard { grid-column: 7 / 13; background: var(--white); padding: 40px; position: relative; min-height: 560px; display: flex; flex-direction: column; }
.qsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 34px; }
.qs { border-top: 2px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .04em; transition: border-color .3s, color .3s; }
.qs.on { border-color: var(--red); color: var(--ink); font-weight: 500; }
.qs.done { border-color: var(--steel); color: var(--ink); }
.qtitle { font-size: 34px; margin-bottom: 26px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; font-size: 15px; line-height: 1.3; transition: border-color .2s, background .2s; }
.opt i { width: 18px; height: 18px; border: 1px solid var(--line); flex: none; position: relative; transition: background .2s, border-color .2s; }
.opt:hover { border-color: var(--ink); }
.opt.on { border-color: var(--ink); background: var(--pink); }
.opt.on i { background: var(--red); border-color: var(--red); }
.qnav { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label, .fld .flab { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.inp { width: 100%; height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(11,35,45,.35); background: transparent; font-size: 17px; outline: none; border-radius: 0; transition: border-color .2s; }
.inp:focus { border-color: var(--red); }
textarea.inp { height: 96px; padding-top: 12px; resize: vertical; }
select.inp { cursor: pointer; }
.qform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s; }
.chip.on { background: var(--steel); color: var(--white); border-color: var(--steel); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--steel); cursor: pointer; }
.qdone { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.qdone .ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--steel); color: var(--white); }
.qsum { list-style: none; padding: 0; margin: 0; width: 100%; }
.qsum li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.qsum li span:first-child { color: var(--muted); }
.big-mark { position: absolute; pointer-events: none; color: var(--steel); opacity: .9; }

/* ---------- 6. сравнение ---------- */
.cmpw { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.cmp-l { grid-column: 1 / 6; padding-bottom: 8px; }
.cmp-legend { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cmp-legend div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp { grid-column: 7 / 13; position: relative; height: 520px; overflow: hidden; background: var(--ti); user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .top { position: absolute; inset: 0; }
.cmp-h { position: absolute; top: 0; bottom: 0; width: 0; z-index: 3; pointer-events: none; }
.cmp-h::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); }
.cmp-knob { position: absolute; top: 50%; left: -34px; width: 68px; height: 68px; margin-top: -34px; border-radius: 999px; background: var(--white); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(11,35,45,.18); transition: transform .2s; }
.cmp:hover .cmp-knob { transform: scale(1.08); }
.cmp-knob svg { width: 30px; height: 30px; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.cmp-tag { position: absolute; top: 20px; z-index: 2; background: var(--white); padding: 8px 12px; }
.cmp-tag.l { left: 20px; }
.cmp-tag.r { right: 20px; }

/* ---------- 7. объекты ---------- */
.obj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.obj-ctrl { display: flex; gap: 8px; align-items: center; }
.obj-ctrl .p { font-size: 14px; margin-right: 12px; }
.rib { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; cursor: grab; user-select: none; scrollbar-width: none;
  padding: 0 max(var(--pad), calc((100cqi - var(--max)) / 2 + var(--pad))); scroll-padding: 0 max(var(--pad), calc((100cqi - var(--max)) / 2 + var(--pad))); }
.rib::-webkit-scrollbar { display: none; }
.rib.drag { cursor: grabbing; scroll-snap-type: none; }
.ocard { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ocard.w { width: 600px; }
.ocard.t { width: 340px; }
.ophoto { position: relative; height: 460px; overflow: hidden; background: var(--ti); }
.ophoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.ocard:hover .ophoto img { transform: scale(1.05); }
.oopen { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 14px; font-size: 13px; font-weight: 500; transform: translateY(14px); opacity: 0; transition: opacity .3s, transform .35s; }
.ocard:hover .oopen { opacity: 1; transform: none; }
.ometa { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.ometa .t1 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.prog { height: 1px; background: var(--line); margin-top: 40px; position: relative; }

/* галерея */
.gal { position: fixed; inset: 0; z-index: 200; background: rgba(11,35,45,.94); color: var(--white); display: flex; flex-direction: column; padding: 20px max(16px, 3vw); gap: 16px; animation: galin .3s ease; }
@keyframes galin { from { opacity: 0; } }
.gal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gal-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 16px; }
.gal-main img { width: 100%; height: 100%; max-height: 74vh; object-fit: contain; animation: galin .35s ease; }
.gal .ibtn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: var(--white); width: 56px; height: 56px; }
.gal .ibtn:hover { background: var(--white); color: var(--ink); }
.gal-th { display: flex; gap: 8px; justify-content: center; }
.gal-th button { width: 84px; height: 60px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.gal-th button.on { opacity: 1; border-color: var(--red); }
.gal-th img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. производство ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 16px; }
.mt { position: relative; overflow: hidden; background: #cfcfcd; }
.mt img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.92) brightness(1.04); transition: filter .6s, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.mt:hover img { filter: grayscale(0) contrast(1.06); transform: scale(1.05); }
.mt .lbl { position: absolute; left: 14px; bottom: 14px; background: var(--white); padding: 7px 10px; transform: translateY(10px); opacity: 0; transition: opacity .3s, transform .3s; }
.mt:hover .lbl { opacity: 1; transform: none; }
.m1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.m2 { grid-column: 5 / 10; grid-row: 1 / 2; }
.m3 { grid-column: 10 / 13; grid-row: 1 / 2; }
.m4 { grid-column: 5 / 8; grid-row: 2 / 3; }
.m5 { grid-column: 8 / 13; grid-row: 2 / 3; }
.eq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 72px; }
.eqi { grid-column: span 2; border-top: 1px solid var(--ink); padding-top: 18px; position: relative; }
.eqi.wide { grid-column: span 4; }
.eqi .disp { font-size: 64px; letter-spacing: -.04em; white-space: nowrap; }
.eqi .disp small { font-size: 22px; letter-spacing: 0; margin-left: 6px; }
.eqi .p { margin-top: 14px; font-size: 14px; line-height: 1.45; max-width: 260px; }
.prod-cta { margin-top: 56px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- 9. как работаем ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.how-l { grid-column: 1 / 6; position: sticky; top: 120px; }
.how-l .lead { margin: 28px 0 36px; }
.steps { grid-column: 7 / 13; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before, .sline { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.sline { background: var(--red); transform-origin: top; transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: 52px; }
.step:last-child { padding-bottom: 0; }
.snum { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--steel); color: var(--white); font-weight: 600; font-size: 15px; border: 1px solid var(--steel); }
.step .disp { font-size: 30px; line-height: 1; padding-top: 12px; }
.step .p { margin-top: 12px; font-size: 16px; max-width: 460px; }

/* ---------- 10. две фабрики ---------- */
.fam-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 64px; }
.fam-top .disp { grid-column: 1 / 8; }
.fam-top .lead { grid-column: 8 / 13; }
.tl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: 56px; }
.tl > div { padding: 22px 24px 0 0; }
.tl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.tl .disp { font-size: 72px; letter-spacing: -.04em; }
.tl .p { margin-top: 10px; font-size: 15px; max-width: 300px; }
.facs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.fac { position: relative; background: var(--white); }
.fac.a { grid-column: 1 / 8; }
.fac.b { grid-column: 8 / 13; margin-top: 96px; }
.fac .ph { height: 420px; overflow: hidden; }
.fac .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.fac:hover .ph img { transform: scale(1.04); }
.fac .bd { padding: 28px 30px 32px; display: grid; gap: 12px; }
.fac .disp { font-size: 40px; }

/* ---------- 11. тендеры ---------- */
.tnd { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.tnd-l { grid-column: 1 / 8; }
.tnd-list { list-style: none; padding: 0; margin: 40px 0 44px; border-top: 1px solid rgba(255,255,255,.22); max-width: 640px; }
.tnd-list li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 18px; line-height: 1.4; }
.tnd-list li span { color: #FF8A7D; font-size: 12px; font-weight: 600; padding-top: 5px; letter-spacing: .1em; }
.req { grid-column: 8 / 13; background: var(--white); color: var(--ink); padding: 34px; position: relative; }
.req-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.req-h svg { width: 42px; height: 28px; fill: var(--red); }
.req dl { margin: 0 0 26px; }
.req dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.req dt { color: var(--muted); font-size: 13px; }
.req dd { margin: 0; font-weight: 500; }
.on-dark { color: #C3CED3; }

/* ---------- 12. сад и подарки ---------- */
.garden { position: relative; overflow: hidden; }
.garden .gm { position: absolute; left: -260px; bottom: -330px; width: 1500px; color: var(--ink); opacity: .55; pointer-events: none; }
.gwrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.g-l { grid-column: 1 / 6; position: relative; }
.g-l .disp { font-size: min(8.4cqi, 128px); line-height: .86; }
.g-l .lead { margin: 30px 0 38px; }
.g-r { grid-column: 6 / 13; position: relative; height: 680px; }
.g-r .big { position: absolute; right: 0; top: 0; width: 86%; height: 600px; overflow: hidden; }
.g-r .sm { position: absolute; left: 0; bottom: 0; width: 38%; height: 300px; overflow: hidden; border: 10px solid var(--red); }
.g-r img { width: 100%; height: 100%; object-fit: cover; }
.g-r .lbl { position: absolute; right: 16px; top: 16px; background: var(--white); padding: 7px 10px; }
.g-l .btn-line { background: var(--white); color: var(--ink); border-color: var(--white); }
.g-l .btn-line:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }

/* ---------- 13. форма ---------- */
.fin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.fin-l { grid-column: 1 / 6; }
.bigphone { display: inline-block; margin: 34px 0 10px; font-size: min(4.1cqi, 54px); text-decoration: none; white-space: nowrap; }
.bigphone:hover { color: var(--corten); }
.contacts { margin-top: 30px; border-top: 1px solid var(--line); }
.contacts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contacts dt, .contacts .k1 { color: var(--muted); font-size: 13px; padding-top: 2px; }
.msg { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.msg .btn { min-height: 52px; }
.fcard { grid-column: 7 / 13; background: var(--pink); padding: 44px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
.fgrid .full { grid-column: 1 / -1; }
.fdz { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed rgba(11,35,45,.45); background: rgba(255,255,255,.6); cursor: pointer; transition: background .25s, border-color .25s; position: relative; }
.fdz.over { border-color: var(--red); border-style: solid; background: var(--white); }
.fdz input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.files span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.fsent { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-height: 420px; justify-content: center; }

/* ---------- 14. подвал ---------- */
.ft { background: var(--steel); color: var(--white); padding: 96px 0 0; position: relative; overflow: hidden; }
.ft-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ft-c { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ft-c.first { grid-column: span 4; gap: 22px; }
.ft-c .lbl { color: #9FB1B9; margin-bottom: 8px; }
.ft a { text-decoration: none; color: #DDE4E7; transition: color .2s; }
.ft a:hover { color: var(--white); }
.ft .logo { color: var(--white); }
.ft-bot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 72px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: #9FB1B9; }
.ft-logo { padding: 24px 0 40px; color: rgba(255,255,255,.55); }
.ft-logo svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; }

/* липкая панель на телефоне */
.mbar { display: none; }

/* ---------- появление при прокрутке и счётчики (только где браузер умеет) ---------- */
@keyframes rv { from { opacity: 0; transform: translateY(56px); } }
@keyframes cnt { from { --n: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes stepon { from { background: var(--white); color: var(--ink); border-color: var(--line); } }
@keyframes drawv { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .cnt { animation: cnt linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .sline { animation: grow linear both; animation-timeline: view(); animation-range: entry 60% exit 60%; }
  .snum { animation: stepon linear both; animation-timeline: view(); animation-range: entry 100% cover 40%; }
  .ft-logo path { stroke-dasharray: 1; animation: drawv linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .cnt, .sline, .snum, .ft-logo path, .hero-mark path { animation: none !important; stroke-dashoffset: 0 !important; }
  .hs, .hs img, .rimg, .rpanel { transition: none !important; }
}

/* ---------- планшет ---------- */
@container k (max-width: 1180px) {
  .nav a { padding: 9px 11px; font-size: 13px; }
  .hd-phone small { display: none; }
}

/* ---------- шапка на средних ширинах (821–1420): ужимаем, затем мессенджеры и меню уходят в бургер ---------- */
@container k (min-width: 821px) and (max-width: 1420px) {
  .hd .wrap { gap: 16px; }
  .nav { gap: 0; padding: 4px; }
  .nav a { padding: 9px 11px; font-size: 13px; }
  .hd-r { gap: 6px; }
  .hd-phone { padding: 6px 10px; }
  .hd-phone small { display: none; }
  .hd .ibtn { width: 44px; height: 44px; }
  .hd .btn { padding: 0 18px; }
}
@container k (min-width: 821px) and (max-width: 1300px) {
  .hd .msgr { display: none; }
  .burger { display: inline-grid; }
  .mmenu { display: block; position: absolute; top: 100%; left: auto; right: max(var(--pad), calc((100cqi - var(--max)) / 2 + var(--pad))); width: 380px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(11,35,45,.35); padding: 8px 24px 24px; }
  .mmenu a.mi { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; }
  .mmenu .btns { margin-top: 20px; }
  .mmenu .btns .btn { flex: 1 1 calc(50% - 6px); min-height: 48px; padding: 0 16px; }
}
@container k (min-width: 821px) and (max-width: 1200px) {
  .nav { display: none; }
  .hd-r { margin-left: auto; }
}

/* ---------- телефон ---------- */
@container k (max-width: 820px) {
  .k > * { --pad: 16px; --hd: 64px; }
  .sec { padding: 72px 0; }
  .h1 { font-size: 12.6cqi; }
  .h2 { font-size: 10.6cqi; }
  .lead { font-size: 17px; }
  .sh { margin-bottom: 36px; }
  .sh-top { margin-bottom: 24px; }
  .sh-top .lbl.muted { display: none; }
  .sh-row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .btn { min-height: 52px; padding: 0 20px; }

  .hd .wrap { gap: 8px; }
  .hd.on { height: 64px; }
  .logo svg { height: 17px; }
  .nav, .hd-phone, .hd .btn, .hd .msgr { display: none; }
  .hd-r { margin-left: auto; }
  .burger { display: inline-grid; }
  .mmenu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 24px; }
  .mmenu a.mi { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 24px; }
  .mmenu .btns { margin-top: 20px; }
  .mmenu .btns .btn { flex: 1 1 calc(50% - 6px); }

  .hero-main { height: auto; display: flex; flex-direction: column-reverse; }
  .hero-r { height: 470px; }
  .hero-l { padding: 32px 16px 40px; }
  .hero-tag { margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin: 20px 0 24px; }
  .hero-l .btns .btn { flex: 1 1 100%; }
  .hero-mark { left: -8%; top: 120px; width: 600px; }
  .hero-cap { left: 12px; bottom: 12px; right: 12px; justify-content: space-between; gap: 10px; padding: 10px 12px; }
  .hero-cap .lbl { white-space: normal; font-size: 11px; }
  .bar { width: 28px; }
  .hero-vert { display: none; }
  .dz { padding: 14px; gap: 14px; }
  .dz-ico { width: 44px; height: 44px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact + .fact { padding: 20px 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--line2); }
  .fact:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line2); }
  .fact .num { font-size: 30px; }
  .fact .p { font-size: 12.5px; }

  .roles { display: block; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 8px; border: 0; margin: 0 -16px 20px; padding: 0 16px; scrollbar-width: none; }
  .tab { flex: none; width: auto; padding: 0 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .tab.on { padding-left: 16px; background: var(--steel); color: var(--white); border-color: var(--steel); }
  .tab .lbl, .tab .sq { display: none; }
  .rstage { min-height: 0; display: grid; }
  .rimg { position: relative; width: 100%; height: 300px; grid-area: 1 / 1; }
  .rimg.studio img { padding: 12px 16px; }
  .rpanel { position: relative; width: 100%; padding: 26px 20px 28px; grid-area: 2 / 1; display: none; }
  .rpanel.on { display: block; }
  .rpanel .h3 { font-size: 24px; }

  .dirs { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .dcard { grid-column: auto !important; grid-row: auto !important; height: 330px; }
  .dcard.d1, .dcard.d3 { height: 440px; }
  .d5 img { object-position: 85% 50%; }
  .dmore { grid-template-rows: 1fr; }
  .dplate { width: auto; right: 12px; left: 12px; bottom: 12px; max-width: none; padding: 16px 18px; }
  .dplate .disp { font-size: 22px; }

  .quiz { display: block; }
  .quiz-l { margin-bottom: 32px; }
  .quiz-l .alt { display: none; }
  .qcard { padding: 24px 18px; min-height: 0; }
  .qtitle { font-size: 26px; }
  .opts, .qform { grid-template-columns: 1fr; }
  .qnav .btn { flex: 1; }

  .cmpw { display: block; }
  .cmp-l { margin-bottom: 28px; }
  .cmp-legend { display: none; }
  .cmp { height: 440px; }
  .cmp-knob { width: 56px; height: 56px; left: -28px; margin-top: -28px; }

  .obj-head { flex-direction: column; align-items: flex-start; }
  .obj-ctrl .ibtn { display: none; }
  .rib { gap: 12px; }
  .ocard.w { width: 84cqi; }
  .ocard.t { width: 62cqi; }
  .ophoto { height: 340px; }
  .oopen { opacity: 1; transform: none; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 8px; }
  .m1 { grid-column: 1 / 2; grid-row: 1 / 3; }
  .m2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .m3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .m4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .m5 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .eq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 44px; }
  .eqi, .eqi.wide { grid-column: span 1; }
  .eqi.wide { grid-column: 1 / -1; }
  .eqi .disp { font-size: 40px; }
  .eqi .disp small { font-size: 16px; }
  .prod-cta .btn { flex: 1 1 100%; }

  .how { display: block; }
  .how-l { position: relative; top: 0; margin-bottom: 44px; }
  .steps::before, .sline { left: 21px; }
  .step { grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 36px; }
  .snum { width: 44px; height: 44px; font-size: 13px; }
  .step .disp { font-size: 22px; padding-top: 10px; }
  .step .p { font-size: 15px; }

  .fam-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .tl { grid-template-columns: 1fr; }
  .tl > div, .tl > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tl .disp { font-size: 52px; }
  .facs { display: flex; flex-direction: column; gap: 16px; }
  .fac.b { margin-top: 0; }
  .fac .ph { height: 260px; }
  .fac .bd { padding: 22px 20px 24px; }
  .fac .disp { font-size: 30px; }

  .big-mark { width: 640px !important; right: -170px !important; top: 1000px !important; }
  .tnd { display: block; }
  .tnd-list li { font-size: 16px; grid-template-columns: 36px 1fr; }
  .tnd-l .btns .btn { flex: 1 1 100%; }
  .req { margin-top: 40px; padding: 24px 20px; }
  .req dl div { grid-template-columns: 1fr; gap: 2px; }

  .garden .gm { width: 760px; left: -200px; bottom: auto; top: 320px; }
  .gwrap { display: flex; flex-direction: column; gap: 36px; align-items: stretch; }
  .g-l .disp { font-size: 17cqi; }
  .g-l .btns .btn { flex: 1 1 100%; }
  .g-r { height: 420px; }
  .g-r .big { width: 88%; height: 330px; }
  .g-r .sm { width: 48%; height: 180px; border-width: 6px; }

  .fin { display: block; }
  .bigphone { font-size: 9.4cqi; }
  .contacts > div { grid-template-columns: 90px 1fr; font-size: 15px; }
  .fcard { margin-top: 44px; padding: 26px 18px; }
  .fgrid { grid-template-columns: 1fr; }

  .ft { padding-top: 64px; padding-bottom: 76px; }
  .ft-g { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ft-c, .ft-c.first { grid-column: span 1; }
  .ft-c.first { grid-column: 1 / -1; }
  .ft-bot { flex-direction: column; gap: 8px; margin-top: 44px; }

  .mbar { display: flex; position: sticky; bottom: 0; z-index: 70; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; min-height: 52px; }
  .mbar .call { width: 52px; min-height: 52px; padding: 0; background: var(--steel); color: var(--white); }
}

/* служебное */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.to2 { --to: 2; } .to4 { --to: 4; } .to20 { --to: 20; } .to63 { --to: 63; } .to350 { --to: 350; }
.to1500 { --to: 1500; } .to2015 { --to: 2015; } .to3000 { --to: 3000; }
.ferr { font-size: 13px; color: var(--corten); }

.mx { font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1; }

/* ---------- аудит 05.10 (помощник «Сайт»): счётчики первого экрана, «Сад и подарки» ---------- */
.cnt.to1500, .cnt.to3000, .cnt.to2 { animation: none !important; }
.g-l .disp { font-size: min(7.4cqi, 112px); }
@container k (max-width: 820px) {
  .g-l .disp { font-size: 14.4cqi; }
  .garden .sh-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-mark { top: 76px; }
}

/* ---------- первый экран главной 06.10: заголовок не заходит на дугу знака, меню не наезжает на фото ----------
   Фото начинается под шапкой, дуга знака стоит у края фото, кегль заголовка считается от ширины колонки до дуги. */
@container k (min-width: 821px) {
  .hero-home { --hp: max(var(--pad), calc((100cqi - var(--max)) / 2 + var(--pad))); --hs: 46cqi; --mkx: 72px; }
  .hero-home .hero-r { margin-top: var(--hd); }
  .hero-home .hero-vert { top: 40px; }
  .hero-home .hero-mark { left: calc(var(--hs) - var(--mkx)); top: calc(var(--hd) - 7px); }
  .hero-home .h1 { font-size: min(108px, calc((var(--hs) - var(--mkx) - 24px - var(--hp)) / 5)); }
  .hero-home .hero-tag { max-width: calc(var(--hs) - var(--mkx) - 6px - var(--hp)); }
}
@container k (min-width: 821px) and (max-width: 1100px) {
  .hero-home { --hs: 50cqi; --mkx: 56px; }
  .hero-home .hero-main { grid-template-columns: 50% 50%; }
}
@container k (max-width: 820px) {
  .hero-home .hero-r { margin-top: var(--hd); height: calc(470px - var(--hd)); }
}

/* ---------- первый экран главной 06.10, правка 2: дуга знака не заходит в полосу с цифрами, плашки цифр без переполнения ----------
   Дуга обрезается по низу основной зоны первого экрана, плашки цифр стоят на сплошном белом фоне под ней.
   Подпись Metal Furniture Family на сплошной плашке, как подпись слайда: читается на любом участке фото, дуга проходит под ней.
   Кегль цифр тянется от ширины экрана, цифра не переносится; на узком десктопе плашки 2×2. */
.hero-home .hero-main { overflow: hidden; }
@supports (overflow: clip) { .hero-home .hero-main { overflow: clip; } }
.hero-home .fact { min-width: 0; }
.hero-home .fact .num { white-space: nowrap; font-size: clamp(32px, 3cqi, 44px); }
.hero-home .hero-vert { padding: 16px 9px; background: var(--steel); color: var(--white); }
@container k (min-width: 821px) {
  .hero-home .hero-main { height: auto; min-height: 840px; }
  .hero-home .hero-l { padding-bottom: 32px; }
}
@container k (min-width: 821px) and (max-width: 1100px) {
  .hero-home .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-home .fact, .hero-home .fact + .fact { padding: 26px 24px 26px 0; border-right: 0; border-bottom: 1px solid var(--line2); }
  .hero-home .fact:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line2); }
  .hero-home .fact:nth-child(n + 3) { border-bottom: 0; }
  .hero-home .fact .num { font-size: 40px; }
}
@container k (max-width: 820px) {
  .hero-home .fact .num { font-size: min(30px, 6.8cqi); }
}

/* ---------- первый экран главной 06.10, правка 3: подпись слайда не вылезает за фото, цифры первого экрана без анимации ----------
   Плашка подписи слайда не шире фото: если подпись не помещается, она переносится на вторую строку, полоски слайдов видны целиком.
   Цифры первого экрана сразу стоят в итоговом значении, как три счётчика с 05.10: при частично видной полосе цифр не застывают на промежуточном числе. */
.hero-home .cnt { animation: none !important; }
@container k (min-width: 821px) {
  .hero-home .hero-cap { max-width: calc(100% - 56px); }
  .hero-home .hero-cap .lbl { white-space: normal; min-width: 0; }
  .hero-home .hero-cap .lbl b { white-space: nowrap; }
  .hero-home .hero-cap .bars { flex: none; }
}
@container k (min-width: 821px) and (max-width: 1100px) {
  .hero-home .hero-cap { gap: 16px; }
  .hero-home .hero-cap .bar { width: 32px; }
}
