/* ===== Цвета и размеры (светлая тема) ===== */
:root {
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --tint: #F4ECE1;
  --text: #2A211D;
  --muted: #6B5F57;
  --line: #E7DCCD;
  --accent: #A93444;
  --accent-hover: #8F2A39;
  --accent-ink: #FFFFFF;
  --accent-soft: #F7E1E3;
  --green: #4E6A32;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 8px 24px rgba(60, 35, 20, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

/* ===== Тёмная тема — по настройке системы ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1614;
    --surface: #262019;
    --tint: #211B17;
    --text: #F3EAE0;
    --muted: #B9AB9E;
    --line: #3B322B;
    --accent: #E57C89;
    --accent-hover: #F0959F;
    --accent-ink: #1B1614;
    --accent-soft: #3C2629;
    --green: #A9C783;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1614; --surface: #262019; --tint: #211B17; --text: #F3EAE0; --muted: #B9AB9E;
  --line: #3B322B; --accent: #E57C89; --accent-hover: #F0959F; --accent-ink: #1B1614;
  --accent-soft: #3C2629; --green: #A9C783; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.page-off { display: none !important; } /* разделы других страниц */
/* Корзина выключена в settings.js (cart: false) — прячем всё, что к ней относится */
.no-cart [data-cart-only] { display: none !important; }
html:not(.no-cart) [data-cart-off] { display: none !important; }
.muted { color: var(--muted); }
.script { font-family: var(--script); font-weight: 700; color: var(--accent); letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ===== Шапка ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin: 0; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 35% 35%, #F2C14E 0 18%, transparent 19%),
    radial-gradient(circle at 64% 40%, #D8475A 0 17%, transparent 18%),
    radial-gradient(circle at 48% 66%, #7FA650 0 17%, transparent 18%),
    #E9C89B;
  box-shadow: inset 0 0 0 3px #C99A5E;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-size: 1.12rem; font-weight: 800; }
.logo__text small { font-family: var(--script); font-size: 1.05rem; color: var(--accent); margin-top: 2px; }
/* ===== Меню разделов =====
   Телефон: 1-я строка — логотип и «Связаться», 2-я — панель из 4 разделов одинаковой ширины.
   ПК (≥900px): всё в одну строку. */
.nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 3px; margin: 2px 0 10px; }
.nav a { color: var(--muted); text-decoration: none; text-align: center; white-space: nowrap;
  padding: 8px 2px; border-radius: 11px; font-weight: 600; font-size: .86rem; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(60,35,20,.10), 0 2px 8px rgba(60,35,20,.06); }
.nav__contact { order: 2; margin-left: auto; flex: none; border: 0; cursor: pointer; font: 700 .9rem var(--font);
  min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(169,52,68,.25); transition: background .15s, transform .1s; }
.nav__contact:hover { background: var(--accent-hover); }
.nav__contact:active { transform: translateY(1px); }
@media (max-width: 899px) {
  .topbar__in { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 8px; }
  :root { --header-h: 116px; }
}
@media (min-width: 900px) {
  .nav { order: 0; width: auto; display: flex; gap: 2px; background: none; border: 0; padding: 0; margin: 0 0 0 auto; }
  .nav a { padding: 9px 14px; border-radius: 999px; font-size: .95rem; color: var(--text); }
  .nav a:hover { background: var(--tint); }
  .nav a[aria-current="page"] { background: var(--accent-soft); box-shadow: none; }
  .nav__contact { order: 0; margin-left: 10px; font-size: .95rem; min-height: 42px; }
}
.cart-btn {
  margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 600 .95rem var(--font); cursor: pointer;
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover { border-color: var(--accent); }
.cart-btn__label { display: none; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.header-cta { display: inline-flex; margin-left: auto; }
.no-cart body, html.no-cart body { padding-bottom: 0; } /* нижней панели нет — отступ под неё не нужен */
@media (min-width: 900px) {
  .header-cta { margin-left: 8px; }
  .cart-btn { margin-left: 8px; }
  .cart-btn__label { display: inline; }
}

/* ===== Первый экран ===== */
.hero { padding: 28px 0 8px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .8em; }
.hero h1 .script { display: block; font-size: 1.15em; line-height: 1; margin-top: .1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.hero__facts b { color: var(--accent); }
.hero__pic { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__pic { aspect-ratio: 3 / 3.6; transform: rotate(1.2deg); }
}

/* ===== Преимущества ===== */
.perks { padding: 24px 0; }
.perks__in { display: grid; gap: 12px; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.perk svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { margin: 0 0 2px; }
.perk p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .perks__in { grid-template-columns: repeat(3, 1fr); } }

/* ===== Секции ===== */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 24px; max-width: 46em; }
.section__head p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.section__head--row h2 { margin: 0; }
@media (min-width: 1000px) { .grid.grid--3 { grid-template-columns: repeat(3, 1fr); } }
.about--short .about__pic { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .about--short { grid-template-columns: .7fr 1.3fr; } .about--short .about__pic { aspect-ratio: 4 / 3.4; } }
.about--short .btn { margin-top: 6px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.notice p { margin: 0; flex: 1 1 280px; }
/* контакты крупно (главная, доставка) */
.contacts--row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contacts--row a { padding: 14px 16px; }
.contact-strip .section__head { margin-bottom: 16px; }
.contact-strip__title { margin: 28px 0 12px; font-size: 1.25rem; }
.header-phone { display: none; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: 12px; }
.header-phone:hover { color: var(--accent); }
@media (min-width: 1100px) { .header-phone:not([hidden]) { display: inline; } }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.footer__nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer__nav a:hover { color: var(--accent); }
.link--muted { color: var(--muted); font-size: .9rem; }

/* ===== Фильтры ===== */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .95rem var(--font);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.select select, .field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 1rem var(--font);
}
.field textarea { resize: vertical; min-height: 84px; }
.select select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (min-width: 900px) {
  .filters { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .filters__selects { grid-template-columns: 180px 200px; }
}

/* ===== Карточки ===== */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 4 / 3.4; background: var(--tint); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__type { position: absolute; left: 12px; top: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:hover { color: var(--accent); }
.card__title button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card__short { color: var(--muted); font-size: .93rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.meta li { font-size: .82rem; font-weight: 600; background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.price small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Нет фото */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--accent);
  background:
    radial-gradient(circle at 20% 30%, var(--accent-soft) 0 14%, transparent 15%),
    radial-gradient(circle at 75% 25%, var(--accent-soft) 0 10%, transparent 11%),
    radial-gradient(circle at 65% 75%, var(--accent-soft) 0 16%, transparent 17%),
    radial-gradient(circle at 25% 80%, var(--accent-soft) 0 9%, transparent 10%),
    var(--tint);
}
.ph svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ph span { font-family: var(--script); font-size: 1.5rem; font-weight: 700; }

/* Счётчик */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; color: var(--text); font: 700 1.25rem var(--font); cursor: pointer; border-radius: 50%; }
.stepper button:hover { color: var(--accent); }
.stepper input, .stepper output { width: 40px; text-align: center; border: 0; background: none; font: 700 1rem var(--font); color: var(--text); -moz-appearance: textfield; padding: 0; min-height: 0; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field > .stepper { align-self: flex-start; }
.stepper--lg button { width: 52px; height: 52px; font-size: 1.5rem; }
.stepper--lg input { width: 72px; font-size: 1.4rem; }
.stepper input:focus { outline: none; box-shadow: none; }

/* ===== Калькулятор ===== */
.calc { display: grid; gap: 24px; }
.calc__intro p { color: var(--muted); }
.calc__form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .88rem; font-weight: 700; color: var(--muted); padding: 0; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.radio small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.calc__result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.calc__need { font-size: 1.05rem; margin-bottom: 12px; }
.calc__need b { color: var(--accent); }
.calc__list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.calc__list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.calc__sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.calc__note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
@media (min-width: 900px) {
  .calc { grid-template-columns: 1fr 1fr; align-items: start; }
  .calc__intro { grid-column: 1 / -1; max-width: 46em; }
}

/* ===== Шаги ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 72px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 70px 20px 20px; }
  .steps li::before { top: 20px; }
}

/* ===== Доставка ===== */
.cards3 { display: grid; gap: 14px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info p { margin: 0; color: var(--muted); }
.info b { color: var(--text); }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== О Наталье ===== */
.about { display: grid; gap: 28px; align-items: center; }
.about__pic { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.about__pic img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 .script { display: block; font-size: .85em; margin-top: .2em; line-height: 1.1; }
.about__text p { color: var(--muted); }
.about__text .about__sign { color: var(--muted); font-size: 1.8rem; line-height: 1.1; margin-top: .4em; }
@media (min-width: 900px) {
  .about { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .about__pic { aspect-ratio: 3 / 3.8; transform: rotate(-1.2deg); }
}

/* ===== Отзывы ===== */
.reviews { display: grid; gap: 14px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.review p { margin: 0 0 10px; }
.review cite { font-style: normal; font-weight: 700; color: var(--muted); }

/* ===== Вопросы ===== */
.faq > * { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; background: var(--tint); }
.footer__in { display: grid; gap: 24px; }
.footer__title { font-size: 1.1rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer__bottom a { color: var(--muted); }
@media (min-width: 760px) { .footer__in { grid-template-columns: 1fr 1fr; } }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contacts a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.contacts a:hover { border-color: var(--accent); color: var(--text); }
.contacts .ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.contacts small { display: block; color: var(--muted); font-weight: 500; }
.contacts--big a { padding: 12px 14px; }

/* ===== Нижняя панель (телефон) ===== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock .btn { min-height: 50px; padding: 0 12px; }
.dock .btn--ghost { background: var(--surface); }
.dock__sum:not(:empty)::before { content: "· "; }
.no-cart .dock .dock__write { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@media (min-width: 900px) { .dock { display: none; } }

/* ===== Окна ===== */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto;
}
.modal--small { width: min(440px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(20, 12, 8, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__box { background: var(--surface); border-radius: 22px; overflow: auto; max-height: calc(100dvh - 24px); position: relative; padding: 24px; }
.modal__close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__box--flush { padding: 0; }
.pm { display: grid; gap: 20px; }
.pm__media { aspect-ratio: 4 / 3; background: var(--tint); }
.pm__media { position: relative; }
.pm__main { width: 100%; height: 100%; }
.pm__media .pm__main img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.pm__thumb { width: 52px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,.75); background: var(--tint); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: .8; }
.pm__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm__thumb[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.pm__thumb:hover { opacity: 1; }
.pm__body { padding: 0 22px 22px; }
.pm__body h2 { padding-right: 40px; margin-bottom: .3em; }
.pm__desc { margin: 12px 0 0; color: var(--muted); }
.pm__list { margin: 12px 0 16px; padding-left: 1.2em; }
.pm__list li { margin-bottom: 4px; }
.pm__list li::marker { color: var(--accent); }
.pm__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pm__tags span { background: var(--accent-soft); color: var(--text); padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.pm__buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.pm__buy .price { margin-right: auto; }
.pm__est { font-size: .82rem; color: var(--muted); margin: 0 0 12px; }
@media (min-width: 760px) {
  .pm { grid-template-columns: 1fr 1fr; gap: 0; }
  .pm__media { aspect-ratio: auto; min-height: 100%; }
  .pm__body { padding: 28px; }
}

/* ===== Корзина ===== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 12, 8, .5); z-index: 40; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(460px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); min-height: 70px; }
.drawer__head h2 { margin: 0; font-size: 1.35rem; }
.drawer__head .modal__close { position: static; margin-left: auto; }
.drawer__back { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.drawer__view { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.cart-item__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.cart-item__img img, .cart-item__img .ph { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img .ph svg { width: 28px; height: 28px; }
.cart-item__img .ph span { display: none; }
.cart-item__name { font-weight: 700; line-height: 1.25; }
.cart-item__price { color: var(--muted); font-size: .88rem; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item__sum { font-weight: 800; }
.cart-item .stepper button { width: 34px; height: 34px; font-size: 1.1rem; }
.cart-item .stepper output { width: 26px; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total b { font-size: 1.4rem; }
.freebar__text { font-size: .9rem; margin-bottom: 6px; }
.freebar__text b { color: var(--accent); }
.freebar__track { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.freebar__fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .3s; }
.form { display: grid; gap: 14px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.err { color: #C0392B; font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
:root[data-theme="dark"] .err { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FF8A80; } }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }
.hint:empty { display: none; }
.order-text {
  white-space: pre-wrap; word-break: break-word; font: 500 .92rem/1.55 var(--font);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0 16px;
}
.send { display: grid; gap: 10px; }
.send .btn { justify-content: flex-start; text-align: left; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.send .ico { width: 28px; height: 28px; border-radius: 8px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.ico--wa { background: #25A55F; }
.ico--tg { background: #2A9BD8; }
.ico--ig { background: linear-gradient(45deg, #F2A33A, #D9346B 55%, #8B3BC4); }
.ico--vk { background: #2C73D2; }
.ico--ph { background: var(--green); }
.ico--ym { background: #FC3F1D; }
.ico--copy { background: var(--muted); }

/* ===== Уведомление ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: .95rem;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
/* Когда открыта корзина — уведомление сверху, чтобы не закрывать итог и кнопку */
body.lock .toast, body:has(dialog[open]) .toast { bottom: auto; top: 84px; transform: translate(-50%, -20px); }
body.lock .toast.is-on, body:has(dialog[open]) .toast.is-on { transform: translate(-50%, 0); }

body.lock, body:has(dialog[open]) { overflow: hidden; }

/* ===== Микроанимации ===== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }
/* смена страницы: мягкое появление снизу */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn .45s var(--ease) both; }
.page-enter + .page-enter { animation-delay: .06s; }
/* карточки появляются по очереди */
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.card.card-enter { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
/* нажатие на кнопки и пункты меню */
.btn, .chip, .nav a, .nav__contact, .contacts a, .stepper button, .modal__close, .pm__thumb, .card__title button {
  transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active, .chip:active, .nav__contact:active, .stepper button:active, .modal__close:active, .pm__thumb:active { transform: scale(.96); }
.nav a:active, .contacts a:active { transform: scale(.97); }
.btn--primary:hover, .nav__contact:hover { box-shadow: 0 6px 18px rgba(169, 52, 68, .28); }
.contacts a:hover { transform: translateY(-1px); }
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(60,35,20,.06), 0 14px 32px rgba(60,35,20,.12); }
/* окна: плавное открытие и закрытие */
.modal[open] { animation: modalIn .28s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .28s var(--ease); }
.modal.is-closing { animation: modalOut .2s var(--ease) forwards; }
.modal.is-closing::backdrop { animation: fadeOut .2s var(--ease) forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
/* смена фото в галерее */
.pm__main img { animation: fadeIn .3s var(--ease); }
/* активный пункт меню «переезжает» мягко */
.nav a[aria-current="page"] { transition: background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .page-enter, .card.card-enter, .modal[open], .modal.is-closing, .pm__main img { animation: none !important; }
}

/* ===== Новогодняя категория ===== */
.chip--ny { border-color: #2F5D3A; color: #2F5D3A; background: #E8F1EA; font-weight: 700; }
.chip--ny:hover { border-color: #B8323F; }
.chip--ny[aria-pressed="true"] { background: #2F5D3A; color: #fff; border-color: #2F5D3A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip--ny { background: #1F3326; color: #BFE0C6; border-color: #4E8A5E; }
  :root:not([data-theme="light"]) .chip--ny[aria-pressed="true"] { background: #4E8A5E; color: #10201B; }
}
:root[data-theme="dark"] .chip--ny { background: #1F3326; color: #BFE0C6; border-color: #4E8A5E; }
:root[data-theme="dark"] .chip--ny[aria-pressed="true"] { background: #4E8A5E; color: #10201B; }
/* ===== Окно «Связаться»: блок «Мы здесь» (соцсети и карты — не для заказов) ===== */
.ico--max { background: linear-gradient(135deg, #3E8BFF, #7A4DFF); }
.socials { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.socials__title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.socials__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials__list a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; }
.socials__list a:hover { border-color: var(--accent); }
.socials__list .ico { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .7rem; }
