/* Сайт школы NA-360. Токены свои, а не из colors_and_type.css: тот тянет
   шрифты блокирующим @import. Значения цветов — те же, что у лендинга. */
:root {
  color-scheme: light;
  --ink: #1C1C1C;
  --paper: #FCFCFC;
  --surface: #F5F1EB;
  --line: rgba(28, 28, 28, .12);
  --line-inverse: rgba(252, 252, 252, .28);
  --text-muted: rgba(28, 28, 28, .78);
  --accent: #7A2E2B;
  --accent-deep: #62231F;
  --sale: #D9121F;
  --font-display: "tt-ricordi-allegria", "Playfair Display", "Times New Roman", serif;
  --font-brand: "aviano-sans", "Playfair Display", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --text-small: .8125rem;
  --text-body: 1rem;
  --text-lead: 1.25rem;
  --text-title: 2rem;
  --text-display: clamp(2.5rem, 4.6vw, 4rem);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --page-width: 1280px;
  --control-height: 48px;
  --avatar: 48px;
  --photo-width: 240px;
  --chat-height: 576px;
  --stage-height: 480px;
  --stage-height-small: 240px;
  --stage-light: #3A2820;
  --stage: #221814;
  --stage-dark: #14100D;
  --border: 1px solid var(--line);
  --transition: 160ms ease-out;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-lg); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-body)/1.6 var(--font-sans); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a, summary { transition: background-color var(--transition), color var(--transition), opacity var(--transition); }
:where(a, summary, button, [tabindex="0"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Цели программного фокуса (main, заголовок страницы товара) — не элементы
   управления: рамка на них после клика мышью только мешает. */
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: var(--text-title); }
h3 { font-size: var(--text-lead); font-weight: 500; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.shell { width: min(calc(100% - var(--space-4xl)), var(--page-width)); margin-inline: auto; }
.skip-link { position: fixed; top: var(--space-sm); left: var(--space-sm); z-index: 10; padding: var(--space-md); background: var(--accent); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { font: 500 var(--text-small)/1.5 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.display-title, .page-title { font-size: var(--text-display); line-height: 1.13; }
.text-link { text-decoration: underline; text-underline-offset: var(--space-xs); }
.text-link:hover { color: var(--accent); }

.button { display: inline-flex; min-height: var(--control-height); padding: var(--space-sm) var(--space-lg); align-items: center; justify-content: center; gap: var(--space-md); border: 1px solid transparent; font-weight: 500; line-height: 1.5; text-align: center; }
.button.primary { background: var(--accent); color: var(--paper); }
.button.primary:hover { background: var(--ink); }
.button.secondary { border-color: var(--ink); }
.button.secondary:hover { background: var(--surface); }
.button:active, .product-card-link:active { opacity: .75; }
.arrow { width: var(--space-lg); height: var(--space-lg); flex-shrink: 0; }
.primary .arrow { filter: brightness(0) invert(1); }

/* Распродажа. Чёрная полоса и чёрная плашка на фото — один знак Black Friday;
   цена распродажи — красная (--sale); акцентный бордовый остаётся за кнопками. */
.sale-banner { display: flex; min-height: var(--control-height); padding: var(--space-sm) var(--space-md); align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: var(--text-small); font-weight: 500; line-height: 1.5; text-align: center; }
.sale-banner:hover { text-decoration: underline; text-underline-offset: var(--space-xs); }
.sale-banner:focus-visible { outline-color: var(--paper); outline-offset: calc(-1 * var(--space-sm)); }
.sale-banner:active { opacity: .75; }
/* Плашка — нижние 22% фото. Размеры букв считаются от самого фото (cqi/cqh),
   чтобы плашка была одинаково крупной на карточке любой ширины и формы. */
.sale-badge { position: absolute; inset: auto 0 0; display: flex; height: 22%; padding-inline: 5cqi; align-items: center; justify-content: space-between; gap: 4cqi; background: var(--ink); color: var(--paper); font: 500 min(4.8cqi, 7cqh)/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sale-badge b { font-size: min(12cqi, 13cqh); font-weight: 700; letter-spacing: 0; }
/* Блок распродажи — сцена в стиле интерлюдии: тёмная студия, справа летают
   знаки скидки (site/forms.js), слева текст. Холст занимает только свою
   половину и растворяется к тексту, так что формы под текст не залетают. */
.sale-section { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 75% 35%, var(--stage-light) 0%, var(--stage) 55%, var(--stage-dark) 100%); color: var(--paper); }
.sale-section .forms-canvas { left: 50%; width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--space-4xl)); mask-image: linear-gradient(90deg, transparent, #000 var(--space-4xl)); }
.sale { position: relative; z-index: 2; display: flex; min-height: var(--stage-height); padding-block: var(--space-3xl); flex-direction: column; align-items: flex-start; justify-content: center; pointer-events: none; }
.sale > * { max-width: 50%; pointer-events: auto; }
.sale .display-title { margin-top: var(--space-md); }
.sale-note { margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.5; }
.sale .button { margin-top: var(--space-xl); }
/* В чёрном блоке зачёркнутая цена — того же размера и цвета, что строка. */
.sale-price { white-space: nowrap; font-weight: 500; }
.sale-price .old-price { font-size: inherit; color: inherit; opacity: .7; }
.sale-price .sale-amount { color: inherit; }
.button.inverse { flex-shrink: 0; background: var(--paper); color: var(--ink); }
.button.inverse:hover { background: var(--surface); }
.button.inverse:focus-visible { outline-color: var(--paper); }
.old-price { margin-right: var(--space-xs); font-size: var(--text-small); font-weight: 400; color: var(--text-muted); }
.large-price .old-price { font-size: var(--text-lead); }
/* Цена распродажи: красная, жирная и вдвое крупнее обычной; обычная цена
   зачёркнута строкой выше. */
.sale-amount { color: var(--sale); font-weight: 700; }
.price .old-price { font-size: var(--text-body); }
.price .sale-amount { font-size: var(--text-title); line-height: 1.2; }

.site-header { display: flex; min-height: var(--space-4xl); justify-content: space-between; align-items: center; gap: var(--space-xl); border-bottom: var(--border); }
.wordmark { display: inline-flex; white-space: nowrap; align-items: center; min-height: var(--control-height); font-family: var(--font-brand); font-size: var(--text-title); line-height: 1; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: var(--space-xl); align-items: center; font-size: var(--text-small); }
.site-header nav a { display: inline-flex; white-space: nowrap; min-height: var(--control-height); align-items: center; }
.site-header nav a:hover, .footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: var(--space-xs); }
.nav-cabinet { border-left: var(--border); padding-left: var(--space-xl); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-3xl); align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero-copy .display-title { margin-top: var(--space-lg); }
.hero-description { max-width: 42ch; margin-top: var(--space-lg); color: var(--text-muted); }
.hero-copy .button { margin-top: var(--space-xl); }
.hero-caption { margin-top: var(--space-md); font-size: var(--text-small); color: var(--text-muted); }
.hero-picture { aspect-ratio: 1.15; overflow: hidden; background: var(--surface); }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }

.pains-section, .catalog-section, .system-section, .celebs-section, .reviews-section, .gift-section, .faq-section { padding-block: var(--space-3xl); border-top: var(--border); }
.gallery-section { padding-block: var(--space-3xl); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.section-heading h2 { margin-top: var(--space-md); }
.section-heading > p { max-width: 40ch; font-size: var(--text-small); color: var(--text-muted); }

/* «Для кого» и «Результат»: фото рядом со списком, зеркально друг другу;
   второй блок — тёмно-бордовая полоса во всю ширину, предмет в нём вырезан с фона. */
.pains-section, .outcomes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-3xl); align-items: center; }
.objections-section { background: var(--accent-deep); color: var(--paper); }
.objections-section .point-list li { border-color: var(--line-inverse); }
.sale-section:not([hidden]) + .catalog-section { border-top: 0; }
.outcomes { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-block: var(--space-3xl); }
.point-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.point-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
/* Предмет, вырезанный с фона: стоит прямо на подложке секции и не обрезается. */
.point-photo.still { background: none; }
.point-photo.still img { object-fit: contain; object-position: center; }
.point-copy h2 { margin-top: var(--space-md); }
.point-list { margin-top: var(--space-xl); }
.point-list li { display: flex; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: var(--border); font-family: var(--font-display); font-size: var(--text-lead); line-height: 1.35; }
.point-list .step-number { flex: none; min-width: var(--space-2xl); line-height: 1; }
.point-copy .button { margin-top: var(--space-lg); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.product-card-link { display: flex; flex-direction: column; height: 100%; }
.product-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); container-type: size; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding-top: var(--space-lg); }
.card-kicker { font-size: var(--text-small); color: var(--text-muted); }
.card-body h3 { margin-top: var(--space-sm); font-family: var(--font-display); }
.card-body h3 + p { margin-top: var(--space-md); color: var(--text-muted); }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-sm); margin-top: auto; padding-top: var(--space-lg); }
/* Колонка: зачёркнутая цена над новой; одиночная цена — по центру строки со ссылкой. */
.price { display: flex; min-height: var(--control-height); flex-direction: column; justify-content: center; font-weight: 500; white-space: nowrap; }
.card-action { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: var(--control-height); font-size: var(--text-small); font-weight: 500; }
.product-card-link:hover .card-action { color: var(--accent); text-decoration: underline; text-underline-offset: var(--space-xs); }

/* Набор — самое выгодное предложение: чёрный блок во всю ширину, красная
   плашка и метка, цена крупнее, чем у остальных. */
.product-card.featured { grid-column: 1 / -1; margin-bottom: var(--space-lg); background: var(--ink); color: var(--paper); }
.featured .product-card-link { flex-direction: row; }
.featured .product-image { flex: 1 1 0; aspect-ratio: auto; }
.featured .sale-badge { background: var(--sale); }
.featured .card-body { flex: 1 1 0; justify-content: center; padding: var(--space-2xl); }
.best-tag { align-self: flex-start; margin-bottom: var(--space-md); padding: var(--space-xs) var(--space-sm); background: var(--sale); }
.featured .card-kicker, .featured h3 + p, .featured .old-price { color: inherit; opacity: .8; }
.featured h3 { font-size: var(--text-title); }
.featured .card-bottom { margin-top: 0; }
.featured .price .sale-amount { font-size: var(--text-display); }
.featured .product-card-link:focus-visible { outline-offset: var(--space-xs); }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); }
.step-number { font-family: var(--font-display); font-size: var(--text-title); color: var(--text-muted); }
.how-grid h3 { margin-top: var(--space-md); }
.how-grid p { margin-top: var(--space-sm); color: var(--text-muted); }

.about-section { background: var(--surface); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-3xl); align-items: center; padding-block: var(--space-3xl); }
.about-portrait { aspect-ratio: 4 / 5; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-top: var(--space-md); }
.about-copy > p:not(.eyebrow) { max-width: 60ch; margin-top: var(--space-md); color: var(--text-muted); }
.stats { display: flex; gap: var(--space-2xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--border); }
.stats li { display: flex; flex-direction: column; gap: var(--space-xs); }
.stats .eyebrow { color: var(--text-muted); }
.stat-value { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; }

/* Блоки, перенесённые со старого лендинга: лента клиенток, листалка работ
   учениц, окно переписки и трёхмерная интерлюдия. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
/* Стоит и под курсором, и под фокусом с клавиатуры (27.11.2026). Рамку фокуса
   рисуем внутри: маска ленты срезает всё, что снаружи её края. */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee:focus-visible { outline-offset: -2px; }
/* Отступ — внутри элемента, а не gap: тогда сдвиг на −50 % ровно на шесть фото. */
.marquee-item { flex: none; width: calc(var(--photo-width) + var(--space-md)); padding-right: var(--space-md); }
.marquee-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); }
@keyframes marquee { to { transform: translateX(-50%); } }

.gallery { position: relative; }
.gallery-track { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: none; width: calc((100% - 2 * var(--space-md)) / 3); scroll-snap-align: start; }
.gallery-track img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.gallery-nav { position: absolute; top: 50%; z-index: 1; display: flex; width: var(--control-height); height: var(--control-height); padding: 0; align-items: center; justify-content: center; border: var(--border); border-radius: 50%; background: var(--paper); color: inherit; cursor: pointer; transform: translateY(-50%); transition: background-color var(--transition), opacity var(--transition); }
.gallery-nav:hover { background: var(--surface); }
.gallery-nav:active { opacity: .75; }
.gallery-nav.prev { left: var(--space-md); }
.gallery-nav.prev .arrow { transform: rotate(180deg); }
.gallery-nav.next { right: var(--space-md); }
.gallery-dots { display: flex; min-height: var(--space-sm); justify-content: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.gallery-dots span { width: var(--space-sm); height: var(--space-sm); border-radius: 50%; background: var(--line); }
.gallery-dots .active { background: var(--ink); }

.reviews-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-3xl); align-items: start; }
.reviews-copy h2 { margin-top: var(--space-md); }
.reviews-copy > p:not(.eyebrow) { max-width: 40ch; margin-top: var(--space-md); color: var(--text-muted); }
/* Окно переписки. Цвета мессенджера — свои и живут только здесь. Высота
   фиксирована: видно несколько сообщений и край следующего — он подсказывает,
   что окно листается. Дойдя до конца, страница едет дальше. */
.chat { --chat-bg: #0B141A; --chat-bubble: #005C4B; --chat-text: #E9EDEF; --chat-name: #7FD4C1; --chat-tick: #53BDEB; --chat-blank: #2A3942;
  height: var(--chat-height); padding: var(--space-xl) var(--space-lg); overflow-y: auto; border-radius: var(--space-md); background: var(--chat-bg); color: var(--chat-text); scrollbar-width: thin; scrollbar-color: var(--chat-blank) transparent; }
.chat:focus-visible { outline-color: var(--chat-name); }
.chat__msg { display: flex; gap: var(--space-sm); align-items: flex-end; margin-bottom: var(--space-md); opacity: 0; transform: translateY(var(--space-md)); animation: chat-rise .4s ease-out forwards; }
.chat__msg:nth-child(2) { animation-delay: .1s; }
.chat__msg:nth-child(3) { animation-delay: .2s; }
.chat__msg:nth-child(4) { animation-delay: .3s; }
@keyframes chat-rise { to { opacity: 1; transform: none; } }
/* Отзывы без имени: в исходных скриншотах ник замазан, поэтому подписи нет,
   а вместо фото — пустой кружок. Выдумывать имена нельзя. */
.chat__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--chat-blank); }
.chat__bubble { position: relative; max-width: 80%; padding: var(--space-sm) var(--space-md); border-radius: var(--space-md); border-bottom-left-radius: var(--space-xs); background: var(--chat-bubble); }
.chat__name { margin-bottom: var(--space-xs); font-size: var(--text-small); font-weight: 500; color: var(--chat-name); }
.chat__text { line-height: 1.5; overflow-wrap: break-word; }
.chat__meta { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-xs); margin-top: var(--space-xs); font-size: var(--text-small); opacity: .75; }
.chat__tick { width: var(--space-md); height: 12px; fill: var(--chat-tick); }

/* Интерлюдия с трёхмерными формами. Тёплая тёмная сцена — свои цвета,
   они же зашиты в освещение сцены (site/forms.js). */
.forms-section { position: relative; display: flex; height: 88vh; min-height: 720px; max-height: 920px; padding: 7% 4vw; flex-direction: column; justify-content: space-between; align-items: center; overflow: hidden; background: radial-gradient(120% 80% at 30% 30%, var(--stage-light) 0%, var(--stage) 55%, var(--stage-dark) 100%); }
.forms-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.forms-text-line { position: relative; z-index: 3; font-family: var(--font-display); font-weight: 500; font-size: clamp(104px, 16vh, 196px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--paper); pointer-events: none; }
.forms-touches { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.touch { position: absolute; border-radius: 55% 45% 60% 40% / 50% 60% 45% 55%; background: radial-gradient(closest-side, var(--touch-color, #B85450) 5%, var(--touch-color, #B85450) 35%, transparent 78%); opacity: 0; filter: blur(7px) saturate(115%); transform: translate(-50%, -50%) rotate(var(--touch-rot, 0deg)) scale(.55); transition: opacity .9s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1); mix-blend-mode: screen; will-change: transform, opacity; }
.touch.visible { opacity: .78; transform: translate(-50%, -50%) rotate(var(--touch-rot, 0deg)) scale(1); }

.gift-section { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-xl); }
.gift-copy h2 { margin-top: var(--space-md); }
.gift-copy > p:not(.eyebrow) { max-width: 60ch; margin-top: var(--space-md); color: var(--text-muted); }
.gift-section .button { flex-shrink: 0; }

.faq-list { max-width: 720px; }
.faq-list details { border-top: var(--border); }
.faq-list details:last-child { border-bottom: var(--border); }
.faq-list summary { min-height: var(--control-height); padding-block: var(--space-md); font-weight: 500; cursor: pointer; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > p { max-width: 65ch; padding-bottom: var(--space-lg); color: var(--text-muted); }

.site-footer { padding-block: var(--space-2xl) var(--space-xl); border-top: var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl); }
.footer-grid p { margin-top: var(--space-sm); font-size: var(--text-small); color: var(--text-muted); }
.footer-grid h2 { margin-bottom: var(--space-sm); }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--control-height); font-size: var(--text-small); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--border); font-size: var(--text-small); color: var(--text-muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: var(--space-xs); }

.detail-page { padding-block: var(--space-xl) var(--space-4xl); }
.back-link { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: var(--control-height); margin-bottom: var(--space-xl); font-size: var(--text-small); color: var(--text-muted); }
.back-link:hover { color: var(--accent); }
.back-link .arrow { transform: rotate(180deg); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; }
.detail-image { aspect-ratio: 4 / 5; }
.detail-copy .page-title { margin-top: var(--space-md); }
.detail-description { max-width: 60ch; margin-top: var(--space-lg); color: var(--text-muted); }
.composition { margin-top: var(--space-xl); }
.composition h2 { font-family: var(--font-sans); font-size: var(--text-lead); letter-spacing: 0; }
.composition ul { margin-top: var(--space-md); }
.composition li { display: flex; gap: var(--space-md); padding-block: var(--space-md); border-top: var(--border); }
.list-number { flex-shrink: 0; padding-top: var(--space-xs); font-size: var(--text-small); color: var(--text-muted); }
.format-line { margin-top: var(--space-lg); font-size: var(--text-small); color: var(--text-muted); }
.prominent-note { margin-top: var(--space-md); padding-left: var(--space-md); border-left: 2px solid var(--ink); }
.purchase-block { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.large-price { font-size: var(--text-title); font-weight: 500; white-space: nowrap; }
.purchase-hint { max-width: 60ch; margin-top: var(--space-md); font-size: var(--text-small); color: var(--text-muted); }
.purchase-hint + .text-link { display: inline-flex; align-items: center; min-height: var(--control-height); margin-top: var(--space-sm); }

.empty-state { max-width: 720px; padding-block: var(--space-3xl); }
.empty-state .page-title { margin-top: var(--space-md); }
.empty-state > p:not(.eyebrow) { margin-top: var(--space-md); color: var(--text-muted); }
.empty-state .button { margin-top: var(--space-xl); }

@media (max-width: 1024px) {
  .shell { width: calc(100% - var(--space-2xl)); }
  .hero, .about, .product-detail, .pains-section, .outcomes { gap: var(--space-2xl); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
  .reviews-section { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .site-header .nav-extra { display: none; }
  .site-header nav { gap: var(--space-lg); }
  .nav-cabinet { padding-left: var(--space-lg); }
  .hero, .about, .pains-section, .outcomes { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pains-section, .outcomes { gap: var(--space-xl); }
  .point-photo { aspect-ratio: 1.15; }
  .outcomes .point-photo { order: -1; }
  .gallery-track li { width: 75%; }
  .gallery-nav { display: none; }
  .forms-section { height: auto; min-height: 320px; max-height: none; padding: var(--space-3xl) var(--space-lg); gap: var(--space-lg); }
  .forms-text-line { font-size: clamp(46px, 13vw, 96px); }
  .gift-section { flex-direction: column; align-items: flex-start; }
  .sale-section .forms-canvas { left: 0; width: 100%; height: var(--stage-height-small); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .sale { min-height: 0; padding-block: var(--stage-height-small) var(--space-2xl); }
  .sale > * { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - var(--space-xl)); }
  .site-header { min-height: var(--space-3xl); gap: var(--space-md); }
  .wordmark { font-size: var(--text-lead); }
  .site-header nav { gap: var(--space-md); }
  .nav-cabinet { border: 0; padding: 0; }
  .hero { gap: var(--space-xl); padding-block: var(--space-lg) var(--space-2xl); }
  .hero-copy .button, .purchase-block .button, .gift-section .button, .point-copy .button, .sale .button { width: 100%; }
  .point-list li { gap: var(--space-md); }
  .pains-section, .outcomes, .catalog-section, .system-section, .celebs-section, .gallery-section, .reviews-section, .gift-section, .faq-section, .about { padding-block: var(--space-2xl); }
  .chat { height: min(70vh, var(--chat-height)); padding: var(--space-lg) var(--space-md); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .product-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .product-grid .product-image, .detail-image { aspect-ratio: 1; }
  .product-card.featured { margin-bottom: 0; }
  .featured .product-card-link { flex-direction: column; align-items: stretch; }
  .featured .product-image, .featured .card-body { flex: none; }
  .featured .card-body { padding: var(--space-lg); }
  .featured h3 { font-size: var(--text-lead); }
  .product-detail { grid-template-columns: 1fr; gap: var(--space-lg); }
  .detail-page { padding-bottom: var(--space-2xl); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  /* Лента стоит на месте и листается пальцем или мышью. */
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .chat__msg { animation: none; opacity: 1; transform: none; }
}
