/* ==========================================================================
   Куклы Натальи Ковалёвой — тема. Все цвета, шрифты, размеры и радиусы здесь.
   ========================================================================== */
:root {
  /* Цвет */
  --c-bg: #F8F3EC;            /* тёплый молочный фон */
  --c-surface: #FFFCF8;       /* карточки, панели */
  --c-sunk: #F0E8DE;          /* подложка под фото */
  --c-text: #45342C;          /* основной текст: тёмно-коричневый */
  --c-text-2: #76645A;        /* второстепенный текст (5:1 на фоне) */
  --c-line: #E7DDD2;          /* границы */
  --c-line-strong: #D3C4B5;   /* границы полей */
  --c-accent: #A8573B;        /* терракота: кнопки, активные состояния */
  --c-accent-hover: #924A30;
  --c-accent-soft: #F4E6DD;   /* мягкая подложка акцента */
  --c-on-accent: #FFFAF6;
  --c-error: #A93A2B;
  --c-error-soft: #FBEAE5;
  --c-ok: #4B6A51;
  --c-overlay: rgba(45, 32, 25, .36);
  --c-lightbox: #17120F;
  --c-focus: #A8573B;

  /* Шрифты */
  --f-display: "Alice", Georgia, "Times New Roman", serif;
  --f-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-h2: clamp(24px, 3vw, 30px);
  --fs-h1: clamp(28px, 4.4vw, 44px);
  --fs-price: clamp(26px, 3vw, 32px);
  --lh: 1.55;

  /* Формы */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(69, 52, 44, .05), 0 8px 24px -12px rgba(69, 52, 44, .16);
  --sh-2: 0 2px 8px rgba(69, 52, 44, .06), 0 24px 60px -20px rgba(69, 52, 44, .3);

  /* Ритм */
  --gap: 12px;
  --gap-y: 22px;
  --pad: 16px;
  --maxw: 1320px;
  --header-h: 60px;
  --tap: 44px;
  --drawer-w: 460px;

  /* Движение */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .3s;
}
@media (min-width: 768px) { :root { --gap: 18px; --gap-y: 32px; --pad: 32px; --header-h: 68px; } }
@media (min-width: 1280px) { :root { --gap: 24px; --pad: 48px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 var(--fs-base)/var(--lh) var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-hover); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--c-surface); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.skip-link:focus { top: 8px; }
.noscript { padding: 24px var(--pad); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 500; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); border-color: var(--c-text-2); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: var(--fs-md); border-radius: var(--r); }
.btn--sm { min-height: var(--tap); padding: 8px 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--c-sunk); color: var(--c-text-2); cursor: not-allowed; transform: none; }
.btn.is-in-cart { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.btn.is-in-cart:hover { background: #EEDACD; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text);
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--c-sunk); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; min-height: var(--tap); margin-right: auto; }
.brand:hover { color: var(--c-text); }
.brand__mark { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
@media (min-width: 480px) { .brand__name { font-size: 21px; } }
.brand__sub { font-size: 12px; color: var(--c-text-2); letter-spacing: .04em; }
.header__nav { display: none; gap: 4px; }
.header__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-sm); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); }
.header__nav a:hover { background: var(--c-sunk); }
@media (min-width: 720px) { .header__nav { display: flex; } }
.cart-btn {
  position: relative; display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cart-btn:hover { border-color: var(--c-line-strong); box-shadow: var(--sh-1); }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-accent);
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.cart-btn.is-bump .cart-btn__count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- Приветствие и фильтры ---------- */
.intro { padding: 20px 0 18px; }
@media (min-width: 768px) { .intro { padding: 40px 0 28px; } }
.intro__eyebrow { font-size: var(--fs-sm); color: var(--c-text-2); margin-bottom: 8px; }
.intro__title { max-width: 21ch; font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.005em; }
.intro__muted { color: var(--c-text-2); }

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
@media (min-width: 1024px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; } }
.pills {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); scroll-padding: 0 var(--pad);
}
.pills::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .pills { margin: 0; padding: 2px; flex-wrap: wrap; overflow: visible; } }
.pill {
  flex: none; min-height: var(--tap); padding: 0 18px; border: 1px solid var(--c-line); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-text); font-size: var(--fs-base);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pill:hover { border-color: var(--c-line-strong); }
.pill[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-surface); }
.toolbar__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 1024px) { .toolbar__controls { justify-content: flex-end; gap: 20px; } }

.switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; font-size: var(--fs-sm); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 40px; height: 24px; flex: none; border-radius: var(--r-pill); background: var(--c-line-strong); transition: background-color var(--dur) var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform var(--dur) var(--ease); }
.switch input:checked + .switch__track { background: var(--c-accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-focus); outline-offset: 2px; }

.sort { position: relative; display: inline-flex; align-items: center; }
.sort select {
  appearance: none; -webkit-appearance: none; min-height: var(--tap); padding: 0 36px 0 14px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); font-size: var(--fs-sm); cursor: pointer;
}
.sort select:hover { border-color: var(--c-line-strong); }
.sort__chev { position: absolute; right: 10px; width: 18px; height: 18px; pointer-events: none; color: var(--c-text-2); }

/* ---------- Сетка и карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-y) var(--gap); padding-bottom: 56px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 88px; } }

.card { position: relative; min-width: 0; }
.card__link { display: block; color: inherit; text-decoration: none; border-radius: var(--r); }
.card__link:hover { color: inherit; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--c-sunk);
  box-shadow: 0 0 0 1px rgba(69, 52, 44, .04);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.035); }
.card__title { margin-top: 10px; font-size: var(--fs-base); font-weight: 400; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin-top: 4px; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 400px) { .card__title { font-size: 15px; } .card__price { font-size: 17px; } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; line-height: 1;
  background: rgba(255, 252, 248, .94); color: var(--c-text); box-shadow: 0 1px 3px rgba(69, 52, 44, .12);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.badge--reserved::before { background: var(--c-text-2); }
.card__media .badge { position: absolute; left: 8px; top: 8px; }

[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

.card--skeleton .card__media { animation: pulse 1.6s ease-in-out infinite; }
.sk-line { height: 14px; margin-top: 12px; border-radius: 6px; background: var(--c-sunk); }
.sk-line--short { width: 40%; height: 18px; margin-top: 8px; }
@keyframes pulse { 50% { opacity: .55; } }

/* «Кукла по фото» */
.promo {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch;
  overflow: hidden; border-radius: var(--r-lg); background: var(--c-accent-soft);
}
@media (min-width: 640px) { .promo { grid-column: span 2; } }
.promo__media { display: block; background: var(--c-sunk); min-height: 100%; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 4 / 5; }
.promo__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 18px 18px; justify-content: center; }
@media (min-width: 768px) { .promo__body { padding: 28px; gap: 10px; } }
.promo__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.promo__text { font-size: var(--fs-sm); color: var(--c-text); max-width: 36ch; }
.promo__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.promo__price { font-weight: 600; font-size: var(--fs-md); }
@media (max-width: 400px) { .promo__text { font-size: 13.5px; } .promo__body { padding: 14px; } }

.empty { grid-column: 1 / -1; padding: 48px 0 24px; max-width: 44ch; }
.empty__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-lg); margin-bottom: 8px; }
.empty p { color: var(--c-text-2); margin-bottom: 18px; }

/* ---------- Вид: появление ---------- */
.view.is-entering { animation: viewIn .4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Карточка товара ---------- */
.backlink { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin: 8px 0 8px -8px; padding: 0 10px 0 8px; border-radius: var(--r-sm); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); }
.backlink:hover { background: var(--c-sunk); color: var(--c-text); }
.backlink .icon { width: 20px; height: 20px; }
.product { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 72px; }
  .product__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 899px) { .product__gallery { margin: 0 calc(var(--pad) * -1); } }

.gallery__stage { position: relative; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--c-sunk); aspect-ratio: 4 / 5; outline-offset: -2px;
}
@media (min-width: 900px) { .gallery__track { border-radius: var(--r-lg); } }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; height: 100%; }
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 252, 248, .92); color: var(--c-text);
  box-shadow: var(--sh-1); transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.gallery__arrow:hover { background: var(--c-surface); }
.gallery__arrow[disabled] { opacity: 0; pointer-events: none; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
@media (hover: hover) and (min-width: 900px) { .gallery__arrow { display: grid; } }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(69, 52, 44, .28); transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease); }
.gallery__dots .dot.is-active { width: 18px; border-radius: 3px; background: var(--c-text); }
@media (min-width: 900px) { .gallery__dots { display: none; } }
.gallery__thumbs { display: none; gap: 10px; margin-top: 12px; }
@media (min-width: 900px) { .gallery__thumbs { display: flex; } }
.thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-xs); overflow: hidden; background: var(--c-sunk); opacity: .6; box-shadow: 0 0 0 1px var(--c-line); transition: opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--c-text); }

.product__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) { .product__info { padding-top: 8px; } }
.product__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; outline: none; }
.product__price { font-size: var(--fs-price); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.status { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-2); }
.status--stock { align-items: center; }
.status--stock .icon { width: 18px; height: 18px; color: var(--c-ok); }
.status--mto { flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--c-accent-soft); color: var(--c-text); }
.status--mto .badge { box-shadow: none; }
.product__actions { margin-top: 4px; }
@media (min-width: 900px) { .product__actions .btn { max-width: 380px; } }
.product__specs { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-2); }
.product__specs b { font-weight: 500; color: var(--c-text); }
.product__desc { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; font-size: var(--fs-base); line-height: 1.65; }
.product__note { font-size: var(--fs-sm); color: var(--c-text-2); }

.related { padding: 8px 0 24px; border-top: 1px solid var(--c-line); }
.related__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); margin: 32px 0 20px; }
.grid--related { padding-bottom: 32px; }
@media (min-width: 640px) and (max-width: 1023px) { .grid--related > :nth-child(4) { display: none; } }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line); transform: translateY(0); transition: transform var(--dur) var(--ease);
}
.buybar__price { display: flex; flex-direction: column; line-height: 1.15; font-size: 20px; font-weight: 600; white-space: nowrap; }
.buybar__price span { font-size: 12.5px; font-weight: 400; color: var(--c-text-2); }
.buybar .btn { flex: 1; }
@media (min-width: 900px) { .buybar { display: none; } }
@media (max-width: 899px) { body.has-buybar .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

.notfound { padding: 64px var(--pad) 96px; max-width: 48ch; }
.notfound h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h1); margin-bottom: 12px; }
.notfound p { color: var(--c-text-2); margin-bottom: 20px; }

/* ---------- Спасибо ---------- */
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 72px var(--pad) 96px; max-width: 560px; }
.thanks__mark { width: 64px; height: 64px; margin-bottom: 4px; }
.thanks__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.12; outline: none; }
.thanks__num { font-size: var(--fs-md); }
.thanks__num strong { font-weight: 600; letter-spacing: .02em; }
.thanks__text { max-width: 42ch; }
.thanks__muted { color: var(--c-text-2); font-size: var(--fs-sm); margin-bottom: 12px; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-surface); padding: 40px 0 28px; }
@media (min-width: 768px) { .site-footer { padding: 64px 0 36px; } }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.footer__block { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); line-height: 1.6; }
.footer__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-lg); margin-bottom: 4px; }
.footer__muted { color: var(--c-text-2); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: baseline; }
.steps__n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-line-strong); font-size: 13px; font-weight: 500; transform: translateY(-1px); }
.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--c-text); text-decoration: none; }
.contacts a:hover { color: var(--c-accent); }
.contacts .icon { width: 20px; height: 20px; color: var(--c-text-2); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--fs-xs); color: var(--c-text-2); }
.footer__bottom a { color: var(--c-text-2); }

/* ---------- Корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--c-overlay); opacity: 0; transition: opacity var(--dur) var(--ease); }
.drawer__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--c-bg);
  transform: translateY(24px); opacity: 0; transition: transform .38s var(--ease), opacity .3s var(--ease);
}
@media (min-width: 768px) {
  .drawer__panel { inset: 0 0 0 auto; width: min(var(--drawer-w), 100%); box-shadow: var(--sh-2); transform: translateX(40px); border-radius: var(--r-lg) 0 0 var(--r-lg); }
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
.drawer__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px var(--pad); padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) { .drawer__head { padding: 16px 16px 16px 24px; } }
.drawer__head .icon-btn:first-child { margin-left: -10px; }
.drawer__heading { flex: 1; min-width: 0; }
.drawer__title { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; outline: none; }
.drawer__step { font-size: var(--fs-xs); color: var(--c-text-2); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--pad) 24px; }
@media (min-width: 768px) { .drawer__body { padding: 20px 24px 28px; } }
.drawer__foot { padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-surface); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .drawer__foot { padding: 18px 24px 22px; border-radius: 0 0 0 var(--r-lg); } }
.drawer__foot:empty { display: none; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total span { color: var(--c-text-2); font-size: var(--fs-sm); }
.total strong { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }

.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cart-item:first-child { padding-top: 4px; }
.cart-item__img { display: block; width: 64px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; background: var(--c-sunk); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cart-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__title { color: var(--c-text); text-decoration: none; line-height: 1.35; }
.cart-item__title:hover { color: var(--c-accent); }
.cart-item__status { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.4; }
.cart-item__status--warn { color: var(--c-error); }
.cart-item__price { font-weight: 600; white-space: nowrap; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-item__side .icon-btn { margin-right: -10px; color: var(--c-text-2); }
.cart-item__side .icon-btn .icon { width: 18px; height: 18px; }
.cart-item.is-unavailable .cart-item__img, .cart-item.is-unavailable .cart-item__price { opacity: .5; }
.cart-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: var(--fs-sm); color: var(--c-text-2); }
.cart-notes .note-mto { padding: 12px 14px; border-radius: var(--r-sm); background: var(--c-accent-soft); color: var(--c-text); }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px 0; }
.cart-empty__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-lg); }
.cart-empty p { color: var(--c-text-2); margin-bottom: 10px; max-width: 34ch; }

/* ---------- Форма ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { padding: 0; font-size: var(--fs-sm); font-weight: 500; }
.field__opt { font-weight: 400; color: var(--c-text-2); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
  background: var(--c-surface); font-size: 16px; line-height: 1.3;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: #9C8B80; }
.input:hover { border-color: var(--c-text-2); }
.input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(168, 87, 59, .16); }
.input--lg { min-height: 54px; font-size: 18px; letter-spacing: .02em; }
.textarea { resize: vertical; min-height: 92px; }
.field.has-error .input { border-color: var(--c-error); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(169, 58, 43, .16); }
.field__error { font-size: var(--fs-xs); color: var(--c-error); min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select__chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; color: var(--c-text-2); }

.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--c-sunk); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; min-height: 40px; padding: 0 4px; border-radius: 9px; font-size: var(--fs-sm); text-align: center;
  color: var(--c-text); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (max-width: 370px) { .segmented span { font-size: 13px; } }
.segmented input:checked + span { background: var(--c-surface); box-shadow: 0 1px 3px rgba(69, 52, 44, .14); font-weight: 500; }
.segmented input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 1px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); line-height: 1.45; min-height: var(--tap); padding-top: 2px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--c-line-strong); border-radius: 7px; background: var(--c-surface); color: var(--c-on-accent); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.check__box .icon { width: 16px; height: 16px; stroke-width: 2.2; opacity: 0; transition: opacity .15s; }
.check input:checked + .check__box { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.field.has-error .check__box { border-color: var(--c-error); }
.check__link { margin: -10px 0 0 36px; font-size: var(--fs-sm); }
.check__link a { display: inline-flex; min-height: 32px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: var(--r-sm); background: var(--c-error-soft); color: var(--c-error); font-size: var(--fs-sm); line-height: 1.5; }
.alert a { color: inherit; font-weight: 500; }
.order-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); font-size: var(--fs-sm); margin-bottom: 2px; }
.order-summary strong { font-size: var(--fs-base); }
.foot-note { font-size: var(--fs-xs); color: var(--c-text-2); text-align: center; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--c-lightbox); opacity: 0; transition: opacity var(--dur) var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 56px 0; scroll-snap-align: center; scroll-snap-stop: always; }
@media (min-width: 900px) { .lightbox__slide { padding: 40px 96px; } }
.lightbox__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color var(--dur) var(--ease), opacity var(--dur); }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); display: none; }
.lightbox__arrow[disabled] { opacity: .25; pointer-events: none; }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }
@media (min-width: 900px) { .lightbox__arrow { display: grid; } }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }

/* ---------- Политика ---------- */
.doc { max-width: 720px; padding: 32px var(--pad) 72px; }
.doc h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.12; margin-bottom: 20px; }
.doc h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-lg); margin: 28px 0 8px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc__warn { padding: 14px 16px; border-radius: var(--r-sm); background: var(--c-accent-soft); margin-bottom: 24px; font-size: var(--fs-sm); }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
