/* ============================================================
   Mr.K — Smoke Pride · дизайн-система
   По референсу: чёрный void, Inter (200/400/600),
   Electric Iris #8052ff, Saffron Spark #ffb829, частицы.
   ============================================================ */

:root {
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-electric-iris: #8052ff;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;

  /* Тематические кириллические шрифты: Unbounded — футуристичный дисплейный,
     Manrope — чистый гротеск для текста */
  --font-display: 'Unbounded', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-main: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --text-caption: 12px;
  --text-nav-label: 14px;
  --text-body: 18px;
  --text-heading-2xs: 24px;
  --text-heading-xs: 27px;
  --text-subheading: 36px;
  --text-heading-sm: 42px;
  --text-heading: 48px;
  --text-heading-lg: 78px;
  --text-display: 113px;

  --radius: 24px;
  --radius-full: 9999px;

  --page-max-width: 1280px;
  --section-gap: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-void);
  color: var(--color-bone-white);
  font-family: var(--font-main);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--color-electric-iris); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-weight: 400; }

.display, .heading-lg, .heading, .heading-sm {
  font-family: var(--font-display);
  font-weight: 400;
}

.display {
  font-size: clamp(38px, 6.6vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.heading {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-saffron-spark);
}

.muted { color: var(--color-ash-gray); }
.body-copy { color: var(--color-silver-mist); font-weight: 300; max-width: 560px; }
.accent { color: var(--color-electric-iris); }
.amber { color: var(--color-saffron-spark); }

/* ---------- иконки (единый стиль: контур 1.7px, скруглённые концы) ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 26px; height: 26px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-electric-iris);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(128, 82, 255, 0.45);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: none;
  color: var(--color-ash-gray);
  box-shadow: none;
  padding: 15px 10px;
}
.btn-ghost:hover { color: #fff; box-shadow: none; }

/* ---------- навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.nav-logo svg { display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ash-gray);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { margin-left: 8px; padding: 11px 20px; }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 102;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- фоновые частицы ---------- */
#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.character-flow-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

main { position: relative; z-index: 2; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 120px 30px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 30px;
  width: 100%;
}
.hero-copy .label { display: inline-block; margin-bottom: 24px; }
.hero-copy .display { margin-bottom: 30px; }
.hero-copy .body-copy { margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-planet {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.mrk-hero {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 34px rgba(255, 126, 47, 0.24))
    drop-shadow(0 0 78px rgba(128, 82, 255, 0.18));
}
.planet-hint {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-ash-gray);
  font-size: var(--text-caption);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: cue-float 2.4s ease-in-out infinite;
}
@keyframes cue-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--color-electric-iris), transparent);
}

/* ---------- секции ---------- */
.section { padding: var(--section-gap) 0; position: relative; }
.section-head { margin-bottom: 60px; }
.section-head .label { display: inline-block; margin-bottom: 18px; }
.section-head p { margin-top: 24px; }

/* reveal-анимации (GSAP добавляет .in) */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- «кто такой» ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
}
.about-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-art img {
  max-height: 640px;
  filter: drop-shadow(0 0 26px rgba(128, 82, 255, 0.30)) drop-shadow(0 0 90px rgba(128, 82, 255, 0.16));
}
.about-art::before {
  content: '';
  position: absolute;
  inset: 12% 18%;
  background: radial-gradient(circle, rgba(128, 82, 255, 0.22), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 48px;
}
.fact .icon {
  color: var(--color-electric-iris);
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}
.fact .fact-num {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--color-saffron-spark);
  margin-bottom: 6px;
}
.fact p { font-size: 15px; color: var(--color-ash-gray); }

/* ---------- лор: зигзаг ---------- */
.lore-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.lore-row.flip .lore-art { order: 2; }
.lore-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lore-copy,
.chapter-copy {
  position: relative;
  z-index: 3;
}
.atoms-flow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
.lore-art img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(128, 82, 255, 0.25)) drop-shadow(0 0 70px rgba(128, 82, 255, 0.12));
}
.lore-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-electric-iris);
  margin-bottom: 14px;
}
.lore-copy h3 { margin-bottom: 8px; }
.lore-copy .tagline { color: var(--color-saffron-spark); font-size: 15px; margin-bottom: 20px; font-weight: 500; }
.lore-copy .excerpt { color: var(--color-silver-mist); margin-bottom: 26px; }
.lore-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-saffron-spark);
  transition: color .2s ease;
}
.lore-link:hover { color: #fff; }

/* ---------- цитаты-бегущая строка ---------- */
.quotes-band {
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.quotes-track {
  display: inline-flex;
  gap: 80px;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.quotes-track span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--color-ash-gray);
}
.quotes-track span em {
  font-style: normal;
  color: var(--color-saffron-spark);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- товары ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card--unavailable .product-media img { opacity: 0.62; filter: saturate(0.55); }
.product-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  margin-bottom: 22px;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.product-card:hover .product-media {
  box-shadow: 0 20px 70px rgba(128, 82, 255, 0.25);
}
.product-card:hover .product-media img { transform: scale(1.04); }
/* блик, пробегающий по карточке */
.product-media::after {
  content: '';
  position: absolute;
  inset: -60% auto auto -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: translateX(-120%) rotate(18deg);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.product-card:hover .product-media::after { transform: translateX(420%) rotate(18deg); }
.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.product-badge {
  background: var(--color-electric-iris);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 15px;
  border-radius: var(--radius-full);
}
.product-badge--soon {
  background: var(--color-saffron-spark);
  color: #090909;
}
.product-badge--secondary {
  background: rgba(9, 9, 9, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.product-cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-electric-iris);
  margin-bottom: 8px;
}
.product-title {
  min-height: 2.5em;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
}
.product-unit { min-height: 1.45em; font-size: 14px; color: var(--color-ash-gray); margin-bottom: 14px; }
.product-description { position: relative; margin-bottom: 20px; }
.product-desc {
  display: -webkit-box;
  min-height: 6.8em;
  overflow: hidden;
  color: var(--color-silver-mist);
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.product-desc.expanded { display: block; max-height: none; }
.product-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--color-saffron-spark);
  font-family: var(--font-main);
  font-size: 13px;
  cursor: pointer;
}
.product-more:hover { color: #fff; }
.product-buy { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 21px; font-weight: 400; letter-spacing: 0; }
.product-add-disabled,
.product-add-disabled:hover {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.45);
}
.cart-unavailable { margin-top: 3px; color: var(--color-saffron-spark); font-size: 12px; }

/* ---------- блог ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.post-card { display: block; }
.post-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  background: radial-gradient(circle at 50% 40%, #100d18, #060608);
  transition: box-shadow 0.35s ease;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  box-sizing: border-box;
  filter: drop-shadow(0 0 18px rgba(128, 82, 255, 0.25));
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.post-cover::after {
  content: '';
  position: absolute;
  inset: -60% auto auto -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%) rotate(18deg);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.post-card:hover .post-cover::after { transform: translateX(420%) rotate(18deg); }
.post-card:hover .post-cover { box-shadow: 0 16px 60px rgba(128, 82, 255, 0.2); }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-date { font-size: var(--text-caption); color: var(--color-ash-gray); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.post-title { font-family: var(--font-display); font-size: 19px; font-weight: 400; letter-spacing: 0; margin-bottom: 10px; transition: color .2s; }
.post-card:hover .post-title { color: var(--color-saffron-spark); }
.post-excerpt { font-size: 15px; color: var(--color-ash-gray); }

/* ---------- футер ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-ash-gray);
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { font-size: 15px; color: var(--color-silver-mist); margin-bottom: 10px; }
.footer-grid p { display: block; }
.footer-grid a { display: flex; align-items: center; gap: 10px; }
.footer-grid a .icon { width: 17px; height: 17px; color: var(--color-electric-iris); }
.footer-grid a:hover { color: var(--color-saffron-spark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
}

/* ---------- страница лора ---------- */
.lore-hero {
  padding: 200px 0 80px;
  text-align: left;
}
.lore-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-electric-iris), var(--color-saffron-spark));
  width: 0;
  z-index: 101;
}
.chapter {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}
.chapter.flip .chapter-art { order: 2; }
.chapter-art {
  position: sticky;
  top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.chapter-art img {
  display: block;
  width: 100%;
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 0 24px rgba(128, 82, 255, 0.26)) drop-shadow(0 0 80px rgba(128, 82, 255, 0.12));
}
.chapter-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(128, 82, 255, 0.55);
  margin-bottom: 10px;
}
.chapter h2 { margin-bottom: 8px; }
.chapter .tagline { color: var(--color-saffron-spark); margin-bottom: 30px; font-weight: 500; }
.chapter blockquote {
  border-left: 2px solid var(--color-electric-iris);
  padding-left: 22px;
  margin: 30px 0;
  color: var(--color-silver-mist);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}
.chapter-body p { margin-bottom: 20px; color: var(--color-silver-mist); }
.chapter-body strong { font-weight: 600; color: #fff; }

/* ---------- страница поста ---------- */
.post-page { max-width: 760px; margin: 0 auto; padding: 180px 30px 100px; }
.post-page .post-date { margin-bottom: 16px; }
.post-page h1 { margin-bottom: 30px; }
.post-page .cover { border-radius: var(--radius); margin: 40px 0; width: 100%; }
.post-page .body p { margin-bottom: 22px; color: var(--color-silver-mist); }
.post-page .body img { border-radius: var(--radius); margin: 26px 0; }
.post-page .body strong { font-weight: 600; color: #fff; }
.post-page .body h2, .post-page .body h3 { margin: 34px 0 16px; font-weight: 400; letter-spacing: -0.02em; }
.post-page .body blockquote {
  border-left: 2px solid var(--color-electric-iris);
  padding-left: 22px;
  margin: 26px 0;
  color: var(--color-silver-mist);
}
.back-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
}
.back-link:hover { color: #fff; }

/* обложка поста — светящийся арт на тёмной подложке */
.post-page .cover {
  background: radial-gradient(circle at 50% 40%, #100d18, #060608);
  object-fit: contain;
  padding: 6%;
  box-sizing: border-box;
  max-height: 460px;
}

/* ---------- магазин ---------- */
.shop-hero { padding: 190px 0 40px; }

.cart-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  background: var(--color-electric-iris);
  border: none;
  color: #fff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(128, 82, 255, 0.5);
  transition: transform .25s ease;
}
.cart-fab:hover { transform: translateY(-3px) scale(1.04); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-saffron-spark);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: #0a0a0a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 120;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cart-close { background: none; border: none; color: var(--color-ash-gray); font-size: 26px; cursor: pointer; }
.cart-close:hover { color: #fff; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; }
.cart-item-info { flex: 1; }
.cart-item-info .t { font-size: 15px; font-weight: 400; }
.cart-item-info .p { font-size: 13px; color: var(--color-ash-gray); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: #fff;
  cursor: pointer;
}
.qty button:hover { border-color: var(--color-electric-iris); }
.cart-total { display: flex; justify-content: space-between; padding: 22px 0; font-size: var(--text-heading-2xs); }
.cart-form input, .cart-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  margin-bottom: 12px;
}
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--color-electric-iris); }
.cart-form .btn { width: 100%; justify-content: center; }
.cart-msg { font-size: 14px; margin-top: 12px; color: var(--color-saffron-spark); }
.cart-empty { color: var(--color-ash-gray); text-align: center; margin-top: 40px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- прочее ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(128, 82, 255, 0.5), transparent);
  border: none;
}

.big-cta {
  text-align: center;
  padding: 140px 30px;
}
.big-cta .heading-lg { margin-bottom: 26px; }
.big-cta p { margin: 0 auto 40px; max-width: 560px; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 140px; text-align: center; }
  .scroll-cue { display: none; }
  .planet-hint { display: none; }
  .hero-copy .body-copy { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-planet { order: -1; max-width: 420px; margin: 0 auto; min-height: 300px; width: 100%; }
  .mrk-hero { width: 106%; }
  .about-grid, .chapter-grid { grid-template-columns: 1fr; gap: 40px; }
  .chapter-art {
    position: static;
    order: 0;
    width: 100%;
    max-width: 560px;
    min-height: min(72vw, 520px);
    margin-inline: auto;
  }
  .chapter.flip .chapter-art { order: 0; }
  .chapter-art img {
    width: auto;
    max-width: 100%;
    max-height: min(72vw, 520px);
    margin-inline: auto;
  }
  .products-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .lore-row { grid-template-columns: 1fr; gap: 30px; }
  .lore-row.flip .lore-art { order: 0; }
}

@media (max-width: 680px) {
  :root { --section-gap: 80px; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 101;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 20px; }
  .burger { display: block; }
  .products-grid, .blog-grid { grid-template-columns: 1fr; }
  .product-title, .product-unit, .product-desc { min-height: 0; }
  .chapter { padding: 70px 0; }
  .chapter-grid { gap: 30px; }
  .chapter-art {
    max-width: 100%;
    min-height: min(88vw, 430px);
  }
  .chapter-art img { max-height: min(88vw, 430px); }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .quotes-track span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quotes-track { animation: none; }
  .scroll-cue { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
