/* =========================================================
   БЛОКМАРКЕТ — стили
   ========================================================= */

:root {
  --bg: #f9f8f6;
  --ink: #0a0a0a;
  --ink-soft: #2b2b28;
  --muted: #8a8a84;
  --line: #e4e2dd;
  --white: #ffffff;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
  --font-display: "Unbounded", sans-serif;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- бегущая строка ---------- */

.announce {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 0;
  white-space: nowrap;
}

.announce__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.announce__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 48px;
  padding-right: 48px;
}

.announce__group span { flex-shrink: 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- шапка ---------- */

/* контейнеры-обёртки не должны ломать sticky-позиционирование шапки */
#site-header, #site-footer { display: contents; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.header__nav {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__nav a { position: relative; padding: 4px 0; }

.header__nav a::after,
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

.header__nav a:hover::after,
.footer__links a:hover::after { width: 100%; }

.logo { display: block; }

/* multiply убирает белую подложку PNG-логотипа на светлом фоне сайта */
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  mix-blend-mode: multiply;
}

.logo-img--footer { height: 64px; }

.header__cart {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
}

.header__cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  padding: 0 5px;
  transition: transform 0.2s ease;
}

.header__cart-count.bump { animation: bump 0.35s ease; }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* floatCube используется кубиком на экране «заказ принят» */
@keyframes floatCube {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

/* ---------- каталог ---------- */

.catalog { padding-top: 40px; padding-bottom: 80px; }

.catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  padding: 14px 0 28px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog__count { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.card {
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 0.6s ease forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* фон = фону страницы: multiply на img смешивается именно с ним,
     т.к. анимация карточки создаёт stacking context */
  background: var(--bg);
}

/* multiply сливает белый фон фото с фоном сайта */
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.card:not(.has-photos):hover .card__media img { transform: scale(1.045); }

.card__peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.card:hover .card__peek { transform: translateY(0); }

.card__title {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.card__subtitle {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  text-transform: lowercase;
}

.card__price {
  margin-top: 4px;
  font-size: 11px;
  text-align: center;
}

/* ---------- страница товара ---------- */

.product { padding-top: 48px; padding-bottom: 80px; }

.product__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.product__media {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  background: var(--bg);
}

.product__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; mix-blend-mode: multiply; }

.product__info { position: sticky; top: 96px; }

.breadcrumbs {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumbs a:hover { color: var(--ink); }

.product__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
}

.product__subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.product__price {
  margin-top: 18px;
  font-size: 17px;
}

.product__desc {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 44ch;
}

.option-label {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }

.size-btn {
  min-width: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.size-btn:hover { border-color: var(--ink); }

.size-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.size-btn--out {
  color: var(--muted);
  border-color: var(--line);
  background: repeating-linear-gradient(135deg, transparent, transparent 4px, var(--line) 4px, var(--line) 5px);
  cursor: not-allowed;
}

.size-btn--out:hover { border-color: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
  text-align: center;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }

.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.product__actions { margin-top: 28px; display: grid; gap: 10px; }

.product__note {
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.size-warning {
  color: #b3261e;
  font-size: 10px;
  margin-top: 8px;
  display: none;
}

.size-warning.is-visible { display: block; }

/* ---------- ещё товары ---------- */

.more { padding-bottom: 80px; }

.more__head {
  border-top: 1px solid var(--ink);
  padding: 14px 0 26px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- корзина (drawer) ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}

.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--ink);
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cart-drawer__close { font-size: 16px; line-height: 1; padding: 4px; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 10px 22px; }

.cart-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cart-item__title {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-item__meta { font-size: 10px; color: var(--muted); margin-top: 2px; }

.cart-item__price { font-size: 11px; margin-top: 6px; }

.cart-item__qty {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.cart-item__qty button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty button:hover { background: var(--ink); color: var(--bg); }

.cart-item__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 11px;
}

.cart-item__remove {
  align-self: start;
  font-size: 10px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item__remove:hover { color: var(--ink); }

.cart-drawer__foot {
  border-top: 1px solid var(--ink);
  padding: 18px 22px 22px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.cart-drawer__note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* ---------- оформление заказа ---------- */

.checkout { padding-top: 48px; padding-bottom: 80px; }

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  margin-bottom: 34px;
}

.checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.form-section + .form-section { margin-top: 34px; }

.form-section__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin-bottom: 18px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { min-height: 84px; resize: vertical; }

.field--error input { border-color: #b3261e; }

.field__hint { font-size: 10px; color: var(--muted); margin-top: 4px; }

.radio-group { display: grid; gap: 8px; }

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.radio-option:hover { border-color: var(--ink); }

.radio-option input { accent-color: var(--ink); margin-top: 2px; }

.radio-option.is-active { border-color: var(--ink); }

.radio-option__title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

.radio-option__desc { font-size: 10px; color: var(--muted); }

.summary {
  border: 1px solid var(--ink);
  padding: 22px;
  position: sticky;
  top: 96px;
  background: var(--bg);
}

.summary__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.summary__items { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  padding: 8px 0;
}

.summary__row span:last-child { white-space: nowrap; }

.summary__row--muted { color: var(--muted); font-size: 10px; }

.summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 14px 0 18px;
  letter-spacing: 0.06em;
}

.checkout__success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}

.checkout__success-cube { width: 40px; margin: 0 auto 26px; animation: floatCube 4s ease-in-out infinite; }

.checkout__success-cube svg { width: 100%; height: auto; display: block; }

.checkout__success h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  text-transform: uppercase;
}

.checkout__success .order-code {
  display: inline-block;
  margin: 18px 0;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.checkout__success p { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

.checkout__success .btn { max-width: 320px; margin: 18px auto 0; }

/* ---------- документы ---------- */

.doc { padding-top: 48px; padding-bottom: 90px; max-width: 820px; }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 26px);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.doc__meta { margin: -14px 0 30px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.doc section { margin-top: 30px; }
.doc h2 { margin-bottom: 12px; font-family: var(--font-display); font-size: 14px; font-weight: 500; text-transform: uppercase; line-height: 1.45; }
.doc p, .doc li, .doc dd, .doc dt { font-size: 12px; line-height: 1.75; color: var(--ink-soft); }
.doc p + p { margin-top: 8px; }
.doc ul { margin: 10px 0 0 18px; }
.doc li + li { margin-top: 5px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc__notice { border: 1px solid var(--ink); padding: 18px 20px; font-size: 11px; line-height: 1.6; }
.doc__notice strong { text-transform: uppercase; letter-spacing: .06em; }
.doc__requisites { border-top: 1px solid var(--ink); padding-top: 26px; }
.doc__requisites dl { display: grid; grid-template-columns: 180px 1fr; }
.doc__requisites dt, .doc__requisites dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc__requisites dt { color: var(--muted); }
.doc__table-wrap { overflow-x: auto; margin: 14px 0; }
.doc table { width: 100%; border-collapse: collapse; min-width: 620px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: 11px; line-height: 1.55; vertical-align: top; }
.doc th { font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.doc code { font-family: var(--font-mono); font-size: 10px; }

.legal-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 14px; cursor: pointer; }
.legal-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--ink);
  cursor: pointer;
}
.legal-consent span { font-size: 10px; line-height: 1.55; color: var(--ink-soft); }
.legal-consent a { text-decoration: underline; text-underline-offset: 2px; }
.legal-consent.field--error { outline: 1px solid #b52b2b; outline-offset: 6px; }
.checkout__error { min-height: 16px; margin-top: 10px; color: #b52b2b; font-size: 10px; line-height: 1.45; }

.summary__row small { color: var(--muted); font-size: 9px; font-weight: 400; }

.payment-fallback-form { display: none; max-width: 360px; margin: 14px auto 0; }
.payment-fallback-form.is-visible { display: block; }

.delivery-faq { margin-top: 44px; }
.delivery-faq__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.delivery-faq article { border: 1px solid var(--line); background: color-mix(in srgb, var(--white) 62%, transparent); padding: 18px; }
.delivery-faq h2 { font-family: var(--font-display); font-size: 12px; font-weight: 500; text-transform: uppercase; margin-bottom: 10px; }
.delivery-faq p { font-size: 11px; color: var(--ink-soft); line-height: 1.7; }
.delivery-faq p + p { margin-top: 8px; }
.delivery-zones { display: grid; gap: 14px; margin-top: 18px; }
.delivery-zone { border: 1px solid var(--line); padding: 18px; }
.delivery-zone h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.delivery-zone p { font-size: 12px; color: var(--ink-soft); }
.delivery-partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.delivery-partners span { border: 1px solid var(--ink); padding: 6px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 600px) {
  .doc { padding-top: 34px; }
  .doc__requisites dl { grid-template-columns: 1fr; }
  .doc__requisites dt { padding-bottom: 0; border-bottom: 0; }
  .doc__requisites dd { padding-top: 2px; }
}

/* ---------- футер ---------- */

.footer {
  border-top: 1px solid var(--ink);
  padding: 34px 0 40px;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}


.footer__brand p {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer__links {
  display: grid;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links a { position: relative; padding-bottom: 2px; width: fit-content; }

/* ---------- cookie-баннер ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(360px, calc(100vw - 40px));
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 18px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p { font-size: 11px; color: var(--ink-soft); }

.cookie-banner p a { text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner__actions { display: flex; gap: 10px; margin-top: 14px; }

.cookie-banner__actions .btn { padding: 10px 16px; font-size: 10px; }

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

@media (max-width: 900px) {
  .delivery-faq__grid { grid-template-columns: 1fr; }
  .product__layout,
  .checkout__layout { grid-template-columns: 1fr; gap: 34px; }
  .product__info,
  .summary { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
}

@media (max-width: 640px) {
  .header__inner { grid-template-columns: auto 1fr auto; height: 56px; }
  .header__nav { display: none; }
  .logo { justify-self: start; }
  .logo-img { height: 40px; }
  .logo-img--footer { height: 52px; }
  .container { padding: 0 14px; }
  .cookie-banner { left: 14px; bottom: 14px; }
}

/* ---------- кабинет покупателя и бонусы ---------- */

.header__right { justify-self: end; display: flex; align-items: center; gap: 22px; }

.header__account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
}

.header__bonus {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-size: 10px;
  padding: 0 5px;
}

.account { padding-top: 48px; padding-bottom: 80px; }
.account__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.link-btn {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-tabs { display: flex; border-bottom: 1px solid var(--ink); margin-bottom: 22px; }

.auth-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.auth-form .btn { margin-top: 8px; }

.form-error { font-size: 11px; color: #b3261e; min-height: 16px; margin-top: 10px; }
.form-error.is-ok { color: #1d6b3a; }

.promo-list { list-style: none; display: grid; gap: 12px; font-size: 12px; }
.promo-list b { font-family: var(--font-display); font-weight: 500; font-size: 14px; }

.bonus-card {
  border: 1px solid var(--ink);
  padding: 22px;
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: end;
}

.bonus-card__label { grid-column: 1 / -1; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.bonus-card__value { font-family: var(--font-display); font-size: clamp(34px, 6vw, 52px); line-height: 1; }
.bonus-card__notes { font-size: 11px; color: var(--ink-soft); }
.bonus-card__notes p + p { margin-top: 4px; }
.bonus-card__notes a { text-decoration: underline; text-underline-offset: 3px; }

.account-orders { display: grid; gap: 10px; }
.account-order { border: 1px solid var(--line); padding: 14px 16px; }
.account-order__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.account-order__code { letter-spacing: 0.08em; }
.account-order__meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.account-order__items { font-size: 11px; margin-top: 8px; color: var(--ink-soft); }
.account-order__bonus { font-size: 10px; margin-top: 8px; }

.pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 2px 7px;
  margin-left: 6px;
}

.pill--muted { border-color: var(--line); color: var(--muted); }

/* страница заказа: шаги статуса и строки состава */
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0 28px; }
.order-step {
  padding-top: 10px;
  border-top: 2px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.order-step.is-done { border-top-color: var(--ink); color: var(--ink); }
.order-steps--cancelled {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.order-line--total { border-bottom: 0; font-weight: 500; }

a.account-order { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s; }
a.account-order:hover { border-color: var(--ink); }
.account-order__open { font-size: 10px; margin-top: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* пол при регистрации — две кнопки вместо выпадающего списка */
.choice { display: flex; gap: 8px; }
.choice label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  color: var(--ink);
  background: var(--white);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + span { font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.ledger-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  font-size: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row__date { color: var(--muted); font-size: 10px; }
.ledger-row__amount { white-space: nowrap; }
.ledger-row__amount--plus { color: #1d6b3a; }

.bonus-box {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
  margin-top: 4px;
  font-size: 11px;
}

.bonus-box label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.bonus-box input { accent-color: var(--ink); }
.bonus-box__note { font-size: 10px; color: var(--muted); margin-top: 4px; }
.bonus-box a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .header__right { gap: 14px; }
  .bonus-card { grid-template-columns: 1fr; }
}

/* ---------- фильтры каталога ---------- */

.filters { display: grid; gap: 12px; margin: -12px 0 32px; }

.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips-row::-webkit-scrollbar { display: none; }

.chips-row--wrap { flex-wrap: wrap; overflow: visible; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip__count { color: var(--muted); font-size: 10px; }
.chip.is-active .chip__count { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.chip__swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }

.filters__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }

.filters__search,
.filters__sort {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background-color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  border-radius: 0;
}

.filters__search:focus,
.filters__sort:focus { outline: none; border-color: var(--ink); }

.filters__sort {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230a0a0a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filters__toggle {
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filters__toggle[aria-expanded="true"] { border-color: var(--ink); }

.filters__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 36px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.filters__panel[hidden] { display: none; } /* иначе display:flex выше перебивает hidden */

.filters__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.filters__none { font-size: 11px; color: var(--muted); padding: 8px 0; }
.filters__reset { padding-bottom: 10px; }

.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 2.2;
}

@media (min-width: 901px) {
  /* на компьютере размеры и цвета видны сразу, кнопка не нужна */
  .filters__toggle { display: none; }
  .filters__panel[hidden] { display: flex; }
  .filters__bar { grid-template-columns: minmax(0, 380px) auto; justify-content: space-between; }
}

@media (max-width: 640px) {
  .filters { margin-top: -16px; }
  .filters__bar { grid-template-columns: 1fr 1fr; }
  .filters__search { grid-column: 1 / -1; font-size: 16px; } /* меньше 16px — iPhone зумит страницу при фокусе */
  .filters__panel { flex-direction: column; align-items: stretch; }
  .filters__reset { align-self: flex-start; }
  .chips-row:not(.chips-row--wrap) { margin: 0 -14px; padding: 0 14px; }
}

/* ---------- первый экран: куб «Блок за блоком» ---------- */

.hero {
  --cube: clamp(200px, 52vw, 290px);
  position: relative;
  isolation: isolate;
  padding-top: 8px;
  padding-bottom: 28px;
  text-align: center;
}

/* сетка «блоков» на фоне, тает к краям */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero__hint {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero__stage {
  position: relative;
  height: calc(var(--cube) * 1.8);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  touch-action: pan-y;      /* вертикальный свайп — скролл страницы, горизонтальный — крутит куб */
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  animation: cubeIn 1.1s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__stage.is-dragging { cursor: grabbing; }

/* наклон к мыши/телефону — отдельным слоем, чтобы не мешать вращению */
.cube-tilt { transform-style: preserve-3d; }

.cube {
  position: relative;
  width: var(--cube);
  height: var(--cube);
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-32deg);
  will-change: transform;
}

/* --fz — насколько грань отлетела от куба (анимация сборки при загрузке) */
@property --fz { syntax: "<length>"; inherits: false; initial-value: 0px; }

.cube__face {
  --fz: 0px;
  position: absolute;
  inset: 0;
  display: block;
  background: var(--white);
  border: 1px solid var(--ink);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  animation: faceIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cube__img {
  position: absolute;
  top: 13%;
  left: 12%;
  width: 76%;
  height: 64%;
  object-fit: contain;
  pointer-events: none;
}

.cube__cat,
.cube__arrow {
  position: absolute;
  top: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cube__cat { left: 10px; }
.cube__arrow { right: 10px; font-size: 13px; color: var(--ink); letter-spacing: 0; }

.cube__name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 24px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cube__price { position: absolute; left: 10px; bottom: 8px; font-size: 11px; }

/* затемнение по освещению — прозрачность ставит js/hero.js; свой слой,
   чтобы смена прозрачности не перерисовывала грань с фото */
.cube__shade { position: absolute; inset: 0; background: #0a0a0a; opacity: 0; pointer-events: none; will-change: opacity; }

.cube__face--front { transform: translateZ(calc(var(--cube) / 2 + var(--fz))); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2 + var(--fz))); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2 + var(--fz))); animation-delay: 0.08s; }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2 + var(--fz))); animation-delay: 0.16s; }
.cube__face--top { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2 + var(--fz))); animation-delay: 0.24s; }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2 + var(--fz))); animation-delay: 0.32s; }

@keyframes faceIn { from { --fz: 320px; opacity: 0; } }

.hero__shadow {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: calc(var(--cube) * 1.15);
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 10, 10, 0.2), transparent);
  pointer-events: none;
}


@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cubeIn { from { opacity: 0; transform: scale(0.7) translateY(24px); } to { opacity: 1; transform: none; } }



/* ---------- курсор «Смотреть» (только мышь) ---------- */

.view-cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }

.view-cursor__dot {
  position: absolute;
  left: -44px;
  top: -44px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-cursor.is-active .view-cursor__dot { transform: scale(1); }
.has-view-cursor [data-cursor] { cursor: none; }
.has-view-cursor .card__peek { display: none; }


/* ---------- полёт в корзину и дождь из кубиков ---------- */

.fly-clone {
  position: fixed;
  z-index: 96;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  animation: fadeUp 0.2s both;
  transition: opacity 0.25s ease;
}

.celebrate.is-leaving { opacity: 0; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.celebrate__text { position: relative; text-align: center; }
.celebrate__num { font-family: var(--font-display); font-size: clamp(64px, 14vw, 140px); line-height: 1; }
.celebrate__caption { margin-top: 12px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

.size-left { margin-top: 8px; font-size: 11px; color: #b3261e; }
.size-left:empty { display: none; }

/* ---------- переходы между страницами ----------
   Фото товара «перелетает» из каталога в карточку (имя product-photo
   ставит js/effects.js), остальная страница мягко проявляется. */

@view-transition { navigation: auto; }

::view-transition-group(product-photo) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.22s; }

/* карточки проявляются по мере прокрутки, а не по таймеру */
@supports (animation-timeline: view()) {
  .card {
    animation: cardIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
    animation-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .card,
  .hero__stage { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- фото товара кубом (телефон) ---------- */

.product__media.is-cube { display: block; overflow: visible; }

.gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  touch-action: pan-y;
  overflow: hidden;
  background: var(--bg);
}

.gallery__spin { position: absolute; inset: 0; transform-style: preserve-3d; }

.gallery__face {
  position: absolute;
  inset: 0;
  background: var(--bg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery__face img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; pointer-events: none; }

.gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.gallery__dots span { width: 18px; height: 2px; background: var(--line); transition: background 0.25s ease, width 0.25s ease; }
.gallery__dots span.is-active { width: 30px; background: var(--ink); }

.gallery__count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.product__media.is-cube { position: relative; }

/* ---------- липкая панель «цена · В корзину» (телефон) ---------- */

.buybar { display: none; }

@media (max-width: 900px) {
  .buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .buybar.is-visible { transform: none; }
  .buybar__info { flex: 1; min-width: 0; }
  .buybar__title { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__price { font-size: 14px; }
  .buybar .btn { width: auto; flex: none; padding: 13px 20px; }
}


/* карточка товара на телефоне: фото, цена, размер и кнопка — на первом экране */
@media (max-width: 900px) {
  .product { padding-top: 12px; }
  .product .product__layout { gap: 16px; }
  .product .breadcrumbs { display: none; }
  .product__price { margin-top: 10px; }
  .product__desc { margin-top: 10px; }
  .option-label { margin-top: 16px; }
  .product__actions { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cube__face { animation: none; }
}

/* ---------- лента фото в карточке (js/cards.js) ----------
   Фото листаются родной прокруткой с защёлкиванием — плавно на телефоне. */

.card__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.card__track::-webkit-scrollbar { display: none; }

.card__track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Safari не применяет mix-blend-mode внутри прокручиваемой ленты — белый
     фон фото вылезал квадратами. Вместо наложения чуть затемняем фото:
     белый (255) → 248, почти ровно фон сайта #f9f8f6; вещи не меняются на глаз. */
  mix-blend-mode: normal;
  filter: brightness(0.973);
}

.card__dots {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.card__dots span { flex: 1; height: 2px; background: rgba(10, 10, 10, 0.12); transition: background 0.2s ease; }
.card__dots span.is-active { background: var(--ink); }


/* ---------- луки (готовые образы) ---------- */

.header__looks { display: none; }

.looks { padding-top: 40px; padding-bottom: 80px; }
.looks__lead { margin: -20px 0 28px; font-size: 12px; color: var(--ink-soft); }
.looks__lead a { text-decoration: underline; text-underline-offset: 3px; }

.looks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }

.looks-shelf { padding-bottom: 36px; }

.looks-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px 4px;
}

.looks-row::-webkit-scrollbar { display: none; }
.looks-row .look-card { flex: 0 0 min(70vw, 280px); scroll-snap-align: start; }

.look-card { display: block; }
.look-card__info { margin-top: 10px; }
.look-card__title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.look-card__title span { color: var(--muted); }
.look-card__meta { margin-top: 3px; font-size: 11px; color: var(--ink-soft); }

/* коллаж-борд образа: слева верх и футболка, справа низ, снизу — детали */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3%;
  padding: 5%;
  aspect-ratio: 3 / 4;
  background: #eceae5;
  border: 1px solid var(--line);
  isolation: isolate;
}

.board__col { display: flex; flex-direction: column; gap: 6%; min-height: 0; }
.board__tile { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }

.board__tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.board__tile img.is-cut { filter: drop-shadow(0 10px 12px rgba(10, 10, 10, 0.22)); }
.board__tile img.is-flat { mix-blend-mode: multiply; }

.board--big { max-width: 560px; margin: 0 auto; }

.look-card:hover .board__tile img { transform: scale(1.04); }

.look__items { margin-top: 18px; border-top: 1px solid var(--line); }

.look-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.look-item__img img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.look-item__title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.look-item__meta { margin: 2px 0 8px; font-size: 10px; color: var(--muted); }
.look-item.is-missing .sizes { outline: 1px solid #b3261e; outline-offset: 3px; }

.sizes--small { gap: 6px; }
.sizes--small .size-btn { min-width: 36px; padding: 6px 8px; font-size: 10px; }

.look__total { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .looks-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
}

@media (max-width: 640px) {
  .header__looks { display: inline-flex; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
  .looks { padding-top: 28px; }
  .looks-grid { grid-template-columns: 1fr; }
  .looks-row { margin: 0 -14px; padding: 0 14px 4px; }
}
