/* ==========================================================================
   ASCO storefront — design system 2.0
   One set of tokens for the phone, the computer and the admin panel.
   Breakpoints: phone < 768 px · tablet 768–1023 px · computer ≥ 1024 px.
   ========================================================================== */

:root {
  color-scheme: light;
  --red: #DA2A2F;
  --red-press: #B81F25;
  --red-tint: #FDECEC;
  --red-text: #B3161C;
  --red-deep: #8F1419;
  --red-light: #FF5A5F;
  --ink: #111113;
  --graphite: #141416;
  --ink-2: #2A2A2E;
  --text-2: #3A3A3F;
  --muted: #5F5F66;
  --hint: #76767D;
  --soft: #C9C9CE;
  --surface: #F4F4F5;
  --surface-2: #F7F7F8;
  --surface-3: #FAFAFB;
  --line: #EAEAEC;
  --line-2: #F1F1F3;
  --line-3: #DCDCE0;
  --success: #1F9D55;
  --success-text: #1F7A45;
  --success-tint: #E8F5EE;
  --warn: #C27A00;
  --white: #FFFFFF;

  --r-chip: 10px;
  --r-field: 15px;
  --r-btn: 16px;
  --r-card: 24px;
  --r-block: 28px;
  --r-hero: 32px;

  --sh-hover: 0 18px 40px rgba(17, 17, 19, .10);
  --sh-overlay: 0 30px 70px rgba(17, 17, 19, .22);
  --sh-dock: 0 10px 30px rgba(17, 17, 19, .14);
  --sh-pop: 0 20px 50px rgba(17, 17, 19, .16), 0 0 0 1px var(--line);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1280px;
  --gutter: 16px;
  --header-h: 60px;
  --dock-space: 96px;
  --section: 56px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 72px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 124px; --dock-space: 0px; --section: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--red-tint); color: var(--ink); }
[hidden] { display: none !important; }
main { display: block; min-height: 40vh; }
main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); }
.eyebrow--red { color: var(--red); }
.page-title { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.page-lead { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.section-title { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.section-lead { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.accent { color: var(--red); }
@media (min-width: 768px) {
  .page-title { font-size: 40px; }
  .section-title { font-size: 32px; }
  .page-lead { font-size: 17px; }
  .section-lead { font-size: 16px; }
}
@media (min-width: 1024px) {
  .page-title { font-size: 48px; line-height: 1; }
  .section-title { font-size: 40px; line-height: 1.05; letter-spacing: -.03em; }
}

.section { margin-top: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 28px; } }
.more-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; transition: gap .25s var(--ease), color .2s ease; }
.more-link .icon { width: 18px; height: 18px; }
.more-link:hover { gap: 10px; color: var(--red-press); }
@media (min-width: 1024px) { .more-link { font-size: 15px; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s var(--ease), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.97); } }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-press); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ink-outline { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--ink-outline:hover { background: var(--surface); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: #ECECEE; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--line-light { border-color: #3A3A3F; color: var(--white); font-weight: 600; }
.btn--line-light:hover { background: var(--white); color: var(--ink); }
.btn--lg { --btn-h: 58px; padding: 0 26px; font-size: 16px; border-radius: 18px; }
.btn--sm { --btn-h: 42px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite;
}
.btn--outline.is-loading::after, .btn--ghost.is-loading::after, .btn--light.is-loading::after, .btn--ink-outline.is-loading::after { border-color: var(--line); border-top-color: var(--ink); }

/* Pill CTA with a red round arrow (hero, banners). */
.btn-pill { display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 700; transition: background-color .2s ease, transform .18s var(--ease); }
.btn-pill__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn-pill__arrow .icon { width: 18px; height: 18px; }
.btn-pill:hover { background: var(--surface); }
.btn-pill:hover .btn-pill__arrow { transform: translateX(3px); }
.btn-pill:active { transform: scale(.97); }
@media (min-width: 1024px) { .btn-pill { min-height: 56px; padding: 7px 7px 7px 24px; font-size: 16px; gap: 18px; } .btn-pill__arrow { width: 42px; height: 42px; } }

.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border-radius: 14px; color: var(--ink); transition: background-color .2s ease, transform .18s var(--ease), color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--soft { background: var(--surface); }
.icon-btn--soft:hover { background: #ECECEE; }
.icon-btn--dark { background: var(--ink); color: var(--white); }
.icon-btn--dark:hover { background: var(--ink-2); }
.icon-btn--line { border: 1px solid var(--line); }
.icon-btn--line:hover { border-color: var(--ink); background: var(--white); }

.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red); min-height: 36px; }
.link-btn:hover { color: var(--red-press); }
.link-btn .icon { width: 16px; height: 16px; }

/* ---------- Chips, badges, segmented control ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__count { font-size: 12px; font-weight: 600; color: var(--hint); }
.chip.is-active .chip__count, .chip[aria-current="page"] .chip__count { color: #A9A9AF; }
.chip--hot { color: var(--red); }
.chip--hot .icon { width: 16px; height: 16px; }
.chip--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.chip--square { border-radius: var(--r-chip); }
.chip-img { padding-left: 6px; }
.chip-img__pic { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.chip-img__pic img, .chip-img__pic svg { width: 24px; height: 24px; object-fit: contain; mix-blend-mode: multiply; }
.chip-img__pic .icon { width: 18px; height: 18px; color: var(--red); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > * { flex: none; scroll-snap-align: start; }
@media (min-width: 1024px) { .chips-scroll--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--white); color: var(--ink); white-space: nowrap; }
.badge--sale { background: var(--red); color: var(--white); }
.badge--new { background: var(--ink); color: var(--white); }
.badge--hit { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--success-text); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.stock--order { color: #8A5A00; }
.stock--order::before { background: var(--warn); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 15px; background: var(--surface); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 11px; background: var(--white); box-shadow: 0 1px 4px rgba(17, 17, 19, .12); transform: translateX(calc(100% * var(--i, 0))); transition: transform .38s var(--ease-sheet); }
.seg__btn, .seg label { position: relative; z-index: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: center; white-space: nowrap; }
.seg__btn[aria-selected="true"], .seg__btn[aria-checked="true"], .seg label:has(input:checked) { font-weight: 700; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg--sm .seg__btn, .seg--sm label { min-height: 36px; font-size: 13px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; }
.field__label small { font-weight: 400; color: var(--muted); }
.field__error { font-size: 13px; color: var(--red-text); }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-field); border: 0;
  background: var(--surface); font-size: 16px; color: var(--ink); outline: none;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 120px; }
.input::placeholder, .textarea::placeholder { color: var(--hint); }
.input:focus, .textarea:focus, .select:focus, .input-wrap:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.input--white, .textarea--white { background: var(--white); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .input-wrap.is-invalid { background: var(--red-tint); box-shadow: 0 0 0 2px var(--red); }
.input-wrap { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 16px; border-radius: var(--r-field); background: var(--surface); transition: box-shadow .2s ease, background-color .2s ease; }
.input-wrap--white { background: var(--white); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; padding: 0; min-height: 52px; }
.input-wrap b { font-weight: 600; }
.input-wrap input::placeholder { color: var(--hint); }
.is-shaking { animation: shake .4s ease both; }

.check { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px; margin: 0 -8px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background-color .2s ease; }
.check:hover { background: var(--surface); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border-radius: 7px; border: 2px solid #CFCFD4; background: var(--white); display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2.4px solid var(--white); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked { background: var(--white); border-color: var(--ink); }
.check input[type="radio"]:checked::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--red); transform: none; }
.check span { flex: 1; }
.check small { font-size: 12px; color: var(--hint); }

.toggle-chip { position: relative; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--white); font-size: 13px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.toggle-chip span:hover { border-color: var(--ink); }
.toggle-chip input:checked + span { border-color: var(--red); background: var(--red-tint); }
.toggle-chip input:checked + span::after { content: "✓"; font-size: 12px; color: var(--red); font-weight: 700; }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle-chip small { color: var(--hint); font-size: 12px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--soft); }
.breadcrumbs a { color: var(--muted); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink); }
@media (min-width: 1024px) { .breadcrumbs ol { font-size: 14px; } }

.page-head { padding-top: 16px; }
.page-head__row { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
@media (min-width: 1024px) {
  .page-head { padding-top: 28px; }
  .page-head__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 14px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { display: none; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 17, 19, .06); }
.site-header__row { height: 60px; display: flex; align-items: center; gap: 4px; padding-left: 8px; padding-right: 6px; }
.site-logo { display: flex; align-items: center; height: 44px; padding: 0 8px; margin-right: auto; }
.site-logo img { width: auto; height: 22px; }
.header-catalog, .header-search, .header-phone, .header-wa, .header-compare__label { display: none; }
.header-compare { position: relative; }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; animation: pop .35s var(--spring) both; }

@media (min-width: 1024px) {
  .topbar { display: block; height: 40px; background: var(--surface-2); border-bottom: 1px solid #EFEFF1; font-size: 13px; }
  .topbar__row { height: 100%; display: flex; align-items: center; gap: 28px; }
  .topbar__link { position: relative; color: #3A3A3F; font-weight: 500; transition: color .2s ease; }
  .topbar__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease); }
  .topbar__link:hover, .topbar__link.is-active { color: var(--red); }
  .topbar__link:hover::after { transform: scaleX(1); }
  .topbar__link.is-active { font-weight: 700; }
  .topbar__spacer { flex: 1; }
  .topbar__info { display: flex; align-items: center; gap: 6px; color: var(--muted); }
  .topbar__info .icon { width: 16px; height: 16px; }
  a.topbar__info:hover { color: var(--red); }

  .site-header { background: rgba(255, 255, 255, .96); }
  .site-header__row { height: 84px; gap: 16px; padding: 0; }
  .site-header__row.container { padding-inline: var(--gutter); }
  .site-logo { margin-right: 12px; padding: 0; }
  .site-logo img { height: 30px; }
  .header-catalog { display: inline-flex; height: 52px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--red); color: var(--white); align-items: center; gap: 10px; font-size: 15px; font-weight: 700; transition: background-color .25s ease, transform .18s var(--ease); }
  .header-catalog:hover { background: var(--red-press); transform: translateY(-1px); }
  .header-catalog:active { transform: scale(.97); }
  .header-catalog[aria-expanded="true"] { background: var(--ink); }
  .header-catalog__icon { position: relative; width: 20px; height: 20px; }
  .header-catalog__icon .icon { position: absolute; inset: 0; transition: opacity .2s ease, transform .3s var(--ease); }
  .header-catalog__icon .icon + .icon { opacity: 0; transform: rotate(-90deg) scale(.6); }
  .header-catalog[aria-expanded="true"] .header-catalog__icon .icon:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
  .header-catalog[aria-expanded="true"] .header-catalog__icon .icon + .icon { opacity: 1; transform: none; }
  .header-search { flex: 1; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--surface); color: var(--hint); font-size: 15px; text-align: left; transition: box-shadow .2s ease, background-color .2s ease, transform .18s var(--ease); }
  .header-search:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
  .header-search .icon { color: var(--ink); }
  .header-search__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-search kbd { height: 36px; padding: 0 12px; border-radius: 11px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font: 600 12px var(--font); display: flex; align-items: center; }
  .header-phone { display: flex; flex-direction: column; gap: 2px; margin: 0 4px; white-space: nowrap; }
  .header-phone b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; transition: color .2s ease; }
  .header-phone small { font-size: 12px; color: var(--muted); }
  .header-phone:hover b { color: var(--red); }
  .header-wa { display: inline-flex; }
  .header-m { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-phone small { display: none; }
  .header-wa span { display: none; }
  .header-wa { padding: 0 15px; }
}

/* ---------- Mega menu (computer) ---------- */
.mega { position: fixed; inset: 0; z-index: 55; }
.mega__backdrop { position: absolute; inset: 0; top: var(--mega-top, 124px); background: rgba(17, 17, 19, .38); animation: fade .3s ease both; }
.mega__panel {
  position: absolute; top: var(--mega-top, 124px); left: 50%; width: min(1280px, calc(100% - 64px)); transform: translateX(-50%);
  height: min(620px, calc(100vh - var(--mega-top, 124px) - 24px)); border-radius: 0 0 32px 32px; background: var(--white); box-shadow: 0 30px 60px rgba(17, 17, 19, .18);
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; overflow: hidden; animation: drop .38s var(--ease) both;
}
.mega__nav { padding: 20px 12px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mega__cat { min-height: 48px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; transition: background-color .18s ease, color .18s ease; }
.mega__cat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--white); display: grid; place-items: center; flex: none; transition: background-color .18s ease; }
.mega__cat-icon img { width: 26px; height: 26px; object-fit: contain; mix-blend-mode: multiply; }
.mega__cat-icon .icon { width: 20px; height: 20px; color: var(--red); }
.mega__cat-name { flex: 1; }
.mega__cat .icon.mega__chev { width: 16px; height: 16px; color: var(--soft); transition: transform .25s var(--ease), color .2s ease; }
.mega__cat.is-active { background: var(--surface); font-weight: 700; }
.mega__cat.is-active .mega__cat-icon { background: var(--white); }
.mega__cat.is-active .mega__chev { color: var(--ink); transform: translateX(2px); }
.mega__cat:not(.is-active) .mega__cat-icon { background: var(--surface); }
.mega__special { display: flex; gap: 8px; padding: 0 4px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.mega__special a { flex: 1; min-height: 40px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; transition: background-color .2s ease; }
.mega__special a:first-child { background: var(--red-tint); color: var(--red-text); }
.mega__special a:hover { background: #ECECEE; }
.mega__special .icon { width: 16px; height: 16px; }
.mega__all { margin-top: auto; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; transition: border-color .2s ease; }
.mega__all:hover { border-color: var(--ink); }
.mega__pane { padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; animation: swapX .32s var(--ease) both; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mega__title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.mega__see { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 24px; }
.mega__col { display: flex; flex-direction: column; gap: 10px; }
.mega__col-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--hint); text-transform: uppercase; margin-bottom: 2px; }
.mega__link { display: flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--text-2); transition: color .2s ease, padding-left .25s var(--ease); }
.mega__link small { font-size: 12px; color: var(--soft); }
.mega__link:hover { color: var(--red); padding-left: 4px; }
.mega__link--accent { color: var(--red); font-weight: 600; }
.mega__picks { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mega__feature { margin: 20px 20px 20px 0; border-radius: 26px; background: var(--surface); position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; transition: transform .35s var(--ease); animation: swapX .32s var(--ease) both; }
.mega__feature:hover { transform: translateY(-3px); }
.mega__feature b { margin-top: 10px; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.mega__feature > span:not(.eyebrow) { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mega__feature-img { position: absolute; left: 30px; right: 30px; bottom: 24px; height: 52%; display: flex; align-items: flex-end; justify-content: center; }
.mega__feature-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.mega__feature:hover .mega__feature-img img { transform: scale(1.05); }
.mega__feature-cta { position: relative; z-index: 1; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--red); }
.mega__feature-cta .icon { width: 16px; height: 16px; }
@media (max-width: 1023px) { .mega { display: none !important; } }

/* ---------- Search overlay ---------- */
.search-layer { position: fixed; inset: 0; z-index: 90; }
.search-layer__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 19, .32); animation: fade .3s ease both; }
.search-box {
  position: absolute; inset: 0; background: var(--white); display: flex; flex-direction: column;
  animation: sheetUp .42s var(--ease-sheet) both;
}
.search-box__bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line-2); }
.search-box__field { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 15px; background: var(--surface); }
.search-box__field .icon { color: var(--ink); }
.search-box__input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; min-height: 46px; }
.search-box__input::-webkit-search-cancel-button { display: none; }
.search-box__clear { height: 32px; padding: 0 10px; border-radius: 10px; background: var(--white); font-size: 12px; font-weight: 600; color: var(--muted); }
.search-box__close { flex: none; }
.search-box__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column-reverse; }
.search-box__aside { padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 22px; }
.search-box__main { padding: 12px 16px 8px; }
.search-box__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--hint); text-transform: uppercase; margin-bottom: 12px; }
.search-box__recent { display: flex; flex-direction: column; }
.search-recent { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 8px; margin: 0 -8px; border-radius: 10px; font-size: 15px; color: var(--text-2); text-align: left; transition: background-color .18s ease; }
.search-recent:hover { background: var(--surface); }
.search-recent .icon { width: 18px; height: 18px; color: var(--hint); }
.search-help { padding: 16px; border-radius: 18px; background: var(--graphite); color: var(--white); display: flex; flex-direction: column; gap: 8px; }
.search-help b { font-size: 15px; }
.search-help span { font-size: 13px; color: var(--soft); line-height: 1.45; }
.search-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.search-cat { min-height: 104px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; transition: background-color .18s ease, transform .2s var(--ease); }
.search-cat:hover { background: #ECECEE; transform: translateY(-2px); }
.search-cat img { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.search-cat .icon { width: 30px; height: 30px; color: var(--red); }
.search-results__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.search-results__meta a { font-weight: 700; color: var(--red); }
.search-hit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 16px; transition: background-color .18s ease; animation: rise .3s var(--ease) both; }
.search-hit:hover, .search-hit[aria-selected="true"] { background: var(--surface); }
.search-hit__img { width: 64px; height: 64px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; }
.search-hit:hover .search-hit__img, .search-hit[aria-selected="true"] .search-hit__img { background: var(--white); }
.search-hit__img img { max-width: 80%; max-height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.search-hit__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-hit__name { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-hit__name mark { background: var(--red-tint); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-hit__sub { font-size: 13px; color: var(--muted); }
.search-hit__price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.search-cathit { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 8px; margin: 0 -8px; border-radius: 14px; font-size: 15px; transition: background-color .18s ease; }
.search-cathit:hover { background: var(--surface); }
.search-cathit__icon { width: 36px; height: 36px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; }
.search-cathit__icon .icon { width: 18px; height: 18px; color: var(--red); }
.search-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px 8px; }
.search-empty__icon { width: 80px; height: 80px; border-radius: 26px; background: var(--surface); display: grid; place-items: center; }
.search-empty__icon .icon { width: 32px; height: 32px; color: var(--hint); }
.search-empty b { font-size: 20px; }
.search-empty span { font-size: 15px; color: var(--muted); max-width: 360px; line-height: 1.5; }
.search-loading { padding: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.search-loading span { height: 64px; border-radius: 16px; }
@media (min-width: 1024px) {
  .search-box { inset: 32px auto auto 50%; width: 880px; max-height: calc(100vh - 64px); transform: translateX(-50%); border-radius: 28px; box-shadow: var(--sh-overlay); overflow: hidden; animation: dropX .36s var(--ease) both; }
  .search-box__bar { padding: 14px 14px 14px 22px; gap: 12px; }
  .search-box__field { background: transparent; padding: 0; }
  .search-box__input { font-size: 20px; min-height: 48px; }
  .search-box__clear { background: var(--surface); height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
  .search-box__close { background: var(--ink); color: var(--white); }
  .search-box__close:hover { background: var(--ink-2); }
  .search-box__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 520px; }
  .search-box__aside { padding: 22px; background: var(--surface-3); border-right: 1px solid var(--line-2); }
  .search-help { margin-top: auto; }
  .search-box__main { padding: 18px 22px 22px; overflow-y: auto; }
  .search-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .search-cat { min-height: 120px; font-size: 13px; }
  .search-cat img { width: 60px; height: 60px; }
  .search-hit { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 10px; margin: 0 -10px; }
  .search-hit__img { width: 72px; height: 72px; border-radius: 16px; }
  .search-hit__price { font-size: 17px; }
}


/* Accordion (drawer catalog, FAQ): animates the height of its only child. */
.acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc > div { overflow: hidden; min-height: 0; }
.acc.is-open { grid-template-rows: 1fr; }

/* ---------- Mobile drawer (opens from the left, follows the finger) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; --p: 0; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(17, 17, 19, .5); opacity: var(--p); transition: opacity .32s ease; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86%, 340px); background: var(--white); border-radius: 0 28px 28px 0;
  box-shadow: 12px 0 40px rgba(17, 17, 19, .18); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc((var(--p) - 1) * 100%)); transition: transform .34s var(--ease-sheet); touch-action: pan-y; will-change: transform;
}
.drawer.is-dragging .drawer__scrim, .drawer.is-dragging .drawer__panel { transition: none; }
.drawer__head { flex: none; height: 60px; box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top) 10px 0 18px; }
.drawer__logo img { height: 22px; width: auto; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 16px; }
.drawer__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 0; }
.drawer__qa { min-width: 0; min-height: 48px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; }
.drawer__qa .icon { width: 20px; height: 20px; flex: none; }
.drawer__qa--dark { background: var(--ink); color: var(--white); }
.drawer__search { margin: 10px 16px 0; width: calc(100% - 32px); min-height: 48px; border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); font-size: 15px; text-align: left; }
.drawer__search .icon { width: 20px; height: 20px; color: var(--ink); flex: none; }
.drawer__label { padding: 18px 20px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); }
.drawer__cats { display: flex; flex-direction: column; }
.drawer__row { width: calc(100% - 16px); margin: 0 8px; min-height: 54px; padding: 0 12px 0 8px; border-radius: 16px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; font-weight: 600; transition: background-color .2s ease; }
.drawer__row[aria-expanded="true"] { background: var(--surface); }
.drawer__thumb { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.drawer__row[aria-expanded="true"] .drawer__thumb { background: var(--white); }
.drawer__thumb img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.drawer__thumb .icon { width: 20px; height: 20px; color: var(--red); }
.drawer__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.drawer__row small, .drawer__sub small { font-size: 12px; font-weight: 500; color: var(--hint); }
.drawer__chev { width: 18px; height: 18px; color: var(--soft); flex: none; transition: transform .3s var(--ease); }
.drawer__row[aria-expanded="true"] .drawer__chev { transform: rotate(180deg); }
.drawer__sub { display: flex; flex-direction: column; padding: 2px 20px 8px 68px; }
.drawer__sub a { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-2); }
.drawer__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; font-size: 14px; font-weight: 700; color: var(--red); }
.drawer__all .icon { width: 16px; height: 16px; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__link { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.drawer__link .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.drawer__link.is-active { color: var(--red); font-weight: 700; }
.drawer__link.is-active .icon { color: var(--red); }
.drawer__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.drawer__badge[hidden] { display: none; }
.drawer__foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__foot-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.drawer__foot-icon .icon { width: 20px; height: 20px; }
.drawer__foot b { display: block; font-size: 16px; font-weight: 800; }
.drawer__foot small { font-size: 12px; color: var(--muted); }
.drawer.is-open .drawer__cat { animation: swapX .36s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
@media (min-width: 1024px) { .drawer { display: none !important; } }

/* ---------- Mobile dock + FAB ---------- */
.dock {
  position: fixed; left: 12px; right: 84px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; height: 60px; padding: 6px;
  border-radius: 22px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .08);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); transition: transform .4s var(--ease), opacity .3s ease;
}
.dock__thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 16px; background: var(--ink); transform: translateX(calc(100% * var(--i, 0))); transition: transform .45s var(--ease-sheet); }
.dock__item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1; -webkit-tap-highlight-color: transparent; }
.dock__item .icon { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.dock__item:active .icon { transform: scale(.88); }
.dock__item[aria-current="page"] { color: var(--white); font-weight: 700; }
.fab-scrim { position: fixed; inset: 0; z-index: 71; background: rgba(17, 17, 19, .42); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.fab-scrim.is-open { opacity: 1; visibility: visible; }
.fab {
  position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 73; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--white); box-shadow: 0 4px 12px rgba(218, 42, 47, .3); display: grid; place-items: center;
  transition: background-color .3s ease, transform .25s var(--spring), box-shadow .3s ease; -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(.92); }
.fab .icon { position: absolute; width: 24px; height: 24px; transition: transform .4s var(--spring), opacity .2s ease; }
.fab__x { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ring 2.4s var(--ease) 3; pointer-events: none; }
.fab[aria-expanded="true"] { background: var(--ink); box-shadow: 0 4px 12px rgba(17, 17, 19, .25); }
.fab[aria-expanded="true"] .fab__chat { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab[aria-expanded="true"] .fab__x { opacity: 1; transform: none; }
.fab[aria-expanded="true"] .fab__ring { display: none; }
.fab-menu { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 72; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fab-menu.is-open { pointer-events: auto; }
.fab-act { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(calc(16px + var(--d, 0) * 6px)) scale(.9); transition: opacity .28s ease, transform .42s cubic-bezier(.34, 1.3, .64, 1); transition-delay: 0s; -webkit-tap-highlight-color: transparent; }
.fab-menu.is-open .fab-act { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 50ms); }
.fab-act__label { min-height: 40px; padding: 4px 14px; border-radius: 20px; background: var(--white); box-shadow: 0 6px 20px rgba(17, 17, 19, .16); display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.fab-act__label b { font-size: 14px; }
.fab-act__label small { font-size: 11px; color: var(--muted); }
.fab-act__icon { width: 52px; height: 52px; border-radius: 50%; color: var(--white); box-shadow: 0 8px 22px rgba(17, 17, 19, .2); display: grid; place-items: center; }
.fab-act__icon .icon { width: 22px; height: 22px; }
.fab-act--wa .fab-act__icon { background: var(--success); }
.fab-act--ig .fab-act__icon { background: var(--ink); }
.fab-act--call .fab-act__icon { background: var(--red); }
body.has-sticky-buy .dock, body.has-sticky-buy .fab:not([aria-expanded="true"]) { transform: translateY(0); }
@media (min-width: 1024px) { .dock, .fab, .fab-menu, .fab-scrim { display: none !important; } }
@media (max-width: 1023px) { body { padding-bottom: calc(var(--dock-space) + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) and (max-width: 1023px) { .dock { left: 50%; right: auto; width: 420px; transform: translateX(calc(-50% - 36px)); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); background: var(--surface); color: var(--ink); }
.site-footer__grid { padding-top: 32px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.site-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 26px; width: auto; align-self: flex-start; }
.site-footer__brand p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 340px; }
.site-footer__social { display: flex; gap: 8px; }
.social-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--ink); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease, transform .18s var(--ease); }
.social-btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.site-footer__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hint); margin-bottom: 8px; }
.site-footer__links { display: flex; flex-direction: column; }
.site-footer__links a { min-height: 36px; display: flex; align-items: center; font-size: 15px; color: var(--text-2); transition: color .2s ease; }
.site-footer__links a:hover { color: var(--red); }
.site-footer__contacts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid #E3E3E6; }
.site-footer__phone { font-size: 20px; font-weight: 800; letter-spacing: -.01em; transition: color .2s ease; }
.site-footer__phone:hover { color: var(--red); }
.site-footer__contacts a:not(.site-footer__phone) { font-size: 15px; color: var(--text-2); }
.site-footer__contacts a:not(.site-footer__phone):hover { color: var(--red); }
.site-footer__contacts span { font-size: 13px; color: var(--muted); }
.site-footer__bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #E3E3E6; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--hint); }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__contacts { grid-column: auto; padding-top: 0; border-top: 0; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-top: 56px; padding-bottom: 28px; }
  .site-footer__brand { grid-column: span 4; }
  .site-footer__brand img { height: 30px; }
  .site-footer__brand p { font-size: 15px; }
  .site-footer__nav { grid-column: span 2; }
  .site-footer__contacts { grid-column: span 2; }
  .site-footer__title { margin-bottom: 12px; }
  .site-footer__links { gap: 4px; }
  .site-footer__links a { min-height: 30px; }
  .site-footer__phone { font-size: 18px; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; font-size: 13px; padding-top: 24px; }
}

/* ---------- Dialog / sheet (consultation) ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 19, .55); animation: fade .3s ease both; }
.modal__dialog {
  position: relative; width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(17, 17, 19, .2); animation: sheetUp .45s var(--ease-sheet) both;
}
.modal__grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-3); margin: 0 auto 14px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.modal__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.modal__body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.consult-product { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; border: 1px solid var(--line); }
.consult-product__img { width: 64px; height: 64px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; flex: none; }
.consult-product__img img { max-width: 70%; max-height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.consult-product__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.consult-product__text b { font-size: 15px; line-height: 1.3; }
.consult-product__text span { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.form-grid > *, .field { min-width: 0; }
.form-note { font-size: 13px; color: var(--hint); text-align: center; }
.form-note a { font-weight: 600; color: var(--ink); }
.form-note a:hover { color: var(--red); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 8px 0; }
.done__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; animation: popIn .5s var(--ease) both; }
.done__icon svg { width: 38px; height: 38px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done__icon path { stroke-dasharray: 24; animation: draw .4s .25s var(--ease) both; }
.done__title { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.done__text { font-size: 15px; color: var(--muted); max-width: 400px; line-height: 1.5; }
.bubble { width: 100%; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); text-align: left; font-size: 15px; line-height: 1.55; color: var(--text-2); white-space: pre-line; }
.done__actions { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (min-width: 768px) {
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { width: 600px; border-radius: 32px; padding: 36px; box-shadow: 0 40px 90px rgba(17, 17, 19, .28); animation: dlg .45s var(--ease) both; }
  .modal__grip { display: none; }
  .modal__title { font-size: 28px; }
  .modal__text { font-size: 15px; }
  .modal__body { gap: 18px; margin-top: 18px; }
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; animation: fade .3s ease both; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; animation: zoomIn .45s var(--ease) both; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); height: 32px; padding: 0 14px; border-radius: 16px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; display: flex; align-items: center; }

/* ---------- Toast & compare bar ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-space) + 16px + env(safe-area-inset-bottom)); z-index: 120; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 16px 36px rgba(17, 17, 19, .25);
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .4s var(--ease-sheet), visibility .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }
/* ---------- Compare: phone peek above the dock, computer tray ---------- */
.cmp-peek {
  position: fixed; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 69; min-height: 60px;
  padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--ink); color: var(--white); display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(17, 17, 19, .16); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .2s ease, transform .28s var(--ease-sheet), visibility .28s;
}
.cmp-peek[hidden] { display: none; }
.cmp-peek.is-visible { opacity: 1; visibility: visible; transform: none; }
.cmp-peek__thumbs, .cmp-pill__thumbs { display: flex; flex: none; }
.cmp-thumb { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--white); border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; animation: popIn .32s var(--spring) both; }
.cmp-thumb + .cmp-thumb { margin-left: -12px; }
.cmp-thumb img { max-width: 78%; max-height: 82%; object-fit: contain; }
.cmp-thumb .icon { width: 18px; height: 18px; color: var(--ink); }
.cmp-thumb--alert { background: var(--red); border-color: var(--red); }
.cmp-thumb--alert .icon { color: var(--white); }
.cmp-peek__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmp-peek__text b { font-size: 15px; line-height: 19px; }
.cmp-peek__text small { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-peek__btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--white); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.cmp-peek__btn .icon { width: 18px; height: 18px; }
.cmp-peek__btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.cmp-peek__btn[hidden] { display: none; }
.cmp-peek__timer { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .14); }
.cmp-peek__timer span { display: block; height: 100%; border-radius: 1px; background: rgba(255, 255, 255, .72); transform-origin: left; }
.cmp-peek.is-timing .cmp-peek__timer span { animation: peekTimer 4s linear both; }
@keyframes peekTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
body.fab-open .cmp-peek, body.kb-open .cmp-peek, body.no-scroll .cmp-peek, body.has-sticky-buy .cmp-peek { opacity: 0; visibility: hidden; transform: translateY(24px); }
@media (min-width: 768px) and (max-width: 1023px) { .cmp-peek { left: 50%; right: auto; width: 480px; margin-left: -240px; } }

.cmp-tray, .cmp-pill { display: none; }
@media (min-width: 1024px) {
  .cmp-peek { display: none !important; }
  .cmp-tray {
    position: fixed; left: 50%; bottom: 24px; z-index: 65; width: min(1000px, calc(100% - 48px)); padding: 12px 12px 12px 22px; border-radius: 26px;
    background: var(--white); box-shadow: 0 24px 60px rgba(17, 17, 19, .2), 0 0 0 1px rgba(17, 17, 19, .06); display: flex; align-items: center; gap: 18px;
    transform: translate(-50%, 0); animation: trayUp .38s var(--ease-sheet) both; transition: transform .38s var(--ease-sheet), opacity .24s ease, visibility .38s;
  }
  .cmp-tray[hidden] { display: none; }
  .cmp-tray.is-folded { animation: none; }
  .cmp-tray.is-folded { transform: translate(-50%, 160px); opacity: 0; visibility: hidden; }
  .cmp-tray__head { flex: none; display: flex; flex-direction: column; gap: 2px; }
  .cmp-tray__head b { font-size: 17px; }
  .cmp-tray__head small { font-size: 13px; color: var(--muted); }
  .cmp-tray__slots { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .cmp-slot { position: relative; min-width: 0; height: 68px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 8px 34px 8px 8px; }
  .cmp-slot.is-new { animation: popIn .34s var(--spring) both; }
  .cmp-slot__img { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--white); display: grid; place-items: center; }
  .cmp-slot__img img { max-width: 64%; max-height: 86%; object-fit: contain; }
  .cmp-slot__img .icon { width: 20px; height: 20px; color: var(--muted); }
  .cmp-slot__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .cmp-slot__text b { font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmp-slot__text small { font-size: 13px; color: var(--muted); white-space: nowrap; }
  .cmp-slot__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; background: var(--white); color: var(--muted); display: grid; place-items: center; transition: color .2s ease; }
  .cmp-slot__x:hover { color: var(--red); }
  .cmp-slot__x .icon { width: 14px; height: 14px; }
  .cmp-slot--empty { background: transparent; border: 1.5px dashed var(--line-3); justify-content: center; padding: 8px; color: var(--hint); font-size: 14px; font-weight: 500; gap: 6px; }
  .cmp-slot--empty .icon { width: 18px; height: 18px; }
  .cmp-tray__actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .cmp-tray__actions .btn { min-height: 44px; padding: 0 20px; }
  .cmp-tray__actions .btn .icon { width: 18px; height: 18px; }
  .cmp-tray__clear { min-height: 26px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .cmp-tray__clear:hover { color: var(--red); }
  .cmp-tray__fold { position: absolute; top: -16px; right: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
  .cmp-tray__fold .icon { width: 16px; height: 16px; }
  .cmp-pill { position: fixed; right: 32px; bottom: 24px; z-index: 65; height: 56px; padding: 0 8px 0 10px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; box-shadow: 0 16px 40px rgba(17, 17, 19, .28); animation: popIn .34s var(--spring) both; }
  .cmp-pill[hidden] { display: none; }
  .cmp-pill .cmp-thumb { width: 38px; height: 38px; border-radius: 50%; }
  .cmp-pill .cmp-thumb + .cmp-thumb { margin-left: -10px; }
  .cmp-pill__up { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
  .cmp-pill__up .icon { width: 18px; height: 18px; }
  body.has-cmp-tray { padding-bottom: 120px; }
}
@keyframes trayUp { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Skeleton ---------- */
.sk { background: #EFEFF1 linear-gradient(90deg, #EFEFF1 0, #F8F8F9 50%, #EFEFF1 100%) no-repeat; background-size: 300px 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes dropX { from { opacity: 0; transform: translate(-50%, -10px) scale(.99); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes swapX { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes dlg { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes shimmer { from { background-position: -300px 0; } to { background-position: 300px 0; } }
@keyframes zoomIn { from { transform: scale(.94); } to { transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Only content below the first screen waits for its reveal (motion.js adds .reveal-wait);
   what is visible on load is painted at once, without waiting for scripts. */
[data-reveal].reveal-wait { opacity: 0; transform: translateY(14px); }
[data-reveal].reveal-wait.is-revealed { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }

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


@media (min-width: 1024px) {
  .topbar__link, .topbar__info { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .topbar__row { gap: 18px; }
  .topbar__link--wide, .topbar__info--hours { display: none; }
}
@media (max-width: 1023px) { .header-compare { display: none; } }

/* ==========================================================================
   Phone header 2.1 — menu on the left, compact 56 px row, solid background
   (a blurred sticky header becomes a containing block for fixed layers).
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --header-h: 56px; }
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header__row { height: 56px; gap: 2px; padding-left: 6px; padding-right: 8px; }
  .site-logo { padding: 0 6px; }
  .site-logo img { height: 21px; }
  .header-call { background: var(--surface); }
  .header-call .icon, .header-burger .icon { width: 22px; height: 22px; }
}

/* Dock: compare tab with its counter. */
.dock__icon { position: relative; display: grid; place-items: center; }
.dock__badge { position: absolute; top: -7px; left: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--white); border: 2px solid var(--white); box-sizing: content-box; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; transition: transform .3s var(--spring); }
.dock__badge[hidden] { display: none; }
.dock__badge.is-bump { transform: scale(1.4); }
.dock__item[aria-current="page"] .dock__badge { border-color: var(--ink); }
.dock__item { font-size: 11px; }
/* The phone keyboard pushes fixed bars up: hide them while typing. */
body.kb-open .dock, body.kb-open .fab, body.kb-open .fab-menu { opacity: 0; visibility: hidden; pointer-events: none; }

/* Phones: no accidental zoom-in when a field gets focus (iOS zooms below 16 px) and no
   double-tap zoom delay; pinch-zoom stays available. */
html { touch-action: manipulation; }
@media (max-width: 1023px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em); }
}
/* Narrow phones (320–359 px): the four dock labels must not touch. */
@media (max-width: 359px) {
  .dock { left: 8px; right: 76px; padding: 5px; }
  .dock__item { font-size: 10px; letter-spacing: -.01em; }
  .fab { right: 10px; }
  .fab-menu { right: 12px; }
}

/* Sideways strips (gallery, sliders) scroll only sideways: overflow-x:auto alone makes the
   vertical axis scrollable too, so a photo could be dragged up and down inside its box. */
.chips-scroll, .gallery__track { overflow-y: hidden; overscroll-behavior-x: contain; }
.gallery__track { touch-action: pan-x pan-y; }
.gallery__slide { overflow: hidden; }
/* Phones: content does not slide up while scrolling — it is simply there. */
@media (max-width: 1023px) {
  [data-reveal].reveal-wait { opacity: 1; transform: none; transition: none; }
}
