/* Stargate · vorota-center.kz — стили сайта (основа — концепт D «Ночная смена × Подбор»).
   Тёмная тема, ворота на первом экране уезжают вверх при прокрутке, жёлтый логотипа — только сигнал.
   Подборщик в 3 шага (на компьютере — прямо на воротах), фильтр каталога, пульт ворот внизу страницы. */

:root {
  --bg: #0d0f11;
  --bg-2: #14171a;
  --bg-3: #1b1f23;
  --steel: #2a3036;
  --line: rgba(236, 238, 240, .1);
  --line-2: rgba(236, 238, 240, .2);
  --text: #eceef0;
  --muted: #9aa2aa;
  --signal: #f6b81e;
  --signal-hi: #ffc93c;
  --on-signal: #1b1400;
  --wa: #158a3c;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --header-h: 76px;
  --r: 14px;

  --display: "Montserrat", "Onest", system-ui, sans-serif;   /* Unbounded красивее, но без казахских букв */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote, fieldset, dl { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--on-signal); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--on-signal); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--wa { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--signal); color: var(--on-signal);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .3s;
}
.btn:hover { background: var(--signal-hi); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(246, 184, 30, .16), 0 18px 36px -18px rgba(246, 184, 30, .8); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17a048; box-shadow: 0 18px 36px -18px rgba(31, 168, 85, .9); }
.btn--ghost { background: rgba(236, 238, 240, .06); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: rgba(236, 238, 240, .12); box-shadow: inset 0 0 0 1.5px rgba(236, 238, 240, .45); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* Сигнальная лампа */
.lamp { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px 2px rgba(246, 184, 30, .7); flex: none; }
.is-moving .lamp { animation: blink .6s steps(1) infinite; }
@keyframes blink { 50% { background: #5c4a17; box-shadow: none; } }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(13, 15, 17, .82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; background: #fff; border-radius: 12px; padding: 5px 10px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); }
.brand img { height: 48px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(236, 238, 240, .8); transition: background-color .2s, color .2s; }
.nav__link:hover { background: rgba(236, 238, 240, .08); color: #fff; }
.header__tools { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lang { display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(236, 238, 240, .1); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 14px; width: 18px; height: 2px; background: var(--text); content: ""; transition: transform .3s var(--ease), background-color .2s; }
.burger span { top: 22px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Первый экран: ворота ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
.js .hero[data-gate] { height: 185vh; height: 185svh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #050607; }
.hero__photo { position: absolute; inset: 0; transform: scale(calc(1.08 - var(--p, 1) * .08)); transform-origin: 50% 70%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 6, 7, .88) 0%, rgba(5, 6, 7, .55) 45%, rgba(5, 6, 7, .1) 75%),
  linear-gradient(0deg, rgba(5, 6, 7, .85) 0%, rgba(5, 6, 7, 0) 38%); }

.gate { display: none; }
.js .gate {
  display: grid; grid-template-rows: repeat(7, 1fr);
  position: absolute; inset: 0 0 -2px 0; z-index: 1;
  transform: translate3d(0, calc(var(--p, 0) * -100%), 0);
  will-change: transform;
}
.gate__panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, 0) 3px),
    repeating-linear-gradient(180deg, transparent 0 calc(25% - 1px), rgba(0, 0, 0, .35) calc(25% - 1px) 25%),
    linear-gradient(180deg, #353c43 0%, #2a3036 48%, #23282d 52%, #2f353b 100%);
  border-bottom: 2px solid #121518;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04);
}
.gate__panel:last-child { border-bottom: 10px solid #0b0c0d; }
.gate__sticker { position: absolute; right: clamp(20px, 6vw, 96px); top: 34%; width: 58px; height: 22px; border-radius: 3px; background: rgba(236, 238, 240, .1); }
.gate__handle { position: absolute; right: 22%; bottom: 44%; width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(#4a525a, #1c2024); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.gate::after { /* свет из-под поднимающегося полотна */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 38vh;
  background: linear-gradient(180deg, rgba(246, 184, 30, calc(.14 * (1 - var(--p, 0)))), transparent);
  pointer-events: none;
}

/* снизу место под полосу с рейтингом — иначе на узких и низких окнах она наезжает на кнопки */
.hero__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); padding-bottom: 112px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: rgba(236, 238, 240, .8); letter-spacing: .02em; }
.hero__title {
  margin-top: 22px; max-width: 13em;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 5.1rem); line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.hero__title em { font-style: normal; color: var(--signal); }
.hero__sub { margin-top: 24px; max-width: 32em; font-size: clamp(17px, 1.4vw, 19px); color: rgba(236, 238, 240, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero__bottom .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.chip-rating { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(13, 15, 17, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; text-decoration: none; }
.chip-rating b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--signal); color: var(--on-signal); font-size: 16px; }
.chip-rating i { font-style: normal; color: var(--signal); letter-spacing: 2px; display: block; font-size: 13px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(236, 238, 240, .7); transition: opacity .3s; }
.scroll-hint__bar { position: relative; width: 2px; height: 44px; border-radius: 2px; background: rgba(236, 238, 240, .2); overflow: hidden; }
.scroll-hint__bar::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--signal); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.no-hint .scroll-hint { opacity: 0; }

/* ---------- Факты ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: clamp(28px, 4vw, 48px) 24px clamp(28px, 4vw, 44px) 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact__big { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -.04em; color: var(--signal); }
.fact__small { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 18em; }
.fact__small a { color: var(--text); }

/* ---------- Секции ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec--2 { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px rgba(246, 184, 30, .7); }
.h2 { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: rgba(236, 238, 240, .72); max-width: 36em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Каталог ---------- */
.cat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; grid-column: span 2; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.card--wide { grid-column: span 3; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.card--wide .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.85); transform: scale(1.02); transition: filter .6s var(--ease), transform 1s var(--ease); }
.card:hover .card__media img, .card:focus-within .card__media img { filter: brightness(1) saturate(1); transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 0%, rgba(20, 23, 26, 0) 55%); }
.card__body { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 0 24px 24px; margin-top: -36px; z-index: 1; }
.card__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.15; letter-spacing: -.02em; }
.card--wide .card__title { font-size: clamp(22px, 2.2vw, 30px); }
.card__text { font-size: 15px; color: rgba(236, 238, 240, .7); }
.card__link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--signal); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card__link span { transition: transform .25s var(--ease); }
.card:hover .card__link span { transform: translateX(5px); }
.card--mini { grid-column: span 3; flex-direction: row; align-items: center; gap: 20px; padding: 22px 24px; }
.card--mini .card__body { margin: 0; padding: 0; }
.card__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: var(--bg-3); color: var(--signal); flex: none; }
.card__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__photo { margin-top: 36px; border-radius: 20px; overflow: hidden; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(13, 15, 17, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; }
.why { display: grid; gap: 14px; }
.why__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.why__num { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--signal); line-height: 1.1; }
.why__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.why__text { margin-top: 8px; color: rgba(236, 238, 240, .7); font-size: 16px; }
.quote { margin-top: 14px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(246, 184, 30, .16), rgba(246, 184, 30, .04)); box-shadow: inset 0 0 0 1px rgba(246, 184, 30, .25); font-size: 18px; line-height: 1.5; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- Процесс: лента, которая «загорается» ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-top: 40px; }
/* линия идёт от первой точки до последней (--a и --len считает d.js), заполнение тянется плавно, точка загорается, когда линия до неё дошла */
.track::before { content: ""; position: absolute; left: var(--a, 12px); width: var(--len, calc(100% - 24px)); top: 11px; height: 2px; background: var(--line-2); }
.track__fill {
  position: absolute; left: var(--a, 12px); width: var(--len, calc(100% - 24px)); top: 11px; height: 2px;
  background: linear-gradient(90deg, rgba(246, 184, 30, .55), var(--signal));
  box-shadow: 0 0 10px rgba(246, 184, 30, .55);
  transform: scaleX(var(--done, 0)); transform-origin: 0 50%;
}
.stop { position: relative; }
.stop::before {
  content: ""; position: absolute; top: -40px; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2), 0 0 0 0 rgba(246, 184, 30, 0), 0 0 0 rgba(246, 184, 30, 0);
  transform: scale(.82);
  transition: background-color 1.1s ease, box-shadow 1.6s ease, transform 1.1s cubic-bezier(.3, 1.4, .5, 1);
}
.stop.is-lit::before {
  background: var(--signal); transform: scale(1);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 0 0 6px rgba(246, 184, 30, .16), 0 0 18px rgba(246, 184, 30, .6);
}
.stop__no { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--muted); transition: color 1.1s ease; }
.stop.is-lit .stop__no { color: var(--signal); }
.stop__title { margin-top: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.stop__text { margin-top: 8px; font-size: 15px; color: rgba(236, 238, 240, .68); }

/* ---------- Работы ---------- */
.works { columns: 3 320px; column-gap: 16px; }
.work { position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.work img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; filter: brightness(.9); }
.work:hover img { transform: scale(1.04); filter: brightness(1); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(5, 6, 7, .85), transparent); font-size: 14px; font-weight: 500; }
.works__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 24px 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.works__more p { color: rgba(236, 238, 240, .72); max-width: 36em; }

/* ---------- Отзывы: карусель ---------- */
.rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rating { display: flex; align-items: center; gap: 18px; }
.rating__num { font-family: var(--display); font-size: clamp(56px, 7vw, 96px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--signal); }
.rating__meta { font-size: 14px; color: var(--muted); }
.rating__meta a { color: var(--text); }
.rating__stars { color: var(--signal); letter-spacing: 3px; font-size: 18px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; overscroll-behavior-x: contain; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.review__stars { color: var(--signal); letter-spacing: 2px; }
.review__text { font-size: 17px; line-height: 1.55; flex: 1; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.review__ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--steel); color: var(--text); font-weight: 700; }
.review__name { color: var(--text); font-weight: 600; display: block; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(236, 238, 240, .08); cursor: pointer; font-size: 20px; transition: background-color .2s, color .2s; }
.carousel__btn:hover { background: var(--signal); color: var(--on-signal); }

/* ---------- Рассрочка: единственный громкий блок ---------- */
.plan { background: var(--signal); color: var(--on-signal); }
.plan__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.plan__big { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 12vw, 176px); line-height: .85; letter-spacing: -.06em; white-space: nowrap; }
.plan__title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.plan__text { margin-top: 14px; font-size: 17px; opacity: .85; }
.plan .btn { margin-top: 24px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; align-items: center; font-size: 14px; }
.pay__label { opacity: .7; margin-right: 4px; }
.chip { padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(27, 20, 0, .3); }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.clist { display: grid; gap: 10px; margin-top: 32px; }
.clist__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.clist__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); color: var(--signal); }
.clist__label { font-size: 13px; color: var(--muted); }
.clist__value { font-weight: 600; margin-top: 2px; }
.clist__value a { text-decoration: none; }
.clist__value a:hover { color: var(--signal); }
.clist__note { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.clist__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map { margin-top: 16px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; filter: invert(.92) hue-rotate(180deg) grayscale(.6) contrast(.9); }
.map__links { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 18px; font-size: 14px; background: var(--bg-2); }

.form { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(26px, 3.5vw, 44px); border-radius: 24px; background: linear-gradient(180deg, #1d2226, #15181b); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form__title { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.form__sub { margin-top: 12px; font-size: 15px; color: var(--muted); }
.form__grid { display: grid; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 14px; font-weight: 500; color: rgba(236, 238, 240, .85); }
.field__label i { color: var(--signal); font-style: normal; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: rgba(236, 238, 240, .38); }
.input:hover { border-color: rgba(236, 238, 240, .35); }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(246, 184, 30, .15); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
select.input option { background: var(--bg-2); color: var(--text); }
textarea.input { resize: vertical; min-height: 96px; }
.field__err { display: none; font-size: 13px; color: #ff8a8a; }
.input[aria-invalid="true"] { border-color: #ff6b6b; }
.input[aria-invalid="true"] + .field__err { display: block; }
.form__done { display: none; margin-top: 14px; font-size: 14px; color: var(--signal); }
.form__done.is-visible { display: block; }
.form__note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.form__note a { color: var(--text); font-weight: 600; }

/* ---------- Подвал ---------- */
.footer { padding: 64px 0 110px; border-top: 1px solid var(--line); background: #08090a; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .brand { display: inline-block; }
.footer__about { margin-top: 16px; color: var(--muted); max-width: 26em; font-size: 15px; }
.footer__title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a { text-decoration: none; color: rgba(236, 238, 240, .85); }
.footer li a:hover { color: var(--signal); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--text); }

.dock { display: none; }

/* ==========================================================================
   Из концепта C: подборщик, фильтр каталога — в тёмном исполнении
   ========================================================================== */

/* Первый экран с подборщиком справа (класс ставит d.js на широком экране) */
.hero__content.has-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 4vw, 72px); align-items: center; }
.has-picker .hero__title { font-size: clamp(2rem, 4.1vw, 4.3rem); }
.has-picker .hero__pick { display: none; }
.hero__slot:empty { display: none; }

/* Лента брендов */
.brands { border-bottom: 1px solid var(--line); }
.brands__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 26px; }
.brands__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brands__list { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.brands__list li { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.9vw, 26px); letter-spacing: .02em; text-transform: uppercase; color: rgba(236, 238, 240, .5); transition: color .3s; }
.brands__list li:hover { color: var(--text); }

/* Секция подбора — используется на узких экранах (на широких подборщик стоит на первом экране) */
.pick { padding: clamp(56px, 9vw, 96px) 0; background: radial-gradient(120% 80% at 100% 0%, rgba(246, 184, 30, .08), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.pick__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 5vw, 72px); align-items: center; }

.picker { position: relative; border-radius: 22px; background: rgba(13, 15, 17, .78); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.picker__title { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.picker__count { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.picker__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 24px 0; }
.picker__bar i { height: 3px; border-radius: 3px; background: var(--line-2); transition: background-color .3s, box-shadow .3s; }
.picker__bar i.is-on { background: var(--signal); box-shadow: 0 0 10px rgba(246, 184, 30, .6); }
.picker__body { padding: 18px 24px 22px; }
.step__q { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.js .step { display: none; }
.js .step.is-current { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step + .step { margin-top: 20px; }
.js .step + .step { margin-top: 0; }
.no-js-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.no-js-note a { color: var(--text); }
.js .no-js-note { display: none; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiles--1 { grid-template-columns: 1fr; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px;
  border-radius: 12px; background: rgba(236, 238, 240, .06); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.25;
  transition: background-color .2s, box-shadow .2s;
}
.tile label:hover { background: rgba(236, 238, 240, .1); }
.tile input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }
.tile input:checked + label { background: rgba(246, 184, 30, .1); box-shadow: inset 0 0 0 2px var(--signal); }
.tile input:checked + label::after { content: "✓"; margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--signal); color: var(--on-signal); font-size: 13px; font-weight: 700; flex: none; }
.tile__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-3); color: var(--text); flex: none; transition: background-color .2s, color .2s; }
.tile__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile input:checked + label .tile__ico { background: var(--signal); color: var(--on-signal); }
.tiles--3 .tile label { justify-content: center; text-align: center; min-height: 48px; }
.tiles--3 .tile input:checked + label::after { display: none; }
.picker__sub { margin: 16px 0 10px; font-size: 14px; font-weight: 600; }
.picker__nav { display: flex; gap: 10px; margin-top: 18px; }
.picker__nav .btn { flex: 1; min-height: 52px; }
.picker__nav .picker__back { flex: 0 0 auto; width: 52px; padding: 0; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.summary { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(236, 238, 240, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.summary dt { float: left; clear: left; margin-right: 6px; color: var(--muted); }
.summary dd { margin: 0 0 2px; font-weight: 500; }
.picker__foot { padding: 12px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.picker__foot a { color: var(--text); font-weight: 600; }

/* Фильтр каталога */
.filter { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.js .filter { display: flex; }
.filter button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(236, 238, 240, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.filter button:hover { background: rgba(236, 238, 240, .12); }
.filter button[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); box-shadow: none; font-weight: 700; }
.cat--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
.cat--3 .card { grid-column: span 1; }
.cat--3 .card--wide { grid-column: span 2; }
.card[hidden] { display: none; }
.card__chip { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: rgba(13, 15, 17, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 600; }

/* Логотип на компьютере крупнее (+45 % к исходным 48 px), шапка выше */
@media (min-width: 1025px) {
  :root { --header-h: 92px; }
  .brand { padding: 5px 12px; border-radius: 13px; }
  .brand img { height: 70px; }
}

/* ==========================================================================
   Пульт: настоящие ворота на фото, полотно идёт с перспективой и «живым» приводом
   ========================================================================== */
.remote-sec { overflow: clip; }
.remote-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.remote-copy .lead { margin-top: 18px; }
.finishes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.finish { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: rgba(236, 238, 240, .06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.finish:hover { background: rgba(236, 238, 240, .12); }
.finish[aria-pressed="true"] { background: rgba(246, 184, 30, .12); box-shadow: inset 0 0 0 2px var(--signal); }
.sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); flex: none; }
.sw--photo { background: url('../img/catalog/texture-dark.jpg') center / cover; }
.sw--oak { background: url('../img/catalog/texture-oak.jpg') center / cover; }
.sw--white { background: url('../img/catalog/texture-white.jpg') center / cover; }
.sw--anthracite { background: linear-gradient(180deg, #4a5058, #33383e); }
.door-status { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.door-status b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.door-status .lamp { align-self: center; }
.door-status:not(.is-moving) .lamp { background: var(--steel); box-shadow: none; }
.remote-copy .btn { margin-top: 22px; }
.remote-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.viz-wrap { position: relative; padding: 0 34px 34px 0; }
.viz { position: relative; aspect-ratio: 1440 / 1004; border-radius: 22px; overflow: hidden; background: #0b0c0d; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); isolation: isolate; }
.viz__photo { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.44) saturate(.78) contrast(1.05); }
/* полотно и проём рисуются в «прямом» прямоугольнике, а на фото переносятся перспективным преобразованием (d.js) */
.door3d { position: absolute; left: 0; top: 0; width: 1000px; height: 820px; transform-origin: 0 0; overflow: hidden; visibility: hidden; }
.js .door3d.is-ready { visibility: visible; }
.door3d__inside {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 16% at 50% 4%, rgba(255, 240, 210, calc(.9 * var(--lit, 0))), transparent 70%),
    radial-gradient(70% 34% at 50% 100%, rgba(255, 214, 150, calc(.28 * var(--lit, 0))), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0 6%, transparent 6% 94%, rgba(0, 0, 0, .55) 94%),
    linear-gradient(180deg, transparent 0 66%, rgba(255, 255, 255, .06) 66.3%, transparent 67%),
    linear-gradient(180deg, rgb(calc(30 + 70 * var(--lit, 0)) calc(27 + 58 * var(--lit, 0)) calc(24 + 40 * var(--lit, 0))) 0%, rgb(calc(18 + 40 * var(--lit, 0)) calc(16 + 33 * var(--lit, 0)) calc(14 + 22 * var(--lit, 0))) 66%, rgb(calc(26 + 64 * var(--lit, 0)) calc(25 + 58 * var(--lit, 0)) calc(24 + 50 * var(--lit, 0))) 100%);
}
.door3d__inside::before { /* полки у стен */
  content: ""; position: absolute; left: 8%; right: 8%; top: 22%; height: 44%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0 12%, transparent 12% 88%, rgba(0, 0, 0, .5) 88%),
    repeating-linear-gradient(180deg, transparent 0 calc(33.3% - 3px), rgba(0, 0, 0, .35) calc(33.3% - 3px) 33.3%);
  -webkit-mask: linear-gradient(90deg, #000 0 12%, transparent 12% 88%, #000 88%); mask: linear-gradient(90deg, #000 0 12%, transparent 12% 88%, #000 88%);
}
.door3d__inside::after { /* светодиодная лампа под потолком */
  content: ""; position: absolute; left: 32%; right: 32%; top: 3.2%; height: 1.4%; border-radius: 6px;
  background: rgb(255 250 235 / calc(.15 + .85 * var(--lit, 0)));
  box-shadow: 0 0 calc(40px * var(--lit, 0)) calc(8px * var(--lit, 0)) rgba(255, 236, 200, .7);
}
.door3d__shadow { position: absolute; left: 0; right: 0; top: calc((1 - var(--t, 0)) * 100%); height: 10%; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.door3d__leaf { position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, calc(var(--t, 0) * -100%), 0); }
.door3d__leaf::after { /* уплотнитель по низу полотна */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.3%; background: linear-gradient(180deg, #1b1d1f, #050505);
}
.door3d__photo { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; filter: brightness(.44) saturate(.78) contrast(1.05); }
.door3d__panels { position: absolute; inset: 0; display: none; }
.viz:not([data-finish="photo"]) .door3d__photo { display: none; }
.viz:not([data-finish="photo"]) .door3d__panels { display: block; }
.viz[data-finish="oak"] .door3d__panels {
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(20% - 4px), rgba(40, 18, 0, .55) calc(20% - 4px) calc(20% - 1px), rgba(255, 220, 170, .18) calc(20% - 1px) 20%),
    linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45)),
    url('../img/catalog/texture-oak.jpg') 0 0 / 22% auto;
}
.viz[data-finish="white"] .door3d__panels {
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(20% - 4px), rgba(0, 0, 0, .3) calc(20% - 4px) calc(20% - 1px), rgba(255, 255, 255, .35) calc(20% - 1px) 20%),
    repeating-linear-gradient(180deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, .08) calc(5% - 1px) 5%),
    linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .55)),
    url('../img/catalog/texture-white.jpg') 0 0 / 22% auto;
}
.viz[data-finish="anthracite"] .door3d__panels {
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(20% - 4px), rgba(0, 0, 0, .55) calc(20% - 4px) calc(20% - 1px), rgba(255, 255, 255, .1) calc(20% - 1px) 20%),
    repeating-linear-gradient(180deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, .22) calc(5% - 1px) 5%),
    linear-gradient(180deg, #33383e, #22262a);
}
/* полотно, уходя под перемычку, поворачивается в горизонталь и темнеет */
.door3d__lintel { position: absolute; left: 0; right: 0; top: 0; height: 9%; background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent); opacity: calc(.25 + .75 * min(1, var(--t, 0) * 6)); pointer-events: none; }
/* свет: прожектор над воротами (датчик движения) и тёплый свет из гаража на подъезде */
.viz__flood { position: absolute; inset: 0; pointer-events: none; opacity: var(--flood, 0); transition: opacity .5s ease;
  background:
    radial-gradient(3.2% 4.6% at 46% 5%, rgba(255, 255, 250, 1), rgba(255, 255, 250, 0) 100%),
    radial-gradient(34% 38% at 46% 10%, rgba(255, 246, 225, .55), transparent 70%),
    radial-gradient(60% 34% at 50% 100%, rgba(255, 246, 225, .22), transparent 70%);
  mix-blend-mode: screen; }
.viz__spill { position: absolute; left: 0; right: 0; top: 86%; bottom: 0; pointer-events: none;
  background: radial-gradient(48% 120% at 50% 0%, rgba(255, 196, 120, calc(.55 * var(--o, 0) * var(--lit, 0))), transparent 70%);
  mix-blend-mode: screen; }
.viz__snow { position: absolute; inset: -10% 0 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 140px 90px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 90px 160px, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 200px 210px, #fff 50%, transparent 52%);
  background-size: 230px 240px; animation: snow 14s linear infinite; }
@keyframes snow { to { background-position: -60px 240px; } }

/* Пульт-брелок */
.fob {
  position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 86px; padding: 18px 0 20px; border-radius: 40px;
  background: linear-gradient(160deg, #3b4148 0%, #1d2125 45%, #121417 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .6), 0 30px 50px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotate(-7deg);
}
.fob__led { width: 9px; height: 9px; margin-bottom: 4px; border-radius: 50%; background: #3b2626; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); transition: background-color .08s, box-shadow .08s; }
.fob__led.is-on { background: #ff3b30; box-shadow: 0 0 12px 3px rgba(255, 59, 48, .85); }
.fob__btn {
  display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #4d545c, #2a2f34); color: var(--text);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 3px rgba(0, 0, 0, .5);
  transition: transform .07s, box-shadow .07s;
}
.fob__btn svg { width: 22px; height: 22px; fill: currentColor; }
.fob__btn--up { background: radial-gradient(circle at 50% 30%, #ffd85e, #e9a800); color: var(--on-signal); }
.fob__btn:active, .fob__btn.is-pressed { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 1px rgba(0, 0, 0, .5); }
.fob__btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
html:not(.js) .fob, html:not(.js) .door-status, html:not(.js) .finishes { display: none; }

@media (max-width: 1024px) {
  /* на планшете и телефоне: заголовок → ворота с пультом → отделка, статус, кнопка */
  .remote-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .remote-copy { display: contents; }
  .remote-copy > * { order: 2; }
  .remote-copy > .eyebrow, .remote-copy > .h2, .remote-copy > .lead { order: 0; }
  .viz-wrap { order: 1; align-self: stretch; margin-top: 28px; }
}
@media (max-width: 720px) {
  .viz-wrap { padding: 0 0 96px; }
  .viz { border-radius: 16px; }
  .fob { right: 50%; bottom: 0; flex-direction: row; width: auto; padding: 10px 18px; transform: translateX(50%) rotate(0); border-radius: 44px; }
  .fob__led { margin: 0 4px 0 0; }
  .finishes { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .finishes::-webkit-scrollbar { display: none; }
  .finish { flex: none; }
}

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__phone span { display: none; }
  .nav__link { padding: 8px 10px; }
}
@media (max-width: 1024px) {
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: -1; padding: calc(var(--header-h) + 20px) var(--gutter) 24px;
    background: rgba(13, 15, 17, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 16px 0; border-radius: 0; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__link:hover { background: none; color: var(--signal); }
  .menu-open body { overflow: hidden; }
  .menu-open .header { background: transparent; border-color: transparent; }

  .facts__list { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head, .about, .contact, .plan__grid { grid-template-columns: 1fr; }
  .cat, .cat--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card--wide, .cat--3 .card { grid-column: span 1; }
  .cat--3 .card--wide { grid-column: span 2; }
  .pick__grid { grid-template-columns: 1fr; }
  .picker { max-width: 620px; }
  .about__photo { display: none; }
  .track { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 44px; }
  .track::before { left: 11px; width: 2px; top: var(--a, 14px); height: var(--len, calc(100% - 28px)); }
  .track__fill { left: 11px; width: 2px; top: var(--a, 14px); height: var(--len, calc(100% - 28px)); background: linear-gradient(180deg, rgba(246, 184, 30, .55), var(--signal)); transform: scaleY(var(--done, 0)); transform-origin: 50% 0; }
  .stop::before { top: 2px; left: -44px; }
  .form { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header__phone { display: none; }
  .brand img { height: 40px; }
  .hero__content { padding-bottom: 84px; }   /* над нижней панелью «Позвонить / WhatsApp» */
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__bottom, .gate__handle, .gate__sticker, .hero__tel { display: none; }
  .fact, .fact + .fact { padding: 24px 12px 24px 0; }
  .fact:nth-child(even) { padding-left: 14px; }
  .cat, .cat--3 { grid-template-columns: 1fr; }
  .cat--3 .card--wide { grid-column: span 1; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .filter button { flex: none; }
  .picker__head, .picker__bar { padding-left: 16px; padding-right: 16px; }
  .picker__body { padding: 16px; }
  .picker__foot { padding: 12px 16px; }
  .tiles:not(.tiles--1):not(.tiles--3) .tile label { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; }
  .tiles:not(.tiles--1):not(.tiles--3) .tile input:checked + label::after { position: absolute; top: 10px; right: 10px; margin: 0; }
  .tiles--3 { grid-template-columns: 1fr 1fr 1fr; }
  .tiles--3 .tile label { font-size: 14px; padding: 8px 6px; }
  .brands__list { gap: 8px 22px; }
  .why__item { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .works { columns: 2; column-gap: 10px; }
  .work { margin-bottom: 10px; border-radius: 14px; }
  .work figcaption { font-size: 12px; padding: 30px 10px 10px; }
  .carousel { grid-auto-columns: 86%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 15, 17, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .dock .btn { min-height: 48px; padding: 0 12px; }
}

/* невысокие экраны: рейтинг и подсказку прячем, чтобы не спорили с подборщиком (рейтинг есть ниже, в фактах) */
@media (max-height: 860px) {
  .has-picker ~ .hero__bottom { display: none; }
  .hero__content.has-picker { padding-bottom: 28px; }
}
@media (max-height: 760px) and (min-width: 721px) {
  .hero__bottom { display: none; }
  .hero__content { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero[data-gate] { height: 100vh; height: 100svh; }
  .js .gate { display: none; }
  .hero__photo { transform: none; }
  .viz__snow { display: none; }
}
