/* ==========================================================================
   RETRO MUSIC MOSCOW — база: токены, типографика, кнопки, формы, шапка, подвал, корзина
   ========================================================================== */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe7d9;
  --surface: #fffdf8;
  --ink: #191712;
  --ink-2: #4d4740;
  --ink-3: #857b6d;
  --line: #e3d9c8;
  --line-strong: #cfc2ac;
  --accent: #a9702a;
  --accent-2: #8a5a1d;
  --accent-soft: #f3e6d1;
  --danger: #a3423a;
  --success: #4b6b45;
  --dark: #15130f;
  --dark-2: #201c16;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(25, 23, 18, 0.05), 0 8px 20px -14px rgba(25, 23, 18, 0.35);
  --shadow: 0 2px 6px rgba(25, 23, 18, 0.06), 0 22px 44px -28px rgba(25, 23, 18, 0.4);
  --shadow-lg: 0 40px 90px -50px rgba(25, 23, 18, 0.6);
  --container: 1200px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
  --sticky-h: 112px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-h) + 28px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 4.2vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

::selection { background: var(--ink); color: var(--paper); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip:focus { top: 0; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}
.i--sm { width: 16px; height: 16px; }

/* ------------------------------ типографика ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 58ch;
}

.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.serif { font-family: var(--font-display); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s, gap 0.2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.link-arrow .i { width: 16px; height: 16px; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper-2); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section__head h2 { max-width: 20ch; }
.section__head .lead { margin-top: 12px; }

/* -------------------------------- кнопки -------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn .i { width: 17px; height: 17px; }

.btn--primary { --btn-bg: var(--ink); --btn-fg: #fbf7ef; --btn-border: var(--ink); }
.btn--primary:hover { --btn-bg: #2b261e; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #fffaf1; --btn-border: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-2); --btn-border: var(--accent-2); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--outline:hover { --btn-border: var(--ink); --btn-bg: rgba(255, 253, 248, 0.6); }

.btn--light {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--surface);
}
.btn--light:hover { --btn-bg: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: transparent; padding: 0 12px; }
.btn--ghost:hover { --btn-bg: rgba(25, 23, 18, 0.06); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 12.5px; }
.btn--sm .i { width: 15px; height: 15px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(25, 23, 18, 0.07); }
.icon-btn .count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.link-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 0;
}
.link-center:hover { color: var(--accent); }
.link-center .i { width: 15px; height: 15px; }

/* -------------------------------- формы --------------------------------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label,
.field > .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .error { font-size: 12px; color: var(--danger); display: none; }
.field.has-error .error { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d4740' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: #a89c8b; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(25, 23, 18, 0.08);
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.5;
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  flex: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.check input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--ink);
}
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------- шапка --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s, background 0.25s;
}
.site-header.is-stuck {
  background: rgba(250, 247, 241, 0.98);
  box-shadow: 0 12px 30px -24px rgba(25, 23, 18, 0.6);
  backdrop-filter: blur(10px);
}

.announce {
  background: var(--dark);
  color: #ded3c0;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 34px;
  overflow: hidden;
  white-space: nowrap;
}
.announce__inner span { display: inline-flex; align-items: center; gap: 7px; }
.announce__inner .i { width: 14px; height: 14px; opacity: 0.75; }
.announce__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.4; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.5s var(--ease), background 0.25s, color 0.25s;
}
.logo__mark .i { width: 21px; height: 21px; }
.logo__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo:hover .logo__mark { transform: none; background: transparent; color: inherit; }
.logo__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 0.94;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo__word em {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}
.logo--light .logo__mark { border-color: rgba(255, 255, 255, 0.35); color: #f3ebdc; }
.logo--light .logo__word { color: #f7f1e5; }
.logo--light .logo__word em { color: rgba(247, 241, 229, 0.5); }

.header__burger { display: none; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav__link:hover,
.nav__item--mega:hover > .nav__link { color: var(--ink); background: rgba(25, 23, 18, 0.05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  margin-left: 2px;
}
.nav__chev { width: 14px; height: 14px; opacity: 0.55; transition: transform 0.2s; }
.nav__item--mega:hover .nav__chev { transform: rotate(180deg); }

/* мега-меню */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1060px, calc(100vw - 40px));
  padding-top: 10px;
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 5;
}
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega__inner {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.mega__title {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mega__brands { display: grid; gap: 2px; }
.mega__brands a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  margin-left: -8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.mega__brands a:hover { background: var(--paper-2); color: var(--ink); }
.mega__brands span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}
.mega__all .i { width: 15px; height: 15px; }
.mega__prods { display: grid; gap: 6px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background 0.15s; }
.mini:hover { background: var(--paper-2); }
.mini__art {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 8px;
  background: var(--paper-2) center / cover no-repeat;
}
.mini__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini__body b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.mini__body span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mega__promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.2s;
}
.mega__promo:hover { border-color: var(--line-strong); }
.mega__promo-art { height: 118px; background: var(--paper-2) center / cover no-repeat; }
.mega__promo-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mega__promo-body small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.mega__promo-body strong { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.2; }
.mega__promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.mega__promo-link .i { width: 14px; height: 14px; }

/* поиск */
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 236px;
  flex: none;
  height: 42px;
  padding: 0 6px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.7);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search:focus-within {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(25, 23, 18, 0.07);
}
.search__icon { width: 17px; height: 17px; color: var(--ink-3); }
.search__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  box-shadow: none;
}
.search__input:focus { outline: none; box-shadow: none; border: 0; }
.search__submit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s;
}
.search__submit:hover { background: var(--accent); }
.search__submit .i { width: 16px; height: 16px; }
.search__results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  min-width: 360px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 40;
}
.search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 9px;
  transition: background 0.15s;
}
.search-hit:hover { background: var(--paper-2); }
.search-hit__art { width: 44px; height: 44px; flex: none; border-radius: 7px; background: var(--paper-2) center / cover no-repeat; }
.search-hit__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-hit__body b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hit__body small { font-size: 11.5px; color: var(--ink-3); }
.search-hit__price { font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 10px 7px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}
.search__all .i { width: 15px; height: 15px; }
.search__empty { padding: 14px 12px; font-size: 13px; color: var(--ink-3); }
.search__empty a { color: var(--accent); text-decoration: underline; }

.header__actions { display: flex; align-items: center; gap: 2px; flex: none; }
.header__cta { margin-left: 8px; }
.header__fav { display: inline-flex; }

/* -------------------------------- подвал -------------------------------- */

.site-footer {
  margin-top: 20px;
  background: var(--dark);
  color: #cfc4b2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer__about p { margin: 18px 0 22px; font-size: 13.5px; line-height: 1.7; color: #a99d8c; max-width: 34ch; }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #e8ddca;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.socials .i { width: 18px; height: 18px; }

.footer__col h3 {
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #8d8272;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { font-size: 13.5px; color: #c6bbaa; transition: color 0.18s; }
.footer__col a:hover { color: #fff; }
.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #c6bbaa;
  line-height: 1.5;
}
.footer__contacts .i { width: 16px; height: 16px; margin-top: 3px; opacity: 0.6; }
.footer__contacts a { display: inline-flex; align-items: center; gap: 9px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #8d8272;
}
.footer__bottom p { margin: 0; }
.pay { display: flex; gap: 6px; }
.pay__item {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #c6bbaa;
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: #fff; }

/* ------------------------------- шторки --------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(21, 19, 15, 0.45);
  backdrop-filter: blur(2px);
  animation: fade 0.25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(432px, 100%);
  height: 100%;
  background: var(--surface);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, 0.55);
  transform: translateX(104%);
  transition: transform 0.42s var(--ease);
  outline: none;
}
.drawer--menu {
  left: 0;
  right: auto;
  width: min(390px, 92%);
  transform: translateX(-104%);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--paper); }

.drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 260px;
  text-align: center;
  color: var(--ink-3);
}
.drawer__empty .i { width: 40px; height: 40px; opacity: 0.35; margin-bottom: 6px; }
.drawer__empty p { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.drawer__empty span { font-size: 13px; max-width: 26ch; }

.cart-lines { display: grid; gap: 16px; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; }
.cart-line__art {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-2) center / cover no-repeat;
}
.cart-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-line__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cart-line__title:hover { color: var(--accent); }
.cart-line__meta { font-size: 11.5px; color: var(--ink-3); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cart-line__row b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cart-line__remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cart-line__remove:hover { background: rgba(163, 66, 58, 0.1); color: var(--danger); }
.cart-line__remove .i { width: 15px; height: 15px; }

.drawer__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.drawer__sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.drawer__sum--muted { color: var(--ink-3); font-size: 12.5px; margin-bottom: 14px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.qty button:hover { background: var(--paper-2); color: var(--ink); }
.qty .i { width: 15px; height: 15px; }
.qty span { min-width: 34px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty--sm { border-radius: 7px; }
.qty--sm button { width: 28px; height: 28px; }
.qty--sm .i { width: 13px; height: 13px; }
.qty--sm span { min-width: 24px; font-size: 12.5px; }

/* мобильное меню */
.search--drawer { width: 100%; margin-bottom: 20px; }
.search--drawer .search__results { min-width: 0; left: 0; right: 0; }
.menu-nav { display: grid; }
.menu-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  transition: color 0.18s, padding-left 0.18s;
}
.menu-nav__link:hover { color: var(--accent); padding-left: 6px; }
.menu-nav__link small { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); }
.drawer__contact { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer__contact a { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.drawer__contact p { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* -------------------------------- тосты --------------------------------- */

.toasts {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #f7f1e5;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in 0.32s var(--ease);
  transition: opacity 0.4s, transform 0.4s;
}
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e9c98d;
}
.toast__icon .i { width: 13px; height: 13px; }
.toast--error .toast__icon { color: #f0b6ae; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------- утилиты -------------------------------- */

.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;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-2); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
