/* ==========================================================================
   ДОФАМИН — женская авангардная одежда. Базовые стили: палитра, типографика,
   шапка, панели, корзина, модалки, формы, чекаут. Референс: serotoninn.com (BL/S)
   ========================================================================== */

:root {
  --bg: #fff9f7;
  --bg-2: #ffffff;
  --bg-3: #f3eeec;
  --fg: #0a0a0a;
  --red: #e5261f;
  --green: #17a34a;
  --grey: #6f6b6a;
  --grey-dim: #a7a19f;
  --line: rgba(10, 10, 10, 0.16);
  --line-soft: rgba(10, 10, 10, 0.07);
  --head-h: 78px;
  --head-h-fixed: 78px;
  --pad-x: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --f-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --f-text: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

.checkout > *, .search-res > *, .pp > *, .header__in > * { 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: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { 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; }
em { font-style: normal; color: var(--red); }

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

/* ---------- типографические примитивы ---------- */
.mono, .caps, .overline {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.overline { display: block; color: var(--grey); }
.head {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.pipes::before { content: "| "; color: var(--grey-dim); }
.pipes::after { content: " |"; color: var(--grey-dim); }
.brk::before { content: "[ "; color: var(--grey-dim); }
.brk::after { content: " ]"; color: var(--grey-dim); }
.brk--red, .brk--red::before, .brk--red::after { color: var(--red); }
.h-sec {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}
.wrap { padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 1000px; 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-line, .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn-line { color: var(--fg); background: transparent; border: 1px solid var(--fg); }
.btn-line:hover { background: var(--fg); color: #fff; }
.btn-solid { color: #fff; background: var(--fg); border: 1px solid var(--fg); }
.btn-solid:hover { background: var(--red); border-color: var(--red); }
.btn-solid[disabled] { opacity: 0.3; cursor: not-allowed; background: var(--fg); border-color: var(--fg); }

/* ==========================================================================
   ШАПКА — три колонки: стек ссылок / логотип / стек корзины
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: var(--head-h);
  background: var(--bg);
  color: var(--fg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.header.is-dark { background: transparent; color: #fff; }
.header__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  height: 100%;
  padding: 18px var(--pad-x) 0;
}
.header__l, .header__r { display: flex; align-items: flex-start; gap: 36px; }
.header__r { justify-content: flex-end; }
.h-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.h-stack--r { align-items: flex-end; }
.h-stack--off { margin-top: 14px; }
.h-stack > a, .h-stack > button, .h-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.h-stack > a:hover, .h-stack > button:hover { color: var(--red); }
.header.is-dark .h-stack > a:hover, .header.is-dark .h-stack > button:hover { color: #fff; opacity: 0.6; }
.h-stack i { font-style: normal; font-weight: 400; margin-left: 2px; }
.h-tag { margin-top: 14px; color: var(--grey-dim); }
.header.is-dark .h-tag { color: rgba(255, 255, 255, 0.55); }
.header__logo { text-align: center; padding-top: 2px; }
.logo-word {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: scaleY(1.12);
  transform-origin: top center;
}
.h-mob { display: none; }

.cart-count, .fav-count { display: inline; }
.cart-count.bump { display: inline-block; animation: cbump 0.55s var(--ease); color: var(--red); }
@keyframes cbump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-7px) scale(1.25); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* ---------- выпадающие категории ---------- */
.catdrop {
  position: fixed;
  top: var(--head-h);
  left: 0;
  z-index: 115;
  width: 100%;
  padding: 18px var(--pad-x) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
body.cats-open .catdrop { opacity: 1; visibility: visible; transform: translateY(0); }
.catdrop__list { display: flex; flex-wrap: wrap; gap: 6px 40px; }
.catdrop__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}
.catdrop__list a:hover { color: var(--red); }
.catdrop__list a small { font-family: var(--f-mono); font-size: 10px; font-weight: 500; color: var(--grey-dim); }

/* ---------- боковое меню ---------- */
.navpanel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  max-width: 420px;
  height: 100%;
  padding: 26px var(--pad-x) 40px;
  background: var(--bg);
  border-right: 1px solid var(--line-soft);
  transform: translateX(-100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
body.nav-open .navpanel { transform: translateX(0); visibility: visible; }
.navpanel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.navpanel__head button { padding: 0; background: none; border: none; }
.navpanel__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.navpanel__list a small { font-family: var(--f-mono); font-size: 10px; font-weight: 500; color: var(--grey-dim); }
.navpanel__list a:hover { color: var(--red); padding-left: 8px; }
.navpanel__foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.navpanel__foot a { display: block; padding: 5px 0; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.navpanel__foot a:hover { color: var(--red); }

/* ---------- вуаль ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 249, 247, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.nav-open .veil, body.cart-open .veil, body.modal-open .veil, body.cats-open .veil { opacity: 1; visibility: visible; }
body.cats-open .veil { z-index: 105; }

/* ==========================================================================
   КОРЗИНА (дровер)
   ========================================================================== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line-soft);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
body.cart-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad-x) 20px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__head .caps { font-family: var(--f-head); font-size: 24px; font-weight: 700; letter-spacing: 0; }
.drawer__close, .modal__close, .search-panel__close, .fd__close { background: none; border: none; padding: 0; line-height: 0; color: var(--fg); transition: color 0.25s var(--ease); }
.drawer__close:hover, .modal__close:hover, .search-panel__close:hover, .fd__close:hover { color: var(--red); }
.drawer__items { flex: 1; overflow-y: auto; padding: 4px var(--pad-x) 20px; }
.drawer__empty { padding: 60px 0; text-align: center; color: var(--grey); }
.drawer__empty .caps { font-family: var(--f-head); font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: 0; }
.drawer__empty p { margin-top: 12px; font-size: 12px; }

.d-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.d-item img { width: 64px; height: 84px; object-fit: cover; background: #fff; border: 1px solid var(--line-soft); }
.d-name { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.45; }
.d-size { margin-top: 4px; font-family: var(--f-mono); font-size: 10px; color: var(--grey); text-transform: uppercase; }
.d-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; }
.d-qty button { background: none; border: none; padding: 0 2px; font-size: 13px; line-height: 1; color: var(--grey); }
.d-qty button:hover { color: var(--red); }
.d-qty .q-val { min-width: 14px; text-align: center; }
.d-qty::before { content: "[ "; color: var(--grey-dim); }
.d-qty::after { content: " ]"; color: var(--grey-dim); }
.d-right { text-align: right; }
.d-price { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--red); white-space: nowrap; }
.d-del { margin-top: 10px; background: none; border: none; padding: 0; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-dim); text-decoration: underline; text-underline-offset: 3px; }
.d-del:hover { color: var(--red); }

.drawer__foot { padding: 20px var(--pad-x) 28px; border-top: 1px solid var(--line-soft); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.drawer__total span:first-child { font-family: var(--f-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--grey); }
.drawer__total .sum { font-family: var(--f-mono); font-size: 15px; font-weight: 600; color: var(--red); }
.drawer__foot .btn-solid { width: 100%; }

/* ==========================================================================
   МОДАЛКИ (город, вход, избранное, таблица размеров)
   ========================================================================== */
.modal {
  position: fixed;
  z-index: 140;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--fg);
  transform: translate(-50%, -46%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal--wide { max-width: 560px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal__head .caps { font-family: var(--f-head); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.modal__p { font-size: 12px; line-height: 1.7; color: var(--grey); }
.modal__p b { font-weight: 600; color: var(--fg); }
.city-list li a { display: block; padding: 10px 0; font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; border-bottom: 1px solid var(--line-soft); color: var(--grey); }
.city-list li a:hover, .city-list li a.is-active { color: var(--fg); }
.city-list li a.is-active::before { content: "[ "; color: var(--red); }
.city-list li a.is-active::after { content: " ]"; color: var(--red); }

.fav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fav-list a { display: block; background: #fff; border: 1px solid var(--line-soft); padding: 8px; }
.fav-list img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.fav-list span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 9px; font-weight: 600; text-transform: uppercase; line-height: 1.4; }
.fav-list b { display: block; font-family: var(--f-mono); font-size: 9px; font-weight: 500; color: var(--red); }
.fav-empty { font-size: 12px; color: var(--grey); }

.size-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; }
.size-table th { padding: 8px 6px; text-align: left; font-weight: 500; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--fg); }
.size-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); }

/* ---------- поиск ---------- */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 26px var(--pad-x) 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--fg);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
body.search-open .search-panel { transform: translateY(0); visibility: visible; }
.search-panel__top { display: flex; align-items: center; gap: 18px; }
.search-panel input {
  flex: 1;
  height: 54px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
}
.search-panel input::placeholder { color: var(--grey-dim); }
.search-panel input::-webkit-search-cancel-button, .search-panel input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-panel input:focus { outline: none; border-color: var(--red); }
.search-pop { margin-top: 22px; }
.search-pop ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.search-pop a { font-family: var(--f-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--grey); }
.search-pop a::before { content: "[ "; color: var(--grey-dim); }
.search-pop a::after { content: " ]"; color: var(--grey-dim); }
.search-pop a:hover { color: var(--red); }
.search-res { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 26px; }
.search-res__item { background: #fff; border: 1px solid var(--line-soft); padding: 10px 10px 12px; }
.search-res__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.search-res__item span { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 9px; font-weight: 600; text-transform: uppercase; line-height: 1.4; }
.search-res__item b { display: block; margin-top: 3px; font-family: var(--f-mono); font-size: 9px; font-weight: 500; color: var(--red); }
.search-empty { margin-top: 22px; font-size: 12px; color: var(--grey); }

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

/* ---------- заголовок страницы (документы, чекаут) ---------- */
.page-head { padding: calc(var(--head-h) + 30px) var(--pad-x) 26px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 0.95; text-transform: uppercase; }
.page-head p { margin-top: 14px; max-width: 56ch; color: var(--grey); font-size: 12px; }
.crumbs { font-family: var(--f-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-dim); }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 6px; }

/* ==========================================================================
   ОФОРМЛЕНИЕ ЗАКАЗА — светлая тема, красные акценты, mono-лейблы
   ========================================================================== */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: start; }
.co-form { padding: 36px var(--pad-x) 80px; }
.co-side { position: sticky; top: calc(var(--head-h) + 16px); padding: 36px var(--pad-x) 50px; border-left: 1px solid var(--line-soft); }
.co-block + .co-block { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.co-block > h2 { margin-bottom: 20px; font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; }
.co-block > h2 i { font-style: normal; color: var(--red); margin-right: 8px; }
.co-side > h2 { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: 0; line-height: 1; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.ship-note { margin: -4px 0 12px; font-family: var(--f-mono); font-size: 10px; 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: 5px 10px;
  align-items: baseline;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.ship-tile:hover { border-color: var(--line); }
.ship-tile:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.ship-tile.is-off { opacity: 0.35; 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: 10px; font-weight: 600; text-transform: uppercase; }
.ship-tile span { grid-area: method; font-size: 11px; color: var(--grey); }
.ship-tile em { grid-area: price; font-style: normal; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--red); white-space: nowrap; }
.ship-tile small { grid-area: days; justify-self: end; font-family: var(--f-mono); font-size: 9px; color: var(--grey-dim); text-transform: uppercase; white-space: nowrap; }
.ship-tile--wide { grid-column: 1 / -1; grid-template-areas: "name price" "method method"; }
.addr-map { margin: -6px 0 20px; }
.addr-map[hidden] { display: none; }
.addr-map__map { height: 300px; border: 1px solid var(--line-soft); background: #fff; }
.pvz__map .leaflet-tile-pane, .addr-map__map .leaflet-tile-pane { filter: grayscale(1) contrast(0.92); }
.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 var(--line); box-shadow: none; border-radius: 0; }
.addr-map__map .leaflet-bar a { background: #fff; color: var(--fg); border-color: var(--line-soft); }
.addr-map__note { margin-top: 8px; font-size: 11px; color: var(--grey); }

.radio-list { display: grid; gap: 8px; }
.radio-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.radio-opt:hover { border-color: var(--line); }
.radio-opt:has(input:checked) { border-color: var(--fg); }
.radio-opt input { appearance: none; width: 12px; height: 12px; margin: 3px 0 0; border: 1px solid var(--fg); border-radius: 50%; flex: none; transition: border-width 0.2s var(--ease); }
.radio-opt input:checked { border: 4px solid var(--red); }
.radio-opt b { display: block; font-family: var(--f-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.radio-opt small { display: block; margin-top: 5px; font-size: 11px; color: var(--grey); }

.co-items { margin-bottom: 22px; }
.co-sum { border-top: 1px solid var(--line-soft); 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; }
.co-sum__row[hidden] { display: none; }
.co-sum__row span:first-child { color: var(--grey); text-transform: uppercase; font-size: 10px; }
.co-sum__total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--fg); display: flex; align-items: baseline; justify-content: space-between; }
.co-sum__total span:first-child { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--grey); }
.co-sum__total .sum { font-family: var(--f-mono); font-size: 17px; font-weight: 600; color: var(--red); }
.co-side .btn-solid { width: 100%; margin-top: 22px; }
.co-agree { margin-top: 14px; font-size: 10px; line-height: 1.7; color: var(--grey-dim); }
.lg-consent { margin-top: 18px; }

.thanks { padding: calc(var(--head-h) + 90px) var(--pad-x) 120px; text-align: center; }
.thanks__mark { width: 56px; height: 56px; margin: 0 auto 26px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; color: var(--red); }
.thanks h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.thanks p { margin: 18px auto 30px; max-width: 46ch; color: var(--grey); font-size: 13px; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1100px) {
  .search-res { grid-template-columns: repeat(4, 1fr); }
  .header__l, .header__r { gap: 22px; }
  .h-tag { display: none; }
}

@media (max-width: 960px) {
  .checkout { grid-template-columns: 1fr; }
  .co-side { position: static; border-left: none; border-top: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  :root { --head-h: 60px; --head-h-fixed: 60px; --pad-x: 16px; }
  .header__in { align-items: center; padding-top: 0; }
  .h-stack--off, .h-stack--desk { display: none; }
  .h-mob { display: flex; }
  .logo-word { font-size: 19px; }
  .navpanel { max-width: 100%; }
  .navpanel__list a { font-size: 30px; }
  .catdrop__list a { font-size: 22px; }
  .search-res { grid-template-columns: repeat(2, 1fr); }
  .search-panel input { font-size: 22px; }
  .ship-tiles { grid-template-columns: 1fr 1fr; }
  .addr-map__map { height: 240px; }
  .co-form { padding-top: 26px; }
  .page-head { padding-top: calc(var(--head-h) + 22px); }
}

@media (max-width: 620px) {
  .co-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ship-tiles { grid-template-columns: 1fr; }
  .fav-list { grid-template-columns: repeat(2, 1fr); }
}
