/* ============================================================================
   МАТА Design System — единый источник правды (Этап 0).
   Светлая премиальная спортивная база: молочный/белый/графит + холодный голубой.
   Меняешь токен здесь — меняется весь сайт. Не хардкодить цвета/тени в секциях.
   ========================================================================== */
:root {
  color-scheme: light;

  /* — Цвет: поверхности — */
  --bg: #f4f1ea;          /* общий фон (молочный) */
  --paper: #fffdf8;       /* тёплая бумага для карточек-сцен */
  --panel: #ffffff;       /* чистая панель (товары) */
  --soft: #e7eef0;        /* холодная подложка */
  --graphite: #20252b;    /* тёмный графит (контраст-блоки, кнопки) */

  /* — Цвет: текст — */
  --ink: #111317;         /* основной текст */
  --muted: #6f7278;       /* вторичный текст */
  --line: rgba(17, 19, 23, 0.12); /* тонкие границы */

  /* — Цвет: акцент — */
  --accent: #57bcd8;      /* технический голубой (главный сигнал) */
  --accent-ink: #167a95;  /* затемнённый голубой для текста по светлому */
  --accent-2: #dff45f;    /* лайм — спортивный сигнал, дозированно */
  --on-dark: #ffffff;     /* текст/иконки на графите */

  /* — Типографика — */
  --font-text: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", "Inter", sans-serif;
  /* Флюидная шкала (clamp): подзаголовок → дисплейный заголовок */
  --fs-eyebrow: 12px;
  --fs-body: clamp(16px, 1.1vw, 18px);
  --fs-lead: clamp(18px, 2vw, 25px);
  --fs-h3: clamp(22px, 2.2vw, 30px);
  --fs-h2: clamp(42px, 6.4vw, 96px);
  --fs-hero: clamp(92px, 17vw, 232px);

  /* — Сетка / ритм — */
  --pad-x: clamp(18px, 5vw, 72px);   /* горизонтальные поля секции */
  --section-y: clamp(72px, 11vw, 150px); /* вертикальный ритм секций */
  --gap: clamp(16px, 1.4vw, 18px);

  /* — Скругления — */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* — Тени (мягкие, премиальные) — */
  --shadow-sm: 0 12px 34px rgba(32, 37, 43, 0.08);
  --shadow-md: 0 22px 60px rgba(32, 37, 43, 0.12);
  --shadow-lg: 0 28px 80px rgba(32, 37, 43, 0.16);

  /* — Motion: easing + длительности (одна «подпись» движения сайта) — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-staw: cubic-bezier(0.33, 1, 0.34, 1); /* фирменное замедление */
  --dur-1: 260ms;
  --dur-2: 600ms;
  --dur-3: 1100ms;
}

* {
  box-sizing: border-box;
}

/* Атрибут hidden должен скрывать всегда (иначе display:grid/flex его перебивает). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* clip (а не hidden) — режет горизонтальное переполнение в корне, не создавая
     scroll-контейнер и не ломая position: fixed / Lenis. */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(87, 188, 216, 0.22), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(223, 244, 95, 0.18), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #f4f1ea 46%, #eaf1f2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.68);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px);
  transition:
    background 600ms var(--ease-smooth),
    border-color 600ms var(--ease-smooth);
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.92);
  border-color: var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(17, 19, 23, 0.7);
  font-size: 13px;
  font-weight: 720;
}

.main-nav a:hover {
  color: var(--ink);
}

.cart-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cart-ico {
  display: block;
  flex: 0 0 auto;
}

.cart-count {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 12px;
}

/* — Правая группа шапки (виджет аккаунта + корзина + бургер) — */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* — Бургер (только мобайл) — */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 46;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 300ms var(--ease-out),
    opacity 200ms ease,
    top 300ms var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* — Мобильное меню (выезжающая панель) — */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 86px clamp(20px, 6vw, 44px) 30px;
  background: rgba(255, 253, 248, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-105%);
  transition: transform 520ms var(--ease-smooth);
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav a {
  padding: 15px 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-login {
  margin-top: 18px;
  padding: 15px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(17, 19, 23, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 400ms ease,
    visibility 400ms ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.scene {
  position: relative;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(96px, 14vh, 150px) var(--pad-x) clamp(46px, 8vh, 84px);
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed герой. Без фото стартует чистым: тёмный графит (штатная поверхность
   бренда) — белый текст героя читается. Фон задаётся через «Фон» (inline
   background-image / .staw-bg-layer), «Удалить фон» → снова чистый графит. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--graphite);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform-origin: 50% 38%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Затемнение только снизу и слева — под читаемость текста. Верх кадра светлый. */
  background:
    linear-gradient(180deg, rgba(17, 19, 23, 0) 30%, rgba(17, 19, 23, 0.18) 60%, rgba(17, 19, 23, 0.64) 100%),
    linear-gradient(90deg, rgba(17, 19, 23, 0.45) 0%, rgba(17, 19, 23, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  color: #fff;
  text-shadow: 0 2px 26px rgba(17, 19, 23, 0.28);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0 0 16px;
  color: #167a95;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(66px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 1060px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}

.hero-copy {
  max-width: 540px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.45;
}

.brand-wordmark {
  display: flex;
  gap: clamp(3px, 1vw, 18px);
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-wordmark span {
  display: inline-block;
  will-change: transform, opacity;
}

/* — Hero CTA — */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-weight: 850;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform var(--dur-1) var(--ease-out),
    background var(--dur-1) ease,
    color var(--dur-1) ease,
    border-color var(--dur-1) ease,
    box-shadow var(--dur-1) ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--graphite);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

/* — Hero scroll-индикатор — */
.hero-scroll {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-scroll-line {
  position: relative;
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: #fff;
  animation: scrollSwipe 2.4s var(--ease-staw) infinite;
}

/* Hero motion: под активным JS hero-элементы стартуют скрытыми и анимируются
   через motion.js. Если motion не поднялся (motion-off) или reduced-motion —
   показываем мгновенно. Без JS (.js не выставлен) — тоже всё видно. */
html.js .hero [data-anim],
html.js .hero .brand-wordmark span {
  opacity: 0;
}

html.js .hero [data-anim="hero"] {
  transform: translateY(26px);
}

html.js .hero [data-anim="hero-media"] {
  transform: scale(1.06);
}

html.js.motion-off .hero [data-anim],
html.js.motion-off .hero .brand-wordmark span {
  opacity: 1;
  transform: none;
}

/* — Промо-баннеры (стрип под hero, данные из админки /banners) — */
.promo {
  padding: clamp(28px, 4vw, 52px) var(--pad-x);
}

.promo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.promo-card {
  --bg: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  padding: 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--graphite);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    var(--bg) var(--bg-pos, center) / var(--bg-size, cover) no-repeat,
    linear-gradient(155deg, #272c33, #16191e);
  transition: transform 700ms var(--ease-staw);
}

.promo-card:hover::before {
  transform: scale(1.05);
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 28%, rgba(17, 19, 23, 0.74));
}

.promo-card-body {
  position: relative;
  z-index: 2;
}

.promo-sub {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.promo-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
}

.promo-cta {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 850;
}

.brand-motion {
  min-height: 56vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 86px 0;
  background: var(--graphite);
  color: #fff;
}

.brand-motion-word {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: max-content;      /* ширина по контенту (две группы) — чтобы -50% = ровно одна группа */
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-display);
  font-size: clamp(120px, 24vw, 360px);
  font-weight: 800;
  line-height: 1;
  animation: brandRail 120s linear infinite; /* спокойный темп ≈ как в оригинале, но бесшовно */
  will-change: transform;
}
/* Одна группа МАТА; padding-right даёт равный интервал у стыка и в конце — для бесшовной петли. */
.brand-motion-set {
  display: flex;
  align-items: center;
  gap: 8vw;
  padding-right: 8vw;
  flex: none;
  white-space: nowrap;
}

.brand-motion-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  text-align: center;
}

.statement {
  min-height: 86vh;
  display: grid;
  place-items: center;
  padding: 96px clamp(18px, 5vw, 72px);
}

.statement-inner {
  width: min(1120px, 100%);
  text-align: center;
}

.statement p:last-child {
  width: min(820px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
}

.cinema,
.catalog,
.references {
  padding: 96px clamp(18px, 5vw, 72px);
}

.cinema-copy,
.section-heading {
  margin-bottom: 34px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.92fr 0.92fr;
  gap: 18px;
}

.cinema-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(32, 37, 43, 0.12);
}

.cinema-card:nth-child(2) {
  transform: translateY(48px);
}

.cinema-card:nth-child(3) {
  transform: translateY(96px);
}

.cinema-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 19, 23, 0.72));
}

.cinema-card div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 7vw, 96px);
  padding: 150px clamp(18px, 5vw, 72px);
  background: #ffffff;
}

.sticky-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.sticky-copy p:last-child {
  max-width: 660px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-panel {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(87, 188, 216, 0.2), transparent 45%),
    #f8f7f3;
}

.feature-panel p {
  max-width: 380px;
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.catalog-sort select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.catalog-sort select:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.catalog-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-search {
  width: min(220px, 46vw);
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  font: inherit;
  color: var(--ink);
}

.catalog-search:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 19, 23, 0.76);
  font-weight: 850;
  transition:
    background 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.filter:hover {
  transform: translateY(-1px);
}

.filter.is-active {
  background: var(--graphite);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition:
    opacity 320ms ease,
    transform 500ms var(--ease-out),
    border-color 320ms ease,
    box-shadow 320ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 188, 216, 0.5);
  box-shadow: var(--shadow-md);
}

.product-card.is-hidden {
  display: none;
}

/* — Медиа карточки + «быстрый просмотр» — */
.product-media {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f3f1ec;
}

.product-media img {
  aspect-ratio: 4 / 5;
  height: auto;
  transition: transform 900ms var(--ease-staw);
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-media:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 1.4vw, 22px);
}

.product-cat {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-info h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.15;
}

.product-colors {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.product-colors i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(17, 19, 23, 0.18);
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-sizes span {
  min-width: 30px;
  padding: 4px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--graphite);
}

.product-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 16px;
}

.product-price {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 900;
}

.product-stock {
  font-size: 12px;
  font-weight: 800;
  color: #2e8b6f;
}

.product-stock--soon {
  color: var(--muted);
}

.product-add {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 850;
  transition:
    transform var(--dur-1) var(--ease-out),
    background var(--dur-1) ease;
}

.product-add:hover {
  transform: translateY(-2px);
}

/* — Быстрый просмотр товара (модалка) — */
.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.pv-modal.is-open {
  display: flex;
}

.pv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 23, 0.45);
  backdrop-filter: blur(6px);
}

.pv-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.pv-modal.is-open .pv-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.pv-media {
  background: #f3f1ec;
}

.pv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.pv-info {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 34px);
  /* Пространство снизу, чтобы последние кнопки (отзыв/фото) не липли к краю. */
  padding-bottom: clamp(28px, 3.5vw, 44px);
  /* Правая колонка ограничена высотой карточки и скроллится сама — иначе длинный
     список отзывов + форма не помещаются и обрезаются рамкой. max-height напрямую
     (а не только min-height:0), т.к. высоту грид-строки задаёт контент этой колонки. */
  min-height: 0;
  max-height: 90vh;
  overflow-y: auto;
}

.pv-cat {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pv-info h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.pv-price {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
}

.pv-desc {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.pv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pv-label {
  min-width: 56px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-colors {
  display: flex;
  gap: 8px;
}

.pv-colors i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(17, 19, 23, 0.2);
}

.pv-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pv-sizes button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-weight: 800;
  color: var(--graphite);
  transition:
    border-color var(--dur-1) ease,
    background var(--dur-1) ease,
    color var(--dur-1) ease;
}

.pv-sizes button:hover {
  border-color: var(--accent);
}

.pv-sizes button.is-selected {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--on-dark);
}

.pv-stock {
  margin: 4px 0 18px;
  font-size: 13px;
  font-weight: 800;
  color: #2e8b6f;
}

.pv-add {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 850;
  font-size: 15px;
  transition: transform var(--dur-1) var(--ease-out);
}

.pv-add:hover {
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .pv-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  /* На мобильном скроллится карточка целиком (фото + инфо стопкой) —
     у .pv-info свой скролл отключаем, чтобы не было вложенного. */
  .pv-info {
    overflow: visible;
  }

  .pv-media img {
    aspect-ratio: 16 / 10;
  }
}

.references {
  background: #ffffff;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.reference-grid img {
  aspect-ratio: 1;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f3f1ec;
}

/* — Лояльность / экосистема — */
.loyalty {
  padding: var(--section-y) var(--pad-x);
}

.loyalty-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.loyalty-lead {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.loyalty-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0;
}

.loyalty-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.loyalty-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

.loyalty-step h3 {
  margin-bottom: 8px;
  font-size: clamp(17px, 1.4vw, 20px);
}

.loyalty-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.loyalty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-ghost.btn-ghost-dark {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: none;
}

.btn-ghost.btn-ghost-dark:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ── Карты лояльности МАТА — окно-портал (одобрено 2026-08-23) ───────────────
   Тёмное окно; колода уровней стоит ЗА окном (обрезается), передняя карта
   выходит ИЗ окна к зрителю. Материалы 1:1 с дизайн-проектом карт v5.
   Все классы префикс .ml- (изоляция от глобальных .hero/.card сайта). */
.ml-stage { position: relative; height: clamp(486px, 40vw, 580px); margin-top: 40px;
  perspective: 1300px; isolation: isolate; --ml-lime: #EEEA83; }

.ml-window { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); overflow: hidden;
  perspective: 1050px;
  background: radial-gradient(120% 90% at 32% 0%, #2b323a 0%, #20252b 42%, #14171c 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.06); }
.ml-window::before { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 34% at 48% 30%, rgba(223,244,95,.10), transparent 70%),
    radial-gradient(46% 40% at 62% 34%, rgba(87,188,216,.12), transparent 72%);
  mix-blend-mode: screen; animation: mlSpot 16s ease-in-out infinite; }
@keyframes mlSpot { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,4%) scale(1.1)} }
.ml-window::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 42%, transparent 54%, rgba(0,0,0,.5) 100%); }

.ml-deck { position: absolute; inset: 0; z-index: 3; transform-style: preserve-3d; }
.ml-cap { position: absolute; left: 0; right: 0; top: 20px; z-index: 8; text-align: center; pointer-events: none; }
.ml-cap-t { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .4px; color: #EEF1F5; }
.ml-cap-t b { color: var(--ml-lime); }
.ml-cap-s { font-size: 12.5px; color: #AEB6C0; margin-top: 4px; letter-spacing: .2px; }
.ml-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 8; display: flex; gap: 14px; justify-content: center; }
.ml-dots button { width: 9px; height: 9px; border-radius: 99px; padding: 0; cursor: pointer; background: transparent;
  border: 1.5px solid rgba(255,255,255,.55); transition: transform .3s var(--ease-out), background .3s, border-color .3s; }
.ml-dots button.on { background: var(--ml-lime); border-color: var(--ml-lime); transform: scale(1.5); }

.ml-card { position: absolute; top: 50%; left: 50%; width: clamp(280px, 80%, 360px); aspect-ratio: 1.586;
  transform-style: preserve-3d; cursor: pointer;
  transition: transform var(--dur-3) var(--ease-staw), opacity var(--dur-3) var(--ease-staw), filter var(--dur-3) var(--ease-staw); }
.ml-card { transform: translate(-24%,-48%) translateZ(-280px) scale(.7); opacity: 0; }
.ml-card.pos-0 { opacity: 0; }
.ml-card.pos-1 { transform: translate(-40%,-55%) translateZ(-15px)  rotateY(-8deg) scale(.9);  opacity: 1;   z-index: 3; filter: brightness(.92); }
.ml-card.pos-2 { transform: translate(-24%,-47%) translateZ(-100px) rotateY(-11deg) scale(.84); opacity: .96; z-index: 2; filter: brightness(.79) blur(.4px); }
.ml-card.pos-3 { transform: translate(-9%,-39%)  translateZ(-185px) rotateY(-14deg) scale(.79); opacity: .92; z-index: 1; filter: brightness(.68) blur(.8px); }

.ml-hero { position: absolute; top: 50%; left: 50%; width: clamp(280px, 80%, 360px); aspect-ratio: 1.586; z-index: 5;
  transform: translate(-60%,-50%) translateZ(160px) rotateY(-8deg) rotateX(2deg) scale(1);
  border-radius: 18px; box-shadow: 0 60px 92px -22px rgba(0,0,0,.55); cursor: pointer; transform-style: preserve-3d; }
.ml-hero.pop { animation: mlHeroPop .62s var(--ease-staw); }
@keyframes mlHeroPop { 0%{transform:translate(-50%,-50%) translateZ(20px) rotateY(-8deg) rotateX(2deg) scale(.86);opacity:.3}
  100%{transform:translate(-60%,-50%) translateZ(160px) rotateY(-8deg) rotateX(2deg) scale(1);opacity:1} }

.ml-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s ease-out; }
.ml-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.34,1.4,.5,1); }
.ml-hero.flipped .ml-flip { transform: rotateY(180deg); }
.ml-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; padding: 18px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.ml-back { transform: rotateY(180deg); padding: 0; }
.ml-face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg,transparent 34%,var(--ml-sheen,rgba(255,255,255,.14)) 48%,transparent 60%); transform: translateX(-140%); }

.ml-wm { height: 15px; width: auto; display: block; position: relative; z-index: 2; }
.ml-wm .m { fill: var(--ml-cink); } .ml-wm .t { fill: var(--ml-t, var(--ml-cink)); }
.ml-sign { position: absolute; pointer-events: none; z-index: 1; }
.ml-rowTop { display: flex; align-items: center; position: relative; z-index: 2; }
.ml-lvl { margin-left: auto; font-size: 9px; letter-spacing: 2.2px; font-weight: 700; padding: 5px 11px; border-radius: 99px; color: var(--ml-cink); border: 1px solid var(--ml-pill, currentColor); }
.ml-pts { margin: auto 0; display: flex; align-items: flex-end; gap: 8px; color: var(--ml-cink); position: relative; z-index: 2; }
.ml-pts .ml-n { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ml-pts .ml-l { font-size: 12px; opacity: .6; padding-bottom: 3px; }
.ml-rowBot { display: flex; align-items: flex-end; color: var(--ml-cink); position: relative; z-index: 2; }
.ml-hname { font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .72; text-transform: uppercase; }
.ml-uni { margin-left: auto; font-size: 7.5px; letter-spacing: 1.8px; opacity: .5; }
.ml-stripe { height: 26%; margin-top: 16px; }
.ml-backBody { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 18px; color: var(--ml-cink); }
.ml-bcap { font-size: 9px; letter-spacing: 2px; font-weight: 700; color: var(--ml-t, var(--ml-cink)); }
.ml-bd { font-size: 10px; opacity: .6; line-height: 1.5; margin-top: 5px; }
.ml-qr { width: 84px; height: 84px; background: #fff; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ml-qr svg { width: 70px; height: 70px; }

/* Материалы v5 */
.ml-basic { --ml-cink:#F2F4F6; --ml-t:var(--ml-lime); --ml-sheen:rgba(255,255,255,.10); }
.ml-basic .ml-face { background: radial-gradient(140% 100% at 22% 0%, rgba(255,255,255,.07), transparent 52%),
  linear-gradient(135deg,#272D34 0%,#1B2026 48%,#12161B 100%); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.ml-basic .ml-lvl { color: var(--ml-lime); --ml-pill: rgba(238,234,131,.7); }
.ml-basic .ml-stripe { background: #101317; }
.ml-basic .ml-wm .t { animation: mlEmber 4.6s ease-in-out infinite; }
@keyframes mlEmber { 0%,62%,100%{fill:#EEEA83;filter:none} 76%,86%{fill:#FBF7AE;filter:drop-shadow(0 0 6px rgba(238,234,131,.85))} }

.ml-silver { --ml-cink:#2B323A; --ml-t:#2B323A; --ml-sheen:rgba(255,255,255,.4); }
.ml-silver .ml-face { background: radial-gradient(140% 100% at 22% 0%, rgba(255,255,255,.75), transparent 55%),
  linear-gradient(120deg,#E9EDF2 0%,#D4DAE1 18%,#C2C9D2 34%,#DDE2E9 50%,#AFB8C2 66%,#CBD2DA 82%,#B7BFC9 100%);
  border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -12px 26px rgba(120,132,146,.28); }
.ml-silver .ml-lvl { --ml-pill: rgba(78,90,104,.5); }
.ml-silver .ml-stripe { background: linear-gradient(180deg,#9AA4B0,#7E8894); }
.ml-silver .ml-sign { right:-6px; bottom:-10px; width:120px; fill:#B6BFC9; filter: drop-shadow(0 1px 0 rgba(255,255,255,.75)) drop-shadow(0 -1px 0 rgba(96,108,122,.5)); animation: mlBreath 7.3s ease-in-out infinite; }
@keyframes mlBreath { 0%,100%{opacity:.5} 45%,60%{opacity:1} }
.ml-silver .ml-front::after { animation: mlMoon 9.4s ease-in-out infinite; }
@keyframes mlMoon { 0%,64%{transform:translateX(-140%)} 92%,100%{transform:translateX(140%)} }

.ml-gold { --ml-cink:#42300C; --ml-t:#42300C; --ml-sheen:rgba(255,248,220,.5); }
.ml-gold .ml-face { background: radial-gradient(140% 100% at 22% 0%, rgba(255,246,214,.8), transparent 55%),
  linear-gradient(120deg,#F3DFA0 0%,#E5C06E 18%,#D3A94F 34%,#EDD494 50%,#C1943A 66%,#E2C177 82%,#CBA14A 100%);
  border: 1px solid rgba(255,243,205,.75); box-shadow: inset 0 1px 1px rgba(255,249,225,.9), inset 0 0 0 1px rgba(146,110,36,.28), inset 0 -14px 30px rgba(140,104,32,.35);
  background-size: 230% 230%; animation: mlGoldFlow 12s ease-in-out infinite alternate; }
@keyframes mlGoldFlow { 0%{background-position:0% 0%} 100%{background-position:100% 100%} }
.ml-gold .ml-lvl { --ml-pill: rgba(110,82,22,.55); }
.ml-gold .ml-stripe { background: linear-gradient(180deg,#BE9433,#9C7722); }
.ml-gold .ml-sign { right:-28px; top:50%; transform:translateY(-50%); width:220px; fill:#C79B3F; filter: drop-shadow(0 1px 0 rgba(255,244,205,.8)) drop-shadow(0 -1px 0 rgba(122,90,24,.55)); animation: mlBreath 8.1s ease-in-out infinite; }
.ml-gold .ml-front::after { animation: mlWarm 7.6s ease-in-out infinite; }
@keyframes mlWarm { 0%,58%{transform:translateX(-140%)} 86%,100%{transform:translateX(140%)} }

.ml-platinum { --ml-cink:#E7ECF3; --ml-t:#E7ECF3; --ml-sheen:rgba(214,228,244,.22); }
.ml-platinum .ml-aur { position:absolute; inset:-30%; z-index:0; pointer-events:none; filter:blur(34px); opacity:.55; mix-blend-mode:screen; }
.ml-platinum .ml-aur i { position:absolute; border-radius:50%; }
.ml-platinum .ml-aur i:nth-child(1){ width:55%;height:60%;left:6%;top:12%; background:radial-gradient(circle at 50% 50%, rgba(96,140,190,.55), transparent 65%); animation:mlAur1 13s ease-in-out infinite; }
.ml-platinum .ml-aur i:nth-child(2){ width:50%;height:55%;right:2%;bottom:6%; background:radial-gradient(circle at 50% 50%, rgba(150,120,205,.4), transparent 65%); animation:mlAur2 17s ease-in-out infinite; }
.ml-platinum .ml-aur i:nth-child(3){ width:40%;height:45%;left:34%;top:30%; background:radial-gradient(circle at 50% 50%, rgba(120,190,200,.35), transparent 65%); animation:mlAur1 21s ease-in-out infinite reverse; }
@keyframes mlAur1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(16%,10%) scale(1.25)} }
@keyframes mlAur2 { 0%,100%{transform:translate(0,0) scale(1.15)} 50%{transform:translate(-14%,-12%) scale(.9)} }
.ml-platinum .ml-signGlow { position:absolute; right:-46px; top:50%; transform:translateY(-50%); width:300px; z-index:1; pointer-events:none; }
.ml-platinum .ml-signGlow path { fill:url(#mlPlatMetal); opacity:0; animation:mlRay 5.2s ease-in-out infinite; filter:drop-shadow(0 0 6px rgba(190,214,240,.9)); }
.ml-platinum .ml-signGlow path:nth-child(1){animation-delay:0s} .ml-platinum .ml-signGlow path:nth-child(2){animation-delay:.35s} .ml-platinum .ml-signGlow path:nth-child(3){animation-delay:.7s}
@keyframes mlRay { 0%,55%,100%{opacity:0} 8%,30%{opacity:.75} 42%{opacity:0} }
.ml-platinum .ml-edge { position:absolute; inset:0; border-radius:18px; z-index:3; pointer-events:none; padding:1.6px;
  background: conic-gradient(from var(--ml-ea,0deg), transparent 0 335deg, rgba(232,242,252,.95) 351deg, rgba(150,172,196,.25) 359deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mlEdge 5.2s linear infinite; }
@property --ml-ea { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes mlEdge { to { --ml-ea: 360deg; } }
.ml-platinum .ml-face { background: radial-gradient(150% 110% at 20% -5%, rgba(120,138,158,.32), transparent 55%),
  linear-gradient(120deg,#15181D 0%,#0B0D11 30%,#1B2027 52%,#07090C 74%,#141820 100%); border: 1px solid rgba(202,214,228,.45);
  box-shadow: inset 0 0 0 1px rgba(10,12,16,.9), inset 0 0 0 2.5px rgba(186,200,216,.22), inset 0 1px 1px rgba(214,228,244,.28), inset 0 -14px 32px rgba(0,0,0,.7); }
.ml-platinum .ml-lvl { color:#10141A; border:0; background:linear-gradient(180deg,#F4F8FC,#B9C6D4); box-shadow:0 1px 3px rgba(0,0,0,.6); }
.ml-platinum .ml-stripe { background: linear-gradient(180deg,#0A0C10,#04060A); }
.ml-platinum .ml-wm .m, .ml-platinum .ml-wm .t { fill:url(#mlPlatMetal); }
.ml-platinum .ml-wm { height:17px; }
.ml-platinum .ml-sign { right:-46px; top:50%; transform:translateY(-50%); width:300px; fill:rgba(228,238,250,.05); filter: drop-shadow(0 1px 0 rgba(214,228,244,.14)) drop-shadow(0 -1px 0 rgba(0,0,0,.8)); }
.ml-platinum .ml-front::after { animation: mlPlatLoop 6.5s ease-in-out infinite; }
@keyframes mlPlatLoop { 0%,58%{transform:translateX(-140%)} 88%,100%{transform:translateX(140%)} }
.ml-platinum .ml-bcap { color:#C6D2E0; }

@media (max-width: 900px) {
  .ml-stage { max-width: 460px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-card, .ml-flip, .ml-hero { transition-duration: .01ms; } .ml-hero.pop { animation: none; }
  .ml-window::before, .ml-platinum .ml-front::after, .ml-basic .ml-wm .t, .ml-silver .ml-sign, .ml-silver .ml-front::after,
  .ml-gold .ml-face, .ml-gold .ml-sign, .ml-gold .ml-front::after, .ml-platinum .ml-aur i, .ml-platinum .ml-signGlow path, .ml-platinum .ml-edge { animation: none; }
}

/* — Секция «О бренде»: RUN / TRAIL / RACE / EVERYDAY — */
.brand-modes {
  padding: var(--section-y) var(--pad-x);
}

.brand-modes .section-heading h2 {
  font-size: clamp(28px, 5vw, 58px);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(87, 188, 216, 0.12), transparent 52%),
    var(--panel);
  transition:
    transform 500ms var(--ease-out),
    border-color var(--dur-1) ease,
    box-shadow var(--dur-1) ease;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 188, 216, 0.5);
  box-shadow: var(--shadow-md);
}

.mode-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.02em;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cart-panel {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 253, 248, 0.96);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 700ms var(--ease-smooth);
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-header h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.1;
}

.cart-header button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.cart-footer span {
  color: var(--muted);
  font-size: 14px;
}

.cart-footer strong {
  font-size: clamp(18px, 1.8vw, 22px);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 22px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-main {
  flex: 1;
  min-width: 0;
}

.cart-item-main p {
  margin: 0 0 8px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-cart {
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.cart-qty button:hover {
  background: rgba(17, 19, 23, 0.06);
}

.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.cart-item-side span {
  font-weight: 800;
  white-space: nowrap;
}

.cart-remove {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.cart-remove:hover {
  color: var(--ink);
}

.cart-checkout {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 850;
  font-size: 15px;
  transition:
    transform var(--dur-1) var(--ease-out),
    opacity var(--dur-1) ease;
}

.cart-checkout:hover {
  transform: translateY(-2px);
}

.cart-checkout:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* — Оформление заказа (модалка) — */
.co-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.co-modal.is-open {
  display: flex;
}

.co-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 23, 0.5);
  backdrop-filter: blur(6px);
}

.co-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(22px, 3vw, 40px);
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.co-modal.is-open .co-card {
  opacity: 1;
  transform: none;
}

.co-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.co-view h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.co-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.co-form {
  display: grid;
  gap: 18px;
}

.co-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.co-group legend {
  margin-bottom: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.co-group input[type="text"],
.co-group input[type="tel"],
.co-group input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font: inherit;
  color: var(--ink);
}

.co-group input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.co-radio,
.co-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.co-points-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.co-err {
  min-height: 18px;
  margin: 0;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}

.co-summary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.co-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}

.co-row-total {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.co-row-total strong {
  font-size: 22px;
}

.co-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 850;
  font-size: 15px;
  transition: transform var(--dur-1) var(--ease-out);
}

.co-submit:hover {
  transform: translateY(-2px);
}

.co-success {
  padding: 20px 0;
  text-align: center;
}

/* Реквизиты продавца в подвале: обязательная, но не главная информация —
   даём мелко и приглушённо, отдельной строкой над копирайтом. */
.footer-req {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-req p {
  margin: 0;
}

.footer-req a {
  color: inherit;
  margin-right: 14px;
}

.footer-req a:hover {
  opacity: 0.8;
}

/* Оплата по СБП: тот же язык, что у экрана «заказ оформлен», но акцент
   не праздничный — покупатель ещё в процессе. */
.co-pay-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
}

.co-pay-status {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.co-link {
  margin-top: 6px;
  border: 0;
  background: none;
  padding: 8px 12px;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.co-link:hover {
  opacity: 0.75;
}

.co-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
}

/* — Профиль аккаунта — */
.pr-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.pr-modal.is-open {
  display: flex;
}

.pr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 23, 0.5);
  backdrop-filter: blur(6px);
}

.pr-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.pr-modal.is-open .pr-card {
  opacity: 1;
  transform: none;
}

.pr-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
}

.pr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}

.pr-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.pr-id {
  flex: 1;
  min-width: 0;
}

.pr-id h2 {
  margin: 0;
  font-size: 22px;
}

.pr-id p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pr-gear {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
}

.pr-points {
  display: block;
  width: 100%;
  margin: 20px 0;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #272c33, #16191e);
  color: var(--on-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out);
}

.pr-points:hover {
  transform: translateY(-2px);
}

.pr-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pr-points-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pr-points-level {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.pr-points-progress {
  height: 6px;
  margin: 14px 0 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.pr-points-progress span {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 600ms var(--ease-staw);
}

.pr-points-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* — Экран уровней в профиле — */
.pr-levels-title {
  margin: 6px 0 4px;
  font-size: 20px;
}

.pr-levels-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.pr-level {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.pr-level-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.pr-level-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.pr-level-range {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.pr-level p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pr-level.is-current {
  border-color: var(--graphite);
  background: linear-gradient(155deg, #272c33, #16191e);
  color: var(--on-dark);
}

.pr-level.is-current .pr-level-name::after {
  content: " · ваш уровень";
  color: var(--accent-2);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 800;
}

.pr-level.is-current .pr-level-range,
.pr-level.is-current p {
  color: rgba(255, 255, 255, 0.72);
}

.pr-points-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.pr-points-cur {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
}

.pr-points-link {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pr-menu {
  display: flex;
  flex-direction: column;
}

.pr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.pr-item::after {
  content: "›";
  color: var(--muted);
  font-size: 18px;
}

.pr-item:hover {
  color: var(--accent-ink);
}

.pr-edit {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
}

.pr-edit input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font: inherit;
  color: var(--ink);
}

.pr-edit input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.pr-edit-actions {
  display: flex;
  gap: 10px;
}

.pr-edit-actions .btn {
  flex: 1;
  min-height: 48px;
}

.pr-logout {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.pr-logout:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* — Заказы в профиле (вся экосистема: сайт + приложения) — */
.pr-order {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.pr-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pr-order-id {
  font-weight: 800;
  font-size: 14px;
}

.pr-order-status {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  background: rgba(17, 19, 23, 0.06);
  color: var(--muted);
}

.pr-order-status.is-new {
  background: rgba(87, 188, 216, 0.16);
  color: var(--accent-ink);
}

.pr-order-status.is-pack {
  background: rgba(223, 244, 95, 0.32);
  color: #5e6b16;
}

.pr-order-status.is-ship {
  background: rgba(87, 188, 216, 0.24);
  color: var(--accent-ink);
}

.pr-order-status.is-done {
  background: rgba(46, 139, 111, 0.14);
  color: #2e8b6f;
}

.pr-order-items {
  margin: 0 0 10px;
  font-size: 14px;
}

.pr-order-bot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pr-order-total {
  font-weight: 800;
  color: var(--ink);
}

/* — Адреса в редактировании профиля (централизованные) — */
.pr-addr {
  margin-top: 2px;
}

.pr-addr-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pr-addr-title span {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-ink);
}

.pr-addr-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.pr-addr-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.pr-addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 14px;
}

.pr-addr-del {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pr-addr-del:hover {
  color: #c0392b;
}

.pr-addr-add {
  display: grid;
  gap: 8px;
}

.pr-addr-add input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font: inherit;
}

.pr-addr-add input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* Дом · корпус · квартира — в одну строку (структурный адрес). */
.pr-addr-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.pr-addr-add-btn {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--graphite);
  color: var(--on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pr-addr-add-btn:hover {
  filter: brightness(1.12);
}

/* — Модалка юр-документа (/legal/documents) — */
.lg-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.lg-modal.is-open {
  display: flex;
}

.lg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 23, 0.5);
  backdrop-filter: blur(6px);
}

.lg-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  /* Скролл рабочий, но без видимого «ползунка» (просьба владельца — убрать боковой
     ползунок в документах). Контент прокручивается колесом/тачем/клавишами. */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* старый Edge/IE */
  /* На телефоне скролл документа НЕ должен «прочихиваться» на фон-страницу. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.lg-card::-webkit-scrollbar {
  display: none;                  /* WebKit/Blink */
}

.lg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
}

.lg-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lg-card h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.lg-body {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.6;
}

.cart-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  background: rgba(17, 19, 23, 0.42);
}

.overlay.is-open {
  display: block;
}

.site-footer {
  padding: clamp(54px, 7vw, 88px) var(--pad-x) 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand p {
  max-width: 320px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.footer-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-apps span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-apps a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 750;
  transition: border-color var(--dur-1) ease, color var(--dur-1) ease;
}

.footer-apps a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.footer-col h4,
.footer-sub h4 {
  margin: 0 0 16px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--ink);
  font-size: 15px;
  transition: color var(--dur-1) ease;
}

.footer-col a:hover {
  color: var(--accent-ink);
}

.footer-sub p {
  max-width: 280px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-form {
  display: flex;
  gap: 8px;
  max-width: 320px;
}

.footer-form input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  font: inherit;
  color: var(--ink);
}

.footer-form input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.footer-form button {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--on-dark);
  font-size: 18px;
  transition: transform var(--dur-1) var(--ease-out);
}

.footer-form button:hover {
  transform: translateX(2px);
}

.footer-sub-note {
  min-height: 18px;
  margin: 8px 0 14px !important;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: border-color var(--dur-1) ease, color var(--dur-1) ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--muted);
  transition: color var(--dur-1) ease;
}

.footer-legal a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 1100ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 1100ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes scrollSwipe {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(250%);
  }
}

@keyframes brandRail {
  from {
    transform: translateX(0);
  }
  to {
    /* -50% = ровно одна из двух одинаковых групп → бесшовная петля без скачка */
    transform: translateX(-50%);
  }
}

/* — Lenis (плавный скролл): рекомендованные стили + отключение нативного smooth — */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Hero виден сразу, без motion-входа */
  html.js .hero [data-anim],
  html.js .hero .brand-wordmark span {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .cinema-grid,
  .product-story,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-sub {
    grid-column: 1 / -1;
  }

  .loyalty-inner {
    grid-template-columns: 1fr;
  }

  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cinema-card,
  .cinema-card:nth-child(2),
  .cinema-card:nth-child(3) {
    min-height: 430px;
    transform: none;
  }

  .sticky-copy {
    position: static;
  }

  .reference-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* На мобиле виджет аккаунта уезжает в меню — шапка остаётся компактной.
     !important, т.к. ecosystem.js инжектит свои стили позже в <head>. */
  .eco-account {
    display: none !important;
  }

  .header-actions {
    gap: 10px;
  }

  /* Корзина на мобиле — иконка + счётчик, без текста (освобождаем место бургеру). */
  .cart-label {
    display: none;
  }

  .cart-button {
    padding: 0 11px;
  }

  .hero {
    padding: 100px 18px 44px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    padding: 0 18px;
    min-height: 50px;
    font-size: 14px;
  }

  .statement,
  .cinema,
  .product-story,
  .catalog,
  .references {
    padding-left: 18px;
    padding-right: 18px;
  }

  .statement {
    min-height: 78vh;
  }

  .product-story {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .reference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-sub {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .loyalty-steps {
    grid-template-columns: 1fr;
  }
}

/* ── Блокировка скролла фона под открытым оверлеем ──────────────────────────
   Пока поверх стоит модалка/панель — страница под ней не двигается, скроллится
   только верхний слой (квик-вью, профиль, корзина, чек-аут, меню, вход). */
html:has(.pv-modal.is-open),
html:has(.pr-modal.is-open),
html:has(.co-modal.is-open),
html:has(.cart-panel.is-open),
html:has(.mobile-nav.is-open),
html:has(.lg-modal.is-open),
html:has(.eco-modal.is-open) {
  overflow: hidden;
}

/* ── Единая карта лояльности МАТА в профиле (дизайн-проект v5, D-34) ──────────
   Материалы уровней + «живые» анимации 1:1 с приложениями:
   базовый — «уголёк Т», серебро — «лунный блик», золото — «расплав»,
   платина — аврора + «сердцебиение» знака + комета по кромке + tilt. */
@property --lcea { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.lc-slot { perspective: 1200px; margin-bottom: 10px; }
.lc-note { margin: 0 0 18px; font-size: 12px; color: var(--muted); text-align: center; }
.lc { width: 100%; max-width: 400px; margin: 0 auto; }
.lc-tilt { transform-style: preserve-3d; transition: transform 0.35s ease-out; }
.lc-card {
  position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 18px;
  overflow: hidden; padding: 20px; box-sizing: border-box;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.lc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, var(--lcsheen, rgba(255, 255, 255, 0.14)) 48%, transparent 60%);
  transform: translateX(-140%);
}
.lc-wm { height: 15px; width: auto; display: block; position: relative; z-index: 2; }
.lc-wm .m { fill: var(--lcink); }
.lc-wm .t { fill: var(--lct, var(--lcink)); }
.lc-sign { position: absolute; pointer-events: none; z-index: 1; }
.lc-rowTop { display: flex; align-items: center; position: relative; z-index: 2; }
.lc-lvl {
  margin-left: auto; font-size: 9px; letter-spacing: 2.2px; font-weight: 700;
  padding: 5px 12px; border-radius: 99px; color: var(--lcink);
  border: 1px solid var(--lcpill, currentColor);
}
.lc-pts { margin: auto 0; display: flex; align-items: flex-end; gap: 8px; color: var(--lcink); position: relative; z-index: 2; }
.lc-pts .n { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.lc-pts .l { font-size: 12px; opacity: 0.6; padding-bottom: 3px; }
.lc-rowBot { display: flex; align-items: flex-end; color: var(--lcink); position: relative; z-index: 2; }
.lc-holder .cap { font-size: 7.5px; letter-spacing: 1.8px; opacity: 0.5; }
.lc-holder .nm { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; margin-top: 3px; display: block; }
.lc-uni { margin-left: auto; font-size: 7.5px; letter-spacing: 1.8px; opacity: 0.5; }

/* базовый графит — жизнь: «уголёк» Т */
.lc-basic { --lcink: #F2F4F6; --lct: #EEEA83; --lcsheen: rgba(255, 255, 255, 0.10); }
.lc-basic .lc-card {
  background:
    radial-gradient(140% 100% at 22% 0%, rgba(255, 255, 255, 0.07), transparent 52%),
    linear-gradient(135deg, #272D34 0%, #1B2026 48%, #12161B 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.lc-basic .lc-lvl { color: #EEEA83; --lcpill: rgba(238, 234, 131, 0.7); }
.lc-basic .lc-wm .t { animation: lcEmber 4.6s ease-in-out infinite; }
@keyframes lcEmber {
  0%, 62%, 100% { fill: #EEEA83; filter: none; }
  76%, 86% { fill: #FBF7AE; filter: drop-shadow(0 0 6px rgba(238, 234, 131, 0.85)); }
}

/* серебро — жизнь: «лунный блик» + знак дышит */
.lc-silver { --lcink: #2B323A; --lct: #2B323A; --lcsheen: rgba(255, 255, 255, 0.4); }
.lc-silver .lc-card {
  background:
    radial-gradient(140% 100% at 22% 0%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(120deg, #E9EDF2 0%, #D4DAE1 18%, #C2C9D2 34%, #DDE2E9 50%, #AFB8C2 66%, #CBD2DA 82%, #B7BFC9 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -12px 26px rgba(120, 132, 146, 0.28), 0 14px 34px rgba(0, 0, 0, 0.25);
}
.lc-silver .lc-lvl { --lcpill: rgba(78, 90, 104, 0.5); }
.lc-silver .lc-sign {
  right: -6px; bottom: -10px; width: 35%;
  fill: #B6BFC9;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.75)) drop-shadow(0 -1px 0 rgba(96, 108, 122, 0.5));
  animation: lcBreath 7.3s ease-in-out infinite;
}
@keyframes lcBreath { 0%, 100% { opacity: 0.5; } 45%, 60% { opacity: 1; } }
.lc-silver .lc-card::after { animation: lcMoon 9.4s ease-in-out infinite; }
@keyframes lcMoon { 0%, 64% { transform: translateX(-140%); } 92%, 100% { transform: translateX(140%); } }

/* золото — жизнь: «расплав» (градиент течёт) + тёплая волна */
.lc-gold { --lcink: #42300C; --lct: #42300C; --lcsheen: rgba(255, 248, 220, 0.5); }
.lc-gold .lc-card {
  background:
    radial-gradient(140% 100% at 22% 0%, rgba(255, 246, 214, 0.8), transparent 55%),
    linear-gradient(120deg, #F3DFA0 0%, #E5C06E 18%, #D3A94F 34%, #EDD494 50%, #C1943A 66%, #E2C177 82%, #CBA14A 100%);
  background-size: 230% 230%;
  border: 1px solid rgba(255, 243, 205, 0.75);
  box-shadow: inset 0 1px 1px rgba(255, 249, 225, 0.9), inset 0 0 0 1px rgba(146, 110, 36, 0.28), inset 0 -14px 30px rgba(140, 104, 32, 0.35), 0 14px 34px rgba(0, 0, 0, 0.25);
  animation: lcGoldFlow 12s ease-in-out infinite alternate;
}
@keyframes lcGoldFlow { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.lc-gold .lc-lvl { --lcpill: rgba(110, 82, 22, 0.55); }
.lc-gold .lc-sign {
  right: -8%; top: 50%; transform: translateY(-50%); width: 64%;
  fill: #C79B3F;
  filter: drop-shadow(0 1px 0 rgba(255, 244, 205, 0.8)) drop-shadow(0 -1px 0 rgba(122, 90, 24, 0.55));
  animation: lcBreath 8.1s ease-in-out infinite;
}
.lc-gold .lc-card::after { animation: lcWarm 7.6s ease-in-out infinite; }
@keyframes lcWarm { 0%, 58% { transform: translateX(-140%); } 86%, 100% { transform: translateX(140%); } }

/* платина — чёрный титан, ЖИВАЯ: аврора + сердцебиение знака + комета + tilt */
.lc-platinum { --lcink: #E7ECF3; --lct: #E7ECF3; --lcsheen: rgba(214, 228, 244, 0.22); }
.lc-platinum .lc-card {
  background:
    radial-gradient(150% 110% at 20% -5%, rgba(120, 138, 158, 0.32), transparent 55%),
    linear-gradient(120deg, #15181D 0%, #0B0D11 30%, #1B2027 52%, #07090C 74%, #141820 100%);
  border: 1px solid rgba(202, 214, 228, 0.45);
  box-shadow: inset 0 0 0 1px rgba(10, 12, 16, 0.9), inset 0 0 0 2.5px rgba(186, 200, 216, 0.22), inset 0 1px 1px rgba(214, 228, 244, 0.28), inset 0 -14px 32px rgba(0, 0, 0, 0.7), 0 16px 38px rgba(0, 0, 0, 0.45);
}
.lc-platinum .lc-wm { height: 17px; }
.lc-platinum .lc-wm .m, .lc-platinum .lc-wm .t { fill: url(#lcPlatMetal); }
.lc-platinum .lc-lvl {
  color: #10141A; border: 0;
  background: linear-gradient(180deg, #F4F8FC, #B9C6D4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.lc-platinum .lc-sign {
  right: -12%; top: 50%; transform: translateY(-50%); width: 88%;
  fill: rgba(228, 238, 250, 0.05);
  filter: drop-shadow(0 1px 0 rgba(214, 228, 244, 0.14)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.8));
}
.lc-platinum .lc-aur {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  filter: blur(34px); opacity: 0.5; mix-blend-mode: screen;
}
.lc-platinum .lc-aur i { position: absolute; border-radius: 50%; }
.lc-platinum .lc-aur i:nth-child(1) {
  width: 55%; height: 60%; left: 6%; top: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(96, 140, 190, 0.55), transparent 65%);
  animation: lcAur1 13s ease-in-out infinite;
}
.lc-platinum .lc-aur i:nth-child(2) {
  width: 50%; height: 55%; right: 2%; bottom: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(150, 120, 205, 0.4), transparent 65%);
  animation: lcAur2 17s ease-in-out infinite;
}
.lc-platinum .lc-aur i:nth-child(3) {
  width: 40%; height: 45%; left: 34%; top: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(120, 190, 200, 0.35), transparent 65%);
  animation: lcAur1 21s ease-in-out infinite reverse;
}
@keyframes lcAur1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(16%, 10%) scale(1.25); } }
@keyframes lcAur2 { 0%, 100% { transform: translate(0, 0) scale(1.15); } 50% { transform: translate(-14%, -12%) scale(0.9); } }
.lc-platinum .lc-signGlow {
  position: absolute; right: -12%; top: 50%; transform: translateY(-50%);
  width: 88%; z-index: 1; pointer-events: none;
}
.lc-platinum .lc-signGlow path {
  fill: url(#lcPlatMetal); opacity: 0;
  animation: lcRay 5.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(190, 214, 240, 0.9));
}
.lc-platinum .lc-signGlow path:nth-child(1) { animation-delay: 0s; }
.lc-platinum .lc-signGlow path:nth-child(2) { animation-delay: 0.35s; }
.lc-platinum .lc-signGlow path:nth-child(3) { animation-delay: 0.7s; }
@keyframes lcRay { 0%, 55%, 100% { opacity: 0; } 8%, 30% { opacity: 0.75; } 42% { opacity: 0; } }
.lc-platinum .lc-edge {
  position: absolute; inset: 0; border-radius: 18px; z-index: 3;
  pointer-events: none; padding: 1.6px;
  background: conic-gradient(from var(--lcea), transparent 0 335deg, rgba(232, 242, 252, 0.95) 351deg, rgba(150, 172, 196, 0.25) 359deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: lcEdgeRun 5.2s linear infinite;
}
@keyframes lcEdgeRun { to { --lcea: 360deg; } }
.lc-platinum .lc-card::after { animation: lcPlat 6.5s ease-in-out infinite; }
@keyframes lcPlat { 0%, 58% { transform: translateX(-140%); } 88%, 100% { transform: translateX(140%); } }

@media (prefers-reduced-motion: reduce) {
  .lc-tilt { transition-duration: 0.01ms; }
  .lc-basic .lc-wm .t, .lc-silver .lc-sign, .lc-silver .lc-card::after,
  .lc-gold .lc-card, .lc-gold .lc-sign, .lc-gold .lc-card::after,
  .lc-platinum .lc-card::after, .lc-platinum .lc-aur i,
  .lc-platinum .lc-signGlow path, .lc-platinum .lc-edge { animation: none; }
}

