/* ==========================================================================
   ПЛЁНКА — фотоплёнка, аналоговые камеры, аксессуары. Санкт-Петербург.
   База: тёмный тёплый фон, кремовый текст, антиква с курсивом + моно-лейблы.
   Раскладка шапки, нижней строки и направляющих повторяет референс (jasonbergh.com).
   ========================================================================== */

:root {
  --bg: #1e1e1c;
  --bg-2: #232321;
  --bg-3: #2a2a27;
  --fg: #ffeec8;
  --grey: rgba(255, 238, 200, 0.62);
  --grey-dim: rgba(255, 238, 200, 0.4);
  --line: rgba(255, 238, 200, 0.18);
  --line-soft: rgba(255, 238, 200, 0.1);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --head-h: 76px;
  --head-h-fixed: 76px;
  --bar-h: 54px;
  --pad-x: 32px;
  --pad-hero: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

.checkout > *, .pp > *, .cat-layout > *, .search-res > * { min-width: 0; }

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

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

img, video { display: block; max-width: 100%; height: auto; }
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, .it { font-style: italic; }

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

/* ---------- типографика ---------- */
.mono, .caps, .overline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.overline { display: block; color: var(--grey); }
.serif { font-family: var(--serif); font-weight: 400; }
.h-sec {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h-sec em { font-style: italic; }
.txt { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--fg); }
.txt--dim { color: var(--grey); }

/* индикатор-точка вместо символа «•»: не текст, а псевдоэлемент */
.dot::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--fg);
  vertical-align: 2px;
}

.wrap { padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 900px; 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, .btn-ul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  cursor: pointer;
}
.btn-ul, .btn-line {
  height: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--fg);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-ul:hover, .btn-line:hover { color: var(--grey); border-color: var(--grey); }
.btn-ul::after, .btn-line::after { content: "→"; font-family: var(--mono); }
.btn-solid {
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--fg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn-solid:hover { background: var(--fg); color: var(--bg); }
.btn-solid[disabled] { opacity: 0.32; cursor: not-allowed; }
.btn-solid[disabled]:hover { background: none; color: var(--fg); }

.link-caps { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.link-caps:hover { color: var(--fg); border-color: var(--fg); }

/* ==========================================================================
   НАПРАВЛЯЮЩИЕ — две пунктирные вертикали на третях (перфорация плёнки)
   ========================================================================== */
.guides { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.guides::before, .guides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 7px, transparent 7px 22px);
  opacity: 0.9;
}
.guides::before { left: 33.333%; }
.guides::after { left: 66.666%; }

/* ==========================================================================
   ШАПКА: логотип серифом слева, две моно-колонки по центру, корзина справа
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: var(--head-h);
  transition: background-color 0.3s var(--ease);
}
.header.is-solid { background: linear-gradient(180deg, var(--bg) 60%, rgba(30, 30, 28, 0)); }
.header__in {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  height: 100%;
  padding: 22px var(--pad-x) 0;
}
.header__c { display: flex; justify-content: flex-start; }
.header__r { display: flex; justify-content: space-between; align-items: baseline; gap: 26px; padding-top: 5px; }
.header__l { display: flex; align-items: baseline; gap: 0; }
.logo { display: inline-flex; align-items: baseline; gap: 0; }
.logo-word {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-word em { font-style: italic; }
.logo-tag { margin-left: clamp(24px, 6vw, 110px); color: var(--fg); }
.nav {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 34px;
  padding-top: 5px;
}
.nav a { display: block; color: var(--grey); transition: color 0.25s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a + a { margin-top: 2px; }
.h-btn {
  display: inline-flex;
  align-items: baseline;
  padding: 0;
  background: none;
  border: none;
  color: var(--fg);
  transition: color 0.25s var(--ease);
}
.h-btn:hover { color: var(--grey); }
.cart-count { display: inline; }
.cart-count::before { content: " ("; }
.cart-count::after { content: ")"; }
.burger { display: none; }

/* мобильная навигация */
.navpanel {
  position: fixed;
  inset: 0;
  z-index: 110;
  padding: calc(var(--head-h) + 20px) var(--pad-x) 40px;
  background: var(--bg);
  transform: translateY(-100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.55s var(--ease), visibility 0.55s;
}
body.nav-open .navpanel { transform: translateY(0); visibility: visible; }
.navpanel__list a { display: block; padding: 10px 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.navpanel__list a em { font-style: italic; }
.navpanel__foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.navpanel__foot a { display: block; padding: 6px 0; color: var(--grey); }
.navpanel__foot a:hover { color: var(--fg); }

/* ---------- вуаль ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 18, 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.filter-open .veil { opacity: 1; visibility: visible; }

/* ==========================================================================
   НИЖНЯЯ СТРОКА — © 2026 / СЛАЙДЕР / СПИСОК / фильтр / таймкод / ПОМОЩЬ
   ========================================================================== */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  min-height: var(--bar-h);
  padding: 0 var(--pad-x) 16px;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__l { display: flex; align-items: baseline; gap: clamp(30px, 8vw, 120px); }
.bar__c { display: flex; align-items: baseline; gap: 24px; justify-content: center; }
.bar__r { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bar__copy { color: var(--grey); }
.bar__mode button { padding: 0; background: none; border: none; color: var(--grey); transition: color 0.25s var(--ease); }
.bar__mode button.is-on { color: var(--fg); }
.bar__mode button:hover { color: var(--fg); }
.bar__mode i { font-style: normal; color: var(--grey-dim); margin: 0 6px; }
.bar__filter { display: flex; flex-direction: column; gap: 1px; }
.bar__filter a { color: var(--grey); transition: color 0.25s var(--ease); }
.bar__filter a:hover, .bar__filter a.is-on { color: var(--fg); }
.bar__filter a.is-on::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 7px; border-radius: 50%; background: var(--fg); vertical-align: 2px; }
.bar__filter a:not(.is-on) { padding-left: 11px; }
.bar__filter small { color: var(--grey-dim); font-size: 9px; letter-spacing: 0.1em; }
.bar__tc { color: var(--grey); min-width: 74px; text-align: right; }
.bar__help { padding: 0; background: none; border: none; color: var(--fg); }
.bar__help:hover { color: var(--grey); }
body.has-bar main { padding-bottom: var(--bar-h); }

/* ==========================================================================
   УГОЛКИ-СКОБКИ — рамка кадра из четырёх уголков, переиспользуется везде
   ========================================================================== */
.corners {
  position: absolute;
  inset: -9px;
  pointer-events: none;
  --c: var(--fg);
  --cl: 12px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--cl) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--cl) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--cl) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--cl) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--cl) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--cl) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--cl) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--cl) no-repeat;
}

/* ==========================================================================
   КОРЗИНА (drawer)
   ========================================================================== */
.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.55s var(--ease), visibility 0.55s;
}
body.cart-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px var(--pad-x) 20px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__head .caps { font-family: var(--serif); font-size: 28px; letter-spacing: 0; text-transform: none; }
.drawer__close { background: none; border: none; padding: 0; line-height: 0; color: var(--grey); }
.drawer__close:hover { color: var(--fg); }
.drawer__items { flex: 1; overflow-y: auto; padding: 6px var(--pad-x) 20px; }
.drawer__empty { padding: 56px 0; color: var(--grey); }
.drawer__empty .caps { color: var(--fg); }
.drawer__empty p { margin-top: 12px; font-family: var(--serif); font-size: 18px; line-height: 1.4; }

.d-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.d-item img { width: 84px; height: 56px; object-fit: cover; }
.d-name { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.d-size { margin-top: 5px; font-size: 10px; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; }
.d-qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; border: 1px solid var(--line); padding: 3px 8px; }
.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(--fg); }
.d-qty .q-val { font-size: 11px; min-width: 14px; text-align: center; }
.d-right { text-align: right; }
.d-price { font-size: 12px; letter-spacing: 0.04em; }
.d-del { margin-top: 12px; background: none; border: none; padding: 0; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-dim); border-bottom: 1px solid transparent; }
.d-del:hover { color: var(--fg); border-color: var(--fg); }

.drawer__foot { padding: 22px var(--pad-x) 34px; border-top: 1px solid var(--line-soft); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.drawer__total span:first-child { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.drawer__total .sum { font-family: var(--serif); font-size: 24px; }
.drawer__foot .btn-solid { width: 100%; }

/* ==========================================================================
   МОДАЛКИ (город, вход, о нас, помощь) и поиск
   ========================================================================== */
.modal {
  position: fixed;
  z-index: 140;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  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: 640px; }
.modal__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.modal__head .caps { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; line-height: 1; }
.modal__head .caps em { font-style: italic; }
.modal__close { background: none; border: none; padding: 0; line-height: 0; color: var(--grey); }
.modal__close:hover { color: var(--fg); }
.modal__p { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--grey); }
.modal__p + .modal__p { margin-top: 12px; }
.modal__p b { font-weight: 400; color: var(--fg); }
.modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.modal__cols h4 { margin-bottom: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); }
.modal__cols a, .modal__cols p { display: block; padding: 3px 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.modal__cols a:hover { color: var(--fg); }
.modal__demo { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 10px; line-height: 1.7; letter-spacing: 0.04em; color: var(--grey-dim); }
.modal__demo a { color: var(--grey); border-bottom: 1px solid var(--line); }
.city-list li a { display: block; padding: 11px 0; font-size: 11px; letter-spacing: 0.14em; 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); }

/* поиск (панель сверху) */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 30px var(--pad-x) 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
body.search-open .search-panel { transform: translateY(0); visibility: visible; }
body.search-open .veil { opacity: 1; visibility: visible; }
.search-panel__top { display: flex; align-items: center; gap: 20px; }
.search-panel input {
  flex: 1;
  height: 56px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 30px;
}
.search-panel input::placeholder { color: var(--grey-dim); }
.search-panel input:focus { outline: none; border-color: var(--fg); }
.search-panel__close { background: none; border: none; padding: 0; line-height: 0; color: var(--grey); }
.search-pop { margin-top: 24px; }
.search-pop ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.search-pop a { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }
.search-pop a:hover { color: var(--fg); }
.search-res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.search-res__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.search-res__item span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.25; }
.search-res__item b { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; color: var(--grey); }
.search-empty { margin-top: 26px; font-family: var(--serif); font-size: 17px; color: var(--grey); }

/* ---------- поля форм ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 18px;
  border-radius: 0;
}
.field textarea { height: 90px; padding: 10px 0; resize: vertical; font-size: 17px; }
.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(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 10px) 21px, calc(100% - 5px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg); color: var(--fg); }

/* ==========================================================================
   ЗАГОЛОВОК СТРАНИЦЫ, ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.page-head { position: relative; z-index: 2; padding: calc(var(--head-h) + 40px) var(--pad-x) 30px; }
.page-head h1 { margin-top: 10px; font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.01em; }
.page-head h1 em { font-style: italic; }
.page-head p { margin-top: 16px; max-width: 54ch; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--grey); }
.crumbs { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--fg); }
.crumbs span { margin: 0 8px; }

/* ==========================================================================
   ОФОРМЛЕНИЕ ЗАКАЗА
   ========================================================================== */
.checkout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: start; }
.co-form { padding: 20px var(--pad-x) 80px; }
.co-side { position: sticky; top: calc(var(--head-h) + 10px); max-height: calc(100vh - var(--head-h) - 10px); max-height: calc(100svh - var(--head-h) - 10px); overflow-y: auto; scrollbar-width: thin; padding: 20px var(--pad-x) 60px; border-left: 1px solid var(--line-soft); }
.co-block + .co-block { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.co-block > h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; font-family: var(--serif); font-size: 28px; line-height: 1; }
.co-block > h2 i { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: 0.14em; color: var(--grey-dim); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.co-side > h2.caps { font-family: var(--serif); font-size: 28px; letter-spacing: 0; text-transform: none; line-height: 1; }

.radio-list { display: grid; gap: 8px; }
.radio-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  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: 10px; height: 10px; margin: 5px 0 0; border: 1px solid var(--line); border-radius: 50%; flex: none; transition: border 0.2s var(--ease); }
.radio-opt input:checked { border: 3px solid var(--fg); }
.radio-opt b { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.radio-opt small { display: block; margin-top: 5px; font-family: var(--serif); font-size: 15px; color: var(--grey); }

.co-items { margin-bottom: 26px; }
.co-sum { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.co-sum__row { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; font-size: 11px; }
.co-sum__row span:first-child { color: var(--grey); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; }
.co-sum__row[hidden] { display: none; }
.co-sum__total { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: baseline; justify-content: space-between; }
.co-sum__total span:first-child { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.co-sum__total .sum { font-family: var(--serif); font-size: 26px; }
.co-side .btn-solid { width: 100%; margin-top: 22px; }
.co-agree { margin-top: 16px; font-size: 10px; line-height: 1.7; color: var(--grey-dim); }

/* доставка: плитки «служба × способ», карта адреса */
.ship-note { margin: -4px 0 14px; font-size: 10px; letter-spacing: 0.06em; color: var(--grey); text-transform: uppercase; }
.ship-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.ship-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "method days";
  gap: 6px 12px;
  align-items: baseline;
  padding: 14px 14px 12px;
  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); }
.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-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.ship-tile span { grid-area: method; font-family: var(--serif); font-size: 15px; color: var(--grey); }
.ship-tile em { grid-area: price; font-style: normal; font-size: 11px; letter-spacing: 0.06em; white-space: nowrap; }
.ship-tile small { grid-area: days; justify-self: end; font-size: 9px; color: var(--grey-dim); letter-spacing: 0.06em; white-space: nowrap; }
.ship-tile--wide { grid-column: 1 / -1; grid-template-areas: "name price" "method method"; }
.addr-map { margin: -6px 0 22px; }
.addr-map[hidden] { display: none; }
.addr-map__map { height: 300px; border: 1px solid var(--line-soft); background: var(--bg-2); }
.pvz__map .leaflet-tile-pane, .addr-map__map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(0.85) brightness(0.8) sepia(0.25); }
.addr-map__map .leaflet-control-attribution, .pvz__map .leaflet-control-attribution { background: rgba(30, 30, 28, 0.8); color: var(--grey); font-size: 9px; }
.addr-map__map .leaflet-control-attribution a, .pvz__map .leaflet-control-attribution a { color: var(--grey); }
.addr-map__map .leaflet-bar, .pvz__map .leaflet-bar { border: 1px solid var(--line); box-shadow: none; }
.addr-map__map .leaflet-bar a, .pvz__map .leaflet-bar a { background: var(--bg); color: var(--fg); border-color: var(--line-soft); }
.addr-map__note { margin-top: 10px; font-family: var(--serif); font-size: 15px; color: var(--grey); }
.field[hidden] { display: none; }

.thanks { position: relative; z-index: 2; padding: calc(var(--head-h) + 90px) var(--pad-x) 140px; text-align: center; }
.thanks__mark { width: 56px; height: 56px; margin: 0 auto 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.thanks h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.thanks p { margin: 22px auto 34px; max-width: 48ch; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--grey); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.09s; }
.rv-d2 { transition-delay: 0.18s; }
.rv-d3 { transition-delay: 0.27s; }

@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(3, 1fr); }
}

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

@media (max-width: 760px) {
  :root { --head-h: 64px; --head-h-fixed: 64px; --pad-x: 20px; --bar-h: 50px; }
  .header__in { grid-template-columns: 1fr auto; padding-top: 20px; }
  .header__c { display: none; }
  .header__r { justify-content: flex-end; }
  .logo-word { font-size: 22px; }
  .logo-tag { display: none; }
  .nav { display: none; }
  .header__r { gap: 18px; }
  .burger { display: inline-flex; }
  .guides::before { left: 50%; }
  .guides::after { display: none; }
  .bar { grid-template-columns: 1fr auto; padding-bottom: 16px; }
  .bar__c { display: none; }
  .bar__r { justify-content: flex-end; }
  .bar__filter, .bar__tc { display: none; }
  .bar__l { gap: 24px; }
  .search-res { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 26px 22px; }
  .modal__cols { grid-template-columns: 1fr; }
  .co-row { grid-template-columns: 1fr; }
  .co-form { padding-top: 10px; }
  .ship-tiles { grid-template-columns: 1fr; }
  .page-head { padding-top: calc(var(--head-h) + 24px); }
}
