/* manrope-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(data:font/woff2;base64,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) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* manrope-cyrillic-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* manrope-greek-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-greek-wght-normal-DL7QRZyv.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* manrope-vietnamese-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* manrope-latin-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* manrope-latin-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-latin-wght-normal-DHIcAJRg.woff2) format('woff2-variations');
  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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* cormorant-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-cyrillic-ext-wght-normal-Bbszbot-.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-cyrillic-wght-normal */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-cyrillic-wght-normal-C1_dtFTU.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-vietnamese-wght-normal */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-vietnamese-wght-normal-D6rXIIam.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-latin-ext-wght-normal */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-latin-ext-wght-normal-Bzx46pNl.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-latin-wght-normal */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-latin-wght-normal-D7itQ8IL.woff2) format('woff2-variations');
  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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* cormorant-cyrillic-ext-wght-italic */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-cyrillic-ext-wght-italic-C5biRwSG.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* cormorant-cyrillic-wght-italic */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-cyrillic-wght-italic-C6Ut3NuG.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* cormorant-vietnamese-wght-italic */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-vietnamese-wght-italic-hT8XndtS.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* cormorant-latin-ext-wght-italic */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-latin-ext-wght-italic-BGlHoNQB.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* cormorant-latin-wght-italic */
@font-face {
  font-family: 'Cormorant Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/cormorant-latin-wght-italic-BMf3v8-7.woff2) format('woff2-variations');
  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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Дизайн-токены «Везу Еду». Брейкпоинты (CSS не умеет var в media): планшет 720px, десктоп 1080px — те же значения в lib/breakpoints.ts */
:root {
  --font-display: 'Cormorant Variable', 'Cormorant', Georgia, serif;
  --font-ui: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --color-paper: #f3eee1;
  --color-paper-deep: #e9e1cd;
  --color-cream: #fbf8ef;
  --color-ink: #1d2a20;
  --color-product-title: #171917;
  --color-product-option: #72766e;
  --color-product-option-bg: rgb(29 42 32 / 5%);
  --color-ink-soft: #4a5a4d;
  --color-ink-mute: #7d8a7f;
  --color-line: rgb(29 42 32 / 12%);

  --color-forest-950: #0f2619;
  --color-forest-900: #1b3a29;
  --color-forest-800: #264d36;
  --color-forest-700: #356245;
  --color-moss-500: #66854f;
  --color-sage-400: #8fa886;
  --color-sage-200: #cdd9c0;
  --color-sage-100: #e2eadb;
  --color-wheat-500: #f7931e;
  --color-wheat-300: #ffc266;
  --color-wheat-100: #ffe8c8;
  --color-clay-500: #e8692c;
  --color-clay-100: #fde3d3;
  --color-berry-600: #8a3a4a;
  --color-danger: #a8402f;
  --color-danger-soft: #f3d9d3;
  --color-success: #3f7a4c;
  --color-white: #fff;

  --art-1: #d6e2c8;
  --art-2: #a7bf94;
  --art-3: #6d8f5a;
  --art-4: #f7931e;
  --art-5: #8a5a36;
  --art-6: #ffe8c8;
  --art-7: #e8692c;
  --art-8: #7a2f3d;

  --glass-bg: rgb(251 248 239 / 58%);
  --glass-bg-dark: rgb(27 58 41 / 66%);
  --glass-border: rgb(255 255 255 / 55%);
  --glass-blur: 40px;
  --glass-bg-strong: rgb(251 248 239 / 92%);
  --glass-blur-strong: 44px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-xl: 18px;
  --radius-blob: 14px;
  --radius-pill: 12px;

  --shadow-soft: 0 1px 2px rgb(15 38 25 / 6%), 0 8px 24px -12px rgb(15 38 25 / 22%);
  --shadow-lift: 0 2px 4px rgb(15 38 25 / 8%), 0 22px 44px -18px rgb(15 38 25 / 38%);
  --shadow-float: 0 10px 40px -8px rgb(15 38 25 / 45%);

  --text-xs: 0.75rem;
  --text-s: 0.875rem;
  --text-product-title: 0.8125rem;
  --text-m: 1rem;
  --text-l: 1.25rem;
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --text-2xl: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  --text-hero: clamp(2.5rem, 1rem + 3.9vw, 4.7rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 160ms;
  --duration-base: 320ms;
  --duration-slow: 700ms;

  --z-base: 1;
  --z-sticky: 20;
  --z-search: 50;
  --z-tabbar: 40;
  --z-sheet: 60;
  --z-toast: 80;
  --z-fly: 90;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: 68px;
  --category-rail-height: 69px;
  --category-chip-width: 168px;
  --category-rail-icon: 42px;
  --category-fade-width: 40px;
  --category-back-width: 112px;
  --category-chip-height: 52px;
  --category-child-icon: 32px;
  --catalog-dock-height: calc(var(--tabbar-height) + var(--space-3) + var(--space-1) + var(--category-rail-height) + var(--safe-bottom));
  --header-height: 72px;
  --content-width: 1440px;
  --gutter: 6px;
  --grid-gap: 6px;
  --product-option-height: 24px;
  --product-option-max-width: 88%;
  --product-counter-size: 28px;
  --product-counter-quantity-width: 1.8em;
  --variant-menu-min-width: 224px;
  --variant-menu-width: 280px;
  --variant-menu-height: 224px;
  --variant-menu-min-height: 112px;
  --search-panel-max-height: 560px;
  --variant-menu-option-height: 36px;
  --product-title-leading: 1.3;
  --glass-bar-bg: rgb(205 217 192 / 52%);
  --glass-bar-border: rgb(255 255 255 / 60%);
  --glass-saturate: 1.8;
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 70%);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-m);
  line-height: 1.5;
  color: var(--color-ink);
  background-color: var(--color-paper);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, var(--color-sage-100), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, var(--color-wheat-100), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .3  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#root { position: relative; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--color-wheat-500); outline-offset: 2px; border-radius: var(--radius-s); }
::selection { background: var(--color-wheat-300); color: var(--color-forest-950); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--color-moss-500); }
.display { font-family: var(--font-display); }
.muted { color: var(--color-ink-mute); }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }

.btn {
  --btn-bg: var(--color-forest-900);
  --btn-fg: var(--color-cream);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 42px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--text-s); letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-base) var(--ease-out), background var(--duration-base);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 22%) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.btn--gold { --btn-bg: var(--color-wheat-500); --btn-fg: var(--color-forest-950); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-forest-900); box-shadow: inset 0 0 0 1.5px var(--color-forest-900); }
.btn--soft { --btn-bg: var(--color-sage-100); --btn-fg: var(--color-forest-900); box-shadow: none; }
.btn--danger { --btn-bg: var(--color-danger-soft); --btn-fg: var(--color-danger); box-shadow: none; }
.btn--block { width: 100%; }
.btn--small { min-height: 38px; padding: 0 var(--space-4); }

.field { display: grid; gap: var(--space-1); }
.field > span:first-child { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-soft); }
.input {
  width: 100%; min-height: 50px; padding: 0 var(--space-4);
  border-radius: var(--radius-m);
  border: 1.5px solid var(--color-line);
  background: var(--color-cream);
  transition: border-color var(--duration-fast), box-shadow var(--duration-base);
}
textarea.input { padding-block: var(--space-3); min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--color-moss-500); box-shadow: 0 0 0 4px var(--color-sage-100); }
.input[aria-invalid='true'] { border-color: var(--color-danger); box-shadow: 0 0 0 4px var(--color-danger-soft); }
.field__error { color: var(--color-danger); font-size: var(--text-s); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 34px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-s); font-weight: 600; white-space: nowrap;
  transition: background var(--duration-base), color var(--duration-base), transform var(--duration-fast) var(--ease-spring);
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--color-forest-900); color: var(--color-cream); box-shadow: none; }

.skeleton {
  border-radius: var(--radius-m);
  background: linear-gradient(100deg, var(--color-paper-deep) 30%, var(--color-cream) 50%, var(--color-paper-deep) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.rise { animation: rise var(--duration-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.art { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  --art-bg-a: var(--color-sage-100); --art-bg-b: var(--color-sage-200); }
.art--wheat { --art-bg-a: var(--color-wheat-100); --art-bg-b: var(--color-wheat-300); }
.art--clay { --art-bg-a: var(--color-clay-100); --art-bg-b: #e3b99f; }
.art--moss { --art-bg-a: var(--color-sage-200); --art-bg-b: var(--color-sage-400); }
.art--cream { --art-bg-a: var(--color-cream); --art-bg-b: var(--color-paper-deep); }
.art--berry { --art-bg-a: #ecd3d8; --art-bg-b: #cf9ba6; }
.art::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, var(--art-bg-a), var(--art-bg-b)); }
.art__blob { position: absolute; width: 74%; aspect-ratio: 1; z-index: -1; border-radius: var(--radius-blob); background: rgb(255 255 255 / 38%); animation: blob 14s ease-in-out infinite alternate; }
.art__svg { width: 86%; height: 86%; transition: transform var(--duration-slow) var(--ease-spring); }
:is(.product-card, .tile):hover .art__svg { transform: translateY(-4px) scale(1.06) rotate(-3deg) !important; }
@keyframes blob { to { border-radius: 40% 60% 42% 58% / 58% 42% 60% 40%; transform: rotate(40deg) scale(1.06); } }
.art--photo { background: var(--color-paper-deep); }
.art--photo::before { display: none; }
.art__photo { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--crop-x, 50%) var(--crop-y, 50%); transform: scale(var(--crop-zoom, 1)); transition: transform 1.2s var(--ease-out); }
:is(.product-card, .tile):hover .art__photo { transform: scale(calc(var(--crop-zoom, 1) * 1.06)); }

.art--photo { position: relative; overflow: hidden; }
:root { --header-height: 60px; --sticky-top: calc(var(--header-height) + var(--safe-top) + 1px); }
.page { min-height: 70dvh; padding-bottom: calc(var(--tabbar-height) + var(--space-8) + var(--safe-bottom)); animation: rise var(--duration-base) var(--ease-out) both; }
.page--fixed { min-height: 0; height: calc(100dvh - var(--header-height) - var(--safe-top)); padding-bottom: 0; overflow: hidden; }
.page--catalog { padding-bottom: var(--catalog-dock-height); animation-name: fade; }
html.is-locked, html.is-locked body { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.page-pad { padding-top: var(--space-5); }

/* Шапка */
.header { position: sticky; top: 0; z-index: var(--z-sticky); padding-top: var(--safe-top);
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-bar-border); box-shadow: var(--glass-highlight), 0 8px 24px -16px rgb(15 38 25 / 30%); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: var(--space-4); }
.header:has(.header-search) { z-index: var(--z-search); }
.header-search { width: 100%; min-width: 0; }
.header-search__form { display: flex; align-items: center; gap: var(--space-2); }
.header-search__field { flex: 1; min-width: 0; min-height: var(--space-7); }
.header-search__form > .icon-btn { flex: none; }
.header-search__dropdown { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: var(--space-2); max-height: min(var(--search-panel-max-height), calc(100dvh - var(--header-height) - var(--safe-top) - var(--safe-bottom))); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-3) var(--gutter) var(--space-4); background: var(--color-cream); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-lift); }
.header-search__dropdown > * { width: 100%; max-width: var(--content-width); margin-inline: auto; }
.header__nav { display: none; gap: var(--space-1); }
.header__link { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-s); color: var(--color-ink-soft); transition: background var(--duration-base), color var(--duration-base); }
.header__link:hover { background: var(--color-sage-100); }
.header__link.active { background: var(--color-forest-900); color: var(--color-cream); }
.header__tools { display: flex; align-items: center; gap: var(--space-2); }
.header__cart { display: none; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--color-forest-900); color: var(--color-cream); font-weight: 700; font-size: var(--text-s); }
.header__count, .tabbar__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; background: var(--color-wheat-500); color: var(--color-forest-950); font-size: 0.72rem; font-weight: 800; animation: pop var(--duration-base) var(--ease-spring); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-s); transition: background var(--duration-base), transform var(--duration-fast) var(--ease-spring); }
.icon-btn:hover { background: var(--color-sage-100); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn--quiet { width: 36px; height: 36px; color: var(--color-ink-mute); }
.logo__mark { flex: none; border-radius: var(--radius-s); box-shadow: var(--shadow-soft); object-fit: cover; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); }
.logo__word { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.logo__word em { font-style: normal; color: var(--color-moss-500); font-weight: 600; }
.logo--light .logo__word { color: var(--color-cream); }
.logo--light .logo__word em { color: var(--color-wheat-300); }

/* Плавающий таб-бар */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: flex; justify-content: center; padding: 0 var(--space-4) calc(var(--space-3) + var(--safe-bottom)); pointer-events: none; transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-base); }
.tabbar--hidden { transform: translateY(140%); opacity: 0; }
.tabbar__glass { pointer-events: auto; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 460px); height: var(--tabbar-height); padding: var(--space-1); border-radius: var(--radius-pill);
  background: var(--glass-bar-bg); border: 1px solid var(--glass-bar-border); box-shadow: var(--shadow-float), var(--glass-highlight);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturate)); -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturate)); }
.tabbar__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: var(--space-2) 0 6px; border-radius: var(--radius-pill); color: var(--color-ink-soft); font-size: 0.68rem; font-weight: 700; transition: color var(--duration-base), background var(--duration-base), transform var(--duration-fast) var(--ease-spring); }
.tabbar__item:active { transform: scale(0.92); }
.tabbar__item.active { color: var(--color-cream); background: var(--color-forest-900); box-shadow: 0 6px 16px -6px rgb(15 38 25 / 55%); }
.tabbar__icon { position: relative; display: grid; place-items: center; }
.tabbar__badge { position: absolute; top: -8px; right: -14px; background: var(--color-wheat-500); color: var(--color-forest-950); }

/* Подвал */
.is-native .footer { display: none; }
@media (max-width: 719px) { .footer:not(.footer--mobile) { display: none; } }
.footer { background: var(--color-forest-950); color: var(--color-sage-400); padding: var(--space-4) 0 calc(var(--space-4) + var(--tabbar-height)); font-size: var(--text-xs); }
.footer__bottom { display: grid; gap: var(--space-1); text-align: center; }

/* Шторка */
.sheet-wrap { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(15 38 25 / 48%); backdrop-filter: blur(4px); animation: fade var(--duration-base) both; }
.sheet { position: relative; max-height: 88dvh; display: flex; flex-direction: column; background: var(--color-cream); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--space-2) var(--space-4) calc(var(--space-5) + var(--safe-bottom)); box-shadow: var(--shadow-float); animation: sheet-in var(--duration-slow) var(--ease-out) both; outline: none; }
.sheet--tall { height: 88dvh; }
.sheet__grip { width: 44px; height: 5px; border-radius: var(--radius-s); background: var(--color-line); margin: var(--space-2) auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { font-size: var(--text-xl); }
.sheet__body { margin-inline: -8px; padding-inline: 8px; overflow-y: auto; display: grid; gap: var(--space-4); align-content: start; padding-top: var(--space-3); }
.sheet__actions { display: grid; gap: var(--space-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* Уведомления */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-height) + var(--space-6) + var(--safe-bottom)); z-index: var(--z-toast); display: grid; justify-items: center; gap: var(--space-2); padding: 0 var(--space-4); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--space-3); max-width: 480px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); background: var(--glass-bg-dark); color: var(--color-cream); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow-float); font-size: var(--text-s); font-weight: 600; animation: toast-in var(--duration-base) var(--ease-spring) both; }
.toast--error { background: var(--color-danger); }
.toast button { color: var(--color-wheat-300); font-weight: 800; padding-left: var(--space-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }

/* Летящий в корзину листочек */
.fly { position: fixed; z-index: var(--z-fly); width: 44px; height: 44px; border-radius: var(--radius-s); pointer-events: none; background: var(--color-wheat-500) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2619' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 19C5 10 10 5 20 4c0 10-5 15-14 15ZM5 19c2-4 5-7 9-9'/></svg>") center / 24px no-repeat; box-shadow: var(--shadow-lift); }

@media (min-width: 720px) {
  .tabbar__glass { width: 520px; }
  .tabbar__item { font-size: 0.75rem; }
  
  .sheet-wrap { align-items: center; justify-items: center; }
  .sheet { width: min(560px, 92vw); border-radius: var(--radius-xl); padding-bottom: var(--space-5); }
  .sheet--tall { height: min(720px, 86dvh); }
  :root { --gutter: 10px; }
}
@media (min-width: 1080px) {
  :root { --header-height: 76px; }
  .header__bar { height: 76px; }
  .header__nav { display: flex; }
  .header__cart { display: inline-flex; }
  .tabbar { display: none; }
  .page { padding-bottom: var(--space-8); }
  .footer { padding-bottom: var(--space-6); }
  .toasts { bottom: var(--space-6); }
  :root { --gutter: 14px; }
}

/* Сетка товаров и карточка */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); transition: opacity var(--duration-base); }
.grid-products.is-stale { opacity: 0.55; }
.product-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-m); background: var(--color-cream); box-shadow: var(--shadow-soft); overflow: hidden; }
.product-card__media { position: relative; z-index: 1; }
.product-card__link { position: relative; display: block; }
.product-card__art { border-radius: 0; aspect-ratio: 1 / 1; }
.product-card__add { position: absolute; right: var(--space-2); bottom: 0; transform: translateY(50%); z-index: 1; }
.product-card__add:has(.add--on) { bottom: var(--space-1); transform: none; }
.product-card__add .add { border: 3px solid var(--color-white); box-sizing: content-box; box-shadow: var(--shadow-soft); }
.product-card__add .add--compact { min-height: 36px; min-width: 40px; }
.product-card__add .add--on.add--compact { min-height: var(--product-counter-size); font-size: var(--text-xs); }
.product-card__add .add--on button { width: var(--product-counter-size); height: var(--product-counter-size); }
.product-card__add .add__qty { min-width: var(--product-counter-quantity-width); }
.product-card__body { display: flex; flex-direction: column; gap: 5px; padding: var(--space-2) var(--space-2) var(--space-2); flex: 1; }
.product-card__priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--space-1); min-height: 1.7rem; padding-right: 52px; line-height: 1.2; }
.product-card__price { display: inline-flex; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-ink); }
.product-card__price .price { font-size: 1.2rem; }
.product-card__caption { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-mute); white-space: nowrap; }
.product-card__caption:empty { display: none; }
.product-card__name { margin: 0; font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; color: var(--color-product-title); min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.product-card__name a { color: inherit; text-decoration: none; }
.product-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--space-1); margin-top: auto; min-height: var(--product-option-height); min-width: 0; }
.product-card__tag { padding: 2px 8px; border-radius: var(--radius-s); background: var(--color-product-option-bg); color: var(--color-forest-800); font-size: var(--text-xs); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.product-card__ref { font-size: var(--text-xs); color: var(--color-product-option); font-variant-numeric: tabular-nums; }
.product-card__ref:empty { display: none; }
.product-card--incart { box-shadow: 0 0 0 2px var(--color-forest-800), var(--shadow-soft); }
.product-card--incart .product-card__priceline { padding-right: 0; }
.product-skeleton { display: grid; gap: var(--space-2); }
.badge { position: absolute; top: var(--space-3); left: var(--space-3); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--color-cream); color: var(--color-forest-900); box-shadow: var(--shadow-soft); }
.badge--hit { background: var(--color-wheat-500); }
.badge--new { background: var(--color-forest-900); color: var(--color-wheat-300); }

/* Кнопка добавления / счётчик */
.add { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-s); background: var(--color-forest-900); color: var(--color-cream); transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-base); }
button.add:active { transform: scale(0.92); }
.add--compact { min-width: 40px; padding: 0; }
.add--full { min-height: 52px; padding: 0 var(--space-6); font-size: var(--text-m); }
.add--on { background: var(--color-sage-100); color: var(--color-forest-900); padding: 0 var(--space-1); gap: 0; }
.add--on button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-s); }
.add--on button:hover { background: var(--color-sage-200); }
.add--on.add--full { padding: 0 var(--space-2); }
.add--on.add--full button { width: 44px; height: 44px; }
.add__qty { min-width: 2.4em; text-align: center; font-variant-numeric: tabular-nums; animation: pop var(--duration-base) var(--ease-spring); }
.add--off { background: var(--color-paper-deep); color: var(--color-ink-mute); font-size: var(--text-xs); padding: 0 var(--space-3); }

/* Поиск */
.searchbox { display: flex; align-items: center; gap: var(--space-3); min-height: 54px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--color-cream); box-shadow: inset 0 0 0 1.5px var(--color-line); color: var(--color-ink-mute); transition: box-shadow var(--duration-base); }
.searchbox:focus-within { box-shadow: inset 0 0 0 2px var(--color-moss-500), 0 0 0 5px var(--color-sage-100); }
.searchbox__input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--color-ink); }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.search-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-m); transition: background var(--duration-fast); }
.search-row:hover { background: var(--color-sage-100); }
.search-row__art { width: 52px; border-radius: var(--radius-s); flex: none; }
.search-row__name { flex: 1; font-weight: 600; font-size: var(--text-s); }
.search-empty { padding: var(--space-5) 0; text-align: center; }

/* Секции */
.section { padding-block: var(--space-6); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section__head h2 { font-size: var(--text-xl); margin-top: var(--space-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: var(--text-s); color: var(--color-moss-500); }
.link-quiet { color: var(--color-ink-mute); font-size: var(--text-s); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: var(--space-2) 0; }
.link-quiet--danger { color: var(--color-danger); }
.back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 40px; margin-bottom: var(--space-3); font-weight: 700; font-size: var(--text-s); color: var(--color-ink-soft); }

/* Пустые и ошибочные состояния */
.empty { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-8) var(--space-4); }
.empty h2 { font-size: var(--text-xl); }
.empty p { max-width: 36ch; }
.empty__icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: var(--radius-blob); background: var(--color-sage-100); color: var(--color-moss-500); animation: blob 9s ease-in-out infinite alternate; }

/* Баннеры и заметки */
.banner { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); margin-bottom: var(--space-4); font-size: var(--text-s); font-weight: 600; }
.banner > span { flex: 1; }
.banner--warn { background: var(--color-wheat-100); color: #6b5314; box-shadow: inset 0 0 0 1px var(--color-wheat-300); }
.note { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--color-sage-100); color: var(--color-forest-800); font-size: var(--text-s); }
.note svg { flex: none; margin-top: 2px; }

/* Корзина и итог */
.cart-layout { display: grid; gap: var(--space-5); align-items: start; }
.cart-list, .order-lines, .orders, .addr-list, .mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); }
.cart-line--bad { background: var(--color-danger-soft); box-shadow: inset 0 0 0 1px var(--color-danger); }
.cart-line__art { border-radius: var(--radius-m); }
.cart-line__main { display: grid; gap: 2px; align-content: start; min-width: 0; }
.cart-line__name { font-weight: 700; line-height: 1.3; }
.cart-line__warn { display: inline-flex; gap: var(--space-1); align-items: center; font-size: var(--text-xs); font-weight: 700; color: var(--color-danger); }
.cart-line__warn--price { color: #8a6a14; }
.cart-line__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.cart-line__ctrl { display: flex; align-items: center; gap: var(--space-2); }
.cart-aside { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--color-cream); box-shadow: var(--shadow-lift); }
.aside-title { font-size: var(--text-l); }
.mini-lines { gap: var(--space-2); font-size: var(--text-s); max-height: 220px; overflow: auto; }
.mini-lines li { display: flex; justify-content: space-between; gap: var(--space-3); }
.summary { display: grid; gap: var(--space-4); }
.summary__rows { margin: 0; display: grid; gap: var(--space-2); }
.summary__rows > div { display: flex; justify-content: space-between; gap: var(--space-4); }
.summary__rows dt { color: var(--color-ink-soft); }
.summary__rows dd { margin: 0; text-align: right; }
.summary__total { padding-top: var(--space-3); border-top: 1.5px dashed var(--color-line); font-size: var(--text-l); font-weight: 800; }
.summary__total dt { color: var(--color-ink); }
.summary__warn { padding: var(--space-3); border-radius: var(--radius-m); background: var(--color-wheat-100); color: #6b5314; font-size: var(--text-s); font-weight: 600; }

/* Нижняя панель покупки */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-bottom)); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)) saturate(1.5); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); border-top: 1px solid var(--glass-border); box-shadow: 0 -10px 30px -16px rgb(15 38 25 / 35%); }
.buybar .price { font-size: var(--text-l); }
.aside-cta { display: none; }

/* Оформление */
.co-steps { display: grid; gap: var(--space-4); }
.co-card { display: grid; gap: var(--space-4); padding: var(--space-4) var(--space-3); border-radius: var(--radius-xl); background: var(--color-cream); box-shadow: var(--shadow-soft); scroll-margin-top: 90px; }
.co-card h2 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-l); }
.co-card h2 span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--color-forest-900); color: var(--color-wheat-300); font-family: var(--font-ui); font-size: var(--text-s); font-weight: 800; }
.co-body { display: grid; gap: var(--space-3); }
.co-grid { grid-template-columns: 1fr; }
.pickup-card { grid-template-columns: auto 1fr; align-items: start; padding: var(--space-4); border-radius: var(--radius-l); background: var(--color-sage-100); color: var(--color-forest-800); }
.pickup-card div { display: grid; gap: 2px; }
.seg { max-width: 100%; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--color-paper-deep); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 42px; padding: 0 var(--space-3); white-space: nowrap; border-radius: var(--radius-pill); font-size: var(--text-s); font-weight: 700; color: var(--color-ink-soft); transition: background var(--duration-base), color var(--duration-base), box-shadow var(--duration-base); }
@media (max-width: 400px) { .seg button { gap: var(--space-1); padding: 0 var(--space-2); font-size: var(--text-xs); } .seg button svg { width: 16px; height: 16px; } }
.seg button.is-active { background: var(--color-forest-900); color: var(--color-cream); box-shadow: var(--shadow-soft); }
.seg button svg { flex: none; }
.seg--big { display: grid; }
.seg--big button { min-height: 38px; }
.days { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 76px; padding: var(--space-3); border-radius: var(--radius-m); background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-line); scroll-snap-align: start; transition: background var(--duration-base), color var(--duration-base), transform var(--duration-fast) var(--ease-spring); }
.day small { text-transform: capitalize; font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-mute); }
.day.is-active { background: var(--color-forest-900); color: var(--color-cream); box-shadow: var(--shadow-soft); }
.day.is-active small { color: var(--color-wheat-300); }
.day:active { transform: scale(0.95); }
.day:disabled { opacity: 0.45; pointer-events: none; }
.day em { font-style: normal; font-size: 0.68rem; color: var(--color-danger); font-weight: 700; }
.pay { gap: var(--space-2); }
.pay__opt { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1.5px var(--color-line); position: relative; }
.pay__opt > div { display: grid; }
.pay__opt input { position: absolute; opacity: 0; }
.pay__opt svg { color: var(--color-forest-900); }
.pay__opt.is-active { background: var(--color-sage-100); box-shadow: inset 0 0 0 2px var(--color-moss-500); }
.pay__opt.is-off { opacity: 0.5; }
.pay__opt:not(.is-active) svg { display: none; }

/* Вход */
.login { position: relative; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: var(--space-2) var(--gutter) calc(var(--tabbar-height) + var(--space-5) + var(--safe-bottom)); overflow: hidden auto; }
.login__art span { position: absolute; border-radius: var(--radius-blob); filter: blur(2px); opacity: 0.6; animation: blob 12s ease-in-out infinite alternate; }
.login__art span:nth-child(1) { width: 420px; height: 420px; left: -120px; top: 6%; background: var(--color-sage-200); }
.login__art span:nth-child(2) { width: 320px; height: 320px; right: -80px; bottom: 8%; background: var(--color-wheat-300); animation-delay: -4s; }
.login__art span:nth-child(3) { width: 180px; height: 180px; right: 22%; top: 8%; background: var(--color-clay-100); animation-delay: -8s; }
.login__card { position: relative; width: min(100%, 440px); display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-4); text-align: center; border-radius: var(--radius-xl); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow-float); }
.login__card { grid-template-columns: minmax(0, 1fr); }
.login__card > * { min-width: 0; max-width: 100%; }
.login__card .seg button { min-height: 38px; }
.login__card h1 { font-size: var(--text-l); }
.login__body { width: 100%; animation: rise var(--duration-base) var(--ease-out) both; }
.login__legal { font-size: var(--text-xs); }
.login-form, .login-wait { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.login-form { text-align: left; justify-items: stretch; }
.login-hint { font-size: var(--text-xs); text-align: center; }
.login-wait h3 { font-family: var(--font-ui); font-size: var(--text-l); font-weight: 800; letter-spacing: 0; }
.call-number { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--color-forest-900); color: var(--color-wheat-300); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-lift); }
.ring { position: relative; width: 72px; height: 72px; display: grid; place-items: center; color: var(--color-forest-900); }
.ring i { position: absolute; inset: 0; border-radius: var(--radius-s); border: 2px solid var(--color-moss-500); opacity: 0; animation: ring 2.4s ease-out infinite; }
.ring i:nth-child(2) { animation-delay: 0.8s; }
.ring i:nth-child(3) { animation-delay: 1.6s; }
.ring span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-blob); background: var(--color-sage-100); animation: blob 6s ease-in-out infinite alternate; }
.ring--off i { animation: none; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Плитки категорий */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.tile { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base), background var(--duration-base); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile:active { transform: scale(0.98); }
.tile__icon { flex: none; width: 52px; height: 52px; padding: 4px; object-fit: contain; border-radius: var(--radius-m); background: var(--color-paper); transition: transform var(--duration-base) var(--ease-spring); }
.tile:hover .tile__icon { transform: scale(1.1) rotate(-4deg); }
.tile__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.tile__name { font-family: var(--font-ui); font-size: var(--text-s); font-weight: 800; line-height: 1.2; color: var(--color-ink); }
.tile__text small { font-size: var(--text-xs); font-weight: 600; }
.tile__go { flex: none; color: var(--color-ink-mute); transition: transform var(--duration-base) var(--ease-spring), color var(--duration-base); }
.tile:hover .tile__go { transform: translateX(3px); color: var(--color-forest-900); }
.tile--all { background: var(--color-forest-900); color: var(--color-cream); }
.tile--all .tile__name { color: var(--color-cream); }
.tile--all small { color: var(--color-sage-200); }
.tile--all .tile__go, .tile--all:hover .tile__go { color: var(--color-wheat-300); }
.tile__all-count { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-m); background: rgb(255 255 255 / 10%); font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--color-wheat-300); }
.tile-skeleton { height: 68px; }
@media (max-width: 719px) {
  .tile { gap: var(--space-2); padding-right: var(--space-2); }
  .tile__icon { width: 44px; height: 44px; padding: 3px; }
  .tile__all-count { width: 44px; height: 44px; font-size: 1.6rem; }
  .tile__name { font-size: 0.8125rem; }
}

/* Статусы и заказы */
.status { padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 800; background: var(--color-paper-deep); color: var(--color-ink-soft); }
.status--delivered { background: var(--color-sage-200); color: var(--color-forest-800); }
.status--cancelled { background: var(--color-danger-soft); color: var(--color-danger); }
.status--live { background: var(--color-wheat-100); color: #6b5314; position: relative; }
.status--live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: var(--radius-s); background: var(--color-wheat-500); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: 0.4; } }
.order-card { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base); }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.order-card__top, .order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.order-card__items { font-size: var(--text-s); color: var(--color-ink-soft); }
.order-lines { padding: var(--space-4); border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); gap: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
.order-lines li:last-child { border: 0; }
.timeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 0 var(--space-5); padding: 0; }
.timeline li { position: relative; display: grid; justify-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-mute); }
.timeline li::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--color-paper-deep); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline i { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--color-paper-deep); color: var(--color-cream); }
.timeline .is-done i, .timeline .is-now i { background: var(--color-forest-900); }
.timeline .is-done::before, .timeline .is-now::before { background: var(--color-forest-900); }
.timeline .is-done, .timeline .is-now { color: var(--color-forest-900); }
.timeline .is-now i { box-shadow: 0 0 0 6px var(--color-sage-200); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 10px transparent; } }
.profile { display: grid; gap: var(--space-4); }
.profile .catalog-head, .profile__actions { grid-column: 1 / -1; }
.profile .co-card > .btn { justify-self: start; }
.profile__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.addr-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-m); background: var(--color-paper); }
.addr-list li span { flex: 1; font-size: var(--text-s); }
.consents { display: grid; gap: var(--space-2); width: 100%; text-align: left; }
.check { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-xs); line-height: 1.35; color: var(--color-ink-soft); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--color-forest-900); }
.check a { color: var(--color-forest-900); text-decoration: underline; text-underline-offset: 2px; }
.select { appearance: none; min-height: 46px; width: auto; padding-right: var(--space-6); background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-soft) 50%), linear-gradient(135deg, var(--color-ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; border-radius: var(--radius-pill); }

@media (min-width: 720px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .tiles { gap: var(--space-3); }
  .co-grid { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .co-grid__wide { grid-column: 1 / -1; }
  .cart-line { grid-template-columns: 96px 1fr auto; align-items: center; }
  .cart-line__side { grid-column: auto; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
  .co-card { padding: var(--space-6); }
  .days { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1080px) {
  .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6); }
  .cart-aside { position: sticky; top: 96px; }
  .aside-cta { display: inline-flex; }
  .buybar--co, .buybar:not(.buybar--co) { display: none; }
  .cart-list + .cart-aside .aside-cta { display: inline-flex; }
}

/* Выбор модификации товара */
.variant { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); width: fit-content; min-width: 0; max-width: var(--product-option-max-width); min-height: var(--product-option-height); margin-inline: calc(-1 * var(--space-1)); padding-inline: var(--space-1); border-radius: var(--radius-s); background: var(--color-product-option-bg); color: var(--color-product-option); font-size: var(--text-xs); font-weight: 500; text-align: left; cursor: pointer; transition: color var(--duration-fast), background var(--duration-fast); }
.variant:hover, .variant:focus-visible, .variant[aria-expanded='true'] { background: var(--color-sage-100); outline: none; }
.variant__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant__chevron { flex: none; transform: rotate(90deg); color: var(--color-ink-soft); }
.variant--full { justify-self: start; min-height: var(--space-6); font-size: var(--text-s); }
.variant[aria-expanded='true'] .variant__chevron { transform: rotate(-90deg); }
.variant-menu { position: fixed; inset: auto; margin: 0; padding: var(--space-1); border: 0; border-radius: var(--radius-s); background: var(--color-cream); color: var(--color-ink-soft); box-shadow: var(--shadow-lift); overflow: auto; overscroll-behavior: contain; font-family: var(--font-ui); }
.variant-menu::backdrop { background: transparent; pointer-events: none; }
.variant-menu__option { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--variant-menu-option-height); padding: var(--space-2); border-radius: var(--radius-s); text-align: left; font-size: var(--text-xs); }
.variant-menu__option:hover, .variant-menu__option:focus-visible { outline: none; background: var(--color-sage-100); }
.variant-menu__option[aria-selected='true'] { color: var(--color-forest-900); background: var(--color-product-option-bg); }
.variant-menu__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.variant-menu__price { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.variant-menu__check { flex: none; visibility: hidden; }
.variant-menu__option[aria-selected='true'] .variant-menu__check { visibility: visible; }

.addr { position: relative; }
.addr__list { position: absolute; z-index: var(--z-search); inset-inline: 0; top: 100%; margin: var(--space-1) 0 0; padding: var(--space-1); list-style: none; background: var(--color-paper); border: 1px solid var(--color-paper-deep); border-radius: var(--radius-m); box-shadow: var(--shadow-lift); max-height: 280px; overflow: auto; }
.addr__list button { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: var(--space-2) var(--space-3); background: none; border: 0; border-radius: var(--radius-s); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.addr__list button:hover, .addr__list button:focus-visible { background: var(--color-sage-100); }

.bonus { display: grid; gap: var(--space-3); }
.bonus__range { width: 100%; accent-color: var(--color-wheat-500); }
.bonus__row { display: flex; align-items: end; gap: var(--space-2); flex-wrap: wrap; }
.bonus__row .field { flex: 1; min-width: 120px; }
.bonus__balance { font-size: var(--text-l, 1.25rem); }
.bonus__history { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.bonus__history li { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-line); font-size: var(--text-s); }
.bonus__plus { color: var(--color-success); }
.bonus__minus { color: var(--color-danger); }
.summary__bonus { margin-top: var(--space-2); font-size: var(--text-s); color: var(--color-moss-500); font-weight: 600; }

.co-card--note { padding-block: var(--space-3); }
.co-note { display: flex; align-items: center; gap: var(--space-3); color: var(--color-forest-800); }
.co-note svg { flex: none; color: var(--color-wheat-500); }
.co-note div { display: grid; gap: 2px; font-size: var(--text-s); }
.profile-head { display: flex; align-items: center; gap: var(--space-4); }
.profile-head__avatar { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: var(--radius-l); background: var(--color-forest-900); color: var(--color-wheat-300); font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.profile-head__info { display: grid; gap: 2px; min-width: 0; }
.profile-head__name { font-family: var(--font-display); font-size: var(--text-xl, 1.6rem); font-weight: 700; line-height: 1.1; }
.profile-head__phone { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.profile-edit { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.profile-edit .input { flex: 1; min-width: 160px; }
.profile-points { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-l); background: var(--color-wheat-100); color: var(--color-forest-950); }
.profile-points b { font-size: 1.8rem; font-family: var(--font-display); }

.price-personal { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price--mine { color: var(--color-clay-500); }
.price-old { font-size: 0.8em; font-weight: 500; color: var(--color-ink-mute); }
.summary__mine dt, .summary__mine dd { color: var(--color-clay-500); font-weight: 700; }
.profile-discount { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); border-radius: var(--radius-l); background: var(--color-clay-100); color: var(--color-forest-950); }
.profile-discount b { font-size: 1.8rem; font-family: var(--font-display); color: var(--color-clay-500); }
.profile-discount small { grid-column: 1 / -1; color: var(--color-ink-soft); }

.product-card__incart { font-size: var(--text-xs); color: var(--color-forest-800); line-height: 1.3; }
.product-card__incart b { color: var(--color-clay-500); }
.buybar__sum { font-size: var(--text-s); font-weight: 600; color: var(--color-forest-800); }
.buybar__sum b { color: var(--color-clay-500); }
/* Герой */
.hero { --px: 0; --py: 0; position: relative; isolation: isolate; overflow: hidden; margin: var(--space-3) var(--space-3) 0; border-radius: var(--radius-xl); min-height: 560px; display: grid; align-items: start;
  background: radial-gradient(120% 90% at 78% 8%, var(--color-forest-700), transparent 60%), linear-gradient(180deg, var(--color-forest-800), var(--color-forest-950)); color: var(--color-cream); box-shadow: var(--shadow-lift); }
.hero__sun { position: absolute; z-index: -3; width: 360px; height: 360px; right: -90px; top: -130px; border-radius: var(--radius-s); background: radial-gradient(circle, var(--color-wheat-300), rgb(255 194 102 / 0%) 68%); opacity: 0.4; transform: translate(calc(var(--px) * -0.6px), calc(var(--py) * -0.6px)); transition: transform 0.4s var(--ease-out); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.8; scale: 1.08; } }
.hero__particles span { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: var(--radius-s); background: var(--color-wheat-300); opacity: 0; z-index: -1; animation: float-up var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes float-up { 10% { opacity: 0.8; } 100% { transform: translate(40px, -520px); opacity: 0; } }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-top: var(--space-6); padding-bottom: 340px; padding-inline: var(--space-5); }
.hero__badge { display: block; font-size: clamp(0.5rem, 2.5vw, 0.625rem); font-weight: 200; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--color-wheat-100); opacity: 0.9; }
.hero__title { margin-top: var(--space-4); font-size: var(--text-hero); font-weight: 600; line-height: 0.98; animation: rise 1s var(--ease-out) both; }
.hero__title em { color: var(--color-wheat-300); font-weight: 500; }
.hero__lead { margin-top: var(--space-5); max-width: 44ch; font-size: var(--text-m); color: var(--color-sage-200); animation: rise 1s 0.15s var(--ease-out) both; }

/* Фото героя */
.hero__photo { position: absolute; z-index: -2; inset: auto 0 0 0; width: 100%; height: 380px; object-fit: cover; object-position: 50% 100%; transform: translate(calc(var(--px) * -0.5px), calc(var(--py) * -0.3px)) scale(1.06); transition: transform 0.6s var(--ease-out); animation: hero-zoom 24s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%); mask-image: linear-gradient(to bottom, transparent 0, #000 38%); }
@keyframes hero-zoom { to { scale: 1.06; } }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); position: relative; z-index: var(--z-base); }
.perk { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); }
.perk div { display: grid; font-size: var(--text-s); }
.perk .muted { font-size: var(--text-xs); }
.perk__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-blob); background: var(--color-forest-900); color: var(--color-wheat-300); }

/* Как это работает */
.story { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--space-6); padding: var(--space-5) var(--space-4); border-radius: var(--radius-xl); background: var(--color-forest-900); color: var(--color-cream); box-shadow: var(--shadow-lift); }
.story::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(420px 240px at 0 0, rgb(143 168 134 / 28%), transparent 70%), radial-gradient(380px 220px at 100% 100%, rgb(201 162 75 / 22%), transparent 70%); }
.story__inner { display: grid; gap: var(--space-4); }
.story h2 { text-wrap: balance; margin-top: var(--space-1); font-size: var(--text-xl); line-height: 1.1; }
.eyebrow--light { color: var(--color-wheat-300); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-3); padding-bottom: var(--space-4); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; border-left: 2px dashed rgb(255 194 102 / 40%); }
.step:last-child::before { display: none; }
.step__n { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--color-wheat-500); color: var(--color-forest-950); font-family: var(--font-ui); font-size: var(--text-s); font-weight: 800; }
.step h3 { margin: 0; font-family: var(--font-ui); font-size: var(--text-m); font-weight: 800; letter-spacing: 0; line-height: 1.3; align-self: center; }
.step p { grid-column: 2; margin-top: 2px; color: var(--color-sage-200); font-size: var(--text-s); }
@media (min-width: 720px) {
  .story { padding: var(--space-6); }
  .story__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: center; gap: var(--space-6); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-5); }
  .step { grid-template-columns: 1fr; row-gap: var(--space-2); padding-bottom: 0; }
  .step::before { left: 40px; right: calc(var(--space-5) * -1 + 8px); top: 19px; bottom: auto; border-left: 0; border-top: 2px dashed rgb(255 194 102 / 40%); }
  .step__n { grid-row: auto; }
  .step h3 { align-self: start; }
  .step p { grid-column: 1; }
}

/* Каталог */
.catalog-head { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.catalog-title { font-size: var(--text-2xl); }

/* Товар */
.product, .product-skel { display: grid; gap: var(--space-5); }
.product__art { border-radius: var(--radius-xl); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; }
.product__info { display: grid; gap: var(--space-4); align-content: start; }
.product__title { font-size: var(--text-2xl); }
.product__desc { color: var(--color-ink-soft); max-width: 60ch; white-space: pre-line; }
.product__facts { display: grid; gap: var(--space-2); max-width: 60ch; margin: 0; }
.product__facts dt { font-size: var(--text-s); color: var(--color-ink-soft); }
.product__facts dd { margin: 0; }
.product__price { display: flex; align-items: baseline; gap: var(--space-2); }
.product__price .price { font-size: 2.2rem; }
.product__buy { display: none; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

/* Успех */
.done { display: grid; justify-items: center; gap: var(--space-4); text-align: center; max-width: 560px; }
.done h1 { font-size: var(--text-2xl); }
.done__burst { position: relative; width: 140px; height: 140px; display: grid; place-items: center; margin-top: var(--space-5); }
.done__check { width: 96px; height: 96px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--color-forest-900); color: var(--color-wheat-300); box-shadow: var(--shadow-float); animation: pop 0.7s var(--ease-spring) both; }
.done__burst i { position: absolute; width: 10px; height: 10px; border-radius: var(--radius-s); background: var(--color-wheat-500); animation: burst 1s var(--d) var(--ease-out) both; }
.done__burst i:nth-child(3n) { background: var(--color-moss-500); }
.done__burst i:nth-child(3n+1) { background: var(--color-clay-500); width: 7px; height: 7px; }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-84px); opacity: 0; } }
.done__lead { max-width: 42ch; }
.done .note { text-align: left; }
.done__facts { width: 100%; margin: 0; display: grid; gap: var(--space-3); padding: var(--space-5); text-align: left; border-radius: var(--radius-l); background: var(--color-cream); box-shadow: var(--shadow-soft); }
.done__facts div { display: grid; gap: 2px; }
.done__facts dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-mute); }
.done__facts dd { margin: 0; font-weight: 700; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

@media (max-width: 719px) {
  .perk { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .perk b { font-size: 0.8125rem; line-height: 1.2; }
  .perk .muted { display: none; }
  .perk__icon { width: 34px; height: 34px; }
}
@media (min-width: 720px) {
  .hero { margin: var(--space-4) var(--gutter) 0; min-height: 600px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
  .product__art { aspect-ratio: 1; }
  .product__buy { display: flex; }
  .buybar:not(.buybar--co) { display: none; }
}
@media (min-width: 1080px) {
  .hero { margin: var(--space-5) auto 0; max-width: calc(var(--content-width) - var(--gutter) * 2); min-height: 640px; }
  .perks { margin-top: calc(var(--space-5) * -1); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .product { position: relative; }
  .product__art { position: sticky; top: 100px; }
}
.product-skel { grid-template-columns: 1fr; }
@media (min-width: 720px) { .product-skel { grid-template-columns: 1fr 1fr; } }

/* Каталог: единая лента с навигацией по разделам */
.catalog-main { max-width: 100%; padding: var(--space-1) var(--gutter) 0; min-width: 0; }
.catalog-results { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-s); }
.catnav--side { display: none; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); transition: opacity var(--duration-base); }
.catalog-layout.is-stale { opacity: 0.6; }
.catnav--rail { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-height) + var(--space-3) + var(--safe-bottom) + var(--space-1)); z-index: var(--z-sticky); height: var(--category-rail-height); padding: var(--space-2) var(--space-3); background: var(--glass-bar-bg); backdrop-filter: blur(var(--glass-blur)) saturate(1.5); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); border-top: 1px solid var(--glass-bar-border); box-shadow: var(--shadow-soft); }
.catnav { min-width: 0; }
.catnav--rail { display: flex; align-items: center; gap: var(--space-2); }
.catnav--rail .catnav__list { flex: 1; min-width: 0; }
.catnav--rail .catnav__list > li { flex: none; }
.catnav__chevron { flex: none; }
.catnav__back { flex: none; display: grid; align-content: center; gap: var(--space-1); width: var(--category-back-width); height: var(--category-chip-height); padding-inline: var(--space-2); border-radius: var(--radius-m); background: var(--color-sage-100); color: var(--color-forest-900); box-shadow: inset 0 0 0 1px var(--color-line); text-align: left; }
.catnav__back-action { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.catnav__back-action svg { flex: none; }
.catnav__scope { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--color-ink-soft); }
.catnav__branch { display: flex; align-items: center; }
.catnav__branch .catnav__item { flex: 1; min-width: 0; }
.catnav__branch .catnav__chevron { display: none; }
.catnav__toggle { display: grid; place-items: center; align-self: stretch; width: var(--space-6); flex: none; border-radius: var(--radius-s); }
.catnav__toggle:hover { background: var(--color-sage-100); }
.catnav__children { list-style: none; margin: var(--space-1) 0 var(--space-2) var(--space-3); padding-left: var(--space-2); border-left: 1px solid var(--color-line); }
.catnav__children .catnav__icon { width: var(--category-child-icon); height: var(--category-child-icon); }
.catnav__children .catnav__text b { font-size: var(--text-xs); }
.catnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--category-chip-height); padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1); border-radius: var(--radius-m); background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-line); text-align: left; transition: background var(--duration-base), color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-fast) var(--ease-spring); }
.catnav__item:active { transform: scale(0.97); }
.catnav__item[aria-current='true'] { background: var(--color-forest-900); color: var(--color-cream); box-shadow: var(--shadow-soft); }
.catnav__icon { flex: none; width: 42px; height: 42px; padding: 3px; object-fit: contain; border-radius: var(--radius-s); background: var(--color-paper); }
.catnav__text { display: grid; line-height: 1.15; min-width: 0; }
.catnav__text b { font-size: var(--text-s); font-weight: 800; white-space: nowrap; }
.catnav__text small { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-mute); }
.catnav__item[aria-current='true'] small { color: var(--color-sage-200); }
.catnav--rail .catnav__item { flex: none; width: var(--category-chip-width); padding-right: var(--space-2); }
.catnav--rail .catnav__icon { width: var(--category-rail-icon); height: var(--category-rail-icon); }
.catnav--rail .catnav__text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: var(--text-xs); font-weight: 700; line-height: 1.15; white-space: normal; overflow-wrap: break-word; }
.catnav--rail .catnav__text small, .catnav--rail .catnav__chevron { display: none; }
.catnav--rail.catnav--more-end .catnav__list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--category-fade-width)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--category-fade-width)), transparent); }
.catnav--rail.catnav--more-start .catnav__list { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - var(--category-fade-width)), transparent); mask-image: linear-gradient(to left, #000 calc(100% - var(--category-fade-width)), transparent); }
.catnav--rail.catnav--more-start.catnav--more-end .catnav__list { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--category-fade-width), #000 calc(100% - var(--category-fade-width)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--category-fade-width), #000 calc(100% - var(--category-fade-width)), transparent); }
.catalog-feed { display: grid; gap: var(--space-6); min-width: 0; }
.catalog-feed, .catalog-feed * { overflow-anchor: none; }
.catsec { scroll-margin-top: calc(var(--sticky-top) + var(--space-1)); }
.catsec:last-child { min-height: calc(100dvh - var(--sticky-top) - var(--catalog-dock-height) - var(--space-5)); }
.catsec__title { margin-bottom: var(--space-3); font-size: var(--text-l); font-weight: 700; }
.catsec--parent .catsec__title { margin-bottom: 0; }
.catsec--parent .grid-products { display: none; }
.product__path { display: flex; flex-wrap: wrap; gap: var(--space-1); color: var(--color-moss-500); font-size: var(--text-xs); }
.product__path a:not(:last-child)::after { content: ' /'; color: var(--color-ink-mute); }
@media (min-width: 1080px) {
  .catalog-shell.has-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .catalog-main { padding: var(--space-1) var(--space-5) 0; }
  .catnav--rail { display: none; }
  .catnav--side { display: block; position: sticky; top: var(--sticky-top); height: calc(100dvh - var(--sticky-top)); overflow-y: auto; padding: var(--space-3) var(--space-3) var(--space-4) var(--space-2); border-radius: 0 var(--radius-l) var(--radius-l) 0; background: var(--color-cream); box-shadow: var(--shadow-soft); scrollbar-width: thin; }
  .catnav--side .catnav__list { display: grid; gap: 2px; overflow: visible; }
  .catnav--side .catnav__item { background: transparent; box-shadow: none; min-height: 48px; }
  .catnav--side .catnav__icon { width: 38px; height: 38px; padding: 2px; }
  .catnav--side .catnav__item:hover { background: var(--color-sage-100); }
  .catnav--side .catnav__item[aria-current='true'] { background: var(--color-forest-900); }
  .catnav--side .catnav__text { flex: 1; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-2); }
  .catnav--side .catnav__text b { white-space: normal; }
  .catsec:last-child { min-height: calc(100dvh - var(--sticky-top) - var(--space-5)); }
  .catalog-feed .grid-products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
}

@media (min-width: 720px) {
  .hero__inner { padding-top: var(--space-8); padding-bottom: var(--space-8); padding-inline: var(--space-7); }
  .hero__copy { max-width: min(56%, 640px); }
  .hero__photo { inset: 0 0 0 auto; width: 64%; height: 100%; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%); mask-image: linear-gradient(to right, transparent 0, #000 40%); }
}

@media (max-width: 719px) {
  .hero { margin: var(--space-2) var(--gutter) 0; min-height: 0; }
  .hero__inner { gap: var(--space-3); padding-top: var(--space-5); padding-bottom: 230px; }
  .hero__title { margin-top: var(--space-2); font-size: clamp(1.6rem, 8vw, 2.05rem); }
  .hero__lead { margin-top: var(--space-3); font-size: var(--text-s); }
  .hero__photo { height: 300px; }
}

.hero__script { display: block; font-family: 'Brahms Gotisch Cyr', var(--font-display); font-size: clamp(2.6rem, 14vw, 6.5rem); font-weight: 400; line-height: 1; letter-spacing: 0.01em; color: rgb(251 248 239 / 58%); text-shadow: 0 0 30px rgb(255 194 102 / 30%), 0 2px 16px rgb(15 38 25 / 55%); animation: rise 1s var(--ease-out) both; user-select: none; }
.hero__landmark { position: absolute; z-index: -1; left: 50%; top: 0; width: min(100%, 880px); transform: translateX(-50%); opacity: 0.3; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
@font-face { font-family: 'Brahms Gotisch Cyr'; src: url('/fonts/brahms-gotisch-cyr.woff2') format('woff2'), url('/fonts/brahms-gotisch-cyr.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@media (min-width: 1080px) { .hero__landmark { left: var(--space-5); top: auto; bottom: 0; width: 52%; transform: none; opacity: 0.26; -webkit-mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to top, #000 50%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to top, #000 50%, transparent); mask-composite: intersect; } }

.hero__place { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-2); }
.region { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2); border-radius: var(--radius-l); background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 20%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--color-cream); }
.region__map { width: 74px; height: auto; flex: none; overflow: visible; }
.region__shape { fill: rgb(251 248 239 / 14%); stroke: rgb(251 248 239 / 75%); stroke-width: 1.4; stroke-linejoin: round; }
.region__pin { fill: var(--color-wheat-500); stroke: var(--color-cream); stroke-width: 1.4; }
.region__dot { fill: var(--color-cream); }
.region__pulse { fill: rgb(247 147 30 / 35%); transform-box: fill-box; transform-origin: center; animation: region-pulse 2.4s ease-out infinite; }
.region__text { display: grid; line-height: 1.15; }
.region__text b { font-size: var(--text-s); font-weight: 800; letter-spacing: 0.02em; }
.region__text small { font-size: var(--text-xs); color: var(--color-sage-200); }
@keyframes region-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .region__pulse { animation: none; } }
