/* ==========================================================================
       1. СИСТЕМА ТОКЕНОВ И КАСТОМНАЯ ФИЗИКА (CUSTOM EASING SYSTEM)
       ========================================================================== */
    :root {
      /* Палитра Redbrick */
      --color-brick-red: #e82c2a;
      --color-press-black: #212529;
      --color-cream-white: #ffffff;
      --color-soft-grey: #f2f2f2;
      --color-carbon: #121212;

      /* Шрифтовой стек (Строго системный без внешних CDN) */
      --font-display: "Georgia", "Palatino", "Palatino Linotype", "Times New Roman", serif;
      --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

      /* Типографическая шкала */
      --text-caption: 10px;
      --leading-caption: 1.5;
      --tracking-caption: 0.06em;

      --text-body-sm: 15px;
      --leading-body-sm: 1.5;
      --tracking-body-sm: 0.013em;

      --text-body: 20px;
      --leading-body: 1.3;
      --tracking-body: 0.017em;

      --text-subheading: 30px;
      --leading-subheading: 1.2;
      --tracking-subheading: 0.03em;

      --text-heading-sm: 35px;
      --leading-heading-sm: 1.2;
      --tracking-heading-sm: 0.04em;

      --text-display: clamp(46px, 7.5vw, 110px);
      --leading-display: 0.99;
      --tracking-display: -0.5px;

      /* Отступы */
      --spacing-5: 5px;
      --spacing-8: 8px;
      --spacing-10: 10px;
      --spacing-12: 12px;
      --spacing-15: 15px;
      --spacing-20: 20px;
      --spacing-30: 30px;
      --spacing-50: 50px;

      --section-gap: 50px;
      --card-padding: 30px;

      /* Скругления (Redbrick Tokens) */
      --radius-links: 3.75px;
      --radius-cards: 25px;
      --radius-images: 25px;
      --radius-inputs: 50px;
      --radius-buttons: 50px;

      /* Motion tokens defined in css/animations.css */
    }

    /* Базовый сброс — ПОЛНЫЙ ОТКАЗ ОТ ТЕНЕЙ (box-shadow: none) */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      box-shadow: none !important;
    }

    html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      background-color: var(--color-cream-white);
    }

    html {
      scroll-behavior: smooth;
      color-scheme: light;
    }

    body {
      font-family: var(--font-body);
      color: var(--color-press-black);
      background-color: var(--color-cream-white);
      line-height: 1.5;
      font-size: var(--text-body-sm);
      letter-spacing: var(--tracking-body-sm);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    :focus-visible {
      outline: 2px solid var(--color-brick-red);
      outline-offset: 3px;
    }

    img, video {
      display: block;
      max-width: 100%;
    }

    button, input, select, textarea {
      font-family: inherit;
      color: inherit;
    }

    button {
      cursor: pointer;
      border: none;
      background: none;
    }

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

    .container {
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      padding: 0 30px;
    }

    /* ==========================================================================
       2. ТОП-БАР (ANNOUNCEMENT BAR)
       ========================================================================== */
    .announcement-bar {
      width: 100%;
      height: 30px;
      background-color: var(--color-brick-red);
      color: var(--color-cream-white);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      font-family: var(--font-mono);
      font-size: var(--text-caption);
      letter-spacing: var(--tracking-caption);
      text-transform: uppercase;
      z-index: 100;
      position: relative;
    }

    .announcement-tagline {
      margin: 0 auto;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .announcement-links {
      display: flex;
      align-items: center;
      gap: 20px;
      list-style: none;
    }

    .announcement-links a {
      color: var(--color-cream-white);
      transition: opacity var(--transition-hover);
    }

    .announcement-links a:hover {
      opacity: 0.75;
    }

    /* ==========================================================================
       3. ДВУХУРОВНЕВЫЙ HEADER (HEADER & SUB-NAV)
       ========================================================================== */
    .site-header {
      background-color: var(--color-cream-white);
      position: sticky;
      top: 0;
      z-index: 90;
      border-bottom: 1px solid var(--color-brick-red);
      transition: transform 0.3s var(--ease-smooth);
    }

    .header-primary-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      padding: 0 30px;
      max-width: 1360px;
      margin: 0 auto;
    }

    /* Логотип */
    .brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--color-brick-red);
      font-size: var(--text-body);
      font-weight: 400;
      letter-spacing: var(--tracking-body);
      text-transform: uppercase;
      transition: opacity var(--transition-hover);
    }

    .brand-logo:hover {
      opacity: 0.8;
    }

    .brand-brick-icon {
      width: 22px;
      height: 22px;
      fill: var(--color-brick-red);
      flex-shrink: 0;
      transition: transform 0.5s var(--ease-out-expo);
    }

    .brand-logo:hover .brand-brick-icon {
      transform: rotate(-10deg) scale(1.1);
    }

    /* Навигация 1-го уровня */
    .nav-primary-menu {
      display: flex;
      align-items: center;
      gap: 30px;
      list-style: none;
    }

    .nav-primary-link {
      color: var(--color-brick-red);
      font-size: var(--text-body-sm);
      letter-spacing: var(--tracking-body-sm);
      font-weight: 400;
      position: relative;
      transition: opacity var(--transition-hover);
    }

    .nav-primary-link:hover {
      opacity: 0.6;
    }

    /* Правая часть: корзина и мобильное меню */
    .header-right-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .cart-trigger-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--color-brick-red);
      border-radius: 50px;
      padding: 8px 18px;
      background: transparent;
      color: var(--color-brick-red);
      font-size: var(--text-body-sm);
      font-weight: 400;
      cursor: pointer;
      text-decoration: none;
      transition: opacity var(--transition-hover), transform var(--transition-hover);
      will-change: transform;
    }

    .cart-trigger-btn:hover {
      opacity: 0.75;
      transform: translateY(-1px);
    }

    .cart-count-badge {
      font-family: var(--font-mono);
      font-size: var(--text-caption);
      letter-spacing: var(--tracking-caption);
      font-weight: 600;
      display: inline-block;
      transition: transform 0.3s var(--ease-out-expo);
      will-change: transform;
    }

    .cart-count-badge.scale-pulse {
      transform: scale(1.35);
    }

    .burger-btn {
      display: none;
      width: 36px;
      height: 36px;
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-links);
      color: var(--color-brick-red);
      align-items: center;
      justify-content: center;
    }

    /* Навигация 2-го уровня (Secondary Category Sub-Nav) */
    .header-secondary-row {
      border-top: 1px solid var(--color-brick-red);
      padding: 10px 30px;
      max-width: 1360px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 30px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .header-secondary-row::-webkit-scrollbar {
      display: none;
    }

    .subnav-filter-group {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: nowrap;
    }

    .subnav-link {
      color: var(--color-brick-red);
      font-size: var(--text-body-sm);
      letter-spacing: var(--tracking-body-sm);
      white-space: nowrap;
      position: relative;
      cursor: pointer;
      transition: opacity var(--transition-hover);
    }

    .subnav-link:hover {
      opacity: 0.6;
    }

    .subnav-link.active-filter {
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    /* Мобильная выпадающая шторка навигации */
    .mobile-menu-drawer {
      display: none;
      flex-direction: column;
      gap: 12px;
      padding: 20px 24px;
      background-color: var(--color-cream-white);
      border-bottom: 1px solid var(--color-brick-red);
    }

    .mobile-menu-drawer.open {
      display: flex;
    }

    .mobile-menu-drawer a {
      color: var(--color-brick-red);
      font-size: 16px;
      padding: 6px 0;
      text-decoration: none;
    }

    .mobile-drawer-divider {
      height: 1px;
      background-color: var(--color-brick-red);
      opacity: 0.3;
      margin: 6px 0;
    }

    .mobile-drawer-section-title {
      font-family: var(--font-gtstandard-m);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-press-black);
      opacity: 0.6;
      margin-top: 4px;
    }

    .mobile-drawer-btn {
      display: inline-block;
      margin-top: 6px;
      padding: 10px 18px;
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-buttons);
      color: var(--color-brick-red);
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
    }

    /* ==========================================================================
       4. МАГНИТНЫЕ КНОПКИ И ПРУЖИНЯЩИЕ СТРЕЛКИ (MAGNETIC ACTIONS)
       ========================================================================== */
    .btn-outlined {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-links);
      padding: 10px 20px;
      background: transparent;
      color: var(--color-brick-red);
      font-size: var(--text-body-sm);
      letter-spacing: var(--tracking-body-sm);
      font-weight: 400;
      cursor: pointer;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s var(--ease-smooth), opacity var(--transition-hover), border-color var(--transition-hover);
      will-change: transform;
    }

    .btn-outlined:hover {
      opacity: 0.75;
    }

    .arrow-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--color-brick-red);
      font-size: var(--text-body-sm);
      letter-spacing: var(--tracking-body-sm);
      font-weight: 400;
      transition: opacity var(--transition-hover);
      cursor: pointer;
    }

    .arrow-link:hover {
      opacity: 0.65;
    }

    /* Пружинистый вылет стрелки на 6px */
    .arrow-char {
      display: inline-block;
      transition: transform 0.35s var(--ease-out-expo);
      will-change: transform;
    }

    .btn-outlined:hover .arrow-char,
    .arrow-link:hover .arrow-char {
      transform: translate3d(6px, 0, 0);
    }

    /* Журнальный разделитель с плавной прорисовкой линии (Hairline Draw) */
    .section-running-head {
      position: relative;
      margin-top: var(--section-gap);
      margin-bottom: 30px;
      padding-top: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .section-running-head::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: var(--color-brick-red);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 1s var(--ease-out-expo);
      will-change: transform;
    }

    .section-running-head.revealed::before {
      transform: scaleX(1);
    }

    .running-head-label {
      font-family: var(--font-mono);
      font-size: var(--text-caption);
      letter-spacing: var(--tracking-caption);
      text-transform: uppercase;
      color: var(--color-brick-red);
      font-weight: 400;
      opacity: 0;
      transform: translate3d(0, 8px, 0);
      transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
      transition-delay: 0.2s;
    }

    .section-running-head.revealed .running-head-label {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    /* ==========================================================================
       5. КАСКАДНЫЙ ТЕКСТ И LINE MASK REVEAL ДЛЯ ЗАГОЛОВКОВ
       ========================================================================== */
    .hero-section {
      padding: 50px 0;
      background-color: var(--color-cream-white);
      overflow: hidden;
    }

    .hero-split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--section-gap);
      align-items: center;
    }

    .hero-text-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    /* Line Mask Reveal: Заголовок выезжает из-под маски */
    .hero-display-title {
      font-family: var(--font-display);
      font-size: var(--text-display);
      line-height: var(--leading-display);
      letter-spacing: var(--tracking-display);
      font-weight: 300;
      color: var(--color-brick-red);
      margin-bottom: 24px;
    }

    .line-mask {
      display: block;
      overflow: hidden;
      padding-bottom: 4px;
    }

    .line-inner {
      display: block;
      transform: translate3d(0, 105%, 0) rotate(1.5deg);
      transition: transform 1.2s var(--ease-out-expo);
      will-change: transform;
      transform-origin: left top;
    }

    .line-inner.revealed {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }

    .hero-lead-paragraph {
      font-size: var(--text-body);
      line-height: var(--leading-body);
      letter-spacing: var(--tracking-body);
      color: var(--color-press-black);
      max-width: 480px;
      margin-bottom: 34px;
      opacity: 0;
      transform: translate3d(0, 20px, 0);
      transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
      transition-delay: 0.35s;
    }

    .hero-lead-paragraph.revealed {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    .hero-cta-wrap {
      opacity: 0;
      transform: translate3d(0, 15px, 0);
      transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
      transition-delay: 0.5s;
    }

    .hero-cta-wrap.revealed {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    /* ==========================================================================
       6. РАСКРЫТИЕ КАРТИНОК (CLIP-PATH CURTAIN REVEAL & PARALLAX)
       ========================================================================== */
    .reveal-media-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: var(--radius-images);
      overflow: hidden;
      background-color: var(--color-soft-grey);
      clip-path: inset(100% 0 0 0);
      transition: clip-path 1.1s var(--ease-out-expo);
      will-change: clip-path;
    }

    .reveal-media-wrapper.revealed {
      clip-path: inset(0 0 0 0);
    }

    .parallax-media-target {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.18) translate3d(0, 0, 0);
      transition: transform 1.4s var(--ease-out-expo);
      will-change: transform;
    }

    .reveal-media-wrapper.revealed .parallax-media-target {
      transform: scale(1) translate3d(0, var(--parallax-y, 0px), 0);
    }

    /* Программный пар */
    .steam-container {
      position: absolute;
      inset: 0;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    .steam-track {
      position: absolute;
      bottom: 28%;
      width: 70px;
      height: 180px;
      opacity: 0;
      filter: blur(3px);
      animation: steamAscent 4s infinite ease-out;
    }

    .st-1 { left: 45%; animation-delay: 0s; }
    .st-2 { left: 49%; animation-delay: 1.3s; }
    .st-3 { left: 53%; animation-delay: 2.6s; }

    /* @keyframes steamAscent вынесен в css/animations.css */
/* ==========================================================================
       7. КАСКАД КАРТОЧЕК В СЕТКЕ (STAGGERED GRID REVEAL & CARD HOVER)
       ========================================================================== */
    .catalog-section {
      padding-bottom: 50px;
    }

    .catalog-cards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      transition: min-height 0.3s ease;
    }

    .product-brick-card {
      background-color: var(--color-soft-grey);
      border-radius: var(--radius-cards);
      padding: var(--card-padding);
      display: flex;
      flex-direction: column;
      position: relative;
      opacity: 0;
      transform: translate3d(0, 35px, 0) scale(0.98);
      filter: blur(6px);
      transition: opacity 0.85s var(--ease-out-expo),
                  transform 0.85s var(--ease-out-expo),
                  filter 0.85s var(--ease-out-expo);
      transition-delay: calc(var(--index, 0) * 110ms);
      will-change: opacity, transform, filter;
    }

    .product-brick-card.revealed {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }

    .product-photo-holder {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 20px;
      background-color: #e8e8e8;
    }

    .product-photo-holder img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s var(--ease-out-expo);
      will-change: transform;
    }

    .product-brick-card:hover .product-photo-holder img {
      transform: scale(1.05);
    }

    .product-card-title {
      font-size: var(--text-body);
      line-height: var(--leading-body);
      letter-spacing: var(--tracking-body);
      color: var(--color-press-black);
      font-weight: 400;
      margin-bottom: 6px;
    }

    .product-card-desc {
      font-family: var(--font-mono);
      font-size: var(--text-caption);
      letter-spacing: var(--tracking-caption);
      text-transform: uppercase;
      color: var(--color-brick-red);
      margin-bottom: 20px;
      flex-grow: 1;
    }

    .product-card-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(232, 44, 42, 0.2);
      padding-top: 16px;
      margin-top: auto;
    }

    .product-price-label {
      font-size: var(--text-body);
      color: var(--color-press-black);
      font-weight: 500;
      white-space: nowrap;
    }

    .card-action-box {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    /* Селектор количества на карточке товара (Redbrick Pill Stepper) */
    .card-stepper {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--color-brick-red);
      border-radius: 50px;
      background-color: #ffffff;
      padding: 3px 6px;
      min-width: 104px;
      height: 38px;
      box-sizing: border-box;
      transition: background-color var(--transition-hover), border-color var(--transition-hover);
    }

    .card-stepper-btn {
      background: transparent;
      border: none;
      color: var(--color-brick-red);
      font-size: 18px;
      font-weight: 500;
      line-height: 1;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 50%;
      padding: 0;
      transition: background-color 0.18s ease, transform 0.15s ease;
      user-select: none;
    }

    .card-stepper-btn:hover {
      background-color: rgba(232, 44, 42, 0.08);
    }

    .card-stepper-btn:active {
      transform: scale(0.88);
    }

    .card-stepper-val {
      font-family: var(--font-surt);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: var(--color-press-black);
      padding: 0 6px;
      white-space: nowrap;
      user-select: none;
    }

    .card-add-btn {
      padding: 8px 16px;
      font-size: 13px;
      white-space: nowrap;
      height: 38px;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 50px;
    }

    /* Анимация исчезновения и появления при смене табов */
    .product-brick-card.fade-out {
      opacity: 0;
      transform: translate3d(0, 15px, 0);
      filter: blur(4px);
      transition-duration: 0.25s;
      transition-delay: 0s !important;
    }

    /* ==========================================================================
   КОНСТРУКТОР ЧАШКИ (REDBRICK EDITORIAL 50/50 SPLIT)
   ========================================================================== */
.builder-section {
  padding: 60px 0;
  background-color: var(--color-cream-white);
  border-top: 1px solid var(--color-brick-red);
}

.builder-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: auto;
}

.builder-options-pane {
  background-color: transparent;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.builder-headline {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-brick-red);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.builder-subheadline {
  font-size: 15px;
  color: var(--color-press-black);
  margin-bottom: 28px;
  line-height: 1.5;
}

.builder-group-block {
  margin-bottom: 24px;
}

.builder-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brick-red);
  margin-bottom: 10px;
}

.pills-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-radio-item {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-brick-red);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--color-brick-red);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
  user-select: none;
}

.pill-radio-item input {
  display: none;
}

.pill-radio-item.selected {
  background-color: var(--color-brick-red);
  color: var(--color-cream-white);
}

.builder-result-pane {
  background-color: var(--color-soft-grey);
  border-radius: 25px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}

.builder-result-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brick-red);
  margin-bottom: 12px;
  display: block;
}

.builder-price-wrap {
  margin-bottom: 20px;
}

.builder-price-display {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 300;
  color: var(--color-press-black);
  line-height: 1;
}

.builder-recipe-card-box {
  width: 100%;
  border-top: 1px solid rgba(232, 44, 42, 0.2);
  border-bottom: 1px solid rgba(232, 44, 42, 0.2);
  padding: 16px 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  width: 100%;
}

.recipe-label-title {
  color: #777;
}

.recipe-label-val {
  color: var(--color-press-black);
  font-weight: 500;
}

.builder-add-cart-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-brick-red);
  border-radius: 50px;
  color: var(--color-brick-red);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}

.builder-add-cart-btn:hover {
  background-color: var(--color-brick-red);
  color: var(--color-cream-white);
}

/* ==========================================================================
       9. ВЫДВИЖНАЯ КОРЗИНА И ОФОРМЛЕНИЕ ПРЕДЗАКАЗА (152-ФЗ COMPLIANCE)
       ========================================================================== */
    .cart-drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(18, 18, 18, 0.45);
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
    }

    .cart-drawer-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .cart-panel-sheet {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 480px;
      height: 100%;
      background-color: var(--color-cream-white);
      border-left: 1px solid var(--color-brick-red);
      z-index: 201;
      transform: translate3d(100%, 0, 0);
      transition: transform 0.45s var(--ease-out-expo);
      display: flex;
      flex-direction: column;
      will-change: transform;
    }

    .cart-drawer-overlay.open .cart-panel-sheet {
      transform: translate3d(0, 0, 0);
    }

    .cart-sheet-header {
      padding: 24px 30px;
      border-bottom: 1px solid var(--color-brick-red);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .cart-sheet-title {
      font-size: var(--text-body);
      color: var(--color-brick-red);
      font-weight: 400;
      letter-spacing: var(--tracking-body);
    }

    .cart-items-body {
      padding: 30px;
      overflow-y: auto;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .cart-empty-msg {
      text-align: center;
      padding: 60px 0;
      color: var(--color-press-black);
      font-size: var(--text-body-sm);
    }

    .cart-line-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(232, 44, 42, 0.15);
      animation: fadeInItem 0.35s var(--ease-out-expo);
    }

    @keyframes fadeInItem {
      from { opacity: 0; transform: translate3d(0, 8px, 0); }
      to { opacity: 1; transform: translate3d(0, 0, 0); }
    }

    .line-item-name {
      font-size: var(--text-body-sm);
      color: var(--color-press-black);
      font-weight: 400;
    }

    .line-item-price {
      font-size: var(--text-body-sm);
      color: var(--color-brick-red);
    }

    .stepper-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .stepper-btn {
      width: 26px;
      height: 26px;
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-links);
      color: var(--color-brick-red);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .stepper-btn:hover {
      background-color: var(--color-brick-red);
      color: var(--color-cream-white);
    }

    .cart-sheet-footer {
      padding: 24px 30px;
      border-top: 1px solid var(--color-brick-red);
      background-color: var(--color-soft-grey);
    }

    .cart-total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: var(--text-body);
      margin-bottom: 18px;
    }

    .cart-total-val {
      color: var(--color-brick-red);
      font-weight: 600;
      display: inline-block;
      transition: transform 0.3s var(--ease-out-expo);
      will-change: transform;
    }

    .cart-total-val.price-bump {
      transform: scale(1.15);
    }

    /* Минимизация собираемых данных (152-ФЗ) */
    .preorder-form-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .input-pill {
      width: 100%;
      height: 44px;
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-inputs);
      padding: 0 20px;
      font-size: var(--text-body-sm);
      color: var(--color-press-black);
      background-color: var(--color-cream-white);
      outline: none;
      transition: border-width 0.15s ease;
    }

    .input-pill:focus {
      border-width: 2px;
    }

    /* Юридические чекбоксы (СТРОГО СНЯТЫ ПО УМОЛЧАНИЮ) */
    .legal-checks-stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 12px 0 16px 0;
    }

    .legal-check-line {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--color-press-black);
      cursor: pointer;
    }

    .legal-check-line input[type="checkbox"] {
      width: 16px;
      height: 16px;
      margin-top: 2px;
      accent-color: var(--color-brick-red);
      flex-shrink: 0;
    }

    .legal-text-link {
      color: var(--color-brick-red);
      text-decoration: underline;
      cursor: pointer;
    }

    /* ==========================================================================
       10. ПЛАВАЮЩАЯ КНОПКА КОРЗИНЫ (FLOATING CART BAR - BOTTOM LEFT)
       ========================================================================== */
    .floating-cart-bar {
      position: fixed;
      left: 24px;
      bottom: 24px;
      z-index: 99;
      background-color: #ffffff;
      border: 1px solid var(--color-brick-red);
      border-radius: 50px;
      padding: 12px 20px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--color-brick-red);
      font-family: var(--font-surt);
      font-size: 14px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      cursor: pointer;
      text-decoration: none;
      opacity: 0;
      pointer-events: none;
      transform: translate3d(0, 20px, 0);
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
      will-change: transform, opacity;
      user-select: none;
    }

    .floating-cart-bar.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translate3d(0, 0, 0);
    }

    .floating-cart-bar:hover {
      transform: translate3d(0, -3px, 0);
      background-color: var(--color-soft-grey);
    }

    .floating-cart-bar:active {
      transform: translate3d(0, -1px, 0);
    }

    .floating-cart-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-brick-red);
      flex-shrink: 0;
    }

    .floating-cart-title {
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--color-brick-red);
      white-space: nowrap;
    }

    .floating-cart-divider {
      color: var(--color-brick-red);
      opacity: 0.5;
    }

    .floating-cart-summary {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: var(--color-press-black);
      white-space: nowrap;
    }

    /* Спиннер проверки статуса платежа СБП */
    .payment-spinner {
      width: 44px;
      height: 44px;
      margin: 0 auto;
      border: 3px solid rgba(232, 44, 42, 0.15);
      border-top-color: var(--color-brick-red);
      border-radius: 50%;
      animation: sbpSpin 0.8s linear infinite;
    }

    @keyframes sbpSpin {
      to { transform: rotate(360deg); }
    }

    /* ==========================================================================
       11. COOKIE-БАННЕР И МОДАЛЬНЫЕ ОКНА (REDBRICK EDITORIAL)
       ========================================================================== */
    .cookie-banner-bar {
      position: fixed;
      bottom: 24px;
      right: 24px;
      left: auto;
      max-width: 500px;
      background-color: var(--color-soft-grey);
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-cards);
      padding: 16px 20px;
      z-index: 150;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transform: translate3d(0, 160%, 0);
      transition: transform 0.6s var(--ease-out-expo);
      will-change: transform;
    }

    .cookie-banner-bar.show {
      transform: translate3d(0, 0, 0);
    }

    .cookie-info-text {
      font-size: 13px;
      line-height: 1.4;
      color: var(--color-press-black);
    }

    /* Модальное окно */
    .legal-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(18, 18, 18, 0.55);
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.35s var(--ease-smooth), visibility 0.35s var(--ease-smooth);
    }

    .legal-modal-backdrop.open {
      opacity: 1;
      visibility: visible;
    }

    .legal-modal-card {
      background-color: var(--color-cream-white);
      border: 1px solid var(--color-brick-red);
      border-radius: var(--radius-cards);
      width: 100%;
      max-width: 780px;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      transform: translate3d(0, 25px, 0) scale(0.97);
      transition: transform 0.4s var(--ease-out-expo);
      will-change: transform;
    }

    .legal-modal-backdrop.open .legal-modal-card {
      transform: translate3d(0, 0, 0) scale(1);
    }

    .legal-modal-header {
      padding: 20px 30px;
      border-bottom: 1px solid var(--color-brick-red);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .legal-modal-title {
      font-size: var(--text-body);
      color: var(--color-brick-red);
      font-weight: 400;
    }

    .legal-modal-body {
      padding: 30px;
      overflow-y: auto;
      font-size: 14px;
      line-height: 1.7;
      color: var(--color-press-black);
    }

    .legal-modal-body h3 {
      font-family: var(--font-display);
      color: var(--color-brick-red);
      font-size: 20px;
      font-weight: 300;
      margin: 20px 0 8px 0;
    }

    .legal-modal-body h3:first-child {
      margin-top: 0;
    }

    .legal-modal-body p {
      margin-bottom: 12px;
    }

    .legal-modal-body ul {
      margin-left: 20px;
      margin-bottom: 12px;
    }

    /* ==========================================================================
       11. ФУТЕР (CARBON #121212 & РЕКВИЗИТЫ 149-ФЗ)
       ========================================================================== */
    .site-footer {
      background-color: var(--color-carbon);
      color: var(--color-cream-white);
      padding: 70px 0 30px 0;
    }

    .footer-columns-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
      gap: 40px;
      padding-bottom: 50px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-brand-title {
      color: var(--color-brick-red);
      font-size: var(--text-body);
      letter-spacing: var(--tracking-body);
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .footer-editorial-copy {
      font-size: 14px;
      color: #999;
      line-height: 1.6;
      max-width: 320px;
    }

    .footer-heading {
      font-family: var(--font-mono);
      font-size: var(--text-caption);
      letter-spacing: var(--tracking-caption);
      text-transform: uppercase;
      color: var(--color-brick-red);
      margin-bottom: 16px;
    }

    .footer-links-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
      font-size: 14px;
    }

    .footer-links-list a {
      color: var(--color-cream-white);
      transition: color var(--transition-hover);
    }

    .footer-links-list a:hover {
      color: var(--color-brick-red);
    }

    .footer-requisites-card {
      font-size: 12px;
      color: #aaa;
      line-height: 1.6;
    }

    .footer-requisites-card strong {
      color: var(--color-cream-white);
    }

    .footer-bottom-bar {
      padding-top: 25px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-size: 12px;
      color: #888;
    }

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

    .footer-legal-btn {
      color: #888;
      text-decoration: underline;
      font-size: 12px;
      transition: color var(--transition-hover);
    }

    .footer-legal-btn:hover {
      color: var(--color-brick-red);
    }

    /* ==========================================================================
       12. АДАПТИВНОСТЬ И ДОСТУПНОСТЬ (PREFERS-REDUCED-MOTION)
       ========================================================================== */
    @media (max-width: 1024px) {
      .catalog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
      }

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

    @media (max-width: 768px) {
      .top-announcement-bar,
      .announcement-bar {
        display: none !important;
      }

      /* 1. Основная шапка (Ультракомпактная, высота 52px) */
      .site-header {
        position: sticky;
        top: 0;
        z-index: 90;
      }

      .header-primary-row {
        height: 52px !important;
        padding: 0 16px !important;
        justify-content: space-between !important;
      }

      .brand-logo {
        font-size: 16px !important;
        gap: 8px !important;
      }

      .brand-brick-icon {
        width: 18px !important;
        height: 18px !important;
      }

      .nav-primary-menu {
        display: none !important;
      }

      .header-right-actions {
        gap: 8px !important;
      }

      .cart-trigger-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 50px !important;
      }

      .burger-btn {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 1px solid var(--color-brick-red) !important;
        border-radius: var(--radius-links) !important;
        color: var(--color-brick-red) !important;
        cursor: pointer !important;
      }

      /* 3. Устранение гигантского меню на мобильных (ВАРИАНТ А - Рекомендуемый) */
      .header-secondary-row {
        display: none !important;
      }

      /* 4. Отступы и адаптация Hero-секции */
      .hero-section {
        margin-top: 16px !important;
        padding: 0 16px 40px 16px !important;
        text-align: left !important;
      }

      .hero-split-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }

      .hero-display-title {
        font-size: clamp(34px, 9.5vw, 48px) !important;
        line-height: 1.05 !important;
        margin-bottom: 14px !important;
      }

      .hero-lead-paragraph {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 22px !important;
        max-width: 100% !important;
      }

      .hero-cta-wrap {
        margin-bottom: 20px !important;
      }

      .hero-media-box {
        width: 100% !important;
        max-height: 280px !important;
        aspect-ratio: auto !important;
        border-radius: 20px !important;
        overflow: hidden !important;
      }

      .hero-main-img,
      .hero-video {
        width: 100% !important;
        height: 280px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        border-radius: 20px !important;
      }

      .builder-split-grid {
        grid-template-columns: 1fr !important;
      }

      /* Свайп-карусель каталога на мобильных */
      .catalog-cards-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        margin: 0 -16px !important;
        padding: 0 16px 10px 16px !important;
      }

      .catalog-cards-grid::-webkit-scrollbar {
        display: none !important;
      }

      .product-brick-card {
        flex: 0 0 280px !important;
        scroll-snap-align: start !important;
      }

      /* Нижняя шторка корзины */
      .cart-panel-sheet {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 85vh !important;
        border-left: none !important;
        border-top: 1px solid var(--color-brick-red) !important;
        border-radius: 25px 25px 0 0 !important;
        transform: translate3d(0, 100%, 0) !important;
      }

      .cart-drawer-overlay.open .cart-panel-sheet {
        transform: translate3d(0, 0, 0) !important;
      }

      .floating-cart-bar {
        left: 16px !important;
        bottom: 16px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
      }

      .cookie-banner-bar {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
      }

      .footer-columns-grid {
        grid-template-columns: 1fr !important;
      }
    }
/* Предустановки доступности prefers-reduced-motion вынесены в css/animations.css */


/* ==========================================================================
   HERO BASE & MEDIA STYLES
   ========================================================================== */
.hero-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-images);
  overflow: hidden;
  background-color: var(--color-soft-grey);
}

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
