/* soft.digital.moscow — дизайн-система. Токены и роли: DESIGN.md */

:root {
  --paper: #f7f8f9;
  --paper-2: #eef1f3;
  --white: #fff;
  --ink: #111418;
  --ink-2: #41474f;
  --muted: #727a85;
  --line: #dfe3e7;
  --accent: #ef2b32;
  --accent-ink: #c71920;
  --ok: #1b8a5a;
  --warn: #b7791f;
  --bad: #b42318;

  /* Нативные системные шрифты: ноль внешних запросов и мгновенный первый рендер. */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px;
  --r: 8px; --r-card: 12px;
  --container: 1360px;
  --gutter: 16px;
  --t: 120ms ease;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 var(--s3); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
@media (min-width: 768px) { h1 { font-size: 40px; } h2 { font-size: 28px; } }
p { margin: 0 0 var(--s4); }
.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.small { font-size: 14px; line-height: 1.5; }
.micro { font-size: 12px; line-height: 1.4; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.price--lg { font-size: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; margin-bottom: var(--s3); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ── шапка ─────────────────────────────────────────────────────────────── */
.site-header { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.site-header { transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease; }
.site-header.is-compact { background: color-mix(in srgb, var(--paper) 86%, transparent); box-shadow: 0 8px 28px rgb(45 57 69 / 8%); backdrop-filter: blur(22px) saturate(145%); }
.site-header__inner { min-height: 64px; display: grid; grid-template-columns: auto auto minmax(180px, 1fr) auto; gap: var(--s4); align-items: center; }
.brand { min-width: 0; font-family: var(--font-display); white-space: nowrap; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand { display: inline-flex; align-items: center; }
.brand > img { display: block; width: 142px; height: auto; }
.brand__product { min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.brand__product b { color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.brand__product small { color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.site-footer__logo img { display: block; height: 30px; width: auto; }
@media (max-width: 479px) {
  .brand { gap: 8px; }
  .brand > img { width: 126px; }
  .brand__product { padding-left: 8px; }
  .brand__product small { display: none; }
}
.primary-nav { display: flex; align-items: center; gap: var(--s4); font-size: 13px; white-space: nowrap; }
.primary-nav a { color: var(--ink-2); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); text-decoration: none; }
.primary-nav a.is-active { box-shadow: 0 2px 0 var(--accent); }
.search { display: flex; align-items: center; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding-left: 13px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.search:focus-within { border-color: #aeb5bd; box-shadow: 0 0 0 3px rgb(17 20 24 / 6%); }
.search > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; color: var(--muted); flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; height: 38px; border: 0; padding: 0 10px; background: transparent; font-size: 13px; }
.search input:focus { outline: 0; }
.search button, .hero-search button { width: 34px; height: 34px; margin-right: 3px; padding: 0; border: 0; background: var(--accent); color: var(--white); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background 180ms ease, transform 180ms ease; }
.search button:hover, .hero-search button:hover { background: var(--accent-ink); }
.search button:active, .hero-search button:active { transform: scale(.96); }
.search button svg, .hero-search button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.nav { display: flex; gap: var(--s2); align-items: center; white-space: nowrap; }
.nav__icon, .cart-link, .favorite-link { width: 36px; height: 36px; display: grid; place-items: center; position: relative; border-radius: 50%; }
.nav__icon:hover, .cart-link:hover, .favorite-link:hover { background: var(--paper-2); text-decoration: none; }
.nav svg, .cart-link svg, .favorite-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__count, .favorite-link__count { position: absolute; top: -2px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--white); font: 600 10px/1 var(--font-body); }
.mobile-dock, .mobile-dock__cart, .mobile-favorite-link { display: none; }
@media (max-width: 1023px) { .site-header__inner { grid-template-columns: auto 1fr auto; } .primary-nav { display: none; } }
@media (max-width: 767px) { .site-header__inner { grid-template-columns: 1fr auto; padding: 10px 0; } .search { grid-column: 1 / -1; grid-row: 2; } }

/* ── герой ─────────────────────────────────────────────────────────────── */
.hero { padding: var(--s4) 0 var(--s8); border-bottom: 1px solid var(--line); }
.hero__panel { min-height: 456px; display: grid; overflow: hidden; position: relative; isolation: isolate; background: #eef3f6; border: 1px solid #d9e0e5; border-radius: 18px; box-shadow: 0 24px 70px rgb(62 78 92 / 9%); }
.hero__panel::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 94%) 40%, rgb(255 255 255 / 66%) 61%, rgb(255 255 255 / 8%) 100%); }
.hero__backdrop { position: absolute; z-index: -2; inset: 0; }
.hero__backdrop img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(1.012); animation: hero-breathe 12s ease-in-out infinite alternate; }
.hero__copy { width: min(66%, 880px); padding: clamp(28px, 5vw, 68px); position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.hero__lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.hero-search { display: flex; align-items: center; max-width: 620px; height: 52px; margin-top: var(--s4); border: 1px solid #d8dde1; border-radius: 999px; background: var(--white); padding-left: 17px; box-shadow: 0 12px 36px rgb(55 66 77 / 8%); }
.hero-search > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; color: var(--muted); }
.hero-search input { min-width: 0; flex: 1; height: 50px; border: 0; background: transparent; padding: 0 12px; font-size: 14px; }
.hero-search input:focus { outline: 0; }
.hero-search button { width: 42px; height: 42px; }
@keyframes hero-breathe { to { transform: scale(1.035) translate3d(-.35%, -.2%, 0); } }

.task-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.task-nav a { min-width: 0; min-height: 88px; padding: 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 180ms ease; }
.task-nav a:hover { background: var(--paper); text-decoration: none; }
.task-nav a > span:last-child { min-width: 0; }
.task-nav__icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eef2f5; color: #35404a; transition: transform 220ms cubic-bezier(.2,.75,.25,1), background 180ms ease, color 180ms ease; }
.task-nav svg, .trust-strip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.task-nav__item--1 .task-nav__icon { color: #1769d2; background: #e8f2ff; }
.task-nav__item--2 .task-nav__icon { color: #15915a; background: #e5f7ee; }
.task-nav__item--3 .task-nav__icon { color: #7b3fe4; background: #f0eaff; }
.task-nav__item--4 .task-nav__icon { color: #dc7114; background: #fff0df; }
.task-nav__item--5 .task-nav__icon { color: #1769d2; background: #e8f2ff; }
.task-nav__item--6 .task-nav__icon { color: #465360; background: #edf0f3; }
.task-nav__item--all .task-nav__icon { color: var(--ink); background: #edf0f3; }
.task-nav__item--onec { position: relative; background: linear-gradient(135deg, #fffdf2, #fff8d1); }
.task-nav__item--onec:hover { background: linear-gradient(135deg, #fff9d8, #ffef9b); }
.task-nav__icon--onec { background: #f5d319; color: #c9202b; font: 700 16px/1 var(--font-display); letter-spacing: -.06em; }
.task-nav__external { position: absolute; top: 10px; right: 10px; width: 14px !important; height: 14px !important; color: #9a8120; opacity: .58; }
.task-nav b, .task-nav small { display: block; }
.task-nav b { font-size: 14px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; text-wrap: pretty; }
.task-nav small { margin-top: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (min-width: 700px) { .task-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .task-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .task-nav a:nth-child(4n) { border-right: 0; }
  .task-nav a:nth-last-child(-n + 4) { border-bottom: 0; }
}

.trust-strip { display: grid; gap: 0; margin-top: var(--s3); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.trust-strip > span { min-height: 68px; padding: 12px 16px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-content: center; border-bottom: 1px solid var(--line); }
.trust-strip svg { grid-row: 1 / 3; align-self: center; width: 21px; height: 21px; }
.trust-strip b { font-size: 13px; font-weight: 500; }
.trust-strip small { color: var(--muted); font-size: 11px; }
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } .trust-strip > span { border-bottom: 0; border-right: 1px solid var(--line); } .trust-strip > span:last-child { border-right: 0; } }

/* ── кнопки ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 44px; padding: 0 var(--s6); border-radius: var(--r); border: 1px solid transparent; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 var(--s4); font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── карточки товаров ──────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .grid--5 { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; overflow: hidden; transition: border-color 180ms ease, transform 180ms ease; }
.card:hover { border-color: #bcc3ca; transform: translateY(-2px); }
.card__img { aspect-ratio: 4 / 3; background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__img picture { display: contents; }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card__img img { transition: transform 360ms cubic-bezier(.2,.75,.25,1); }
.card__img--empty { font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: 14px; text-align: center; padding: var(--s4); }
.product-cover { position: relative; isolation: isolate; width: 100%; height: 100%; min-height: 0; padding: clamp(24px, 5vw, 54px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: radial-gradient(circle at 78% 16%, rgb(255 255 255 / 96%) 0 10%, transparent 34%), linear-gradient(145deg, #f8fafb 0%, #e8edf1 58%, #dce3e8 100%); color: var(--ink); }
.product-cover__mesh { position: absolute; z-index: -1; inset: 0; opacity: .42; background-image: linear-gradient(rgb(104 119 132 / 9%) 1px, transparent 1px), linear-gradient(90deg, rgb(104 119 132 / 9%) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(145deg, #000, transparent 72%); mask-image: linear-gradient(145deg, #000, transparent 72%); }
.product-cover__mark { position: absolute; top: 13%; right: 11%; width: clamp(88px, 28%, 150px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 80%); border-radius: 28%; background: rgb(255 255 255 / 64%); color: #5f6d79; box-shadow: inset 0 1px 0 #fff, 0 22px 50px rgb(49 64 78 / 13%); transform: rotate(3deg); backdrop-filter: blur(12px); }
.product-cover__mark svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-cover__copy { position: relative; z-index: 1; max-width: 70%; display: grid; gap: 5px; }
.product-cover__copy b { overflow-wrap: anywhere; font: 600 clamp(20px, 3vw, 34px)/1.02 var(--font-display); letter-spacing: -.035em; }
.product-cover__copy small { color: var(--ink-2); font-size: 12px; }
.product-cover__accent { position: absolute; left: clamp(24px, 5vw, 54px); bottom: 21px; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); }
.product-cover--compact { min-height: 0; padding: 14px; }
.product-cover--compact .product-cover__mark { top: 13%; right: 10%; width: 39%; border-radius: 24%; }
.product-cover--compact .product-cover__copy { max-width: 76%; gap: 3px; }
.product-cover--compact .product-cover__copy b { font-size: clamp(13px, 1.25vw, 18px); letter-spacing: -.02em; }
.product-cover--compact .product-cover__copy small { font-size: 9px; }
.product-cover--compact .product-cover__accent { left: 14px; bottom: 9px; width: 24px; height: 2px; }
.card__body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card__vendor { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card__title { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.favorite-form--card { position: absolute; z-index: 3; top: 9px; right: 9px; }
.favorite-button { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 11px; background: rgb(255 255 255 / 84%); color: var(--ink-2); box-shadow: 0 7px 18px rgb(52 65 77 / 10%); backdrop-filter: blur(12px); cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.favorite-button:hover { color: var(--accent); transform: translateY(-1px); }
.favorite-button:active { transform: scale(.96); }
.favorite-button svg { width: 19px; height: 19px; fill: transparent; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: fill 180ms ease, transform 180ms ease; }
.favorite-button.is-active { color: var(--accent); background: #fff2f2; }
.favorite-button.is-active svg { fill: currentColor; transform: scale(1.04); }
.favorite-form--product { margin-left: auto; }
.favorite-form--product .favorite-button { min-width: 138px; background: var(--paper-2); box-shadow: none; }
.favorites-page { padding-top: var(--s6); }
.favorites-empty { max-width: 620px; margin: var(--s12) auto; padding: var(--s12); display: grid; justify-items: center; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.favorites-empty__icon { width: 68px; height: 68px; margin-bottom: var(--s4); display: grid; place-items: center; border-radius: 22px; color: var(--accent); background: #fff0f1; }
.favorites-empty__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.favorites-empty p { max-width: 48ch; color: var(--muted); }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding-top: var(--s2); }
.card__foot form, .card__foot button { position: relative; z-index: 1; }
.card .price { font-size: 18px; }
.card__meta { color: var(--muted); font-size: 11px; line-height: 1.35; }
.card__cart { width: 36px; height: 36px; border: 0; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--white); cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.card__cart:hover { background: var(--accent-ink); }
.card__cart:active { transform: scale(.96); }
.card__cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__img img { transform: scale(1.035); }
  .task-nav a:hover .task-nav__icon, .trust-strip > span:hover svg { transform: translateY(-2px); }
}

/* ── каталог: фильтры ──────────────────────────────────────────────────── */
.catalog { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .catalog { grid-template-columns: 240px 1fr; } }
.catalog--wide { grid-template-columns: 1fr; }
.filters details { border-top: 1px solid var(--line); padding: var(--s2) 0; }
.filters summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; padding: var(--s2) 0; }
.filters summary::after { content: "+"; color: var(--muted); }
.filters details[open] summary::after { content: "–"; }
.filters label { display: flex; gap: var(--s2); align-items: center; font-size: 14px; padding: 3px 0; cursor: pointer; }
.filters input[type="checkbox"] { accent-color: var(--ink); }
.filters__mobile-head, .filter-trigger, .filters-backdrop { display: none; }
.toolbar__summary { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.chip:hover { text-decoration: none; background: var(--accent); color: var(--white); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.select { height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 0 var(--s2); }
.pagination { display: flex; gap: var(--s1); justify-content: center; margin: var(--s8) 0; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font-mono); font-size: 14px; }
.pagination .is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin: var(--s4) 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.breadcrumbs a { color: var(--ink-2); }

/* ── корневой каталог ─────────────────────────────────────────────────── */
.catalog-index__head { margin: var(--s6) 0 var(--s6); display: flex; justify-content: space-between; align-items: end; gap: var(--s6); }
.catalog-index__head h1 { margin: 0; }
.catalog-index__head p { max-width: 42ch; margin: 0 0 4px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.category-accordions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; counter-reset: catalog-section; }
.category-accordion { --category-color: #1769d2; --category-bg: #e8f2ff; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--category-color) 13%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--category-bg) 32%, #fff), rgb(255 255 255 / 92%) 44%); box-shadow: 0 7px 24px rgb(56 70 84 / 4%); transition: border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease; }
.category-accordion:nth-child(4n + 2) { --category-color: #15915a; --category-bg: #e5f7ee; }
.category-accordion:nth-child(4n + 3) { --category-color: #7b3fe4; --category-bg: #f0eaff; }
.category-accordion:nth-child(4n + 4) { --category-color: #dc7114; --category-bg: #fff0df; }
.category-accordion:nth-child(5n + 1) { --category-color: #b7242b; --category-bg: #fff0f0; }
.category-accordion:first-child { grid-column: 1 / -1; }
.category-accordion::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--category-color); opacity: .34; transition: width 220ms ease, opacity 220ms ease; }
.category-accordion[open] { border-color: color-mix(in srgb, var(--category-color) 34%, var(--line)); box-shadow: 0 18px 44px color-mix(in srgb, var(--category-color) 10%, transparent); }
.category-accordion[open]::before { width: 5px; opacity: 1; }
.category-accordion summary { min-height: 92px; padding: 15px 18px; display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) 34px; align-items: center; gap: 13px; list-style: none; cursor: pointer; user-select: none; }
.category-accordion summary::-webkit-details-marker { display: none; }
.category-accordion summary:hover { background: color-mix(in srgb, var(--category-bg) 34%, transparent); }
.category-accordion__number { align-self: start; padding-top: 4px; color: color-mix(in srgb, var(--category-color) 70%, var(--muted)); font: 600 10px/1 var(--font-mono); letter-spacing: .08em; }
.category-accordion__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--category-color); background: var(--category-bg); box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%); }
.category-accordion__icon svg, .category-accordion__chevron svg, .category-accordion__body li svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-accordion__title { min-width: 0; display: grid; gap: 2px; }
.category-accordion__title b { font: 600 18px/1.25 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.category-accordion__title small { color: var(--muted); font: 12px/1.3 var(--font-mono); }
.category-accordion__title em { margin-top: 4px; color: var(--category-color); font: 500 11px/1.2 var(--font-body); font-style: normal; opacity: .78; }
.category-accordion[open] .category-accordion__title em { display: none; }
.category-accordion__chevron { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--paper-2); transition: transform 220ms ease, color 180ms ease, background 180ms ease; }
.category-accordion__chevron svg { width: 17px; height: 17px; }
.category-accordion[open] .category-accordion__chevron { transform: rotate(180deg); color: var(--category-color); background: var(--category-bg); }
.category-accordion__body { padding: 0 18px 18px 109px; }
.category-accordion__body ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.category-accordion__body li a { min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.category-accordion__body li a:hover { color: var(--category-color); text-decoration: none; }
.category-accordion__body li small { color: var(--muted); font: 11px/1 var(--font-mono); }
.category-accordion__body li svg { width: 16px; height: 16px; color: var(--muted); transform: translateX(-3px); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; }
.category-accordion__body li a:hover svg { transform: none; opacity: 1; }
.category-accordion__all { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--category-color); font-size: 13px; font-weight: 600; }
.category-accordion__all:hover { text-decoration: none; }

/* ── переход в профильный магазин 1С ─────────────────────────────────── */
.onec-entry { padding: 0 0 var(--s8); }
.onec-entry__list { display: grid; gap: 16px; }
.onec-entry__card { position: relative; min-height: 154px; overflow: hidden; padding: 25px 28px; display: grid; grid-template-columns: 118px minmax(260px, 1fr) auto auto; align-items: center; gap: 25px; border: 1px solid #eedb91; border-radius: 22px; background: radial-gradient(circle at 82% 20%, rgb(255 255 255 / 88%), transparent 28%), linear-gradient(120deg, #fff9df, #fff2b8 60%, #ffe78c); box-shadow: 0 20px 52px rgb(137 105 17 / 10%); text-decoration: none; }
.onec-entry__card::after { content: "1С"; position: absolute; right: 16%; bottom: -48px; color: rgb(122 87 0 / 5%); font: 700 170px/1 var(--font-display); letter-spacing: -.08em; pointer-events: none; }
.onec-entry__card:hover { text-decoration: none; border-color: #dcbd4f; }
.onec-entry__mark { position: relative; z-index: 1; width: 118px; height: 82px; padding: 15px; display: grid; place-items: center; border-radius: 22px; background: rgb(255 255 255 / 72%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 12px 28px rgb(137 105 17 / 13%); }
.onec-entry__mark--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.onec-entry__copy { position: relative; z-index: 1; display: grid; }
.onec-entry__copy .eyebrow { margin-bottom: 6px; color: #79661a; }
.onec-entry__copy strong { font: 600 clamp(24px, 2.6vw, 34px)/1.08 var(--font-display); letter-spacing: -.035em; }
.onec-entry__copy small { max-width: 62ch; margin-top: 8px; color: #5f5942; font-size: 13px; line-height: 1.45; }
.onec-entry__products { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.onec-entry__products i { padding: 7px 10px; border: 1px solid rgb(116 91 12 / 12%); border-radius: 9px; background: rgb(255 255 255 / 54%); color: #5f5119; font: 500 11px/1 var(--font-body); font-style: normal; text-align: center; }
.onec-entry__action { position: relative; z-index: 1; min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; border-radius: 13px; background: #171713; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform 180ms ease, background 180ms ease; }
.onec-entry__action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.onec-entry__card:hover .onec-entry__action { background: #c91f28; transform: translateX(2px); }
.kaspersky-entry__card { border-color: #aedfd2; background: radial-gradient(circle at 82% 20%, rgb(255 255 255 / 88%), transparent 28%), linear-gradient(120deg, #eefbf7, #d8f3ea 60%, #bce8db); box-shadow: 0 20px 52px rgb(11 112 88 / 10%); }
.kaspersky-entry__card::after { content: "K"; color: rgb(5 102 79 / 5%); letter-spacing: -.04em; }
.kaspersky-entry__card:hover { border-color: #58bda4; }
.kaspersky-entry__mark { box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 12px 28px rgb(5 102 79 / 14%); }
.kaspersky-entry__card .eyebrow { color: #176f5c; }
.kaspersky-entry__card .onec-entry__copy small { color: #415f58; }
.kaspersky-entry__card .onec-entry__products i { border-color: rgb(5 102 79 / 13%); background: rgb(255 255 255 / 56%); color: #285f53; }
.kaspersky-entry__card .onec-entry__action { background: #087e68; }
.kaspersky-entry__card:hover .onec-entry__action { background: #05664f; }
.datamobile-entry__card { border-color: #bad0ef; background: radial-gradient(circle at 82% 20%, rgb(255 255 255 / 88%), transparent 28%), linear-gradient(120deg, #f2f7ff, #dce9fb 60%, #c4dafa); box-shadow: 0 20px 52px rgb(32 85 156 / 10%); }
.datamobile-entry__card::after { content: "DM"; right: 10%; color: rgb(35 82 151 / 5%); font-size: 145px; letter-spacing: -.08em; }
.datamobile-entry__card:hover { border-color: #6e9ddd; }
.datamobile-entry__mark { box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 12px 28px rgb(32 85 156 / 14%); }
.datamobile-entry__card .eyebrow { color: #315f9f; }
.datamobile-entry__card .onec-entry__copy small { color: #485d79; }
.datamobile-entry__card .onec-entry__products i { border-color: rgb(32 85 156 / 13%); background: rgb(255 255 255 / 56%); color: #31577f; }
.datamobile-entry__card .onec-entry__action { background: #2864b7; }
.datamobile-entry__card:hover .onec-entry__action { background: #1e4f91; }

/* ── карточка товара ───────────────────────────────────────────────────── */
.product { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .product { grid-template-columns: 5fr 7fr; gap: var(--s12); } }
.gallery__main { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main picture { display: contents; }
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: var(--s2); margin-top: var(--s2); overflow-x: auto; }
.gallery__thumbs img { width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); display: grid; gap: var(--s3); }
.buybox__qty { display: flex; align-items: center; gap: var(--s2); }
.buybox__qty input { width: 64px; height: 44px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font-mono); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: var(--s2) 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 400; width: 40%; }
.prose { max-width: 70ch; }
.prose img { border-radius: var(--r); }
.prose h2, .prose h3 { margin-top: var(--s6); }
.tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--line); margin: var(--s8) 0 var(--s4); overflow-x: auto; }
.tabs a { padding: var(--s2) 0; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--ink-2); }
.tabs a { transition: color 180ms ease, border-color 180ms ease; }
.tabs a.is-active { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* ── квитанция ─────────────────────────────────────────────────────────── */
.receipt { background: var(--paper-2); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); padding: var(--s4); font-size: 14px; }
.receipt__row { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px dotted var(--line); }
.receipt__row:last-child { border-bottom: 0; }
.receipt__row b { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.receipt__title { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--s2); }
.timeline { display: grid; gap: var(--s2); counter-reset: step; font-size: 14px; }
.timeline div { display: flex; gap: var(--s3); align-items: baseline; }
.timeline div::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--muted); }
.key { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: .04em; background: var(--white); border: 1px solid var(--line); padding: var(--s2) var(--s3); border-radius: var(--r); user-select: all; word-break: break-all; }

/* ── статусы ───────────────────────────────────────────────────────────── */
.pill { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; }
.pill--ok { color: var(--ok); } .pill--warn { color: var(--warn); } .pill--bad { color: var(--bad); } .pill--muted { color: var(--muted); }

/* ── формы ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s4); }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--s1); }
.field input, .field select, .field textarea { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 var(--s3); background: var(--white); }
.field textarea { height: auto; padding: var(--s2) var(--s3); min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field .error, .errorlist { color: var(--bad); font-size: 13px; margin: var(--s1) 0 0; padding: 0; list-style: none; }
.field--check { display: flex; gap: var(--s2); align-items: flex-start; font-size: 14px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.form-cols { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .form-cols { grid-template-columns: 1fr 1fr; } }
.alert { border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: var(--s3) var(--s4); background: var(--white); border-radius: var(--r); }
.alert--bad { border-left-color: var(--bad); }
.alert--ok { border-left-color: var(--ok); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.segmented a, .segmented button { padding: 0 var(--s4); height: 40px; display: inline-flex; align-items: center; background: var(--white); border: 0; cursor: pointer; }
.segmented .is-active { background: var(--ink); color: var(--white); }

/* ── корзина / таблицы ─────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.table td { padding: var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty button { width: 32px; height: 32px; background: var(--white); border: 0; cursor: pointer; }
.qty span { width: 40px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); display: grid; gap: var(--s2); position: sticky; top: 80px; }
.checkout > .summary { align-self: start; align-content: start; }
.summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; border-top: 1px solid var(--line); padding-top: var(--s3); }
.checkout { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .checkout { grid-template-columns: 7fr 5fr; gap: var(--s12); } }
.cart-page { padding-top: var(--s4); }
.cart-page > h1 { margin-bottom: var(--s6); }
.cart-layout { display: grid; gap: var(--s6); }
.cart-items { min-width: 0; border-top: 1px solid var(--line); }
.cart-item { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(96px, auto) minmax(110px, auto) 42px; gap: var(--s4); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item__info { min-width: 0; padding-right: var(--s2); }
.cart-item__title { display: block; max-width: 52ch; font: 500 16px/1.38 var(--font-display); text-wrap: pretty; }
.cart-item__title:hover { color: var(--accent-ink); text-decoration: none; }
.cart-item__meta { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.cart-item__price, .cart-item__total { min-width: 0; display: grid; justify-items: end; gap: 4px; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cart-item__price small, .cart-item__total small { color: var(--muted); font: 500 9px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.cart-item__total strong { color: var(--ink); font-size: 16px; }
.cart-item__remove button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--muted); cursor: pointer; transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.cart-item__remove button:hover { border-color: #f1b8bb; background: #fff3f4; color: var(--accent-ink); }
.cart-item__remove button:active { transform: scale(.96); }
.cart-item__remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cart-item .qty { border-radius: 12px; background: var(--white); }
.cart-item .qty button { width: 38px; height: 40px; font-size: 19px; transition: background 160ms ease, color 160ms ease; }
.cart-item .qty button:hover { background: var(--paper-2); color: var(--accent-ink); }
.cart-item .qty button:disabled { opacity: .45; cursor: wait; }
.cart-item .qty span { width: 42px; background: #f7f8f9; font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-summary { position: sticky; top: 80px; }
.cart-summary__note { margin: 0; }
.cart-empty { max-width: 640px; margin: var(--s8) auto; padding: clamp(30px, 6vw, 64px); display: grid; justify-items: center; text-align: center; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.cart-empty__icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: var(--s4); border-radius: 18px; background: #fff0f1; color: var(--accent); }
.cart-empty__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-empty h2 { margin-bottom: var(--s2); }
.cart-empty p { color: var(--muted); }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: clamp(28px, 4vw, 58px); } }
@media (min-width: 768px) and (max-width: 1199px) {
  .cart-item { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 16px; }
  .cart-item__info { grid-column: 1 / -1; padding-right: 48px; }
  .cart-item__qty { grid-column: 1; }
  .cart-item__price { display: none; }
  .cart-item__total { grid-column: 2; }
  .cart-item__remove { grid-column: 3; }
}

/* ── секции ────────────────────────────────────────────────────────────── */
.section { padding: var(--s12) 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); }
.section__head a { font-size: 14px; color: var(--ink-2); }
.b2b { background: var(--ink); color: var(--paper); padding: var(--s12) 0; }
.b2b a { color: var(--paper); }
.b2b__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .b2b__grid { grid-template-columns: 7fr 5fr; } }
.b2b .btn--ghost { border-color: var(--paper); color: var(--paper); }
.vendors { display: flex; flex-wrap: wrap; gap: var(--s2); }

.vendors a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: var(--white); }
.vendors a:hover { border-color: var(--ink); text-decoration: none; }

/* ── футер ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--s12); padding: 30px 0 18px; font-size: 12px; color: var(--ink-2); background: #f3f4f4; }
.site-footer a { transition: color 180ms ease; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer__lead { display: grid; gap: var(--s6); padding-bottom: 20px; }
.site-footer__company { max-width: 62ch; }
.site-footer__logo { display: inline-flex; margin-bottom: 8px; }
.site-footer__company p { max-width: 52ch; margin-bottom: 10px; color: var(--ink); font: 500 16px/1.35 var(--font-display); letter-spacing: -.015em; text-wrap: pretty; }
.site-footer__company address { margin-top: 0; color: var(--muted); font-style: normal; line-height: 1.5; }
.site-footer__company address b { color: var(--ink-2); font-weight: 500; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.site-footer__contact > span { margin-bottom: 1px; color: var(--muted); }
.site-footer__contact > a { color: var(--ink); font: 500 14px/1.35 var(--font-display); }
.site-footer__social { display: flex; gap: 6px; margin-top: 8px; }
.site-footer__social a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d4d8da; border-radius: 50%; color: var(--ink); font: 600 9px/1 var(--font-mono); }
.site-footer__social img { width: 17px; height: 17px; display: block; object-fit: contain; }
.site-footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--s4); padding: 20px 0; border-top: 1px solid #d8dcde; }
.site-footer__nav h2 { margin: 0 0 8px; color: var(--ink); font: 600 12px/1.2 var(--font-display); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__nav a { color: var(--ink-2); line-height: 1.4; }
.site-footer__nav li > span { color: var(--muted); line-height: 1.4; }
.footer-link-button { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; line-height: 1.4; text-align: left; cursor: pointer; }
.footer-link-button:hover { color: var(--accent); }
.site-footer__bottom { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid #d8dcde; color: var(--muted); font-size: 10px; line-height: 1.45; }
.site-footer__bottom p { margin-bottom: 0; }
.site-footer__bottom p:first-child { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
@media (min-width: 768px) {
  .site-footer__lead { grid-template-columns: minmax(0, 1.7fr) minmax(220px, .7fr); align-items: center; }
  .site-footer__nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-footer__bottom { grid-template-columns: auto minmax(0, 1fr); gap: var(--s8); align-items: start; }
}

/* ── cookie consent ───────────────────────────────────────────────────── */
.cookie-consent { position: fixed; z-index: 70; left: 50%; bottom: 18px; width: min(760px, calc(100% - 32px)); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; transform: translateX(-50%); border: 1px solid rgb(255 255 255 / 88%); border-radius: 18px; background: rgb(255 255 255 / 92%); box-shadow: inset 0 1px 0 #fff, 0 22px 60px rgb(37 49 61 / 20%); backdrop-filter: blur(24px) saturate(150%); }
.cookie-consent.is-hidden { display: none; }
.cookie-consent__close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 22px/1 var(--font-body); cursor: pointer; }
.cookie-consent__close:hover { background: var(--paper-2); color: var(--ink); }
.cookie-consent__copy { min-width: 0; }
.cookie-consent__copy strong { display: block; margin-bottom: 4px; font: 600 16px/1.25 var(--font-display); }
.cookie-consent__copy p { margin: 0 0 5px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.cookie-consent__copy a { color: var(--accent-ink); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__actions { display: grid; gap: 7px; }
.cookie-consent__actions .btn { min-width: 178px; height: 39px; padding-inline: 14px; font-size: 12px; }
.cookie-consent__actions .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent); }
@media (max-width: 640px) {
  .cookie-consent { bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 16px; grid-template-columns: 1fr; gap: 13px; border-radius: 20px; }
  .cookie-consent__actions { grid-template-columns: 1fr; }
  .cookie-consent__actions .btn { width: 100%; }
}

/* ── мобильный liquid glass ───────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --gutter: 14px; --r-card: 18px; }
  html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 8% 4%, rgb(255 255 255 / 92%) 0 8rem, transparent 19rem),
      radial-gradient(circle at 100% 22%, rgb(225 232 239 / 65%) 0 7rem, transparent 21rem),
      #edf1f4;
  }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 42%, rgb(220 227 234 / 25%));
  }
  h1 { font-size: clamp(28px, 9vw, 38px); letter-spacing: -.04em; }
  h2 { font-size: 23px; letter-spacing: -.035em; }
  .display { font-size: clamp(38px, 12vw, 52px); }
  .section { padding: 34px 0; }

  .site-header { border-bottom: 0; background: rgb(239 243 246 / 72%); backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); box-shadow: 0 1px 0 rgb(255 255 255 / 78%), 0 10px 30px rgb(48 60 72 / 7%); }
  .site-header__inner { min-height: 58px; gap: 8px; padding-block: max(8px, env(safe-area-inset-top)) 8px; padding-inline: var(--gutter); }
  .mobile-favorite-link { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); right: var(--gutter); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: #59636e; background: rgb(255 255 255 / 58%); box-shadow: inset 0 1px 0 #fff; }
  .mobile-favorite-link.is-active { color: var(--accent); background: #fff0f1; }
  .mobile-favorite-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; }
  .mobile-favorite-link__count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font: 600 8px/1 var(--font-body); }
  .mobile-favorite-link__count:empty { display: none; }
  .brand { padding-right: 44px; }
  .brand > img { width: 120px; }
  .brand__product { padding-left: 7px; }
  .brand__product b { font-size: 9px; }
  .brand__product small { display: none; }
  .nav { display: none; }
  .search { height: 44px; margin: 0 0 2px; padding-left: 14px; border-color: rgb(255 255 255 / 82%); background: rgb(255 255 255 / 66%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 8px 22px rgb(55 68 82 / 8%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .search input { height: 42px; font-size: 16px; }
  .search button { width: 36px; height: 36px; }
  .page-home .site-header .search { display: none; }
  .page-home .site-header__inner { padding-bottom: max(8px, env(safe-area-inset-top)); }

  .mobile-dock {
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: max(9px, env(safe-area-inset-bottom));
    min-height: 68px; padding: 7px 7px 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid rgb(255 255 255 / 76%); border-radius: 24px;
    background: linear-gradient(160deg, rgb(255 255 255 / 82%), rgb(238 243 247 / 68%));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 -1px 0 rgb(125 139 153 / 10%), 0 14px 38px rgb(42 55 70 / 18%);
    backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%);
  }
  .mobile-dock > a, .mobile-dock__cart { min-width: 0; min-height: 52px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 17px; color: #59636e; font: 500 9px/1 var(--font-body); text-decoration: none; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
  .mobile-dock > a:active, .mobile-dock__cart:active { transform: scale(.94); }
  .mobile-dock > a.is-active, .mobile-dock__cart.is-active { color: var(--accent-ink); background: linear-gradient(155deg, rgb(255 255 255 / 82%), rgb(255 235 236 / 75%)); box-shadow: inset 0 1px 0 #fff, 0 5px 13px rgb(181 39 47 / 10%); }
  .mobile-dock svg, .mobile-dock__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-dock b, .mobile-dock__cart b { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 15px; height: 15px; padding: 0 3px; display: grid; place-items: center; border: 2px solid rgb(250 251 252 / 88%); border-radius: 999px; background: var(--accent); color: #fff; font: 600 8px/1 var(--font-body); }
  .mobile-dock b:empty, .mobile-dock__cart b:empty { display: none; }

  .hero { padding: 16px 0 30px; }
  .hero__panel { min-height: 520px; border-color: rgb(255 255 255 / 78%); border-radius: 26px; box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgb(55 68 82 / 10%); }
  .hero__panel::after { background: linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 94%) 48%, rgb(255 255 255 / 55%) 70%, rgb(255 255 255 / 12%) 100%); }
  .hero__backdrop img { object-position: 70% center; }
  .hero__copy { width: 100%; min-height: 520px; justify-content: flex-start; padding: 32px 22px 190px; }
  .hero__lead { font-size: 15px; }
  .hero-search { height: 50px; margin-top: 16px; padding-left: 15px; border-color: rgb(255 255 255 / 88%); box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgb(47 59 72 / 10%); }
  .hero-search input { height: 48px; font-size: 16px; }
  .task-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); border-color: rgb(255 255 255 / 78%); border-radius: 20px; background: rgb(255 255 255 / 58%); box-shadow: inset 0 1px 0 #fff, 0 13px 34px rgb(55 68 82 / 8%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .task-nav a { min-height: 76px; padding: 12px; }
  .trust-strip { border-color: rgb(255 255 255 / 78%); border-radius: 20px; background: rgb(255 255 255 / 58%); box-shadow: inset 0 1px 0 #fff, 0 13px 34px rgb(55 68 82 / 8%); }

  .grid { gap: 10px; }
  .card, .buybox, .summary, .gallery__main, .filters {
    border-color: rgb(255 255 255 / 80%); background: linear-gradient(155deg, rgb(255 255 255 / 78%), rgb(245 248 250 / 64%));
    box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgb(55 68 82 / 8%); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
  }
  .card { border-radius: 18px; }
  .card:hover { transform: none; }
  .card__img { aspect-ratio: 1 / .82; background: rgb(236 240 243 / 64%); }
  .card__body { padding: 11px; gap: 6px; }
  .card__vendor { font-size: 9px; }
  .card__title { font-size: 13px; }
  .card .price { font-size: 15px; }
  .card__cart { width: 34px; height: 34px; border-radius: 11px; }
  .card__meta { font-size: 9px; }

  .catalog { gap: 16px; }
  .catalog-index__head { margin: 18px 0 16px; display: block; }
  .catalog-index__head p { margin-top: 8px; font-size: 13px; }
  .category-accordions { grid-template-columns: 1fr; gap: 9px; }
  .category-accordion { border-color: rgb(255 255 255 / 80%); border-radius: 19px; background: linear-gradient(155deg, rgb(255 255 255 / 78%), rgb(245 248 250 / 64%)); box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgb(55 68 82 / 7%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .category-accordion:first-child { grid-column: auto; }
  .category-accordion summary { min-height: 82px; padding: 12px; grid-template-columns: 24px 42px minmax(0, 1fr) 28px; gap: 10px; }
  .category-accordion__icon { width: 42px; height: 42px; }
  .category-accordion__title b { font-size: 16px; }
  .category-accordion__title em { display: none; }
  .category-accordion__body { padding: 0 13px 14px 78px; }
  .category-accordion__body li a { min-height: 46px; }
  .onec-entry { padding-bottom: 28px; }
  .onec-entry__card { min-height: 0; padding: 20px; grid-template-columns: 84px minmax(0, 1fr); gap: 15px; border-radius: 22px; }
  .onec-entry__mark { width: 84px; height: 62px; padding: 11px; border-radius: 18px; }
  .onec-entry__copy strong { font-size: 23px; }
  .onec-entry__copy small { font-size: 12px; }
  .onec-entry__products { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .onec-entry__action { grid-column: 1 / -1; justify-content: center; }
  .filters { padding: 8px 14px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 20px; }
  .catalog { display: block; }
  .category-children { margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .category-children::-webkit-scrollbar { display: none; }
  .category-children a { flex: 0 0 auto; max-width: min(82vw, 310px); min-height: 38px; padding: 8px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; scroll-snap-align: start; }
  .filters { position: fixed; z-index: 72; left: 8px; right: 8px; bottom: 8px; max-height: min(78dvh, 680px); overflow: auto; padding: 0 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px; background: rgb(252 253 254 / 96%); box-shadow: 0 -18px 70px rgb(27 39 51 / 20%); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform 260ms cubic-bezier(.2,.75,.25,1), visibility 0s linear 260ms; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__mobile-head { position: sticky; z-index: 2; top: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; margin: 0 -18px 5px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgb(252 253 254 / 94%); backdrop-filter: blur(18px); }
  .filters__mobile-head strong { font: 600 20px/1 var(--font-display); }
  .filters__mobile-head button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--paper-2); color: var(--ink); }
  .filters__mobile-head svg, .filter-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .filters details { padding-block: 6px; }
  .filters summary { min-height: 44px; align-items: center; padding-block: 8px; }
  .filters-backdrop { position: fixed; z-index: 71; inset: 0; border: 0; background: rgb(17 24 30 / 34%); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; }
  .filters-backdrop.is-open { display: block; opacity: 1; visibility: visible; transition-delay: 0s; }
  body.has-filter-sheet { overflow: hidden; }
  .toolbar { align-items: center; flex-wrap: nowrap; margin-bottom: 14px; }
  .toolbar__summary { min-width: 0; gap: 9px; }
  .filter-trigger { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 82%); color: var(--ink); font: 600 13px/1 var(--font-body); }
  .filter-trigger b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 600 10px/1 var(--font-body); }
  .toolbar > label { margin-left: auto; font-size: 0; }
  .toolbar .select { width: auto; max-width: 154px; height: 40px; font-size: 13px; }
  .select { background: rgb(255 255 255 / 72%); }
  .pagination { margin: 30px 0; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }

  .product { gap: 20px; }
  .breadcrumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; white-space: nowrap; scrollbar-width: none; }
  .gallery__main { border-radius: 24px; }
  .buybox { padding: 16px; border-radius: 22px; }
  .favorite-form--product { margin-left: 0; }
  .favorite-form--product .favorite-button { width: 100%; }
  .buybox form.row { display: grid; grid-template-columns: 1fr 1fr; }
  .buybox__qty { grid-column: 1 / -1; }
  .buybox form.row .btn { width: 100%; padding: 0 10px; }
  .tabs { position: sticky; top: 111px; z-index: 10; margin: 30px calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); background: rgb(239 243 246 / 80%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .form-cols { grid-template-columns: 1fr !important; gap: 24px !important; }

  .checkout { gap: 18px; }
  .summary { position: static; border-radius: 22px; }
  .cart-page { padding-top: 14px; }
  .cart-page > h1 { margin-bottom: 18px; }
  .cart-layout { gap: 18px; }
  .cart-items { display: grid; gap: 10px; border-top: 0; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px 10px; padding: 16px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 20px; background: rgb(255 255 255 / 68%); box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgb(55 68 82 / 7%); }
  .cart-item__info { grid-column: 1 / -1; padding: 0 42px 0 0; }
  .cart-item__title { font-size: 15px; line-height: 1.35; }
  .cart-item__meta { margin-top: 5px; }
  .cart-item__qty { grid-column: 1; }
  .cart-item__price { display: none; }
  .cart-item__total { grid-column: 2; align-self: center; }
  .cart-item__total small { display: none; }
  .cart-item__total strong { font-size: 15px; }
  .cart-item__remove { position: absolute; top: 13px; right: 13px; }
  .cart-item__remove button { width: 36px; height: 36px; border-color: rgb(255 255 255 / 88%); background: rgb(255 255 255 / 72%); }
  .cart-item .qty button { width: 36px; height: 38px; }
  .cart-item .qty span { width: 38px; }
  .cart-summary { position: static; }
  .cart-empty { margin: 24px 0; border-color: rgb(255 255 255 / 80%); background: rgb(255 255 255 / 68%); }
  .segmented { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-color: rgb(255 255 255 / 85%); border-radius: 16px; background: rgb(255 255 255 / 52%); padding: 3px; }
  .segmented a, .segmented button { height: auto; min-height: 44px; padding: 7px 9px; justify-content: center; text-align: center; border-radius: 13px; font-size: 12px; }
  .field input, .field select, .field textarea { min-height: 48px; border-color: rgb(255 255 255 / 86%); background: rgb(255 255 255 / 68%); box-shadow: inset 0 1px 0 #fff; font-size: 16px; }
  .table { display: block; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 10px; }
  .table tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 18px; background: rgb(255 255 255 / 68%); }
  .table td { min-width: 0; padding: 0; border: 0; }
  .table td:first-child { grid-column: 1 / -1; }
  .table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .table td:nth-child(3) { display: none; }
  .table td:nth-child(4) { grid-column: 2; grid-row: 2; align-self: center; }
  .table td:nth-child(5) { position: absolute; top: 10px; right: 10px; }
  .table td:first-child { padding-right: 38px; }
  .site-footer { margin-top: 36px; padding: 24px 0 22px; background: rgb(234 239 243 / 72%); }
  .site-footer__lead { gap: 18px; padding-bottom: 18px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-block: 18px; }
  .favorites-page { padding-top: 18px; }
  .favorites-empty { margin: 28px auto; padding: 36px 22px; border-color: rgb(255 255 255 / 80%); background: rgb(255 255 255 / 68%); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); width: calc(100% - 28px); text-align: center; }
  .search-hint { margin-top: -4px; }
}

/* ── responsive continuity: phone → tablet → desktop ─────────────────── */
@media (max-width: 389px) {
  :root { --gutter: 12px; }
  .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: minmax(112px, 38%) 1fr; }
  .card__img { aspect-ratio: 1 / 1.08; }
  .card__body { min-width: 0; }
  .card__title { -webkit-line-clamp: 3; }
  .display { font-size: clamp(34px, 11.5vw, 44px); }
  .hero__copy { padding: 27px 18px 24px; }
  .hero-search input { padding-inline: 9px 4px; }
  .task-nav a { gap: 8px; }
  .task-nav__icon { width: 32px; height: 32px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .mobile-dock { left: 6px; right: 6px; padding-inline: 4px; border-radius: 21px; }
  .mobile-dock > a, .mobile-dock__cart { font-size: 8px; border-radius: 15px; }
}

@media (max-width: 339px) {
  .brand__product { display: none; }
  .task-nav { grid-template-columns: 1fr; }
  .mobile-dock > a, .mobile-dock__cart { gap: 2px; }
  .mobile-dock svg, .mobile-dock__cart svg { width: 20px; height: 20px; }
}

@media (min-width: 600px) and (max-width: 767px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --gutter: clamp(22px, 4vw, 36px); }
  .hero__copy { padding: clamp(38px, 7vw, 64px); }
  .section { padding-block: 42px; }
  .product { grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); align-items: start; }
  .gallery__main { position: sticky; top: 88px; }
  .checkout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px; }
  .summary { top: 88px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --gutter: 28px; }
  .site-header__inner { gap: 12px; }
  .primary-nav { gap: 12px; }
  .brand__product small { display: none; }
}

@media (max-width: 767px) and (max-height: 500px) and (orientation: landscape) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-dock { min-height: 54px; bottom: max(5px, env(safe-area-inset-bottom)); padding-block: 4px; }
  .mobile-dock > a, .mobile-dock__cart { min-height: 44px; gap: 0; }
  .mobile-dock > a span, .mobile-dock__cart span { display: none; }
  .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ── restrained motion: reveal once, then remain stable ──────────────── */
.task-nav__icon, .trust-strip svg { transition: transform 220ms cubic-bezier(.2,.75,.25,1); }
.motion-ready .reveal-item { opacity: 0; transform: translateY(14px); }
.motion-ready .reveal-item.is-revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity 440ms ease var(--reveal-delay, 0ms), transform 520ms cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms);
}
.mobile-dock { animation: dock-in 420ms cubic-bezier(.2,.8,.25,1) both; }
@keyframes dock-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── HTMX ──────────────────────────────────────────────────────────────── */
.htmx-swapping { opacity: .5; transition: opacity var(--t); }
.htmx-request .btn { opacity: .6; }
.toast { position: fixed; left: 50%; bottom: var(--s6); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r); font-size: 14px; z-index: 30; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .motion-ready .reveal-item { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .subnav, .site-footer, .btn, .nav, .mobile-dock { display: none !important; }
  body { background: #fff; }
}
