/* ==========================================================================
   Штыковские двери — версия 2 «как Drinkit»
   Насыщенный фирменный цвет во весь фон, белые карточки поверх,
   пилюли вместо прямоугольников, цена внутри кнопки, видео вместо картинок.
   ========================================================================== */

:root {
    /* Фирменный цвет: густой еловый — лес Приморья и дерево, а не кофе */
    --br: #0b6b47;
    --br-2: #14a06b;
    --br-3: #075138;
    --br-soft: #e6f2ec;

    --ink: #12181a;
    --ink-2: #47535a;
    --muted: #7d8a91;
    --line: #e8e6e1;

    --cream: #f6f2ea;
    --cream-2: #efe9de;
    --white: #fff;

    --hot: #e2542c;      /* акции и скидки */
    --gold: #d9a441;

    --r-xs: 12px;
    --r-sm: 18px;
    --r: 26px;
    --r-lg: 34px;
    --pill: 999px;

    --sh-sm: 0 2px 8px rgba(11, 24, 18, .06);
    --sh: 0 6px 24px rgba(11, 24, 18, .1);
    --sh-lg: 0 20px 60px rgba(11, 24, 18, .22);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);

    --pad: 16px;
    --bar-h: 76px;
}
@media (min-width: 1024px) { :root { --pad: 40px; --bar-h: 0px; } }

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; line-height: 1.5; color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: var(--bar-h);
}
body.is-locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 9vw, 76px); }
h2 { font-size: clamp(27px, 5.5vw, 48px); }
h3 { font-size: clamp(19px, 3vw, 26px); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--br-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 44px 0; }
@media (min-width: 1024px) { .sec { padding: 84px 0; } }
.sec--brand { background: var(--br); color: #fff; }
.sec--cream { background: var(--cream); }
.sec--white { background: var(--white); }

.eyebrow2 {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px; border-radius: var(--pill);
    background: var(--br-soft); color: var(--br-3);
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 16px;
}
.sec--brand .eyebrow2 { background: rgba(255, 255, 255, .16); color: #fff; }

.lead { font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.sec--brand .lead { color: rgba(255, 255, 255, .82); }
@media (min-width: 1024px) { .lead { font-size: 19px; } }

/* ============================ Кнопки-пилюли ============================ */
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 54px; padding: 14px 28px;
    background: var(--br); color: #fff; border: 0; border-radius: var(--pill);
    font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
    transition: transform .16s var(--bounce), background .18s var(--ease), box-shadow .18s var(--ease);
}
.pill:hover { background: var(--br-3); transform: translateY(-2px); box-shadow: var(--sh); }
.pill:active { transform: translateY(0) scale(.98); }
.pill[disabled] { opacity: .45; pointer-events: none; }
.pill--light { background: var(--white); color: var(--ink); }
.pill--light:hover { background: var(--cream-2); }
.pill--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.pill--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.pill--onBrand { background: rgba(255, 255, 255, .17); color: #fff; backdrop-filter: blur(8px); }
.pill--onBrand:hover { background: rgba(255, 255, 255, .28); }
.pill--hot { background: var(--hot); }
.pill--hot:hover { background: #c74624; }
.pill--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.pill--lg { min-height: 62px; padding: 18px 34px; font-size: 18px; }
.pill--block { display: flex; width: 100%; }
.pill__price { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Круглая иконка */
.circ {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--white); color: var(--ink); box-shadow: var(--sh-sm);
    position: relative; flex-shrink: 0;
    transition: transform .16s var(--bounce), background .18s var(--ease);
}
.circ:hover { transform: scale(1.07); }
.circ svg { width: 21px; height: 21px; }
.circ--onBrand { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.circ__n {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: var(--pill); background: var(--hot); color: #fff;
    font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.circ__n[data-count="0"] { display: none; }

/* ============================ Шапка ============================ */
.h2 {
    position: sticky; top: 0; z-index: 60;
    background: rgba(246, 242, 234, .86); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.h2__in { display: flex; align-items: center; gap: 12px; height: 66px; }
@media (min-width: 1024px) { .h2__in { height: 82px; gap: 26px; } }

.mark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mark__i {
    width: 38px; height: 38px; border-radius: 12px; background: var(--br);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mark__i::after { content: ""; width: 12px; height: 20px; border: 2px solid #fff; border-radius: 2px; }
.mark b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mark span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.h2__nav { display: none; }
@media (min-width: 1024px) {
    .h2__nav { display: flex; gap: 4px; margin-left: 14px; }
    .h2__nav a { padding: 10px 16px; border-radius: var(--pill); font-weight: 700; font-size: 15px; }
    .h2__nav a:hover { background: rgba(0, 0, 0, .05); }
    .h2__nav a.on { background: var(--br); color: #fff; }
}
.h2__acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Переключатель версий */
.vswitch {
    display: inline-flex; padding: 3px; border-radius: var(--pill);
    background: rgba(0, 0, 0, .06); font-size: 12px; font-weight: 800;
}
.vswitch a {
    padding: 6px 12px; border-radius: var(--pill); color: var(--ink-2); white-space: nowrap;
    transition: background .18s var(--ease), color .18s var(--ease);
}
.vswitch a.on { background: var(--br); color: #fff; }
.sec--brand .vswitch, .hero2 .vswitch { background: rgba(255, 255, 255, .18); }
.sec--brand .vswitch a, .hero2 .vswitch a { color: rgba(255, 255, 255, .8); }
.sec--brand .vswitch a.on, .hero2 .vswitch a.on { background: #fff; color: var(--br-3); }

/* ============================ Главный экран ============================ */
.hero2 {
    position: relative; min-height: 88vh; display: flex; align-items: flex-end;
    color: #fff; background: var(--br-3); overflow: hidden;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}
@media (min-width: 1024px) { .hero2 { min-height: 82vh; align-items: center; } }
.hero2__media { position: absolute; inset: 0; }
.hero2__media video, .hero2__media img { width: 100%; height: 100%; object-fit: cover; }
.hero2__veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7, 40, 28, .55) 0%, rgba(7, 40, 28, .25) 35%, rgba(7, 40, 28, .93) 100%);
}
@media (min-width: 1024px) {
    .hero2__veil { background: linear-gradient(100deg, rgba(7, 40, 28, .93) 0%, rgba(7, 40, 28, .6) 48%, rgba(7, 40, 28, .12) 100%); }
}
.hero2__in { position: relative; padding: 40px 0 32px; width: 100%; }
@media (min-width: 1024px) { .hero2__in { padding: 60px 0; } }
.hero2__txt { max-width: 660px; }
.hero2 h1 { color: #fff; text-wrap: balance; margin-bottom: 16px; }
.hero2 .lead { color: rgba(255, 255, 255, .88); margin-bottom: 26px; }
.hero2__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero2__btns .pill { flex: 1 1 210px; }
@media (min-width: 700px) { .hero2__btns .pill { flex: 0 0 auto; } }

.hero2__facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero2__facts b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
@media (min-width: 700px) { .hero2__facts b { font-size: 34px; } }
.hero2__facts span { font-size: 11px; color: rgba(255, 255, 255, .68); line-height: 1.25; }

.hero2__sound {
    position: absolute; right: var(--pad); top: 20px; z-index: 3;
}

/* ============================ Плитки-карточки ============================ */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tiles { gap: 16px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.tile__media { position: relative; aspect-ratio: 3 / 4; background: var(--cream-2); overflow: hidden; }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; }
.tile__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.tile.playing .tile__media video { opacity: 1; }
.tile__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 700px) { .tile__body { padding: 18px; } }
.tile__cat { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-size: 17px; margin: 0; letter-spacing: -.02em; }
.tile__meta { font-size: 13px; color: var(--muted); margin: 0; }
.tile__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; }
.tile__price { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.tile__price s { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tile__add { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--br); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; line-height: 1; transition: transform .16s var(--bounce), background .18s var(--ease); }
.tile__add:hover { background: var(--br-3); transform: scale(1.1) rotate(90deg); }

.flag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 6px 12px; border-radius: var(--pill);
    background: var(--ink); color: #fff; font-size: 11px; font-weight: 800;
}
.flag--hot { background: var(--hot); }
.flag--new { background: var(--br); }
.flag--glass { background: rgba(255, 255, 255, .82); color: var(--ink); backdrop-filter: blur(6px); }
.tile__fav {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.tile__fav svg { width: 18px; height: 18px; }
.tile__fav.on { color: var(--hot); }

/* ============================ Строка фактов ============================ */
.facts {
    display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.facts::-webkit-scrollbar { display: none; }
.fact {
    flex: 1 0 auto; min-width: 86px; text-align: center; padding: 10px 12px;
    background: rgba(255, 255, 255, .1); border-radius: var(--r-xs);
}
.fact b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.fact span { font-size: 11px; opacity: .66; }

/* ============================ Полоса-бегунок ============================ */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px var(--pad) 14px; margin: 0 calc(var(--pad) * -1);
    scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 76%; }
@media (min-width: 700px) { .rail > * { flex: 0 0 42%; } }
@media (min-width: 1024px) { .rail > * { flex: 0 0 27%; } }

/* ============================ Нижняя панель ============================ */
.bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 242, 234, .93); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    display: flex; align-items: center; gap: 10px;
}
@media (min-width: 1024px) { .bar { display: none; } }
.bar__nav { display: flex; gap: 6px; flex: 1; }
.bar__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border: 0; background: none; border-radius: var(--r-xs);
    font-size: 10px; font-weight: 700; color: var(--muted); position: relative;
}
.bar__item svg { width: 22px; height: 22px; }
.bar__item.on { color: var(--br); }

/* Панель покупки в карточке */
.buybar2 {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 72;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px);
    box-shadow: 0 -8px 30px rgba(11, 24, 18, .12);
    display: flex; align-items: center; gap: 10px;
}
@media (min-width: 1024px) { .buybar2 { position: static; padding: 0; background: none; box-shadow: none; backdrop-filter: none; } }

/* Переключатель размеров как у Drinkit */
.sizes { display: inline-flex; gap: 4px; padding: 4px; background: var(--cream-2); border-radius: var(--pill); }
.size {
    min-width: 52px; padding: 9px 12px; border: 0; border-radius: var(--pill);
    background: transparent; font-size: 13px; font-weight: 800; line-height: 1.1; color: var(--ink-2);
    transition: background .18s var(--ease), color .18s var(--ease);
}
.size small { display: block; font-size: 10px; font-weight: 600; opacity: .6; }
.size.on { background: var(--white); color: var(--ink); box-shadow: var(--sh-sm); }

/* ============================ Конфигуратор ============================ */
.cfg { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.cfg__bg { position: absolute; inset: 0; }
.cfg__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.15); transform: scale(1.14); }
.cfg__bg::after { content: ""; position: absolute; inset: 0; background: rgba(18, 24, 26, .52); }
.cfg__in { position: relative; padding: 16px; }
@media (min-width: 700px) { .cfg__in { padding: 24px; } }

.cfg__facts { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; color: #fff; scrollbar-width: none; }
.cfg__facts::-webkit-scrollbar { display: none; }
.cfg__group { margin-bottom: 20px; }
.cfg__label {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 10px;
}
.cfg__label span { font-weight: 600; font-size: 12px; color: rgba(255, 255, 255, .62); }

.opts2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .opts2 { grid-template-columns: repeat(5, 1fr); } }
.opts2--wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .opts2--wide { grid-template-columns: repeat(4, 1fr); } }

.opt2 {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 10px 8px 12px; border: 0; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .92); text-align: center;
    transition: background .2s var(--ease), transform .18s var(--bounce), color .2s var(--ease);
}
.opt2:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.opt2.on { background: var(--white); color: var(--ink); box-shadow: var(--sh); }
.opt2__img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: var(--cream-2); }
.opt2__sw { width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.opt2__n { font-size: 12px; font-weight: 700; line-height: 1.2; }
.opt2__p { font-size: 11px; font-weight: 700; opacity: .72; }
.opt2.on .opt2__p { color: var(--br); opacity: 1; }
.opt2__plus {
    position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px;
    border-radius: 50%; background: rgba(255, 255, 255, .3); color: #fff;
    font-size: 13px; line-height: 18px; font-weight: 700;
}
.opt2.on .opt2__plus { background: var(--br); color: #fff; }

.cfg__total {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
}
.cfg__total b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.cfg__total small { display: block; font-size: 12px; color: var(--muted); }

/* ============================ Мелочи ============================ */
.chips2 { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips2::-webkit-scrollbar { display: none; }
.chip2 {
    flex: 0 0 auto; padding: 10px 18px; border: 0; border-radius: var(--pill);
    background: var(--white); color: var(--ink-2); font-size: 14px; font-weight: 700;
    box-shadow: var(--sh-sm); transition: background .18s var(--ease), color .18s var(--ease), transform .16s var(--bounce);
}
.chip2:hover { transform: translateY(-2px); }
.chip2.on { background: var(--br); color: #fff; }

.card2 { background: var(--white); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-sm); }
.card2--brand { background: var(--br); color: #fff; }

.step2 { display: flex; gap: 14px; align-items: flex-start; }
.step2__n {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--br-soft); color: var(--br-3);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.sec--brand .step2__n { background: rgba(255, 255, 255, .17); color: #fff; }

.marq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marq__t { display: flex; gap: 14px; width: max-content; animation: mv 36s linear infinite; }
.marq:hover .marq__t { animation-play-state: paused; }
@keyframes mv { to { transform: translateX(-50%); } }

.up { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .up { opacity: 1; transform: none; } }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.empty2 { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty2 h3 { color: var(--ink); }

/* Подвал */
.f2 { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 44px 0 28px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.f2 a:hover { color: #fff; }
.f2__g { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .f2__g { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .f2__g { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; } }
.f2 h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.f2 li { margin-bottom: 9px; }
.f2 .mark b { color: #fff; }
.f2__b { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Модальные окна и уведомления версии 2 */
.m2 { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center;
      background: rgba(10, 16, 14, .55); }
@media (min-width: 700px) { .m2 { align-items: center; padding: 24px; } }
.m2.open { display: flex; }
.m2__b { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    background: var(--white); border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom)); position: relative;
    animation: up2 .3s var(--ease); }
@media (min-width: 700px) { .m2__b { border-radius: var(--r); padding: 32px; } }
@keyframes up2 { from { transform: translateY(28px); opacity: .5; } }
.m2__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0;
    border-radius: 50%; background: var(--cream-2); font-size: 20px; line-height: 1; }
.m2 h3 { margin-right: 44px; }

.f2i { display: block; margin-bottom: 14px; }
.f2i span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.inp2 { width: 100%; min-height: 52px; padding: 14px 18px; background: var(--cream);
    border: 2px solid transparent; border-radius: var(--r-xs); transition: border-color .18s var(--ease); }
.inp2:focus { outline: 0; border-color: var(--br); }
.f2i.err .inp2 { border-color: var(--hot); }
.ch2 { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; cursor: pointer; }
.ch2 input { width: 20px; height: 20px; margin: 0; accent-color: var(--br); flex-shrink: 0; }
.ch2 a { color: var(--br); text-decoration: underline; }

.tst { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + 16px); z-index: 100;
    display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
@media (min-width: 1024px) { .tst { left: auto; right: 32px; transform: none; bottom: 32px; } }
.tst__i { padding: 14px 18px; border-radius: var(--pill); background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 600; box-shadow: var(--sh-lg); animation: up2 .26s var(--ease); }
.tst__i.ok { background: var(--br); }

/* ============================ Страница сборки двери ============================ */
.p2 { padding-bottom: 30px; }
.p2__top { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 900px) { .p2__top { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 34px; align-items: start; } }

/* Пропорции и обрезку теперь держит .prev__stage внутри — иначе
   вкладки под схемой обрезаются вместе с контейнером */
.p2__pic { position: relative; }
.p2__pic img { width: 100%; height: 100%; object-fit: cover; }
.p2__zoom { position: absolute; right: 12px; bottom: 12px; }

.p2__head h1 { margin: 6px 0 10px; }
.p2__head .facts { margin-top: 14px; }

.p2__sys {
    display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; margin-top: 16px;
}
@media (min-width: 700px) { .p2__sys { grid-template-columns: 220px 1fr; } }
.p2__sysv { border-radius: var(--r-sm); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.p2__sysv video { width: 100%; height: 100%; object-fit: cover; }

/* Просмотр фото во весь экран */
.lb {
    position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
    background: rgba(10, 14, 12, .95); padding: 40px 16px;
}
.lb[hidden] { display: none; }
.lb__i { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: var(--r-sm); }
.lb__x {
    position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border: 0;
    border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px;
}

/* На десктопе панель покупки живёт в потоке страницы */
@media (min-width: 1024px) {
    .buybar2 { margin-top: 16px; gap: 14px; }
    .buybar2 .pill { max-width: 380px; }
}

/* На узком экране в шапке остаются логотип, переключатель версий и корзина:
   кнопка звонка живёт в подвале и в окне заявки, иначе шапка не влезает в 360 px */
@media (max-width: 699px) {
    .h2__acts .circ[data-m] { display: none; }
    .vswitch { font-size: 11px; }
    .vswitch a { padding: 6px 10px; }
    .mark b { font-size: 15px; }
}
@media (max-width: 380px) {
    .mark span { display: none; }
    .vswitch a { padding: 6px 8px; }
}

/* ============================ Десктопная шапка ============================ */
.h2__phone, .h2__cta { display: none; }
@media (min-width: 1200px) {
    .h2__phone {
        display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em;
        white-space: nowrap; line-height: 1.15;
    }
    .h2__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
    .h2__cta { display: inline-flex; }
}

/* ============================ Каталог на большом экране ============================
   На телефоне фильтры живут в шторке, на десктопе — обычной колонкой слева,
   как принято на «взрослых» сайтах. */
@media (min-width: 1024px) {
    .cat2 { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
    .cat2__side {
        position: sticky; top: 104px; padding: 22px;
        background: var(--white); border-radius: var(--r); box-shadow: var(--sh-sm);
        max-height: calc(100vh - 130px); overflow-y: auto;
    }
    .cat2__side h2 { font-size: 20px; margin-bottom: 14px; }
    .js-open-filters { display: none; }
    .cat2 .tiles--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) { .cat2__side { display: none; } }

/* ============================ Живое превью сборки ============================ */
.prev { position: relative; }
.prev__stage {
    position: relative; aspect-ratio: 3 / 4; border-radius: var(--r);
    overflow: hidden; background: var(--cream-2);
}
@media (max-width: 899px) { .prev__stage { aspect-ratio: 4 / 3; } }
.prev__stage svg, .prev__stage img, .prev__stage video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.prev__stage svg { object-fit: contain; }
.prev__zoom { position: absolute; right: 12px; bottom: 12px; }

.prev__tabs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.prev__tabs::-webkit-scrollbar { display: none; }
.prev__tab {
    flex: 0 0 auto; padding: 9px 15px; border: 0; border-radius: var(--pill);
    background: var(--white); color: var(--ink-2); font-size: 13px; font-weight: 700;
    box-shadow: var(--sh-sm); transition: background .18s var(--ease), color .18s var(--ease);
}
.prev__tab:hover { color: var(--ink); }
.prev__tab.on { background: var(--br); color: #fff; }

.prev__note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
