/* ============================================================
   Базовые стили магазина. Темы переопределяют переменные.
   ============================================================ */

:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface-2: #f4efe8;
  --ink: #221f1c;
  --ink-soft: #4f4842;
  --muted: #857c72;
  --line: #e7e0d6;
  --line-strong: #d6ccbf;
  --accent: #a9805a;
  --accent-ink: #ffffff;
  --accent-soft: #f3ece3;
  --ok: #2f7d5a;
  --warn: #a9761c;
  --bad: #b04437;
  --info: #3f6c8f;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 14px;
  --shadow: 0 18px 40px rgba(34, 31, 28, .08);
  --container: 1240px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --header-height: 78px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 4.6vw, 62px); }
h2 { font-size: clamp(26px, 2.8vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.muted { color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.num { text-align: right; white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: 11px; }
.btn--lg { padding: 18px 36px; }
.btn--wide { flex: 1; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.link-arrow:hover { border-color: var(--ink); }
.link-danger { background: none; border: 0; padding: 0; color: var(--bad); cursor: pointer; font-size: 13px; }
.link-danger:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar__right { opacity: .7; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-height);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--serif); font-size: 20px;
}
.logo__text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 20px; letter-spacing: .06em; line-height: 1.1; }
.logo__text small { font-family: var(--sans); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right .2s ease;
}
.nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.theme-picker { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.theme-picker__label {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); line-height: 1;
}
.theme-picker select {
  width: auto;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 2px 4px; cursor: pointer; max-width: 96px;
}
.theme-picker select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.icon-link { position: relative; font-size: 20px; line-height: 1; }
.wishlist-count {
  position: absolute; top: -4px; right: -10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; padding: 1px 5px; border-radius: 999px;
}


.search { display: flex; align-items: center; }
.search input {
  width: 110px; border: 0; background: transparent; padding: 6px 4px;
  font: inherit; font-size: 13px; color: var(--ink); outline: none;
  transition: width .2s ease;
}
.search input:focus { width: 170px; }
.search button { border: 0; background: none; cursor: pointer; padding: 4px; color: var(--muted); }

.cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.cart-link__icon { display: block; }
.login-link {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.login-link:hover { color: var(--accent); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0;
}

.burger { display: none; width: 34px; height: 34px; background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.burger span { display: block; height: 1px; background: var(--ink); margin: 5px 0; transition: .2s; }
}

/* ---------- Flash и тосты ---------- */
.flash-wrap { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flash--success { border-color: #bfe0cf; background: #eef7f2; color: #235c41; }
.flash--error { border-color: #efccc6; background: #fbf0ee; color: #8b382d; }
.flash--info { border-color: #cbdde9; background: #eef4f8; color: #2f5468; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 14px 20px; border-radius: 999px;
  font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); transition: .25s ease;
  max-width: 320px;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--surface-2);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; padding: 96px 28px; max-width: 1240px; }
.hero h1 { max-width: 15ch; }
.hero__text { max-width: 48ch; font-size: 17px; color: var(--ink-soft); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 40px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.hero__facts strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }

/* ---------- Секции и сетки ---------- */
.section { padding: 86px 0; }
.section--tight { padding: 44px 0; }
.section--accent { background: var(--surface-2); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips--center { justify-content: center; }
.chip {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: .18s ease; background: transparent;
}
.chip:hover, .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Карточки товаров ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 34px 26px;
}
.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--surface-2);
  border-radius: var(--radius);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.badge--sale { background: var(--accent); color: var(--accent-ink); }
.badge--muted { background: var(--surface-2); color: var(--muted); }

.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card__head h3 { font-size: 20px; margin: 0; line-height: 1.25; }
.wish { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--muted); padding: 0 2px; }
.wish.is-active { color: var(--accent); }
.card__meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.price { font-family: var(--serif); font-size: 20px; }
.price s { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 8px; }
.price--lg { font-size: 32px; }
.card__sizes { font-size: 11px; letter-spacing: .1em; color: var(--muted); }

/* ---------- Раздел «на заказ» ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.split__text p { max-width: 46ch; color: var(--ink-soft); }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.split__note {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}

.steps { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.steps li span { font-family: var(--serif); font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.steps--vertical li div { display: flex; flex-direction: column; }
.steps--vertical small { color: var(--muted); font-size: 12.5px; }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review {
  margin: 0; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: var(--accent); letter-spacing: .18em; font-size: 14px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.review figcaption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.review__product { display: inline-block; margin-top: 6px; border-bottom: 1px solid var(--line-strong); letter-spacing: .04em; }
.review__product:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Подписка ---------- */
.subscribe-band {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 46px 48px;
}
.subscribe-band h2 { margin-bottom: 8px; }
.subscribe-band p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input {
  flex: 1; padding: 14px 18px; border: 1px solid var(--line-strong);
  border-radius: 999px; font: inherit; font-size: 14px; background: var(--bg);
}

/* ---------- Заголовок страницы ---------- */
.page-head { padding: 54px 0 42px; border-bottom: 1px solid var(--line); }
.page-head--small { padding: 34px 0 26px; }
.page-head h1 { margin-bottom: 10px; }
.page-head__sub { max-width: 62ch; color: var(--ink-soft); margin: 0; }
.page-head__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: 268px 1fr; gap: 48px; padding: 42px 28px 90px; }
.filters { align-self: start; position: sticky; top: calc(var(--header-height) + 20px); }
.filters__toggle { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 20px; }
.filter-group h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.radio small { margin-left: auto; color: var(--muted); font-size: 11px; }
.filter-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg); font: inherit; font-size: 14px;
}
.range { display: flex; align-items: center; gap: 8px; }
.range input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg); font: inherit; font-size: 14px;
}
.filters__reset { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: underline; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.size-chip { position: relative; cursor: pointer; }
.size-chip input { position: absolute; opacity: 0; inset: 0; }
.size-chip span {
  display: inline-grid; place-items: center; min-width: 42px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13px; transition: .15s ease;
}
.size-chip input:checked + span,
.size-chip input:focus-visible + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-chip__reset { font-size: 12px; color: var(--muted); text-decoration: underline; }

.catalog__bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sort { display: flex; gap: 14px; flex-wrap: wrap; }
.sort a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.sort a:hover { color: var(--ink); }
.sort a.is-active { color: var(--ink); border-color: var(--ink); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 54px; font-size: 14px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 10px;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Карточка товара ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding-top: 26px; padding-bottom: 70px; }
.pdp__gallery { display: flex; flex-direction: column; gap: 14px; }
.pdp__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.pdp__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp__thumb { padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; width: 76px; }
.pdp__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp__thumb.is-active { border-color: var(--ink); }

.pdp__info h1 { margin-bottom: 12px; }
.pdp__rating { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.stars { color: var(--accent); letter-spacing: .15em; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.pdp__lead { color: var(--ink-soft); font-size: 16px; max-width: 46ch; }
.pdp__form { margin: 26px 0; }
.pdp__buy { display: flex; gap: 14px; align-items: stretch; margin-top: 20px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 46px; border: 0; text-align: center; background: none;
  font: inherit; font-size: 15px; -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.pdp__meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pdp__meta span { color: var(--muted); }
.pdp__meta b { font-weight: 500; text-align: right; }

.quick-order { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.quick-order summary { cursor: pointer; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.quick-order form { display: grid; gap: 10px; margin-top: 14px; }
.quick-order input, .quick-order select {
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: var(--bg);
}

.accordion details { border-top: 1px solid var(--line); padding: 14px 0; }
.accordion summary { cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.accordion details[open] summary::after { content: "–"; }

.prose { font-size: 15.5px; color: var(--ink-soft); }
.prose h3, .prose h2, .prose h4 { color: var(--ink); }
.prose ul { padding-left: 1.1em; }
.prose--wide { max-width: 74ch; }

.review-form { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.review-form summary { cursor: pointer; font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }

/* ---------- Формы ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.measure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; cursor: pointer; }
.check input { margin-top: 4px; }
.check a { text-decoration: underline; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 26px; margin-bottom: 18px; }
.panel--soft { background: var(--surface-2); }

.step-num { font-family: var(--serif); font-size: 18px; color: var(--accent); margin-right: 8px; }

/* ---------- Корзина ---------- */
.cart-page { padding: 42px 28px 90px; }
.cart-layout { display: grid; grid-template-columns: 1fr 372px; gap: 48px; align-items: start; }
.cart-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item__media { width: 108px; flex: 0 0 108px; }
.cart-item__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.cart-item__body { flex: 1; }
.cart-item__head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 21px; }
.cart-item__meta { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.cart-item__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cart-item .qty { border-radius: var(--radius-sm); }
.cart-item .qty button { height: 38px; width: 36px; }
.cart-item .qty input { height: 38px; }

.coupon { display: flex; align-items: flex-end; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.coupon .field--inline { margin: 0; flex: 1; min-width: 200px; }

.cart-summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
}
.cart-summary--sticky { position: sticky; top: calc(var(--header-height) + 20px); }
.cart-summary h2 { font-size: 24px; margin: 0; }
.cart-summary h3 { font-size: 17px; margin: 0; }
.summary { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; }
.summary__discount dd { color: var(--ok); }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 17px; }
.summary__total dd { font-family: var(--serif); font-size: 26px; }
.cart-summary .btn { margin-top: 4px; }

.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.mini-list img { width: 44px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.mini-list div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mini-list small { color: var(--muted); font-size: 12px; }

/* ---------- Оформление заказа ---------- */
.checkout { display: grid; grid-template-columns: 1fr 372px; gap: 48px; padding: 42px 28px 90px; align-items: start; }
.radio-cards { display: grid; gap: 10px; margin-bottom: 18px; }
.radio-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 18px; cursor: pointer; position: relative; display: block;
  transition: border-color .15s ease, background .15s ease;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; }
.radio-card__body b { font-weight: 500; font-size: 15px; }
.radio-card__body small { grid-column: 1; color: var(--muted); font-size: 13px; }
.radio-card__price { grid-row: 1; grid-column: 2; font-size: 14px; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.radio-card.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Статус заказа ---------- */
.order-page { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 42px 28px 90px; align-items: start; }
.order-page__aside .cart-summary { position: sticky; top: calc(var(--header-height) + 20px); }
.track { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 30px; counter-reset: none; }
.track li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.track__dot {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  font-size: 12px; background: var(--surface);
}
.track li.is-done { color: var(--ink); }
.track li.is-done .track__dot { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.track li.is-current .track__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tfoot td { border-bottom: 0; padding-top: 10px; }
.table__total td { font-size: 17px; font-family: var(--serif); }

.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.timeline li { border-left: 2px solid var(--line); padding-left: 14px; }
.timeline b { display: block; }
.timeline small { color: var(--muted); }
.timeline p { margin: 4px 0 0; color: var(--ink-soft); }

.deflist { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.deflist > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.deflist dt { color: var(--muted); font-size: 13px; }
.deflist dd { margin: 0; }
.deflist--inline { flex-direction: row; flex-wrap: wrap; gap: 24px; }
.deflist--inline > div { display: flex; flex-direction: column; gap: 2px; }

.status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; background: var(--surface-2); }
.status--ok { background: #e9f5ee; color: var(--ok); }
.status--warn { background: #fbf1dd; color: var(--warn); }
.status--bad { background: #faebe8; color: var(--bad); }
.status--info { background: #eaf1f7; color: var(--info); }
.status--muted { background: var(--surface-2); color: var(--muted); }

.lookup { max-width: 460px; }
.maintenance { max-width: 620px; }
.maintenance h1 { margin-bottom: 14px; }

/* ---------- Оплата ---------- */
.pay-page { display: grid; place-items: center; min-height: 60vh; padding: 70px 28px 100px; }
.pay-card {
  width: 100%; max-width: 520px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.pay-card h1 { font-size: 32px; margin: 0; }
.pay-card__sum { font-family: var(--serif); font-size: 36px; margin: 6px 0; }
.pay-card__icon {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 28px; color: var(--muted);
}
.pay-card__icon--ok { background: #e9f5ee; color: var(--ok); }
.pay-card__icon--bad { background: #faebe8; color: var(--bad); }

/* ---------- Страницы и поиск ---------- */
.page-body { display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding: 48px 28px 90px; align-items: start; }
.contacts-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; background: var(--surface); font-size: 14px;
}
.contacts-card h2 { font-size: 22px; }
.contacts-card p { margin-bottom: 12px; }

.search--page { max-width: 520px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 4px 6px 4px 16px; }
.search--page input { width: 100%; border: 0; }
.search--page button { flex: 0 0 auto; }

.empty { padding: 60px 0; max-width: 560px; }
.empty h2 { font-size: 30px; }
.empty__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Индивидуальный пошив ---------- */
.custom-page { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 42px 28px 90px; align-items: start; }
.custom-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-height) + 20px); }
.custom-aside .panel { margin: 0; padding: 24px; }
.custom-aside h3 { font-size: 18px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--bg); margin-top: 0; }
.site-footer a { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.site-footer a:hover { color: var(--bg); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 40px;
  padding: 64px 28px 44px;
}
.footer__logo { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; margin-bottom: 12px; }
.footer__about p { font-size: 14px; color: color-mix(in srgb, var(--bg) 65%, transparent); max-width: 34ch; }
.footer__legal { font-size: 12px !important; }
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer__col h3 {
  font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent); margin-bottom: 6px;
}
.footer__muted { font-size: 13px; color: color-mix(in srgb, var(--bg) 55%, transparent); margin: 4px 0 0; }
.footer__social { display: flex; gap: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; flex-wrap: wrap; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
  padding-top: 22px; padding-bottom: 26px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}

.theme-switch { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.theme-switch a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.theme-switch a:hover { border-color: currentColor; }
.theme-switch b { font-weight: 600; color: var(--accent); }
.theme-switch__reset { opacity: .6; font-size: 13px; line-height: 1; }
.theme-switch__reset:hover { opacity: 1; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 120;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow); font-size: 13px;
}
.cookie p { margin: 0; color: var(--ink-soft); }
.cookie a { text-decoration: underline; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .catalog { grid-template-columns: 1fr; gap: 26px; }
  .filters { position: static; }
  .filters__toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); cursor: pointer; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  }
  .filters__form { display: none; padding-top: 20px; }
  .filters.is-open .filters__form { display: block; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .cart-layout, .checkout, .order-page, .custom-page { grid-template-columns: 1fr; }
  .cart-summary--sticky, .order-page__aside .cart-summary, .custom-aside { position: static; }
  .page-body { grid-template-columns: 1fr; gap: 30px; }
  .subscribe-band { grid-template-columns: 1fr; padding: 34px 28px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav { display: none; }
  body.is-nav-open .nav {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 6px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
  }
  body.is-nav-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  body.is-nav-open .nav a::after { display: none; }
  .burger { display: block; }
  .header__actions .search { display: none; }
}

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 64px 18px; }
  .hero__facts { gap: 22px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 32px 0; }
  .topbar { display: none; }
  .header__inner { gap: 14px; min-height: 66px; }
  .logo__text small { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card__head h3 { font-size: 16px; }
  .card__sizes { display: none; }
  .cart-item__media { width: 82px; flex: 0 0 82px; }
  .cart-item__head { font-size: 17px; }
  .form-row, .measure-grid { grid-template-columns: 1fr; }
  .pdp__meta { grid-template-columns: 1fr; }
  .track { flex-wrap: wrap; }
  .track li { flex: 1 0 30%; }
  .pager { margin-top: 34px; }
  .cookie { flex-direction: column; align-items: flex-start; left: 12px; right: 12px; bottom: 12px; }
  .site-footer { margin-top: 20px; }
  .footer__grid { grid-template-columns: 1fr; padding: 44px 18px 30px; }
  .footer__bottom { padding-left: 18px; padding-right: 18px; }
  .page-head { padding: 34px 0 26px; }
  .catalog, .cart-page, .checkout, .order-page, .custom-page, .page-body { padding-top: 26px; padding-bottom: 56px; }
  .table { font-size: 13px; }
  .summary__total dd { font-size: 22px; }
  .btn { padding: 13px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
