/* «Кубик»: демо-магазин детских товаров. Шрифт Rubik (SIL OFL), см. assets/credits.json */
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-ext.woff2") format("woff2"); 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; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin.woff2") format("woff2"); 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; }

:root {
  /* палитра взята у деревянных кубиков: каждая «глава» страницы получает своё поле */
  --bg: #f5f7fb; --surface: #e7edf7; --ink: #12203a; --muted: #38455f;
  --accent: #2b5cf0; --accent-ink: #ffffff; --accent-deep: #1f46c4;
  --sky: #8fd3f6; --sun: #ffc61f; --coral: #ff8a73; --leaf: #46c98f; --cobalt: #2b5cf0; --navy: #12203a; --pink: #ffaac4; --teal: #1fb5b0; --peach: #ff9a2e;
  --soft-sky: #cfeafb; --soft-sun: #ffeaa3; --soft-coral: #ffd6cc; --soft-leaf: #cdf0de; --soft-pink: #ffdbe7; --soft-blue: #d3defc; --soft-teal: #c9f0ee; --soft-peach: #ffe0bd;
  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.4vw, 24px);
  --r: 28px;                 /* один радиус: панели, плитки, листы */
  --pill: 999px;             /* одна форма кнопок и чипов */
  --fs-s: 1rem;                                           /* малый: подписи, чипы, примечания */
  --fs-b: 1.125rem;                                       /* основной текст 18 */
  --fs-l: clamp(1.1875rem, 1.04rem + 0.5vw, 1.375rem);      /* лид 19–22 */
  --fs-m: clamp(1.75rem, 1.3rem + 1.1vw, 2.25rem);        /* название блока 28–36 */
  --fs-h: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem);         /* заголовок секции 36–72 */
  --fs-d: clamp(2.6rem, 10.9vw, 4.6rem);                  /* крупнейший: герой, хиты, 404 */
  --header-h: 76px;
}
@media (min-width: 900px) { :root { --fs-d: clamp(4.6rem, min(8.7vw, 15svh), 8.6rem); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Rubik", "Segoe UI", Roboto, Arial, sans-serif; font-size: var(--fs-b); line-height: 1.5; font-weight: 400; font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1:focus, h2:focus { outline: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; max-width: 62ch; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--ink); color: var(--sun); }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; z-index: 100; background: var(--ink); color: #fff; }
.skip:focus { width: auto; height: auto; clip: auto; left: var(--margin); top: 12px; padding: 12px 18px; border-radius: var(--pill); }
.wrap { max-width: 1760px; margin-inline: auto; padding-inline: var(--margin); }
.nowrap { white-space: nowrap; }
small, .small { font-size: var(--fs-s); line-height: 1.45; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-l); line-height: 1.35; font-weight: 500; max-width: 40ch; }
.num { font-variant-numeric: tabular-nums; }

/* поля-главы: у каждой секции своя земля, пары цвет/чернила заданы здесь */
[data-field] { background: var(--field-bg); color: var(--field-ink); --focus: var(--field-ink); }
[data-field="bg"] { --field-bg: var(--bg); --field-ink: var(--ink); --focus: var(--accent); }
[data-field="sun"] { --field-bg: var(--sun); --field-ink: var(--ink); }
[data-field="coral"] { --field-bg: var(--coral); --field-ink: var(--ink); }
[data-field="sky"] { --field-bg: var(--sky); --field-ink: var(--ink); }
[data-field="leaf"] { --field-bg: var(--leaf); --field-ink: var(--ink); }
[data-field="navy"] { --field-bg: var(--navy); --field-ink: #fff; --focus: var(--sun); }
[data-tone="sky"] { --tone: var(--sky); --tone-soft: var(--soft-sky); --tone-ink: var(--ink); }
[data-tone="sun"] { --tone: var(--sun); --tone-soft: var(--soft-sun); --tone-ink: var(--ink); }
[data-tone="coral"] { --tone: var(--coral); --tone-soft: var(--soft-coral); --tone-ink: var(--ink); }
[data-tone="leaf"] { --tone: var(--leaf); --tone-soft: var(--soft-leaf); --tone-ink: var(--ink); }
[data-tone="pink"] { --tone: var(--pink); --tone-soft: var(--soft-pink); --tone-ink: var(--ink); }
[data-tone="blue"] { --tone: var(--cobalt); --tone-soft: var(--soft-blue); --tone-ink: #fff; }
[data-tone="teal"] { --tone: var(--teal); --tone-soft: var(--soft-teal); --tone-ink: var(--ink); }
[data-tone="peach"] { --tone: var(--peach); --tone-soft: var(--soft-peach); --tone-ink: var(--ink); }

/* ——— кнопки, чипы, поля ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: var(--pill); background: var(--btn-bg, var(--accent)); color: var(--btn-fg, var(--accent-ink)); font-weight: 700; font-size: var(--fs-b); line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform .16s ease, background-color .16s ease; }
.btn:hover { background: var(--btn-hover, var(--accent-deep)); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; --btn-hover: #24365a; }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-hover: #ffd34d; }
.btn--soft { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-hover: #d9e2f1; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: var(--fs-s); }
.btn--block { width: 100%; }
[data-field="navy"] .btn { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-hover: #ffd34d; }
[data-field="coral"] .btn, [data-field="sun"] .btn, [data-field="leaf"] .btn, [data-field="sky"] .btn { --btn-bg: var(--ink); --btn-fg: #fff; --btn-hover: #24365a; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; }
.link:hover { text-decoration-thickness: 0.14em; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--pill); background: var(--chip-bg, var(--surface)); color: var(--chip-fg, var(--ink)); font-weight: 600; font-size: var(--fs-s); line-height: 1.1; cursor: pointer; user-select: none; transition: transform .14s ease, background-color .14s ease, color .14s ease; }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip:has(input:checked) { --chip-bg: var(--ink); --chip-fg: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.field { display: block; width: 100%; min-height: 54px; padding: 12px 20px; background: var(--surface); border: 0; border-radius: var(--pill); font-size: var(--fs-b); color: var(--ink); }
textarea.field { border-radius: 24px; min-height: 120px; resize: vertical; line-height: 1.45; }
select.field { appearance: none; padding-right: 48px; background-image: none; cursor: pointer; }
.field::placeholder { color: #6b7894; }
.field:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; background: #fff; }
.field[aria-invalid="true"] { background: #ffe3de; outline: 3px solid var(--coral); outline-offset: 0; }
.label { display: block; font-weight: 600; margin-bottom: 8px; }
.err { color: #b3261a; font-weight: 600; font-size: var(--fs-s); margin-top: 8px; min-height: 0; }
.check { display: flex; gap: 14px; align-items: center; cursor: pointer; min-height: 46px; font-weight: 500; }
.check input { appearance: none; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .14s ease, transform .14s ease; margin: 0; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 15px; border: solid var(--sun); border-width: 0 4px 4px 0; transform: rotate(40deg) translate(-1px, -2px); }
.check input:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: var(--pill); }
.stepper button { width: 48px; height: 48px; border-radius: 50%; font-size: var(--fs-l); font-weight: 700; display: grid; place-items: center; transition: transform .12s ease, background-color .12s ease; }
.stepper button:hover { background: rgba(18, 32, 58, .1); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.icon { width: 24px; height: 24px; flex: none; }

/* ——— шапка ——— */
.site-header { min-height: var(--header-h); display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); padding-inline: var(--margin); max-width: 1760px; margin-inline: auto; position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; font-size: var(--fs-m); letter-spacing: -0.04em; line-height: 1; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 36px); margin-left: clamp(8px, 2vw, 40px); }
.nav a { text-decoration: none; font-weight: 600; padding: 12px 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.3em; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); font-weight: 700; text-decoration: none; transition: transform .14s ease; justify-content: center; }
.tool:hover { transform: translateY(-2px); }
.tool b { font-variant-numeric: tabular-nums; min-width: 1ch; }
.tool--cart { background: var(--ink); color: #fff; }
.tool.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.96); } }
.menu-btn { display: none; min-height: 48px; padding: 0 18px; border-radius: var(--pill); background: var(--surface); font-weight: 700; }
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 20px var(--margin) 32px; display: none; flex-direction: column; gap: 12px; overflow-y: auto; --focus: var(--sun); }
.mmenu.is-open { display: flex; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mmenu a:not(.btn) { font-size: var(--fs-m); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; }
.mmenu .small { margin-top: auto; color: #cfd8ea; }
.mmenu .small a { font-size: inherit; font-weight: 600; text-decoration: underline; letter-spacing: 0; }
.close { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: var(--fs-l); font-weight: 700; line-height: 1; transition: transform .14s ease; }
.close:hover { transform: rotate(90deg); }
@media (max-width: 560px) { .tool--cart span, .tool--fav { display: none; } .tool { padding: 0 14px; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .tool--fav span { display: none; }
  .site-header { gap: 10px; }
  .brand img { width: 34px; height: 34px; }
}

/* ——— карточка товара ——— */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: clamp(20px, 2.4vw, 36px) var(--gap); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__link { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card__art { position: relative; border-radius: var(--r); overflow: hidden; background: var(--tone-soft, var(--surface)); aspect-ratio: 1; }
.card__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
img[data-nb] { mix-blend-mode: normal !important; }
.card:hover .card__art img, .card__link:focus-visible .card__art img { transform: scale(1.06) rotate(-1.2deg); }
.card.is-out .card__art img { opacity: .5; filter: grayscale(.6); }
.card__name { font-size: var(--fs-b); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: var(--fs-s); font-weight: 500; }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--tone, var(--surface)); color: var(--tone-ink, var(--ink)); font-weight: 700; font-size: var(--fs-s); }
.stock-ok::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); margin-right: 7px; }
.stock-no::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-right: 7px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price b { font-size: var(--fs-b); font-weight: 800; letter-spacing: -0.02em; }
.price s { color: var(--muted); font-weight: 500; text-decoration-thickness: 2px; }
.card__buy { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
.card__buy .btn { flex: 1; }
.fav { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; transition: transform .16s ease, background-color .16s ease; }
.fav:hover { transform: scale(1.08); }
.fav:active { transform: scale(.9); }
.fav svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; transition: fill .16s ease, stroke .16s ease; }
.fav[aria-pressed="true"] { background: var(--ink); }
.fav[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral); animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.fav--art { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(255, 255, 255, .92); }
.fav--art[aria-pressed="true"] { background: var(--ink); }

/* ——— общие секции ——— */
.sec { padding-block: clamp(88px, 12vw, 176px); }
.sec__h { font-size: var(--fs-h); max-width: 14ch; }
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ——— ГЕРОЙ: ростомер ——— */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); position: relative; overflow: hidden; }
.hero__top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: end; padding-top: clamp(8px, 2vh, 24px); padding-bottom: clamp(20px, 3vh, 36px); }
.hero h1 { font-size: var(--fs-d); letter-spacing: -0.04em; line-height: .92; margin-left: -0.04em; }
.hero__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-bottom: 6px; }
.hero__side p { font-size: var(--fs-l); line-height: 1.3; font-weight: 500; max-width: 26ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.steps { --stair: clamp(420px, 52svh, 540px); margin-top: auto; display: flex; align-items: flex-end; position: relative; }
.step { flex: 1 1 0; min-width: 0; height: calc(var(--stair) * var(--k)); background: var(--tone); color: var(--tone-ink); border-radius: var(--r) var(--r) 0 0; position: relative; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.step + .step { margin-left: 6px; }
.step a { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px clamp(14px, 1.6vw, 26px) clamp(18px, 3vh, 30px); text-decoration: none; --focus: var(--ink); }
.step[data-tone="blue"] a { --focus: #fff; }
.step__toy { height: clamp(72px, 11.5svh, 124px); width: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; align-self: flex-start; margin-bottom: auto; }
.step__label { margin-top: 14px; }
.step__label { font-size: var(--fs-m); font-weight: 800; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.step__hint { margin-top: 10px; font-size: var(--fs-s); line-height: 1.35; max-width: 22ch; font-weight: 500; }
.step__foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; font-weight: 700; font-size: var(--fs-s); }
.step__go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--tone-ink); color: var(--tone); font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .25s ease; white-space: nowrap; }
.step.is-active .step__go, .step a:focus-visible .step__go { opacity: 1; transform: none; }
.step.is-active { transform: translateY(-10px); }
.mascot { position: absolute; left: 0; top: 0; width: clamp(72px, 7vw, 108px); pointer-events: none; z-index: 3; transform: translate3d(var(--mx, 60%), var(--my, 40%), 0); transition: transform .5s cubic-bezier(.3, 1.45, .5, 1); will-change: transform; }
.mascot img { width: 100%; height: auto; transform-origin: 50% 100%; animation: idle 2.8s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.965) translateY(2px); } }
.mascot.hop img { animation: hop .55s ease; }
@keyframes hop { 0% { transform: scale(1.12, .86); } 45% { transform: translateY(-18px) scale(.94, 1.1); } 100% { transform: none; } }
html:not(.js) .mascot { display: none; }
.hero .step { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes rise { from { transform: translateY(60%); opacity: 0; } }
@media (max-width: 1099px) { .step__hint, .step__go { display: none; } }
@media (max-width: 899px) {
  .hero__top { grid-template-columns: 1fr; gap: 18px; }
  .hero__side { padding-bottom: 0; }
}
@media (max-width: 759px) {
  .hero { min-height: 0; }
  .steps { --stair: 0px; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 22px; padding-bottom: 0; }
  .step { width: var(--wm); flex: none; height: 84px; border-radius: 0 var(--r) var(--r) 0; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
  .step + .step { margin-left: 0; }
  .step.is-active { transform: translateX(10px); }
  .step a { flex-direction: row; align-items: center; padding: 8px 16px 8px 12px; gap: 12px; }
  .step__toy { height: 64px; width: 64px; margin: 0; padding: 0; border-radius: 16px; flex: none; }
  .step__label { margin-top: 0; }
  .step__label { font-size: var(--fs-l); }
  .step__hint { display: none; }
  .step__foot { margin: 0 0 0 auto; }
  .step__go { display: none; }
  .mascot { width: 64px; }
  .hero .step { animation-name: rise-x; }
  @keyframes rise-x { from { transform: translateX(-40%); opacity: 0; } }
}

/* ——— каталог-витрина: пластина и вкладки ——— */
.show { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92svh, 860px); }
.show__plate { background: var(--tone-soft); position: relative; overflow: hidden; min-height: 420px; transition: background-color .45s ease; }
.show__plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease; }
.show__plate.swap img { opacity: 0; transform: scale(1.06); }
.show__panel { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 4vw, 64px); justify-content: space-between; }
.show__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.show__title { font-size: var(--fs-h); max-width: 12ch; }
.show__text { margin-top: 22px; max-width: 34ch; font-size: var(--fs-l); line-height: 1.35; font-weight: 500; }
.show__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cell { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 24px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; font-size: var(--fs-b); transition: transform .16s ease; }
.cell--soft { background: var(--surface); color: var(--ink); }
.cell:hover { transform: translateY(-3px); }
@media (max-width: 859px) { .show { grid-template-columns: 1fr; min-height: 0; } .show__panel { padding-bottom: 64px; } .show__plate { aspect-ratio: 1; min-height: 0; } .show__cells { grid-template-columns: 1fr; } .cell { min-height: 64px; } }

/* ——— хиты: гигантское слово и лесенка ——— */
.hits { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.hits__word { position: sticky; top: 28px; }
.hits__word h2 { font-size: var(--fs-d); line-height: .8; letter-spacing: -0.05em; font-weight: 900; }
.hits__word p { margin-top: 28px; font-weight: 500; line-height: 1.4; max-width: 24ch; }
.hits__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-bottom: 120px; }
.hits__row .card { translate: 0 calc((3 - var(--n)) * 44px); }
[data-field="coral"] .price s, [data-field="sun"] .price s { color: var(--ink); }
@media (max-width: 1099px) { .hits { grid-template-columns: 1fr; } .hits__word { position: static; } .hits__word h2 { font-size: var(--fs-d); } .hits__row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; row-gap: 28px; } .hits__row .card { translate: none; } .hits__row .card:nth-child(even) { translate: 0 44px; } }

/* ——— чек подарка ——— */
.gift { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.gift__q { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; }
.gift__q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gift__q legend { font-weight: 700; font-size: var(--fs-b); margin-bottom: 10px; padding: 0; }
.gift__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gift [data-field] .chip { --chip-bg: rgba(255, 255, 255, .6); }
.gift .chip:has(input:checked) { --chip-bg: var(--ink); }
.slip { position: relative; background: #fff; color: var(--ink); padding: 32px 30px 70px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 97% 100%, 94% calc(100% - 20px), 91% 100%, 88% calc(100% - 20px), 85% 100%, 82% calc(100% - 20px), 79% 100%, 76% calc(100% - 20px), 73% 100%, 70% calc(100% - 20px), 67% 100%, 64% calc(100% - 20px), 61% 100%, 58% calc(100% - 20px), 55% 100%, 52% calc(100% - 20px), 49% 100%, 46% calc(100% - 20px), 43% 100%, 40% calc(100% - 20px), 37% 100%, 34% calc(100% - 20px), 31% 100%, 28% calc(100% - 20px), 25% 100%, 22% calc(100% - 20px), 19% 100%, 16% calc(100% - 20px), 13% 100%, 10% calc(100% - 20px), 7% 100%, 4% calc(100% - 20px), 1% 100%, 0 calc(100% - 20px)); max-width: 560px; justify-self: end; width: 100%; }
.slip h3 { font-size: var(--fs-m); letter-spacing: -0.03em; }
.slip__who { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); }
.slip__rows { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.slip__row { display: flex; align-items: flex-end; gap: 10px; padding: 10px 0; min-height: 46px; text-decoration: none; font-weight: 600; font-size: var(--fs-b); }
.slip__row:hover .slip__name { text-decoration: underline; }
.slip__name { flex: 0 1 auto; max-width: 62%; line-height: 1.25; }
.slip__dots { flex: 1; min-width: 20px; border-bottom: 4px dotted #aeb9ce; margin-bottom: 7px; }
.slip__sum { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 800; }
.slip__total { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 800; border-radius: 14px; }
.slip__empty { color: var(--muted); padding: 18px 0; }
.slip__more { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.slip__row.pop { animation: slipin .45s ease both; animation-delay: calc(var(--n) * 70ms); }
@keyframes slipin { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 899px) { .gift { grid-template-columns: 1fr; } .slip { justify-self: stretch; max-width: none; } }

/* ——— листы-преимущества: «шагающие» вкладки ——— */
.sheets__head { padding-bottom: 48px; }
.sheets__note { margin-top: 16px; font-size: var(--fs-s); max-width: 44ch; color: var(--muted); }
.sheet { --band: 68px; --base: 420px; position: sticky; top: calc(var(--s) * var(--band) + 12px); height: calc(var(--base) + (2 - var(--s)) * var(--band)); overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--tone); color: var(--tone-ink); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto 1fr; padding-inline: clamp(20px, 3vw, 48px); }
.sheet h3 { font-size: var(--fs-m); height: var(--band); display: flex; align-items: center; grid-column: 1 / -1; letter-spacing: -0.03em; }
.sheet p { align-self: start; max-width: 36ch; font-size: var(--fs-l); line-height: 1.35; font-weight: 500; padding-top: clamp(8px, 2vw, 28px); }
.sheet img { align-self: start; justify-self: end; width: min(100%, 320px); aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-top: 8px; }
.sheet__big { align-self: start; justify-self: end; font-size: clamp(7rem, 17vw, 15rem); font-weight: 900; line-height: .85; letter-spacing: -0.05em; }
.sheet[data-tone="blue"] { --focus: #fff; }
@media (max-width: 759px) { .sheet { --band: 52px; --base: 540px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; } .sheet h3 { font-size: var(--fs-l); } .sheet img { order: 2; justify-self: center; width: min(78%, 280px); align-self: center; } .sheet p { order: 3; padding-bottom: 24px; align-self: start; } .sheet__big { order: 2; justify-self: start; font-size: 7rem; } }

/* ——— отзывы ——— */
.rev { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.rev__h { grid-column: 1 / span 4; }
.letter { grid-column: 5 / span 5; display: flex; flex-direction: column; gap: 20px; }
.letter .letter__lead { font-size: var(--fs-m); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; }
.letter p { max-width: 38ch; font-size: var(--fs-b); line-height: 1.55; }
.letter__sign { margin-top: 20px; display: flex; flex-direction: column; font-weight: 700; }
.letter__sign span { font-weight: 400; color: var(--muted); font-size: var(--fs-s); }
.notes { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: var(--gap); }
.note { background: var(--tone); color: var(--tone-ink); border-radius: var(--r); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.note:nth-child(2) { margin-left: 28px; }
.note .note__lead { font-size: var(--fs-l); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.note p { font-size: var(--fs-s); line-height: 1.45; }
.note small { font-weight: 600; opacity: .85; }
@media (max-width: 759px) { .letter .letter__lead { font-size: var(--fs-l); max-width: none; } }
@media (max-width: 1099px) { .rev__h, .letter, .notes { grid-column: 1 / -1; } .rev__h { margin-bottom: 12px; } .notes { flex-direction: row; flex-wrap: wrap; } .note { flex: 1 1 260px; } .note:nth-child(2) { margin-left: 0; } }

/* ——— вопросы ——— */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.faq__h { grid-column: 1 / span 3; font-size: var(--fs-m); max-width: 8ch; }
.faq__text { grid-column: 5 / -1; columns: 2; column-gap: 56px; }
.faq__text p { break-inside: avoid; margin-bottom: 22px; font-size: var(--fs-b); line-height: 1.55; max-width: 40ch; }
.faq__text b { font-weight: 700; }
@media (max-width: 1099px) { .faq__h, .faq__text { grid-column: 1 / -1; } .faq__text { columns: 1; } .faq__h { max-width: none; } }

/* ——— подвал ——— */
.foot { min-height: min(100svh, 900px); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(40px, 6vw, 80px) var(--margin) 24px; max-width: none; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); max-width: 1760px; width: 100%; margin-inline: auto; }
.foot__cols h2 { font-size: var(--fs-b); font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.foot__cols ul { display: flex; flex-direction: column; gap: 2px; color: #cfd8ea; font-size: var(--fs-b); }
.foot__cols a { text-decoration: none; display: inline-block; padding: 6px 0; min-height: 44px; }
.foot__cols a:hover { text-decoration: underline; color: #fff; }
.foot__cols li:first-child { color: #fff; font-weight: 600; }
.foot__mark { align-self: end; width: 100%; max-width: 1760px; margin-inline: auto; padding-top: 56px; }
.foot__mark svg { width: 100%; height: auto; display: block; color: var(--sun); overflow: visible; }
.foot__legal { max-width: 1760px; margin: 18px auto 0; width: 100%; font-size: var(--fs-s); color: #cfd8ea; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
@media (max-width: 759px) { .foot { min-height: 0; } .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ——— корзина-ящик ——— */
.scrim { position: fixed; inset: 0; background: rgba(18, 32, 58, .55); z-index: 70; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 460px); background: var(--bg); z-index: 80; transform: translateX(104%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; border-radius: var(--r) 0 0 var(--r); visibility: hidden; box-shadow: 0 0 60px rgba(18, 32, 58, .3); /* taste-skill-ignore: ящик парит над страницей */ }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 10px; }
.drawer__top h2 { font-size: var(--fs-m); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px 16px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { padding: 18px 22px 22px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; border-radius: var(--r) 0 0 0; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.line__art { grid-row: span 3; width: 88px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--tone-soft, var(--surface)); }
.line__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.line__name { font-weight: 700; line-height: 1.2; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.line__var { font-size: var(--fs-s); color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.line__sum { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-s); }
.line__act .check { font-size: var(--fs-s); min-height: 44px; gap: 10px; }
.line__act .check input { width: 26px; height: 26px; border-radius: 9px; }
.rm { font-size: var(--fs-s); font-weight: 600; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.stepper--sm button { width: 44px; height: 44px; }
.progress { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.progress__bar { height: 16px; border-radius: var(--pill); background: #fff; overflow: hidden; }
.progress__fill { height: 100%; width: 100%; background: var(--leaf); border-radius: var(--pill); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sum { display: flex; flex-direction: column; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum .total { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.02em; padding-top: 10px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
.empty img { width: 150px; }
.empty h2, .empty h3 { font-size: var(--fs-m); }

/* ——— страницы: общий верх ——— */
.page-top { padding-block: clamp(24px, 4vw, 56px) clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.page-top h1 { font-size: var(--fs-d); letter-spacing: -0.045em; line-height: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.crumbs a { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }

/* ——— каталог ——— */
.cat { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-bottom: 120px; }
.filters { background: var(--surface); border-radius: var(--r); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 16px; max-height: calc(100svh - 32px); overflow-y: auto; }
.filters h2 { font-size: var(--fs-b); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.2; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { --chip-bg: #fff; min-height: 44px; padding: 0 16px; font-size: var(--fs-s); }
.filters .chip:has(input:checked), .filters .chip[aria-pressed="true"] { --chip-bg: var(--ink); }
.filters .count { opacity: .7; font-weight: 500; font-variant-numeric: tabular-nums; }
.range { display: flex; flex-direction: column; gap: 6px; }
.range label { display: flex; justify-content: space-between; font-weight: 500; font-size: var(--fs-s); }
.range output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: var(--pill); background: #fff; }
input[type="range"]::-moz-range-track { height: 10px; border-radius: var(--pill); background: #fff; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); margin-top: -11px; transition: transform .14s ease; }
input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.cat__bar { display: flex; flex-wrap: wrap; gap: 12px var(--gap); align-items: center; justify-content: space-between; margin-bottom: clamp(20px, 2.6vw, 36px); }
.cat__found { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.02em; }
.cat__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1 1 360px; justify-content: flex-end; }
.cat__tools .field { width: auto; flex: 1 1 200px; max-width: 340px; }
.cat__tools select.field { flex: 0 1 240px; }
.selwrap { position: relative; display: block; flex: 0 1 240px; }
.selwrap::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.selwrap .field { width: 100%; max-width: none; }
.filters-btn { display: none; }
.filters__close { display: none; }
.filters__apply { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags:empty { display: none; }
.tags .chip { min-height: 42px; --chip-bg: var(--ink); --chip-fg: #fff; font-size: var(--fs-s); }
.empty-box { grid-column: 1 / -1; background: var(--surface); border-radius: var(--r); padding: clamp(28px, 5vw, 72px); display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.empty-box img { width: 160px; }
.empty-box h2 { font-size: var(--fs-m); margin-bottom: 14px; }
@media (max-width: 640px) { .cat__tools { justify-content: flex-start; } .cat__tools .field[type="search"] { flex: 1 1 100%; max-width: none; order: 1; } .filters-btn { order: 2; flex: 1 1 0; } .selwrap { order: 3; flex: 1 1 0; } }
@media (max-width: 1023px) {
  .cat { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 75; max-height: none; border-radius: 0; padding: 20px var(--margin) 110px; transform: translateY(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1); background: var(--bg); }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__close { display: flex; justify-content: space-between; align-items: center; }
  .filters__close h2 { font-size: var(--fs-m); margin: 0; }
  .filters__apply { display: block; position: fixed; left: var(--margin); right: var(--margin); bottom: 20px; }
}

/* ——— карточка товара ——— */
.pdp { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.gal { display: grid; gap: 12px; position: sticky; top: 16px; }
.gal__main { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--tone-soft); position: relative; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; animation: gfade .4s ease; }
@keyframes gfade { from { opacity: 0; transform: scale(1.03); } }
.gal__thumbs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.gal__thumbs button { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--tone-soft); position: relative; transition: transform .15s ease; }
.gal__thumbs button:hover { transform: translateY(-3px); }
.gal__thumbs button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 20px; outline: 5px solid var(--ink); outline-offset: -5px; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.info { display: flex; flex-direction: column; gap: 22px; }
.info h1 { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); max-width: 22ch; letter-spacing: -0.04em; line-height: .98; }
.info__row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-weight: 600; }
.info__price b { font-size: var(--fs-m); }
.info__price s { font-size: var(--fs-l); }
.opts legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy .btn { flex: 1 1 220px; min-height: 60px; font-size: var(--fs-b); }
.note-box { background: var(--surface); border-radius: var(--r); padding: 18px 22px; font-size: var(--fs-s); line-height: 1.45; }
.tabs { margin-top: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); }
.tabs__list { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tabs__list .chip { min-height: 52px; font-size: var(--fs-b); }
.tabs__panel { background: var(--tone-soft, var(--surface)); border-radius: var(--r); padding: clamp(24px, 3vw, 48px); min-height: 280px; font-size: var(--fs-b); line-height: 1.55; }
.tabs__panel h2 { font-size: var(--fs-m); margin-bottom: 18px; }
.tabs__panel ul { display: flex; flex-direction: column; gap: 10px; }
.tabs__panel li { display: flex; gap: 14px; align-items: baseline; }
.tabs__panel li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--tone, var(--ink)); flex: none; transform: translateY(1px); }
.tabs__panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin-top: 18px; }
.tabs__panel dt { font-weight: 700; }
.addon { margin-top: clamp(56px, 8vw, 112px); }
.addon h2 { font-size: var(--fs-h); max-width: 14ch; margin-bottom: 28px; }
.addon__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.add { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 14px 18px 14px 14px; }
.add__art { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--tone-soft); }
.add__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.add h3 a { display: inline-block; padding: 12px 0; }
.add h3 { font-size: var(--fs-b); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.add .btn { margin-top: 10px; }
@media (max-width: 899px) { .pdp { grid-template-columns: 1fr; } .gal { position: static; } .tabs { grid-template-columns: 1fr; } .tabs__list { flex-direction: row; flex-wrap: wrap; } }

/* ——— страница корзины и оформление ——— */
.cartp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-bottom: 120px; }
.cartp__list { display: flex; flex-direction: column; gap: 22px; }
.cartp__list .line { grid-template-columns: 128px minmax(0, 1fr); padding: 18px; background: var(--surface); border-radius: var(--r); }
.cartp__list .line__art { width: 128px; border-radius: 22px; }
.cartp__list .stepper, .cartp__list .check input:not(:checked) { background: #fff; }
.aside .check input:not(:checked) { background: #fff; }
.aside .field { background: #fff; }
.wrapall .check input:not(:checked) { background: var(--surface); }
.cartp__list .line__name { font-size: var(--fs-l); }
.aside { background: var(--surface); border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.aside h2 { font-size: var(--fs-m); }
.promo { display: flex; gap: 8px; }
.promo .field { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-msg { font-size: var(--fs-s); font-weight: 600; min-height: 1.4em; }
.promo-msg.ok { color: #0d7a4c; }
.promo-msg.bad { color: #b3261a; }
.wrapall { background: #fff; border-radius: 20px; padding: 6px 16px; }
.aside .progress__bar { background: #fff; }
@media (max-width: 899px) { .cartp { grid-template-columns: 1fr; } .aside { position: static; } .cartp__list .line { grid-template-columns: 88px minmax(0, 1fr); } .cartp__list .line__art { width: 88px; } }
.form { display: flex; flex-direction: column; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form legend { font-size: var(--fs-m); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; padding: 0; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.form .hint { font-size: var(--fs-s); color: var(--muted); }
.counter { text-align: right; font-size: var(--fs-s); color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.done { padding-block: clamp(40px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.done h1 { font-size: var(--fs-d); letter-spacing: -0.045em; line-height: .9; }
.done p { margin-top: 22px; font-size: var(--fs-l); line-height: 1.35; font-weight: 500; max-width: 34ch; }
.done .ticket { background: var(--sun); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.done .ticket b { font-size: var(--fs-m); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.done__act { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 899px) { .done { grid-template-columns: 1fr; } }

/* ——— подбор подарка (страница) ——— */
.giftp { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: start; padding-bottom: 120px; }
.giftp .gift__q { margin-top: 0; gap: 34px; }
.giftp .gift__q legend { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.giftp .slip { position: sticky; top: 16px; }
.giftp__list { margin-top: 56px; }
@media (max-width: 899px) { .giftp { grid-template-columns: 1fr; } .giftp .slip { position: static; } }

/* ——— 404 ——— */
.lost { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--gap); }
.lost h1 { font-size: var(--fs-d); letter-spacing: -0.05em; line-height: .88; }
.lost p { margin-top: 22px; font-size: var(--fs-l); font-weight: 500; line-height: 1.3; max-width: 28ch; }
.oops { display: flex; gap: 18px; margin-top: 44px; align-items: flex-end; flex-wrap: wrap; }
.oops img { height: 140px; width: 140px; object-fit: cover; border-radius: 22px; animation: wobble 4.2s ease-in-out infinite; }
.oops img:nth-child(2) { animation-delay: -1s; } .oops img:nth-child(3) { animation-delay: -2s; } .oops img:nth-child(4) { animation-delay: -3s; }
@keyframes wobble { 50% { transform: translateY(-8px) rotate(-3deg); } }
.empty > img, .empty-box img { transform-origin: 50% 100%; animation: idle 2.8s ease-in-out infinite; }
.lost__art { justify-self: center; width: min(100%, 420px); transform: rotate(18deg); animation: roll 6s ease-in-out infinite; }
@keyframes roll { 50% { transform: rotate(-10deg) translateX(-24px); } }
@media (max-width: 899px) { .lost { grid-template-columns: 1fr; padding-block: 24px 64px; } .lost__art { width: 240px; justify-self: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mascot img { animation: none; }
}

/* ——— фото и лицензии ——— */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: var(--gap); }
.credit { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--r); padding: 16px; min-width: 0; }
.credit img { width: 140px; height: 140px; flex: none; object-fit: cover; border-radius: 20px; }
.credit > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); }
.credit p { max-width: none; overflow-wrap: anywhere; }
.credit__t { font-weight: 700; font-size: var(--fs-b); line-height: 1.2; }
.credit a { text-underline-offset: .18em; }
@media (max-width: 480px) { .credit { flex-direction: column; } }
