/* ==========================================================================
   COMMON.CSS — Production-ready стили для ts-merch
   Соответствует ОБЩИЕ.md (бенто + неоморфизм + liquid glass)
   ========================================================================== */

/* Единственная загрузка шрифтов интерфейса. */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS VARIABLES — Светлая и тёмная тема
   ========================================================================== */

:root {
  /* Фоны и поверхности */
  --bg: #f5f8fc;
  --surface: #eef2f7;
  --surface-glass: rgb(255 255 255 / 68%);
  --surface-glass-strong: rgb(255 255 255 / 82%);
  
  /* Текст */
  --text: #0a0f2d;
  --text-secondary: #46506a;
  --text-muted: #626d87;
  --font-heading: "Exo 2", Inter, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Акцентные цвета */
  --cyan: #00b9c6;
  --blue: #3569d9;
  --magenta: #d400b8;
  --gradient-main: linear-gradient(135deg, #00c8d8 0%, #3569d9 50%, #d400b8 100%);

   /* Единая максимальная ширина композиции страниц и общих оболочек. */
   --site-shell-max: 1320px;
   --site-shell-gutter: clamp(16px, 3vw, 40px);
   --page-footer-gap: 40px;
  
  /* Линии и границы */
  --line: rgb(255 255 255 / 76%);
  --line-accent: rgb(53 105 217 / 60%);
  
  /* Тени */
  --shadow-raised: 10px 10px 22px rgb(153 166 190 / 34%), -8px -8px 18px rgb(255 255 255 / 88%);
  --shadow-pressed: inset 5px 5px 10px rgb(153 166 190 / 28%), inset -5px -5px 10px rgb(255 255 255 / 90%);
  --shadow-glow: 0 0 0 4px rgb(0 200 216 / 12%), 0 10px 28px rgb(53 105 217 / 22%);
  
  /* Радиусы */
  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  
  /* Фокус */
  --focus: #174cba;
  
  /* Статусные цвета */
  --success: #16a34a;
  --error: #b42318;
  --warning: #f59e0b;
}

[data-theme="dark"] {
  --bg: #0a0f2d;
  --surface: #151d3a;
  --surface-glass: rgb(21 29 58 / 70%);
  --surface-glass-strong: rgb(21 29 58 / 88%);
  --text: #f5f8fc;
  --text-secondary: #d2daf0;
  --text-muted: #b7c1dc;
  --line: rgb(214 228 255 / 20%);
  --line-accent: rgb(104 163 255 / 72%);
  --shadow-raised: 10px 10px 24px rgb(0 0 0 / 35%), -5px -5px 18px rgb(62 79 126 / 26%);
  --shadow-pressed: inset 5px 5px 10px rgb(0 0 0 / 30%), inset -4px -4px 9px rgb(62 79 126 / 23%);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Резервируем высоту фиксированной шапки уже при разметке страницы,
   не дожидаясь JavaScript — так контент не сдвигается после загрузки. */
body:has(> .site-header) {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body:has(> .site-header) {
    padding-top: 72px;
  }
}

html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-muted {
  color: var(--text-muted);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

/* Базовый класс кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-m);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1), background-color 180ms cubic-bezier(0.4, 0, 0.2, 1), color 180ms cubic-bezier(0.4, 0, 0.2, 1), filter 180ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 4.1. Градиентная кнопка — БЕЗ обводки, с glow */
.btn-primary,
.button-gradient {
  background: var(--gradient-main);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgb(53 105 217 / 28%);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.button-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 18%) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.btn-primary:hover,
.button-gradient:hover {
  box-shadow: 0 10px 28px rgb(53 105 217 / 32%);
  transform: translateY(-2px);
}

.btn-primary:hover::before,
.button-gradient:hover::before {
  opacity: 1;
}

.btn-primary:active,
.button-gradient:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgb(53 105 217 / 20%);
}

.btn-primary:focus-visible,
.button-gradient:focus-visible {
  box-shadow: 0 12px 30px rgb(53 105 217 / 36%);
  filter: brightness(1.12);
}

.btn-primary:disabled,
.button-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 4.2. Неоморфная кнопка — с тонкой обводкой */
.btn-secondary,
.button-neumorphic {
  background: var(--bg);
  border: 1px solid var(--line-accent);
  color: var(--text);
  box-shadow: var(--shadow-raised);
}

.btn-secondary:hover,
.button-neumorphic:hover {
  background: var(--surface-glass);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary:active,
.button-neumorphic:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(0);
}

.btn-secondary:focus-visible,
.button-neumorphic:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-secondary:disabled,
.button-neumorphic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 4.3. Специальная кнопка для контактов */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-m);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.btn-contact:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  border-color: var(--blue);
}

.btn-contact:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-contact svg,
.btn-contact img {
  width: 20px;
  height: 20px;
}

/* Размеры кнопок */
.btn-small {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-large {
  min-height: 52px;
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* ==========================================================================
   5. CARDS
   ========================================================================== */

/* 5.1. Базовая glassmorphism карточка */
.card {
  padding: 24px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.card:hover {
  border-color: var(--line-accent);
  transform: translateY(-2px);
}

/* 5.2. Liquid glass карточка с эффектом при hover */
.card-liquid {
  position: relative;
  padding: 28px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-liquid::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgb(53 105 217 / 12%) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.card-liquid:hover {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-liquid:hover::before {
  opacity: 1;
  animation: liquidPulse 2s ease-in-out infinite;
}

@keyframes liquidPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, -10%) scale(1.1);
  }
}

/* 5.3. Карточка товара для каталога */
.card-product {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  text-decoration: none;
  color: var(--text);
}

.card-product:hover {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-product__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 16px;
  background: var(--surface);
}

.card-product__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card-product__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex: 1;
}

.card-product__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.card-product__action {
  margin-top: auto;
}

/* 5.4. Карточка кейса */
.card-case {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  text-decoration: none;
  color: var(--text);
}

.card-case:hover {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-case__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.card-case__content {
  padding: 24px;
}

.card-case__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.card-case__description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-case__meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. NAVIGATION — Плавающая бенто-капсула
   ========================================================================== */

/* Вариант A — единая бенто-капсула (основной) */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  padding: 14px var(--site-shell-gutter);
}

.nav-capsule,
.menu {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.menu__logo {
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.menu__logo:hover {
  color: var(--blue);
}

.menu__links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__links a {
  display: block;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.menu__links a:hover,
.menu__links a[aria-current="page"] {
  border-color: var(--line-accent);
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
  color: var(--text);
}

.menu__links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.menu__action {
  min-height: 42px;
  padding: 9px 14px;
}

/* Кнопка бургера для мобильных */
.menu__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.menu__toggle:hover {
  box-shadow: var(--shadow-glow);
}

.menu__toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Мобильная панель меню */
.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 16px;
  right: 16px;
  padding: 16px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
}

.menu__panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__panel .menu__links {
  flex-direction: column;
  gap: 8px;
}

.menu__panel .menu__links a {
  width: 100%;
  text-align: left;
}

/* Вариант B — разделённые модули */
.menu--split {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  max-width: 1320px;
  margin: 0 auto;
}

.menu--split .menu__module,
.menu--split .menu__links {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.menu--split .menu__logo {
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.menu--split .menu__links {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.menu--split .menu__action {
  align-self: stretch;
}

/* Вариант C — плавающий rail */
.menu--rail {
  position: sticky;
  top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.menu--rail .menu__links {
  justify-content: center;
}

.menu--rail .menu__logo {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

/* ==========================================================================
   7. FORMS — Неоморфные поля ввода
   ========================================================================== */

/* Базовое поле ввода */
.input-neomorphic,
.input-neumorphic {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 1rem;
  box-shadow: var(--shadow-pressed);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.input-neomorphic:hover,
.input-neumorphic:hover {
  border-color: var(--blue);
}

.input-neomorphic:focus,
.input-neumorphic:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  background: var(--surface-glass);
}

.input-neomorphic::placeholder,
.input-neumorphic::placeholder {
  color: var(--text-muted);
}

.input-neomorphic[aria-invalid="true"],
.input-neumorphic[aria-invalid="true"] {
  border-color: var(--error);
}

/* Textarea */
.textarea-neomorphic,
.textarea-neumorphic {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--shadow-pressed);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  resize: vertical;
}

.textarea-neomorphic:hover,
.textarea-neumorphic:hover {
  border-color: var(--blue);
}

.textarea-neomorphic:focus,
.textarea-neumorphic:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  background: var(--surface-glass);
}

/* Label */
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Группа полей */
.form-group {
  margin-bottom: 20px;
}

/* Сообщение об ошибке */
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.875rem;
}

/* Checkbox */
.checkbox-neomorphic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-neomorphic input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  box-shadow: var(--shadow-pressed);
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  position: relative;
}

.checkbox-neomorphic input[type="checkbox"]:hover {
  border-color: var(--blue);
}

.checkbox-neomorphic input[type="checkbox"]:checked {
  background: var(--gradient-main);
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.checkbox-neomorphic input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-neomorphic input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Radio */
.radio-neomorphic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.radio-neomorphic input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  box-shadow: var(--shadow-pressed);
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  position: relative;
}

.radio-neomorphic input[type="radio"]:hover {
  border-color: var(--blue);
}

.radio-neomorphic input[type="radio"]:checked {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.radio-neomorphic input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--gradient-main);
  border-radius: 50%;
}

.radio-neomorphic input[type="radio"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Select */
.select-neomorphic,
.select-neumorphic {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 1rem;
  box-shadow: var(--shadow-pressed);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.select-neomorphic:hover,
.select-neumorphic:hover {
  border-color: var(--blue);
}

.select-neomorphic:focus,
.select-neumorphic:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   8. MODALS — Glassmorphism overlay
   ========================================================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(10 15 45 / 60%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 60px rgb(0 0 0 / 40%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: scale(0.95);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal[aria-hidden="false"] .modal__content {
  transform: scale(1);
}

.modal-close-control {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: linear-gradient(var(--surface-glass-strong), var(--surface-glass-strong)) padding-box, var(--gradient-main) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  box-shadow: 0 6px 18px rgb(10 15 45 / 12%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.modal-close-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-close-control:not(:disabled):hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.modal-close-control:not(:disabled):active {
  box-shadow: var(--shadow-pressed);
  transform: scale(0.96);
}

.modal-close-control:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.modal-close-control:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.modal-close-control--on-image {
  color: #fff;
  background: linear-gradient(rgb(10 15 45 / 76%), rgb(10 15 45 / 76%)) padding-box, var(--gradient-main) border-box;
}

.modal-close-control--on-image:not(:disabled):hover {
  background: linear-gradient(rgb(10 15 45 / 90%), rgb(10 15 45 / 90%)) padding-box, var(--gradient-main) border-box;
}

/* Совместимость с существующими разметкой и локальными селекторами модалей. */
.modal__close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
}

.modal__header {
  margin-bottom: 20px;
}

.modal__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.modal__body {
  margin-bottom: 24px;
}

.modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ========================================================================== 
   8.1 PROJECT FORM — shared SSI contact form
   ========================================================================== */

.project-form-is-open {
  overflow: hidden;
}

.project-form-modal,
.project-form-result {
  z-index: 1300;
}

.project-form-modal__content,
.project-form-result__content {
  max-width: 660px;
  border-radius: var(--radius-m);
}

.project-form-result__content {
  max-width: 440px;
  padding: 72px 32px 32px;
}

.project-form-modal__header {
  padding-right: 44px;
  margin-bottom: 22px;
}

.project-form-modal__eyebrow,
.project-form-result__eyebrow {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-form-modal__title,
.project-form-result__title {
  font-family: var(--font-heading);
}

.project-form-modal__lead,
.project-form-result__message {
  margin-top: 8px;
}

.project-form {
  display: grid;
  gap: 14px;
}

.project-form__field {
  display: grid;
  gap: 6px;
}

.project-form__contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-form__field label,
.project-form__subscription {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 650;
}

.project-form__field input,
.project-form__field textarea {
  width: 100%;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: var(--surface-glass);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow-pressed);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.project-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.project-form__field input:focus,
.project-form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.project-form__subscription {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.project-form__subscription input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.project-form__switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.project-form__switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 180ms ease, background-color 180ms ease;
}

.project-form__subscription input:checked + .project-form__switch {
  border-color: var(--blue);
  background: var(--blue);
}

.project-form__subscription input:checked + .project-form__switch::after {
  transform: translateX(18px);
  background: #ffffff;
}

.project-form__subscription input:focus-visible + .project-form__switch {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.project-form__submit {
  min-height: 48px;
  border-radius: 12px;
  font-family: var(--font-body);
}

.project-form__notice,
.project-form__status {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.project-form__status:not(:empty) {
  color: var(--text-secondary);
}

.project-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.project-form-result__content {
  text-align: center;
}

/* ========================================================================== 
   8.2 CART — shared SSI order basket
   ========================================================================== */

.cart-is-open {
  overflow: hidden;
}

.cart-modal,
.cart-result-modal {
  z-index: 1310;
}

.cart-modal__content {
  max-width: 1120px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
}

.cart-result-modal__content {
  max-width: 440px;
  padding: 72px 32px 32px;
  text-align: center;
}

.cart-modal__heading {
  max-width: 680px;
  padding-right: 48px;
  margin-bottom: 24px;
}

.cart-modal__eyebrow,
.cart-result-modal__eyebrow {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-modal__title,
.cart-result-modal__title {
  font-family: var(--font-heading);
}

.cart-modal__lead,
.cart-result-modal__message {
  margin-top: 8px;
}

.cart-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.cart-modal__items-panel,
.cart-form {
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-glass);
  box-shadow: var(--shadow-raised);
}

.cart-modal__items {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.cart-modal__items::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.cart-modal__items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-modal__items::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gradient-main);
  background-clip: padding-box;
}

.cart-modal__empty {
  padding: 18px 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-item__copy {
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.25;
}

.cart-item__description,
.cart-item__saving,
.cart-summary__saving {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cart-item__description {
  margin-top: 7px;
  white-space: pre-line;
}

.cart-item__aside {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  min-width: 112px;
}

.cart-item__price,
.cart-summary__total strong {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.cart-item__saving,
.cart-summary__saving {
  color: var(--success);
}

.cart-item__remove {
  width: 30px;
  height: 30px;
  margin-top: 4px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.cart-item__remove:hover,
.cart-item__remove:focus-visible {
  border-color: var(--error);
  background: rgb(180 35 24 / 8%);
  color: var(--error);
}

.cart-modal__summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
}

.cart-summary__total strong {
  font-size: 1.1rem;
}

.cart-summary__saving {
  margin-top: 5px;
}

.cart-form {
  display: grid;
  gap: 14px;
}

.cart-form__field {
  display: grid;
  gap: 6px;
}

.cart-form__contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-form__field label,
.cart-form__subscription {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 650;
}

.cart-form__field input,
.cart-form__field textarea {
  width: 100%;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: var(--surface-glass-strong);
  color: var(--text);
  padding: 11px 12px;
  box-shadow: var(--shadow-pressed);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cart-form__field textarea {
  min-height: 104px;
  resize: vertical;
}

.cart-form__field input:focus,
.cart-form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.cart-form__subscription {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cart-form__subscription input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.cart-form__switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cart-form__switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
  transition: transform 180ms ease, background-color 180ms ease;
}

.cart-form__subscription input:checked + .cart-form__switch {
  border-color: var(--blue);
  background: var(--blue);
}

.cart-form__subscription input:checked + .cart-form__switch::after {
  transform: translateX(18px);
  background: #fff;
}

.cart-form__subscription input:focus-visible + .cart-form__switch {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.cart-form__submit {
  min-height: 48px;
  border-radius: 12px;
  font-family: var(--font-body);
}

.cart-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-form__notice,
.cart-form__status {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cart-form__status:not(:empty) {
  color: var(--text-secondary);
}

.cart-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cart-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-raised);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.cart-notification[data-type="success"] {
  border-color: color-mix(in srgb, var(--success) 55%, var(--line));
}

.cart-notification[data-type="error"] {
  border-color: color-mix(in srgb, var(--error) 55%, var(--line));
}

.cart-notification--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Калькуляторы в iframe используют собственные классы, но сообщения всегда
   занимают единое место в правом нижнем углу. */
.ts-merch-toast,
.choco-toast,
.t-calc-toast,
.ts-remuvok-toast,
.bags-toast,
.ts-ribbon-toast {
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  max-width: min(340px, calc(100vw - 48px)) !important;
}

@media (max-width: 800px) {
  .cart-modal__layout {
    grid-template-columns: 1fr;
  }

  .cart-modal__items {
    max-height: 340px;
  }
}

/* ==========================================================================
   9. BENTO GRID — Структура
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin: 0 auto;
  max-width: calc(var(--site-shell-max) + (var(--site-shell-gutter) * 2));
  padding-inline: var(--site-shell-gutter);
}

/* Базовые размеры элементов */
.bento-grid > * {
  grid-column: span 4;
}

/* Специальные размеры */
.bento-item-1x1 {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-item-2x1 {
  grid-column: span 6;
  grid-row: span 1;
}

.bento-item-2x2 {
  grid-column: span 6;
  grid-row: span 2;
}

.bento-item-3x1 {
  grid-column: span 8;
  grid-row: span 1;
}

.bento-item-3x2 {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-featured {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 6;
}

.bento-full {
  grid-column: span 12;
}

/* ==========================================================================
   10. EFFECTS — Glow & Liquid Glass
   ========================================================================== */

/* Glow текст с градиентом */
.glow-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 800;
}

.glow-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(12px);
  opacity: 0.6;
  pointer-events: none;
}

/* Liquid glass фон */
.liquid-glass-bg {
  position: relative;
  overflow: hidden;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.liquid-glass-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgb(0 200 216 / 8%) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgb(212 0 184 / 6%) 0%, transparent 50%);
  animation: liquidMove 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes liquidMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10%, 10%) rotate(90deg);
  }
  50% {
    transform: translate(0, 20%) rotate(180deg);
  }
  75% {
    transform: translate(-10%, 10%) rotate(270deg);
  }
}

/* Glow на взаимодействие */
.glow-on-interaction:hover,
.glow-on-interaction:focus-visible {
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   11. UTILITIES
   ========================================================================== */

/* Контейнер */
.container {
  width: 100%;
  max-width: calc(var(--site-shell-max) + (var(--site-shell-gutter) * 2));
  margin: 0 auto;
  padding-inline: var(--site-shell-gutter);
}

.container-narrow {
  max-width: 1024px;
}

.container-wide {
  max-width: 1600px;
}

/* Spacing утилиты */
.page-content--footer-gap {
  padding-bottom: var(--page-footer-gap);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Flexbox утилиты */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Текстовые утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Видимость */
.hidden { display: none; }

/* Opt-in control and SVG pattern for favorite toggles. */
.favorite-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--favorite-control-color, currentColor);
  cursor: pointer;
  transition: transform 160ms ease;
}

.favorite-control:hover {
  transform: scale(1.1);
}

.favorite-control:focus-visible {
  outline: 3px solid var(--favorite-control-focus, var(--focus));
  outline-offset: 3px;
}

.favorite-icon {
  display: block;
  width: var(--favorite-icon-size, 1.35rem);
  height: var(--favorite-icon-size, 1.35rem);
  fill: none;
  stroke: currentColor;
}

.favorite-icon__outline {
  fill: none;
  stroke: var(--favorite-icon-outline, currentColor);
  stroke-width: var(--favorite-icon-stroke-width, 2);
}

.favorite-icon__filled {
  display: none;
  fill: var(--favorite-icon-fill, currentColor);
  stroke: none;
}

.favorite-control[aria-pressed="true"] .favorite-icon__outline {
  display: none;
}

.favorite-control[aria-pressed="true"] .favorite-icon__filled {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   12. RESPONSIVE — Адаптивность
   ========================================================================== */

@media (max-width: 1280px) {
  .bento-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .bento-item-3x1,
  .bento-item-3x2,
  .bento-featured {
    grid-column: span 8;
  }

  .bento-item-2x1,
  .bento-item-2x2,
  .bento-wide {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  /* Типографика */
  body {
    font-size: 15px;
  }

  /* Меню */
  .site-header {
    padding: 12px 16px;
  }

  .menu,
  .menu--split,
  .menu--rail {
    display: flex;
    min-height: 48px;
    padding: 8px;
    gap: 8px;
  }

  .menu__links {
    display: none;
  }

  .menu__toggle {
    display: flex;
    margin-left: auto;
  }

  .menu__action {
    font-size: 0.875rem;
    padding: 8px 12px;
  }

  /* Бенто-сетка */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-grid > *,
  .bento-item-1x1,
  .bento-item-2x1,
  .bento-item-2x2,
  .bento-item-3x1,
  .bento-item-3x2,
  .bento-featured,
  .bento-wide,
  .bento-full {
    grid-column: auto;
    grid-row: auto;
  }

  /* Модалы */
  .modal__content {
    padding: 24px;
  }

  /* Кнопки */
  .btn {
    min-height: 44px;
    padding: 10px 20px;
  }

  .btn-large {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 639px) {
  .project-form-modal,
  .cart-modal {
    inset: 0;
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 0;
    align-items: stretch;
  }

  .project-form-modal__content.modal__content,
  .cart-modal__content.modal__content {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 0 16px 24px;
    border: 0;
    border-radius: 0;
  }

  .project-form-modal__header,
  .cart-modal__heading {
    position: sticky;
    z-index: 3;
    top: 0;
    margin: 0 -16px 14px;
    padding: max(12px, env(safe-area-inset-top)) max(72px, calc(env(safe-area-inset-right) + 56px)) 10px 16px;
    background: var(--surface);
  }

  .project-form-modal__eyebrow,
  .cart-modal__eyebrow {
    margin: 0 0 2px;
    line-height: 1.25;
  }

  .project-form-modal__title-row,
  .cart-modal__title-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .project-form-modal__title,
  .cart-modal__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.1;
  }

  .project-form-modal__lead,
  .cart-modal__lead {
    margin: 3px 0 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .project-form-modal__title-row .modal__close,
  .cart-modal__title-row .modal__close {
    position: absolute;
    z-index: 4;
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
  }

  .project-form-modal__title-row,
  .cart-modal__title-row {
    padding-right: 52px;
  }
}

@media (max-width: 480px) {
  /* Контейнер */
  .container {
    padding: 0 16px;
  }

  /* Карточки */
  .card,
  .card-liquid {
    padding: 20px;
  }

  .card-case__content {
    padding: 20px;
  }

  /* Меню логотип */
  .menu__logo {
    font-size: 1rem;
  }

  /* Формы */
  .modal__content {
    padding: 20px;
  }

  /* Упрощение эффектов на малых экранах */
  .card-liquid::before {
    display: none;
  }

  .liquid-glass-bg::before {
    animation: none;
  }

  /* Результат отправки — короткое уведомление, а не полноэкранный экран. */
  .project-form-result,
  .cart-result-modal {
    align-items: center;
    padding: 20px;
  }

  .project-form-result__content,
  .cart-result-modal__content {
    width: min(100%, 420px);
    min-height: 0;
    max-height: min(420px, calc(100dvh - 40px));
    padding: 72px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
  }

  .project-form__contact-row {
    grid-template-columns: 1fr;
  }

  .cart-modal__layout {
    grid-template-columns: 1fr;
  }

  .cart-modal__items {
    max-height: none;
  }

  .cart-form__contact-row {
    grid-template-columns: 1fr;
  }

  .cart-notification {
    right: auto;
    bottom: 16px;
    left: 50%;
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 12px);
  }

  .cart-notification--visible {
    transform: translate(-50%, 0);
  }

  .ts-merch-toast,
  .choco-toast,
  .t-calc-toast,
  .ts-remuvok-toast,
  .bags-toast,
  .ts-ribbon-toast {
    right: auto !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translate(-50%, 16px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .ts-merch-toast.show,
  .choco-toast.choco-show,
  .t-calc-toast.show,
  .ts-remuvok-toast.show,
  .bags-toast.bags-show,
  .ts-ribbon-toast.ts-ribbon-show {
    transform: translate(-50%, 0) !important;
  }
}

/* ==========================================================================
   13. ACCESSIBILITY — Доступность
   ========================================================================== */

/* Focus visible для всех интерактивных элементов */
*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Убираем outline для мыши, оставляем для клавиатуры */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--focus);
  color: white;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card-liquid::before,
  .liquid-glass-bg::before {
    animation: none !important;
  }
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
  :root {
    --line: rgb(0 0 0 / 40%);
    --line-accent: rgb(53 105 217 / 80%);
  }

  /* Градиентные CTA остаются без контуров согласно фирменному запрету. */

  .card,
  .card-liquid,
  .card-product,
  .card-case {
    border-width: 2px;
  }
}

/* Print стили */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  .menu,
  .modal,
  .btn,
  button {
    display: none;
  }
}

/* ===========================================================================
   14. АКТУАЛИЗАЦИЯ ОБЩЕГО ЯДРА — аддитивные правила из ОБЩЕЕ.md
   Этот поздний слой сохраняет функциональные разделы выше и обновляет только
   общие токены, материал, состояния и композиционные варианты.
   =========================================================================== */

/* Фирменные токены и алиасы старого ядра для обратной совместимости. */
:root,
[data-theme="light"] {
  color-scheme: light;
  --color-deep-space: #0A0F2D;
  --color-steel: #2A324B;
  --color-electric: #00F5FF;
  --color-neon: #FF00E5;
  --color-blue-accent: #4A7AFF;
  --color-light-gray: #F5F8FC;
  --color-gray: #EEF2F7;
  --gradient-primary: linear-gradient(135deg, #00F5FF 0%, #4A7AFF 50%, #FF00E5 100%);
  --gradient-secondary: linear-gradient(135deg, #0A0F2D 0%, #2A324B 100%);

  --page: #F5F8FC;
  --glass: rgb(255 255 255 / 65%);
  --glass-strong: rgb(255 255 255 / 82%);
  --glass-blur: 20px;
  --border: rgb(255 255 255 / 70%);
  --text: #0A0F2D;
  --text-secondary: #2A324B;
  --text-muted: #6A7287;
  --focus: #174CBA;
  --line-accent: rgb(74 122 255 / 52%);
  --shadow-raised: 0 14px 36px rgb(42 50 75 / 12%);
  --shadow-pressed: inset 0 1px 1px rgb(10 15 45 / 8%);
  --shadow-glow: 0 14px 32px rgb(74 122 255 / 25%), 0 0 24px rgb(0 245 255 / 18%);

  --bg: var(--page);
  --surface: var(--color-gray);
  --surface-glass: var(--glass);
  --surface-glass-strong: var(--glass-strong);
  --line: var(--border);
  --cyan: var(--color-electric);
  --blue: var(--color-blue-accent);
  --magenta: var(--color-neon);
  --gradient-main: var(--gradient-primary);
  --radius-s: 16px;
  --radius-m: 22px;
  --radius-l: 32px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #0A0F2D;
  --glass: rgb(20 25 50 / 60%);
  --glass-strong: rgb(20 25 50 / 88%);
  --glass-blur: 24px;
  --border: rgb(255 255 255 / 15%);
  --text: #FFFFFF;
  --text-secondary: #C5C9D6;
  --text-muted: #8A90A8;
  --focus: #00F5FF;
  --line-accent: rgb(74 122 255 / 70%);
  --shadow-raised: 0 16px 40px rgb(0 0 0 / 32%);
  --shadow-pressed: inset 0 1px 1px rgb(255 255 255 / 10%);
  --shadow-glow: 0 16px 34px rgb(0 245 255 / 20%), 0 0 24px rgb(74 122 255 / 25%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0A0F2D;
    --glass: rgb(20 25 50 / 60%);
    --glass-strong: rgb(20 25 50 / 88%);
    --glass-blur: 24px;
    --border: rgb(255 255 255 / 15%);
    --text: #FFFFFF;
    --text-secondary: #C5C9D6;
    --text-muted: #8A90A8;
    --focus: #00F5FF;
    --line-accent: rgb(74 122 255 / 70%);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display,
.menu__logo {
  font-family: "Exo 2", Inter, sans-serif;
}

.eyebrow,
.mono,
.tech-label,
code,
pre,
kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

a {
  color: var(--blue);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: var(--cyan);
}

button,
[role="button"],
select,
summary {
  cursor: pointer;
}

/* Единый стеклянный материал и непрозрачный fallback для слабых браузеров. */
.card,
.card-liquid,
.card-product,
.card-case,
.nav-capsule,
.menu,
.menu__panel,
.menu--split .menu__module,
.menu--split .menu__links,
.menu--rail,
.modal__content,
.btn-contact {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .card-liquid,
  .card-product,
  .card-case,
  .nav-capsule,
  .menu,
  .menu__panel,
  .menu--split .menu__module,
  .menu--split .menu__links,
  .menu--rail,
  .modal__content,
  .btn-contact {
    background: var(--surface);
  }
}

.card,
.card-liquid,
.card-product,
.card-case {
  min-width: 0;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover,
.card-liquid:hover,
.card-product:hover,
.card-case:hover {
  transform: translateY(-2px);
}

/* Градиентные поверхности никогда не получают границу, контурную тень или рамочный псевдослой. */
.btn-primary,
.button-gradient,
.gradient-surface,
.checkbox-neomorphic input[type="checkbox"]:checked {
  border: none;
  outline: none;
}

.btn-primary,
.button-gradient,
.gradient-surface {
  background: var(--gradient-primary);
  box-shadow: 0 14px 28px rgb(74 122 255 / 28%);
  transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
}

.btn-primary:hover,
.button-gradient:hover,
.gradient-surface:hover {
  box-shadow: 0 18px 36px rgb(74 122 255 / 34%);
  filter: brightness(1.08);
  transform: scale(1.02);
}

.btn-primary:active,
.button-gradient:active {
  box-shadow: 0 8px 18px rgb(74 122 255 / 24%);
  transform: scale(0.99);
}

/* Фокус CTA виден как отдельный нижний световой маркер, а не обводка по границе. */
.btn-primary:focus-visible,
.button-gradient:focus-visible,
.gradient-surface:focus-visible {
  outline: none;
  box-shadow: 0 18px 36px rgb(74 122 255 / 34%);
  filter: brightness(1.14);
}

.btn-primary:focus-visible::after,
.button-gradient:focus-visible::after,
.gradient-surface:focus-visible::after {
  position: absolute;
  right: 20%;
  bottom: -8px;
  left: 20%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-electric);
  content: "";
  pointer-events: none;
}

.checkbox-neomorphic input[type="checkbox"]:checked {
  background: var(--gradient-primary);
  box-shadow: 0 5px 12px rgb(74 122 255 / 28%);
}

.checkbox-neomorphic input[type="checkbox"]:checked:focus-visible {
  outline: none;
  filter: brightness(1.15);
  transform: scale(1.08);
}

/* Полный набор бенто-силуэтов; порядок DOM и мобильное чтение не меняются. */
.bento-grid > * {
  min-width: 0;
}

.bento-item-1x2 {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-item-3x3 {
  grid-column: span 9;
  grid-row: span 3;
}

.bento-composite,
.bento-shape-l,
.bento-shape-t,
.bento-shape-u,
.bento-shape-step,
.bento-shape-asymmetric {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: inherit;
  min-width: 0;
}

.bento-composite > *,
.bento-shape-l > *,
.bento-shape-t > *,
.bento-shape-u > *,
.bento-shape-step > *,
.bento-shape-asymmetric > * {
  min-width: 0;
}

.bento-shape-l > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-shape-t > :first-child {
  grid-column: 1 / -1;
}

.bento-shape-u > :first-child,
.bento-shape-u > :nth-child(3) {
  grid-row: span 2;
}

.bento-shape-step > :first-child {
  grid-column: span 2;
}

.bento-shape-step > :nth-child(2) {
  grid-column: 2 / -1;
}

.bento-shape-asymmetric > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-shape-asymmetric > :nth-child(2) {
  grid-column: 3;
}

/* Базовая инфраструктура для управляемого скриптом параллакса; JS здесь не требуется. */
.parallax-layer {
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform 300ms ease-out;
}

.parallax-container {
  isolation: isolate;
  position: relative;
}

.parallax-container > :not(.parallax-layer) {
  position: relative;
  z-index: 1;
}

/* Иконочная система: gradient stroke задаётся локально в SVG через defs и url(#...). */
.icon,
.icon--outline,
.icon--gradient-stroke,
.btn svg,
.btn-contact svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vertical-align: middle;
}

.icon-button {
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.icon-button > svg,
.icon-button > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-button--secondary {
  background: var(--surface);
}

.icon-button--glass {
  background: var(--surface-glass);
}

.icon-button--glass::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-main);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-glow);
  color: var(--blue);
}

.icon-button--glass:hover,
.icon-button--glass:focus-visible {
  border-color: transparent;
}

.icon-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Общий фокус для неградиентных интерактивных элементов. */
*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .bento-item-3x3 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid > *,
  .bento-item-1x1,
  .bento-item-1x2,
  .bento-item-2x1,
  .bento-item-2x2,
  .bento-item-3x1,
  .bento-item-3x2,
  .bento-item-3x3,
  .bento-featured,
  .bento-wide,
  .bento-full {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-composite,
  .bento-shape-l,
  .bento-shape-t,
  .bento-shape-u,
  .bento-shape-step,
  .bento-shape-asymmetric {
    grid-template-columns: 1fr;
  }

  .bento-shape-l > :first-child,
  .bento-shape-t > :first-child,
  .bento-shape-u > :first-child,
  .bento-shape-u > :nth-child(3),
  .bento-shape-step > :first-child,
  .bento-shape-step > :nth-child(2),
  .bento-shape-asymmetric > :first-child,
  .bento-shape-asymmetric > :nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .parallax-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .parallax-layer,
  .modal-close-control {
    transform: none;
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgb(10 15 45 / 55%);
  }

  [data-theme="dark"] {
    --border: rgb(255 255 255 / 65%);
  }

  .card,
  .card-liquid,
  .card-product,
  .card-case {
    border-width: 2px;
  }

  /* Градиентные поверхности намеренно не получают обводку даже в этом режиме. */
}

/* Подвал: исходная разметка footer.html, без изменения его сетки и блоков. */
.site-footer {
  --bg-soft: var(--surface);
  --text-dark: var(--text);
  --electric: var(--cyan);
  --border-light: var(--line);
  --bento-radius: var(--radius-s);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer .footer-card,
.site-footer .footer-card-doc {
  background: var(--surface-glass);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgb(10 15 45 / 8%);
}

.site-footer .footer-card {
  color: var(--text);
}

.site-footer .footer-card-left p,
.site-footer .footer-card-center .footer-copyright,
.site-footer .footer-card-center .footer-copyright .year {
  color: var(--text-muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
}

.site-footer .footer-card-left .ip-name,
.site-footer .footer-card-doc {
  color: var(--text-secondary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer .footer-card-doc {
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-footer .footer-card-doc:hover {
  color: var(--blue);
  border-color: var(--line-accent);
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.site-footer .footer-card-doc:focus-visible {
  color: var(--blue);
  border-color: var(--line-accent);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Документные ссылки остаются доступными, но их декоративные иконки не участвуют в композиции. */
.site-footer .footer-card-doc i {
  display: none;
}

/* Нейтральная граница сохраняет геометрию ссылки; акцент появляется только при взаимодействии. */
.site-footer .footer-card-doc {
  border: 1px solid transparent;
}

.site-footer .footer-card-doc:hover,
.site-footer .footer-card-doc:focus-visible {
  border-color: var(--line-accent);
}

@media (min-width: 769px) {
  .site-footer .footer-card-center .footer-logo picture {
    max-width: 220px;
  }

  .site-footer .footer-card-center .footer-copyright {
    margin-top: 10px;
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-footer .footer-card,
  .site-footer .footer-card-doc {
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
  }
}

@media (max-width: 768px) {
  .site-footer .footer-card,
  .site-footer .footer-card-doc {
    box-shadow: 0 6px 16px rgb(10 15 45 / 7%);
  }
}

/* Общая оболочка шапки и подвала использует токены из :root: внешние края совпадают. */

/* Композиция подвала и переключение вариантов логотипа. */
.site-footer {
  padding: 30px var(--site-shell-gutter) 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.site-footer .footer-container {
  display: grid;
  /* Изначальная пропорция 1 : 1.5 : 1 разложена на 4 + 6 + 4 из 14 колонок. */
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--site-shell-max);
  margin: 0 auto;
  align-items: stretch;
}

.site-footer .footer-card-left {
  grid-column: span 4;
}

.site-footer .footer-card-center {
  grid-column: span 6;
}

.site-footer .footer-docs-stack {
  grid-column: span 4;
}

.site-footer .footer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--bento-radius);
}

.site-footer .footer-card-left {
  align-items: flex-start;
}

.site-footer .footer-card-left .ip-name {
  margin-bottom: 2px;
}

.site-footer .footer-card-left p {
  margin: 0;
  line-height: 1.5;
}

.site-footer .footer-card-center {
  align-items: center;
  text-align: center;
}

.site-footer .footer-logo {
  width: 100%;
  max-width: 120px;
}

.site-footer .footer-logo__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer .footer-logo .footer-logo__image {
  display: none !important;
}

.site-footer .footer-copyright {
  margin-top: 4px;
}

.site-footer .footer-docs-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 100%;
}

.site-footer .footer-card-doc {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--bento-radius);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 769px) {
  .site-footer .footer-logo {
    max-width: 220px;
  }

  /* Ровно один long: ручная тема выше системного fallback. */
  .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--tm {
    display: block !important;
  }

  [data-theme="dark"] .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--tm,
  [data-theme="light"] .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--sv {
    display: none !important;
  }

  [data-theme="dark"] .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--sv,
  [data-theme="light"] .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--tm {
    display: block !important;
  }

  .site-footer .footer-copyright {
    margin-top: 10px;
  }
}

@media (max-width: 992px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .site-footer .footer-card-left {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .site-footer .footer-card-center {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .site-footer .footer-docs-stack {
    grid-column: 1 / 3;
    grid-row: 2;
    flex-direction: row;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    --site-shell-gutter: 16px;
    padding: 24px var(--site-shell-gutter) 20px;
  }

  .site-footer .footer-container {
    grid-template-areas:
      "logo"
      "ip"
      "docs";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .site-footer .footer-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .site-footer .footer-card-doc {
    border-radius: 12px;
  }

  .site-footer .footer-card-center {
    grid-area: logo;
  }

  .site-footer .footer-card-left {
    grid-area: ip;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-docs-stack {
    grid-area: docs;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer .footer-logo {
    max-width: 100px;
  }

  /* Ровно один short: все long остаются скрыты базовой матрицей. */
  .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--tm {
    display: block !important;
  }

  [data-theme="dark"] .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--tm,
  [data-theme="light"] .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--sv {
    display: none !important;
  }

  [data-theme="dark"] .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--sv,
  [data-theme="light"] .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--tm {
    display: block !important;
  }

}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--tm {
    display: none !important;
  }

  :root:not([data-theme]) .site-footer .footer-logo .footer-logo__image--short.footer-logo__image--sv {
    display: block !important;
  }
}

@media (min-width: 769px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--tm {
    display: none !important;
  }

  :root:not([data-theme]) .site-footer .footer-logo .footer-logo__image--long.footer-logo__image--sv {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .site-footer {
    --site-shell-gutter: 12px;
    padding: 20px var(--site-shell-gutter) 16px;
  }

  .site-footer .footer-card {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .site-footer .footer-logo {
    max-width: 80px;
  }

  .site-footer .footer-card-doc {
    padding: 10px 14px;
  }
}

/* ===========================================================================
   HEADER — Компактные раздельные стеклянные Bento-модули
   =========================================================================== */

.site-header {
  --header-module-height: 52px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  padding: 14px var(--site-shell-gutter);
  font-family: "Exo 2", Inter, sans-serif;
}

.site-header__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: var(--site-shell-max);
  margin: 0 auto;
}

.site-header__module,
.site-header__mobile-actions {
  min-width: 0;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: 0 8px 20px rgb(10 15 45 / 9%);
}

.site-header__module {
  box-sizing: border-box;
  height: var(--header-module-height);
  min-height: var(--header-module-height);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
}

.site-header__logo-set,
.site-header__logo {
  display: block;
}

.site-header__logo {
  display: none;
  width: auto;
  height: 28px;
}

.site-header__logo--tm.site-header__logo--long {
  display: block;
}

[data-theme="dark"] .site-header__logo--tm,
[data-theme="light"] .site-header__logo--sv {
  display: none;
}

[data-theme="dark"] .site-header__logo--sv.site-header__logo--long,
[data-theme="light"] .site-header__logo--tm.site-header__logo--long {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header__logo--tm {
    display: none;
  }

  :root:not([data-theme]) .site-header__logo--sv.site-header__logo--long {
    display: block;
  }
}

.site-header__nav,
.site-header__actions,
.site-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header__nav {
  justify-content: space-between;
  padding: 5px 12px;
}

.site-header__nav a,
.site-header__mobile-panel > a {
  color: var(--text-secondary);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header__nav a {
  padding: 11px 13px;
  border-radius: 10px;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__nav a[aria-current="page"],
.site-header__mobile-panel > a:not(.site-header__catalog):not(.site-header__discuss):hover,
.site-header__mobile-panel > a:not(.site-header__catalog):not(.site-header__discuss):focus-visible,
.site-header__mobile-panel > a[aria-current="page"] {
  background: var(--surface-glass-strong);
  color: var(--blue);
}

.site-header__nav a[aria-current="page"],
.site-header__mobile-panel > a[aria-current="page"] {
  position: relative;
}

.site-header__nav a[aria-current="page"]::after,
.site-header__mobile-panel > a[aria-current="page"]::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-main);
  content: "";
}

.site-header__actions {
  justify-self: end;
  gap: 10px;
  height: var(--header-module-height);
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header__catalog,
.site-header__discuss,
.site-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-header__actions > .site-header__catalog,
.site-header__actions > .site-header__discuss,
.site-header__actions > .site-header__icon-button,
.site-header__actions > .site-header__contacts,
.site-header__actions > .site-header__contacts > summary {
  height: 100%;
}

.site-header__catalog {
  padding: 0 16px;
  background: var(--gradient-main);
  border: 0;
  box-shadow: none;
  color: #fff;
}

.site-header__catalog:hover,
.site-header__catalog:focus-visible {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-header__discuss {
  isolation: isolate;
  position: relative;
  padding: 0 14px;
  background: var(--surface-glass-strong);
  border: 1px solid transparent;
  color: var(--text);
}

.site-header__discuss::before {
  position: absolute;
  z-index: 0;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-main);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.site-header__discuss:hover,
.site-header__discuss:focus-visible {
  background: var(--surface);
  color: var(--blue);
  transform: translateY(-1px);
}

.site-header__icon-button {
  position: relative;
  width: 44px;
  padding: 0;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgb(10 15 45 / 9%);
  color: var(--text);
}

.site-header__icon-button:hover,
.site-header__icon-button:focus-visible {
  background: var(--surface-glass-strong);
  border-color: var(--line-accent);
  color: var(--blue);
}

.site-header__icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header__actions .site-header__icon-button svg {
  stroke-width: 1.35;
}

.site-header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--gradient-main);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.site-header__contacts {
  position: relative;
}

.site-header__contacts > summary {
  list-style: none;
}

.site-header__contacts > summary::-webkit-details-marker {
  display: none;
}

.site-header__contacts-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 188px;
  gap: 6px;
  padding: 8px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-raised);
}

.site-header__contacts-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header__contacts-panel a:hover,
.site-header__contacts-panel a:focus-visible {
  background: var(--surface-glass-strong);
  border-color: var(--line-accent);
  color: var(--blue);
}

.site-header__contacts-panel svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header__mobile-actions {
  display: none;
  padding: 5px;
}

.site-header__menu {
  position: relative;
}

.site-header__menu summary {
  list-style: none;
}

.site-header__menu summary::-webkit-details-marker {
  display: none;
}

.site-header__menu summary span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
}

.site-header__mobile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(272px, calc(85vw - 27px));
  min-width: min(240px, calc(100vw - 32px));
  gap: 5px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-raised);
}

.site-header__mobile-panel > a {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 10px;
}

.site-header__mobile-panel > .site-header__catalog,
.site-header__mobile-panel > .site-header__discuss {
  width: 100%;
}

.site-header__mobile-panel > .site-header__discuss {
  justify-content: center;
}

.site-header__mobile-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 5px;
  padding-top: 5px;
}

.site-header__mobile-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(10 15 45 / 6%);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-header__mobile-contacts a:hover,
.site-header__mobile-contacts a:focus-visible {
  background: var(--surface);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  [data-theme="dark"] .cart-modal__heading,
  [data-theme="dark"] .project-form-modal__header {
    background: var(--color-steel);
    border-bottom: 1px solid var(--border);
  }

  [data-theme="dark"] .site-header__brand,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__icon-button,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__menu > summary {
    isolation: isolate;
    position: relative;
    background: var(--color-steel);
    border-color: transparent;
  }

  [data-theme="dark"] .site-header__brand::before,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__icon-button::before,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__menu > summary::before {
    position: absolute;
    z-index: 0;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-main);
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  [data-theme="dark"] .site-header__mobile-actions > .site-header__icon-button svg,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__menu > summary svg,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__icon-button svg path,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__icon-button svg circle,
  [data-theme="dark"] .site-header__mobile-actions > .site-header__menu > summary svg path {
    fill: none;
    stroke: var(--text) !important;
  }

  [data-theme="dark"] .site-header__mobile-contacts a,
  [data-theme="dark"] .site-header__mobile-contacts a:hover,
  [data-theme="dark"] .site-header__mobile-contacts a:focus-visible {
    background: var(--color-steel) !important;
  }

  [data-theme="dark"] .site-header__mobile-contacts svg {
    fill: none;
    stroke: var(--text-on-gradient, #fff);
  }
}

@media (max-width: 1023px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .cart-modal__heading,
  :root:not([data-theme]) .project-form-modal__header {
    background: var(--color-steel);
    border-bottom: 1px solid var(--border);
  }

  :root:not([data-theme]) .site-header__brand,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__icon-button,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__menu > summary {
    isolation: isolate;
    position: relative;
    background: var(--color-steel);
    border-color: transparent;
  }

  :root:not([data-theme]) .site-header__brand::before,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__icon-button::before,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__menu > summary::before {
    position: absolute;
    z-index: 0;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-main);
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  :root:not([data-theme]) .site-header__mobile-actions > .site-header__icon-button svg,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__menu > summary svg,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__icon-button svg path,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__icon-button svg circle,
  :root:not([data-theme]) .site-header__mobile-actions > .site-header__menu > summary svg path {
    fill: none;
    stroke: var(--text) !important;
  }

  :root:not([data-theme]) .site-header__mobile-contacts a,
  :root:not([data-theme]) .site-header__mobile-contacts a:hover,
  :root:not([data-theme]) .site-header__mobile-contacts a:focus-visible {
    background: var(--color-steel) !important;
  }

  :root:not([data-theme]) .site-header__mobile-contacts svg {
    fill: none;
    stroke: var(--text-on-gradient, #fff);
  }
}

.site-header__mobile-contacts svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: url(#mobile-menu-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header__menu summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__module:not(.site-header__actions),
  .site-header__mobile-actions,
  .site-header__mobile-panel,
  .site-header__contacts-panel {
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .site-header__layout {
    grid-template-columns: auto 1fr auto;
  }

  .site-header__brand {
    grid-column: auto;
  }

  /* На планшете показывается ровно один long; ручная тема выше системного fallback. */
  .site-header__logo--long,
  .site-header__logo--short {
    display: none !important;
  }

  .site-header__logo--tm.site-header__logo--long {
    display: block !important;
  }

  [data-theme="dark"] .site-header__logo--tm.site-header__logo--long,
  [data-theme="light"] .site-header__logo--sv.site-header__logo--long {
    display: none !important;
  }

  [data-theme="dark"] .site-header__logo--sv.site-header__logo--long,
  [data-theme="light"] .site-header__logo--tm.site-header__logo--long {
    display: block !important;
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__mobile-actions {
    display: flex;
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .site-header__nav {
    padding-inline: 36px;
  }

  .site-header__actions > .site-header__catalog,
  .site-header__actions > .site-header__discuss,
  .site-header__actions > .site-header__icon-button,
  .site-header__actions > .site-header__contacts > summary {
    border-radius: var(--radius-s);
  }

  .site-header__actions > .site-header__icon-button,
  .site-header__actions > .site-header__contacts,
  .site-header__actions > .site-header__contacts > summary {
    inline-size: var(--header-module-height);
    block-size: var(--header-module-height);
    flex-shrink: 0;
  }
}

@media (min-width: 769px) and (max-width: 1023px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header__logo--tm.site-header__logo--long {
    display: none;
  }

  :root:not([data-theme]) .site-header__logo--sv.site-header__logo--long {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    --site-shell-gutter: 16px;
    /* Логотип выше (52px), поэтому 12px; кнопки 44px получают 13px: разная величина сохраняет одинаковую визуальную кривизну. */
    --header-mobile-brand-radius: 12px;
    --header-mobile-icon-radius: 13px;
    padding: 10px var(--site-shell-gutter);
  }

  .site-header__layout {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .site-header__brand {
    grid-column: auto;
  }

  .site-header__brand {
    min-height: 52px;
    padding: 8px;
    border-radius: var(--header-mobile-brand-radius);
  }

  .site-header__logo--long,
  .site-header__logo--short {
    display: none !important;
  }

  .site-header__logo--tm.site-header__logo--short {
    display: block !important;
  }

  [data-theme="dark"] .site-header__logo--tm.site-header__logo--short,
  [data-theme="light"] .site-header__logo--sv.site-header__logo--short {
    display: none !important;
  }

  [data-theme="dark"] .site-header__logo--sv.site-header__logo--short,
  [data-theme="light"] .site-header__logo--tm.site-header__logo--short {
    display: block !important;
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__mobile-actions {
    display: flex;
    justify-self: end;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-header__mobile-actions .site-header__icon-button {
    border-radius: var(--header-mobile-icon-radius);
  }

  .site-header__mobile-actions > .site-header__icon-button,
  .site-header__mobile-actions > .site-header__menu > summary {
    inline-size: var(--header-module-height);
    block-size: var(--header-module-height);
    flex-shrink: 0;
  }

  .site-header__mobile-panel > .site-header__catalog,
  .site-header__mobile-panel > .site-header__catalog svg {
    color: #fff;
  }

  .site-header__mobile-panel > .site-header__catalog svg {
    fill: currentColor;
    stroke: currentColor;
  }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header__logo--tm.site-header__logo--short {
    display: none !important;
  }

  :root:not([data-theme]) .site-header__logo--sv.site-header__logo--short {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    --site-shell-gutter: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__catalog,
  .site-header__discuss,
  .site-header__icon-button,
  .site-header__mobile-contacts a {
    transition: none;
  }
}

/* Обязательный стандарт page-intro: закреплён по первому экрану «Идеи мерча». */
.page-intro {
  max-width: 660px;
  margin: 0 auto 40px;
  padding-top: 35px;
  text-align: center;
}

.page-intro > .page-intro__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
}

.page-intro > .page-intro__description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .page-intro {
    padding-top: 20px;
  }

  .page-intro > .page-intro__title {
    font-size: 2.2rem;
  }

  .page-intro > .page-intro__description {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-intro > .page-intro__title {
    font-size: 1.8rem;
  }
}

/* Единый close-контрол для корзины и формы, включая их result-диалоги.
   Основная модалка хранит кнопку в safe-area-aware sticky-шапке, result — в
   контенте диалога, поэтому различается только координата, но не сам контрол. */
:is(.cart-modal, .cart-result-modal, .project-form-modal, .project-form-result) .modal-close-control {
  z-index: 6;
  color: var(--text);
  pointer-events: auto;
}

:is(.cart-modal, .cart-result-modal, .project-form-modal, .project-form-result) .modal-close-control svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 639px) {
  :is(.cart-modal, .cart-result-modal, .project-form-modal, .project-form-result) .modal-close-control {
    right: max(16px, env(safe-area-inset-right));
  }

  /* Эти кнопки находятся в sticky-шапках, которые уже отступают от safe area. */
  .cart-modal .cart-modal__close,
  .project-form-modal .project-form-modal__close {
    top: 12px;
  }

  .cart-result-modal .cart-result-modal__close,
  .project-form-result .project-form-result__close {
    top: max(16px, env(safe-area-inset-top));
  }

  .cart-modal__title-row,
  .project-form-modal__title-row {
    padding-right: max(52px, calc(env(safe-area-inset-right) + 52px));
  }

  .cart-result-modal__content,
  .project-form-result__content {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 56px));
  }
}

@media (min-width: 1024px) {
  .page-intro--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    max-width: none;
    gap: clamp(24px, 5vw, 80px);
    text-align: start;
  }

  .page-intro--split .page-intro__description {
    margin-inline: 0;
    text-align: start;
  }
}
