/* Зентум.Маркет — витрина. Значения — из дизайн-системы (README + tokens.css), не округлять. */

/* ———————————————————— База ———————————————————— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg-page); color: var(--text-1);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus-ring), 0 0 0 1.5px var(--accent-600); border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }
.mi {
  font-family: var(--font-icon); font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  width: 1em; height: 1em; overflow: hidden; user-select: none;
}
.mi.is-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.container { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1440px) { .container { max-width: 1280px; padding: 0; } }

.mono { font-family: var(--font-mono); font-weight: 500; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* ———————————————————— Типографика (mobile → desktop) ———————————————————— */
.t-display { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.t-h1, h1 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; }
.t-h2, h2 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.t-h3, h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.t-h4, h4 { font-size: 18px; line-height: 26px; font-weight: 600; }
.t-l { font-size: 17px; line-height: 26px; }
.t-s { font-size: 14px; line-height: 20px; }
.t-cap { font-size: 12px; line-height: 16px; font-weight: 500; }
.t-price { font-size: 20px; line-height: 26px; font-weight: 700; white-space: nowrap; }
@media (min-width: 1024px) {
  .t-display { font-size: 48px; line-height: 56px; }
  .t-h1, h1 { font-size: 36px; line-height: 44px; }
  .t-h2, h2 { font-size: 28px; line-height: 36px; }
  .t-h3, h3 { font-size: 22px; line-height: 30px; }
  .t-l { font-size: 18px; line-height: 28px; }
  .t-price { font-size: 22px; line-height: 28px; }
}
/* тексты — на всю ширину области контента (решение владельца 07.10.2026) */
.prose { font-size: 16px; line-height: 26px; color: var(--text-1); }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 32px; font-size: 22px; line-height: 30px; }
.prose h3 { margin-top: 24px; font-size: 18px; line-height: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border-top: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ———————————————————— Кнопки ———————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 0; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none !important; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn .mi { font-size: 20px; }
.btn:active { transform: scale(.98); }
.btn--l { height: 52px; padding: 0 24px; }
.btn--s { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; gap: 6px; }
.btn--s .mi { font-size: 18px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent-600); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-700); }
.btn--primary:active { background: var(--accent-800); }
[data-theme="dark"] .btn--primary:active { background: var(--accent-700); }
.btn--secondary { background: var(--surface); color: var(--text-1); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn--secondary:hover { background: var(--fill); }
.btn--tinted { background: var(--accent-100); color: var(--accent-800); }
.btn--tinted:hover { background: var(--accent-200); }
[data-theme="dark"] .btn--tinted:hover { background: #4A3424; }
.btn--ghost { background: transparent; color: var(--accent-700); }
.btn--ghost:hover { background: var(--accent-50); }
[data-theme="dark"] .btn--ghost:hover { background: var(--accent-100); }
.btn--danger { background: var(--danger-bg); color: var(--danger-fg); }
.btn--danger:hover { background: #F5CFCA; }
.btn--success { background: var(--success-bg); color: var(--success-fg); }
.btn[disabled], .btn.is-disabled { background: var(--fill-2); color: var(--text-disabled); cursor: not-allowed; box-shadow: none; transform: none; }
.btn .btn__sum { margin-left: auto; font-weight: 600; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: var(--text-1); position: relative; flex-shrink: 0;
  transition: background var(--dur-fast), transform var(--dur-fast); text-decoration: none !important;
}
.icon-btn .mi { font-size: 22px; }
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { transform: scale(.96); }
.icon-btn--secondary { box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); }
.icon-btn--round { border-radius: var(--r-pill); background: var(--fill); width: 40px; height: 40px; }
.icon-btn--primary { background: var(--accent-600); color: var(--on-accent); }
.icon-btn--primary:hover { background: var(--accent-700); }
.counter {
  position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent-600); color: var(--on-accent); font-size: 12px; line-height: 22px; font-weight: 700; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.counter.is-bump { animation: z-bump 220ms var(--ease-bounce); }
@keyframes z-bump { 0% { transform: scale(1) } 50% { transform: scale(1.35) } 100% { transform: scale(1) } }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-700); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ———————————————————— Поля ———————————————————— */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field__label .opt { font-weight: 400; color: var(--text-3); }
.field__hint { font-size: 14px; line-height: 20px; color: var(--text-3); }
.field__error { font-size: 14px; line-height: 20px; color: var(--danger-fg); display: flex; gap: 6px; align-items: flex-start; }
.field__error .mi { font-size: 18px; margin-top: 1px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border-field);
  background: var(--surface); color: var(--text-1); font-size: 16px; line-height: 24px; outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-600); box-shadow: var(--focus-ring); }
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--danger-dot); }
.input.is-ok { border-color: var(--success-dot); }
.input--mono { font-family: var(--font-mono); font-weight: 500; }
.select-wrap { position: relative; }
.select { padding-right: 42px; cursor: pointer; }
.select-wrap .mi { position: absolute; right: 10px; top: 13px; font-size: 22px; color: var(--text-2); pointer-events: none; }
.input-wrap { position: relative; }
.input-wrap > .mi { position: absolute; right: 12px; top: 13px; font-size: 22px; }
.input-wrap > .mi.is-ok { color: var(--success-fg); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 768px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.req-card { background: var(--success-bg); border-radius: 12px; padding: 12px 14px; }
.req-card__name { font-size: 15px; line-height: 22px; font-weight: 600; color: #1F5133; }
.req-card__meta { font-size: 13px; line-height: 18px; color: #2E5C3E; }
[data-theme="dark"] .req-card__name, [data-theme="dark"] .req-card__meta { color: var(--success-fg); }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 22px; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--dur-base);
}
.check__box .mi { font-size: 18px; color: #fff; opacity: 0; transition: opacity var(--dur-base); }
.check input:checked + .check__box { background: var(--accent-600); border-color: var(--accent-600); }
.check input:checked + .check__box .mi { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: var(--focus-ring); }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { width: 44px; height: 26px; border-radius: var(--r-pill); background: #D6CBBE; padding: 3px; flex-shrink: 0; transition: background var(--dur-base) var(--ease-standard); }
[data-theme="dark"] .toggle__track { background: var(--border-field); }
.toggle__knob { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(60,40,20,.25); transition: transform var(--dur-base) var(--ease-standard); }
.toggle input:checked + .toggle__track { background: var(--accent-600); }
.toggle input:checked + .toggle__track .toggle__knob { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--focus-ring); }

.radio-cards { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; position: relative; transition: border-color var(--dur-base), background var(--dur-base);
}
.radio-card:hover { border-color: var(--border-strong); }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: border-color var(--dur-base); }
.radio-card__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-600); transform: scale(0); transition: transform var(--dur-base) var(--ease-bounce); }
.radio-card__body { flex: 1; min-width: 0; }
.radio-card__head { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 24px; font-weight: 600; }
.radio-card__price { white-space: nowrap; }
.radio-card__desc { font-size: 14px; line-height: 20px; color: var(--text-2); margin-top: 2px; }
.radio-card:has(input:checked), .radio-card.is-checked { border-color: var(--accent-600); background: var(--accent-50); }
[data-theme="dark"] .radio-card:has(input:checked), [data-theme="dark"] .radio-card.is-checked { background: var(--accent-100); }
.radio-card:has(input:checked) .radio-card__dot, .radio-card.is-checked .radio-card__dot { border-color: var(--accent-600); }
.radio-card:has(input:checked) .radio-card__dot::after, .radio-card.is-checked .radio-card__dot::after { transform: scale(1); }
.radio-card:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.radio-card.is-disabled { opacity: .55; cursor: not-allowed; }

.stepper { display: inline-flex; align-items: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--border-field); background: var(--surface); overflow: hidden; flex-shrink: 0; }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-1); }
.stepper button .mi { font-size: 22px; }
.stepper button:hover:not(:disabled) { background: var(--fill); }
.stepper button:disabled { color: var(--neutral-dot); cursor: not-allowed; }
.stepper input { width: 40px; border: 0; background: transparent; text-align: center; font-size: 17px; font-weight: 600; padding: 0; -moz-appearance: textfield; outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--s { height: 44px; }
.stepper--s button { width: 42px; height: 42px; }
.stepper-note { font-size: 14px; line-height: 20px; color: var(--warning-fg); display: flex; gap: 6px; align-items: flex-start; }
.stepper-note .mi { font-size: 18px; margin-top: 1px; }

.tip { position: relative; display: inline-flex; color: var(--text-3); cursor: help; }
.tip .mi { font-size: 18px; }
.tip__bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); width: max-content; max-width: 260px;
  background: var(--inverse-bg); color: var(--inverse-text); font-size: 14px; line-height: 20px; font-weight: 400; padding: 10px 12px;
  border-radius: 10px; box-shadow: var(--shadow-raised); opacity: 0; pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base); z-index: 30;
}
.tip:hover .tip__bubble, .tip:focus-within .tip__bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ———————————————————— Бейджи, теги, чипсы ———————————————————— */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: var(--r-pill); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; align-self: flex-start; }
.badge .mi { font-size: 18px; }
.badge--s { height: 24px; padding: 0 10px 0 6px; font-size: 13px; gap: 5px; }
.badge--s .mi { font-size: 16px; }
.tone-success { background: var(--success-bg); color: var(--success-fg); }
.tone-warning { background: var(--warning-bg); color: var(--warning-fg); }
.tone-info { background: var(--info-bg); color: var(--info-fg); }
.tone-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.tone-danger { background: var(--danger-bg); color: var(--danger-fg); }
.status-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; background: none !important; }
.status-inline .mi { font-size: 18px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.tag--new { background: var(--surface); color: var(--text-2); }
.tag--fill { background: var(--fill); color: var(--text-2); }
.tag--sale { background: var(--accent-600); color: var(--on-accent); }
.tag--b2b { background: var(--text-1); color: var(--bg-page); }
.tag--warranty { background: var(--success-bg); color: var(--success-fg); }
.tag--info { background: var(--info-bg); color: var(--info-fg); }
.pn-label { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--info-bg); color: var(--info-fg); font-size: 12px; font-weight: 600; }
.pn-label .mi { font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border-field); background: var(--surface); color: var(--text-1); font-size: 14px; font-weight: 500; white-space: nowrap;
  text-decoration: none !important; cursor: pointer; transition: background var(--dur-base), border-color var(--dur-base);
}
.chip .mi { font-size: 18px; color: var(--text-3); }
.chip:hover { background: var(--fill); border-color: var(--border-strong); }
.chip .chip__count { color: var(--text-3); font-weight: 400; }
.chip.is-active { background: var(--text-1); border-color: var(--text-1); color: var(--bg-page); padding: 0 6px 0 14px; }
.chip.is-active .chip__x { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.chip.is-active .chip__x .mi { color: var(--bg-page); }
.chip.is-active:hover .chip__x { background: rgba(250, 246, 241, .16); }
.chip--plain { padding: 0 14px; }
.chips-reset { height: 36px; border-radius: var(--r-pill); padding: 0 12px; }

/* ———————————————————— Карточки, блоки ———————————————————— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-rest); }
.card--pad { padding: 20px; }
@media (min-width: 768px) { .card--pad { padding: 24px; } }
.section { margin-top: 48px; }
@media (min-width: 1024px) { .section { margin-top: 80px; } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head a { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.info-block { display: flex; gap: 12px; background: var(--info-bg); color: #22396B; border-radius: 16px; padding: 16px; font-size: 14px; line-height: 20px; }
[data-theme="dark"] .info-block { color: var(--info-fg); }
.info-block > .mi { font-size: 22px; color: var(--info-fg); }
.info-block__title { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 4px; }
/* «Сохраните заказ в личном кабинете» на странице заказа */
.account-offer { scroll-margin-top: 120px; }
.account-offer__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 12px; }
.account-offer__form .field { flex: 1 1 220px; }
.account-offer__form .btn { height: 48px; }
.account-offer .consent { margin-top: 8px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.notice .mi { font-size: 20px; }
.notice--warning { background: var(--warning-bg); color: var(--warning-fg); }
.notice--danger { background: var(--danger-bg); color: var(--danger-fg); border: 1px solid var(--danger-border); }
.notice--success { background: var(--success-bg); color: var(--success-fg); }
.notice--info { background: var(--info-bg); color: var(--info-fg); }

/* ———————————————————— Шапка ———————————————————— */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top { display: none; }
@media (min-width: 1024px) {
  .header-top { display: block; background: var(--bg-page); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text-2); }
  .header-top .container { display: flex; align-items: center; gap: 24px; height: 40px; }
  .header-top a { color: var(--text-2); }
  .header-top a:hover { color: var(--accent-700); }
  .header-top__right { margin-left: auto; display: flex; gap: 20px; align-items: center; }
  .header-top .mi { font-size: 18px; vertical-align: -4px; margin-right: 4px; color: var(--text-3); }
}
.header-main .container { display: flex; align-items: center; gap: 12px; height: 64px; }
@media (min-width: 1024px) { .header-main .container { height: 88px; gap: 24px; } }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--text-1); flex-shrink: 0; }
:root { --brand-navy: #1C3D6E; --brand-orange: #F58220; }
[data-theme="dark"] { --brand-navy: #9DB9E6; }
.logo__mark { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }  /* белка в полный рост, без фона */
.logo__word { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo__zen { color: var(--brand-navy); }
.logo__tum { color: var(--brand-orange); }
.logo__svc { color: var(--text-1); font-weight: 500; }
@media (max-width: 359px) { .header-main .logo__svc { display: none; } }
.header-catalog-btn { display: none; }
@media (min-width: 1024px) { .header-catalog-btn { display: inline-flex; } }
.header-search { flex: 1; min-width: 0; display: none; }
@media (min-width: 1024px) { .header-search { display: block; } }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; gap: 8px; } }
.header-action { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 12px; color: var(--text-1); font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: none !important; position: relative; min-width: 44px; }
.header-action .mi { font-size: 24px; }
.header-action:hover { background: var(--fill); }
.header-action .counter { top: -2px; right: 2px; }
.header-action__label { display: none; }
@media (min-width: 1024px) { .header-action__label { display: block; } }
.header-mobile-search { padding: 0 0 12px; }
@media (min-width: 1024px) { .header-mobile-search { display: none; } }
.header-nav { display: none; }
@media (min-width: 1024px) {
  .header-nav { display: block; border-top: 1px solid var(--line); }
  .header-nav .container { display: flex; gap: 4px; height: 48px; align-items: center; }
  /* Категории, которые не помещаются в строку, уходят в «Ещё» (app.js → navFit) */
  .header-nav__list { display: flex; gap: 4px; align-items: center; flex: 1 1 auto; min-width: 0; }
  .header-nav__list > a[hidden] { display: none; }
  .header-nav__more { position: relative; flex-shrink: 0; }
  .header-nav__more-btn { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text-1); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
  .header-nav__more-btn:hover, .header-nav__more-btn[aria-expanded="true"] { background: var(--fill); }
  .header-nav__more-btn .mi { font-size: 20px; color: var(--text-2); transition: transform var(--dur-base); }
  .header-nav__more-btn[aria-expanded="true"] .mi { transform: rotate(180deg); }
  .header-nav__menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 260px; max-width: 340px; padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 45; box-shadow: 0 16px 48px rgba(60, 40, 20, .14); }
  .header-nav__menu.is-open { display: flex; }
  .header-nav__menu a { height: 40px; width: 100%; white-space: normal; }
  .header-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-1); font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
  .header-nav a .mi { font-size: 20px; color: var(--accent-700); }
  .header-nav a:hover, .header-nav a.is-active { background: var(--fill); }
  .header-nav__right { margin-left: auto; display: flex; gap: 4px; }
}
.b2b-switch { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--text-1); color: var(--bg-page) !important; font-size: 13px; font-weight: 600; }
.b2b-switch .mi { font-size: 16px; color: var(--bg-page) !important; }

/* Мега-меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); display: none; max-height: calc(100vh - 140px); overflow: auto; }
.mega.is-open { display: block; animation: z-fade-down var(--dur-slow) var(--ease-out); }
.mega .container { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-top: 24px; padding-bottom: 32px; }
.mega__roots { display: flex; flex-direction: column; gap: 2px; }
.mega__root { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-1); font-weight: 500; text-decoration: none !important; }
.mega__root .mi { font-size: 22px; color: var(--accent-700); }
.mega__root .count { margin-left: auto; color: var(--text-3); font-size: 13px; }
.mega__root:hover, .mega__root.is-active { background: var(--fill); }
.mega__panel { display: none; }
.mega__panel.is-active { display: block; }
.mega__panel h3 { margin-bottom: 16px; }
.mega__links { columns: 3 200px; column-gap: 24px; }
.mega__links a { display: block; padding: 6px 0; color: var(--text-1); break-inside: avoid; }
.mega__links a:hover { color: var(--accent-700); }
.mega__links .count { color: var(--text-3); font-size: 13px; margin-left: 4px; }
@keyframes z-fade-down { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }

/* ———————————————————— Поиск ———————————————————— */
.search { position: relative; }
.search__bar { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-field); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.search__bar:hover { border-color: var(--border-strong); }
.search__bar:focus-within { border-color: var(--accent-600); box-shadow: 0 0 0 4px rgba(194, 84, 31, .14); }
.search__bar > .mi { font-size: 24px; color: var(--text-3); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--text-1); }
.search__input::placeholder { font-family: var(--font-sans); font-weight: 400; color: var(--text-3); font-size: 16px; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear { display: none; }
.search.has-value .search__clear { display: inline-flex; }
.search__submit { height: 44px; border-radius: 10px; padding: 0 18px; }
.search--compact .search__bar { height: 52px; padding-left: 14px; }
.search--compact .search__submit { display: none; }
@media (min-width: 1024px) { .search--compact .search__submit { display: inline-flex; } .search--compact .search__bar { height: 56px; } }
.search__hint { font-size: 14px; line-height: 20px; color: var(--text-3); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.search__drop { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 16px 48px rgba(60, 40, 20, .14); z-index: 50; display: none; max-height: min(70vh, 640px); overflow-y: auto; }
.search.is-open .search__drop { display: block; animation: z-fade-down 200ms var(--ease-out); }
.sd-group + .sd-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.sd-group__title { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-3); }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text-1); text-decoration: none !important; }
.sd-item:hover, .sd-item.is-focus { background: var(--fill); }
.sd-item--exact { background: var(--accent-50); }
[data-theme="dark"] .sd-item--exact { background: var(--accent-100); }
.sd-item__img { width: 52px; height: 52px; border-radius: 10px; background: var(--fill); flex-shrink: 0; object-fit: contain; display: flex; align-items: center; justify-content: center; color: var(--border-strong); overflow: hidden; }
.sd-item__img .mi { font-size: 28px; }
.sd-item__body { flex: 1; min-width: 0; }
.sd-item__name { font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-item__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 2px; font-size: 13px; line-height: 18px; }
.sd-item__pn { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.sd-item__pn mark { background: var(--accent-200); color: inherit; border-radius: 4px; padding: 0 1px; }
.sd-item__price { font-size: 17px; font-weight: 700; white-space: nowrap; }
.sd-item__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .sd-item__icon { background: var(--accent-100); }
.sd-item__count { color: var(--text-3); font-size: 13px; margin-left: auto; white-space: nowrap; }
.sd-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--text-2); font-weight: 500; }
.sd-empty { padding: 16px 10px; color: var(--text-2); font-size: 15px; }
.layout-fix { background: var(--info-bg); color: var(--info-fg); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 22px; }

/* ———————————————————— Карточка товара ———————————————————— */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .pgrid { gap: 24px; } .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-rest); transition: box-shadow var(--dur-base), transform var(--dur-base); position: relative; min-width: 0;
}
.pcard:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.pcard__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--fill); display: flex; align-items: center; justify-content: center; color: var(--border-strong); overflow: hidden; }
.pcard__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .pcard__photo img { mix-blend-mode: normal; }
.pcard__photo > .mi { font-size: 80px; }
.pcard.is-out .pcard__photo img, .pcard.is-out .pcard__photo > .mi { opacity: .45; }
.pcard__tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(60, 40, 20, .12); transition: color var(--dur-base), transform var(--dur-fast); z-index: 2; }
.fav-btn .mi { font-size: 22px; }
.fav-btn:hover { color: var(--accent-600); }
.fav-btn:active { transform: scale(.94); }
.fav-btn.is-active { color: var(--accent-600); }
.fav-btn.is-active .mi { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.pcard__link { color: var(--text-1); text-decoration: none !important; }
.pcard__link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.pcard__name { font-size: 16px; line-height: 22px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.pn-btn { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; border: 0; background: var(--fill); color: var(--text-1); font-family: var(--font-mono); font-size: 13px; font-weight: 500; max-width: 100%; transition: background var(--dur-base); }
.pn-btn:hover { background: var(--fill-2); }
.pn-btn__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-btn .mi { font-size: 16px; color: var(--text-3); }
.pn-btn.is-copied .pn-btn__icon { display: none; }
.pn-btn__done { display: none; align-items: center; gap: 2px; font-family: var(--font-sans); font-size: 12px; color: var(--success-fg); }
.pn-btn__done .mi { color: var(--success-fg); }
.pn-btn.is-copied .pn-btn__done { display: inline-flex; }
.pcard__compat { font-size: 14px; line-height: 20px; color: var(--text-3); }
.pcard__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; position: relative; z-index: 2; }
.price-block { display: flex; flex-direction: column; min-width: 0; }
.price-old { font-size: 13px; line-height: 16px; color: var(--text-3); text-decoration: line-through; white-space: nowrap; }
.price-now { font-size: 20px; line-height: 26px; font-weight: 700; white-space: nowrap; }
@media (min-width: 1024px) { .price-now { font-size: 22px; line-height: 28px; } }
.price-ask { font-size: 15px; line-height: 20px; color: var(--text-2); font-weight: 500; }
.pcard__wait { font-size: 14px; line-height: 20px; color: var(--text-3); }
.add-btn { height: 44px; padding: 0 14px; font-size: 15px; gap: 6px; }
.add-btn .add-btn__label { display: inline; }
.add-btn.is-added { background: var(--success-bg); color: var(--success-fg); }
.add-btn.is-added:hover { background: var(--success-bg); }
@media (max-width: 639px) {
  .pcard { padding: 10px; gap: 8px; }
  .pcard .add-btn { width: 44px; padding: 0; }
  .pcard .add-btn .add-btn__label { display: none; }
  .pcard__name { font-size: 15px; line-height: 20px; min-height: 40px; }
  .pcard .pn-btn { font-size: 12px; height: 26px; }
  .pcard__compat { font-size: 13px; }
  .fav-btn { width: 36px; height: 36px; top: 6px; right: 6px; }
  .pcard .price-now { font-size: 18px; line-height: 24px; }
}
.pcard .notify-btn { width: 100%; position: relative; z-index: 2; }

/* Строка списка (для мастеров) */
.plist { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; position: relative; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow__img { width: 64px; height: 64px; border-radius: 10px; background: var(--fill); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--border-strong); overflow: hidden; }
.prow__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prow__img .mi { font-size: 32px; }
.prow__main { flex: 1 1 240px; min-width: 0; }
.prow__name { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text-1); }
.prow__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.prow__meta .mono { color: var(--text-1); font-size: 13px; }
.prow__right { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; flex-shrink: 0; margin-left: auto; }
.prow__status { min-width: 140px; }
.prow__price { width: 110px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.prow__price .price-now { font-size: 18px; line-height: 24px; }
@media (max-width: 639px) { .prow__right { width: 100%; justify-content: space-between; gap: 10px; } .prow__status { min-width: 0; } .prow__price { width: auto; } }

.segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill-2); }
.segment a, .segment button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); border: 0; background: transparent; text-decoration: none !important; white-space: nowrap; }
.segment .mi { font-size: 18px; }
.segment .is-active { background: var(--surface); color: var(--text-1); box-shadow: 0 1px 3px rgba(60, 40, 20, .12); }

/* ———————————————————— Каталог, фильтры ———————————————————— */
.page-head { padding: 24px 0 8px; }
@media (min-width: 1024px) { .page-head { padding: 32px 0 12px; } }
.page-head__sub { color: var(--text-2); margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--text-3); padding-top: 16px; }
.crumbs a { color: var(--text-2); }
.crumbs .mi { font-size: 18px; }
.catalog-layout { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; align-self: start; position: sticky; top: 196px; max-height: calc(100vh - 212px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; } }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup__title { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.fgroup__list { display: flex; flex-direction: column; gap: 10px; }
.fgroup__list .check { font-size: 15px; }
.fgroup__list .count { color: var(--text-3); margin-left: 4px; }
.fgroup__more { margin-top: 10px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar__count { color: var(--text-2); font-size: 15px; }
.toolbar__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.filters-btn { display: inline-flex; }
@media (min-width: 1024px) { .filters-btn { display: none; } }
.sort-select { height: 40px; border-radius: 10px; font-size: 14px; padding: 0 36px 0 12px; }
.sort-select + .mi { top: 9px; }
.active-filters { margin-bottom: 16px; }
/* Подкатегории: на телефоне — лентой до краёв экрана (листается пальцем), на планшете и компьютере — переносятся
   на новые строки, а не уходят за край */
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px 4px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcats .chip { flex: none; }
.subcats__label { flex: none; align-self: center; font-size: 14px; color: var(--text-2); margin-right: 4px; }
.subcats .chip.is-active { padding: 0 14px; }
@media (min-width: 768px) { .subcats { flex-wrap: wrap; overflow: visible; padding: 4px 0 12px; margin: 0 0 4px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-1); font-weight: 600; text-decoration: none !important; }
.pager a:hover { background: var(--fill); }
.pager .is-current { background: var(--text-1); color: var(--bg-page); }
.seo-text { margin-top: 48px; color: var(--text-2); }

/* ———————————————————— Шторка, модалка, тосты ———————————————————— */
.overlay { position: fixed; inset: 0; background: rgba(42, 33, 27, .4); z-index: 80; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.overlay.is-open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(40, 25, 15, .18); max-height: 86%; display: flex; flex-direction: column; transform: translateY(100%); transition: transform var(--dur-slow) var(--ease-out); }
.sheet.is-open { transform: none; }
.sheet__handle { padding: 8px 0 4px; display: flex; justify-content: center; }
.sheet__handle span { width: 40px; height: 4px; border-radius: var(--r-pill); background: #D6CBBE; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 12px; }
.sheet__title { font-size: 20px; line-height: 28px; font-weight: 700; }
.sheet__body { overflow-y: auto; padding: 0 16px 16px; flex: 1; }
.sheet__body .chip { height: 40px; font-size: 15px; }
.sheet__foot { padding: 16px; border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .sheet--side { left: auto; top: 0; width: 420px; max-height: none; border-radius: 20px 0 0 20px; transform: translateX(100%); } .sheet--side.is-open { transform: none; } }

.modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.modal__box { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 16px 48px rgba(40, 25, 15, .22); pointer-events: auto; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal--wide .modal__box { max-width: 720px; }
/* окна с полем ввода: на телефоне — у верхнего края, чтобы клавиатура не закрывала поле и подсказки */
@media (max-width: 767px) { .modal--top { align-items: flex-start; padding-top: max(16px, env(safe-area-inset-top)); } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 22px; line-height: 30px; font-weight: 700; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.steps-list { display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps-list li { list-style: none; display: flex; gap: 12px; font-size: 15px; line-height: 22px; }
.steps-list li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-100); color: var(--accent-800); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.where-pn-photo { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--fill); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.where-pn-sticker { background: #fff; border-radius: 8px; padding: 12px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: #2A211B; box-shadow: 0 4px 16px rgba(60, 40, 20, .15); transform: rotate(-2deg); }
.where-pn-sticker b { background: var(--accent-200); padding: 0 3px; border-radius: 4px; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
@media (max-width: 767px) { body.has-sticky-cta .toasts { bottom: 96px; } }
.toast { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--inverse-bg); color: var(--inverse-text); box-shadow: 0 16px 48px rgba(40, 25, 15, .28); pointer-events: auto; animation: z-toast-in var(--dur-slow) var(--ease-out); max-width: 440px; }
.toast.is-leaving { animation: z-toast-out 200ms ease-in forwards; }
.toast__thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--inverse-fill); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--inverse-text-2); }
.toast__thumb img { width: 100%; height: 100%; object-fit: contain; }
.toast__body { min-width: 0; flex: 1; }
.toast__title { font-size: 15px; line-height: 20px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.toast__title .mi { font-size: 18px; color: #86CFA0; }
.toast__text { font-size: 13px; line-height: 18px; color: var(--inverse-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.toast__action { background: var(--inverse-fill); color: var(--inverse-link); font-size: 14px; font-weight: 600; border-radius: 10px; padding: 8px 12px; white-space: nowrap; text-decoration: none !important; border: 0; }
.toast__close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--inverse-text-2); display: flex; align-items: center; justify-content: center; }
.toast__close .mi { font-size: 20px; }
.toast--error { background: var(--surface); color: var(--text-1); border: 1px solid var(--danger-border); }
.toast--error .toast__icon { color: var(--danger-fg); font-size: 22px; }
.toast--error .toast__action { background: var(--danger-bg); color: var(--danger-fg); height: 36px; display: inline-flex; align-items: center; }
.toast--error .toast__close { color: var(--text-3); }
.toast--plain { background: var(--surface); color: var(--text-1); border: 1px solid var(--line); }
.toast--plain .toast__icon { color: var(--success-fg); font-size: 22px; }
.toast--plain .toast__close { color: var(--text-3); }
@keyframes z-toast-in { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes z-toast-out { to { opacity: 0; transform: translateY(12px) } }

/* ———————————————————— Пустые состояния, скелетоны ———————————————————— */
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.empty__art { width: 180px; height: 180px; object-fit: contain; }
.empty__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .empty__icon { background: var(--accent-100); }
.empty__icon .mi { font-size: 48px; }
.empty__title { font-size: 22px; line-height: 30px; font-weight: 700; text-wrap: balance; }
.empty__text { font-size: 16px; line-height: 24px; color: var(--text-2); max-width: 360px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.empty__form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 420px; justify-content: center; }
.empty__form .input { flex: 1 1 220px; }
.skeleton { background: linear-gradient(90deg, #EFE8DF 0%, #F8F3ED 50%, #EFE8DF 100%); background-size: 960px 100%; animation: z-shimmer 1.4s ease-in-out infinite; border-radius: 6px; }
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #332B25 0%, #3F362E 50%, #332B25 100%); background-size: 960px 100%; }

/* ———————————————————— Главная ———————————————————— */
.hero { padding: 24px 0 8px; }
@media (min-width: 1024px) { .hero { padding: 56px 0 16px; } }
.hero__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.hero__title { max-width: 820px; }
.hero__lead { color: var(--text-2); margin-top: 12px; max-width: 640px; }
.hero__search { margin-top: 24px; max-width: 860px; }
.hero__aside { display: none; }
@media (min-width: 1024px) { .hero__aside { display: flex; flex-direction: column; gap: 12px; } }
.hero-fact { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.hero-fact .mi { font-size: 26px; color: var(--accent-700); }
.hero-fact b { display: block; font-size: 16px; line-height: 22px; }
.hero-fact span { font-size: 14px; line-height: 20px; color: var(--text-2); }
.quick-chips { margin-top: 16px; }
.picker { display: grid; gap: 16px; }
@media (min-width: 1024px) { .picker { grid-template-columns: 1.2fr 1fr; align-items: stretch; } }
/* подбор по устройству скрыт — остаётся только «Записаться на ремонт» на всю ширину */
@media (min-width: 1024px) { .picker--service-only { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) { .picker--service-only .picker__service { flex-direction: row; align-items: center; } }
.picker__card { padding: 20px; }
@media (min-width: 768px) { .picker__card { padding: 28px; } }
.picker__steps { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .picker__steps { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.picker__service { background: var(--text-1); color: var(--bg-page); border: 0; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.picker__service p { color: #CDBFB1; }
[data-theme="dark"] .picker__service { background: var(--fill); color: var(--text-1); }
[data-theme="dark"] .picker__service p { color: var(--text-2); }
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.cat-tile { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text-1); text-decoration: none !important; transition: box-shadow var(--dur-base), transform var(--dur-base); box-shadow: var(--shadow-rest); }
.cat-tile:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.cat-tile__icon { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .cat-tile__icon { background: var(--accent-100); }
.cat-tile__icon .mi { font-size: 32px; }
.cat-tile__name { font-size: 16px; line-height: 22px; font-weight: 600; }
.cat-tile__count { font-size: 14px; line-height: 20px; color: var(--text-3); }
.benefits { display: grid; gap: 12px; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.benefit { display: flex; gap: 14px; padding: 20px; }
.benefit__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .benefit__icon { background: var(--accent-100); }
.benefit__icon .mi { font-size: 26px; }
.benefit__title { font-weight: 600; font-size: 16px; line-height: 22px; }
.benefit__text { font-size: 14px; line-height: 20px; color: var(--text-2); margin-top: 2px; }
.promo-band { display: grid; gap: 24px; align-items: center; padding: 24px; overflow: hidden; }
@media (min-width: 1024px) { .promo-band { grid-template-columns: 1fr 260px; padding: 40px; } }
.promo-band__art { width: 220px; height: 220px; object-fit: contain; justify-self: center; }
.promo-band ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; }
.promo-band li { display: flex; gap: 10px; align-items: flex-start; }
.promo-band li .mi { color: var(--success-fg); font-size: 20px; margin-top: 2px; }
.banner-strip { display: grid; gap: 16px; }
@media (min-width: 768px) { .banner-strip { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.banner { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--accent-50); color: var(--text-1); text-decoration: none !important; position: relative; overflow: hidden; min-height: 160px; }
[data-theme="dark"] .banner { background: var(--accent-100); }
.banner img { position: absolute; right: 0; bottom: 0; width: 45%; height: 100%; object-fit: cover; }
.banner__title { font-size: 20px; line-height: 28px; font-weight: 700; max-width: 60%; }
.banner__text { color: var(--text-2); max-width: 60%; }

/* ———————————————————— Подбор по устройству ———————————————————— */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text-1); text-decoration: none !important; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.brand-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-raised); }
.brand-tile b { font-size: 18px; }
.brand-tile span { font-size: 14px; color: var(--text-3); }
.model-groups { columns: 1; column-gap: 32px; }
@media (min-width: 768px) { .model-groups { columns: 2; } }
@media (min-width: 1024px) { .model-groups { columns: 3; } }
.model-group { break-inside: avoid; margin-bottom: 24px; }
.model-group h3 { font-size: 18px; margin-bottom: 8px; }
.model-group a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--text-1); border-bottom: 1px dashed var(--line); }
.model-group a:hover { color: var(--accent-700); text-decoration: none; }
.model-group a span { color: var(--text-3); font-size: 14px; }
.wizard-steps { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.wstep { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wstep__dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; background: var(--fill); color: var(--text-2); }
.wstep__dot .mi { font-size: 20px; }
.wstep.is-done .wstep__dot { background: var(--success-dot); color: #fff; }
.wstep.is-current .wstep__dot { background: var(--accent-600); color: var(--on-accent); box-shadow: 0 0 0 4px rgba(194, 84, 31, .16); }
.wstep__label { font-size: 15px; line-height: 20px; font-weight: 600; }
.wstep__sub { font-size: 13px; line-height: 18px; color: var(--text-3); font-weight: 400; }
.wstep.is-current .wstep__sub { color: var(--accent-700); }
.wstep-line { flex: 1 0 24px; height: 2px; border-radius: 2px; background: var(--fill-2); min-width: 24px; }
.wstep-line.is-done { background: var(--success-dot); }

/* ———————————————————— Карточка товара (страница) ———————————————————— */
.product { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: 80px minmax(0, 1fr); } }
.gallery__main { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--fill); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; color: var(--border-strong); order: 1; }
@media (min-width: 768px) { .gallery__main { order: 2; } }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .gallery__main img { mix-blend-mode: normal; }
.gallery__main > .mi { font-size: 160px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; order: 2; scrollbar-width: none; }
@media (min-width: 768px) { .gallery__thumbs { flex-direction: column; order: 1; max-height: 560px; overflow-y: auto; } }
.gallery__thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--fill); border: 1.5px solid transparent; padding: 0; flex-shrink: 0; overflow: hidden; }
@media (min-width: 768px) { .gallery__thumb { width: 80px; height: 80px; } }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb.is-active { border-color: var(--accent-600); }
/* Главное фото — кнопка «увеличить»: курсор-лупа и значок лупы при наведении (на телефоне значок виден всегда) */
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: inherit; color: inherit; }
.gallery__zoom-badge { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text-1); box-shadow: 0 2px 12px rgba(40, 25, 15, .18); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.85); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); pointer-events: none; }
.gallery__zoom:hover .gallery__zoom-badge, .gallery__zoom:focus-visible .gallery__zoom-badge { opacity: 1; transform: none; }
@media (hover: none) { .gallery__zoom-badge { opacity: .94; transform: none; width: 40px; height: 40px; } }

/* Просмотр фото на весь экран (тёмный фон в обеих темах — так фото видно лучше) */
.viewer { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: rgba(17, 12, 9, .95); color: #fff; opacity: 0; transition: opacity 200ms var(--ease-out); padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.viewer.is-open { opacity: 1; }
.viewer__top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.viewer__count { margin-right: auto; font-size: 15px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.viewer__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer__btn:hover { background: rgba(255, 255, 255, .22); }
.viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; padding: 0 16px; }
.viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; touch-action: pan-y; transition: transform 220ms var(--ease-out); background: #fff; border-radius: 8px; }
.viewer.is-zoomed .viewer__img { transform: scale(2.5); cursor: zoom-out; touch-action: none; border-radius: 0; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer__nav:hover { background: rgba(255, 255, 255, .26); }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer.is-single .viewer__nav, .viewer.is-zoomed .viewer__nav { display: none; }
.viewer__hint { margin: 8px 16px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
.viewer.is-zoomed .viewer__hint { visibility: hidden; }
.viewer__thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: none; }
.viewer__thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 10px; border: 2px solid transparent; background: #fff; padding: 0; overflow: hidden; opacity: .6; cursor: pointer; }
.viewer__thumb img { width: 100%; height: 100%; object-fit: contain; }
.viewer__thumb.is-active { border-color: var(--accent-600); opacity: 1; }
.viewer :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); outline: none; }
@media (max-width: 599px) { .viewer__nav { width: 44px; height: 44px; } .viewer__nav--prev { left: 8px; } .viewer__nav--next { right: 8px; } .viewer__stage { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .viewer, .viewer__img, .gallery__zoom-badge { transition: none; } }
.buybox { display: flex; flex-direction: column; gap: 16px; }
.buybox__name { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .buybox__name { font-size: 28px; line-height: 36px; } }
.buybox__pns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.buybox__card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.buybox__price { display: flex; flex-direction: column; gap: 2px; }
.buybox__price .price-now { font-size: 32px; line-height: 40px; }
.buybox__price .price-old { font-size: 14px; }
.buybox__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buybox__row .btn--primary { flex: 1 1 200px; }
/* «Купить на Ozon» — дополнительный путь, не спорит с основной кнопкой: обычная вторичная, ниже, с пояснением */
.ozon-offer { display: flex; flex-direction: column; gap: 6px; }
.ozon-offer .btn .mi { font-size: 18px; }
.ozon-offer__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.delivery-lines { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 22px; }
.delivery-line { display: flex; gap: 12px; align-items: flex-start; }
.delivery-line .mi { font-size: 22px; color: var(--accent-700); margin-top: 1px; }
.delivery-line b { font-weight: 600; }
.delivery-line span { color: var(--text-2); }
/* «Купить в 1 клик» — ссылка-кнопка под «В корзину» (и в корзине): второстепенная, не спорит с основной.
   Зона нажатия 44px, а визуально — строка текста: отрицательные поля съедают лишний отступ */
.one-click-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin: -8px 0; padding: 0 2px; border: 0; background: none; color: var(--accent-700); font-size: 15px; line-height: 22px; font-weight: 600; cursor: pointer; }
.one-click-link .mi { font-size: 20px; }
.one-click-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.one-click-link--center { align-self: center; margin: -6px 0; }
.price-watch { color: var(--text-2); font-weight: 500; }
.promo-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.promo-hint .mi { color: var(--accent-700); }
.reviews-frame { display: block; width: 100%; height: 640px; max-width: 760px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
/* Срок и цена доставки в город покупателя (app.js → «Доставка в карточке»). Строка варианта и её скелет — одной высоты
   (22 + 20), чтобы ответ сервера не сдвигал вёрстку */
.dlv { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.dlv__city { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; line-height: 22px; }
.dlv__city > .mi { font-size: 20px; color: var(--text-3); }
.dlv__city-text b { font-weight: 600; }
.dlv__change { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -11px 0; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.dlv__change .mi { font-size: 18px; }
.dlv__change:hover { color: var(--accent-700); }
.dlv__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dlv__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; min-height: 42px; }
.dlv__row > .mi { font-size: 22px; color: var(--accent-700); margin-top: 1px; }
.dlv__body { min-width: 0; }
.dlv__title { display: block; font-size: 15px; line-height: 22px; font-weight: 600; }
.dlv__meta { display: block; font-size: 14px; line-height: 20px; color: var(--text-2); }
.dlv__price { font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; text-align: right; }
.dlv__price.is-free { color: var(--success-fg); }
.dlv__fallback { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--text-2); }
.dlv__fallback .mi { font-size: 22px; color: var(--accent-700); }
.dlv__note { font-size: 13px; line-height: 18px; color: var(--text-3); }
.dlv__note.is-blank { visibility: hidden; }  /* при мягком тексте сноска не нужна, а место под неё остаётся */
.dlv__row, .dlv__fallback, .dlv__city-text b { transition: opacity var(--dur-base); }
.dlv.is-loading .dlv__row:not(.dlv__row--sk), .dlv.is-loading .dlv__fallback, .dlv.is-loading .dlv__city-text b { opacity: .5; }
.dlv__sk-city { display: inline-block; width: 96px; height: 16px; vertical-align: -2px; }
.dlv__sk-ico { width: 22px; height: 22px; border-radius: 6px; }
.dlv__sk-title { display: block; width: 62%; height: 16px; margin: 3px 0; }
.dlv__sk-meta { display: block; width: 38%; height: 14px; margin: 3px 0; }
.dlv__sk-price { width: 64px; height: 16px; margin-top: 3px; }
/* Нижняя панель на телефоне: под ценой — коротко про доставку; место под строку занято сразу */
.sticky-cta .price-block { max-width: 50%; }
.sticky-cta__dlv { display: block; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__dlv .skeleton { display: inline-block; width: 120px; height: 10px; }
/* Выбор города доставки */
.city-pick { display: flex; flex-direction: column; gap: 2px; height: min(320px, 42vh); overflow-y: auto; margin: -4px -8px 0; padding: 0 2px; }
.city-pick__item { display: block; width: 100%; flex-shrink: 0; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 22px; color: var(--text-1); cursor: pointer; }
.city-pick__item small { display: block; font-size: 13px; line-height: 18px; color: var(--text-3); }
.city-pick__item:hover, .city-pick__item.is-focus { background: var(--fill); }
.city-pick__hint { padding: 10px 12px; font-size: 14px; line-height: 20px; color: var(--text-3); }
.city-pick__error { display: flex; gap: 6px; align-items: flex-start; padding: 10px 12px; font-size: 14px; line-height: 20px; color: var(--danger-fg); }
.city-pick__error .mi { font-size: 18px; margin-top: 1px; }
.city-pick__sk { flex-shrink: 0; height: 44px; border-radius: 10px; margin: 2px 10px; }
/* «Купить в 1 клик»: что заказываем, ловушка для ботов, спасибо-экран */
.oc-step { display: flex; flex-direction: column; gap: 16px; }
.oc-what { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-page); border: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.oc-what__img { width: 44px; height: 44px; border-radius: 10px; background: var(--fill); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.oc-what__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .oc-what__img img { mix-blend-mode: normal; }
.oc-what__name { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.oc-what__sum { white-space: nowrap; font-weight: 600; }
.oc-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.oc-done { align-items: center; text-align: center; padding-top: 8px; }
.oc-done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success-fg); display: flex; align-items: center; justify-content: center; }
.oc-done__icon .mi { font-size: 40px; }
.oc-done__text { font-size: 16px; line-height: 24px; color: var(--text-2); max-width: 360px; }
.oc-done .modal__actions { justify-content: center; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.specs th, .specs td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.specs th { color: var(--text-2); font-weight: 400; width: 45%; padding-right: 16px; }
/* Характеристики товара плиткой: 2 колонки на телефоне и планшете (1 — на совсем узком экране), 3 на компьютере;
   строки через одну подсвечены */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.spec-grid__cell { padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.spec-grid dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); overflow-wrap: anywhere; }
.spec-grid dd { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--text-1); overflow-wrap: anywhere; }
.spec-grid__cell:nth-child(2n+1) { background: var(--fill); }
@media (min-width: 360px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid__cell:nth-child(2n+1) { background: none; }
  .spec-grid__cell:nth-child(4n+1), .spec-grid__cell:nth-child(4n+2) { background: var(--fill); }
}
@media (min-width: 640px) { .spec-grid__cell { padding: 12px 16px; } }
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-grid__cell:nth-child(4n+1), .spec-grid__cell:nth-child(4n+2) { background: none; }
  .spec-grid__cell:nth-child(6n+1), .spec-grid__cell:nth-child(6n+2), .spec-grid__cell:nth-child(6n+3) { background: var(--fill); }
}
.compat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 24px; max-height: 360px; overflow-y: auto; margin-top: 12px; }
.compat-list a { color: var(--text-1); padding: 4px 0; display: block; }
.compat-list a:hover { color: var(--accent-700); }
.ptabs { margin-top: 48px; }
.ptabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ptabs__nav button, .ptabs__nav a { height: 52px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--text-2); border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none !important; display: inline-flex; align-items: center; }
.ptabs__nav .is-active { color: var(--text-1); border-bottom-color: var(--accent-600); }
.ptabs__nav button:hover { color: var(--text-1); }
.ptabs__panel { padding-top: 24px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -8px 24px rgba(60, 40, 20, .08); }
.sticky-cta .btn { height: 56px; font-size: 17px; border-radius: 12px; flex: 1; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 84px; }
@media (min-width: 768px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ———————————————————— Корзина и оформление ———————————————————— */
.cart-layout { display: grid; gap: 24px; margin-top: 16px; align-items: start; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } }
.cart-lines { display: flex; flex-direction: column; }
.cline { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; padding: 16px; position: relative; }
.cline + .cline { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .cline { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 20px; } }
.cline__img { width: 72px; height: 72px; border-radius: 12px; background: var(--fill); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--border-strong); }
@media (min-width: 768px) { .cline__img { width: 96px; height: 96px; } }
.cline__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cline__name { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text-1); }
.cline__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; }
.cline__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 768px) { .cline__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: flex-start; } }
.cline__price { text-align: right; }
.cline__price .price-now { font-size: 20px; }
.cline__unit { font-size: 13px; color: var(--text-3); }
.cline__actions { display: flex; gap: 4px; }
.cline.has-problem { background: var(--warning-bg); }
[data-theme="dark"] .cline.has-problem { background: #2E2717; }
.summary { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .summary { position: sticky; top: 196px; } }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; }
.summary__row span:first-child { color: var(--text-2); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__total b { font-size: 26px; line-height: 32px; }
.free-progress { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.free-progress__line { display: flex; gap: 10px; align-items: center; font-size: 16px; line-height: 22px; font-weight: 500; }
.free-progress__line .mi { font-size: 22px; color: var(--accent-700); }
.free-progress.is-done .free-progress__line { color: var(--success-fg); }
.free-progress.is-done .free-progress__line .mi { color: var(--success-fg); }
.progress { height: 8px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.progress__bar { height: 100%; border-radius: var(--r-pill); background: var(--accent-600); transition: width var(--dur-slow) var(--ease-standard); }
.free-progress.is-done .progress__bar { background: var(--success-dot); }
.free-progress__scale { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--text-3); }
.promo-form { display: flex; gap: 8px; }
.promo-form .input { height: 44px; text-transform: uppercase; }
.checkout-layout { display: grid; gap: 24px; margin-top: 16px; align-items: start; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } }
.co-section { padding: 20px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 120px; }
@media (min-width: 768px) { .co-section { padding: 24px; } }
.co-section + .co-section { margin-top: 16px; }
.co-section__head { display: flex; align-items: center; gap: 12px; }
.co-section__num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-600); color: var(--on-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.co-section.is-done .co-section__num { background: var(--success-dot); color: #fff; }
.pvz-map { height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0 10px; background: var(--fill); }
@media (max-width: 600px) { .pvz-map { height: 260px; } }
.pvz-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.pvz-item { text-align: left; display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); width: 100%; }
.pvz-item:hover { border-color: var(--border-strong); }
.pvz-item.is-selected { border-color: var(--accent-600); background: var(--accent-50); }
[data-theme="dark"] .pvz-item.is-selected { background: var(--accent-100); }
.pvz-item .mi { color: var(--accent-700); font-size: 22px; }
.pvz-item__addr { font-weight: 600; font-size: 15px; line-height: 20px; }
.pvz-item__meta { font-size: 13px; line-height: 18px; color: var(--text-3); margin-top: 2px; }
.city-suggest { position: relative; }
.city-suggest__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); z-index: 20; padding: 6px; max-height: 280px; overflow-y: auto; }
.city-suggest__list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.city-suggest__list button:hover, .city-suggest__list button.is-focus { background: var(--fill); }
.city-suggest__list small { color: var(--text-3); display: block; font-size: 13px; }
.co-items { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.co-item { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 20px; }
.co-item__img { width: 44px; height: 44px; border-radius: 10px; background: var(--fill); overflow: hidden; flex-shrink: 0; }
.co-item__img img { width: 100%; height: 100%; object-fit: contain; }
.co-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.consent { font-size: 13px; line-height: 18px; color: var(--text-3); }

/* ———————————————————— Статус заказа ———————————————————— */
.result { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 16px; }
.result__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 24px; }
.result__art { width: 180px; height: 180px; object-fit: contain; }
.timeline { list-style: none; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--fill-2); }
.timeline li:last-child::before { display: none; }
.timeline__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.timeline__dot .mi { font-size: 16px; }
.timeline li.is-done .timeline__dot { background: var(--success-dot); }
.timeline li.is-done::before { background: var(--success-dot); }
.timeline li.is-current .timeline__dot { background: var(--accent-600); box-shadow: 0 0 0 4px rgba(194, 84, 31, .16); }
.timeline__title { font-weight: 600; font-size: 15px; line-height: 22px; }
.timeline__date { font-size: 13px; color: var(--text-3); }

/* ———————————————————— Кабинет ———————————————————— */
.account-layout { display: grid; gap: 24px; margin-top: 16px; align-items: start; }
@media (min-width: 1024px) { .account-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.account-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1024px) { .account-nav { flex-direction: column; position: sticky; top: 196px; } }
.account-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--text-1); font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.account-nav a .mi { font-size: 22px; color: var(--text-3); }
.account-nav a:hover { background: var(--fill); }
.account-nav a.is-active { background: var(--surface); box-shadow: var(--shadow-rest), inset 0 0 0 1px var(--line); }
.account-nav a.is-active .mi { color: var(--accent-700); }
.auth-box { max-width: 460px; margin: 32px auto 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .auth-box { padding: 32px; } }
.order-rows { display: flex; flex-direction: column; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 20px; color: var(--text-1); text-decoration: none !important; align-items: center; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row:hover { background: var(--bg-page); }
.order-row__num { font-weight: 600; }
.order-row__meta { font-size: 14px; color: var(--text-3); }
.order-row__thumbs { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
/* только миниатюры: иконка в кнопке «Повторить» — тоже span, рамка ей не нужна */
.order-row__thumbs > span { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--fill); overflow: hidden; }
.order-row__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; font-size: 15px; line-height: 22px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.quick-order textarea { font-family: var(--font-mono); min-height: 200px; }
.qo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qo-table th { background: var(--fill); color: var(--text-2); font-weight: 600; text-align: left; padding: 10px 12px; }
.qo-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.qo-table td.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }

/* ———————————————————— Страницы-конструктор ———————————————————— */
.block-hero { padding: 32px 0 8px; }
.block-hero p { color: var(--text-2); margin-top: 12px; font-size: 18px; line-height: 28px; }
.block-features { display: grid; gap: 16px; }
@media (min-width: 768px) { .block-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.block { margin-top: 32px; }
.block-steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .block-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.block-step { padding: 20px; }
.block-step__num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-100); color: var(--accent-800); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .mi { transition: transform var(--dur-base); color: var(--text-3); }
.faq-item[open] summary .mi { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 18px; color: var(--text-2); }
.cta-block { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; }
.posts { display: grid; gap: 16px; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--text-1); text-decoration: none !important; }
.post-card:hover { box-shadow: var(--shadow-raised); }
.post-card__cover { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--fill); object-fit: cover; width: 100%; margin-bottom: 8px; }
.post-card__title { font-size: 18px; line-height: 26px; font-weight: 600; }
.post-card__excerpt { color: var(--text-2); font-size: 15px; }
.post-card__date { color: var(--text-3); font-size: 13px; }

/* ———————————————————— Подвал ———————————————————— */
.site-footer { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: 16px; line-height: 22px; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-2); font-size: 15px; }
.footer-col a:hover { color: var(--accent-700); }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); margin-top: 16px; }
.footer-contacts div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .mi { font-size: 20px; color: var(--text-3); margin-top: 2px; }
.footer-contacts a { color: var(--text-1); font-weight: 600; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-3); font-size: 13px; padding: 0; }
.theme-toggle .mi { font-size: 18px; }

/* Нижняя навигация (mobile) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-2); text-decoration: none !important; padding: 4px 0; position: relative; min-height: 44px; justify-content: center; }
.tabbar a .mi { font-size: 24px; }
.tabbar a.is-active { color: var(--accent-700); }
.tabbar .counter { top: 0; right: calc(50% - 22px); }
body.has-tabbar { padding-bottom: 68px; }
@media (min-width: 1024px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }
body.has-tabbar.has-sticky-cta .tabbar { display: none; }

/* Cookie */
/* баннер cookie — во всю ширину контента (как .container): на ПК текст в 2 строки, кнопки справа; уже 900px — кнопки под текстом */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 1280px; margin: 0 auto; display: flex; gap: 12px 24px; align-items: center; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); font-size: 14px; line-height: 20px; }
.cookie > span { flex: 1; min-width: 0; }
body.has-tabbar .cookie { bottom: 84px; }
@media (min-width: 1024px) { body.has-tabbar .cookie { bottom: 16px; } }
.cookie__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 899px) { .cookie { flex-direction: column; align-items: stretch; } .cookie__actions { justify-content: flex-end; } }
@media (max-width: 639px) { .cookie { padding: 14px 16px; } .cookie__actions .btn { flex: 1; } }
.footer-bottom__actions { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .toast { animation: none; }
}
.fav-inline.is-active { color: var(--accent-600); }
.fav-inline.is-active .mi { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Одноколоночные сетки на мобильном не должны расширяться по ширине содержимого (поле поиска и т. п.) */
:where(.hero__inner, .picker, .catalog-layout, .product, .cart-layout, .checkout-layout, .account-layout, .footer-grid,
  .field-row, .benefits, .promo-band, .block-features, .block-steps, .posts, .banner-strip, .gallery) { grid-template-columns: minmax(0, 1fr); }
:where(.hero__inner, .catalog-layout, .product, .cart-layout, .checkout-layout, .account-layout) > * { min-width: 0; }
.search__input { width: 100%; }
/* На главной поиск — в первом экране, второй в шапке не нужен */
.page-home .header-search, .page-home .header-mobile-search { display: none; }
.page-home .header-actions { margin-left: auto; }
@media (max-width: 1023px) { .header-action--desktop { display: none; } }
@media (min-width: 1024px) { .header-action--mobile { display: none; } }
/* Токены, которых нет в тёмной теме tokens.css */
[data-theme="dark"] { --fill-2: #3A3029; --text-disabled: #7E7166; --accent-50: #33241A; --accent-200: #5A3A26; }
.specs { table-layout: fixed; }
.specs th, .specs td { overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }
.prose table { display: block; overflow-x: auto; }
.section__head { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 639px) { .section__head a { white-space: normal; } }
/* Поля внутри составных компонентов: фокус показывает сам компонент */
.search__input:focus-visible, .stepper input:focus-visible { box-shadow: none; border-radius: 0; }
.stepper:focus-within { border-color: var(--accent-600); box-shadow: var(--focus-ring); }
.pvz-item__addr, .pvz-item__meta { display: block; }
.pvz-item > span:last-child { min-width: 0; }
@media (min-width: 1024px) {
  .checkout-layout > aside, .cart-layout > aside { align-self: stretch; }
  .checkout-layout > aside .summary { position: sticky; top: 196px; }
}
.chip.is-active .chip__count { color: rgba(250, 246, 241, .72); }
[data-theme="dark"] .chip.is-active .chip__count { color: rgba(31, 26, 22, .7); }
/* На телефоне главная кнопка — одна, прибита к низу экрана */
@media (max-width: 767px) {
  .checkout-layout aside [data-submit], .cart-layout .summary > .btn--primary { display: none; }
}

/* Режим работ по команде из панели admin.zentum.ru: тонкая янтарная полоса над шапкой, работу не блокирует */
.maint { display: flex; gap: 8px; align-items: flex-start; justify-content: center; padding: 8px 16px; background: var(--warning-bg); color: var(--warning-fg); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.maint__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--warning-dot, var(--warning-fg)); }
/* Объявление из панели (не режим работ): светлая полоса с цветной кромкой слева, заголовок, крестик «скрыть» */
.announce { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 10px 16px; background: var(--surface); color: var(--text-1); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--info-fg); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.announce--warning { box-shadow: inset 4px 0 0 var(--warning-dot, var(--warning-fg)); }
.announce__icon { flex: none; display: inline-flex; color: var(--info-fg); }
.announce--warning .announce__icon { color: var(--warning-fg); }
.announce__body { flex: 1; min-width: 0; max-width: 1200px; margin: 0 auto; }
.announce__body strong { font-weight: 600; }
.announce__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -4px -6px 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); cursor: pointer; }
.announce__close:hover { background: var(--fill); color: var(--text-1); }
.announce__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
