/* Yasa Works — сайт. Палитра «Глина», Unbounded и Onest — по брендбуку.
   Вёрстка: сначала телефон, затем шире.

   Правила оформления, согласованные 24 ноября 2026 года:
   · заголовки — Unbounded 500; жирное начертание остаётся только в логотипе;
   · четыре размера шрифта: подпись, текст, заголовок раздела, главный заголовок;
   · отступы кратны 4; два скругления — малое и большое;
   · терракотовая точка — одна на экран, в конце главной фразы;
   · насыщенный цвет живёт на вещах: на рисунках вещей и на брелоке в разделе цен,
     в каждой комнате каталога — один цвет своей линейки;
   · движение одно по смыслу — «печать»: главный заголовок при загрузке и вещи каталога,
     когда комната появляется на экране. Остальное — только отклик на действие. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.0b9d6a18d2.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest.52895075d7.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* запасной шрифт той же ширины: пока Unbounded грузится, заголовок занимает столько же строк */
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 128%; }

:root {
  /* палитра — копия Брендбук/Цвета/colors.css */
  --yw-cocoa: #3B2A23;
  --yw-sand: #F3EBDF;
  --yw-terracotta: #C25E3A;
  --yw-powder: #C47766;
  --yw-honey: #C98C24;
  --yw-honey-tint: #F3E0B8;
  --yw-olive: #7F8241;
  --yw-cocoa-soft: #735C4F;
  --yw-terracotta-ink: #A14A2B;
  --yw-paper: #FBF7F1;
  --yw-sand-deep: #E6D9C6;

  --ink: var(--yw-cocoa);
  --ink-2: var(--yw-cocoa-soft);
  --rule: var(--yw-sand-deep);          /* тонкие линии между строками и разделами */

  --display: "Unbounded", "Unbounded Fallback", "Arial Black", sans-serif;
  --text: "Onest", "Helvetica Neue", Arial, sans-serif;

  /* четыре размера шрифта */
  --fs-s: .875rem;                                   /* подписи, кнопки, меню */
  --fs-t: 1.0625rem;                                 /* текст */
  --fs-h: 1.5rem;                                    /* заголовок раздела */
  --fs-d: clamp(2.375rem, 1.9rem + 2.2vw, 3rem);     /* главный заголовок страницы */

  --gut: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --hdr: 60px;
  --sec: 64px;                           /* поле раздела сверху и снизу */
  --r-s: 12px;                           /* кнопки, поля, этикетка */
  --r-l: 20px;                           /* крупные плашки */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);   /* выезд карточки вещи снизу */
  --fast: .15s;
  --slow: .25s;
  --print: .6s;                          /* «печать» одной вещи в каталоге */
  color-scheme: only light;
}

/* ───────── основа ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--yw-sand); color: var(--ink); font: 400 var(--fs-t)/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
h1, h2, h3, h4 { font: inherit; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .22em; }
b, strong { font-weight: 600; }
i { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--yw-sand); }
::selection { background: var(--yw-cocoa); color: var(--yw-sand); }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -80px; z-index: 100; padding: 12px 16px; border-radius: var(--r-s); background: var(--yw-cocoa); color: var(--yw-sand); font: 500 var(--fs-s)/1.2 var(--display); }
.skip:focus { top: 8px; }

/* ───────── типографика ───────── */
.display { font: 500 var(--fs-d)/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.h2 { font: 500 var(--fs-h)/1.2 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.h3 { font: 500 var(--fs-t)/1.35 var(--display); }
.lead { max-width: 34em; text-wrap: pretty; }
.note, .kicker, .cap { font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.note { max-width: 44em; text-wrap: pretty; }
.prose p + p { margin-top: 12px; }
.prose { max-width: 38em; text-wrap: pretty; }
.link { color: var(--yw-terracotta-ink); font-weight: 500; text-decoration-line: underline; }
/* ссылка-действие на своей строке: зона нажатия под палец, вид тот же */
.try__order .link, .sec__body > p > .link:only-child, .notfound .link { display: inline-block; padding-block: 12px; margin-block: -12px; }
/* переносы — только на узком экране и только в мелком тексте */
@media (max-width: 559px) {
  :lang(ru) p, :lang(ru) dd, :lang(ru) li { hyphens: auto; hyphenate-limit-chars: 10 6 4; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 4; }
  h1, h2, h3, .btn, .nav a, dt, :lang(ru) .lead { hyphens: manual; }
}

/* точка — как в логотипе: круг на базовой линии. Одна на экран. */
.dot { display: inline-block; width: .2em; height: .2em; margin-left: .07em; border-radius: 50%; background: var(--yw-terracotta); }
.nb { white-space: nowrap; } /* последнее слово заголовка и точка не расходятся по строкам */

/* пометки черновика: [вписать своё], ? — вычитать носителю, место под фото */
.todo { background: var(--yw-honey-tint); color: inherit; border-radius: 4px; padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.check { margin-left: .15em; font: 700 .7em/1 var(--text); color: var(--yw-terracotta-ink); letter-spacing: 0; }
.draft-tag { position: fixed; left: 12px; bottom: 12px; z-index: 60; padding: 8px 12px; border: 1px solid var(--ink); border-radius: var(--r-s); background: var(--yw-paper); font: 500 var(--fs-s)/1.3 var(--text); }
.draft-note, .ph-note { display: inline-block; max-width: 44em; padding: 8px 12px; border-radius: var(--r-s); background: var(--yw-honey-tint); font-size: var(--fs-s); line-height: 1.5; }

/* ───────── кнопки ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 1.5px solid var(--yw-cocoa); border-radius: var(--r-s); background: var(--yw-cocoa); color: var(--yw-sand); font: 500 var(--fs-s)/1.2 var(--display); text-align: center; text-decoration: none; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn:active { transform: scale(.98); }
.btn, .menu-btn, .lang a, .qa summary, .swatch { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.menu-btn:active { color: var(--ink-2); }
.lang a:active, .link:active { color: var(--ink); }
.qa summary:active { color: var(--yw-terracotta-ink); }
.contact a:active .contact__v, .ftr__nav a:active, .ftr__links a:active { text-decoration: underline; }
.btn--ghost { background: transparent; color: var(--yw-cocoa); }
.actions { display: flex; flex-direction: column; gap: 8px; }
/* кнопка «Написать», закреплённая внизу экрана телефона. Видна, пока на экране нет другой кнопки заказа. */
.bar { position: fixed; inset: auto 0 0; z-index: 40; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--yw-sand); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), visibility 0s var(--slow); }
.bar { transition-duration: .15s, .15s, 0s; transition-delay: 0s, 0s, .15s; }
.bar.is-on { visibility: visible; opacity: 1; transform: none; transition-duration: .25s, .25s, 0s; transition-delay: 0s; }
.bar .btn { display: flex; width: 100%; }
.menu-open .bar { display: none; }
@media (max-width: 759px) {
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .bar.is-on ~ .draft-tag { bottom: 80px; }
}

/* ───────── шапка ───────── */
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); background: var(--yw-sand); }
.hdr__in { display: flex; align-items: center; gap: 8px; height: var(--hdr); }
.hdr__logo { display: grid; align-items: center; flex: none; min-height: 44px; margin-left: -10px; margin-right: auto; }  /* −10px: поле внутри файла логотипа */
.hdr__logo img { width: 152px; }

.lang { display: flex; flex: none; }
.lang a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; font: 500 var(--fs-s)/1 var(--display); color: var(--ink-2); text-decoration: none; }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .4em; }

.menu-btn { flex: none; min-height: 44px; margin-right: -8px; padding: 0 8px; border: 0; background: none; color: inherit; font: 500 var(--fs-s)/1 var(--display); cursor: pointer; }

.nav__list a { display: block; padding: 12px 0; font: 500 var(--fs-h)/1.2 var(--display); letter-spacing: -.02em; text-decoration: none; }
.nav__list a[aria-current] { color: var(--yw-terracotta-ink); }
.nav__cta { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
/* без скрипта меню — обычный список под шапкой; со скриптом — панель на весь экран */
html:not(.js) .hdr__in { flex-wrap: wrap; height: auto; min-height: var(--hdr); }
html:not(.js) .nav { order: 5; flex: 0 0 100%; padding-bottom: 12px; }
html:not(.js) .nav__list { display: flex; flex-wrap: wrap; gap: 0 16px; }
html:not(.js) .nav__list a { padding: 8px 0; font: 500 var(--fs-s)/1.5 var(--text); letter-spacing: 0; }
html:not(.js) .nav__cta { display: none; }
.js .nav { position: fixed; inset: calc(var(--hdr) + 1px) 0 0; z-index: 49; padding: 24px var(--gut) 48px; overflow-y: auto; background: var(--yw-sand); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), visibility 0s var(--slow); }
.js .nav { transition-duration: .15s, .15s, 0s; transition-delay: 0s, 0s, .15s; }
.js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-duration: .25s, .25s, 0s; transition-delay: 0s; }
.menu-open body { overflow: hidden; }

/* ───────── первый экран ───────── */
.hero { padding-block: 24px 48px; }
.hero__copy > .kicker { margin-bottom: 12px; }
.hero__stage { position: relative; font-size: clamp(1.625rem, 8.6vw, var(--fs-d)); }   /* на телефоне чуть мельче: заголовок в четыре строки */
.hero__title { font: 500 1em/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero__lead { margin-top: 16px; max-width: 30em; }
.hero .actions { margin-top: 24px; }
.hero__note { margin-top: 12px; }
/* точка-сопло: «печатает» заголовок и встаёт в его конец */
.nozzle { position: absolute; left: 0; top: 0; width: .2em; height: .2em; border-radius: 50%; background: var(--yw-terracotta); pointer-events: none; will-change: transform; }
.hero-wait [data-print-hero] { visibility: hidden; }
[data-print-hero].is-printing .dot { visibility: hidden; }

/* полка первого экрана: четыре разные вещи, вся плашка ведёт в каталог */
.hero__shelf { margin-top: 32px; }
.hero__shelf .peek__shelf { padding: 28px 12px 0; }
/* брелок с именем: стоит в разделе цен, под прайсом */
.try__panel { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--yw-sand-deep); }
.try__stage { padding: 32px 24px; }
.tag { position: relative; display: flex; align-items: center; width: min(93%, 400px); transform: translateX(3.5%); aspect-ratio: 5 / 2; margin-inline: auto; padding: 0 7% 0 24%; border-radius: var(--r-l); background: var(--tag, var(--yw-terracotta)); transition: background-color var(--slow) var(--ease); }
.tag[data-color="powder"] { --tag: var(--yw-powder); }
.tag[data-color="honey"] { --tag: var(--yw-honey); }
.tag[data-color="olive"] { --tag: var(--yw-olive); }
.tag::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(59, 42, 35, .22); border-radius: var(--r-s); pointer-events: none; }   /* бортик брелока */
.tag__hole { position: absolute; left: 8%; top: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--yw-sand-deep); transform: translateY(-50%); }
.tag__ring { position: absolute; left: -7%; top: 50%; width: 22%; aspect-ratio: 1; border: 3px solid var(--yw-cocoa-soft); border-radius: 50%; transform: translateY(-50%); }
.tag__name { display: block; width: 100%; overflow: hidden; color: var(--yw-cocoa); font: 700 calc(var(--fs, 36) * 1px)/1.25 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.try__card { padding: 16px 24px 24px; background: var(--yw-paper); }
.try__card > * + * { margin-top: 12px; }
.try__form { display: grid; gap: 16px; }
html:not(.js) .try__form, html:not(.js) .namebar { display: none; }
.field { display: block; }
.field__label { display: block; margin-bottom: 8px; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.field__input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--ink-2); border-radius: var(--r-s); background: var(--yw-sand); color: var(--ink); font: 500 var(--fs-t)/1.2 var(--display); }
.field__input::placeholder { color: var(--ink-2); opacity: 1; }
.field__input:focus-visible { outline-offset: 2px; border-color: var(--ink); border-radius: var(--r-s); }
.swatches__row { display: flex; gap: 4px; margin-left: -8px; }
.swatch { position: relative; display: grid; place-items: center; width: 44px; height: 52px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px var(--yw-cocoa-soft); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.swatch:active .swatch__dot { transform: scale(.92); }
.swatch--terracotta { --c: var(--yw-terracotta); }
.swatch--powder { --c: var(--yw-powder); }
.swatch--honey { --c: var(--yw-honey); }
.swatch--olive { --c: var(--yw-olive); }
.swatch input:checked + .swatch__dot { outline-color: var(--ink); }
.swatch input:focus-visible + .swatch__dot { outline-color: var(--ink); outline-width: 3px; outline-offset: 4px; }
.try__price { font-size: var(--fs-s); line-height: 1.5; }
.try__order { font-size: var(--fs-s); line-height: 1.5; }
.try__cap { margin-top: 12px; }
.try__cap b { color: var(--ink); }

/* ───────── разделы ───────── */
.sec > .wrap { padding-block: var(--sec); border-top: 1px solid var(--rule); }
.sec__head > * + * { margin-top: 12px; }
.sec__body { margin-top: 24px; }
.sec__body > * + * { margin-top: 24px; }
.sub > * + * { margin-top: 12px; }
.sec__body > .sub { margin-top: 48px; }

/* строки «вещь — цена» */
.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.rows > div:first-child { padding-top: 0; border-top: 0; }
.rows > div:last-child { padding-bottom: 0; }
.rows dt { flex: 1 1 8em; }
.rows dd { flex: 0 1 auto; margin-left: auto; font-weight: 600; text-align: right; }
/* «слово — что оно значит» */
.rows--term > div { justify-content: flex-start; }
.rows--term dt { flex: 0 0 5em; font: 500 var(--fs-t)/1.35 var(--display); }
.rows--term dd { flex: 1 1 14em; margin-left: 0; font-weight: 400; text-align: left; }

/* простой список и список «термин — пояснение» */
.list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.list li:first-child { padding-top: 0; border-top: 0; }
.list li:last-child { padding-bottom: 0; }
.defs > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.defs > div:first-child { padding-top: 0; border-top: 0; }
.defs > div:last-child { padding-bottom: 0; }
.defs dt { font: 500 var(--fs-t)/1.35 var(--display); }
.defs dt .cap { display: block; margin-bottom: 4px; font-family: var(--text); font-weight: 400; }
.defs dd { margin-top: 4px; }
.defs dd, .list li, .step p { max-width: 38em; text-wrap: pretty; }

/* прайс по линейкам: слева линейка, справа вещи и цены */
.pricelist { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
.pl + .pl { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
.pl__head > * + * { margin-top: 4px; }
.pl__logo { height: 32px; width: auto; margin-left: -9px; }   /* −9px: поле внутри файла логотипа */
.pl__who { font-weight: 500; }
.lines__more { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
/* вход в каталог: полка с четырьмя вещами, вся плашка — одна ссылка */
.peek { --wall: var(--yw-sand-deep); display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--wall); text-decoration: none; }
.peek__shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 8px 0; border-bottom: 4px solid var(--ink); }
.peek__art svg { display: block; width: 100%; max-width: 112px; height: auto; margin-inline: auto; overflow: visible; transition: transform var(--fast) var(--ease); }
.peek__text { display: block; padding: 16px 20px 20px; background: var(--yw-paper); }
.peek__title { display: block; color: var(--yw-terracotta-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .22em; }
.peek__note { display: block; margin-top: 4px; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.peek:active .peek__art svg { transform: translateY(-2px); }

/* как заказать */
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-top: 1px solid var(--rule); }
.step:first-child { padding-top: 0; border-top: 0; }
.step__n { font: 500 var(--fs-t)/1.35 var(--display); color: var(--ink-2); }
.step p { grid-column: 2; margin-top: 4px; }

/* этикетка «Сейчас в мастерской» */
.label { max-width: 26rem; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--yw-paper); font-size: var(--fs-s); line-height: 1.4; }
.sec__head > .label { margin-top: 24px; }
.label__title { font: 500 var(--fs-s)/1.4 var(--display); }
.label__rows { margin-top: 12px; }
.label__rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.label__rows dt { color: var(--ink-2); }
.label__rows dd { font-weight: 600; }
.label__upd { padding-top: 8px; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* вопросы */
.faq { border-bottom: 1px solid var(--rule); }
.qa { border-top: 1px solid var(--rule); }
.qa:first-child { border-top: 0; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; font: 500 var(--fs-t)/1.35 var(--display); cursor: pointer; list-style: none; }
.qa:first-child summary { padding-top: 0; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__ic { position: relative; flex: none; width: 16px; height: 16px; }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform var(--slow) var(--ease); }
.qa__ic::after { transform: rotate(90deg); }
.qa[open] .qa__ic::after { transform: rotate(0deg); }
.qa__a { max-width: 40em; padding: 0 0 20px; }

/* контакты */
.contact a { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.contact li:first-child a { padding-top: 0; border-top: 0; }
.contact__k, .contact__n { font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.contact__v { justify-self: start; font: 500 var(--fs-h)/1.2 var(--display); letter-spacing: -.02em; }
.place { max-width: 38em; }
.place > * + * { margin-top: 4px; }

/* подвал — единственная тёмная плашка */
.ftr { padding-block: 48px 64px; background: var(--yw-cocoa); color: var(--yw-sand); font-size: var(--fs-s); line-height: 1.5; }
.ftr__in { display: grid; gap: 32px; }
.ftr__brand img { width: 176px; margin-left: -20px; }   /* −20px: поле внутри файла логотипа */
.ftr__tag { margin-top: 12px; }
.ftr__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ftr__nav a, .ftr__links a { display: inline-block; padding: 12px 0; text-decoration: none; }
.ftr__links b { margin-right: .4em; }
.ftr__small + .ftr__small { margin-top: -24px; }

/* ───────── внутренние страницы ───────── */
.page-hero { padding-block: 32px 48px; }
.page-hero .kicker { margin-bottom: 12px; }
.page-hero .lead { max-width: 38em; margin-top: 16px; }
.page-hero .draft-note { margin-top: 16px; }
.page-hero .actions { margin-top: 24px; }
/* прайс для компаний: на телефоне три цены в ряд под названием, с 760px — обычная таблица */
.price, .price caption, .price tbody, .price th, .price td { display: block; }
.price { width: 100%; }
.price caption { padding-bottom: 12px; text-align: left; }
.price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.price tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.price tbody th { grid-column: 1 / -1; font: 500 var(--fs-t)/1.35 var(--display); text-align: left; }
.price tbody th small { display: block; max-width: 36em; margin-top: 4px; font: 400 var(--fs-s)/1.5 var(--text); color: var(--ink-2); }
.price td { font-weight: 600; white-space: nowrap; }
.price td::before { content: attr(data-label); display: block; font: 400 var(--fs-s)/1.5 var(--text); color: var(--ink-2); }
.dates li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--rule); }
.dates li:first-child { padding-top: 0; border-top: 0; }
.dates b { font: 500 var(--fs-t)/1.35 var(--display); }
.faq--page { max-width: 54rem; }
.closing > * + * { margin-top: 12px; }
.closing .actions { margin-top: 24px; }
.notfound { padding-block: 48px 96px; }
.notfound .wrap > * + * { margin-top: 16px; }
.notfound [lang="ru"] { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.notfound [lang="ru"] > * + * { margin-top: 12px; }


/* ───────── каталог: дом по комнатам ─────────
   Комната — стена с полками. Вещь стоит на полке, под полкой висит бирка с названием и ценой.
   Цвет вещей в комнате — цвет её линейки (--c). */
.namebar { max-width: 26rem; margin-top: 24px; }
.namebar .note { margin-top: 8px; }
.rooms { margin-top: 24px; }
.rooms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink-2); border-radius: var(--r-s); font-size: var(--fs-s); font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.rooms a:active { background: var(--yw-paper); }

.art-defs { position: absolute; }
.rooms__cap { margin-top: 16px; }
.rooms__cap b { color: var(--ink); }
.room { --wall: var(--yw-sand-deep); }
.room__who { font-weight: 500; }
/* цвет рисунка — один из четырёх цветов пластика в палитре */
[data-color="terracotta"] { --c: var(--yw-terracotta); }
[data-color="olive"] { --c: var(--yw-olive); }
[data-color="honey"] { --c: var(--yw-honey); }
[data-color="powder"] { --c: var(--yw-powder); }

.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; overflow: hidden; padding: 24px 0; border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--wall); }
.thing { min-width: 0; }
.thing__pick { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.thing__pick:disabled { cursor: default; }
.thing__art { position: relative; display: block; padding: 0 12px; border-bottom: 4px solid var(--ink); }   /* нижняя граница — доска полки */
.thing:last-child .thing__art::after { content: ""; position: absolute; left: 100%; bottom: -4px; width: 100vw; height: 4px; background: var(--ink); }   /* доска идёт до стены */
.thing__art svg { display: block; width: 100%; max-width: 136px; height: auto; margin-inline: auto; overflow: visible; transition: transform var(--fast) var(--ease); }
.thing__tag { position: relative; display: block; margin: 12px 8px 0; padding: 8px 12px 8px 24px; border-radius: var(--r-s); background: var(--yw-paper); font-size: var(--fs-s); line-height: 1.35; transition: background-color var(--fast) var(--ease); }
.thing__tag::before { content: ""; position: absolute; left: 10px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--wall); }   /* отверстие бирки */
.thing__name { display: block; font-weight: 600; }
.thing__price { display: block; color: var(--ink-2); }
.thing__pick:focus-visible { outline: none; }
.thing__pick:focus-visible .thing__tag { outline: 2px solid var(--ink); outline-offset: 2px; }
.thing__pick:active .thing__art svg { transform: translateY(-2px) scale(.98); }
/* подробности вещи: со скриптом они открываются в карточке, без скрипта стоят под биркой */
.js .thing__more { display: none; }
.js .thing.is-open .thing__more { display: block; }
.thing__more { margin: 12px 8px 0; font-size: var(--fs-s); line-height: 1.5; }
.thing__more > * + * { margin-top: 8px; }
.thing__more .h2, .thing__more .kicker { display: none; }
.thing__more .actions { display: none; }
.thing__cost { font-weight: 600; }
.facts > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.thing__more .facts > div { padding: 8px 0; }

/* краски рисунков. Узор слоёв #lay лежит в самой странице. */
.c-line { fill: var(--c); }
.c-ink { fill: var(--yw-cocoa); }
.c-soft { fill: var(--yw-cocoa-soft); }
.c-paper { fill: var(--yw-paper); }
.c-sand { fill: var(--yw-sand); }
.c-wall { fill: var(--wall); }
.c-glow { fill: var(--yw-honey-tint); }
.c-shade { fill: rgba(59, 42, 35, .16); }
.c-light { fill: rgba(251, 247, 241, .45); }
.c-lay { fill: rgba(59, 42, 35, .13); }
.s-line { fill: none; stroke: var(--c); }
.s-ink { fill: none; stroke: var(--yw-cocoa); }
.s-soft { fill: none; stroke: var(--yw-cocoa-soft); }
.s-paper { fill: none; stroke: var(--yw-paper); }
.s-rim { fill: none; stroke: rgba(59, 42, 35, .24); }
/* размер текста на рисунке задан в самом рисунке (font-size), поэтому здесь его нет */
.t-name { fill: var(--yw-cocoa); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.t-name--light { fill: var(--yw-paper); }
.t-mark { fill: var(--yw-cocoa); font-family: var(--display); font-weight: 600; }
.t-mark--light { fill: var(--yw-paper); }
.t-up { text-transform: uppercase; }
.t-out { fill: none; stroke: var(--c); font-family: var(--display); font-weight: 700; }      /* контурная цифра или буква: вырубка */
.m { transform-box: fill-box; transform-origin: 50% 0; }      /* часть рисунка, которая двигается в карточке */
.m--mid { transform-origin: 50% 50%; }
.m--base { transform-origin: 50% 100%; }

/* карточка вещи: на телефоне выезжает снизу, на широком экране стоит по центру */
.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: fit-content; max-height: none; margin: auto 0 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.sheet::backdrop { background: rgba(59, 42, 35, .45); }
.sheet__in { position: relative; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--yw-paper); }
.sheet__stage { --wall: var(--yw-sand-deep); display: grid; place-items: center; padding: 24px 24px 0; background: var(--wall); }
.sheet__stage svg { display: block; width: min(46%, 184px); height: auto; overflow: visible; border-bottom: 4px solid var(--ink); box-sizing: content-box; padding-inline: 27%; }
.sheet__body { padding: 20px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet__body > * + * { margin-top: 12px; }
.sheet__body .actions { margin-top: 16px; }
.sheet__body .facts { margin-top: 20px; }
.sheet__close { position: absolute; right: 8px; top: 8px; z-index: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: var(--yw-paper); color: inherit; font: 500 var(--fs-s)/1 var(--display); cursor: pointer; }
.sheet-open body { overflow: hidden; }
.sheet-open .bar { display: none; }

/* ───────── движение ─────────
   «Печать» вещей каталога и отклик на действие. Раскрытие ответа — там, где браузер это умеет. */
@keyframes print-up { from { clip-path: inset(100% -8px -8px -8px); } to { clip-path: inset(-8px); } }
@keyframes print-line { from { transform: translateY(100%); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes sheet-pop { from { opacity: 0; transform: scale(.97); } }
@keyframes sheet-out { to { opacity: 0; } }
@keyframes veil-in { from { opacity: 0; } }
@keyframes veil-out { to { opacity: 0; } }
@keyframes move-sway { 0% { transform: rotate(0); } 25% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 85% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
@keyframes move-spin { from { transform: rotate(0); } to { transform: rotate(60deg); } }
@keyframes move-nod { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-7deg); } 70% { transform: rotate(2deg); } }
@keyframes move-glow { from { opacity: 0; } to { opacity: 1; } }
@keyframes move-press { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(5px); } }
@media (prefers-reduced-motion: no-preference) {
  /* комната ждёт своей очереди: рисунки спрятаны, подписи и цены на месте */
  .house-wait .room:first-child .thing__art svg, .room.is-waiting .thing__art svg { clip-path: inset(100% 0 0 0); }
  .room.is-printing .thing__art svg { animation: print-up var(--print) var(--ease) var(--d, 0s) both; }
  .room.is-printing .thing__art::before { content: ""; position: absolute; inset: 0 14%; background: linear-gradient(var(--yw-terracotta), var(--yw-terracotta)) top / 100% 2px no-repeat; pointer-events: none; animation: print-line var(--print) var(--ease) var(--d, 0s) both; }
  .thing:nth-child(2) { --d: .07s; }
  .thing:nth-child(3) { --d: .13s; }
  .thing:nth-child(4) { --d: .18s; }
  .thing:nth-child(5) { --d: .22s; }
  .thing:nth-child(n+6) { --d: .25s; }
  .sheet[open] .sheet__in { animation: sheet-up .32s var(--ease-sheet) both; }
  .sheet[open]::backdrop { animation: veil-in .2s ease-out both; }
  .sheet.is-closing .sheet__in { animation: sheet-down .2s var(--ease) both; }
  .sheet.is-closing::backdrop { animation: veil-out .2s ease-out both; }
  .sheet__stage.is-alive svg { animation: print-up .7s var(--ease) .12s both; }
  .sheet[data-move="sway"] .is-alive .m { animation: move-sway 1.1s var(--ease) .8s both; }
  .sheet[data-move="spin"] .is-alive .m { animation: move-spin .7s var(--ease) .8s both; }
  .sheet[data-move="nod"] .is-alive .m { animation: move-nod .9s var(--ease) .8s both; }
  .sheet[data-move="glow"] .is-alive .m { animation: move-glow .6s ease-out .8s both; }
  .sheet[data-move="press"] .is-alive .m { animation: move-press .7s var(--ease) .8s both; }
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--ink); }
  .btn:hover { background: var(--yw-cocoa-soft); border-color: var(--yw-cocoa-soft); }
  .btn--ghost:hover { background: var(--yw-paper); border-color: var(--yw-cocoa); }
  .lang a:hover { color: var(--ink); }
  .qa summary:hover { color: var(--yw-terracotta-ink); }
  .contact a:hover .contact__v { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; }
  .ftr__nav a:hover, .ftr__links a:hover { text-decoration: underline; }
  .rooms a:hover { background: var(--yw-paper); border-color: var(--ink); }
  .peek:hover .peek__art svg { transform: translateY(-4px); }
  .peek:hover .peek__title { color: var(--ink); }
  .thing__pick:not(:disabled):hover .thing__art svg { transform: translateY(-4px); }
  .thing__pick:not(:disabled):hover .thing__name { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .22em; }
  .sheet__close:hover { background: var(--yw-sand); }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .qa { interpolate-size: allow-keywords; }
    .qa::details-content { block-size: 0; overflow: hidden; transition: block-size var(--slow) var(--ease), content-visibility var(--slow) allow-discrete; }
    .qa[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { opacity: 1; transition: opacity .2s var(--ease); }
  @starting-style { .qa[open] .qa__a { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ───────── шире телефона ───────── */
@media (min-width: 560px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .nav__cta { flex-direction: row; gap: 12px; }
  .try__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

@media (min-width: 760px) {
  :root { --fs-t: 1.125rem; --fs-h: 1.75rem; --gut: max(32px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --hdr: 68px; --sec: 96px; }
  .bar { display: none; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; padding: 32px 0; }
  .thing__tag { margin-inline: 12px; }
  .sheet { width: min(100% - 64px, 880px); margin: auto; }
  .sheet__in { display: grid; grid-template-columns: 5fr 7fr; max-height: min(86vh, 640px); overflow: hidden; border-radius: var(--r-l); }
  .sheet__stage { align-content: center; padding: 32px 24px; }
  .sheet__stage svg { width: 64%; padding-inline: 18%; }
  .sheet__body { max-height: min(86vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 48px 32px 32px; }
  .sheet[open] .sheet__in { animation-name: sheet-pop; animation-duration: .2s; animation-timing-function: var(--ease); }
  .sheet.is-closing .sheet__in { animation-name: sheet-out; animation-duration: .15s; }
  .hero { padding-block: 48px 64px; }
  .try { max-width: 520px; }
  .peek { max-width: 520px; }
  .page-hero { padding-block: 48px 64px; }
  .contact a { grid-template-columns: 8em minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; }
  .defs--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .defs--2 > div:nth-child(2) { padding-top: 0; border-top: 0; }
  .defs--2 > div:nth-last-child(2):nth-child(odd) { padding-bottom: 0; }
  .dates li { grid-template-columns: 11em minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .ftr__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
  .ftr__brand { grid-column: 1 / span 4; }
  .ftr__nav { grid-column: 5 / span 4; }
  .ftr__nav ul { grid-template-columns: 1fr; }
  .ftr__links { grid-column: 9 / -1; }
  .ftr__small { grid-column: 1 / span 4; }
  .ftr__small + .ftr__small { grid-column: 5 / -1; margin-top: 0; }
  .price { display: table; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .price caption { display: table-caption; }
  .price thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; }
  .price tbody { display: table-row-group; }
  .price tr { display: table-row; border: 0; }
  .price th, .price td { display: table-cell; padding: 16px 0 16px 24px; border-top: 1px solid var(--rule); text-align: right; vertical-align: top; }
  .price thead th { padding-block: 0 8px; border-top: 0; font: 400 var(--fs-s)/1.5 var(--text); color: var(--ink-2); white-space: nowrap; }
  .price th:first-child { padding-left: 0; text-align: left; }
  .price td::before { content: none; }
}

@media (min-width: 1000px) {
  :root { --gut: max(48px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .hero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .hero__copy { grid-column: 1 / span 6; }
  .hero__shelf { grid-column: 8 / -1; margin-top: 0; }
  .hero__shelf .peek { max-width: none; }
  .hero__shelf .peek__art svg { max-width: 128px; }
  .hero__shelf .peek__shelf { padding-top: 48px; }
  .sec__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .sec__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }   /* название раздела остаётся на виду, пока идёт раздел */
  .sec__body { grid-column: 5 / -1; margin-top: 0; }
}

@media (min-width: 1240px) {
  .menu-btn { display: none !important; }
  .hdr__in { gap: 16px; }
  .hdr__logo { margin-right: 0; }
  .js .nav, .nav { position: static; flex: 1; padding: 0; overflow: visible; background: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav__list { display: flex; justify-content: center; gap: 4px; }
  .nav__list a { padding: 12px; font: 500 var(--fs-s)/1.5 var(--text); letter-spacing: 0; }
  .nav__list a:hover { text-decoration: underline; }
  .nav__list a[aria-current] { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .4em; }
  .nav__cta { display: none; }
  html:not(.js) .hdr__in { flex-wrap: nowrap; height: var(--hdr); }
  html:not(.js) .nav { order: 0; flex: 1; padding: 0; }
  html:not(.js) .nav__list { gap: 4px; }
  html:not(.js) .nav__list a { padding: 12px; }
}

/* ───────── узкие телефоны и окно ноутбука ───────── */
@media (min-width: 360px) { .menu-btn { min-width: 92px; text-align: right; } }   /* «Меню» и «Закрыть» одной ширины: язык не прыгает */
@media (max-width: 374px) { .hdr__logo img { width: 124px; } }
@media (max-width: 359px) {
  :root { --fs-d: 2rem; }
  .hdr__logo img { width: 112px; }
  .hdr__in { gap: 4px; }
}
@media (min-width: 1000px) { .faq--page { max-width: none; margin-left: calc(100% / 3 + 8px); } }
@media (min-width: 1240px) { .menu-btn { min-width: 0; } }

@media print {
  .hdr, .draft-tag, .actions, .bar, .try__form, .nozzle, .namebar, .rooms, .sheet { display: none !important; }
  .js .thing__more { display: block; }
  .ftr { background: none; color: inherit; }
}
