/* Rist — концепція 1 «Одвірок», перший екран r2 (вибір користувача 16.11.2026).
   Яскрава тепла палітра: абрикос, соняшник, листя й томатний акцент на чорнильно-сливовому (темна) і теплому кремовому (світла).
   Rubik для тексту, Caveat — рукописні позначки олівцем на шкалі. М'які кути, таблетки, головна кнопка з «підошвою».
   Колір марки — --accent (міняти разом зі знаком, див. brand.js). */
:root {
  --bg: #1C1524; --alt: #241B2D; --surface: #2A2133; --surface-2: #352A40; --text: #FFF6EC; --muted: #CBBFD4;
  --rule: rgba(255, 246, 236, .16); --rule-2: rgba(255, 246, 236, .3);
  --accent: #FF7A5C; --accent-ink: #1C0F0A; --accent-text: #FF9479; --ink: #24182B; --paper: #FFF6EC;
  --apricot: #FFB27A; --sun: #FFC53D; --leaf: #6CC48A; --knob: #4A3A5C;
  --ph: #E8E8E6; --err: #FF9C8F; --ok: #8FDCA8;
  --plank: #1C1524; --plank-edge: #45374F; --pencil: #D8CCE0;
  --r: 18px; --r-l: 26px; --gutter: clamp(16px, 4vw, 56px); --max: 1328px;
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Caveat", "Segoe Print", cursive;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #FFF8EF; --alt: #FFF1E2; --surface: #FFFFFF; --surface-2: #FCEBDD; --text: #24182B; --muted: #5E4F66;
  --rule: rgba(36, 24, 43, .14); --rule-2: rgba(36, 24, 43, .3);
  --accent: #C8432A; --accent-ink: #FFFFFF; --accent-text: #B23A22; --knob: #FFC53D;
  --err: #B3261E; --ok: #1F7A43;
  --plank: #FFFFFF; --plank-edge: #F4D9C4; --pencil: #5E4F66;
  color-scheme: light;
}
:lang(zh-Hans) { --sans: "Rubik", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --hand: "Caveat", "Noto Sans SC", sans-serif; }
:lang(ja) { --sans: "Rubik", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; --hand: "Caveat", "Noto Sans JP", sans-serif; }
:lang(zh-Hans) body, :lang(ja) body { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .btn, :lang(ja) summary { word-break: auto-phrase; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 18px; background: var(--surface); border-radius: 22px; }
.skip:focus { left: 16px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.hint { color: var(--muted); font-size: 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 46ch; }

/* ---------- Іконки: файл Codex маскою кольору тексту, поки його немає — контур із розмітки ---------- */
.ico { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; }
.ico > svg.fb { width: 100%; height: 100%; }
.ico[style] { background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico[style] > svg.fb, .ico.as-img > svg.fb { display: none; }
.ico.as-img img { display: block; width: 100%; height: 100%; }
[data-theme="dark"] .ico.as-img img { filter: invert(1) brightness(.94); }
.ico.is-missing:not(:has(svg))::after { content: attr(data-fb); font: 500 16px/1 var(--sans); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 2px solid var(--rule-2); border-radius: 999px; background: transparent; color: var(--text); font: 700 16px/1.15 var(--sans);
  text-decoration: none; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--text); }
.btn-l { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 50%, #000); }
.btn-primary:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 50%, #000); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 50%, #000); }
.btn-primary[aria-disabled="true"] { background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); box-shadow: none; transform: none; cursor: default; }
.btn-ghost { border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-line:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn-wide { width: 100%; }
.btn .ico { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; }
.link-arrow::after { content: "→"; text-decoration: none; }
.link-btn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 500 14px/1.2 var(--sans); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rule-2); background: none; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; font: 500 20px/1 var(--sans); }
.round:hover:not(:disabled) { border-color: var(--text); }
.round:disabled { opacity: .4; cursor: default; }
.round .ico { width: 18px; height: 18px; }

/* ---------- Поля ---------- */
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 15px; padding: 0; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .select-box select, .rv-dialog input, .rv-dialog textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid var(--rule-2); border-radius: 14px; background: var(--surface); color: var(--text); font: 400 16px/1.4 var(--sans); }
.field textarea, .rv-dialog textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .select-box select:focus, .rv-dialog input:focus, .rv-dialog textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--text); }
.field.invalid input { border-color: var(--err); }
.err { color: var(--err); font-size: 14px; font-weight: 500; }
.select-box { position: relative; display: block; }
.select-box select { appearance: none; padding-right: 44px; cursor: pointer; border-radius: 999px; font-weight: 500; }
.select-box::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-box select:disabled { opacity: .55; cursor: default; }
.radio, .check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 16px; }
.radio input, .check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }

/* ---------- Шапка ---------- */
header.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.top-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none; }
.logo { height: 38px; width: auto; display: block; }
.brand .logo-light, [data-theme="light"] .brand .logo-dark { display: none !important; }
[data-theme="light"] .brand.has-light .logo-light { display: block !important; }
.brand.has-dark .wordmark, .brand.has-light .wordmark { display: none; }
[data-theme="light"] .brand.has-dark:not(.has-light) .wordmark { display: inline; }
.wordmark { font: 800 30px/1 var(--sans); letter-spacing: -.04em; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 22px; white-space: nowrap; }
.main-nav a:hover { background: var(--surface); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 10px; border: 2px solid var(--rule); border-radius: 22px; background: none; color: var(--text); font: 700 15px/1 var(--sans); cursor: pointer; }
.pill:hover { border-color: var(--text); }
.icon-pill { width: 44px; padding: 0; justify-content: center; }
.lang-pick { position: relative; }
.lang-btn .ico-lang { color: var(--accent-text); width: 20px; height: 20px; }
.lang-btn .chev { width: 16px; height: 16px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; list-style: none; padding: 6px; min-width: 190px; background: var(--surface); border: 2px solid var(--rule); border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); }
.lang-list a[aria-current] { font-weight: 700; color: var(--accent-text); }
/* Таблетка теми: сонце й місяць, кругла «кнопка» їде під активну іконку */
.theme-btn { position: relative; width: 92px; height: 44px; padding: 0; border: 2px solid var(--rule); border-radius: 22px; background: var(--surface); color: var(--text); cursor: pointer; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; flex: none; }
.theme-btn:hover { border-color: var(--text); }
.theme-btn::before { content: ""; position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; border-radius: 50%; background: var(--knob); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
[data-theme="dark"] .theme-btn::before { transform: translateX(46px); }
.theme-btn .ico { position: relative; z-index: 1; width: 20px; height: 20px; }
.theme-btn .sun { color: var(--ink); }
[data-theme="dark"] .theme-btn .sun { color: var(--muted); }
[data-theme="light"] .theme-btn .moon { color: var(--muted); }
.cart-btn { min-height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 22px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--sans); display: inline-flex; align-items: center; gap: 9px; cursor: pointer; flex: none; }
.cart-btn:hover { filter: brightness(1.06); }
.cart-btn .ico { width: 20px; height: 20px; }
.cart-count { min-width: 28px; height: 28px; border-radius: 14px; background: var(--sun); color: var(--ink); display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; padding: 0 7px; }
.cart-btn.bump .cart-count { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.menu-panel { border-top: 1px solid var(--rule); background: var(--bg); padding: 10px var(--gutter) 18px; max-height: calc(100dvh - 70px); overflow: auto; }
.menu-panel nav { display: grid; }
.menu-panel nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.lang-links { margin-top: 14px; }
.lang-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lang-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 22px; text-decoration: none; }
.lang-links a[aria-current] { border-color: var(--accent); color: var(--accent-text); font-weight: 700; }

/* ---------- Фото й заглушки ---------- */
.ph { display: block; position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph img.is-missing { visibility: hidden; }
.ph-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); }
.ph-label b { font-weight: 500; font-size: 15px; max-width: 18ch; }
.ph-product { background: var(--ph); }
.ph-product .ph-label { color: #5E4F66; }

/* ---------- Розділи ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 28px; }
h2 { font: 800 clamp(32px, 3.4vw, 50px)/1.05 var(--sans); letter-spacing: -.03em; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }

/* 1. Перший екран */
.hero { padding: 20px 0 64px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font: 800 clamp(40px, 4.6vw, 70px)/1.0 var(--sans); letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
[data-theme="dark"] .hero h1 em { color: var(--sun); }
.lead { margin: 0 0 30px; color: var(--muted); font-size: 18px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.terms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.terms li { display: inline-flex; align-items: center; gap: 8px; }
.terms li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.t-sun { --c: var(--sun); } .t-leaf { --c: var(--leaf); } .t-apricot { --c: var(--apricot); }
.kids { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.kid-baby { --c: var(--apricot); } .kid-girls { --c: var(--sun); } .kid-boys { --c: var(--leaf); }
.kid a { display: block; position: relative; text-decoration: none; color: var(--ink); border-radius: var(--r-l); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.kid:nth-child(1) a { transform: rotate(-2.5deg); margin-top: 56px; }
.kid:nth-child(2) a { transform: rotate(1.5deg); }
.kid:nth-child(3) a { transform: rotate(-1deg); margin-top: 92px; }
.kid a:hover, .kid a:focus-visible { transform: rotate(0) translateY(-6px); }
.kid a:focus-visible { outline: 3px solid var(--text); outline-offset: 6px; }
.kid-ph { border-radius: var(--r-l); background: var(--c); }
.kid-ph img { object-position: 50% 30%; }
.kid-label { position: absolute; left: 8px; right: 8px; bottom: -22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 10px 10px 10px 14px; border-radius: 22px; background: var(--c); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.kid-label b { font: 800 clamp(18px, 1.6vw, 22px)/1.1 var(--sans); }
.kid-label small { grid-column: 1; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.kid-label .go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #FFF6EC; display: grid; place-items: center; }
.kid-label .go svg { width: 18px; height: 18px; }

/* 2. Розмір за зростом */
.sec-size { background: var(--surface); border-radius: 40px 40px 0 0; }
.size-in { display: grid; grid-template-columns: minmax(0, 5fr) 190px minmax(0, 6fr); gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.size-intro { display: grid; gap: 18px; align-content: center; }
.howto { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--bg); border-radius: var(--r); max-width: 46ch; }
.howto .ico { width: 26px; height: 26px; color: var(--accent-text); margin-top: 2px; }
.howto p { font-size: 15px; }
.howto strong { display: block; font-weight: 700; margin-bottom: 2px; }
.between { font: 600 24px/1.2 var(--hand); color: var(--accent-text); max-width: 32ch; }
.frame { position: relative; display: flex; justify-content: flex-end; }
.ruler { position: relative; width: calc(100% - 44px); max-width: 150px; height: clamp(500px, 66vh, 620px); background: var(--plank); border-radius: 6px 6px 0 0; box-shadow: inset -10px 0 0 var(--plank-edge); touch-action: none; cursor: ns-resize; }
.tick { position: absolute; left: 0; height: 1px; width: 14px; background: var(--pencil); opacity: .55; }
.tick.major { width: 30px; opacity: .9; }
.tick span { position: absolute; right: calc(100% + 10px); top: -9px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { position: absolute; right: 18px; transform: translateY(50%); display: flex; align-items: center; gap: 6px; font: 600 20px/1 var(--hand); color: var(--pencil); pointer-events: none; white-space: nowrap; }
.note::after { content: ""; width: 26px; height: 2px; background: var(--pencil); border-radius: 2px; opacity: .8; }
.mark { position: absolute; left: -10px; right: -10px; height: 0; transform: translateY(50%); outline: none; }
.mark .bar { position: absolute; left: 0; right: 0; top: -3px; height: 6px; background: var(--accent); border-radius: 3px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.mark .tag { position: absolute; right: calc(100% + 2px); top: -20px; white-space: nowrap; font: 600 30px/1 var(--hand); color: var(--accent-text); background: var(--surface); padding: 2px 4px; }
.mark .grip { position: absolute; left: calc(50% - 22px); top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: grab; }
.mark .grip svg { width: 20px; height: 20px; }
.mark:focus-visible .grip { outline: 3px solid var(--text); outline-offset: 3px; }
.floor { position: absolute; left: -24px; right: -24px; bottom: -1px; height: 2px; background: var(--rule); }
.result { background: var(--bg); border-radius: var(--r-l); padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 18px; }
.r-top { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; }
.r-label { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.big { font: 800 clamp(84px, 8.4vw, 128px)/.86 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.r-age { font-size: 20px; font-weight: 500; }
.r-why { margin-top: 2px; color: var(--muted); font-size: 15px; }
.r-next { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--accent-text); }
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper label { flex: 0 0 100%; font-size: 15px; font-weight: 500; }
.stepper input { width: 92px; height: 44px; border-radius: 22px; border: 2px solid var(--rule-2); background: var(--surface); color: var(--text); font: 600 18px/1 var(--sans); text-align: center; }
.stepper .unit { color: var(--muted); }
.picks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; gap: 6px; }
.pick-ph { display: block; }
.pick .ph { border-radius: 14px; }
.pick h3 { font: 500 14px/1.3 var(--sans); }
.pick h3 a { text-decoration: none; }
.pick h3 a:hover { text-decoration: underline; }
.pick .price { font-size: 15px; }
.pick .btn { width: 100%; min-height: 44px; padding: 0 10px; font-size: 14px; }
.size-table { grid-column: 1 / -1; background: var(--bg); border-radius: var(--r-l); padding: 0 clamp(18px, 2vw, 28px); }
.size-table summary, details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 700; font-size: 18px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--rule-2); display: grid; place-items: center; font-size: 20px; font-weight: 500; }
details[open] > summary::after { content: "−"; }
.size-table table, .measures { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table table { margin-bottom: 12px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
thead th { font-size: 14px; color: var(--muted); font-weight: 500; }
tbody th { font-weight: 800; }
tr.is-mine { background: color-mix(in srgb, var(--sun) 22%, transparent); }
.size-table .hint { padding-bottom: 20px; }

/* 3. Каталог */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 2px solid var(--rule-2); border-radius: 22px; background: none; color: var(--text); font: 500 15px/1 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.field-inline { grid-auto-flow: column; align-items: center; gap: 10px; }
.field-inline .select-box select { min-width: 170px; }
.cat-count { margin-left: auto; color: var(--muted); font-size: 15px; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 32px 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.card-ph { display: block; margin-bottom: 4px; }
.card-ph .ph { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.card-ph:hover .ph { transform: rotate(-1.2deg) scale(1.01); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--leaf); color: var(--ink); font-size: 13px; font-weight: 700; }
.badge-sale { background: var(--sun); }
.pd-tags .badge, .pp-info .badge { position: static; display: inline-block; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-line { color: var(--muted); font-size: 14px; }
.warm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.warm::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.warm-3::before { background: var(--apricot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--apricot) 35%, transparent); }
.buybox { display: grid; gap: 10px; margin-top: auto; }
.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes-l { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.sz-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sz { min-width: 44px; height: 44px; padding: 0 8px; border: 2px solid var(--rule-2); border-radius: 22px; background: none; color: var(--text); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.sz:hover:not(:disabled) { border-color: var(--text); }
.sz[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); font-weight: 800; }
.sz.out { color: var(--muted); text-decoration: line-through; border-style: dashed; cursor: not-allowed; opacity: .75; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-size: 18px; }
.price b { font-weight: 800; }
.price s { color: var(--muted); font-size: 15px; margin-left: 6px; }
.price-l { font-size: 28px; }
.buy .btn { min-height: 48px; padding: 0 18px; font-size: 15px; flex: 1 1 auto; }
.cat-empty { display: grid; gap: 14px; justify-items: start; padding: 28px; background: var(--surface); border-radius: var(--r-l); }

/* 4. Останні розміри */
.sec-sale { background: var(--sun); color: var(--ink); --text: #24182B; --muted: #4A3B52; --rule: rgba(36, 24, 43, .16); --rule-2: rgba(36, 24, 43, .35); --surface-2: #F0B52C; --accent-text: #A3341E; }
[data-theme="dark"] .sec-sale { --accent: #C8432A; --accent-ink: #FFFFFF; }
.sec-sale .sz[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFF6EC; }
.sec-sale .badge-sale { background: var(--ink); color: #FFF6EC; }
.sec-sale :focus-visible { outline-color: var(--ink); }
.sale-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sale-head { display: grid; gap: 14px; }
.sale-ph { border-radius: var(--r-l); transform: rotate(-1.5deg); margin-top: 10px; }

/* 5. Образи */
.look-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.look-tabs [role="tab"] { min-height: 48px; padding: 0 22px; border: 2px solid var(--rule-2); border-radius: 24px; background: none; color: var(--text); font: 700 16px/1 var(--sans); cursor: pointer; }
.look-tabs [role="tab"][aria-selected="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }
.look { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.look-stage { position: relative; }
.look-ph { border-radius: var(--r-l); background: var(--ph); }
.look-ph .ph-label { color: #5E4F66; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFF6EC; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--sans); cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .2s; }
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.pin.off { background: #FFF6EC; color: var(--ink); }
.look-side { display: grid; gap: 16px; background: var(--surface); border-radius: var(--r-l); padding: clamp(18px, 2vw, 26px); }
.look-note { color: var(--muted); font-size: 15px; }
.look-items { list-style: none; display: grid; }
.look-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rule); }
.look-items .check { flex: 1; }
.look-items .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.look-hint { font-size: 14px; color: var(--muted); }
.look-hint:empty { display: none; }

/* 6. Тканини */
.sec-fabric { background: var(--alt); }
.fabric-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.fabric-in h2 { margin-bottom: 12px; }
.rules { list-style: none; counter-reset: r; display: grid; gap: 18px; margin: 28px 0; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; }
.rules li::before { content: counter(r); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.rules b { font-size: 18px; }
.rules span { color: var(--muted); font-size: 15px; }
.care { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.care li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 14px; }
.care .ico { width: 30px; height: 30px; }
.macros { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.macros li { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.macros li:nth-child(odd) .ph { transform: rotate(-1.5deg); }
.macros li:nth-child(even) { margin-top: 28px; }
.macros li:nth-child(even) .ph { transform: rotate(1.5deg); }
.macro-ph { border-radius: var(--r-l); }

/* 7. Подарунок */
.gift-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.gift-in h2 { margin-bottom: 12px; }
.gift-ph { border-radius: var(--r-l); background: var(--apricot); transform: rotate(-1.5deg); }
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.services li { display: flex; gap: 12px; }
.services .ico { width: 36px; height: 36px; color: var(--accent-text); }
.services b { display: block; margin-bottom: 4px; }
.services span { color: var(--muted); font-size: 15px; }
.certs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cert { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--apricot); color: var(--ink); }
.cert-v { font-size: 24px; font-weight: 800; }
.cert .btn { border-color: rgba(36, 24, 43, .4); color: var(--ink); min-height: 44px; padding: 0 12px; }
.cert .btn:hover { background: var(--ink); color: #FFF6EC; }
.cert .btn:focus-visible { outline-color: var(--ink); }
.gift-more { margin-top: 18px; }

/* 8. Доставка */
.sec-del { background: var(--surface); border-radius: 40px; margin-inline: clamp(0px, 1.5vw, 24px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--bg); border-radius: var(--r-l); counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: 14px; right: 16px; font: 600 34px/1 var(--hand); color: var(--accent-text); }
.steps .ico { width: 40px; height: 40px; color: var(--leaf); }
[data-theme="light"] .steps .ico { color: #1F7A43; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

/* 9. Порадник */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.art { display: grid; gap: 12px; align-content: start; }
.art-ph { border-radius: var(--r-l); }
.art h3 { font-size: 21px; }
.art > p { color: var(--muted); font-size: 15px; }
.art details { border-top: 2px solid var(--rule); }
.art details summary { font-size: 16px; min-height: 52px; }
.art details p { font-size: 15px; margin-bottom: 12px; }

/* 10. Питання */
.sec-faq { background: var(--alt); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq details { border-bottom: 2px solid var(--rule); }
.faq details p { color: var(--muted); padding: 0 52px 18px 0; }

/* 11. Шоурум */
.sr-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sr-info { display: grid; gap: 18px; }
.sr-dl { display: grid; gap: 14px; margin: 6px 0; }
.sr-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.sr-dl dt { color: var(--muted); font-size: 15px; }
.sr-dl dd { margin: 0; font-weight: 500; }
.sr-dl a { display: inline-flex; align-items: center; min-height: 44px; }
.sr-links { display: flex; flex-wrap: wrap; gap: 10px; }
.place { display: grid; gap: 8px; }
.osm { height: clamp(320px, 42vw, 480px); border-radius: var(--r-l); background: var(--surface-2); overflow: hidden; z-index: 0; }
.osm:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-theme="dark"] .osm .leaflet-tile-pane { filter: brightness(.72) contrast(1.05) saturate(.75); }
.place .rv-pin { display: grid; place-items: center; background: none; border: 0; }
.place .rv-pin::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--sun), 0 0 0 7px var(--ink); }
.leaflet-container { font-family: var(--sans); }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.sr-ph { grid-column: 1 / -1; border-radius: var(--r-l); max-height: 420px; aspect-ratio: auto !important; height: clamp(220px, 30vw, 420px); }

/* ---------- Підвал ---------- */
.foot { background: var(--alt); padding: 56px 0 32px; margin-top: 40px; }
.foot-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 38ch; }
.foot-nav, .foot-contacts { display: grid; align-content: start; }
.foot-nav a, .foot-contacts a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.foot-nav a:hover, .foot-contacts a:hover { text-decoration: underline; }
.foot-h { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); padding-top: 20px; }

/* ---------- Кошик ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(10, 6, 14, .6); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(100%, 460px); border: 0; padding: 0; background: var(--bg); border-radius: 28px 0 0 28px; }
.drawer-in { display: grid; gap: 18px; padding: 20px 22px 28px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head h2 { font-size: 30px; }
.cart-view { display: grid; gap: 16px; }
.cart-empty { color: var(--muted); }
.cart-lines { list-style: none; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--r); }
.cl-name { font-weight: 700; }
.cl-meta { color: var(--muted); font-size: 14px; grid-column: 1; }
.cart-line .qty { grid-column: 1; display: flex; align-items: center; gap: 8px; }
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.cl-sum { grid-column: 2; grid-row: 1; text-align: right; }
.cl-rm { grid-column: 2; grid-row: 3; justify-self: end; }
.cart-sum { display: grid; gap: 12px; }
.free-note { padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--leaf) 22%, transparent); font-size: 15px; font-weight: 500; }
.total { display: flex; justify-content: space-between; font-size: 20px; }
.order-form h3, .order-result h3 { font-size: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions-col { flex-direction: column; }
.order-text { white-space: pre-wrap; font: 400 14px/1.5 var(--sans); background: var(--surface); padding: 14px; border-radius: 14px; margin: 0; max-height: 280px; overflow: auto; }
.order-result:focus { outline: none; }
.status { font-weight: 500; color: var(--ok); }

/* ---------- Вікно товару ---------- */
.pd { width: min(calc(100% - 32px), 920px); max-height: calc(100dvh - 32px); border: 0; padding: 0; background: var(--bg); border-radius: 28px; }
.pd-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px; }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--bg); }
.pd-body { align-content: start; gap: 12px; padding-top: 30px; }
.pd-body h2 { font-size: clamp(26px, 3vw, 36px); }
.pd-line { color: var(--muted); }
.sz-hint { font-size: 14px; color: var(--accent-text); font-weight: 500; }
.sz-hint:empty { display: none; }
.terms-line { color: var(--muted); font-size: 14px; }

/* ---------- Сторінка товару ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.pp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.pp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pp-gallery .ph:first-child { grid-column: 1 / -1; }
.pp-info { position: sticky; top: 84px; gap: 14px; }
.pp-info h1 { font: 800 clamp(34px, 4vw, 52px)/1.05 var(--sans); letter-spacing: -.03em; }
.stock { font-size: 15px; color: var(--muted); }
.pp-block { display: grid; gap: 10px; padding-top: 18px; margin-top: 4px; border-top: 2px solid var(--rule); }
.pp-block h2 { font-size: 22px; letter-spacing: -.01em; }
.table-wrap { overflow-x: auto; }
.measures th, .measures td { padding: 8px 10px; font-size: 15px; white-space: nowrap; }

/* ---------- Повідомлення ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translate(-50%, 140%); width: min(calc(100% - 32px), 520px); padding: 14px 18px; border-radius: 18px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 15px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.toast.show { transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .kids { max-width: 860px; }
  .size-in { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .sale-in, .fabric-in, .gift-in, .faq-in, .sr-in { grid-template-columns: minmax(0, 1fr); }
  .sale-ph { max-width: 520px; }
  .look { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .sub, .lead { font-size: 16px; }
  .hero { padding-top: 8px; padding-bottom: 48px; }
  .hero-in { gap: 18px; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; margin: 0; font-size: clamp(34px, 9.4vw, 46px); }
  .kids { order: 2; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 8px; margin: 0 calc(var(--gutter) * -1); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .kids::-webkit-scrollbar { display: none; }
  .kid { scroll-snap-align: start; }
  .kid:nth-child(n) a { margin-top: 0; }
  .kid-label { bottom: 8px; padding: 8px 10px; grid-template-columns: 1fr; }
  .kid-label b { font-size: 16px; }
  .kid-label small { white-space: normal; font-size: 12px; line-height: 1.3; }
  .kid-label small > span[data-k] { display: block; white-space: nowrap; }
  .kid-label small .sep { display: none; }
  .kid-label .go { display: none; }
  .lead { order: 3; margin: 0; }
  .hero-actions { order: 4; margin: 0; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 18px; min-height: 52px; font-size: 16px; }
  .terms { order: 5; }
  .sec-size { border-radius: 28px 28px 0 0; }
  .size-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .size-intro { display: contents; }
  .size-intro h2 { order: 1; } .size-intro .sub { order: 2; } .frame { order: 3; margin-top: 8px; } .result { order: 4; } .howto { order: 5; } .between { order: 6; } .size-table { order: 7; }
  .ruler { width: 100%; max-width: none; height: 132px; border-radius: 6px 0 0 6px; box-shadow: inset 0 -10px 0 var(--plank-edge); cursor: ew-resize; }
  .tick { left: auto; top: 0; width: 1px; height: 14px; }
  .tick.major { height: 28px; width: 1px; }
  .tick span { right: auto; left: -10px; top: 32px; }
  .note { right: auto; top: auto; bottom: 18px; transform: translateX(-50%); flex-direction: column-reverse; font-size: 16px; }
  .note::after { width: 2px; height: 18px; }
  .mark { left: auto; right: auto; top: -10px; bottom: -10px; width: 0; height: auto; transform: translateX(-50%); }
  .mark .bar { top: 0; bottom: 0; left: -3px; right: auto; width: 6px; height: auto; }
  .mark .grip { top: auto; bottom: -22px; left: -22px; }
  .mark .tag { right: auto; left: 14px; top: 4px; font-size: 26px; background: var(--plank); }
  .floor { display: none; }
  .picks { grid-template-columns: repeat(3, minmax(140px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pick { scroll-snap-align: start; }
  .cat-count { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 { font-size: 16px; }
  .sz { min-width: 44px; padding: 0 6px; font-size: 14px; }
  .buy .btn { width: 100%; padding: 0 10px; font-size: 14px; }
  .services, .certs { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .articles { grid-template-columns: minmax(0, 1fr); }
  .sr-dl div { grid-template-columns: 1fr; gap: 2px; }
  .pd-in { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .pd-photo { max-width: 260px; }
  .pd-body { padding-top: 0; }
  .pp { grid-template-columns: minmax(0, 1fr); }
  .pp-info { position: static; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .drawer { border-radius: 0; }
}
@media (max-width: 480px) {
  .top-in { gap: 6px; padding-left: 12px; padding-right: 8px; }
  .tools { gap: 4px; }
  .logo { height: 30px; }
  .wordmark { font-size: 26px; }
  .lang-btn { padding: 0 8px; }
  .lang-btn .chev { display: none; }
  .theme-btn { width: 84px; }
  [data-theme="dark"] .theme-btn::before { transform: translateX(38px); }
  .cart-btn { padding: 0 8px; }
  .cart-word { display: none; }
  .grid, .grid-3 { gap: 24px 10px; }
  .certs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cert { grid-template-columns: auto minmax(0, max-content); justify-content: space-between; align-items: center; padding: 12px 12px 12px 18px; }
  .care { grid-template-columns: minmax(0, 1fr); }
  .macros { gap: 10px; }
  .look-tabs [role="tab"] { flex: 1 1 auto; padding: 0 12px; }
}

/* ---------- Редактор вмісту (?edit=1) ---------- */
.rv-editing [data-k], .rv-editing [data-slot] { cursor: pointer; }
.rv-editing [data-rv-edit]:hover, .rv-editing .rv-hover { outline: 2px dashed var(--accent); outline-offset: 2px; }
.rv-editing img[data-slot]:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.rv-editing .ph img[data-slot].is-missing { visibility: visible; color: transparent; background: transparent; outline: 2px dashed var(--accent); outline-offset: -2px; }
.rv-pencil { position: absolute; z-index: 55; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.rv-pencil[hidden] { display: none; }
.rv-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(calc(100% - 32px), 900px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 2px solid var(--rule-2); border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.rv-bar .rv-msg { flex: 1 1 200px; color: var(--muted); font-size: 14px; }
.rv-bar .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.rv-dialog { border: 0; padding: 0; background: var(--surface); width: min(calc(100% - 32px), 600px); max-height: calc(100dvh - 32px); border-radius: 24px; }
.rv-dialog form { margin: 0; padding: 24px; display: grid; }
.rv-dialog h2 { font-size: 26px; }
.rv-dialog label { font-weight: 500; font-size: 15px; }
.rv-dialog .rv-hint { color: var(--muted); font-size: 14px; }
.rv-dialog .select-box select { width: 100%; }
.rv-price { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.rv-price label { font-weight: 400; }
/* Вузькі телефони: мова — лише іконкою (назва мови в доступному імені й у меню), менший знак */
@media (max-width: 420px) {
  .logo { height: 26px; }
  .lang-btn { width: 44px; padding: 0; justify-content: center; }
  .lang-btn .lang-cur { display: none; }
}
@media (max-width: 374px) {
  .top-in { padding-left: 8px; padding-right: 6px; gap: 4px; }
  .tools { gap: 3px; }
  .theme-btn { width: 76px; }
  [data-theme="dark"] .theme-btn::before { transform: translateX(30px); }
  .cart-btn { padding: 0 6px; gap: 6px; }
}
