/* Das Parfum — демо витрины. Монохромная палитра логотипа: чёрный, белый, тёплый серый. */
:root {
  --ink: #0d0d0d;
  --ink-2: #2c2b29;
  --muted: #77736c;
  --line: #e8e5e0;
  --soft: #f5f3ef;
  --paper: #ffffff;
  --gold: #a8874f;
  --danger: #b3261e;
  --ok: #2f6b45;
  --r: 16px;
  --r-sm: 12px;
  --pad: 16px;
  --top-h: 58px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 8px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
main { flex: 1; outline: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: .14em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: var(--max); margin: 0 auto; height: var(--top-h);
  padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between;
}
.top__logo img { height: 20px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__link { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; display: none; }
.top__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.top__cart svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.top__badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1;
}
.top__badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- переходы между экранами ---------- */
.view { animation: view-in .38s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- главная: обложка ---------- */
.hero {
  background: var(--ink); color: #fff; text-align: center;
  padding: 46px var(--pad) 40px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(168, 135, 79, .22), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__logo { width: min(320px, 78vw); height: auto; margin: 0 auto; }
.hero__lead { margin-top: 18px; font-size: 18px; font-weight: 300; letter-spacing: .02em; color: rgba(255, 255, 255, .86); }
.hero__facts {
  list-style: none; padding: 0; margin: 26px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__facts li { padding: 16px 4px 0; }
.hero__facts b { display: block; font-size: 22px; font-weight: 300; letter-spacing: .02em; }
.hero__facts span { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero__cta { margin-top: 28px; min-width: 220px; border-color: #fff; }

/* ---------- каталог ---------- */
.catalog { padding-top: 26px; padding-bottom: 56px; }
.catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.title { font-size: 26px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; }
.catalog__count { font-size: 15px; color: var(--muted); }

.bar { display: flex; gap: 10px; margin-top: 18px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 16px; border-radius: 999px; background: var(--soft);
}
.search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: #9b968f; }
.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px;
}
.filter-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.filter-btn .dot {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}

.seg {
  display: flex; gap: 8px; margin: 14px calc(var(--pad) * -1) 0; padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.chosen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chosen:empty { display: none; }
.chosen button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px;
}
.chosen button::after { content: "×"; font-size: 18px; line-height: 1; color: var(--muted); }
.chosen .chosen__reset { background: none; text-decoration: underline; text-underline-offset: 3px; }
.chosen .chosen__reset::after { content: none; }

.catalog__body { margin-top: 18px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
.card { display: block; min-width: 0; }
.card__img {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--soft); font-size: 12px; color: var(--ink-2);
}
.card__brand { margin-top: 12px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__name { margin-top: 3px; font-size: 16px; line-height: 1.3; }
.card__price { margin-top: 6px; font-size: 16px; font-weight: 600; }
.card__price span { font-weight: 400; color: var(--muted); font-size: 14px; }

.empty { padding: 48px 0; text-align: center; }
.empty h2 { font-size: 22px; font-weight: 300; }
.empty p { margin-top: 8px; color: var(--muted); }
.empty .btn { margin-top: 22px; }

/* скелетоны загрузки */
.sk { background: linear-gradient(90deg, var(--soft) 0, #ece9e4 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.sk--card { aspect-ratio: 1; }
.sk--line { height: 14px; margin-top: 12px; border-radius: 6px; width: 70%; }

/* ---------- панель фильтров: шторка на телефоне, колонка на компьютере ---------- */
.filters { display: none; }
.sheet-open { overflow: hidden; }
.filters.is-open {
  display: flex; flex-direction: column;
  position: fixed; inset: 0; z-index: 50;
  background: rgba(13, 13, 13, .38);
  animation: fade .25s ease both;
}
.filters__panel {
  margin-top: auto; max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px 24px 0 0;
  animation: sheet-up .34s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad) 8px; }
.filters__head h2 { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; font-weight: 300; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; margin-right: -10px; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.filters__scroll { overflow-y: auto; padding: 0 var(--pad) 12px; overscroll-behavior: contain; }
.filters__foot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; background: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.chip small { color: var(--muted); font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }
.note-search { width: 100%; height: 44px; margin-bottom: 12px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); outline: none; font-size: 16px; }

/* ---------- карточка аромата ---------- */
.pdp { padding-top: 8px; padding-bottom: 120px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 44px; font-size: 15px; color: var(--muted); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pdp__grid { display: grid; gap: 22px; }
.pdp__media {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  margin: 0 calc(var(--pad) * -1); border-left: 0; border-right: 0; border-radius: 0;
}
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__brand { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pdp__name { margin-top: 6px; font-size: 32px; line-height: 1.12; font-weight: 300; letter-spacing: .01em; }
.pdp__meta { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pdp__price { margin-top: 18px; font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.pdp__price small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; }

.vol { margin-top: 22px; }
.vol__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.vol__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vol__opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 70px; padding: 8px 4px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.vol__opt:active { transform: scale(.97); }
.vol__opt b { font-size: 18px; font-weight: 500; }
.vol__opt span { margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vol__opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.vol__opt[aria-checked="true"] span { color: rgba(255, 255, 255, .72); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.qty-row > span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; }
.stepper button { width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.stepper button[disabled] { color: #c9c5bf; }
.stepper output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 500; }
.stepper--sm { height: 40px; }
.stepper--sm button { width: 40px; height: 40px; font-size: 20px; }

.buy { margin-top: 22px; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; gap: 14px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: bar-up .4s var(--ease) both;
}
@keyframes bar-up { from { transform: translateY(100%); } }
.buybar__sum { display: flex; flex-direction: column; line-height: 1.2; }
.buybar__sum b { font-size: 20px; font-weight: 600; white-space: nowrap; }
.buybar__sum span { font-size: 14px; color: var(--muted); }
.buybar .btn { flex: 1; }
.btn.is-added { background: var(--ok); border-color: var(--ok); }

.block { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.block h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pyramid { display: grid; gap: 14px; }
.pyramid__row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.pyramid__row > span { padding-top: 9px; font-size: 15px; color: var(--muted); }
.pyramid .chip { min-height: 38px; font-size: 15px; }
.pdp__desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.perks svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.perks b { display: block; font-weight: 500; }
.perks span { color: var(--muted); }

.more { margin-top: 44px; }
.more__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.more__head h2 { font-size: 20px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }

/* ---------- корзина и оформление ---------- */
.cart { padding-top: 22px; padding-bottom: 64px; }
.cart__layout { display: grid; gap: 28px; margin-top: 20px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line:first-child { padding-top: 0; }
.line__img { width: 84px; height: 84px; border-radius: var(--r-sm); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__brand { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line__name { font-size: 16px; line-height: 1.3; }
.line__vol { margin-top: 2px; font-size: 14px; color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.line__sum { font-size: 17px; font-weight: 600; white-space: nowrap; }
.line__remove { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.line.is-leaving { animation: leave .3s ease forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-12px); } }

.form-section { margin-top: 30px; }
.form-section h2 { font-size: 18px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start;
  padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.option__box::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid #bdb8b1; transition: border .2s;
}
.option input:checked + .option__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:checked + .option__box::before { border: 7px solid var(--ink); }
.option input:focus-visible + .option__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.option__box b { display: block; font-size: 16px; font-weight: 500; }
.option__box small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.option__box em { font-style: normal; font-size: 15px; font-weight: 500; white-space: nowrap; }

.fields { display: grid; gap: 12px; margin-top: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: 16px; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: block; margin-top: 6px; font-size: 14px; color: var(--danger); }

.summary {
  padding: 20px; border-radius: 20px; background: var(--soft);
  align-self: start;
}
.summary h2 { font-size: 18px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 16px; }
.summary__row span:first-child { color: var(--muted); }
.summary__total { margin-top: 8px; padding-top: 14px; border-top: 1px solid #ddd8d1; font-size: 22px; font-weight: 600; }
.summary__total span:first-child { color: var(--ink); font-weight: 400; }
.summary .btn { margin-top: 18px; }
.summary__hint { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.form-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fbeceb; color: var(--danger); font-size: 15px; }

/* ---------- демо-оплата ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(13, 13, 13, .5); animation: fade .25s ease both;
}
.paysheet {
  width: 100%; max-width: 460px; padding: 26px var(--pad) calc(22px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 26px 26px 0 0; text-align: center;
  animation: sheet-up .36s var(--ease) both;
}
.paysheet__label {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.paysheet__sum { margin-top: 16px; font-size: 40px; font-weight: 500; letter-spacing: -.01em; }
.paysheet__for { margin-top: 2px; font-size: 15px; color: var(--muted); }
.paymethods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.paymethod {
  height: 60px; border-radius: var(--r-sm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500;
}
.paymethod[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.paymethod i {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink);
}
.paysheet__note { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.paysheet__later { margin-top: 8px; height: 44px; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- заказ оформлен ---------- */
.done { padding-top: 34px; padding-bottom: 64px; max-width: 640px; }
.done__mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; animation: pop .5s var(--ease) both;
}
.done__mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h1 { margin-top: 22px; font-size: 30px; font-weight: 300; line-height: 1.2; }
.done__lead { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 15px;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.status-pill.is-paid::before { background: var(--ok); }
.done__box { margin-top: 26px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); }
.done__item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 16px; }
.done__item span:last-child { white-space: nowrap; }
.done__actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: #fff; margin-top: auto; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 44px var(--pad) calc(28px + env(safe-area-inset-bottom)); }
.foot__logo { width: 166px; height: auto; }
.foot__lead { margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.foot__cols { display: grid; gap: 22px; margin-top: 30px; }
.foot__cols h3 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.foot__cols p, .foot__cols a { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  display: grid; place-items: center; transition: background .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .1); }
.socials svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.5; }
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating b { font-size: 22px; font-weight: 400; }
.rating i { font-style: normal; color: var(--gold); letter-spacing: 2px; }
.foot__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px; color: rgba(255, 255, 255, .5);
}
.foot__bottom a { text-decoration: underline; text-underline-offset: 3px; }
body.has-buybar .foot { padding-bottom: 86px; }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--top-h) + 10px); z-index: 70;
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ---------- планшет и компьютер ---------- */
@media (min-width: 640px) {
  :root { --pad: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; }
  .rail { grid-auto-columns: 30%; }
  .paysheet { border-radius: 26px; margin-bottom: 24px; }
  .modal { align-items: center; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  :root { --top-h: 68px; }
  .top__logo img { height: 24px; }
  .top__link { display: inline; }
  .hero { padding: 76px var(--pad) 64px; }
  .hero__logo { width: 420px; }
  .hero__lead { font-size: 21px; }
  .title { font-size: 32px; }

  .catalog__body { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
  .filter-btn { display: none; }
  .filters, .filters.is-open {
    display: block; position: sticky; top: calc(var(--top-h) + 20px); inset: auto;
    background: none; animation: none; max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto;
  }
  .filters__panel { animation: none; border-radius: 0; max-height: none; }
  .filters__head, .filters__foot { display: none; }
  .filters__scroll { padding: 0; overflow: visible; }
  .fgroup:first-child { padding-top: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pdp { padding-bottom: 40px; }
  .pdp__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .pdp__media { position: sticky; top: calc(var(--top-h) + 20px); margin: 0; border: 1px solid var(--line); border-radius: 26px; }
  .pdp__name { font-size: 42px; }
  .buybar { position: static; padding: 0; margin-top: 22px; background: none; border: 0; backdrop-filter: none; animation: none; }
  .buybar__sum { display: none; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; overflow: visible; margin: 0; padding: 0; }
  body.has-buybar .foot { padding-bottom: 0; }

  .cart__layout { grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
  .summary { position: sticky; top: calc(var(--top-h) + 20px); }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
