/* =========================================================================
   Компоненты. Все цвета — через семантику темы (--bg, --fg, --bg-2 …),
   поэтому любой компонент работает в светлой и тёмной секции без доработки.
   ========================================================================= */

/* ---------- Кнопки ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h); padding: 0 1.6em;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-1) linear, color var(--d-1) linear, border-color var(--d-1) linear, transform var(--d-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform var(--d-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--primary:active { background: var(--c-accent-press); }
.btn--contrast { background: var(--contrast-bg); color: var(--contrast-fg); }
.btn--contrast:hover { opacity: .88; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--bg-2); border-color: var(--fg-3); } }
.btn--link { min-height: 44px; padding: 0; color: var(--fg); background: none; }
.btn--link:hover { color: var(--accent-text); }
.btn--sm { --btn-h: 40px; padding: 0 1.15em; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 60px; padding: 0 2em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
@media (max-width: 47.99em) { .btn { --btn-h: 52px; } .btn--sm { --btn-h: 44px; } }

.icon { width: 20px; height: 20px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  transition: background-color var(--d-1) linear;
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); } }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--c-ink);
  transition: background-color var(--d-2) linear, color var(--d-2) linear, box-shadow var(--d-2) linear;
}
.site-header__in { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.site-header.is-dark { color: var(--c-snow-1); }
.site-header.is-dark.is-scrolled { background: rgba(14, 14, 16, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: var(--c-white); }
  .site-header.is-dark.is-scrolled { background: var(--c-night-1); }
}
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 1.125rem; }
.logo__mark { width: 26px; height: 26px; border-radius: 8px; background: currentColor; position: relative; }
.logo__mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; padding: 0; margin: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; opacity: .86; transition: opacity var(--d-1) linear, background-color var(--d-1) linear; }
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.site-header__phone { display: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; padding: 0 8px; }
.site-header .btn--ghost { color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.site-header .btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
@media (min-width: 64em) {
  .nav { display: block; }
  .site-header__actions { margin-left: var(--s-4); }
  .menu-toggle { display: none; }
}
@media (min-width: 80em) { .site-header__phone { display: inline-flex; } }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; padding: calc(var(--header-h) + var(--s-6)) var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom));
  background: var(--c-white); color: var(--c-ink);
  display: flex; flex-direction: column; gap: var(--s-6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out), visibility 0s linear var(--d-3);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; font-size: 1.625rem; font-weight: var(--fw-semibold); letter-spacing: -0.02em; text-decoration: none; }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu__close { position: absolute; top: 10px; right: calc(var(--gutter) - 10px); }
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 72px)); padding-bottom: var(--section-y-sm); }
.hero__grid { display: grid; gap: var(--gap-lg); align-items: center; }
.hero__copy > * + * { margin-top: var(--s-6); }
/* заголовок hero в колонке 6/12: крупно, но меньше полноширинного .t-hero */
.t-hero--split { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.5rem); letter-spacing: var(--ls-hero); line-height: var(--lh-tight); }
.hero__copy .t-lead { max-width: 34ch; }
.hero__price { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--fs-sm); color: var(--fg-2); }
.hero__price b { font-size: 1.375rem; font-weight: var(--fw-semibold); color: var(--fg); letter-spacing: -0.02em; }
.hero__paths { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-top: var(--s-2); }
@media (min-width: 64em) {
  .hero { min-height: min(100svh, 960px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--fg);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none;
  transition: background-color var(--d-1) linear;
}
.chip:hover { background: var(--bg-3); }
@media (max-width: 47.99em) { .chip { min-height: 44px; } }

/* ---------- Сцена и заглушки медиа ---------- */
.stage { position: relative; border-radius: var(--r-xl); background: var(--stage); overflow: hidden; isolation: isolate; }
.stage--hero { aspect-ratio: 1 / 1; }
@media (min-width: 64em) { .stage--hero { aspect-ratio: 5 / 5.4; } }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-5) var(--ease-out); }
.stage--cutout img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.stage--cutout::after { content: ""; position: absolute; inset: auto 18% 7% 18%; height: 7%; background: radial-gradient(closest-side, rgba(0, 0, 0, .2), transparent); z-index: -1; }
a:hover .stage img, .card:hover .stage img { transform: scale(1.04); }

/* Заглушка кадра: видно, ЧТО снять. Заменить настоящим фото или видео. */
.ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--s-5);
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(160deg, #e9e4dc 0%, #d9d2c7 45%, #c9c0b3 100%);
  color: rgba(11, 11, 12, .62);
}
.ph--dark { background: radial-gradient(90% 70% at 60% 30%, var(--c-accent-glow), transparent 60%), linear-gradient(160deg, #2a2724 0%, #17161a 70%); color: rgba(245, 245, 247, .62); }
.ph--cool { background: radial-gradient(120% 80% at 30% 10%, rgba(255, 255, 255, .6), transparent 60%), linear-gradient(160deg, #e6e8ec 0%, #cfd3da 100%); }
.ph span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; line-height: 1.45; max-width: 34ch; }
.ph span::before { content: "КАДР · "; font-weight: 500; }

/* ---------- Заголовок секции ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-8); margin-bottom: var(--head-gap); }
.section-head__text { max-width: 900px; }
.section-head__text > * + * { margin-top: var(--s-4); }
.section-head .t-lead { max-width: 46ch; }

/* ---------- Факты-цифры ---------- */
.facts { display: grid; gap: var(--s-7) var(--gap-lg); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64em) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.fact__num { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem); font-weight: var(--fw-display); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact__unit { font-size: .42em; letter-spacing: -0.02em; margin-left: .12em; color: var(--fg-2); font-weight: var(--fw-semibold); }
.fact__cap { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--fg-2); max-width: 24ch; }

/* ---------- Бенто ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; min-height: 272px; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.tile__text { position: relative; z-index: 2; padding: var(--s-7); max-width: 36ch; }
.tile__text > * + * { margin-top: var(--s-2); }
.tile .ph { z-index: 0; }
.tile--dark { color: var(--c-snow-1); }
.tile--dark .t-2 { color: var(--c-snow-2); }
.tile--dark h3 { color: var(--c-snow-1); }
@media (min-width: 48em) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
}
@media (min-width: 64em) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 272px; }
  .tile--tall { grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
}

.tile__big { position: absolute; left: var(--s-7); bottom: var(--s-6); z-index: 2; font-size: clamp(4rem, 2rem + 6vw, 7.5rem); font-weight: var(--fw-display); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile__big small { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-text); letter-spacing: 0; color: var(--fg-2); }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: var(--s-7); border-radius: var(--r-lg); background: var(--bg-2); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: var(--s-8); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); color: var(--fg-3); }
.step h3 { font-size: var(--fs-h4); }
.step p { margin-top: var(--s-2); color: var(--fg-2); }
.steps__cta { margin-top: var(--s-8); }

/* ---------- Главы ---------- */
.chapter { display: grid; gap: var(--gap-lg); align-items: center; }
.chapter + .chapter { margin-top: var(--section-y-sm); }
.chapter__media { aspect-ratio: 4 / 3; }
.chapter__text { max-width: 44ch; }
.chapter__text > * + * { margin-top: var(--s-5); }
.chapter__fact { display: flex; align-items: baseline; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.chapter__fact b { font-size: var(--fs-h3); font-weight: var(--fw-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chapter__fact span { font-size: var(--fs-sm); color: var(--fg-2); }
@media (min-width: 64em) {
  .chapter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); }
  .chapter--flip .chapter__media { order: 2; }
  .chapter--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Вау-сцена ---------- */
.wow { overflow: hidden; }
.wow__glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 1100px; aspect-ratio: 1; background: radial-gradient(closest-side, var(--c-accent-glow), transparent 70%); pointer-events: none; }
.wow .t-display { max-width: 15ch; }
.wow__facts { margin-top: var(--s-10); }

/* ---------- Тарифы ---------- */
.plans { display: grid; gap: var(--gap); }
@media (min-width: 64em) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8) var(--s-7); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid transparent; }
.plan--featured { background: var(--c-night-1); color: var(--c-snow-1); --fg: var(--c-snow-1); --fg-2: var(--c-snow-2); --fg-3: var(--c-snow-3); --line: rgba(255, 255, 255, .14); --focus: var(--c-accent); }
.plan__badge { position: absolute; top: calc(var(--s-8) - 4px); right: var(--s-7); padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-accent-soft); color: var(--c-accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.plan__for { color: var(--fg-2); font-size: var(--fs-sm); }
.plan__price { font-size: var(--fs-h3); font-weight: var(--fw-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: var(--fs-sm); font-weight: var(--fw-text); color: var(--fg-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); font-size: var(--fs-sm); }
.plan li svg { margin-top: 2px; color: var(--fg-3); }
.plan .btn { margin-top: auto; }

/* ---------- Кому подойдёт ---------- */
.fit { display: grid; gap: var(--gap); }
@media (min-width: 64em) { .fit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.fit__col { padding: var(--s-8) var(--s-7); border-radius: var(--r-lg); background: var(--bg-2); }
.fit__col h3 { font-size: var(--fs-h4); margin-bottom: var(--s-5); }
.fit__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.fit__list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); }
.fit__list b { display: block; font-weight: var(--fw-semibold); }
.fit__list span { color: var(--fg-2); font-size: var(--fs-sm); }
.fit__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; background: var(--bg); }
.fit__col--no { background: transparent; border: 1px solid var(--line); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: var(--gap); }
@media (min-width: 64em) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-7); border-radius: var(--r-lg); background: var(--bg-2); }
.review blockquote { font-size: 1.0625rem; line-height: 1.5; }
.review footer { margin-top: auto; display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); color: var(--fg-2); }
.review footer b { color: var(--fg); font-weight: var(--fw-semibold); }
.rating { display: inline-flex; align-items: baseline; gap: var(--s-2); }
.rating b { font-size: var(--fs-h3); font-weight: var(--fw-display); letter-spacing: -0.03em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-6) 0; font-size: var(--fs-h4); font-weight: var(--fw-semibold); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform var(--d-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s-6); max-width: 70ch; color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent-text); } }

/* ---------- Финальный призыв ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .t-display { max-width: 14ch; }
.cta-band .t-lead { margin-top: var(--s-5); max-width: 40ch; }
.cta-band .row { margin-top: var(--s-8); }
.cta-band__glow { position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, var(--c-accent-glow), transparent 70%); z-index: 0; }

/* ---------- Подвал ---------- */
.site-footer { padding-block: var(--s-12) calc(var(--s-8) + var(--bar-h)); font-size: var(--fs-sm); }
@media (min-width: 64em) { .site-footer { padding-bottom: var(--s-8); } }
.site-footer__grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__grid > :first-child { grid-column: 1 / -1; }
.site-footer a.tnum { white-space: nowrap; }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .site-footer__grid > :first-child { grid-column: auto; } }
.site-footer h4 { font-size: var(--fs-xs); font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer a { text-decoration: none; color: var(--fg-2); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer ul { gap: 0; }
@media (min-width: 64em) { .site-footer a { min-height: 32px; } }
.site-footer a:hover { color: var(--fg); }
.site-footer__legal { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); justify-content: space-between; color: var(--fg-3); font-size: var(--fs-xs); }

/* ---------- Липкая полоса действия ----------
   По умолчанию — только на мобильном (снизу). На десктопе главное действие держит кнопка в шапке:
   после hero она становится акцентной (.past-hero). Для страницы товара добавьте .buybar--desktop —
   тогда на десктопе полоса встанет под шапкой (имя, цена «от», кнопка). */
.buybar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--d-3) var(--ease-out), visibility 0s linear var(--d-3);
}
/* visibility: спрятанная полоса не должна просвечивать сквозь прозрачную шапку */
.buybar.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
.buybar__in { display: flex; align-items: center; gap: var(--s-3); max-width: var(--container); margin-inline: auto; }
.buybar__name { display: none; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.buybar__price { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); color: var(--c-ink-2); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price b { display: block; color: var(--c-ink); font-size: 1rem; font-weight: var(--fw-semibold); }
.buybar .icon-btn { flex: none; background: var(--c-paper); }
.buybar .btn { flex: none; }
@media (max-width: 47.99em) { .buybar .btn { padding-inline: 1.1em; } .buybar__in { gap: var(--s-2); } }
@media (max-width: 24.99em) { .buybar__more { display: none; } }  /* < 400 px: короткая подпись, чтобы цена не обрезалась */
@media (min-width: 64em) {
  .buybar:not(.buybar--desktop) { display: none; }
  .buybar--desktop { top: var(--header-h); bottom: auto; padding-block: 8px; transform: translateY(-120%); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); z-index: 40; }
  .buybar--desktop.is-shown { transform: none; }
  .buybar--desktop .buybar__name { display: block; }
  .buybar--desktop .buybar__price { flex: 0 1 auto; margin-left: auto; text-align: right; font-size: var(--fs-sm); }
  .buybar--desktop .icon-btn { display: none; }
  /* кнопка в шапке после hero становится главной */
  .past-hero .site-header .site-header__cta { background: var(--c-accent); color: var(--c-on-accent); border-color: transparent; }
  .past-hero .site-header .site-header__cta:hover { background: var(--c-accent-hover); }
}

/* ---------- Модалка и формы ---------- */
.modal { width: min(560px, calc(100% - 2 * var(--gutter))); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--c-white); color: var(--c-ink); box-shadow: var(--sh-3); overflow: auto; }
.modal::backdrop { background: rgba(5, 5, 6, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in var(--d-3) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__in { padding: var(--s-8) var(--s-7) var(--s-7); position: relative; }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: var(--fs-h3); padding-right: var(--s-8); }
.modal p.t-2 { margin-top: var(--s-3); }
@media (max-width: 47.99em) {
  .modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92svh; }
  .modal[open] { animation: sheet-in var(--d-3) var(--ease-out); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .modal__in { padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom)); }
}

.form { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font-size: 1rem;   /* ≥ 16px: иначе iOS приближает страницу */
  border: 1px solid var(--line-control); border-radius: var(--r-md);
  background: var(--field-bg); color: var(--fg);
  transition: border-color var(--d-1) linear, box-shadow var(--d-1) linear;
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--c-danger); }
.field__err { color: var(--c-danger); font-size: var(--fs-sm); }
.field__err:empty { display: none; }
.form__note { font-size: var(--fs-xs); color: var(--fg-2); }
.form__note a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-done { text-align: center; padding: var(--s-8) 0 var(--s-4); }
.form-done__mark { width: 64px; height: 64px; margin: 0 auto var(--s-6); border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent-ink); }

/* ---------- Тост ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--c-ink); color: var(--c-white);
  font-size: var(--fs-sm); box-shadow: var(--sh-2);
  transition: opacity var(--d-2) linear, transform var(--d-3) var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 64em) { .toast { bottom: 32px; } }

/* ---------- Видео с паузой ---------- */
.media-video { position: relative; }
.media-video__pause { position: absolute; right: 12px; bottom: 12px; z-index: 3; background: rgba(0, 0, 0, .45); color: #fff; }
.media-video__pause:hover { background: rgba(0, 0, 0, .65); }

/* ---------- Шапка: кнопка и меню по ширинам ---------- */
.site-header__cta { display: none; }
@media (min-width: 48em) { .site-header__cta { display: inline-flex; } }

/* =========================================================================
   Другие типы первого экрана (демо — heroes.html). Выбирает направление.
   ========================================================================= */
/* 1. На весь экран: фото или видео, затемнение, текст внизу слева. Шапка над ним прозрачная. */
.hero--full { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; padding-bottom: var(--section-y-sm); overflow: hidden; color: var(--c-snow-1); }
.hero--full .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero--full .hero__media img, .hero--full .hero__media video, .hero--full .hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero--full::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .7) 100%); }
.hero--full > .container { position: relative; z-index: 2; }
.hero--full .hero__copy { max-width: 820px; }
.hero--full .t-lead { color: var(--c-snow-2); }
@media (min-width: 64em) { .hero--full { align-items: flex-end; } }

/* 2. Редакционный: огромный заголовок во всю ширину, кадр наезжает на буквы. */
.hero--editorial .t-hero { font-size: clamp(3.25rem, 1rem + 9.4vw, 10rem); line-height: .9; letter-spacing: -0.055em; }
.hero--editorial .hero__ed { display: grid; gap: var(--gap-lg); margin-top: var(--s-6); align-items: end; }
.hero--editorial .stage { aspect-ratio: 16 / 10; position: relative; z-index: 1; }
@media (min-width: 64em) {
  .hero--editorial .hero__ed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: calc(-1 * clamp(32px, 4vw, 72px)); }
  .hero--editorial .hero__ed .hero__copy { padding-top: clamp(48px, 6vw, 96px); }
}

/* 3. По центру: заголовок и кнопки по центру, ниже — широкая сцена с товаром. */
.hero--center { text-align: center; }
.hero--center .hero__copy { margin-inline: auto; max-width: 920px; }
.hero--center .hero__copy .t-lead { margin-inline: auto; }
.hero--center .row, .hero--center .hero__price { justify-content: center; }
.hero--center .stage { margin-top: var(--s-10); aspect-ratio: 16 / 8; }
@media (max-width: 47.99em) { .hero--center .stage { aspect-ratio: 4 / 3; } }
.hero-variant-label { margin-bottom: var(--s-5); }  /* метка «Тип N» — только для демо heroes.html */
/* подпись-заглушка кадра в полноэкранном hero — сверху справа, чтобы не лезть под текст и кнопки */
.hero--full .ph { align-items: flex-start; justify-content: flex-end; text-align: right; padding-top: calc(var(--header-h) + var(--s-5)); }
.hero { position: relative; }
