/* ==========================================================================
   Зерно и Пар — стили витрины
   1. Токены          6. Герой            11. Модалка товара
   2. Сброс           7. Каталог          12. Оформление заказа
   3. Типографика     8. Карточка         13. Обжарка / подписка / о нас
   4. Утилиты         9. Оверлеи          14. Подвал и тост
   5. Шапка          10. Корзина          15. Адаптив и reduced-motion
   ========================================================================== */

/* ============ 1. Токены ============ */
:root {
  /* Палитра. accent-700 / text-2 — затемнённые ступени тех же тонов,
     нужны чтобы мелкий текст держал контраст 4.5:1 на кремовом фоне. */
  --bg: #F7F1E8;
  --ink: #2B1B12;
  --accent: #C05B32;
  --accent-700: #A34526;
  --accent-900: #8A3A1E;
  --line: #EDE3D5;
  --muted: #8A7360;
  --text-2: #6F5A48;
  --card: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(43, 27, 18, .06);
  --shadow-md: 0 8px 28px -14px rgba(43, 27, 18, .35);
  --shadow-lg: 0 24px 60px -24px rgba(43, 27, 18, .45);

  /* Модульная шкала, шаг 1.2 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.35rem + 4vw, 4.25rem);

  /* Отступы, шаг 4px */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .32s;
}

/* ============ 2. Сброс ============ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, p, figure, dl, dd, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--accent); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 3. Типографика ============ */
h1, h2, h3, .display {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.section__title { font-size: var(--fs-2xl); max-width: 18ch; }
.section__lead {
  margin-top: var(--sp-4);
  max-width: 62ch;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.section-num {
  position: absolute;
  top: var(--sp-8);
  right: max(var(--sp-4), calc((100% - 1240px) / 2));
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted);
  pointer-events: none;
}
.section-num::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
  margin-bottom: var(--sp-2);
  margin-left: auto;
}

/* ============ 4. Утилиты ============ */
.container { width: min(100% - 32px, 1240px); margin-inline: auto; }

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 128px);
  border-top: 1px solid var(--line);
}

.section__head { margin-bottom: var(--sp-12); }

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.notice {
  border: 1px solid var(--line);
  background: var(--card);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  color: var(--text-2);
}

/* --- Кнопки --- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--accent-700); --btn-fg: #fff; --btn-bd: var(--accent-700); }
.btn--primary:hover { --btn-bg: var(--accent-900); --btn-bd: var(--accent-900); }

.btn--ghost { --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }

.btn--outline { --btn-bd: var(--line); --btn-bg: var(--card); }
.btn--outline:hover { --btn-bd: var(--ink); }

.btn--link {
  min-height: 44px;
  padding: var(--sp-2) var(--sp-1);
  border: 0;
  color: var(--accent-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.btn--link:hover { color: var(--accent-900); }

.btn--full { width: 100%; }
.btn--sm { min-height: 44px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--bg); border-color: var(--line); }

/* --- Поля --- */
.field { margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.field__opt { font-weight: 400; color: var(--text-2); }

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: #DCCEBB; }
.input:focus-visible { outline: none; border-color: var(--accent-700); box-shadow: 0 0 0 3px rgba(163, 69, 38, .16); }
.input[aria-invalid="true"] { border-color: var(--accent-900); background: #FFF8F5; }

.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236F5A48' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 12px 8px;
}

.field__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--accent-900);
  font-weight: 500;
}
.field__hint { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }

.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field-icon { position: relative; }
.field-icon__ico {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field-icon .input { padding-left: 46px; }

/* --- Появление секций --- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ============ 5. Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}
.logo__sub {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nav__list { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: var(--card); color: var(--accent-700); }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-5) 0 var(--sp-4);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--bg); }
.cart-btn__label { display: none; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-700);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transform: scale(1);
}
.cart-badge[data-empty="true"] { opacity: 0; transform: scale(.5); }
.cart-badge.is-bump { animation: badgePop .42s var(--ease); }

@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.42); }
  100% { transform: scale(1); }
}

.burger { display: none; }

/* ============ 6. Герой ============ */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 112px);
  overflow: hidden;
}

.hero__grid { display: grid; gap: var(--sp-10); align-items: center; }

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero__lead {
  max-width: 52ch;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.hero__facts li { display: flex; align-items: center; gap: var(--sp-5); }
.hero__facts li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: calc(var(--sp-5) * -1 + var(--sp-1));
}

.hero__art { position: relative; justify-self: center; width: min(100%, 380px); }

.hero__glow {
  position: absolute;
  inset: -14% -18% 6%;
  background: radial-gradient(60% 55% at 52% 42%, rgba(192, 91, 50, .22), rgba(192, 91, 50, 0) 70%);
  filter: blur(2px);
}

.pack { width: 100%; height: auto; }
.pack--hero { position: relative; filter: drop-shadow(0 26px 42px rgba(43, 27, 18, .22)); }

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("../img/grain.svg");
  background-size: 220px 220px;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============ 7. Каталог: фильтры ============ */
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-10);
  box-shadow: var(--shadow-sm);
}

.filters__row {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.filters__row--bottom { padding-bottom: var(--sp-5); }

.filters__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--sp-3);
}
.filters__out { font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: 0; text-transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--muted); }

.chip__dots { display: inline-flex; gap: 3px; }
.chip__dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .55;
}
.chip__dots i.on { background: currentColor; opacity: 1; }

.chip__input:checked + .chip {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip__input:focus-visible + .chip { outline: 2px solid var(--accent-700); outline-offset: 3px; }

/* Диапазон цены */
.filters__group--price { min-width: 0; }
.range { position: relative; height: 44px; }
.range__track {
  position: absolute;
  top: 50%; left: 11px; right: 11px;
  height: 3px;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: var(--r-pill);
}
.range__fill { position: absolute; top: 0; height: 100%; background: var(--accent); border-radius: var(--r-pill); }

.range input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.range input[type="range"]::-moz-range-track { background: transparent; height: 44px; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 22px; height: 22px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent-700);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent-700);
  cursor: grab;
}
.range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
.range input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
#priceMin { z-index: 3; }
#priceMax { z-index: 2; }

.filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
}
.filters__count { font-size: var(--fs-sm); font-weight: 600; }

/* ============ 8. Сетка и карточка ============ */
.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: #DCCEBB; box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent-700);
  color: #fff;
}
.card__badge--new { background: var(--ink); }

.card__art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--sp-4);
  background:
    radial-gradient(58% 52% at 50% 58%, rgba(192, 91, 50, .10), rgba(192, 91, 50, 0) 72%),
    var(--bg);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.card__art .pack {
  width: 58%;
  max-width: 150px;
  filter: drop-shadow(0 12px 18px rgba(43, 27, 18, .16));
  transition: transform .35s var(--ease);
}
.card:hover .card__art .pack { transform: translateY(-4px) rotate(-1.5deg); }

.card__origin {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.card__farm { font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--sp-1); }

.card__name {
  font-size: var(--fs-lg);
  margin-top: var(--sp-2);
  line-height: 1.2;
}

.card__notes { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.note-chip {
  padding: 3px var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.roast-meter {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.roast-meter__dots { display: inline-flex; gap: 4px; }
.roast-meter__dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.roast-meter__dots i.on { background: var(--accent); }

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
}
.card__price { display: flex; flex-direction: column; }
.card__price b {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card__price span { font-size: var(--fs-xs); color: var(--text-2); margin-top: var(--sp-1); }

.card__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.card__actions .btn { flex: 1 1 auto; }
.card__actions .btn--outline { flex: 0 0 auto; padding-inline: var(--sp-4); }

/* Пустое состояние */
.empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.empty__art { width: 160px; height: 120px; margin: 0 auto var(--sp-5); }
.empty__title { font-size: var(--fs-lg); }
.empty__text { max-width: 46ch; margin: var(--sp-3) auto var(--sp-6); color: var(--text-2); }

/* ============ 9. Оверлеи ============ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(43, 27, 18, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.backdrop.is-open { opacity: 1; }

/* ============ 10. Корзина ============ */
.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: var(--fs-lg); }

.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: var(--sp-5) var(--sp-6); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--sp-5) var(--sp-6) var(--sp-6); background: var(--card); }
.drawer__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-2); text-align: center; }

.cart-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }

.cart-item__art {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
}
.cart-item__art .pack { width: 76%; }

.cart-item__name { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-base); font-weight: 700; line-height: 1.25; }
.cart-item__meta { font-size: var(--fs-xs); color: var(--text-2); margin-top: var(--sp-1); }
.cart-item__price { font-weight: 600; font-size: var(--fs-sm); margin-top: var(--sp-2); font-variant-numeric: tabular-nums; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  overflow: hidden;
}
.qty button {
  width: 36px; height: 44px;
  border: 0;
  background: transparent;
  font-size: var(--fs-md);
  line-height: 1;
  color: var(--ink);
  transition: background-color .2s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--bg); }
.qty button:disabled { color: var(--muted); cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

.cart-remove { width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: var(--r-sm); }
.cart-remove:hover { color: var(--accent-900); background: var(--card); }

.promo { margin-bottom: var(--sp-4); }
.promo__row { display: flex; gap: var(--sp-2); }
.promo__row .input { flex: 1 1 auto; min-width: 0; }
.promo__row .btn { flex: 0 0 auto; }
.promo__ok { color: #2E6E4A; }

.totals { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.totals__row dt { color: var(--text-2); }
.totals__row dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.totals__row--sale dd { color: var(--accent-700); font-weight: 600; }
.totals__row--free dd { color: #2E6E4A; font-weight: 600; }
.totals__row--grand {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
}
.totals__row--grand dt { color: var(--ink); font-weight: 600; }
.totals__row--grand dd { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-xl); font-weight: 700; }

.totals__hint { font-size: var(--fs-xs); color: var(--text-2); }

.cart-empty { text-align: center; padding: var(--sp-12) var(--sp-2); }
.cart-empty__art { width: 132px; height: 132px; margin: 0 auto var(--sp-5); }
.cart-empty__title { font-size: var(--fs-lg); }
.cart-empty__text { margin: var(--sp-3) 0 var(--sp-6); color: var(--text-2); font-size: var(--fs-sm); }

/* ============ 11. Модалки ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__box {
  position: relative;
  width: 100%;
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }

.modal__box--product { max-width: 940px; }
.modal__box--checkout { max-width: 680px; padding: var(--sp-8) clamp(16px, 4vw, 40px) var(--sp-8); }

.modal__close { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 3; background: var(--card); border-color: var(--line); }
.modal__title { font-size: var(--fs-xl); margin-bottom: var(--sp-6); padding-right: var(--sp-10); }

/* Товар */
.pm {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6);
}
.pm__art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(58% 52% at 50% 55%, rgba(192, 91, 50, .14), rgba(192, 91, 50, 0) 72%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.pm__art .pack { width: min(62%, 230px); filter: drop-shadow(0 18px 26px rgba(43, 27, 18, .2)); }

.pm__origin { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); }
.pm__title { font-size: var(--fs-xl); margin: var(--sp-2) 0 var(--sp-3); }
.pm__desc { color: var(--text-2); max-width: 60ch; line-height: 1.6; }

.pm__notes { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.specs dt { color: var(--text-2); }
.specs dd { text-align: right; font-weight: 500; }

.pm__opts { margin-top: var(--sp-6); }
.opt-group { margin-bottom: var(--sp-5); }
.opt-group__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--sp-3);
}
.opt-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.opt small { font-size: 11px; color: var(--accent-700); }
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt[aria-pressed="true"] small { color: #E6C9B8; }

.pm__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.pm__total { display: flex; flex-direction: column; }
.pm__total b { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.pm__total span { font-size: var(--fs-xs); color: var(--text-2); margin-top: var(--sp-1); }
.pm__buy .btn { flex: 1 1 180px; }

/* ============ 12. Оформление заказа ============ */
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  counter-reset: step;
}
.progress__item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-2); }
.progress__dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.progress__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress__item.is-current { color: var(--ink); font-weight: 600; }
.progress__item.is-current .progress__dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.progress__item.is-done .progress__dot { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }

.co-step__legend {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-5);
}

.delivery { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.delivery__opt { position: relative; display: block; cursor: pointer; }
.delivery__opt input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.delivery__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-1) var(--sp-4);
  min-height: 64px;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.delivery__body::before {
  content: "";
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--card);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.delivery__name { font-weight: 600; font-size: var(--fs-sm); }
.delivery__meta { grid-column: 1; font-size: var(--fs-xs); color: var(--text-2); }
.delivery__price { grid-row: 1 / span 2; grid-column: 2; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.delivery__opt input:checked + .delivery__body { border-color: var(--accent-700); box-shadow: 0 0 0 1px var(--accent-700); }
.delivery__opt input:checked + .delivery__body::before { border-color: var(--accent-700); box-shadow: inset 0 0 0 4px var(--accent-700); }
.delivery__opt input:focus-visible + .delivery__body { outline: 2px solid var(--accent-700); outline-offset: 3px; }

.summary { display: grid; gap: var(--sp-4); }
.summary__block { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); padding: var(--sp-4) var(--sp-5); }
.summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.summary__title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.summary__list { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.summary__line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.summary__line span:first-child { color: var(--text-2); }
.summary__line b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__edit { font-size: var(--fs-xs); }

.co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.co-actions .btn { flex: 1 1 160px; }

/* Экран «заказ принят» */
.done { text-align: center; padding: var(--sp-10) var(--sp-2) var(--sp-4); }
.done__mark {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-5);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-700);
  color: #fff;
}
.done__mark .icon { width: 34px; height: 34px; }
.done__title { font-size: var(--fs-xl); }
.done__num { display: inline-block; margin-top: var(--sp-3); padding: var(--sp-1) var(--sp-4); border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; letter-spacing: .04em; }
.done__text { max-width: 48ch; margin: var(--sp-4) auto var(--sp-6); color: var(--text-2); font-size: var(--fs-sm); }
.done__box { text-align: left; margin-bottom: var(--sp-6); }

/* ============ 13. Обжарка, подписка, о нас ============ */
.roast-flow { margin-bottom: var(--sp-8); }
.roast-flow__svg { width: 100%; height: auto; }

.steps { display: grid; gap: var(--sp-6); counter-reset: s; }

.step {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--ink);
}
.step__num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent-700);
}
.step__title { font-size: var(--fs-lg); margin: var(--sp-2) 0 var(--sp-3); }
.step__text { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.step__metric { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.step__metric b { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-xl); line-height: 1; }
.step__metric span { font-size: var(--fs-xs); color: var(--text-2); }

/* Подписка */
.section--sub { background: var(--card); }
.sub__grid { display: grid; gap: var(--sp-10); align-items: start; }

.tabs { margin-top: var(--sp-8); }
.tabs__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); border-bottom: 1px solid var(--line); padding-bottom: var(--sp-3); margin-bottom: var(--sp-6); }
.tab {
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.plan__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); }
.plan__title { font-size: var(--fs-lg); }
.plan__save { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--accent); color: var(--accent-700); font-size: var(--fs-xs); font-weight: 600; }
.plan__text { margin-top: var(--sp-3); color: var(--text-2); max-width: 58ch; }
.plan__price { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-2); }
.plan__price b { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-xl); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__perks { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.plan__perks li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); }
.plan__perks .icon { color: var(--accent-700); margin-top: 3px; }

.sub-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 32px);
}
.sub-form__title { font-size: var(--fs-lg); }
.sub-form__text { margin: var(--sp-3) 0 var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); }
.sub-form__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-2); line-height: 1.5; }
.sub-form__done { display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--accent); font-size: var(--fs-sm); }
.sub-form__done .icon { color: var(--accent-700); flex: none; margin-top: 2px; }

/* О нас */
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-8);
  border-block: 1px solid var(--line);
  margin-bottom: var(--sp-12);
}
.stat { display: flex; flex-direction: column; gap: var(--sp-2); }
.stat__num { font-family: "Playfair Display", Georgia, serif; font-size: var(--fs-2xl); font-weight: 700; line-height: 1; }
.stat__label { font-size: var(--fs-sm); color: var(--text-2); max-width: 22ch; }

.map__frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
}
.map__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-beans.svg");
  background-size: 128px 128px;
  opacity: .05;
  pointer-events: none;
}
.map__img { width: 100%; height: auto; }
.map__points { position: absolute; inset: clamp(12px, 2vw, 28px); }

.map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
}
.map-point__dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-700);
  box-shadow: 0 0 0 3px rgba(192, 91, 50, .22);
}
.map-point__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 1px 7px;
}
.map__cap { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-2); max-width: 62ch; }

/* ============ 14. Подвал и тост ============ */
.footer { background: var(--ink); color: #E9DED2; padding-block: var(--sp-16) var(--sp-8); }
.footer a { color: inherit; }
.footer a:hover { color: #fff; }

.footer__grid { display: grid; gap: var(--sp-8); }
.footer .logo { color: #F7F1E8; margin-right: 0; }
.footer .logo__sub { color: #B9A794; }
.footer__pitch { margin: var(--sp-4) 0 var(--sp-5); font-size: var(--fs-sm); color: #C9BAAA; max-width: 34ch; line-height: 1.6; }

.socials { display: flex; gap: var(--sp-2); }
.social {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(247, 241, 232, .22);
  border-radius: 50%;
  color: #E9DED2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.social:focus-visible { outline-color: #F7F1E8; }

.footer__title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #B9A794; margin-bottom: var(--sp-4); font-family: Inter, sans-serif; }
.footer__list { display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.footer__list a { display: inline-block; padding-block: var(--sp-1); }
.footer__list--plain li { color: #C9BAAA; line-height: 1.55; }
.footer__address { font-style: normal; font-size: var(--fs-sm); line-height: 1.9; color: #C9BAAA; }
.footer__address a { color: #F0E6DA; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  justify-content: space-between;
  margin-top: var(--sp-12);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 241, 232, .16);
}
.footer__disclaimer, .footer__copy { font-size: var(--fs-xs); color: #A8988A; }

/* Тост */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: min(calc(100% - 32px), 420px);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: #F7F1E8;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; }
.toast__text { flex: 1 1 auto; font-size: var(--fs-sm); line-height: 1.35; min-width: 0; }
.toast__text b { display: block; font-weight: 600; }
.toast__text span { color: #C9BAAA; font-size: var(--fs-xs); }
.toast__btn {
  flex: none;
  min-height: 40px;
  padding: 0 var(--sp-4);
  border: 1px solid rgba(247, 241, 232, .3);
  border-radius: var(--r-pill);
  background: transparent;
  color: #F7F1E8;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.toast__btn:hover { background: var(--accent-700); border-color: var(--accent-700); }
.toast:focus-visible, .toast__btn:focus-visible { outline-color: #F7F1E8; }

/* ============ 15. Адаптив ============ */
@media (max-width: 899px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--ink);
    border-radius: var(--r-pill);
    background: transparent;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) var(--sp-4) var(--sp-5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    min-height: 52px;
    padding-inline: var(--sp-3);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: var(--fs-md);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__row { grid-template-columns: auto auto; justify-content: start; column-gap: var(--sp-10); }
  .filters__row--bottom { grid-template-columns: minmax(200px, 1fr) minmax(0, 1fr); }
  .about__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-6); }
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
  .cart-btn__label { display: inline; }
  .pm { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); padding: var(--sp-8); gap: var(--sp-8); }
  .pm__art { aspect-ratio: 3 / 4; position: sticky; top: var(--sp-6); }
  .modal__box--product { border-radius: var(--r-lg); }
  .toast { left: auto; right: var(--sp-6); bottom: var(--sp-6); transform: translate(0, 130%); }
  .toast.is-open { transform: translate(0, 0); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: var(--sp-10); }
  .sub__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--sp-16); }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--sp-16); }
  .hero__art { justify-self: end; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { padding: var(--sp-8); }
  .filters__row--bottom { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.2fr) minmax(180px, 0.8fr); }
}

@media (min-width: 1200px) {
  .section__title { font-size: var(--fs-2xl); }
  .grid { gap: var(--sp-6); }
}

/* ============ Уважение к настройкам движения ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card:hover .card__art .pack { transform: none; }
  .pack[data-parallax] { transform: none !important; }
}

/* ============ 16. Точки на карте — кнопка с подписью по наведению ============ */
.map-point {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.map-point__label {
  opacity: 0;
  transition: opacity .18s var(--ease);
  pointer-events: none;
}
.map-point:hover .map-point__label,
.map-point:focus-visible .map-point__label { opacity: 1; }
.map-point:focus-visible { outline-offset: 6px; }
.map-point:hover .map-point__dot { box-shadow: 0 0 0 6px rgba(192, 91, 50, .22); }

/* Панель тарифа подписки */
.plan:focus-visible { outline-offset: 6px; }

/* Атрибут hidden должен побеждать любой display у компонента
   (у .modal, .drawer и .toast задан display:flex — без этого правила
   они остаются на экране после закрытия). */
[hidden] { display: none !important; }
