/* ==========================================================================
   Second Music: общие стили
   Радиусы: карточки 24/18, панели 32, кнопки и чипы всегда «пилюли», поля 14.
   Акцент один: жёлтый. Текст на жёлтом всегда тёмный.
   ========================================================================== */

@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('../fonts/sofia-sans-extra-condensed-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('../fonts/sofia-sans-extra-condensed-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; src: url('../fonts/sofia-sans-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans'; src: url('../fonts/sofia-sans-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-cyrillic.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20BD, U+2212; }

:root {
  --bg: #f2f1ed;
  --bg-2: #e8e7e1;
  --surface: #fbfbf9;
  --surface-2: #ffffff;
  --ink: #131312;
  --ink-2: #3d3c38;
  --ink-3: #66655f;
  --line: rgba(19, 19, 18, 0.1);
  --line-2: rgba(19, 19, 18, 0.18);
  --yellow: #ffc21a;
  --yellow-2: #ffd04a;
  --yellow-3: #f0ad00;
  --yellow-soft: #fff0c2;
  --paper: #fffdf5;
  --dark: #141413;
  --dark-2: #1f1f1d;
  --dark-3: #2b2b28;
  --on-dark: #f2f1ed;
  --on-dark-2: #b3b1a8;
  --danger: #b3261e;

  --shadow-1: 0 1px 2px rgba(48, 40, 16, 0.06), 0 10px 30px -14px rgba(48, 40, 16, 0.22);
  --shadow-2: 0 2px 6px rgba(48, 40, 16, 0.06), 0 40px 80px -36px rgba(48, 40, 16, 0.42);
  --shadow-tag: 0 1px 1px rgba(48, 40, 16, 0.08), 0 14px 28px -12px rgba(48, 40, 16, 0.35);

  --r-panel: 32px;
  --r-card: 24px;
  --r-inner: 18px;
  --r-field: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1440px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --section: clamp(52px, 6vw, 92px);

  --f-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Sofia Sans', -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;

  --nav-h: 64px;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; overflow-x: clip; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--yellow); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(36px, 4.5vw, 64px); }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 850; letter-spacing: -0.005em; }
.h1 { font-size: clamp(3.3rem, 7.4vw, 7.6rem); line-height: 0.86; font-weight: 900; }
.h2 { font-size: clamp(2.7rem, 5.4vw, 5.25rem); line-height: 0.88; }
.h3 { font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 0.95; font-weight: 800; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.hand { font-family: var(--f-hand); font-weight: 600; }
.nums { font-variant-numeric: tabular-nums; }

/* Жёлтый маркер под словом. */
.marker { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.marker::before {
  content: ''; position: absolute; z-index: -1; left: -0.06em; right: -0.08em; bottom: 0.06em; height: 0.42em;
  background: var(--yellow); border-radius: 0.08em 0.3em 0.12em 0.25em; transform: skewX(-8deg) rotate(-1deg);
  transform-origin: left center;
}
html.js .marker[data-draw]::before { transform: skewX(-8deg) rotate(-1deg) scaleX(0); transition: transform 0.9s var(--ease) 0.5s; }
html.js .marker[data-draw].is-drawn::before { transform: skewX(-8deg) rotate(-1deg) scaleX(1); }

/* ---------- icons ---------- */
.i { width: 22px; height: 22px; flex: none; fill: currentColor; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font: 650 16px/1 var(--f-body); letter-spacing: 0.005em; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.975); }
.btn--icon { padding-right: 7px; }
.btn__ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  transition: transform 0.55s var(--ease-spring);
}
.btn:hover .btn__ico { transform: translate(3px, -1px) scale(1.06); }
.btn__ico .i { width: 20px; height: 20px; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 10px 24px -12px rgba(160, 110, 0, 0.55); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--primary .btn__ico { background: var(--ink); color: var(--yellow); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #2a2a27; }
.btn--dark .btn__ico { background: var(--yellow); color: var(--ink); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost .btn__ico { background: var(--ink); color: var(--bg); }
.btn--ghost:hover .btn__ico { background: var(--yellow); color: var(--ink); }
.btn--light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(242, 241, 237, 0.28); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--sm.btn--icon { padding-right: 5px; }
.btn--sm .btn__ico { width: 34px; height: 34px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.icon-btn:hover { background: rgba(19, 19, 18, 0.06); }
.icon-btn:active { transform: scale(0.92); }

.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font: 800 12px/20px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--surface);
}
.badge.is-bump { animation: bump 0.6s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.chip[aria-pressed='true'], .chip[aria-selected='true'], .chip.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .count { font-weight: 700; opacity: 0.55; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow .i { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- topbar ---------- */
.topbar { font-size: 14px; color: var(--ink-2); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 42px; }
.topbar p { display: flex; align-items: center; gap: 10px; }
.topbar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.topbar__contacts { gap: 22px !important; font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.open-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.18); }
.open-status.is-closed::before { background: var(--ink-3); box-shadow: 0 0 0 3px rgba(19, 19, 18, 0.08); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 10px; z-index: 60; }
.nav__bar {
  position: relative; display: flex; align-items: center; gap: 14px; height: var(--nav-h); padding: 0 10px 0 20px;
  border-radius: 999px; background: rgba(251, 251, 249, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px -22px rgba(48, 40, 16, 0.45);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgba(251, 251, 249, 0.9); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px -20px rgba(48, 40, 16, 0.5); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 40px; height: 40px; transition: transform 0.6s var(--ease-spring); }
.logo:hover .logo__mark { transform: rotate(-8deg); }
.logo__word { font: 900 26px/0.8 var(--f-display); letter-spacing: 0.005em; text-transform: uppercase; }
.logo__word > span { display: block; }

.nav__catalog {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 650; margin-left: 10px;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.nav__catalog:hover { background: #2a2a27; }
.nav__catalog:active { transform: scale(0.97); }
.nav__catalog[aria-expanded='true'] { background: var(--yellow); color: var(--ink); }
.grid-ico { width: 16px; height: 16px; position: relative; display: inline-block; }
.grid-ico i { position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease), opacity 0.3s; }
.grid-ico i:nth-child(1) { top: 3px; }
.grid-ico i:nth-child(2) { top: 7px; width: 10px; }
.grid-ico i:nth-child(3) { top: 11px; }
[aria-expanded='true'] > .grid-ico i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
[aria-expanded='true'] > .grid-ico i:nth-child(2) { opacity: 0; transform: translateX(-6px); }
[aria-expanded='true'] > .grid-ico i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.search { position: relative; flex: 1; max-width: 420px; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; border: 0; border-radius: 999px; padding: 0 44px 0 46px;
  background: rgba(19, 19, 18, 0.05); font-size: 15px; outline: none;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 12px/1 var(--f-body); color: var(--ink-3); padding: 5px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2);
}
.search input:focus ~ kbd { opacity: 0; }
.search__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 5;
  background: var(--surface-2); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  max-height: min(70vh, 460px); overflow: auto;
}
.suggest__item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.suggest__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.suggest__item b { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.suggest__item small { color: var(--ink-3); font-size: 13px; }
.suggest__item .price { font-weight: 750; font-size: 15px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--bg); }
.suggest__all { display: block; padding: 12px; text-align: center; font-weight: 650; border-radius: 14px; }
.suggest__all:hover { background: var(--bg); }
.suggest__empty { padding: 18px; color: var(--ink-3); font-size: 15px; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.nav__links a:hover { background: rgba(19, 19, 18, 0.05); color: var(--ink); }
.nav__links a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; padding-inline: 2px; margin-inline: 12px; }
.nav__actions { display: flex; align-items: center; gap: 2px; }
.nav__cart {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  font-weight: 650; font-size: 15px; transition: background-color 0.25s;
}
.nav__cart:hover { background: rgba(19, 19, 18, 0.06); }
.nav__cart .badge { top: 1px; left: 26px; right: auto; }
.nav__burger { display: none; }

/* мега-меню каталога */
.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 10px);
  border-radius: var(--r-panel); background: var(--surface-2); padding: 14px;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 1fr 320px; gap: 14px;
  transform-origin: top center;
}
html.js .mega { opacity: 0; transform: translateY(-8px) scale(0.985); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
html.js .mega.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mega__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mega__cat {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 20px; background: var(--bg); transition: background-color 0.3s var(--ease);
}
.mega__cat img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; transition: transform 0.6s var(--ease); }
.mega__cat:hover { background: var(--yellow-soft); }
.mega__cat:hover img { transform: scale(1.05) rotate(-2deg); }
.mega__cat b { display: block; font: 800 1.55rem/0.95 var(--f-display); text-transform: uppercase; }
.mega__cat small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; line-height: 1.3; }
.mega__cat em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.mega__side { border-radius: 22px; background: var(--ink); color: var(--on-dark); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mega__title { font: 800 1.4rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; }
.mega__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.mega__quick a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(242, 241, 237, 0.2); transition: background-color 0.25s, color 0.25s; }
.mega__quick a:hover { background: var(--yellow); color: var(--ink); box-shadow: none; }
.mega__side .btn { margin-top: auto; }
html.js .mega .mega__cat, html.js .mega .mega__side > * { opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
html.js .mega.is-open .mega__cat, html.js .mega.is-open .mega__side > * { opacity: 1; transform: none; }
.mega-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(19, 19, 18, 0.18); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.mega-scrim.is-open { opacity: 1; pointer-events: auto; }

/* мобильное меню */
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.5s var(--ease), opacity 0.3s, top 0.5s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
[aria-expanded='true'] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
[aria-expanded='true'] .burger i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
[aria-expanded='true'] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 58; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 30px) var(--gutter) 32px;
  background: rgba(242, 241, 237, 0.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.mmenu .search { max-width: none; }
.mmenu .search input { height: 52px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.mmenu__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmenu__cats a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 15px; line-height: 1.15; }
.mmenu__cats img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex: none; }
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a { font: 850 2.6rem/1.05 var(--f-display); text-transform: uppercase; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; }
.mmenu__links a .i { width: 26px; height: 26px; color: var(--ink-3); }
.mmenu__contacts { margin-top: auto; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.mmenu__contacts a { font-weight: 650; color: var(--ink); }
.mmenu .reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.mmenu.is-open .reveal-item { opacity: 1; transform: none; }
.mmenu.is-open .reveal-item:nth-child(2) { transition-delay: 0.05s; }
.mmenu.is-open .reveal-item:nth-child(3) { transition-delay: 0.1s; }
.mmenu.is-open .reveal-item:nth-child(4) { transition-delay: 0.15s; }
.mmenu.is-open .reveal-item:nth-child(5) { transition-delay: 0.2s; }
body.is-locked { overflow: hidden; }

/* ---------- product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-card); padding: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease), transform 0.6s var(--ease);
}
.pcard:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); transform: translateY(-3px); }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: var(--r-inner); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__off {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font: 800 19px/1 var(--f-display); letter-spacing: 0.02em; color: var(--yellow); background: var(--ink);
  padding: 7px 10px 6px; border-radius: 999px;
}
.pcard__show {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650; padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(251, 251, 249, 0.95);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.pcard__show .i { width: 15px; height: 15px; }
.pcard:hover .pcard__show, .pcard:focus-within .pcard__show { opacity: 1; transform: none; }
.pcard__fav {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251, 251, 249, 0.92); color: var(--ink);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3); transition: transform 0.45s var(--ease-spring), background-color 0.25s;
}
.pcard__fav:hover { transform: scale(1.1); }
.pcard__fav .i { width: 20px; height: 20px; }
.pcard__fav .i-on { display: none; }
.pcard__fav[aria-pressed='true'] .i-on { display: block; color: var(--ink); }
.pcard__fav[aria-pressed='true'] .i-off { display: none; }
.pcard__fav[aria-pressed='true'] { background: var(--yellow); }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 10px; flex: 1; }
.pcard__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pcard__title { font: 750 1.06rem/1.25 var(--f-body); letter-spacing: -0.005em; }
.pcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard__note { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price b { font: 800 1.62rem/1 var(--f-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.price s { font-size: 14px; color: var(--ink-3); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.pcard__cart {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  transition: transform 0.5s var(--ease-spring), background-color 0.25s;
}
.pcard__cart:hover { background: var(--yellow-2); transform: rotate(-8deg) scale(1.06); }
.pcard__cart:active { transform: scale(0.92); }
.pcard__cart[aria-pressed='true'] { background: var(--ink); color: var(--yellow); }
.pcard__cart .i-on { display: none; }
.pcard__cart[aria-pressed='true'] .i-on { display: block; }
.pcard__cart[aria-pressed='true'] .i-off { display: none; }

/* точки дефектов на карточке */
.pcard__dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pcard__dots i {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px rgba(19, 19, 18, 0.85), 0 0 0 7px rgba(255, 194, 26, 0.35);
  opacity: 0; transform: scale(0.3); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-spring);
}
.pcard:hover .pcard__dots i { opacity: 1; transform: none; }
.pcard:hover .pcard__dots i:nth-child(2) { transition-delay: 0.08s; }
.pcard:hover .pcard__dots i:nth-child(3) { transition-delay: 0.16s; }

/* индикатор уровня дефекта */
.grade { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.grade__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.grade__bars i { width: 4px; border-radius: 1px; background: var(--line-2); }
.grade__bars i:nth-child(1) { height: 5px; }
.grade__bars i:nth-child(2) { height: 9px; }
.grade__bars i:nth-child(3) { height: 13px; }
.grade--A .grade__bars i, .grade--B .grade__bars i:nth-child(-n + 2), .grade--C .grade__bars i:nth-child(1) { background: var(--ink); }
.on-dark .grade { color: var(--on-dark); }
.on-dark .grade__bars i { background: rgba(242, 241, 237, 0.25); }
.on-dark .grade--A .grade__bars i, .on-dark .grade--B .grade__bars i:nth-child(-n + 2), .on-dark .grade--C .grade__bars i:nth-child(1) { background: var(--yellow); }

/* ---------- paper tag (бирка) ---------- */
/* Обёртка даёт тень, внутренний слой режется по форме бирки с дыркой. */
.tag { --w: 230px; position: relative; display: block; width: var(--w); color: var(--ink); filter: drop-shadow(0 14px 16px rgba(48, 40, 16, 0.24)) drop-shadow(0 1px 1px rgba(48, 40, 16, 0.14)); }
.tag__paper {
  position: relative; display: block; padding: 40px 20px 20px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(170deg, #fffef8, #fbf6e6 70%, #f6efd8);
  border-radius: 6px 6px 14px 14px;
  clip-path: polygon(26px 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%, 0 26px);
  -webkit-mask: radial-gradient(circle 6px at 50% 19px, transparent 97%, #000 100%);
  mask: radial-gradient(circle 6px at 50% 19px, transparent 97%, #000 100%);
}
.tag__paper::before { /* металлическое кольцо вокруг дырки */
  content: ''; position: absolute; left: 50%; top: 19px; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(190, 160, 80, 0.6), inset 0 0 0 4.5px rgba(120, 95, 30, 0.22);
}
.tag__paper::after { /* лёгкие волокна бумаги */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .35 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.tag__brand, .tag__title, .tag__note { display: block; }
.tag__brand { font: 800 13px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tag__title { margin-top: 6px; font: 850 1.5rem/0.95 var(--f-display); text-transform: uppercase; }
.tag__note { margin-top: 10px; font: 600 1.35rem/1.08 var(--f-hand); color: #23324d; transform: rotate(-1.5deg); }
.tag__prices { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tag__prices s { font: 600 1.2rem/1 var(--f-hand); color: #7a1f1f; text-decoration-thickness: 2px; }
.tag__prices b { position: relative; z-index: 0; font: 900 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tag__prices b::before { content: ''; position: absolute; z-index: -1; left: -4px; right: -6px; bottom: 2px; height: 0.5em; background: var(--yellow); transform: skewX(-10deg) rotate(-1.5deg); border-radius: 3px; }
.tag-string { position: absolute; pointer-events: none; overflow: visible; }
.tag-string path { fill: none; stroke: #8a7a55; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > span, .field > label { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 54px; padding: 0 18px; border: 0; border-radius: var(--r-field);
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 16px; outline: none;
  transition: box-shadow 0.25s var(--ease);
}
.textarea { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: #8b8a83; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1.5px rgba(19, 19, 18, 0.32); }
.input:focus, .select:focus, .textarea:focus { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(255, 194, 26, 0.5); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23131312' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 16px center; padding-right: 46px; }
.field.is-invalid .input, .field.is-invalid .textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field__error { font-size: 13.5px; color: var(--danger); font-weight: 600; }
.field__hint { font-size: 13.5px; color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface-2); display: grid; place-items: center; transition: background-color 0.2s, box-shadow 0.2s; cursor: pointer; }
.check input::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform 0.35s var(--ease-spring); }
.check input:checked { background: var(--yellow); box-shadow: none; }
.check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.radio-card { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow 0.25s var(--ease), background-color 0.25s; }
.radio-card:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.radio-card input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 0.3s var(--ease); cursor: pointer; }
.radio-card input:checked { box-shadow: inset 0 0 0 7px var(--ink); }
.radio-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.radio-card b { display: block; font-weight: 700; }
.radio-card small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.radio-card em { font-style: normal; font-weight: 750; white-space: nowrap; }

/* ---------- dialog ---------- */
.modal { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(19, 19, 18, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.55s var(--ease-2); }
.modal[open]::backdrop { animation: fade-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__shell { border-radius: var(--r-panel); background: rgba(255, 255, 255, 0.5); padding: 6px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); }
.modal__core { position: relative; border-radius: calc(var(--r-panel) - 6px); background: var(--surface); padding: clamp(22px, 4vw, 36px); max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; }
.modal__close { position: absolute; right: 14px; top: 14px; }
.modal h2 { font: 900 clamp(2rem, 4vw, 2.6rem)/0.92 var(--f-display); text-transform: uppercase; padding-right: 40px; }
.modal__sub { margin-top: 10px; color: var(--ink-2); }
.modal form { margin-top: 24px; display: grid; gap: 16px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots label { position: relative; }
.slots input { position: absolute; opacity: 0; pointer-events: none; }
.slots span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; height: 58px; padding: 0 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; line-height: 1.1; cursor: pointer; transition: all 0.25s var(--ease); }
.slots span small { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: lowercase; }
.slots label:hover span { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.slots input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.slots input:checked + span small { color: var(--on-dark-2); }
.slots input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.slots--time span { height: 44px; min-width: 72px; }
.slots[data-days] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.slots[data-days]::-webkit-scrollbar { display: none; }
.slots[data-days] label { flex: 1 0 auto; }
.slots[data-days] span { width: 100%; min-width: 54px; padding: 0 8px; font-size: 14px; }
.success { text-align: center; padding: 10px 0; }
.success__ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.success__ico .i { width: 36px; height: 36px; }
.success h2 { padding: 0; }
.success p { margin-top: 10px; color: var(--ink-2); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 120; display: grid; gap: 10px; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; border-radius: 20px; background: var(--ink); color: var(--on-dark); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.6s var(--ease-2);
}
.toast.is-out { animation: toast-out 0.35s var(--ease) forwards; }
.toast img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.toast__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.toast b { display: block; font-size: 15px; font-weight: 700; }
.toast small { display: block; font-size: 13px; color: var(--on-dark-2); line-height: 1.3; }
.toast a { padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; background: var(--yellow); color: var(--ink); white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(0.97); } }

/* ---------- fly-to-cart ---------- */
.flyer { position: fixed; z-index: 150; pointer-events: none; border-radius: 16px; object-fit: cover; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45); }

/* ---------- footer ---------- */
.footer { margin-top: var(--section); background: var(--dark); color: var(--on-dark); border-radius: var(--r-panel) var(--r-panel) 0 0; overflow: hidden; position: relative; }
.footer a:hover { color: var(--yellow); }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-block: 72px 56px; }
.footer__lead { display: grid; gap: 22px; align-content: start; max-width: 360px; }
.footer__lead p { color: var(--on-dark-2); }
.footer__h { font: 700 13px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; list-style: none; padding: 0; font-weight: 550; }
.footer__contacts li { color: var(--on-dark-2); }
.footer__contacts a { color: var(--on-dark); font-weight: 650; }
.footer__word { font: 900 clamp(4rem, 18.3vw, 19rem)/0.74 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; color: var(--dark-3); user-select: none; margin-bottom: -0.1em; text-align: center; }
.footer__word span { color: var(--yellow); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(242, 241, 237, 0.1); font-size: 14px; color: var(--on-dark-2); position: relative; z-index: 1; }
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .logo__word { font-size: 30px; }

/* ---------- misc ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); padding-top: 28px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .i { width: 14px; height: 14px; opacity: 0.6; }
.divider { height: 1px; background: var(--line); border: 0; }
.empty { text-align: center; padding: clamp(40px, 7vw, 90px) 20px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.empty__art { width: 120px; margin: 0 auto 22px; }
.empty h3, .empty .empty__title { font: 900 clamp(2rem, 4vw, 3rem)/0.9 var(--f-display); text-transform: uppercase; }
.empty p { margin: 12px auto 24px; max-width: 42ch; color: var(--ink-2); }

/* ---------- reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.js [data-reveal='fade'] { transform: none; }
html.js [data-reveal='scale'] { transform: scale(0.96); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.line-mask > span { display: block; }
html.js [data-split] .line-mask > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 80ms); }
html.js [data-split].is-in .line-mask > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-split] .line-mask > span { opacity: 1 !important; transform: none !important; }
  html.js .marker[data-draw]::before { transform: skewX(-8deg) rotate(-1deg) !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .search { max-width: none; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .mega { grid-template-columns: 1fr; }
  .mega__cats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .topbar__contacts { display: none !important; }
  .topbar__in { justify-content: center; min-height: 38px; font-size: 13px; }
  .topbar .topbar__addr { display: none; }
  .nav { top: 8px; }
  .nav__bar { padding: 0 6px 0 14px; gap: 6px; }
  .nav__catalog, .nav__bar > .search, .nav__cart-label, .nav__fav { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__cart { padding: 0; width: 46px; justify-content: center; }
  .nav__cart .badge { left: auto; right: 0; }
  .nav__burger { display: grid; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__word { font-size: 23px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega, .mega-scrim { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pgrid { gap: 10px; }
  .pcard { border-radius: 20px; padding: 5px; }
  .pcard__media { border-radius: 15px; aspect-ratio: 4 / 4.8; }
  .pcard__body { padding: 10px 6px 6px; gap: 6px; }
  .pcard__title { font-size: 0.95rem; }
  .pcard__note { font-size: 13px; -webkit-line-clamp: 2; }
  .pcard__meta .grade span { display: none; }
  .pcard__meta { font-size: 12px; }
  .price b { font-size: 1.35rem; }
  .price s { font-size: 12.5px; }
  .pcard__cart { width: 42px; height: 42px; }
  .pcard__cart .i { width: 20px; height: 20px; }
  .pcard__off { font-size: 16px; padding: 6px 8px 5px; left: 8px; top: 8px; }
  .pcard__fav { width: 36px; height: 36px; right: 11px; top: 11px; }
  .pcard__show { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 40px; }
  .btn { --h: 54px; }
  .toasts { bottom: 12px; }
}
@media (max-width: 370px) {
  .pgrid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .pcard__dots i { opacity: 1; transform: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 2px rgba(19, 19, 18, 0.85); }
  .pcard:hover { transform: none; }
}

/* ---------- точки дефектов на фото ---------- */
.hotspots { position: absolute; inset: 0; z-index: 2; }
.hotspot { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; display: grid; place-items: center; }
.hotspot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 194, 26, 0.5); animation: hs-pulse 2.4s var(--ease) infinite; animation-delay: var(--pd, 0s); }
@keyframes hs-pulse { 0% { transform: scale(0.45); opacity: 1; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.hotspot__dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink), 0 6px 14px rgba(0, 0, 0, 0.4); transition: transform 0.45s var(--ease-spring); }
.hotspot:hover .hotspot__dot, .hotspot.is-active .hotspot__dot, .hotspot:focus-visible .hotspot__dot { transform: scale(1.3); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hotspot__dot { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow); }
.hotspot__card {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 3; width: 250px; text-align: left;
  padding: 13px 15px; border-radius: 16px; background: var(--ink); color: var(--on-dark);
  font: 400 14px/1.42 var(--f-body); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px) scale(0.97); transform-origin: 50% 100%;
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.hotspot__card b { display: block; margin-bottom: 4px; color: var(--yellow); font-weight: 750; font-size: 15px; }
.hotspot.is-below .hotspot__card { bottom: auto; top: calc(100% + 8px); transform-origin: 50% 0; }
.hotspot.is-left .hotspot__card { left: -6px; transform: translate(0, 8px) scale(0.97); }
.hotspot.is-right .hotspot__card { left: auto; right: -6px; transform: translate(0, 8px) scale(0.97); }
.hotspot:hover .hotspot__card, .hotspot.is-active .hotspot__card, .hotspot:focus-visible .hotspot__card { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hotspot.is-left:hover .hotspot__card, .hotspot.is-left.is-active .hotspot__card, .hotspot.is-left:focus-visible .hotspot__card,
.hotspot.is-right:hover .hotspot__card, .hotspot.is-right.is-active .hotspot__card, .hotspot.is-right:focus-visible .hotspot__card { transform: translate(0, 0) scale(1); }
.hotspot:hover, .hotspot.is-active, .hotspot:focus-visible { z-index: 4; }
html.js .hotspots:not(.is-in) .hotspot { opacity: 0; transform: scale(0.2); }
.hotspots .hotspot { transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-spring); transition-delay: calc(var(--i, 0) * 140ms); }
@media (max-width: 600px) { .hotspot__card { width: 210px; font-size: 13.5px; } }

/* ---------- form bits ---------- */
.fset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fset legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-product { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 18px; background: var(--bg); }
.bk-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.bk-product b { display: block; font-weight: 700; line-height: 1.25; }
.bk-product small { color: var(--ink-3); font-weight: 650; font-size: 14px; }
.slots input:disabled + span { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .slots span { min-width: 56px; } }
html:not(.js) .mega, html:not(.js) .mega-scrim { display: none; }
.nav > .container { position: relative; }
.mega { left: var(--gutter); right: var(--gutter); }

/* ---------- switch ---------- */
.switch { appearance: none; position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: background-color 0.3s var(--ease); }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.45s var(--ease-spring); }
.switch:checked { background: var(--ink); box-shadow: none; }
.switch:checked::after { transform: translateX(20px); background: var(--yellow); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Формы-сетки не должны расширяться от длинных рядов (лента дней, длинные select). */
.modal form, .visit__form, .wl__form, .checkout, .co-step { grid-template-columns: minmax(0, 1fr); }
[data-visit-slots] { display: grid; gap: 18px; min-width: 0; }
.slots--time { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slots--time span { width: 100%; min-width: 0; }
/* Страницы, которые дорисовывает JS: держим подвал за первым экраном, чтобы не было сдвига. */
.catalog, .product, .cart { min-height: 100svh; }
