/* ==========================================================================
   СМЕНА — стритвир. Базовые стили: токены, типографика, шапка, панели,
   корзина, модалки, формы, чекаут. Светлая тема по референсу shihiko.com
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --bg-3: #ececec;
  --fg: #000000;
  --grey: #6f6f6f;
  --grey-dim: #a3a3a3;
  --line: #e4e4e4;
  --line-soft: #efefef;
  --acc: #ff7a1a;
  --dark: #2b2b2b;
  --head-h: 64px;
  --head-h-fixed: 64px;
  --pad-x: 24px;
  --f-wide: "Unbounded", "Arial Black", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --f-text: Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
.checkout > *, .search-res > *, .pp > *, .plist > * { min-width: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.num, .price, .price-old, .cart-count, .q-val, .sum, .mono {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* моно-лейбл — базовый приём интерфейса */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.mono.dim, .dim { color: var(--grey); }

/* широкий сверхжирный заголовок */
.wide {
  font-family: var(--f-wide);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
.wide sup {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.28em;
  letter-spacing: 0.04em;
  vertical-align: top;
  margin-left: 0.4em;
  line-height: 1;
  position: relative;
  top: 0.35em;
}
.h-sec { font-family: var(--f-wide); font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); text-transform: uppercase; line-height: 1.05; }

.wrap { padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 1080px; margin-inline: auto; padding-inline: var(--pad-x); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- кнопки — как .btn референса: рамка-уголки, wipe-заливка, текст уезжает вверх ---------- */
.btn-solid, .btn-line, .btn-white, .btn-black {
  display: inline-block;
  position: relative;
  padding: 2px;
  background: transparent;
  border: none;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0;
  cursor: pointer;
  color: #fff;
}
.btn__c {
  display: block;
  position: relative;
  padding: 14px 12px;
  background: #030303;
  border: 1px solid #030303;
  color: #fff;
  overflow: hidden;
  transition: all 0.3s;
}
.btn__c::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--acc);
  transform: scale3d(0, 1, 1);
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1;
}
.btn__c > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 2; overflow: hidden; }
.btn__t { display: block; }
.btn__c i { font-style: normal; font-size: 9px; }
.btn__k {
  --cw: 1px;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  color: #030303;
  background:
    linear-gradient(to right, currentColor var(--cw), transparent var(--cw)) 0 0,
    linear-gradient(to right, currentColor var(--cw), transparent var(--cw)) 0 100%,
    linear-gradient(to left, currentColor var(--cw), transparent var(--cw)) 100% 0,
    linear-gradient(to left, currentColor var(--cw), transparent var(--cw)) 100% 100%,
    linear-gradient(to bottom, currentColor var(--cw), transparent var(--cw)) 0 0,
    linear-gradient(to bottom, currentColor var(--cw), transparent var(--cw)) 100% 0,
    linear-gradient(to top, currentColor var(--cw), transparent var(--cw)) 0 100%,
    linear-gradient(to top, currentColor var(--cw), transparent var(--cw)) 100% 100%;
  background-repeat: no-repeat;
  background-size: 6px 4px;
  transition: all 0.3s;
}
@keyframes MoveUpInitial { to { transform: translate3d(0, -105%, 0); } }
@keyframes MoveUpEnd { 0% { transform: translate3d(0, 100%, 0); } to { transform: translateZ(0); } }
.btn-solid:hover .btn__c { border-color: var(--acc); }
.btn-solid:hover .btn__c::before, .btn-line:hover .btn__c::before { transform: scale3d(1, 1, 1); transform-origin: 0 50%; }
.btn-solid:hover .btn__t, .btn-line:hover .btn__t, .btn-white:hover .btn__t, .btn-black:hover .btn__t { animation: MoveUpInitial 0.2s forwards, MoveUpEnd 0.2s forwards 0.2s; }
.btn-solid:hover .btn__k { color: var(--acc); background-size: 10px 6px; }
.btn-line:hover .btn__k, .btn-white:hover .btn__k, .btn-black:hover .btn__k { background-size: 10px 6px; }
/* secondary: прозрачная, чёрный текст, на ховере заливается чёрным */
.btn-line { color: #030303; }
.btn-line .btn__c { background: transparent; color: #030303; }
.btn-line .btn__c::before { background: #030303; }
.btn-line:hover .btn__c { color: #fff; border-color: #030303; }
.btn-line:hover .btn__k { color: #030303; }
/* white: залита белым, на ховере заливка уходит вправо, остаётся белая рамка и текст */
.btn-white { color: #fff; }
.btn-white .btn__c { background: transparent; color: #030303; border-color: #fff; }
.btn-white .btn__c::before { background: #fff; transform: scale3d(1, 1, 1); transform-origin: 0 50%; }
.btn-white .btn__k { color: #fff; }
.btn-white:hover .btn__c { color: #fff; border-color: #fff; }
.btn-white:hover .btn__c::before { transform: scale3d(0, 1, 1); transform-origin: 100% 50%; }
.btn-white:hover .btn__k { color: #fff; }
/* black: залита чёрным, на ховере заливка уходит, остаётся чёрная рамка и тёмный текст */
.btn-black .btn__c { background: transparent; color: #fff; border-color: #030303; }
.btn-black .btn__c::before { background: #030303; transform: scale3d(1, 1, 1); transform-origin: 0 50%; }
.btn-black .btn__k { color: #fff; }
.btn-black:hover .btn__c { color: #030303; border-color: #030303; }
.btn-black:hover .btn__c::before { transform: scale3d(0, 1, 1); transform-origin: 100% 50%; }
.btn-solid[disabled] { opacity: 0.3; cursor: not-allowed; }
.btn-solid[disabled] .btn__c::before { display: none; }
.btn-solid[disabled] .btn__t { animation: none !important; }
/* fallback без обёртки (до btnFx) */
.btn-solid:not([data-fx]) { background: #030303; color: #fff; padding: 15px 14px; border: 1px solid #030303; }
.btn-line:not([data-fx]) { padding: 15px 14px; border: 1px solid #030303; }
.btn-white:not([data-fx]) { background: #fff; color: #030303; padding: 15px 14px; border: 1px solid #fff; }

/* ---------- переход между страницами (reload-overflow + loading-bar референса) ---------- */
.reload-overflow { position: fixed; left: 0; top: 100vh; width: 100vw; height: 100vh; background: #fff; transition: top 0.5s; pointer-events: none; z-index: 1000; }
.reload-overflow.show { top: 0; }
.loading-bar { position: fixed; top: 0; left: -100vw; width: 100vw; height: 4px; background: #000; transition: left 1s linear; z-index: 1001; }
.loading-bar.show { left: 0; }
body.no-scroll, body.disable-scroll { overflow: hidden; }

/* ==========================================================================
   ШАПКА — как header-new референса: прозрачная над hero (белый текст),
   после hero — белая с blur(18px); мега-меню раскрывается по высоте
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  height: var(--head-h);
  padding: 0 32px;
  background: #fff;
  color: #030303;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.page-home .header { position: fixed; left: 0; background: transparent; color: #fff; }
body.page-home .header.is-past { background: rgba(255, 255, 255, 0.72); color: #030303; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
body.page-home .header.is-open { background: rgba(255, 255, 255, 0.72); color: #030303; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.header__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}
.header__side { display: flex; align-items: center; gap: 32px; }
.header__side--right { justify-content: flex-end; }

.h-nav { display: flex; align-items: center; gap: 32px; }
.h-nav__item { position: static; }
.h-link, .h-nav__item > button, .h-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.h-link:hover, .h-nav__item > button:hover, .h-btn:hover { opacity: 0.68; }
.h-st { font-weight: 500; font-size: 12px; }
.h-st--o, .is-open > .h-link .h-st--c, .is-open > button .h-st--c { display: none; }
.is-open > .h-link .h-st--o, .is-open > button .h-st--o { display: inline; }
.h-btn svg { display: block; }
.h-btn--icon { position: relative; }
.h-btn--m { display: none; }

/* мега-меню: высота анимируется JS-ом (0 → scrollHeight), список подъезжает снизу */
.h-mega {
  position: absolute;
  top: 100%;
  left: 32px;
  width: fit-content;
  min-width: 300px;
  height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(200px);
  backdrop-filter: blur(200px);
  border-radius: 2px;
  z-index: 2;
  transition: height 0.28s ease;
  color: #030303;
  text-align: left;
}
.h-mega__in { padding: 32px 24px; }
.h-mega__list { opacity: 0; transform: translateY(24px); transition: opacity 0.22s ease 0.08s, transform 0.22s ease 0.08s; }
.h-nav__item.is-open .h-mega__list { opacity: 1; transform: translateY(0); }
.h-mega__sec + .h-mega__sec { margin-top: 24px; }
.h-mega__h { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 24px; font-family: var(--f-wide); font-size: 24px; font-weight: 900; line-height: 0.82; text-transform: uppercase; color: #030303; }
.h-mega__h span { font-family: var(--f-mono); font-size: 10px; font-weight: 500; line-height: 1; margin-top: 2px; }
.h-mega__h:last-child { margin-bottom: 0; }
.h-mega__h a, .h-mega__l { color: inherit; transition: transform 0.18s ease, opacity 0.18s ease; }
.h-mega__h a:hover, .h-mega__l:hover { opacity: 0.68; transform: scale(0.98); transform-origin: left center; }
.h-mega__l { display: flex; align-items: flex-start; gap: 5px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; color: #030303; }
.h-mega__l:last-child { margin-bottom: 0; }
.h-mega__l small { font-size: 10px; color: rgba(3, 3, 3, 0.55); }
.h-nav__item::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }

/* валюта — выпадашка под кнопкой */
.h-cur { position: relative; }
.h-cur__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 78px;
  padding: 12px 15px 14px;
  background: #fff;
  color: #030303;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 3;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.h-cur.is-open .h-cur__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.h-cur__menu label { display: block; padding: 4px 0; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; cursor: pointer; transition: opacity 0.18s ease; }
.h-cur__menu label:hover { opacity: 0.68; }
.h-cur__menu input { display: none; }
.h-cur__menu input:checked + span { text-decoration: underline; text-underline-offset: 3px; }

/* бургер: три линии → крест */
.burger { display: none; width: 24px; height: 24px; align-items: center; justify-content: center; }
.burger i, .burger i::before, .burger i::after { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger i { position: relative; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; top: 0; }
.burger i::before { transform: translateY(-5px); }
.burger i::after { transform: translateY(5px); }
body.nav-open .burger i { background: transparent; }
body.nav-open .burger i::before { transform: rotate(45deg); }
body.nav-open .burger i::after { transform: rotate(-45deg); }

/* логотип — леттеринг с наклоном */
.header__logo { text-align: center; line-height: 0; }
.logo-word {
  display: inline-block;
  font-family: var(--f-wide);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  line-height: 1;
  color: inherit;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  background: var(--acc);
  color: #000;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none;
}
.cart-count.is-on { display: block; }

/* ---------- мобильное меню: панель под шапкой, fade + сдвиг 8px за .24s ---------- */
.navpanel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--head-h));
  padding: 24px 32px 40px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(200px);
  backdrop-filter: blur(200px);
  color: #030303;
  z-index: 2;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}
body.nav-open .navpanel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nm { border-bottom: 1px solid rgba(3, 3, 3, 0.12); }
.nm__b, .nm__a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 18px 0 17px;
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #030303;
  text-align: left;
}
.nm__sub { height: 0; overflow: hidden; transition: height 0.3s ease; }
.nm__sub-in { position: relative; padding: 20px 0 24px 19px; }
.nm.is-open .nm__sub-in::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(3, 3, 3, 0.18); }
.nm__h { display: flex; align-items: flex-start; gap: 5px; margin: 0 0 8px; font-family: var(--f-wide); font-size: 28px; font-weight: 900; line-height: 0.9; text-transform: uppercase; }
.nm__h span { font-family: var(--f-mono); font-size: 10px; font-weight: 500; }
.nm__l { display: flex; gap: 4px; padding: 6px 0; font-family: var(--f-mono); font-size: 16px; text-transform: uppercase; color: rgba(3, 3, 3, 0.68); }
.nm__l small { font-size: 10px; }
.nm__foot { margin-top: 28px; }
.nm__foot a, .nm__foot button { display: block; padding: 7px 0; background: none; border: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(3, 3, 3, 0.68); }

/* ---------- общая вуаль ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #030303;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}
body.cart-open .veil, body.modal-open .veil, body.search-open .veil { opacity: 0.5; visibility: visible; }
body.cart-open .veil { z-index: 1199; }

/* ==========================================================================
   КОРЗИНА (drawer) — тёмная панель #030303, выезжает справа за .3s (right: -450px → 0)
   ========================================================================== */
.drawer {
  position: fixed;
  top: 0;
  right: -450px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 412px;
  height: 100vh;
  height: 100dvh;
  padding: 22px 16px 20px;
  background: #030303;
  color: #fff;
  visibility: hidden;
  transition: right 0.3s, visibility 0s 0.3s;
}
body.cart-open .drawer { right: 0; visibility: visible; transition: right 0.3s, visibility 0s; }
.drawer__head { position: relative; display: flex; align-items: flex-start; gap: 4px; padding: 0 0 18px; }
.drawer__title { font-family: var(--f-wide); font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -0.1px; text-transform: uppercase; }
.drawer__head i { font-style: normal; font-family: var(--f-mono); font-size: 10px; color: #f3e7d6; margin-top: 2px; }
.drawer__close, .modal__close, .search-panel__close { background: none; border: none; padding: 0; line-height: 0; color: #abb2b9; transition: all 0.3s; }
.drawer__close { position: absolute; top: -3px; right: -2px; }
.drawer__close:hover { color: var(--acc); }
.modal__close, .search-panel__close { color: #000; }
.modal__close:hover, .search-panel__close:hover { color: var(--acc); }
.drawer__items { flex: 1; overflow-y: auto; padding: 4px 0 20px; }
.drawer__empty { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1 0 auto; height: 100%; text-align: center; padding-top: 40px; }
.drawer__empty-t { font-family: var(--f-mono); font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 13px; }
.drawer__empty p { font-size: 15px; color: #fff; margin-bottom: 4px; }
.drawer__empty .mono { color: #fff; margin-bottom: 22px; }
.drawer__empty .btn-white { display: block; width: 100%; margin-bottom: 6px; }
.drawer__empty .btn-white:not([data-fx]) { color: #030303; }
.drawer__free-chip { margin-top: 18px; padding: 10px 16px; background: var(--acc); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; }

.d-item { display: grid; grid-template-columns: 93px 1fr; gap: 16px; }
.d-item + .d-item { margin-top: 16px; }
.d-item img { width: 93px; height: 124px; object-fit: cover; background: #f3f3f3; border-radius: 2px; }
.d-info { display: flex; flex-direction: column; padding: 6px 0 8px; }
.d-top { display: flex; justify-content: space-between; gap: 20px; }
.d-name { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; color: #fff; transition: all 0.3s; }
.d-name:hover { color: var(--acc); }
.d-price { font-family: var(--f-mono); font-size: 12px; font-weight: 700; white-space: nowrap; }
.d-size { margin: 7px 0; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.d-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.d-qty { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(255, 255, 255, 0.35); padding: 4px 8px; }
.d-qty button { background: none; border: none; padding: 0 2px; font-size: 14px; line-height: 1; color: #fff; transition: color 0.3s; }
.d-qty button:hover { color: var(--acc); }
.d-qty .q-val { font-family: var(--f-mono); font-size: 11px; min-width: 14px; text-align: center; }
.d-del { background: none; border: none; padding: 0 0 3px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.d-del:hover { color: var(--acc); }

.drawer__foot { padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.drawer__free { position: relative; margin-bottom: 14px; padding-bottom: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.drawer__free b { font-weight: 700; color: #fff; }
.drawer__free i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--acc); transition: width 0.4s var(--ease); }
.drawer__free::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.18); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.drawer__total .sum { font-size: 16px; font-weight: 700; }
.drawer__foot .btn-white { display: block; width: 100%; }
.drawer__note { margin-top: 10px; font-family: var(--f-mono); font-size: 9px; color: rgba(255, 255, 255, 0.55); text-align: center; }

/* ==========================================================================
   МОДАЛКИ, ПОИСК
   ========================================================================== */
.modal {
  position: fixed;
  z-index: 140;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 26px 28px 28px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 6px 6px 0 #000;
  transform: translate(-50%, -46%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal__p { font-size: 13px; line-height: 1.7; color: var(--grey); margin-bottom: 18px; }
.modal__p b { font-weight: 600; color: #000; }
.city-list li a { display: block; padding: 10px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--line); color: var(--grey); }
.city-list li a:hover, .city-list li a.is-active { color: #000; }
.city-list li a.is-active::after { content: " ●"; color: var(--acc); }
.city-list li a.is-dim { color: var(--grey-dim); }

.search-panel {
  position: fixed;
  top: 12px;
  right: 32px;
  bottom: 24px;
  left: auto;
  z-index: 1300;
  width: min(720px, calc(100% - 64px));
  padding: 31px 36px 42px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(200px);
  backdrop-filter: blur(200px);
  border-radius: 2px;
  color: #030303;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
@keyframes searchPanel { 0% { opacity: 0.9; clip-path: inset(0 0 calc(100% - 42px) 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
body.search-open .search-panel { opacity: 1; visibility: visible; pointer-events: auto; transform-origin: center top; animation: searchPanel 0.28s ease both; }
.search-panel__top { display: flex; align-items: center; gap: 18px; }
.search-panel input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #030303;
  color: #030303;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.search-panel input::placeholder { color: rgba(3, 3, 3, 0.4); }
.search-panel input:focus { outline: none; }
.search-pop { margin-top: 22px; }
.search-pop ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-pop a { display: inline-block; padding: 7px 12px; border: 1px solid #030303; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.3s; }
.search-pop a:hover { background: #030303; color: #fff; }
.search-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 26px; }
.search-res__item { padding: 0 0 12px; }
.search-res__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #f3f3f3; border-radius: 4px; }
.search-res__item span { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.search-res__item b { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.search-empty { margin-top: 26px; font-size: 13px; color: var(--grey); }

/* ---------- поля форм ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  color: #000;
  font: inherit;
  font-size: 14px;
}
.field textarea { height: 92px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 #000; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-dim); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field[hidden] { display: none; }

/* ==========================================================================
   ЧЕКАУТ — белая тема, чёрные плитки доставки
   ========================================================================== */
.page-head { padding: 34px var(--pad-x) 26px; border-bottom: 1px solid #000; }
.page-head h1 { margin-top: 10px; font-family: var(--f-wide); font-weight: 900; font-size: clamp(26px, 4.6vw, 52px); text-transform: uppercase; line-height: 1; }
.page-head p { margin-top: 14px; max-width: 56ch; color: var(--grey); font-size: 13px; }
.crumbs { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.crumbs a:hover { color: #000; }
.crumbs span { margin: 0 8px; }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: start; }
.co-form { padding: 34px var(--pad-x) 80px; }
.co-side { position: sticky; top: calc(var(--head-h) + 16px); padding: 34px var(--pad-x) 60px; border-left: 1px solid #000; }
.co-block + .co-block { margin-top: 36px; padding-top: 30px; border-top: 1px solid #000; }
.co-block > h2 { margin-bottom: 20px; font-family: var(--f-wide); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.co-block > h2 i { font-style: normal; font-family: var(--f-mono); font-weight: 500; font-size: 11px; color: var(--grey); margin-right: 12px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.ship-note { margin: -2px 0 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.ship-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ship-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "method days";
  gap: 6px 12px;
  align-items: baseline;
  padding: 14px 14px 12px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ship-tile:hover { background: #000; }
.ship-tile:has(input:checked) { background: #000; border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.ship-tile:has(input:checked)::after { content: "●"; position: absolute; right: 12px; bottom: 10px; color: var(--acc); font-size: 8px; }
.ship-tile.is-off { opacity: 0.3; pointer-events: none; }
.ship-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ship-tile b { grid-area: name; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ship-tile span { grid-area: method; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.ship-tile em { grid-area: price; font-style: normal; font-family: var(--f-mono); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ship-tile small { grid-area: days; justify-self: end; margin-right: 16px; font-family: var(--f-mono); font-size: 10px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.ship-tile--wide { grid-column: 1 / -1; grid-template-areas: "name price" "method method"; }
.addr-map { margin: -4px 0 20px; }
.addr-map[hidden] { display: none; }
.addr-map__map { height: 300px; border: 1px solid #000; background: var(--bg-2); }
.addr-map__map .leaflet-control-attribution { background: rgba(255,255,255,0.8); color: var(--grey); font-size: 9px; }
.addr-map__map .leaflet-bar { border: 1px solid #000; border-radius: 0; box-shadow: none; }
.addr-map__map .leaflet-bar a { background: #fff; color: #000; border-color: var(--line); border-radius: 0 !important; }
.addr-map__note { margin-top: 8px; font-family: var(--f-mono); font-size: 10px; color: var(--grey); }

.radio-list { display: grid; gap: 8px; }
.radio-opt { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.radio-opt:hover { border-color: #000; }
.radio-opt:has(input:checked) { border-color: #000; box-shadow: 3px 3px 0 #000; }
.radio-opt input { appearance: none; width: 12px; height: 12px; margin: 4px 0 0; border: 1px solid #000; flex: none; transition: background-color 0.2s var(--ease); }
.radio-opt input:checked { background: #000; box-shadow: inset 0 0 0 2px #fff; }
.radio-opt b { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.radio-opt small { display: block; margin-top: 5px; font-size: 12px; color: var(--grey); }

.co-items { margin-bottom: 22px; }
.co-sum { border-top: 1px solid #000; padding-top: 16px; }
.co-sum__row { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.co-sum__row span:first-child { color: var(--grey); }
.co-sum__row[hidden] { display: none; }
.co-sum__total { margin-top: 10px; padding-top: 14px; border-top: 1px solid #000; display: flex; align-items: baseline; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.co-sum__total .sum { font-size: 20px; font-weight: 700; }
.co-side .btn-solid { width: 100%; height: 48px; margin-top: 16px; }
.co-agree { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--grey); }
.co-side .lg-consent { margin-top: 20px; }

.thanks { padding: 100px var(--pad-x) 120px; text-align: center; }
.thanks__mark { width: 60px; height: 60px; margin: 0 auto 28px; border: 1px solid #000; box-shadow: 4px 4px 0 #000; display: grid; place-items: center; }
.thanks h1 { font-family: var(--f-wide); font-weight: 900; font-size: clamp(22px, 4vw, 40px); text-transform: uppercase; line-height: 1.05; }
.thanks p { margin: 20px auto 30px; max-width: 48ch; color: var(--grey); font-size: 14px; }

/* ==========================================================================
   REVEAL — тайминги parallax-секции референса (cubic-bezier(.22,1,.36,1))
   ========================================================================== */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.52s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.on { opacity: 1; transform: translateY(0); }
/* clip-path вешаем на внутренний span: IntersectionObserver в Chrome учитывает clip-path и не видит обрезанный элемент */
.rv-clip > span { display: block; opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(28px); transition: opacity 0.18s ease, clip-path 0.76s cubic-bezier(0.22, 1, 0.36, 1), transform 0.76s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: 0.14s; }
.rv-clip.on > span { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
.rv-d1 { transition-delay: 0.36s; }
.rv-d2 { transition-delay: 0.46s; }
.rv-d3 { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-clip > span { opacity: 1; transform: none; clip-path: none; transition: none; }
  .cs .cs__bg, .cs .cs__tr, .cs .cs__meta, .cs .cs__btn { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .reload-overflow, .loading-bar { display: none; }
  * { scroll-behavior: auto !important; animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1100px) {
  .search-res { grid-template-columns: repeat(3, 1fr); }
  .header__side { gap: 20px; }
  .h-nav { gap: 20px; }
}
@media (max-width: 960px) {
  :root { --head-h: 64px; }
  .checkout { grid-template-columns: 1fr; }
  .co-side { position: static; border-left: none; border-top: 1px solid #000; }
  .header { padding: 0 18px; }
  .h-nav, .h-link--vip, .h-cur, .h-link--vault, .h-btn--search { display: none; }
  .burger { display: inline-flex; }
  .h-btn--m { display: inline-flex; }
  .header__side { gap: 16px; }
  .search-panel { top: var(--head-h); right: 0; bottom: 0; left: 0; width: 100%; padding: 28px 18px 40px; border-radius: 0; background: #fff; transform: translateY(-8px); transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease; }
  body.search-open .search-panel { transform: translateY(0); animation: none; }
  .search-res { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --pad-x: 16px; }
  .ship-tiles { grid-template-columns: 1fr 1fr; }
  .addr-map__map { height: 240px; }
  .page-head { padding-top: 26px; }
  .drawer { max-width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .ship-tiles { grid-template-columns: 1fr; }
  .co-row { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px 24px; }
}
