/* =====================================================================
   Mariette Tashkent — styles
   Токены и правила: см. design-system/MASTER.md
   ===================================================================== */

:root {
  --ink: #161616;
  --red: #D3282C;
  --red-deep: #A81D21;
  --paper: #FBF9F4;
  --paper-2: #F3EFE6;
  --desk: #EEE8DC;
  --rule: rgba(22, 22, 22, .14);
  --rule-strong: rgba(22, 22, 22, .32);
  --muted: #6B6560;

  --sw-1: #FFD43B; --sw-2: #F3B5C3; --sw-3: #F28C38; --sw-4: #F9C9A4; --sw-5: #9BC53D;
  --sw-6: #C9C2B4; --sw-7: #4DB8E8; --sw-8: #2E4A5F; --sw-9: #C8524A;

  --ok-bg: #9BC53D; --ok-fg: #24350A;
  --pre-bg: #FFD43B; --pre-fg: #3D2A00;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --rail-w: 64px;
  --sheet-max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.preorder :focus-visible, .menu :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.script { font-family: var(--font-script); font-weight: 500; }

/* ---------- Лист на столе ---------- */
.sheet {
  position: relative;
  max-width: var(--sheet-max);
  margin: 0 auto;
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .sheet {
    margin: 28px auto;
    border: 1px solid var(--rule-strong);
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
  }
  .topbar, main, .footer { grid-column: 1; }
}

/* ---------- Верхняя строка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
/* multiply — белая подложка PNG-логотипа растворяется на кремовой бумаге, чёрный остаётся чёрным */
.brand img, .footer img { mix-blend-mode: multiply; }
.brand img { width: clamp(120px, 14vw, 180px); height: auto; }
.topbar__actions { display: flex; gap: 6px; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--rule-strong);
  font-weight: 700; font-size: 13px; letter-spacing: .06em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.iconbtn:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 1024px) {
  .topbar { position: absolute; top: 0; left: 0; right: var(--rail-w); z-index: 5; background: none; backdrop-filter: none; border: 0; padding-top: 22px; }
  .topbar__actions { display: none; }
}

/* ---------- Правая панель (десктоп) ---------- */
.rail { display: none; }
@media (min-width: 1024px) {
  .rail {
    grid-column: 2; grid-row: 1 / span 3;
    position: sticky; top: 0; align-self: start;
    height: 100dvh;
    display: flex; flex-direction: column;
    border-left: 1px solid var(--rule-strong);
    background: var(--paper);
    z-index: 30;
  }
  .rail__btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: var(--rail-w); width: 100%;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .rail__btn:hover, .rail__btn:focus-visible { background: var(--red); color: var(--paper); }
  .rail__btn:first-child { background: var(--ink); color: var(--paper); }
  .rail__btn:first-child:hover { background: var(--red); }
  .rail__lang { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
  .rail__label {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
    padding: 6px 10px; background: var(--ink); color: var(--paper);
    font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }
  .rail__btn:hover .rail__label, .rail__btn:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- Меню-оверлей ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--red); color: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.menu[hidden] { display: block; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease); }
.menu__inner {
  height: 100%; max-width: var(--sheet-max); margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.menu__close {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 6px;
  font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.menu__nav { margin: auto 0; display: grid; gap: 2px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 6px 0;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(36px, 7vw, 88px); line-height: 1.05;
  transform: translateX(0);
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.menu.is-open .menu__nav a { animation: menuIn 480ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.menu__nav a:hover { transform: translateX(10px); }
.menu__num { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .1em; opacity: .75; min-width: 2.2em; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.menu__foot a { opacity: .85; } .menu__foot a:hover { opacity: 1; text-decoration: underline; }
.menu__lang { min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--red); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.link-arrow { display: inline-flex; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link-arrow:hover { color: var(--red); border-color: var(--red); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--rule-strong); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { font-size: 24px; color: var(--muted); margin-bottom: 6px; }
.kicker--light { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.section__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 88px); line-height: .96; letter-spacing: -.005em;
  color: var(--red);
}
.section__slash { color: var(--ink); font-weight: 500; margin: 0 .04em; }
.section__sub { color: transparent; -webkit-text-stroke: 1.5px var(--red); font-variant-numeric: tabular-nums; }
.section__desc { margin-top: 16px; font-size: 17px; max-width: 58ch; color: var(--muted); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 69px);
  padding: 96px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { min-height: calc(100svh - 58px); padding-top: 120px; } }
.hero__rules {
  position: absolute; inset: 0; pointer-events: none;
  --rows: 6;
  background-repeat: repeat-y;
  background-size: 100% calc(100% / var(--rows));
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--rule-strong) calc(100% - 1px));
}
.hero__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(56px, 17vw, 120px); line-height: .92; letter-spacing: -.01em;
  color: var(--red);
  display: flex; flex-direction: column;
  max-width: 100%;
}
@media (min-width: 768px) { .hero__title { font-size: clamp(72px, 12.5vw, 184px); } }
.hero__line { display: block; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 2px var(--red); }
@media (max-width: 767px) { .hero__line--outline { -webkit-text-stroke-width: 1.5px; } }

/* веер обложек */
.hero__stack { position: relative; z-index: 2; height: 240px; margin: 24px 0 8px; }
.hero__stack img {
  position: absolute; left: 50%; top: 50%;
  width: var(--w, 120px); aspect-ratio: 5 / 7; height: auto;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(20, 10, 0, .18);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  will-change: transform;
  background: #fff;
}
@media (min-width: 768px) {
  .hero__stack {
    position: absolute; z-index: 2;
    right: 3%; top: 2%; width: 54%; height: 76%;
    margin: 0;
    --w: clamp(150px, 16vw, 250px);
  }
}
@media (min-width: 1200px) { .hero__stack { right: 5%; width: 50%; } }

.hero__foot {
  position: relative; z-index: 3;
  display: grid; gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 768px) { .hero__foot { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; } }
.hero__tag .script { font-size: 26px; display: block; margin-bottom: 12px; }
.hero__desc p { max-width: 46ch; color: var(--muted); margin-bottom: 18px; }
@media (min-width: 768px) { .hero__desc { justify-self: end; } }

.swatches { display: flex; gap: 6px; }
.swatches i { width: 16px; height: 16px; display: block; }
.swatches i:nth-child(1) { background: var(--sw-1); } .swatches i:nth-child(2) { background: var(--sw-2); }
.swatches i:nth-child(3) { background: var(--sw-3); } .swatches i:nth-child(4) { background: var(--sw-4); }
.swatches i:nth-child(5) { background: var(--sw-5); } .swatches i:nth-child(6) { background: var(--sw-6); }
.swatches i:nth-child(7) { background: var(--sw-7); } .swatches i:nth-child(8) { background: var(--sw-8); }
.swatches i:nth-child(9) { background: var(--sw-9); }

/* ---------- НОВИНКИ / ПЯТЬ ---------- */
.new__body { display: grid; gap: 32px; }
@media (min-width: 900px) { .new__body { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; } }
.new__stage {
  position: relative; width: min(100%, 360px); aspect-ratio: 5 / 7; margin: 0 auto;
}
@media (min-width: 900px) { .new__stage { width: min(100%, 440px); position: sticky; top: 24px; } }
.new__cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 44px rgba(20, 10, 0, .16);
  background: #fff;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.new__cover--back { transform: rotate(-4deg) translate(-8px, 6px); opacity: .9; }
.new__cover--front { transform: rotate(1.5deg); }
.new__cover--front.is-swapping { opacity: 0; transform: rotate(1.5deg) translateY(10px); }

.new__list { border-top: 1px solid var(--rule-strong); counter-reset: n; }
.new__item { border-bottom: 1px solid var(--rule); }
.new__row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: center;
  padding: 16px 12px 16px 0;
  transition: padding var(--t-med) var(--ease);
}
.new__row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform var(--t-med) var(--ease);
}
.new__row.is-active { padding-left: 14px; }
.new__row.is-active::before { transform: scaleY(1); }
.new__thumb { width: 44px; aspect-ratio: 5/7; object-fit: cover; border: 1px solid var(--rule); }
@media (min-width: 900px) { .new__thumb { display: none; } .new__row { grid-template-columns: 1fr auto; } }
.new__pick { text-align: left; display: block; padding: 2px 0; }
.new__title {
  display: block;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px); line-height: 1.05; color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.new__row.is-active .new__title, .new__row:hover .new__title { color: var(--red); }
.new__series { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.new__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 599px) {
  .new__row { grid-template-columns: auto 1fr; }
  .new__meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
}
.new__hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 899px) { .new__hint { display: none; } }

/* ---------- Статусы ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--instock { background: var(--ok-bg); color: var(--ok-fg); }
.chip--preorder { background: var(--pre-bg); color: var(--pre-fg); }
.chip--new { background: var(--ink); color: var(--paper); }
.chip--new::before { display: none; }

/* ---------- КАТАЛОГ ---------- */
.filters {
  display: grid; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 0;
}
@media (min-width: 1024px) { .filters { grid-template-columns: 1fr auto; align-items: center; } }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.filters__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule-strong);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chips button:hover { border-color: var(--ink); }
.chips button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select { display: inline-flex; align-items: center; gap: 8px; }
.select select {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  min-height: 36px; padding: 0 28px 0 10px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--rule-strong); border-radius: 0; color: var(--ink);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select select:hover { border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 16px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background var(--t-med) var(--ease);
  min-width: 0;
}
.card:hover { background: #fff; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; min-height: 22px; flex-wrap: wrap; }
.card__media { padding: 8px 10%; }
.card__media img {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 22px rgba(20, 10, 0, .14);
  background: var(--paper-2);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover .card__media img { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 34px rgba(20, 10, 0, .2); }
.card__series { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.card__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__sum { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.card__sum--request { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--muted); }
.card .btn { width: 100%; min-height: 44px; padding: 0 12px; font-size: 12px; }
@media (max-width: 480px) {
  .card { padding: 10px 10px 12px; }
  .card__media { padding: 4px 6%; }
  .card__title { font-size: 13px; }
  .card .btn { font-size: 11px; letter-spacing: .05em; }
  .chip { font-size: 10px; padding: 3px 6px; }
}

.grid__empty { padding: 48px 0 8px; display: grid; justify-items: start; gap: 16px; color: var(--muted); }

/* ---------- О МАГАЗИНЕ ---------- */
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); } }
.about__text p + p { margin-top: 14px; }
.about__text .section__title { margin-bottom: 22px; }
.about__text p:not(.kicker) { color: var(--muted); max-width: 58ch; font-size: 17px; }
.about__fan { position: relative; height: clamp(300px, 36vw, 440px); }
.about__fan img {
  position: absolute; left: 50%; top: 50%; width: clamp(170px, 20vw, 250px);
  aspect-ratio: 5/7; object-fit: cover; background: #fff;
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 16px 40px rgba(20, 10, 0, .18);
  transform: translate(-50%, -50%) translate(var(--x), 0) rotate(var(--r));
  transition: transform 600ms var(--ease);
}
.about__fan img:nth-child(1) { --x: -34%; --r: -10deg; }
.about__fan img:nth-child(2) { --x: 0; --r: 0deg; z-index: 1; }
.about__fan img:nth-child(3) { --x: 34%; --r: 10deg; }
.about__fan:hover img:nth-child(1) { --x: -46%; --r: -14deg; }
.about__fan:hover img:nth-child(3) { --x: 46%; --r: 14deg; }

.facts {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; border-top: 1px solid var(--rule-strong);
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts__item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) {
  .facts__item { padding: 28px 24px 28px 0; border-bottom: 0; border-right: 1px solid var(--rule); }
  .facts__item + .facts__item { padding-left: 24px; }
  .facts__item:last-child { border-right: 0; }
}
.facts dt { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--red); }
.facts dd { margin-top: 6px; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------- ШАГИ ---------- */
.steps { display: grid; gap: 22px; counter-reset: s; margin-bottom: 36px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.steps__n { display: block; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--red); margin-bottom: 12px; }
.steps h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 40ch; }

/* ---------- ПРЕДЗАКАЗ (красная плашка) ---------- */
.preorder { padding-top: 0; padding-bottom: 0; border-top: 0; }
.preorder__band {
  background: var(--red); color: var(--paper);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
}
.preorder .section__title { color: var(--paper); }
.preorder .section__desc { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.preorder__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.steps--light li { border-top-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.steps--light .steps__n { color: var(--paper); }
.steps--light p { color: color-mix(in srgb, var(--paper) 82%, transparent); }

/* ---------- ОТЗЫВЫ ---------- */
.reviews__grid { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); margin-bottom: 28px; }
@media (min-width: 800px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  /* неполный последний ряд: последняя карточка занимает остаток строки */
  .review:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .review:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
.review { padding: 24px 22px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.review__mark { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 1; color: var(--red); height: 34px; overflow: hidden; }
.review__text { font-size: 16px; line-height: 1.6; flex: 1; }
.review__who { display: flex; flex-direction: column; gap: 2px; }
.review__name { font-weight: 700; }
.review__meta { font-size: 13px; color: var(--muted); }

/* ---------- КОНТАКТЫ ---------- */
.contacts__list { display: grid; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
@media (min-width: 700px) { .contacts__list { grid-template-columns: repeat(2, 1fr); } }
.contacts__list > li > * {
  display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px;
  padding: 22px 20px; height: 100%;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.contacts__list a:hover { background: var(--ink); color: var(--paper); }
.contacts__list svg { grid-row: 1 / span 3; margin-top: 2px; }
.contacts__t { font-weight: 700; font-size: 17px; }
.contacts__d { font-size: 14px; color: var(--muted); }
.contacts__list a:hover .contacts__d { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.contacts__h { font-size: 13px; font-weight: 600; margin-top: 8px; font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- ФУТЕР ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 28px var(--gutter) 32px;
  border-top: 1px solid var(--rule-strong);
}
.footer img { width: 120px; }
.footer__rights { font-size: 12.5px; color: var(--muted); max-width: 60ch; }
.footer__top { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.footer__top:hover { color: var(--red); border-color: var(--red); }

/* ---------- Появление на скролле (JS вешает .reveal) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover .card__media img, .about__fan:hover img { transform: translate(-50%, -50%) translate(var(--x, 0), 0) rotate(var(--r, 0deg)); }
  .card:hover .card__media img { transform: none; }
}
