/* ============================================================
   Ne'mat — premium brand-showcase styles
   Two directions via [data-theme]: "atelier" (light) / "noir" (dark)
   ============================================================ */

/* ---- Theme tokens ---- */
.nm-root[data-theme="atelier"] {
  --bg: #FBF6EE;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3E9DA;
  --thumb: linear-gradient(160deg, #FBF4E8 0%, #F1E4D0 100%);
  --ink: #2A1A12;
  --ink-soft: #6E594A;
  --ink-faint: #9A8675;
  --line: rgba(42,26,18,0.12);
  --line-2: rgba(42,26,18,0.07);
  --gold: #A6742B;
  --gold-2: #C79A45;
  --accent: #9B3A2E;
  --accent-ink: #FFFFFF;
  --shadow-sm: 0 2px 14px rgba(42,26,18,0.07);
  --shadow: 0 18px 50px rgba(42,26,18,0.13);
  --shadow-lg: 0 30px 80px rgba(42,26,18,0.20);
  --hero-bg: radial-gradient(ellipse 60% 70% at 78% 20%, rgba(199,154,69,0.30), transparent 60%),
             radial-gradient(ellipse 70% 60% at 12% 90%, rgba(155,58,46,0.12), transparent 60%),
             transparent;
  --band: linear-gradient(135deg, #2A1A12 0%, #3E2A1C 100%);
  --band-ink: #F6ECDC;
  --pattern-stroke: #6E4326;
  --pattern-opacity: 0.06;
  --pattern-glow: none;
}
.nm-root[data-theme="noir"] {
  --bg: #160F0A;
  --bg-2: #1E140D;
  --surface: #21160E;
  --surface-2: #2A1C12;
  --thumb: linear-gradient(160deg, #F6EEE0 0%, #E9DAC2 100%);
  --ink: #F4E9D7;
  --ink-soft: rgba(244,233,215,0.66);
  --ink-faint: rgba(244,233,215,0.42);
  --line: rgba(244,233,215,0.14);
  --line-2: rgba(244,233,215,0.07);
  --gold: #D9A441;
  --gold-2: #ECC676;
  --accent: #C75A3E;
  --accent-ink: #1A110A;
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.4);
  --shadow: 0 22px 60px rgba(0,0,0,0.55);
  --shadow-lg: 0 34px 90px rgba(0,0,0,0.65);
  --hero-bg: radial-gradient(ellipse 60% 70% at 78% 18%, rgba(217,164,65,0.26), transparent 60%),
             radial-gradient(ellipse 80% 70% at 10% 95%, rgba(199,90,62,0.20), transparent 62%),
             transparent;
  --band: linear-gradient(135deg, #0F0A06 0%, #241710 100%);
  --band-ink: #F4E9D7;
  --pattern-stroke: #ECC676;
  --pattern-opacity: 0.10;
  --pattern-glow: drop-shadow(0 0 3px rgba(236,198,118,0.55)) drop-shadow(0 0 9px rgba(217,140,50,0.38));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #0c0805; }

.nm-root {
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --maxw: 1240px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
.nm-root[data-theme="noir"] { --display: "Marcellus", Georgia, serif; }

.nm-root img { max-width: 100%; display: block; }

/* ---- Background chocolate pattern (whole-page wash) ---- */
.bg-art {
  position: fixed; inset: 0; top: -20%; height: 140%; z-index: 0; pointer-events: none;
  color: var(--pattern-stroke); opacity: var(--pattern-opacity);
  transition: opacity 0.5s ease, color 0.5s ease;
  will-change: transform;
}
.bg-art svg { width: 100%; height: 100%; display: block; filter: var(--pattern-glow, none); }
.nm-root > main, .nm-root > footer { position: relative; z-index: 1; }
@keyframes bgShimmer {
  0%, 100% { opacity: var(--pattern-opacity); }
  50% { opacity: calc(var(--pattern-opacity) * 1.55); }
}
@media (prefers-reduced-motion: no-preference) {
  .nm-root[data-theme="noir"] .bg-art { animation: bgShimmerStrong 7s ease-in-out infinite; }
}
@keyframes bgShimmerStrong {
  0%, 100% { opacity: var(--pattern-opacity); }
  50% { opacity: calc(var(--pattern-opacity) * 1.9); }
}

.nm-root a { color: inherit; text-decoration: none; cursor: pointer; }
.nm-root button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Typography ---- */
.serif { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.005em; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; z-index: 0;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s;
}
.btn .ar { transition: transform 0.25s ease; }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 0.08s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(155,58,46,0.4); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #1c1209; position: relative; overflow: hidden; }
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-180%) skewX(-18deg); pointer-events: none;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(166,116,43,0.4); }
.btn-gold:hover::after { transition: transform 0.7s cubic-bezier(.3,.7,.3,1); transform: translateX(280%) skewX(-18deg); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Button gold sweep */
.btn-ghost::after, .btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  transform: translateX(-101%); transition: transform 0.4s cubic-bezier(.4,.7,.3,1);
}
.btn-ghost:hover { color: #20140a; border-color: transparent; }
.btn-ghost:hover::after, .btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { color: #20140a; }

/* ---- Header ---- */
.hd {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}
.hd-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.hd-nav { display: flex; align-items: center; gap: 30px; }
.hd-nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color 0.2s; }
.hd-nav a:hover, .hd-nav a.active { color: var(--ink); }
.hd-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.hd-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); transition: all 0.2s; position: relative; color: var(--ink);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.wish-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.lang { display: flex; gap: 2px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang button { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; color: var(--ink-faint); transition: all 0.2s; }
.lang button.on { background: var(--ink); color: var(--bg); }
a.dl-catalog {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
a.dl-catalog svg { flex: 0 0 auto; }
a.dl-catalog:hover { background: var(--gold); color: #1c1209; box-shadow: 0 8px 22px rgba(166,116,43,0.32); transform: translateY(-1px); }
a.dl-catalog:active { transform: translateY(0) scale(0.97); }
@media (max-width: 1080px) { .dl-catalog .lbl { display: none; } .dl-catalog { padding: 0; width: 42px; justify-content: center; } }
@media (max-width: 860px) { .dl-catalog { display: none; } }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); display: grid; place-items: center; color: #20140a; font-family: var(--display); font-size: 24px; font-weight: 600; box-shadow: var(--shadow-sm); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt b { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: 0.01em; }
.logo-txt span { font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

/* Theme toggle */
.tt { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; background: var(--surface-2); }
.tt button { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--ink-faint); transition: all 0.25s; }
.tt button.on { background: var(--ink); color: var(--bg); }
.tt .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---- Mobile menu ---- */
.hamb { display: none; }
.mob { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 8px; animation: fade 0.25s ease; }
.mob a { font-family: var(--display); font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 60px); margin: 16px 0 0; max-width: 16ch; }
.section-head p { color: var(--ink-soft); max-width: 46ch; margin: 0; }

/* ---- Hero ---- */
.hero { background: var(--hero-bg); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 70px 0 84px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 96px); margin: 22px 0 0; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 44ch; margin: 26px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; }
.hero-stats .n { font-family: var(--display); font-size: 38px; color: var(--gold); line-height: 1; }
.hero-stats .l { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.hero-stage { position: relative; aspect-ratio: 1/1; }
.hero-plinth {
  position: absolute; inset: 0; border-radius: 28px; background: var(--thumb);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-plinth::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.6), transparent 55%);
  mix-blend-mode: soft-light;
}
.hero-float {
  /* Расширено за пределы карточки сверху/снизу, чтобы анимация «парения» (±14px)
     не открывала фон карточки снизу. Лишнее обрезается overflow:hidden у .hero-plinth. */
  position: absolute; left: 0; right: 0; top: -22px; bottom: -22px; z-index: 2;
}
.hero-shot {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.6s;
  position: relative; z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-float { animation: heroFloat 7s ease-in-out infinite; }
  .hero-shot { animation: heroSpin 14s ease-in-out infinite, heroEnter 0.9s cubic-bezier(.2,.8,.2,1); }
}
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@keyframes heroSpin {
  0%, 100% { rotate: y -7deg; }
  50%      { rotate: y 7deg; }
}
@keyframes heroEnter {
  from { scale: 1.14; filter: blur(5px); }
  to   { scale: 1; filter: none; }
}
.hero-sparkles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2), transparent 65%);
  opacity: 0; filter: blur(0.3px);
}
@media (prefers-reduced-motion: no-preference) {
  .spark { animation: sparkDrift var(--sd, 9s) ease-in-out infinite; animation-delay: var(--sdl, 0s); }
}
@keyframes sparkDrift {
  0%   { opacity: 0; transform: translateY(10px) scale(0.5); }
  20%  { opacity: 0.9; }
  50%  { transform: translateY(-26px) scale(1.1); }
  80%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-60px) scale(0.4); }
}
.hero-tag {
  position: absolute; z-index: 3; bottom: 26px; left: 26px;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm);
  max-width: 70%;
}
.hero-tag .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-tag .v { font-family: var(--display); font-size: 21px; margin-top: 3px; }
.hero-dots { position: absolute; z-index: 4; top: 22px; right: 32px; display: flex; flex-direction: column; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; background: var(--line); border: 1px solid var(--ink-faint); transition: all 0.3s; }
.hero-dots button.on { background: var(--gold); border-color: var(--gold); height: 26px; }

/* ---- Marquee of brand names ---- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; will-change: transform; }
.marquee-group { display: flex; gap: 64px; padding: 22px 64px 22px 0; }
.marquee span { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--ink-faint); letter-spacing: 0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee span::after { content: "✦"; color: var(--gold); font-size: 16px; }
@keyframes scroll { to { transform: translate3d(-50%, 0, 0); } }

/* ---- Brand showcase cards ---- */
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.brand-card {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 34px;
  border: 1px solid var(--line); background: var(--surface); min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.3s;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.brand-card .bc-name { font-family: var(--display); font-size: 40px; line-height: 1; }
.brand-card .bc-tag { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-top: 8px; }
.brand-card .bc-note { color: var(--ink-soft); font-size: 14.5px; margin-top: 18px; max-width: 34ch; }
.brand-card .bc-go { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.brand-card .bc-blob { position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; opacity: 0.16; filter: blur(6px); }

/* ---- Product card ---- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-grid > * { display: flex; flex-direction: column; }
.prod-grid > * > .card { flex: 1; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; position: relative;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.3s;
}
.card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--gold); }
.card.tilting { transition: transform 0.1s ease-out, box-shadow 0.4s, border-color 0.3s; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, var(--gold-2) 60deg, transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none; z-index: 3;
}
.card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover::before { animation: angSpin 2.6s linear infinite; }
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angSpin { to { --ang: 360deg; } }

.card-thumb { position: relative; background: var(--thumb); aspect-ratio: 1/1; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease; will-change: transform; }
.card-thumb.zooming { cursor: zoom-in; }
.card-thumb.zooming img { transition: transform 0.12s ease-out; }
.card:hover .card-thumb img { transform: scale(1.35); }
.card-thumb.zooming img { transform: scale(1.85); }
.card-wish {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px;
  background: color-mix(in srgb, #fff 86%, transparent); display: grid; place-items: center; color: #2A1A12;
  transition: all 0.2s; z-index: 2;
}
.card-wish:hover { transform: scale(1.1); }
.card-wish.on { background: var(--accent); color: #fff; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.badge.gold { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #20140a; }
.badge.accent { background: var(--accent); color: #fff; }
.badge.gold::after, .badge.accent::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  .badge.gold::after, .badge.accent::after { animation: badgeShine 4.5s ease-in-out infinite; }
}
@keyframes badgeShine {
  0%, 60% { left: -60%; }
  80%, 100% { left: 160%; }
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card-name { font-family: var(--display); font-size: 22px; line-height: 1.1; min-height: 2.4em; }
.card-kind { font-size: 13px; color: var(--ink-soft); }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-weight { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.card-more { font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .card-more { color: var(--gold); }
.color-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.wish-burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.wish-burst i {
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  animation: burst 0.55s ease-out forwards;
}
@keyframes burst {
  to { opacity: 0; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(0.3); }
}

.card-thumb.loading::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .card-thumb.loading::after { animation: shimmer 1.3s linear infinite; }
}
@keyframes shimmer { to { background-position: -200% 0; } }
.card-thumb.loading img { opacity: 0; }

/* ---- Story band ---- */
.band { background: var(--band); color: var(--band-ink); border-radius: 28px; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.band-text { padding: 64px; }
.band-text h2 { font-size: clamp(32px, 4vw, 52px); margin: 18px 0 0; color: var(--band-ink); }
.band-text p { color: rgba(246,236,220,0.78); margin: 22px 0 0; font-size: 16px; }
.band-media { position: relative; min-height: 420px; background: var(--thumb); overflow: hidden; }
.band-media img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }

/* ---- Facts ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fact { padding: 38px 30px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact .n { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 58px; color: var(--gold); line-height: 1; letter-spacing: -0.01em; }
/* gold underline that draws in under each number */
.fact .n::after {
  content: ""; display: block; height: 2px; margin-top: 14px;
  width: 0; background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.9s cubic-bezier(.2,.8,.2,1);
}
.facts.in .fact .n::after { width: 46px; }
.facts.in .fact:nth-child(1) .n::after { transition-delay: 0.25s; }
.facts.in .fact:nth-child(2) .n::after { transition-delay: 0.36s; }
.facts.in .fact:nth-child(3) .n::after { transition-delay: 0.47s; }
.facts.in .fact:nth-child(4) .n::after { transition-delay: 0.58s; }
@media (prefers-reduced-motion: reduce) { .fact .n::after { width: 46px; transition: none; } }
.fact .l { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 12px; }
.fact .d { color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; }

/* ---- Values ---- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all 0.3s; }
.value:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value.value-link { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.value.value-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.value .value-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; transition: gap 0.25s, opacity 0.25s; }
.value.value-link:hover .value-more { gap: 14px; opacity: 1; }
.value .vi { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--gold); margin-bottom: 20px; }
.value h3 { font-family: var(--display); font-size: 24px; margin: 0 0 10px; }
.value p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---- Sub-pages (export / partners / certificates) ---- */
.page-section { padding-top: 132px; }
.page-head { margin-bottom: 48px; }
.page-head h1 { font-family: var(--display); font-size: clamp(40px, 5.5vw, 76px); margin: 14px 0 14px; }
.page-head p { color: var(--ink-soft); max-width: 56ch; margin: 0; font-size: 16px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; margin-bottom: 26px; cursor: pointer; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; transition: color 0.25s, gap 0.25s; }
.page-back:hover { color: var(--gold); gap: 12px; }
.page-back-ic { display: inline-flex; transform: rotate(180deg); }

.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.export-card { display: flex; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all 0.3s; }
.export-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.export-flag { width: 132px; height: 92px; flex-shrink: 0; }
.export-flag img { width: 132px; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.export-body { flex: 1; min-width: 0; }
.export-body h3 { font-family: var(--display); font-size: 26px; margin: 0; }
.export-city { display: block; color: var(--ink-soft); font-size: 14px; margin: 2px 0 16px; }
.export-meta { margin: 0; display: grid; gap: 8px; }
.export-meta > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.export-meta dt { color: var(--ink-soft); font-size: 13px; margin: 0; }
.export-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; }

.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.partner-card { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all 0.3s; }
.partner-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner-card .partner-logo { width: 110px; height: 110px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.partner-card .partner-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.partner-body { flex: 1; min-width: 0; }
.partner-body h3 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; }
.partner-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.partner-name { font-size: 15px; font-weight: 600; color: var(--ink); text-align: center; }

.cert-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 80px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-soft); }
.cert-empty-icon { opacity: 0.35; transform: scale(2.2); }
.cert-empty p { font-size: 16px; max-width: 36ch; margin: 16px 0 0; }

@media (max-width: 900px) {
  .export-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partner-grid, .cert-grid { grid-template-columns: 1fr; }
  .export-card { flex-direction: column; }
  /* Флаг во всю ширину карточки, контейнер по пропорции флага (132:92) — без обрезки. */
  .export-flag { width: 100%; height: auto; aspect-ratio: 132 / 92; }
  .export-flag img { width: 100%; height: 100%; }
}
/* ---- CTA / contact ---- */
.cta { background: var(--band); border-radius: 28px; padding: 64px; text-align: center; color: var(--band-ink); }
.cta h2 { font-size: clamp(34px, 4.6vw, 60px); margin: 14px auto 0; max-width: 18ch; color: var(--band-ink); }
.cta p { color: rgba(246,236,220,0.78); max-width: 50ch; margin: 20px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---- Footer ---- */
.ft { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 0; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.ft h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; }
.ft a, .ft p { color: var(--ink-soft); font-size: 14px; display: block; margin-bottom: 11px; transition: color 0.2s; }
.ft a:hover { color: var(--gold); }
/* Названия брендов в футере (2-я колонка) — ЗАГЛАВНЫМИ буквами, обычный размер. */
.ft-grid > div:nth-child(2) a { text-transform: uppercase; letter-spacing: 0.04em; }
.ft-grid > div:nth-child(2) a:hover { color: var(--gold); }
/* На любых кнопках не выделяется текст и не появляется меню «Скопировать». */
button, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ft-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; margin: 0; }
.ft-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ============ EMOTION SHOWCASE ============ */
.emotion-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.emotion-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.emotion-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
}
.emotion-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.emotion-card--big { min-height: 620px; }
.emotion-card--small { min-height: 294px; flex: 1; }

.emotion-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
  display: block;
}
.emotion-card:hover .emotion-img { transform: scale(1.05); }

.emotion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 1;
}

.emotion-body {
  position: relative;
  z-index: 2;
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emotion-card--small .emotion-body { padding: 22px 26px 28px; gap: 6px; }

.emotion-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ec-accent, var(--gold));
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 5px 13px;
  align-self: flex-start;
  color: #fff;
}

.emotion-headline {
  font-size: clamp(30px, 3.4vw, 48px);
  color: #fff;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.emotion-card--small .emotion-headline { font-size: clamp(22px, 2.4vw, 32px); }

.emotion-desc {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.emotion-card--small .emotion-desc { font-size: 13.5px; }

.emotion-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid rgba(255,255,255,0.45);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s, gap 0.2s;
}
.emotion-card:hover .emotion-cta { border-color: #fff; gap: 12px; }
.emotion-cta .ar { transition: transform 0.25s ease; }
.emotion-card:hover .emotion-cta .ar { transform: translateX(4px); }

@media (max-width: 900px) {
  .emotion-grid { grid-template-columns: 1fr; }
  .emotion-card--big { min-height: 420px; }
  .emotion-card--small { min-height: 260px; }
}
@media (max-width: 520px) {
  .emotion-card--big { min-height: 340px; }
  .emotion-card--small { min-height: 220px; }
  .emotion-body { padding: 20px 20px 24px; }
  .emotion-card--small .emotion-body { padding: 16px 18px 20px; }
}

/* ============ CATALOG ============ */
.cat-hero { padding: 56px 0 8px; }
.cat-hero h1 { font-size: clamp(40px, 5.4vw, 76px); margin: 14px 0 0; }
.cat-hero p { color: var(--ink-soft); max-width: 52ch; margin: 18px 0 0; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 30px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: all 0.2s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-tools { display: flex; align-items: center; gap: 12px; }

/* search */
.cat-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 44px; min-width: 260px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.cat-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,154,69,0.12); }
.cat-search > svg { color: var(--ink-faint); flex: 0 0 auto; }
.cat-search input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.cat-search input::placeholder { color: var(--ink-faint); }
.cat-search-x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-faint); transition: background 0.2s, color 0.2s; }
.cat-search-x:hover { background: var(--surface-2); color: var(--ink); }

/* custom sort dropdown */
.sortmenu { position: relative; }
.sortmenu-btn {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-family: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.sortmenu-btn:hover { border-color: var(--gold); }
.sortmenu.open .sortmenu-btn { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,154,69,0.12); }
.sm-label { font-size: 13.5px; font-weight: 600; color: var(--ink-faint); }
.sm-value { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sm-chev { color: var(--ink-soft); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.sortmenu.open .sm-chev { transform: rotate(180deg); color: var(--gold); }

.sortmenu-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 7px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.16); transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(0.97); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(.2,.9,.3,1);
}
.sortmenu.open .sortmenu-pop { opacity: 1; transform: none; pointer-events: auto; }
.sm-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; padding: 11px 14px; border-radius: 11px; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
  opacity: 0; transform: translateY(6px); transition: background 0.18s, color 0.18s, opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.sortmenu.open .sm-opt { opacity: 1; transform: none; }
.sm-opt:hover, .sm-opt.hov { background: var(--surface-2); color: var(--ink); }
.sm-opt.on { color: var(--ink); font-weight: 700; }
.sm-opt.on svg { color: var(--gold); }

.cat-meta { display: flex; align-items: center; gap: 12px; margin: -8px 0 26px; flex-wrap: wrap; }
.cat-count { color: var(--ink-faint); font-size: 13.5px; font-weight: 600; }
.cat-clear-q { font-size: 13px; font-weight: 600; color: var(--gold); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s; }
.cat-clear-q:hover { background: var(--surface-2); border-color: var(--gold); }
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.side h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.side-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 30px; }
.side-list button { text-align: left; padding: 9px 14px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.side-list button:hover { background: var(--surface-2); color: var(--ink); }
.side-list button.on { background: var(--ink); color: var(--bg); }
.side-list button.on .ct { color: var(--bg); opacity: 0.7; }
.side-list .ct { font-size: 12px; color: var(--ink-faint); }
/* Названия брендов в фильтре каталога — ЗАГЛАВНЫМИ. */
.side-brands button { text-transform: uppercase; letter-spacing: 0.02em; }
.empty { padding: 80px 20px; text-align: center; color: var(--ink-soft); }
.sticky-side { position: sticky; top: 96px; }

/* ============ PRODUCT DETAIL ============ */
.pd-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin: 34px 0 26px; transition: color 0.2s; }
.pd-back:hover { color: var(--gold); }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pd-media { position: relative; background: var(--thumb); border-radius: 24px; aspect-ratio: 4/4.2; overflow: hidden; box-shadow: var(--shadow); }
.pd-media.zooming { cursor: zoom-in; }
.pd-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.25), transparent 60%); mix-blend-mode: soft-light; pointer-events: none; z-index: 3; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.pd-media.zooming img { transition: transform 0.12s ease-out; }
.pd-carousel { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pd-cbtn {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.pd-cbtn:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
.pd-cbtn:active { transform: scale(0.96); }
.pd-cstrip { display: flex; gap: 12px; overflow-x: auto; max-width: 100%; padding: 6px 2px; scroll-behavior: smooth; scrollbar-width: none; }
.pd-cstrip::-webkit-scrollbar { height: 0; display: none; }
.pd-thumb {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 16px; background: var(--thumb);
  border: 2px solid transparent; display: grid; place-items: center; padding: 9px; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s, box-shadow 0.25s; position: relative;
}
.pd-thumb:hover { transform: translateY(-3px); }
.pd-thumb.on { border-color: var(--gold); box-shadow: 0 10px 22px rgba(166,116,43,0.28); transform: translateY(-2px); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s; }
.pd-thumb:hover img { transform: scale(1.06); }
.pd-info { padding-top: 8px; }
.pd-brand { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pd-title { font-size: clamp(38px, 4.6vw, 60px); margin: 12px 0 0; }
.pd-line { color: var(--ink-faint); font-size: 14px; font-style: italic; margin-top: 6px; }
.pd-desc { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; margin: 24px 0 0; }
.pd-notes { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.pd-note { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pd-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 0; }
.pd-meta-item { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pd-meta-item .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.pd-meta-item .v { font-family: var(--display); font-size: 24px; color: var(--ink); margin-top: 6px; }
.pd-actions { display: flex; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }

/* ---- Theme sweep ---- */
.theme-sweep {
  position: fixed; z-index: 999; pointer-events: none; border-radius: 50%;
  width: 10px; height: 10px; transform: translate(-50%, -50%) scale(0);
  animation: sweep 0.7s ease-out forwards;
}
@keyframes sweep { to { transform: translate(-50%, -50%) scale(360); opacity: 0; } }

/* ---- Custom cursor ---- */
.nm-cursor {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: rgba(199,154,69,0.08);
  transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s, opacity 0.3s;
  opacity: 0;
}
.nm-cursor.active { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(199,154,69,0.16); }
.nm-cursor.shown { opacity: 1; }
@media (hover: none), (pointer: coarse) { .nm-cursor { display: none; } .pd-media img { transform: none !important; } }

/* ---- Ambient floaters ---- */
.bg-floaters { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; top: 0; color: var(--pattern-stroke); opacity: 0.10; will-change: transform; }
.floater svg { display: block; width: 100%; height: auto; }
.nm-root[data-theme="noir"] .floater { opacity: 0.16; }
@media (prefers-reduced-motion: no-preference) {
  .floater { animation: floatUp var(--fd, 26s) linear infinite; animation-delay: var(--fdl, 0s); }
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-20vh) rotate(var(--fr, 180deg)); }
}

.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44JyBudW1PY3RhdmVzPScyJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
}
.nm-root[data-theme="noir"] .bg-grain { opacity: 0.07; mix-blend-mode: overlay; }

.route-anim { animation: routeIn 0.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes routeIn {
  from { transform: translateY(16px); opacity: 0.8; }
  to   { transform: none; opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-float, .hero-shot, .spark, .floater { animation: none !important; opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .card-pop { opacity: 0; transform: translateY(26px) scale(0.97); }
  .card-pop.in { animation: cardPop 0.6s cubic-bezier(.2,.8,.2,1) forwards; }
}
@keyframes cardPop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .card-pop { opacity: 1 !important; transform: none !important; }
}

.marquee-track { animation-duration: var(--mq-dur, 40s) !important; }

.pd-media.loading::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .pd-media.loading::before { animation: shimmer 1.3s linear infinite; }
}
.pd-media.loading img { opacity: 0; }
.pd-media img { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.8,.2,1); }

.bg-art { will-change: transform; }
.nm-cursor { mix-blend-mode: normal; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: clamp(40px, 8vw, 70px); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .hd-nav { display: none; }
  .hamb { display: grid; }
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 16px 0 48px; }
  .hero-stage { width: calc(100% + 40px); margin: 0 -20px; order: -1; max-width: none; }
  .hero-plinth { transform: none !important; transition: none !important; }
  .hero-shot { height: 100%; }
  .brands-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; }
  .band-text { padding: 40px; }
  .band-media { min-height: 320px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .side { display: none; }
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .band-text, .cta { padding: 40px 28px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .bg-floaters { display: none; }
  .bg-grain { display: none; }
  .bg-art { animation: none !important; will-change: auto; }
  .card::before { display: none; }
  .card-thumb img { filter: none; will-change: auto; transition: none; }
  .card { transition: border-color 0.15s; }
  .card:hover { transform: none; box-shadow: none; border-color: var(--gold); }
  .card:hover .card-thumb img { transform: none; }
  .card-pop { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-sparkles { display: none; }
  .hd { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .hero-tag { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .marquee-track { will-change: auto; }
  .prod-grid { contain: layout style; -webkit-overflow-scrolling: touch; }
  .hero-text { padding-left: 14px; }
}
/* Телефоны: в шапке только логотип, тема и языки. Прячем «избранное» и меню-бургер,
   чтобы шапка не переполнялась и одинаково выглядела на всех телефонах. */
@media (max-width: 640px) {
  .hd-right .icon-btn { display: none; }
  .hd-right { gap: 8px; }
}
@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .values { grid-template-columns: 1fr; }
  .pd-meta { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .logo-txt span { display: none; }
  .tt button span.lbl { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .card-body { padding: 12px 14px 14px; gap: 3px; }
  .card-brand { font-size: 9px; letter-spacing: 0.14em; }
  .card-name { font-size: 15px; min-height: 2.2em; }
  .card-kind { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-weight { font-size: 11px; }
  .card-more { font-size: 11px; gap: 3px; white-space: nowrap; }
  .card-foot { padding-top: 10px; }
  .color-dot { width: 7px; height: 7px; }
  .chip { padding: 6px 12px; font-size: 12px; }
  .chips { gap: 7px; }
  .cat-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cat-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .cat-search { min-width: 0; width: 100%; }
  .sortmenu { width: 100%; }
  .sortmenu-btn { width: 100%; justify-content: space-between; }
  .sortmenu-pop { left: 0; right: 0; min-width: 0; transform-origin: top center; }
}
