/* ==========================================================================
   Се Бародарон — дизайн-система
   Палитра: графит / белый / золото. Премиальный минимализм.
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-soft: #0e0f12;
  --surface: #141519;
  --surface-2: #1a1c21;
  --surface-3: #22242b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5f4f0;
  --ink-soft: #d9d8d1;
  --muted: #9b9ba3;
  --muted-2: #6f7078;
  --gold: #c9a86a;
  --gold-bright: #e7cd97;
  --gold-deep: #8a6c3a;
  --danger: #e2574c;
  --ok: #5fbf82;
  --font-logo: 'Syne', 'Manrope', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0.2, 0.15, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --header-h: 74px;
  --maxw: 1360px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--tg-vh, 100dvh);
}

/* Ничего не должно выходить за пределы экрана по горизонтали */
#app, main, .container, .site-header, .announce { max-width: 100%; }

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold); color: #0b0b0c; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0b0d; }
::-webkit-scrollbar-thumb { background: #26272d; border-radius: 8px; border: 2px solid #0b0b0d; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ------------------------------------------------------------------ */
/* Типографика                                                         */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--gold); }

.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.gold { color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 54px); }
.container-wide { max-width: 1560px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(34px, 4vw, 60px); flex-wrap: wrap; }
.section-head .lead { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.card-link { display: contents; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 46px; }
.text-center { text-align: center; } .text-center .lead { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* Кнопки                                                              */
/* ------------------------------------------------------------------ */

.btn {
  --bh: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--bh);
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #0b0b0c;
  box-shadow: 0 12px 34px -14px rgba(201, 168, 106, 0.7);
}
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
}
.btn-gold:hover::after { transform: translateX(130%); }
.btn-gold:hover { box-shadow: 0 18px 46px -14px rgba(201, 168, 106, 0.85); }

.btn-outline { border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 168, 106, 0.06); }

.btn-dark { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-dark:hover { background: var(--surface-3); border-color: var(--line-strong); }

.btn-ghost { padding: 0 6px; height: auto; letter-spacing: 0.14em; }
.btn-ghost::before {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-block { width: 100%; }
.btn-sm { --bh: 42px; padding: 0 22px; font-size: 11.5px; }
.btn-lg { --bh: 60px; padding: 0 40px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; position: relative;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: all 0.35s var(--ease); white-space: nowrap;
}
.pill:hover { color: var(--ink); border-color: var(--line-strong); }
.pill.active { color: #0b0b0c; background: var(--gold); border-color: var(--gold); }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 11px;
  border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; backdrop-filter: blur(6px);
}
.badge-hit { background: var(--gold); color: #0b0b0c; }
.badge-new { background: #14151a; color: var(--gold); border: 1px solid var(--gold-deep); }
.badge-sale { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------------ */
/* Формы                                                               */
/* ------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 16px; font-family: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.14);
  background: var(--surface-2);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; cursor: pointer;
}
.field.error .input, .field.error .textarea, .field.error .select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.error .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Колонки сеток и полей не растягиваются содержимым (фикс переполнения на узких экранах) */
.checkout-layout > *, .cart-layout > *, .account-layout > *, .form-row > *, .field { min-width: 0; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex: none; }

/* ------------------------------------------------------------------ */
/* Announcement bar                                                    */
/* ------------------------------------------------------------------ */

.announce {
  background: #050506; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  height: 40px; display: flex; align-items: center; overflow: hidden; position: relative; z-index: 60;
}
.announce .marquee { display: flex; gap: 60px; white-space: nowrap; animation: marquee 32s linear infinite; padding-left: 60px; }
.announce .marquee span { display: inline-flex; align-items: center; gap: 60px; }
.announce .marquee span::after { content: '◆'; color: var(--gold-deep); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled { background: rgba(6, 6, 8, 0.9); }
.site-header.hide { transform: translateY(-104%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 26px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 34px; height: 34px; }
.logo-word {
  font-family: var(--font-logo); font-weight: 800; font-size: 22px;
  letter-spacing: 0.05em; color: var(--ink); padding-left: 0.05em;
  text-transform: uppercase; line-height: 1;
}
.logo-word b { color: var(--gold); font-weight: 800; }
.logo:hover .logo-mark { animation: logoSpin 1.1s var(--ease); }
@keyframes logoSpin { 50% { transform: rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg); } }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-link {
  position: relative; padding: 10px 15px; font-size: 12.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
  transition: color 0.35s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  background: rgba(10, 10, 13, 0.97); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 40px clamp(18px, 4vw, 54px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  z-index: 54;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; }
.mega-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 30px; }
.mega-cat { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); transition: color 0.3s var(--ease), padding 0.4s var(--ease); }
.mega-cat:hover { color: var(--gold); padding-left: 8px; }
.mega-cat .n { font-family: var(--font-display); font-size: 21px; }
.mega-cat .c { font-size: 11px; color: var(--muted-2); letter-spacing: 0.1em; }
.mega-feature { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; }
.mega-feature img { width: 46%; object-fit: cover; }
.mega-feature .body { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mega-feature h4 { font-family: var(--font-display); font-size: 24px; }

.nav-toggle { display: none; }

.cart-count, .fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: #0b0b0c;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform 0.4s var(--ease);
}
.cart-count.show, .fav-count.show { transform: scale(1); }

/* Мобильное меню */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  transform: translateX(100%); transition: transform 0.6s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.mobile-nav-body { padding: 30px 22px 60px; display: flex; flex-direction: column; }
.mobile-cat { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 30px; display: flex; justify-content: space-between; align-items: center; }
.mobile-cat small { font-family: var(--font-body); font-size: 11px; color: var(--gold); letter-spacing: 0.2em; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.mobile-links a { padding: 12px 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-size: 13px; }

/* ------------------------------------------------------------------ */
/* Search overlay                                                      */
/* ------------------------------------------------------------------ */

.search-overlay {
  position: fixed; inset: 0; z-index: 95; background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  display: flex; flex-direction: column; padding: clamp(20px, 6vw, 90px);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay .top { display: flex; justify-content: flex-end; }
.search-box { max-width: 900px; margin: auto auto 0; width: 100%; }
.search-box form { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-strong); padding-bottom: 18px; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: none; color: var(--ink);
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 52px); padding: 0;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--muted-2); }
.search-results { margin: 30px 0 auto; max-width: 900px; width: 100%; display: grid; gap: 10px; }
.search-result { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all 0.3s var(--ease); }
.search-result:hover { background: var(--surface); border-color: var(--line); }
.search-result img { width: 54px; height: 68px; object-fit: cover; border-radius: 8px; }
.search-result .price { margin-left: auto; color: var(--gold); font-weight: 600; }
.search-hint { color: var(--muted-2); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ------------------------------------------------------------------ */
/* Intro / preloader                                                   */
/* ------------------------------------------------------------------ */

#intro {
  position: fixed; inset: 0; z-index: 200; background: #050506;
  display: flex; align-items: center; justify-content: center;
  width: 100%; overflow: hidden;
}
#intro.done { display: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 24px; text-align: center; }
.intro-logo { width: 76px; height: 76px; }
.intro-word {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 5.5vw, 42px); letter-spacing: 0.06em;
  line-height: 1.15; color: var(--ink); max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; min-height: min(94vh, 900px); display: flex; align-items: center; overflow: hidden; padding: 70px 0 60px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 78% 30%, rgba(201, 168, 106, 0.16), transparent 60%),
              radial-gradient(50% 60% at 20% 80%, rgba(201, 168, 106, 0.06), transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; width: 100%; }
.hero-copy { max-width: 640px; }
.hero-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.96; letter-spacing: -0.03em; margin: 22px 0;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 46ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; }
.hero-stat .n { font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.hero-stat .l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame { position: absolute; inset: 14px; border: 1px solid rgba(201, 168, 106, 0.35); border-radius: 14px; pointer-events: none; }
.hero-float {
  position: absolute; background: rgba(12, 12, 15, 0.86); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.18); }
.hero-float.one { left: -18px; top: 16%; }
.hero-float.two { right: -14px; bottom: 16%; }
.hero-float .t { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.hero-float .v { font-size: 14px; font-weight: 600; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollHint 2s var(--ease) infinite; }
@keyframes scrollHint { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------------ */
/* Marquee band                                                        */
/* ------------------------------------------------------------------ */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.band .track { display: flex; gap: 70px; white-space: nowrap; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: clamp(22px, 3vw, 40px); color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.band .track b { -webkit-text-stroke: 0; color: var(--gold); font-weight: 500; }
.band:hover .track { animation-play-state: paused; }

/* ------------------------------------------------------------------ */
/* Categories                                                          */
/* ------------------------------------------------------------------ */

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  background: var(--surface);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1s var(--ease), opacity 0.6s var(--ease); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 7, 0.9)); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card .inner { position: relative; z-index: 2; }
.cat-card h3 { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 36px); }
.cat-card .cnt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.cat-card .go { margin-top: 12px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; transform: translateY(6px); opacity: 0; transition: all 0.5s var(--ease); }
.cat-card:hover .go { opacity: 1; transform: translateY(0); }
.cat-card.tall { grid-row: span 2; min-height: 100%; }

/* ------------------------------------------------------------------ */
/* Product card                                                        */
/* ------------------------------------------------------------------ */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid > *, .cat-grid > *, .feature-grid > *, .collection-strip > * { min-width: 0; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 168, 106, 0.35); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0c0c0f; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.card-wish {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 13, 0.6); backdrop-filter: blur(8px); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; transition: all 0.35s var(--ease);
}
.card-wish:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
.card-wish.active { background: var(--gold); color: #0b0b0c; border-color: var(--gold); }
.card-wish svg { width: 17px; height: 17px; }
.card-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; gap: 8px; transform: translateY(130%); opacity: 0; transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.card:hover .card-quick { transform: translateY(0); opacity: 1; }
.card-quick .btn { flex: 1 1 0; min-width: 0; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-cat { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.card-name { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; min-width: 0; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 19px; min-width: 0; }
.price s { color: var(--muted-2); font-size: 14px; margin-left: 8px; }
.price .cur { font-size: 0.72em; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 12px; }
.rating svg { width: 13px; height: 13px; }
.card-colors { display: flex; gap: 5px; margin-top: 4px; }
.color-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ */
/* Collections editorial                                               */
/* ------------------------------------------------------------------ */

.collection-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.collection-feature.reverse .cf-media { order: 2; }
.cf-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5/4; }
.cf-media img { width: 100%; height: 100%; object-fit: cover; }
.cf-body h3 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 74px); letter-spacing: -0.02em; }
.cf-body .tagline { color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; }
.cf-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.collection-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.collection-strip .mini { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.collection-strip .mini img { aspect-ratio: 1; object-fit: cover; }

/* ------------------------------------------------------------------ */
/* Features / values                                                   */
/* ------------------------------------------------------------------ */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.feature { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), transparent); transition: border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.feature:hover { border-color: rgba(201, 168, 106, 0.35); transform: translateY(-4px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(201, 168, 106, 0.1); color: var(--gold); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------ */
/* Newsletter                                                          */
/* ------------------------------------------------------------------ */

.newsletter { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: clamp(38px, 6vw, 80px); background: radial-gradient(80% 120% at 80% 0%, rgba(201, 168, 106, 0.14), transparent 60%), var(--surface); }
.newsletter form { display: flex; gap: 12px; max-width: 540px; margin-top: 26px; }
.newsletter .input { flex: 1; }

/* ------------------------------------------------------------------ */
/* Catalog page                                                        */
/* ------------------------------------------------------------------ */

.page-hero { padding: clamp(46px, 7vw, 96px) 0 clamp(26px, 4vw, 44px); position: relative; }
.page-hero .crumbs { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); max-width: 60ch; margin-top: 14px; }

.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(24px, 3vw, 46px); align-items: start; padding-bottom: 100px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.filters h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.filters h4:first-child { margin-top: 0; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { min-width: 46px; height: 40px; padding: 0 12px; justify-content: center; }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs .input { padding: 11px 12px; font-size: 16px; }
.price-inputs span { color: var(--muted-2); }
.range { width: 100%; accent-color: var(--gold); }
.filter-toggle { display: none; }
.catalog-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.catalog-toolbar .count { color: var(--muted); font-size: 13px; }
.catalog-toolbar .spacer { flex: 1; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-x { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold); font-size: 12px; cursor: pointer; }
.chip-x:hover { background: rgba(201, 168, 106, 0.1); }
.empty-state { padding: 90px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state .big { font-family: var(--font-display); font-size: 40px; color: var(--ink); margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.page-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; transition: all 0.3s var(--ease); }
.page-btn:hover, .page-btn.active { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #0b0b0c; }

/* ------------------------------------------------------------------ */
/* Product page                                                        */
/* ------------------------------------------------------------------ */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 70px); padding: clamp(26px, 4vw, 50px) 0 90px; align-items: start; }
.pdp > * { min-width: 0; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.pdp-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #0c0c0f; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); cursor: zoom-in; }
.pdp-main.zoom img { transform: scale(1.7); cursor: zoom-out; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-thumb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #0c0c0f; cursor: pointer; transition: border-color 0.3s var(--ease); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--gold); }
.pdp-cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.pdp-title { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.02em; margin: 10px 0 16px; }
.pdp-price { font-family: var(--font-display); font-size: 34px; margin: 18px 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pdp-price s { font-size: 20px; color: var(--muted-2); }
.pdp-price .save { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--danger); }
.pdp-desc { color: var(--muted); margin: 18px 0; }
.opt-label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 24px 0 12px; }
.opt-label .picked { color: var(--ink); letter-spacing: 0.05em; text-transform: none; }
.colors-row { display: flex; gap: 12px; }
.color-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; position: relative; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); padding: 0; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--gold); }
.color-swatch.active::after { content: ''; position: absolute; inset: -6px; border: 1px solid var(--gold); border-radius: 50%; }
.sizes-row { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt { min-width: 52px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; font-size: 14px; transition: all 0.3s var(--ease); }
.size-opt:hover { border-color: var(--line-strong); }
.size-opt.active { border-color: var(--gold); color: var(--gold); background: rgba(201, 168, 106, 0.08); }
.size-opt.out { opacity: 0.3; text-decoration: line-through; pointer-events: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 52px; overflow: hidden; }
.qty button { width: 50px; height: 100%; background: none; border: none; color: var(--ink); font-size: 20px; cursor: pointer; transition: color 0.3s var(--ease); }
.qty button:hover { color: var(--gold); }
.qty span { width: 46px; text-align: center; font-weight: 600; }
.pdp-buy { display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap; }
.pdp-buy .btn { flex: 1 1 220px; min-width: 0; }
.pdp-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13px; }
.pdp-meta div { display: flex; align-items: center; gap: 8px; }
.pdp-meta svg { width: 17px; height: 17px; color: var(--gold); }
.accordion { border-top: 1px solid var(--line); margin-top: 30px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; background: none; border: none; color: var(--ink); text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; letter-spacing: 0.04em; }
.acc-head .plus { color: var(--gold); transition: transform 0.4s var(--ease); }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); color: var(--muted); font-size: 14px; }
.acc-body ul { margin: 0 0 22px; padding-left: 18px; }
.acc-body li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ */
/* Cart / checkout                                                     */
/* ------------------------------------------------------------------ */

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 44px); padding-bottom: 100px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 104px 1fr auto; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-items: center; }
.cart-item > * { min-width: 0; }
.cart-item img { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cart-item .name { font-weight: 600; font-size: 16px; }
.cart-item .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cart-item .row { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 38px; font-size: 17px; }
.cart-item .qty span { width: 36px; }
.link-danger { color: var(--muted-2); font-size: 12.5px; cursor: pointer; background: none; border: none; letter-spacing: 0.08em; }
.link-danger:hover { color: var(--danger); }
.cart-item .line-price { font-family: var(--font-display); font-size: 20px; text-align: right; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.summary h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--muted); font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; color: var(--ink); font-size: 20px; font-family: var(--font-display); }
.sum-row .gold { color: var(--gold); }
.promo-row { display: flex; gap: 10px; margin: 18px 0; }
.promo-row .input { padding: 12px 14px; }
.promo-msg { font-size: 13px; margin-top: -8px; margin-bottom: 14px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.bad { color: var(--danger); }
.promo-hints { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 44px); padding-bottom: 100px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; margin-bottom: 20px; }
.panel h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 22px; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all 0.3s var(--ease); }
.pay-opt:hover { border-color: var(--line-strong); }
.pay-opt.active { border-color: var(--gold); background: rgba(201, 168, 106, 0.06); }
.pay-opt input { accent-color: var(--gold); }
.order-item-mini { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-item-mini img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.order-item-mini .price { margin-left: auto; font-size: 16px; }

/* Успешный заказ */
.success { text-align: center; padding: 90px 20px; max-width: 640px; margin: 0 auto; }
.success .tick { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.success .tick svg { width: 40px; height: 40px; }
.success .num { font-family: var(--font-display); font-size: 30px; color: var(--gold); margin: 18px 0; }

/* ------------------------------------------------------------------ */
/* Account / auth                                                      */
/* ------------------------------------------------------------------ */

.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 40px); }
.auth-aside { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: flex; align-items: flex-end; padding: 60px; }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.auth-aside::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,7,0.95), rgba(5,5,7,0.3)); }
.auth-aside .body { position: relative; z-index: 2; }
.auth-aside h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-tabs { display: flex; gap: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.auth-tab { background: none; border: none; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 0 16px; cursor: pointer; position: relative; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 3vw, 46px); padding-bottom: 100px; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; color: var(--muted); padding: 14px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; transition: all 0.3s var(--ease); }
.account-nav button:hover { color: var(--ink); background: var(--surface-2); }
.account-nav button.active { color: var(--gold); background: rgba(201, 168, 106, 0.08); }
.account-nav svg { width: 18px; height: 18px; }
.account-pane { display: none; animation: fadeUp 0.5s var(--ease); }
.account-pane.active { display: block; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; margin-bottom: 16px; }
.order-card .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.order-card .num { font-family: var(--font-display); font-size: 22px; }
.status { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.status.processing { color: var(--gold); border-color: var(--gold-deep); }
.status.shipped { color: #7fb0e0; }
.status.done { color: var(--ok); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); background: #060608; padding: 70px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--muted); padding: 7px 0; font-size: 14px; transition: color 0.3s var(--ease), padding 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 18px 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.3s var(--ease); }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12.5px; flex-wrap: wrap; gap: 14px; }
.footer-demo { margin-top: 30px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted-2); font-size: 12.5px; line-height: 1.6; background: color-mix(in srgb, var(--gold) 4%, transparent); }
.demo-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 20px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); vertical-align: middle; }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }

/* ------------------------------------------------------------------ */
/* Toast, modal, misc                                                  */
/* ------------------------------------------------------------------ */

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-radius: 12px;
  background: rgba(18, 18, 22, 0.96); border: 1px solid var(--line-strong); backdrop-filter: blur(12px);
  color: var(--ink); font-size: 14px; box-shadow: var(--shadow); min-width: 260px; max-width: 380px;
  transform: translateX(120%); transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.toast.show { transform: translateX(0); }
.toast.err { border-color: var(--danger); }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--danger); }

.modal-back { position: fixed; inset: 0; z-index: 130; background: rgba(4, 4, 6, 0.78); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { opacity: 1; visibility: visible; }
.modal { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 940px; width: 100%; max-height: 90vh; max-height: 90dvh; overflow: auto; transform: translateY(20px) scale(0.98); transition: transform 0.5s var(--ease); }
.modal-back.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 5; }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.qv .body { padding: 40px; }

.spinner { width: 34px; height: 34px; border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; padding: 80px 0; }

.divider { height: 1px; background: var(--line); margin: 60px 0; border: none; }

/* Недавно просмотренные */
.mini-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.mini-row .card { min-width: 240px; }

/* ------------------------------------------------------------------ */
/* Анимации появления                                                  */
/* ------------------------------------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal-scale { opacity: 0; transform: scale(0.96); }
.js .reveal-lines .line { display: block; overflow: hidden; }
.js .reveal-lines .line > span { display: block; transform: translateY(110%); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Адаптив                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .mega-grid { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-stats { gap: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.tall { grid-row: auto; min-height: 340px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
  .summary, .account-nav { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .collection-feature { grid-template-columns: 1fr; }
  .collection-feature.reverse .cf-media { order: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .collection-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 78px 1fr; }
  .cart-item img { width: 78px; height: 100px; }
  .cart-item .line-price { grid-column: 2; text-align: left; }
  .qv { grid-template-columns: 1fr; }
  .qv img { min-height: 240px; max-height: 300px; }
  .qv .body { padding: 26px; }
  .hero-stats { flex-wrap: wrap; gap: 18px 30px; }
  .hero-float { display: none; }
  .newsletter form { flex-direction: column; }
  .header-inner { gap: 12px; }
  .logo-word { font-size: 19px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; }
  .announce { font-size: 10px; }
  /* Кнопки карточки — в столбик, чтобы не выходить за её пределы */
  .card-quick { flex-direction: column; gap: 6px; }
  .card-quick .btn { width: 100%; }
  .pdp-buy .btn { flex: 1 1 100%; }
  .cart-item .qty { max-width: 100%; }
}
@media (max-width: 420px) {
  .product-grid { gap: 10px; }
  .card-body { padding: 13px; }
  .card-name { font-size: 14px; }
  .price { font-size: 16px; }
}

/* Планшеты и тач: всегда видимые действия карточки */
@media (hover: none) {
  .card-quick { transform: translateY(0); opacity: 1; position: static; margin-top: 12px; }
  .card:hover { transform: none; }
  .go { opacity: 1; transform: none; }
}

/* Переход между страницами */
.page-transition {
  position: fixed; inset: 0; background: var(--bg); z-index: 180;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.page-transition.on { opacity: 1; }

/* Вход героя (управляется из home.js) */
.hero-copy .line { display: block; overflow: hidden; }
.hero-copy .line > span { display: block; }
.js .hero-copy .line > span { transform: translateY(115%); }

/* Заглушки изображений и артикул */
.art-tag { position: absolute; bottom: 12px; left: 12px; font-size: 10px; letter-spacing: 0.2em; color: var(--muted-2); text-transform: uppercase; }

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .js .reveal-lines .line > span { transform: none; }
  .js .hero-copy .line > span { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Мобильное приложение (PWA) и «вырезы» экрана                        */
/* ------------------------------------------------------------------ */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-x: none; }

/* Динамическая высота: корректно «подгоняем» экран под адресную строку */
@supports (height: 100dvh) {
  body { min-height: var(--tg-vh, 100dvh); }
  .auth-wrap { min-height: calc(100dvh - var(--header-h) - 40px); }
  .hero { min-height: min(94svh, 900px); }
}

/* Учёт «челки» и системных панелей (iOS/Android) */
@supports (padding: env(safe-area-inset-top)) {
  .announce { padding-top: env(safe-area-inset-top); height: calc(40px + env(safe-area-inset-top)); }
  .mobile-nav { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav-head { height: calc(var(--header-h) + env(safe-area-inset-top)); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .toast-wrap { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* Отдельные правила для режима «приложение» (закреплено на домашнем экране) */
@media all and (display-mode: standalone) {
  .site-header { top: 0; }
  /* Кликабельная «шапка» не дублирует строку состояния */
  .announce { -webkit-user-select: none; user-select: none; }
}

/* Компактная шапка на телефонах — вписываемся ровно в ширину экрана */
.hdr-ico { display: none; }
.hdr-ico svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .site-header .header-inner { gap: 8px; }
  .logo { flex: 0 1 auto; min-width: 0; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-word {
    font-size: 14px; letter-spacing: 0.03em; padding-left: 0.03em;
    white-space: nowrap;
  }
  .header-actions { gap: 2px; min-width: 0; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .header-actions .btn { padding: 8px 10px; font-size: 11px; }
  /* «Войти» на телефоне — компактной иконкой, как остальные */
  .header-actions .hdr-ico { display: inline-flex; align-items: center; }
  .header-actions .hdr-text { display: none; }
  /* Мега-меню не должно растягивать страницу на узких экранах */
  .mega { overflow-x: clip; }
  .mega-grid { gap: 22px; }
  .mega-cats { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .site-header .header-inner { gap: 6px; }
  .logo-word { font-size: 14px; letter-spacing: 0.02em; padding-left: 0.02em; }
  .logo-mark { width: 24px; height: 24px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 32px; height: 32px; }
  .header-actions .icon-btn svg { width: 17px; height: 17px; }
}
@media (max-width: 360px) {
  .logo-word { font-size: 13px; }
  .logo-mark { width: 22px; height: 22px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 30px; height: 30px; }
  .btn { max-width: 100%; }
  .btn-lg { padding: 0 18px; font-size: 12px; }
}

/* ============ Таблица размеров ============ */
.link-size {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font: inherit; font-size: 12.5px; text-decoration: underline;
  text-underline-offset: 3px; padding: 0 0 0 8px;
}
.link-size:hover { color: var(--gold-bright); }
.size-guide { padding-top: 4px; }
.size-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
.size-table th, .size-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table th { color: var(--gold); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface-2); }
.size-table tr:last-child td { border-bottom: none; }
.size-table tbody tr:hover { background: rgba(201, 168, 106, 0.05); }

/* ============ Админ-панель ============ */
.admin-body { background: var(--bg); }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 20px 120px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 26px; }
.admin-top h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); margin: 0; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tabs button {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px;
  transition: all 0.25s var(--ease);
}
.admin-tabs button.active, .admin-tabs button:hover { color: var(--ink); border-color: var(--gold); background: rgba(201, 168, 106, 0.08); }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); border-radius: var(--radius); padding: 20px 22px; }
.stat-card .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat-card .v { font-family: var(--font-display); font-size: 30px; margin-top: 8px; color: var(--ink); }
.stat-card .v.gold { color: var(--gold); }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar .input, .admin-toolbar .select { max-width: 280px; }
.admin-list { display: grid; gap: 12px; }
.admin-row {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
}
.admin-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: #0c0c0f; }
.admin-row .meta { min-width: 0; }
.admin-row .meta .n { font-weight: 600; }
.admin-row .meta .s { color: var(--muted); font-size: 12.5px; }
.admin-row .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-row .actions button { font-size: 12px; }
.ord-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.ord-card .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ord-card .who { font-weight: 600; }
.ord-card .addr { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.ord-card select { max-width: 220px; }
.ord-items { margin: 12px 0 0; display: grid; gap: 6px; }
.ord-items .it { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.admin-modal-back {
  position: fixed; inset: 0; background: rgba(4, 4, 6, 0.82); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center; padding: 30px 16px; z-index: 900; overflow-y: auto;
}
.admin-modal-back.open { display: flex; }
.admin-modal {
  width: min(760px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
}
.admin-modal h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin-top: 10px; }
.img-cell { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: #0c0c0f; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; }
.img-cell .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; line-height: 1; }
.upload-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px 16px; cursor: pointer; color: var(--muted); font-size: 13px;
}
.upload-btn:hover { border-color: var(--gold); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; }
.chip button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; line-height: 1; }
.admin-login { max-width: 460px; margin: 8vh auto; text-align: center; }
.admin-login .big { font-family: var(--font-display); font-size: 32px; margin-bottom: 10px; }
.admin-login .code { display: inline-block; font-family: var(--font-logo); letter-spacing: 0.3em; color: var(--gold); font-size: 22px; padding: 10px 18px; border: 1px solid var(--gold-deep); border-radius: var(--radius-sm); margin: 16px 0; }
.muted.tiny { font-size: 12px; }
.btn-danger { border-color: rgba(226, 87, 76, 0.5); color: var(--danger); }
.btn-danger:hover { background: rgba(226, 87, 76, 0.1); border-color: var(--danger); }


