/* ========== FONTS ========== */
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-cyrillic-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
}
p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--space-24);
}

/* --- Верхняя строка: текст | видео --- */
.hero__top {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: var(--space-16) 0 0;
  direction: rtl;
  position: relative;
  z-index: 1;
}

/* --- Content (левая колонка) --- */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  direction: ltr;
}
.hero__player-wrap { direction: ltr; }
/* Двухстрочный заголовок — «философия / бизнес»: каждое предложение на своей
   строке намеренно (симметричная пара), а не как результат переноса по
   ширине колонки. См. docs/site-2.0-spec-2026-08-27.md §3 (PL-142). */
.hero__title {
  font-size: clamp(1.7rem, 4.1vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero__title-line { display: block; }
.hero__title-line + .hero__title-line { margin-top: 0.1em; }
.hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 42ch;
}

/* --- Player (правая колонка) --- */
.hero__player-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__player {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}
.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* img всегда поверх видео — закрывает чёрный кадр при смене src */
img.hero__frame   { z-index: 2; opacity: 1; transition: opacity 0.4s ease; }
video.hero__frame { z-index: 1; opacity: 1; }

/* --- Нижняя полоса: питч + фичи + кнопка --- */
.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--color-border);
}
.hero__pitch {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}
.hero__pitch strong {
  color: var(--color-text);
  font-weight: 700;
}
.hero__row {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}
/* Сам ряд фич — компонент .feature-grid (components.css); здесь только его
   поведение внутри hero__row: занять всё место, оставшееся от кнопки. */
.hero__row .feature-grid { flex: 1; }
.hero__cta { flex-shrink: 0; }

/* ========== PLATFORM FRAME (PL-145) ========== */
/* Лёгкая рамка над #experience и #studio: общий eyebrow-заголовок и указатель
   «Часть 01 · Часть 02», визуально объединяющие два физически раздельных
   раздела в один нарратив «Платформа» — без слияния DOM. #experience ниже —
   самая хрупкая точка сайта (JS с зашитыми именами классов, см. js/main.js);
   этот блок её не трогает вообще, это отдельная статическая секция перед ней.
   Сдержанная, тихая подача — крупный воздух, тонкий трекинг, минимум декора
   (референсы 12storeez.com / ii.loropiana.com). */
.platform-intro {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
}
.platform-intro__inner {
  max-width: 640px;
  margin: 0 auto;
}
.platform-intro__inner .section__label { display: block; }
.platform-intro__inner .section__title {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.platform-intro__parts {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-4);
}
.platform-intro__part {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-out-expo), opacity var(--ease-out-expo);
}
.platform-intro__part:hover { border-bottom-color: var(--color-text); opacity: 0.7; }
.platform-intro__part-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.platform-intro__part-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .platform-intro__parts { flex-direction: column; align-items: center; gap: var(--space-2); }
}

/* Закрывающий CTA раздела «Платформа» — компонент .cta-band (components.css,
   без --dark), контекстная доводка ширины колонки и типографики. */
#platform-cta .cta-band__inner { max-width: 560px; }
.platform-cta__text {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ========== EXPERIENCE ========== */
.experience {
  position: relative;
}
.experience__floaters {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.experience__sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}
.experience__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.experience__left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-24) var(--space-16) 0;
  overflow-y: auto;
}
/* Философская врезка (PL-143) — статический абзац внутри .experience__left,
   существующая JS-логика секции (сборка слайдов/точек, клон блока в мобильную
   шапку) его не касается: она клонирует .experience__left целиком, поэтому
   абзац автоматически попадает и в десктоп, и в мобильную версию. */
.experience__philosophy {
  max-width: 46ch;
  margin: 0.25rem 0 0.5rem;
}
.experience__right {
  position: relative;
  overflow: hidden;
}

/* Slides — full-bleed photo, products overlaid */
.experience__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.experience__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.experience__photo-wrap {
  position: absolute;
  inset: 0;
}
.experience__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Product overlay — scroll-driven, full panel height */
.experience__products {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
/* Сама плитка — компонент .product-tile--row (components.css); здесь только
   доводка под оверлей: где она висит над фото и как выглядит её подложка.
   Абсолютное позиционирование обязательно — вертикаль плитке проставляет
   js/main.js инлайновым transform по позиции скролла. */
.experience__products .product-tile {
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 296px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform;
  pointer-events: auto;
}

/* Progress dots */
.experience__dots {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 5;
}
.experience__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}
.experience__dot.active {
  height: 18px;
  border-radius: 2px;
  background: var(--color-text);
}

/* Mobile swiper */
.experience__mobile { display: none; }
.experience__m-header {
  padding: var(--space-16) 2rem var(--space-8);
}
.experience__m-header .section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.experience__m-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.experience__m-track::-webkit-scrollbar { display: none; }
.experience__m-slide {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
}
.experience__m-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.experience__m-products {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  margin-top: -100px;
  position: relative;
  z-index: 1;
}
/* Плитка в мобильном ряду — тот же .product-tile, но без --row: базовая,
   с миниатюрой над подписью. Здесь только её доля ширины в ряду. */
.experience__m-products .product-tile {
  flex: 1;
  max-width: 140px;
}
.experience__m-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-4) 0;
}
.experience__m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s;
}
.experience__m-dot.active { background: var(--color-text); }

/* ========== STUDIO ========== */
.studio { position: relative; overflow: hidden; }
.studio__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-24);
}
.studio__header .section__title { margin: var(--space-2) 0 var(--space-8); }

/* Lead grid — full viewport width, outside container */
.studio__lead {
  position: relative;
  margin-bottom: var(--space-24);
}
.studio__lead-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.studio__cell {
  background: #f0f0f0;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.studio__cell--large {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}
.studio__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
  transition: opacity 0.35s ease;
}
.studio__cell img.fading { opacity: 0; }

/* Photo section */
.studio__photo {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--space-24);
  align-items: center;
  padding: var(--space-24) 0;
}
.studio__photo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.studio__photo-h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.studio__phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
/* iPhone mockup — real device frame, resting look via drop-shadow + slight tilt */
.iphone-mock {
  position: relative;
  width: 320px;
  margin: 0 auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 26px 34px rgba(0,0,0,0.16)) drop-shadow(0 3px 8px rgba(0,0,0,0.10));
}
.iphone-mock::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 72%;
  height: 10%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18), transparent 72%);
  transform: translateX(-50%);
  filter: blur(5px);
  z-index: -1;
}
.iphone-mock__frame {
  width: 100%;
  display: block;
  position: relative;
  pointer-events: none;
}
.iphone-mock__screen {
  position: absolute;
  left: 3.8%;
  right: 3.5%;
  top: 1.5%;
  bottom: 1.35%;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
  z-index: 2;
}

/* Demo states */
.demo-state {
  position: absolute;
  inset: 0;
  background: #111;
}
.demo-state--hidden { display: none; }

/* Camera */
.demo-camera-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.camera-chrome__top {
  padding: 58px 20px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  display: flex;
  justify-content: center;
}
.camera-chrome__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.9);
}
.camera-chrome__focus {
  flex: 1;
  margin: 12px 32px;
  border: 1.5px solid rgba(255,218,90,0.65);
  border-radius: 6px;
}
.camera-chrome__bottom {
  padding: 14px 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  justify-content: center;
  pointer-events: all;
}

/* Action buttons inside phone (.btn — page-specific доводка под наложение на фото/видео) */
.demo-result-chrome .btn {
  background: rgba(255,255,255,0.9);
  border: none;
  color: #111;
  font-size: 0.95rem;
  box-shadow: none;
  transition: transform 0.1s ease, background 0.12s ease;
}
.demo-result-chrome .btn:hover { background: #fff; box-shadow: none; transform: scale(1.04); }
.demo-result-chrome .btn:active { transform: scale(0.96); }

/* Processing */
.demo-progress-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}
.demo-progress-bar {
  width: 100%;
  max-width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}
.demo-progress-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Result image */
.demo-result-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  display: block;
}

/* Canvas boomerang */
.demo-result-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #111;
}

.demo-result-chrome {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 24px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Animating overlay */
.demo-overlay-progress {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  z-index: 5;
}

/* Flash */
.demo-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* Button natural width in flex columns */
.studio__photo-text .btn,
.experience__left .btn { align-self: flex-start; }

/* ========== PARTNERS ========== */
.partners { position: relative; overflow: hidden; }
.partners .section__label { display: block; margin-bottom: var(--space-16); }
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24);
}
.partner {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.partner:hover { opacity: 1; }
.partner__logo {
  height: 36px;
  width: auto;
  display: block;
}
.partner__logo--multiply { mix-blend-mode: multiply; }
.partner__logo--invert   { filter: invert(1); }

/* ========== CTA DARK ========== */
/* Оболочка баннера — компонент .cta-band / .cta-band--dark (components.css, T15).
   Здесь остаётся только доводка под контент главной. */
/* Внутри секции лежат .floater-wrap — контейнер поднимается над ними. */
#contact .container { position: relative; z-index: 1; }
/* Колонка уже базовых 720px и с более крупным шагом между узлами. */
#contact .cta-band__inner { max-width: 600px; gap: var(--space-8); }

/* ========== CONTACT FORM ========== */
.contact { position: relative; overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-24);
  align-items: start;
}
.contact__lead { position: static; }
.contact__lead h2 { margin: var(--space-2) 0 var(--space-4); }
.contact__lead p  { color: var(--color-text-muted); font-size: 1rem; }

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__marketing { display: flex; flex-direction: column; gap: 0.75rem; }

/* Success informer (replaces the submit button after a successful send) */
.form__success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-sm);
}
.form__success-text { font-size: 0.92rem; color: var(--color-text); margin: 0; }
.form__success-reset {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease-out-expo);
}
.form__success-reset:hover { opacity: 0.6; }

/* ========== PRODUCTS SHOWCASE ========== */
/* Рамка карусели — компонент .carousel (components.css, T17).
   Здесь остаётся только страничное: заголовок секции и доводка содержимого
   слайда — растяжение .card на всю высоту слайда и кнопка «Примерить»
   под карточкой. Оба правила про контент, не про механику карусели. */
.products-showcase__title { text-align: center; margin-bottom: var(--space-24); }
.carousel__slide .card { display: flex; flex-direction: column; flex: 1; }
.products-showcase__try { margin-top: 0.75rem; align-self: flex-start; }

/* Калькулятор — компонент .pricing-calc (components.css, T16).
   Секция-обёртка .pricing-calc-wrap — только якорь/хук разметки, своих правил не имеет. */

/* ========== PRODUCT PAGE ========== */
/* Переиспользуемые примитивы страницы вынесены в components.css (T19):
   галерея — .gallery, характеристики — .spec-list, выбор размера —
   .chip / .chip-group, полноэкранный просмотр — .lightbox. Здесь остаётся
   только уникальная композиция товарной страницы: шапка со ссылкой «назад»,
   двухколоночная сетка, текстовая колонка, подпись над рядом чипов и сетка
   блока «Другие товары». */
.product-header__left { display: flex; align-items: center; gap: 1.5rem; margin-right: auto; }
.product-header__left .header__logo { flex-shrink: 0; margin-right: 0; }
.product-back { font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; transition: color var(--ease-out-expo); }
.product-back:hover { color: var(--color-text); }

.product__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-24);
  align-items: start;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-16);
}
/* Прилипание галереи к верху колонки — свойство этой раскладки, а не
   компонента: .gallery сама по себе не sticky. */
.product__grid > .gallery { position: sticky; top: calc(var(--header-height) + var(--space-8)); }

.product__info { display: flex; flex-direction: column; padding-top: var(--space-8); }
.product__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: var(--space-2) 0 var(--space-8);
}
.product__desc { color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.65; margin-bottom: var(--space-16); }
/* Отбивка таблицы характеристик от блока размеров — композиция колонки;
   сам .spec-list внешних отступов не несёт. */
.product__info .spec-list { margin-bottom: var(--space-16); }

/* Блок выбора размера: подпись над рядом чипов. Сам ряд — компонент
   .chip-group, кнопки — .chip; обёртка .product__sizes своих правил
   не имеет и остаётся только хуком разметки. */
.product__sizes-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 0.75rem; }

/* Related products */
.product-related__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

/* ========== PRESS PAGE ========== */
/* Переиспользуемые примитивы страницы вынесены в components.css (T20):
   факты о компании — .stat-list, карточки скачивания логотипов — .card
   с модификаторами --panel / __img--shelf / __img--round / __img--line
   и блоком действия .card__action.
   Здесь остаётся композиция: ряд карточек и их ширина. */
.press-assets {
  display: flex;
  gap: var(--space-24);
  flex-wrap: wrap;
}
.press-assets .card { width: 280px; max-width: 100%; }

/* Блок «Контакт для прессы» — компонент .cta-band--dark (components.css, T15):
   базовая колонка 720px и её шаг совпадают с базой, доводки не требуется. */

/* ========== PRICING ========== */
.pricing__trial {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  margin-bottom: var(--space-8);
}
.pricing__trial-price {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0.5rem 0 var(--space-8);
  letter-spacing: -0.02em;
}
.pricing__trial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-4) 0;
}
.pricing__trial-row + .pricing__trial-row { border-top: 1px solid var(--color-border); }
.pricing__trial-row p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
.pricing__trial-row p strong { color: var(--color-text); font-weight: 600; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.pricing__card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pricing__card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.pricing__card-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.pricing__card-features { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: auto; }
.pricing__card-features p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
.pricing__card-features p strong { color: var(--color-text); font-weight: 600; }
.pricing__card-price {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
}
.pricing__note { color: var(--color-text-muted); font-size: 0.9rem; margin-top: var(--space-8); }

.pricing__cta { margin-top: var(--space-4); align-self: flex-start; }

@media (max-width: 900px) {
  .pricing__trial-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .pricing__grid { grid-template-columns: 1fr; }
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--motion-base), transform var(--motion-base);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Единственное контекстное переопределение токена (правило R3 PRD):
     вертикальный ритм секций на мобильном — 4rem вместо 6rem. */
  :root { --space-24: 4rem; }

  /* Tighter edge margins on mobile everywhere except the experience block's
     photo carousel, which stays full-bleed (its own header keeps the wider,
     original padding). */
  .container { padding: 0 8px; }
  .experience__m-header.container { padding-left: 2rem; padding-right: 2rem; }

  /* backdrop-filter on .header creates a containing block for fixed-position
     descendants in Chrome — without disabling it, the fullscreen nav overlay
     below would be sized/positioned relative to the header bar, not the viewport. */
  .header:has(.header__nav.open) { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* .header establishes its own stacking context (fixed + z-index), so the
     nested nav overlay's z-index can never out-rank siblings like the cookie
     banner outside .header — hide them instead while the menu is open. */
  body.nav-open .cookie-banner,
  body.nav-open .cookie-panel,
  body.nav-open .scroll-top { display: none; }

  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 250;
    gap: var(--space-16);
    padding: var(--space-24) var(--space-8);
  }
  .header__nav-close { display: none; }
  .header__nav.open .header__nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: var(--space-24);
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    border: none;
    cursor: pointer;
  }
  .header__cta-full { display: none; }
  .header__cta { padding: 0.625rem 1.1rem; font-size: 0.82rem; }
  .header__burger { display: flex; margin-left: 0; }
  .header__logo-img { height: 22px; max-width: 140px; }

  .hero__top {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-16);
    padding-bottom: 0;
  }
  .hero__bottom {
    gap: var(--space-8);
  }
  .hero__row {
    flex-direction: column;
    align-items: stretch;
  }
  /* мобильная форма ряда фич — в самом компоненте .feature-grid (components.css) */
  /* Текст CTA («Запросить демо для вашего бренда», PL-147) длиннее прежнего —
     на узких экранах разрешаем перенос вместо .btn white-space:nowrap
     из components.css, чтобы кнопка не переполнялась по ширине. */
  .hero__cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
  .hero__player { border-radius: 14px; max-width: none; }

  /* мобильная форма ряда фактов — в самом компоненте .stat-list (components.css) */
  .press-assets .card { width: 100%; }

  .studio__photo {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .studio__phone-col { order: -1; }
  .iphone-mock { width: 250px; }
  .iphone-mock__screen { border-radius: 32px; }
  .studio__lead-grid { grid-template-columns: repeat(4, 1fr); }
  .studio__cell--large { grid-column: 2 / span 2; grid-row: 1 / span 2; }

  .experience__sticky { display: none; }
  .experience__mobile { display: block; }
  .experience { min-height: 0 !important; border-top: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__lead { position: static; }
  .form__row { grid-template-columns: 1fr; }

  /* мобильная геометрия карусели — в самом компоненте .carousel (components.css, T17) */

  /* мобильная форма калькулятора — в самом компоненте .pricing-calc (components.css, T16) */

  .tariff-modal { padding: 0; }
  .tariff-modal__dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: var(--space-8);
    padding-top: calc(var(--space-8) + 2.5rem);
  }

  .header__inner:has(.product-header__left) { gap: 0.75rem; }
  .product-header__left { gap: 0.75rem; }
  .product-back { font-size: 0.78rem; }
  .product-back__label { display: none; }
  .product-header__cta { padding: 0.625rem 1.1rem; font-size: 0.82rem; }
  .product__grid { grid-template-columns: 1fr; padding-top: calc(var(--header-height) + var(--space-8)); gap: var(--space-16); }
  .product__grid > .gallery { position: static; }
  .product__info { padding-top: 0; }
  .product-related__grid {
    display: flex;
    grid-template-columns: none;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .product-related__grid .card { flex: 0 0 70%; scroll-snap-align: start; }

  .footer__top { flex-direction: column; gap: var(--space-16); }
  .footer__requisites { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: var(--space-4); }
}

/* ========== FLOATERS ========== */
.floater-wrap {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.floater-wrap--behind { z-index: 0; }
.floater-wrap--front { z-index: 5; }
.floater-img {
  width: 100%;
  display: block;
  animation: floaterBob 8s ease-in-out infinite;
}
.floater-img--blur { opacity: 0.85; }
.floater-wrap--front .floater-img { opacity: 0.92; }
@keyframes floaterBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}
@media (max-width: 768px) {
  .floater-wrap { display: none; }
}
