@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-300.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-400.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-400i.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-500.otf') format('opentype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-700.otf') format('opentype'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'JUZ40'; src: url('/fonts/juz40-900.otf') format('opentype'); font-weight: 900; font-display: swap; }

/* Тёмная премиальная тема: бордо → чёрный. Значения совпадают с режимом «Dark — бордо» в Figma */
:root {
  --bg: #0c0809;          /* фон страницы */
  --burgundy: #3a0c16;
  --burgundy-hi: #6b1424;
  --surface: #1a0b0f;     /* панели: товар, корзина, FAQ */
  --surface-2: #241015;
  --tile: #2a0b12;        /* фон предметной съёмки — фото перекрашены в бордово-чёрный градиент */
  --ink: #f3ece3;         /* основной текст */
  --body: #d6cbc4;
  --muted: #a3928f;
  --on-light: #140a0c;    /* текст на светлых кнопках */
  --line: rgba(255, 255, 255, 0.12);
  --red: #ed0505;
  --sale: #ff3b3b;
  --radius: 18px;
  --wrap: 1320px;
  --font: 'JUZ40', system-ui, sans-serif;
  --grad-burgundy: linear-gradient(135deg, #5a1020 0%, #2a0810 55%, #0a0506 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1400px 900px at 50% -200px, rgba(107, 20, 36, .45), transparent 70%),
    linear-gradient(180deg, #170709 0, var(--bg) 1400px);
  background-color: var(--bg);
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -0.02em; margin: 0; line-height: 1.02; font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, opacity .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark, .btn-light { background: var(--ink); color: var(--on-light); }
.btn-dark:hover, .btn-light:hover { background: #fff; box-shadow: 0 8px 30px rgba(237, 5, 5, .18); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-red { background: var(--red); color: #fff; }
.btn-wa { background: #25d366; color: #052e14; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 15px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }

/* ---------- шапка ---------- */
.announce { text-align: center; font-size: 13px; padding: 8px 16px; background: var(--burgundy); color: var(--ink); letter-spacing: .02em; }
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12, 8, 9, .72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 24px; width: auto; transform: translateY(2px); } /* «4» спускается ниже строки — центрируем по телу букв */
.brand-store { font-size: 14px; color: var(--muted); }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--body); }
.nav a:hover { color: #fff; }
.cart-btn {
  margin-left: auto; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-light); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.cart-btn:hover { background: #fff; }
.cart-icon { display: block; flex: none; }
.cart-count { min-width: 24px; height: 24px; border-radius: 999px; padding: 0 7px; background: var(--on-light); color: var(--ink); display: grid; place-items: center; font-size: 12px; }
.cart-btn.bump .cart-count { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); background: var(--red); color: #fff; } }

/* ---------- обложка: фоновое видео + бордово-чёрный градиент ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-burgundy);
  min-height: clamp(560px, calc(100vh - 64px), 860px); display: flex; flex-direction: column;
  /* контент обложки — в той же колонке, что и шапка (max-width 1320 + 24px), фон и видео — на всю ширину */
  padding: 28px max(24px, calc((100% - var(--wrap)) / 2 + 24px)) 36px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1s ease; }
.hero-video.is-ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(107, 20, 36, .45), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(18, 4, 10, .35) 60%, rgba(0, 0, 0, .85) 100%);
}
.hero-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--red); position: relative; z-index: 4; }
/* логотип и подпись — строго по центру обложки (как в Figma) */
.hero-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: min(92vw, 440px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  animation: titleIn 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-title { width: min(416px, 52vw); margin: 0; }
.hero-title img { width: 100%; height: auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .35)); }
.hero-cutout {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-46%);
  height: 78%; width: auto; max-width: 112vw; object-fit: contain; object-position: bottom; z-index: 3; pointer-events: none;
  animation: cutIn 1.2s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.hero.has-video .hero-cutout { display: none; }   /* когда есть видео — фигура не нужна */
.hero-bottom { position: relative; z-index: 4; margin-top: auto; display: flex; justify-content: flex-start; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero-text { margin: 0; max-width: 380px; font-size: 17px; line-height: 1.4; color: var(--body); white-space: pre-line; }
/* плашка «Community premium −15%» — внизу слева */
.hero-offer {
  position: relative; z-index: 4; margin: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; color: var(--ink);
}
.hero-offer b { background: var(--red); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; }

/* отметка выпускника при оформлении */
.form .community-check {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 4px; border-radius: 14px;
  border: 1px solid rgba(237, 5, 5, .45); background: rgba(237, 5, 5, .08); color: var(--ink); cursor: pointer;
}
.community-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.community-check span { display: grid; gap: 2px; font-size: 14px; }
.community-check small { color: var(--muted); font-size: 12px; }
@keyframes titleIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)); } }
@keyframes cutIn { from { opacity: 0; transform: translate(-46%, 40px); } }

/* ---------- медиа товара: предмет → фото на модели при наведении (или видео, если загружено) ---------- */
.media { position: relative; overflow: hidden; background: var(--media-bg, var(--tile)); user-select: none; -webkit-user-select: none; }
.media-img, .media-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.media-img { transition: opacity .5s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.media-contain .media-img { object-fit: contain; padding: 7%; }
.media-video { opacity: 0; transition: opacity .35s ease; }
.media.is-playing .media-video { opacity: 1; }
.media.show-image .media-video { opacity: 0; }
.media-alt { opacity: 0; transform: scale(1.04); }
.media.is-hover .media-alt { opacity: 1; transform: none; }
.media.is-hover .media-img:only-of-type { transform: scale(1.04); }

/* ---------- секции ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section h2 { font-size: clamp(36px, 5vw, 64px); }
.eyebrow { color: var(--red); font-size: 13px; margin: 0 0 10px; letter-spacing: .02em; }

/* вкладки дропов */
.drop-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; background: rgba(255, 255, 255, .03); }
.drop-tab { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--body); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.drop-tab span { font-size: 12px; color: var(--muted); }
.drop-tab:hover { color: #fff; }
.drop-tab.active { background: var(--grad-burgundy); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.drop-tab.active span { color: var(--body); }
.badge-drop { background: rgba(20, 10, 12, .85); color: var(--ink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; color: var(--body); }
.chip:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.chip.active { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.chip-collab.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--tile); transition: box-shadow .4s ease; }
.card:hover .card-media { box-shadow: 0 20px 60px -20px rgba(107, 20, 36, .7); }
.card-visual { position: absolute; inset: 0; }
.card-body { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 12px 4px 8px; }
.card-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.price { display: flex; flex-direction: column; align-items: end; font-weight: 500; white-space: nowrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 400; }
.price-new.is-sale { color: var(--sale); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.badge { height: 26px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 500; background: var(--ink); color: var(--on-light); }
.badge-sale, .badge-collab { background: var(--red); color: #fff; }
.card-add {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; height: 36px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--on-light); color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.card:hover .card-add, .card:focus-within .card-add { opacity: 1; transform: none; }
.card-add:hover { background: var(--red); color: #fff; }

/* широкая карточка — композиция «предмет + модель», как слайд презентации */
.card-wide { grid-column: span 2; }
.card-wide .card-media { aspect-ratio: 2 / 1; }

.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------- коллаб ---------- */
.collab { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; align-items: stretch; }
.collab-copy {
  background: linear-gradient(135deg, #2a0b12 0%, #120709 100%); border: 1px solid var(--line);
  border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 22px; align-items: start;
}
.collab-logo { width: min(320px, 80%); height: auto; }
.collab-copy h2 { font-size: clamp(32px, 4vw, 52px); }
.collab-copy p { margin: 0; color: var(--body); max-width: 520px; }
.collab-media { border-radius: 24px; overflow: hidden; aspect-ratio: 1; align-self: start; }
.collab-media img { width: 100%; height: 100%; object-fit: cover; }
.arys-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
.arys { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, .03); }
.arys-num { font-size: 22px; color: var(--red); line-height: 1; }
.arys-name { font-size: 14px; font-weight: 500; line-height: 1.15; }
.arys-years { color: var(--muted); font-size: 12px; }

/* ---------- о бренде ---------- */
.about { text-align: center; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.about-mark { width: min(420px, 80%); height: auto; }
.about-lead { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.about-tag { color: var(--red); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--body); }

/* ---------- подписка ---------- */
.subscribe {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; border-radius: 24px; padding: 44px 48px;
  background: var(--grad-burgundy); border: 1px solid var(--line);
}
.subscribe h2 { font-size: clamp(30px, 4vw, 46px); }
.subscribe p { color: var(--muted); margin: 12px 0 0; }
.subscribe input { background: rgba(0, 0, 0, .35); }
.subscribe .btn-dark { background: var(--red); color: #fff; }
.sub-form { display: flex; gap: 8px; }
.sub-form input { flex: 1; min-width: 0; }

input, select, textarea {
  height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #160a0d; color: var(--ink); font: inherit; font-size: 15px; outline: none; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 255, 255, .45); }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(58, 12, 22, .35)); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 24px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--red); }
.footer-copy { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 32px; color: var(--muted); font-size: 13px; }

/* ---------- страница товара ---------- */
.pdp { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.pdp-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 3, .7); backdrop-filter: blur(8px); animation: fade .25s ease; }
.pdp-panel {
  position: relative; width: min(1160px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; display: grid; grid-template-columns: 1.1fr 1fr;
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.pdp-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.pdp-media { padding: 16px; display: grid; gap: 10px; align-content: start; }
.pdp-stage { position: relative; }
.pdp-main { width: 100%; aspect-ratio: 1; border-radius: 18px; }
/* стрелки листания фото — по бокам главного фото */
.pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(12, 8, 9, .45); color: var(--ink); display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.pdp-nav:hover { background: rgba(12, 8, 9, .75); }
.pdp-nav:active { transform: translateY(-50%) scale(.94); }
.pdp-prev { left: 12px; }
.pdp-next { right: 12px; }
.pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--tile); }
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button.active { border-color: var(--ink); }
.pdp-thumbs .thumb-video { display: grid; place-items: center; font-size: 12px; color: var(--on-light); }
.pdp-info { padding: 44px 36px 36px; display: flex; flex-direction: column; gap: 22px; }
.pdp-info h2 { font-size: 34px; padding-right: 40px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 500; }
.pdp-price .price-old { font-size: 17px; }
.pdp-desc { color: var(--body); margin: 0; }
.opt-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
.opt:hover { border-color: rgba(255, 255, 255, .4); }
.opt.active { border-color: var(--ink); background: var(--ink); color: var(--on-light); }
.opt-color { display: inline-flex; align-items: center; gap: 8px; }
.opt-color i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; height: 42px; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 500; }
.pdp-buy { display: flex; gap: 10px; align-items: center; }
.pdp-buy .btn { flex: 1; height: 50px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide .35s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-img { width: 76px; height: 76px; border-radius: 12px; background: var(--tile); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 500; font-size: 15px; }
.line-opts { color: var(--muted); font-size: 13px; }
.line-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line-ctrl .qty { height: 32px; border-radius: 10px; }
.line-ctrl .qty button { width: 30px; font-size: 16px; }
.line-rm { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; text-decoration: underline; }
.line-sum { font-weight: 500; text-align: right; align-self: start; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--body); }
.sum-row.total { font-size: 18px; color: var(--ink); font-weight: 700; }
.sum-row .minus { color: var(--sale); }
.promo { display: flex; gap: 8px; }
.promo input, .promo .btn { height: 40px; }
.promo-ok { font-size: 13px; color: #5fd38a; }
.drawer-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.form { display: grid; gap: 10px; padding: 14px 0; }
.form label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
.seg button.active { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.back-link { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 0; justify-self: start; }
.done { text-align: center; padding: 50px 0; }
.done h4 { font-size: 26px; margin-bottom: 10px; }
.done p { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--on-light); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes slide { from { transform: translateX(100%); } }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .collab { grid-template-columns: 1fr; }
  .arys-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hero { min-height: 640px; padding: 18px 16px 24px; }
  .hero-title { width: 200px; }
  .hero-text { font-size: 13px; }
  .hero-offer { font-size: 12px; gap: 8px; padding: 6px 14px 6px 6px; white-space: nowrap; }
  .hero-offer b { font-size: 11px; padding: 3px 8px; }
  .hero-cutout { width: 150vw; height: auto; max-width: none; bottom: 120px; transform: translateX(-47%); }
  .subscribe { grid-template-columns: 1fr; padding: 28px 22px; }
  .collab-copy { padding: 28px 22px; }
  .pdp { padding: 0; place-items: end stretch; }
  .pdp-panel { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94vh; }
  .pdp-info { padding: 8px 20px 28px; }
  .pdp-info h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .section { padding: 48px 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-wide { grid-column: span 2; }
  .card-body { flex-direction: column; padding: 8px 2px 6px; gap: 2px; }
  .card-name { font-size: 14px; }
  .card-meta { display: none; }
  .price { align-items: start; flex-direction: row-reverse; gap: 6px; font-size: 14px; }
  .card-add { display: none; }
  .badges { top: 8px; left: 8px; }
  .badge { height: 22px; font-size: 11px; padding: 0 8px; }
  .arys-row { grid-template-columns: 1fr 1fr; }
  .sub-form { flex-direction: column; }
  .footer-cols { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
