/* ============================
   BRAND — минимализм ч/б
   ============================ */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666;
  --line: #e5e5e5;
  --accent: #0a0a0a;
  --soft-bg: #f4f4f4;
  --font-display: 'Bebas Neue', 'Helvetica Neue', Impact, sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 3vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================
   Бегущая строка сверху
   ============================ */
.marquee {
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  padding-left: 40px;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================
   Шапка
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gutter);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header > .logo { justify-self: start; }
.header > .nav { justify-self: center; }
.header > .header-actions { justify-self: end; }
.logo {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav > a,
.nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  transition: opacity 0.2s;
  line-height: 1;
}
.nav a:hover { opacity: 0.55; }
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 20px; }

.header-actions { display: flex; gap: 16px; align-items: center; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.2s;
  box-sizing: border-box;
  line-height: 1;
}
.cart-btn:hover { background: var(--fg); color: #fff; border-color: var(--fg); }
.cart-btn svg { display: block; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--fg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
}
.cart-btn:hover .cart-count { background: #fff; color: var(--fg); }

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px; height: 28px;
  justify-content: center;
  align-items: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); }

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  height: calc(100vh - 84px);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(80,80,80,0.6) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
}
/* Если задано фоновое изображение — поверх градиента-заглушки */
.hero-bg[data-has-image="true"] {
  background: var(--hero-bg-image, none) center/cover no-repeat;
}
.hero-bg[data-has-image="true"]::before {
  /* убираем сетку если есть фото */
  display: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 var(--gutter);
  animation: heroIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 20px);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 300;
  opacity: 0.92;
  letter-spacing: 0.01em;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================
   Кнопки
   ============================ */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid #fff;
  border-radius: 999px;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: #fff; }
.hero .btn-primary:hover { background: transparent; color: #fff; border-color: #fff; }

section.about-band .btn-outline,
section.cta .btn-primary { /* контекстные */ }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--fg);
  border-radius: 999px;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--fg); color: #fff; }

/* в светлых секциях primary инвертируется */
.categories .btn-primary,
.best-sellers .btn-primary,
.cta .btn-primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.categories .btn-primary:hover,
.cta .btn-primary:hover {
  background: transparent;
  color: var(--fg);
}

/* ============================
   Band (крутится текст)
   ============================ */
.band {
  background: var(--fg);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.02em;
}
.band-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  padding-left: 60px;
}

/* ============================
   Пустой hero (без текста)
   ============================ */
.hero-title-empty:empty { display: none; }
.hero-sub:empty { display: none; margin-bottom: 0; }
.hero-content:has(.hero-title-empty:empty) { gap: 0; }

/* ============================
   Блок из трёх видео под hero
   ============================ */
.hero-videos {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  background: transparent;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  width: 100%;
  background: #000;
}
.hero-video {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
}
.hero-video:hover .video-controls,
.hero-video.touched .video-controls { opacity: 1; }
.video-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.video-btn:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.05); }
.video-btn:active { transform: scale(0.95); }
.video-btn svg { display: block; }

@media (max-width: 768px) {
  .hero-videos-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-video { aspect-ratio: 16 / 22; }
  .video-controls { opacity: 1; } /* на мобилке hover нет — показываем всегда */
}

/* ============================
   Секции — общее
   ============================ */
section {
  padding: 80px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--fg);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.view-all:hover { opacity: 0.55; }

/* ============================
   Категории
   ============================ */
/* ============================
   Категории на главной (референс: xpodium.com.au)
   ============================ */
.categories { padding: 80px 0 40px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Затемнение поверх фото — важно для читаемости белого текста */
  filter: brightness(0.65) grayscale(0.1);
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card:hover { color: #fff; }
.cat-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.cat-arrow {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  color: #fff;
  font-size: 18px;
}
.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: translateY(0);
}
.cat-card:hover .cat-arrow {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Скрытая категория — заглушка "TO BE ANNOUNCED" */
.cat-card-hidden {
  cursor: default;
  pointer-events: none;
}
.cat-card-hidden .cat-img { filter: brightness(0.35) grayscale(0.5); }
.cat-card-hidden .cat-arrow { display: none; }
.cat-placeholder {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 24px;
  text-align: center;
  white-space: nowrap;
}

/* Заглушка TO BE ANNOUNCED на странице каталога */
body[data-cat-hidden="true"] .shop-grid,
body[data-cat-hidden="true"] .filters {
  display: none !important;
}
body[data-cat-hidden="true"] .shop-body {
  display: block !important;
  text-align: center;
}
body[data-cat-hidden="true"] .shop-body::before {
  content: var(--cat-placeholder, "TO BE ANNOUNCED");
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.04em;
  color: var(--fg);
  padding: 120px 0;
  width: 100%;
}

/* ============================
   Сетка товаров
   ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-img {
  aspect-ratio: 1;
  background: var(--soft-bg);
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
  display: block;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-price {
  font-size: 15px;
  font-weight: 700;
}
.product-colors {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.product-color {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

/* ============================
   About band
   ============================ */
.about-band {
  background: var(--fg);
  color: #fff;
  max-width: none;
  margin: 80px 0;
  padding: 100px var(--gutter);
}
.about-content { max-width: 880px; margin: 0 auto; }
.about-band .section-label { color: #aaa; border-bottom-color: #fff; }
.about-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  font-weight: 400;
}
.about-band p {
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 640px;
  margin-bottom: 40px;
  opacity: 0.85;
  font-weight: 300;
}
.about-band .btn-outline {
  color: #fff;
  border-color: #fff;
}
.about-band .btn-outline:hover { background: #fff; color: var(--fg); }

/* ============================
   Features
   ============================ */
/* Скидки от суммы заказа */
.discounts {
  padding: 80px var(--gutter);
  text-align: center;
}
.discounts-head { margin-bottom: 48px; }
.discounts-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.discounts-head p { color: var(--muted); font-size: 16px; }
.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.discount-tier {
  border: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.25s;
}
.discount-tier:hover {
  background: var(--fg);
  color: #fff;
  transform: translateY(-4px);
}
.discount-amount {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.discount-tier:hover .discount-amount { color: rgba(255,255,255,0.7); }
.discount-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .discounts { padding: 60px var(--gutter); }
  .discounts-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .discount-tier { padding: 20px 8px; }
  .discount-value { font-size: 32px; }
  .discount-amount { font-size: 11px; }
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.feature {
  padding: 48px 32px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.feature-text {
  font-size: 13px;
  color: var(--muted);
}

/* ============================
   CTA
   ============================ */
.cta {
  text-align: center;
  padding: 120px var(--gutter);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
}
.cta p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--fg);
  color: #fff;
  padding: 80px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}
.footer-brand p { opacity: 0.7; font-size: 14px; max-width: 280px; }
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.6;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 0.5; }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ============================
   Корзина (drawer)
   ============================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 100%);
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 201;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
}
.cart-close { font-size: 22px; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 80px; height: 80px;
  background: var(--soft-bg);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty button {
  width: 26px; height: 26px;
  font-size: 14px;
  font-weight: 600;
}
.qty span { min-width: 22px; text-align: center; font-size: 12px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-item-price { font-size: 13px; font-weight: 700; }
.cart-item-remove { font-size: 11px; color: var(--muted); text-decoration: underline; }
.cart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 22px;
}
.cart-checkout {
  width: 100%;
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.cart-checkout:hover:not(:disabled) { background: transparent; color: var(--fg); }
.cart-checkout:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cart-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================
   Страница каталога
   ============================ */
.shop-head {
  padding: 48px var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.shop-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin-bottom: 12px;
}
.shop-subtitle { color: var(--muted); }

.shop-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 20px var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.filters {
  position: sticky;
  top: 100px;
  height: fit-content;
  font-size: 13px;
}
.filter-group { margin-bottom: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.filter-group:first-child { border-top: none; padding-top: 0; }
.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-list label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.filter-list label:hover { opacity: 0.6; }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] {
  accent-color: var(--fg);
  width: 14px; height: 14px;
}
.filter-count { color: var(--muted); font-size: 11px; margin-left: auto; }

.shop-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.shop-count { font-size: 13px; color: var(--muted); }
.shop-sort {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: inherit;
  background: #fff;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}
.shop-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

/* ============================
   Карточка товара (модалка)
   ============================ */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal.open { display: flex; }
.product-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 1500px;
  height: 750px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.product-modal-inner > .pm-gallery {
  overflow: hidden;
  height: 100%;
}
.product-modal-inner > .pm-info {
  overflow-y: auto;
  height: 100%;
}
/* На десктопе блок рекомендаций — третья колонка */
.product-modal-inner > .pm-info > .pm-recommendations {
  display: none;
}
.product-modal-inner .pm-recommendations-side {
  overflow-y: auto;
  height: 100%;
  padding: 40px 32px;
  border-left: 1px solid var(--line);
  background: #fafafa;
}
.pm-recommendations-side .pm-rec-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pm-recommendations-side .pm-rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pm-recommendations-side .pm-rec-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s;
}
.pm-recommendations-side .pm-rec-card:hover {
  transform: translateY(-3px);
}
.pm-recommendations-side .pm-rec-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.pm-recommendations-side .pm-rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-recommendations-side .pm-rec-brand {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pm-recommendations-side .pm-rec-name {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-recommendations-side .pm-rec-price {
  font-size: 13px;
  font-weight: 600;
}
.pm-img {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
  position: relative;
  overflow: hidden;
}
.pm-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pm-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 2;
  font-size: 16px;
}
.pm-gallery {
  display: flex;
  flex-direction: column;
  background: var(--soft-bg);
  position: relative;
  height: 100%;
  min-height: 0;
}
.pm-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 12px 16px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  background: #fff;
  border-top: 1px solid var(--line);
}
.pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.15s;
  color: #111;
  line-height: 1;
  padding: 0 0 3px 0;
}
.pm-nav:hover { background: #fff; }
.pm-nav:active { transform: translateY(-50%) scale(0.94); }
.pm-prev { left: 16px; }
.pm-next { right: 16px; }

.pm-thumb {
  flex: 0 0 64px;
  height: 64px;
  background: var(--soft-bg);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  scroll-snap-align: start;
}
.pm-thumb:hover { opacity: 0.9; }
.pm-thumb.active { border-color: var(--fg); opacity: 1; }
.pm-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pm-info { padding: 48px 40px; }
.pm-brand {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pm-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  margin-bottom: 16px;
  word-break: break-word;
  hyphens: auto;
}
.pm-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}
.pm-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--muted);
}
.pm-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.pm-options[data-group="size"] {
  display: flex;
  flex-wrap: wrap;
}
.pm-options[data-group="size"] .pm-option {
  min-width: 50px;
  text-align: center;
}
.pm-option {
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.pm-option > .product-color {
  flex-shrink: 0;
}
.pm-option .pm-option-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pm-option:hover { border-color: var(--fg); }
.pm-option.selected { background: var(--fg); color: #fff; border-color: var(--fg); }
.pm-add {
  width: 100%;
  padding: 16px;
  background: var(--fg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid var(--fg);
  transition: all 0.2s;
  margin-top: 8px;
}
.pm-add:hover { background: transparent; color: var(--fg); }

/* ============================
   Адаптив
   ============================ */
@media (max-width: 1024px) {
  .product-grid, .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { aspect-ratio: 4 / 5; padding: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: none; border-bottom: 1px solid var(--line); }
  .feature:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
  .shop-body { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
  }
  .nav { display: none; }
  .burger { display: flex; }
  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    z-index: 99;
    gap: 4px;
  }
  .nav.mobile-open > a,
  .nav.mobile-open > .nav-item,
  .nav.mobile-open > .nav-item > a {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  .nav.mobile-open .nav-item {
    display: flex;
    flex-direction: column;
  }
  .nav.mobile-open .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: none;
    padding: 0 0 0 16px;
    margin: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav.mobile-open .dropdown a {
    padding: 8px 0;
    font-size: 14px;
    text-align: left;
    width: 100%;
  }
  .hero h1 { font-size: clamp(64px, 18vw, 140px); }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }

  /* Категории на мобилке — 2×2, квадратные карточки */
  .category-grid { gap: 2px; }
  .cat-card { aspect-ratio: 1 / 1.1; padding: 20px; }
  .cat-label { font-size: clamp(14px, 4vw, 22px); }
  .cat-arrow { width: 32px; height: 32px; opacity: 1; transform: none; margin-bottom: 8px; }

  /* Модалка товара на мобилке - простой вертикальный скролл */
  .product-modal {
    padding: 0 !important;
    align-items: stretch !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #fff !important;
  }
  .product-modal-inner {
    grid-template-columns: 1fr !important;
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
    background: #fff !important;
  }
  /* На мобиле боковой блок прячем, встроенный показываем */
  .product-modal-inner > .pm-recommendations-side {
    display: none !important;
  }
  .product-modal-inner > .pm-info > .pm-recommendations {
    display: block !important;
  }
  .product-modal-inner > .pm-gallery,
  .product-modal-inner > .pm-info {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  .pm-gallery {
    position: relative;
    background: #fff;
  }
  .pm-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    background: var(--soft-bg) !important;
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .pm-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .pm-nav { width: 36px; height: 36px; font-size: 18px; }
  .pm-prev { left: 10px; }
  .pm-next { right: 10px; }
  .pm-thumbs {
    padding: 8px 12px 12px;
    gap: 6px;
    overflow-x: auto;
  }
  .pm-thumb { flex: 0 0 48px; height: 48px; }
  .pm-info {
    padding: 24px !important;
    padding-bottom: 60px !important;
    display: block !important;
  }
  .pm-close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999 !important;
  }
  .pm-options {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  /* Меньшее затемнение hero-фото на мобилке (там и так темнее визуально) */
  .page-hero-bg::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  }

  /* Футер на мобилке — 2 колонки + бренд сверху на всю ширину */
  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding: 50px var(--gutter) 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .footer-logo { font-size: 28px; }
  .footer-title { font-size: 11px; margin-bottom: 14px; }
  .footer-col a { font-size: 13px; padding: 5px 0; }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
  }
  .footer-legal {
    text-align: center;
    line-height: 1.8;
  }

  .footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .about-band h2 { font-size: 40px; }
  .band { font-size: 32px; }
}

/* ============================
   Страница сотрудничества
   ============================ */
.page-hero {
  padding: 100px var(--gutter) 60px;
  background: var(--soft-bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  box-sizing: border-box;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--page-title-size, clamp(40px, 6vw, 96px));
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 16px 0 12px;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-hero-sub {
  font-size: var(--page-subtitle-size, clamp(16px, 1.6vw, 20px));
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.partners-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: 80px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}
.partners-text p { margin-bottom: 20px; line-height: 1.7; font-size: 16px; }
.partners-text p.lead { font-size: 18px; line-height: 1.6; color: var(--fg); font-weight: 500; }

.partners-contacts h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 12px 0 32px;
  text-transform: uppercase;
}
.partners-tg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partners-tg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.partners-tg-card:hover {
  background: var(--fg);
  color: #fff;
  transform: translateY(-2px);
}
.partners-tg-handle {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}
.partners-tg-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.partners-tg-card:hover .partners-tg-label { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .page-hero { padding: 60px var(--gutter) 40px; }
  .partners-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px var(--gutter);
  }
}

/* ============================
   Фоны для страниц (О нас, Сотрудничество, Контакты)
   ============================ */

/* Hero-баннер с фото — общий стиль для всех страниц */
.page-hero-bg {
  position: relative;
  padding: 140px var(--gutter) 100px;
  text-align: center;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 0;
}
.page-hero-bg > * { position: relative; z-index: 1; }
.page-hero-bg .eyebrow {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.page-hero-bg h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.page-hero-bg .tagline,
.page-hero-bg .page-hero-sub,
.page-hero-bg p {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Полупрозрачный фон страницы (под основным контентом) */
body.has-page-bg {
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.has-page-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: -1;
  pointer-events: none;
}

/* Контент-секции на страницах с фоном — лёгкая полупрозрачная подложка */
body.has-page-bg .story-section,
body.has-page-bg .partners-content,
body.has-page-bg .contact-hero,
body.has-page-bg .contact-grid,
body.has-page-bg .info-sections,
body.has-page-bg .story-values {
  position: relative;
}

/* На страницах с фоном — карточки и блоки на белом полупрозрачном фоне */
body.has-page-bg .story-values,
body.has-page-bg .info-sections {
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Mobile fix для background-attachment fixed (плохо работает на iOS) */
@media (max-width: 768px) {
  body.has-page-bg {
    background-attachment: scroll;
  }
  .page-hero-bg {
    padding: 100px var(--gutter) 70px;
  }
  /* Заголовки страниц на мобилке — мельче и обязательно с переносами */
  .page-hero h1,
  .story-hero h1,
  .contact-hero h1 {
    font-size: clamp(28px, 9vw, 48px) !important;
    line-height: 1.05;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .page-hero-sub,
  .story-hero .tagline,
  .contact-hero p {
    font-size: 15px !important;
    line-height: 1.5;
  }
}

/* Кликабельные элементы в корзине */
.cart-item-clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}
.cart-item-clickable:hover {
  opacity: 0.7;
}

/* Юридические реквизиты в футере */
.footer-legal {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  width: 100%;
  text-align: left;
  line-height: 1.7;
}
.footer-bottom {
  flex-wrap: wrap;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .footer-legal {
    text-align: center;
  }
}

/* Всплывашка с полным названием цвета (для обрезанных кнопок) */
.color-tooltip {
  position: fixed;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-width: calc(100vw - 16px);
}
.color-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Блок "Вам ещё может понравиться" в модалке товара
   ============================ */
.pm-recommendations {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pm-rec-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: left;
}
.pm-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pm-rec-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s;
}
.pm-rec-card:hover {
  transform: translateY(-4px);
}
.pm-rec-img {
  aspect-ratio: 1 / 1;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.pm-rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-rec-brand {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pm-rec-name {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-rec-price {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pm-recommendations {
    margin-top: 30px;
    padding-top: 25px;
  }
  .pm-rec-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .pm-rec-grid {
    gap: 10px;
  }
}
