/* Крым ШинТорг — раскладка страниц. Мобильная версия первая; точки: 600, 900, 1100px. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-0); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header-bg); }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--space-8); }
.section--tint { background: var(--surface-100); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.section__head h2 { font-size: 22px; line-height: 28px; font-weight: 800; }
.section__head a { font-size: 15px; font-weight: 600; }
@media (min-width: 900px) { .section { padding-block: var(--space-12); } .section__head h2 { font-size: 28px; line-height: 34px; } }

/* Демо-полоса */
.demo-bar { background: var(--brand-tint); color: var(--ink); font-size: 13px; line-height: 18px; }
.demo-bar .wrap { padding-block: 8px; }

/* Шапка */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); }
.site-header .ks-header { max-width: var(--container); margin: 0 auto; border-bottom: 0; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.site-header { border-bottom: 1px solid var(--header-line); }
.site-header__logo { display: block; height: 44px; width: auto; }
.site-header__mid { flex: 1 1 auto; display: flex; justify-content: center; }
.site-header__nav, .site-header__phone, .site-header__call { display: none; }
.site-header__tools { display: flex; align-items: center; }
.cart-btn { position: relative; }
.cart-btn__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-yellow); color: var(--on-brand); font: 700 11px/18px var(--font-sans); text-align: center; }
@media (min-width: 1100px) {
  .site-header .ks-header { height: 80px; gap: var(--space-6); padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .site-header__menu { display: none; }
  .site-header__logo { height: 60px; }
  .site-header__mid { flex: 0 0 auto; order: -1; }
  .site-header__nav { display: flex; gap: var(--space-6); font-size: 15px; font-weight: 600; }
  .site-header__nav a { text-decoration: none; color: var(--header-ink); }
  .site-header__nav a:hover, .site-header__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .site-header__tools { margin-left: auto; gap: var(--space-4); }
  .site-header__phone { display: block; }
  .site-header__call { display: inline-flex; }
  .site-header__tel { display: none; }
}

/* Мобильное меню */
.menu-panel { position: fixed; inset: 0; z-index: 80; display: flex; }
.menu-panel__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); border: 0; }
.menu-panel__body { position: relative; width: min(340px, 88vw); height: 100%; overflow-y: auto; background: var(--surface-0); padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: var(--space-4); }
.menu-panel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-panel__list a { display: flex; align-items: center; min-height: 48px; font: 700 17px var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel__contacts { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

/* Герой */
.hero { background: var(--inverse-surface); color: var(--on-inverse); }
.hero .wrap { padding-block: var(--space-6) var(--space-8); display: grid; gap: var(--space-6); }
.hero__text { display: flex; flex-direction: column; gap: var(--space-3); }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-yellow); }
.hero h1 { font-size: 30px; line-height: 1.12; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-yellow); }
.hero__lead { margin: 0; font-size: 16px; color: var(--on-inverse-muted); max-width: 32em; }
.hero__facts { display: none; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; padding-block: var(--space-12) 64px; gap: var(--space-12); }
  .hero h1 { font-size: 48px; line-height: 1.05; }
  .hero__lead { font-size: 18px; }
  .hero__facts { display: flex; gap: var(--space-8); margin-top: var(--space-4); }
  .hero__fact b { display: block; font: 800 28px/1.1 var(--font-display); color: var(--on-inverse); }
  .hero__fact span { font-size: 13px; color: var(--on-inverse-muted); }
}
.picker-panel[hidden] { display: none !important; }
.picker-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.picker-hint { font-size: 13px; color: var(--ink-muted); background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; cursor: pointer; }
.picker-help { margin: 0; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface-100); font-size: 13px; line-height: 1.5; }
.picker-help b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; }

/* Полоса доверия */
.trust { background: var(--surface-100); }
.trust .wrap { padding-block: var(--space-4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.trust__item { background: var(--surface-0); border-radius: var(--radius-md); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.trust__item b { font: 800 16px/1.2 var(--font-display); }
.trust__item span { font-size: 12px; line-height: 1.35; color: var(--ink-muted); }
@media (min-width: 900px) { .trust__item { padding: var(--space-4); flex-direction: row; align-items: baseline; gap: var(--space-2); } .trust__item b { font-size: 20px; } .trust__item span { font-size: 14px; } }

/* Категории */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.cat { position: relative; min-height: 104px; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-100); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: border-color .15s ease; }
.cat:hover { border-color: var(--ink); }
.cat b { font: 700 15px/1.2 var(--font-display); max-width: 70%; }
.cat span { font-size: 12px; color: var(--ink-muted); }
.cat svg { position: absolute; right: -14px; bottom: -14px; width: 72px; height: 72px; }
.cat--accent { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-brand); }
.cat--accent span { color: var(--on-brand); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); } .cat { min-height: 128px; } }

/* Сетка товаров */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 600px) { .grid { gap: var(--space-3); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.ks-card { min-width: 0; }
.ks-card__photo svg { width: 78%; height: auto; }
.ks-card__fav .ks-icon-btn { width: 40px; height: 40px; }
.ks-card__fav .ks-icon-btn[aria-pressed="true"] svg { fill: var(--danger); stroke: var(--danger); }
.ks-card__brand { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.ks-card__name a { text-decoration: none; }
.ks-card__name a::after { content: ""; position: absolute; inset: 0; }
.ks-card { position: relative; }
.ks-card .ks-btn { position: relative; z-index: 1; }
.ks-card__fav { z-index: 2; }
.ks-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.ks-card__size { font-variant-numeric: tabular-nums; }
.ks-card__price { font-variant-numeric: tabular-nums; }
.ks-card__set { font-size: 12px; color: var(--ink-muted); }
@media (max-width: 599px) { .grid .ks-card__name { font-size: 14px; line-height: 19px; } .grid .ks-card__price { font-size: 17px; } .grid .ks-btn { height: 44px; font-size: 14px; padding: 0 8px; } }

/* Сезоны */
.seasons { display: grid; gap: var(--space-2); }
.season { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-0); text-decoration: none; border: 1px solid transparent; transition: border-color .15s ease; }
.season:hover { border-color: var(--ink); }
.season b { font: 800 19px/1.2 var(--font-display); }
.season strong { font: 700 15px/1.6 var(--font-display); white-space: nowrap; }
.season p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
@media (min-width: 900px) { .seasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } .season { padding: var(--space-6); } }

/* Как заказать */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; font-size: 15px; line-height: 1.45; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 20px; background: var(--inverse-surface); color: var(--brand-yellow); font: 800 17px/40px var(--font-display); text-align: center; }
.steps li b { display: block; font: 700 16px/1.3 var(--font-display); margin-top: 2px; }
.steps li span { color: var(--ink-muted); font-size: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } .steps li { grid-template-columns: 1fr; } }

/* Бренды */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.brands a { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-md); font: 800 14px var(--font-display); letter-spacing: 0.02em; color: var(--ink-muted); text-decoration: none; transition: color .15s, border-color .15s; }
.brands a:hover { color: var(--ink); border-color: var(--ink); }
@media (min-width: 600px) { .brands { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .brands { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Отзывы, контакты */
.placeholder { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 1.5; background: var(--surface-0); }
.contacts { display: grid; gap: var(--space-4); }
.contacts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); font-size: 15px; }
.contacts dt { color: var(--ink-muted); }
.contacts dd { margin: 0; font-weight: 500; }
.contacts__map { min-height: 220px; border-radius: var(--radius-lg); background: var(--surface-200); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-4); text-align: center; color: var(--ink-muted); font-size: 14px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: stretch; gap: var(--space-8); } }

/* Подвал */
.site-footer { background: var(--inverse-surface); color: var(--on-inverse-muted); font-size: 14px; line-height: 1.6; }
.site-footer .wrap { padding-block: var(--space-8) calc(var(--space-12) + 56px + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--space-6); }
.site-footer img { height: 56px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.site-footer a { color: var(--on-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; padding-block: var(--space-12); } }

/* Плавающая кнопка мессенджера */
.fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 28px; border: 0; background: var(--brand-yellow); color: var(--on-brand); box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fab:hover { background: var(--brand-yellow-hover); }

/* Диалоги и выезжающие панели */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); border: 0; }
.sheet__body { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--surface-0); color: var(--ink); border-radius: 18px 18px 0 0; padding: var(--space-4) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: var(--space-4); animation: sheet-in .2s ease-out; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.sheet__head h2 { font-size: 20px; line-height: 26px; }
.sheet__close { width: var(--touch-min); height: var(--touch-min); border: 0; border-radius: 22px; background: var(--surface-100); color: var(--ink); font-size: 22px; cursor: pointer; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet__body { border-radius: 18px; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-line b { font-family: var(--font-display); font-size: 15px; }
.cart-line__meta { color: var(--ink-muted); }
.cart-line__sum { font: 800 15px var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.cart-line__remove { justify-self: end; background: none; border: 0; padding: 0; color: var(--ink-muted); text-decoration: underline; cursor: pointer; font-size: 13px; min-height: 32px; }
.cart-total { display: flex; justify-content: space-between; font: 800 19px var(--font-display); font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--ink-muted); padding-block: var(--space-6); }

.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--radius-md); background: var(--inverse-surface); color: var(--on-inverse); font-size: 14px; box-shadow: var(--shadow-float); }

/* Шина-заглушка вместо фото */
.tyre-outer { fill: var(--tyre); }
.tyre-tread { fill: none; stroke: var(--surface-100); stroke-width: 5; stroke-dasharray: 3 7; opacity: 0.5; }
.tyre-side { fill: none; stroke: #3d3d3d; stroke-width: 2; }
.tyre-rim { fill: var(--tyre-rim); }
.tyre-hub { fill: var(--surface-200); }

/* Каталог */
.crumbs { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-muted); }
.cat-head { padding-block: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.cat-head h1 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.cat-head p { margin: 0; font-size: 14px; color: var(--ink-muted); }
@media (min-width: 900px) { .cat-head h1 { font-size: 34px; } }
.cat-tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-tabs a { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cat-tabs a[aria-current="page"] { background: var(--inverse-surface); color: var(--on-inverse); border-color: var(--inverse-surface); }
.layout { display: grid; gap: var(--space-4); padding-block: var(--space-3) var(--space-12); }
@media (min-width: 1100px) { .layout { grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-8); align-items: start; } }
.filters { display: none; }
@media (min-width: 1100px) { .filters { display: block; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; } }
.fgroup { border-bottom: 1px solid var(--line); padding-block: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.fgroup:first-child { padding-top: 0; }
.fgroup > h3, .fgroup legend { font: 700 15px var(--font-display); padding: 0; }
fieldset.fgroup { border-left: 0; border-right: 0; border-top: 0; margin: 0; padding-inline: 0; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.fgrid .ks-field { font-size: 12px; font-weight: 500; color: var(--ink-muted); gap: 4px; }
.fgrid .ks-input { padding: 0 6px; font-weight: 600; }
.frange { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.fchecks { display: flex; flex-direction: column; gap: 6px; }
.fchecks .ks-check { min-height: 32px; }
.fchecks .ks-check span { color: var(--ink-muted); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.toolbar__count { font-size: 14px; color: var(--ink-muted); margin-right: auto; }
.toolbar select.ks-input { height: 44px; width: auto; font-size: 14px; }
.toolbar__filters { height: 44px; }
@media (min-width: 1100px) { .toolbar__filters { display: none; } }
.active-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.active-chips:empty { display: none; }
.list { display: grid; gap: var(--space-2); }
@media (min-width: 600px) { .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
@media (min-width: 900px) { .list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (max-width: 599px) {
  .list .ks-card { flex-direction: row; gap: var(--space-3); }
  .list .ks-card__photo { flex: 0 0 104px; aspect-ratio: auto; height: 120px; }
  .list .ks-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .list .ks-card__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .list .ks-card__foot .ks-btn { width: auto; flex: 0 0 auto; height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .list .ks-card__set { display: none; }
  .list .ks-card__price { font-size: 18px; }
  .list .ks-card__fav { top: auto; bottom: 4px; left: 64px; right: auto; }
}
.ks-card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 auto; }
.more { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-top: var(--space-4); font-size: 13px; color: var(--ink-muted); }
.more .ks-btn { min-width: 240px; }

/* Количество */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-md); height: var(--control-height-lg); background: var(--surface-0); }
.qty__btn { width: 48px; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; border-radius: var(--radius-md); }
.qty__btn:disabled { color: var(--line-strong); cursor: default; }
.qty__val { width: 44px; border: 0; background: transparent; color: var(--ink); text-align: center; font: 800 17px var(--font-display); font-variant-numeric: tabular-nums; }
.qty--sm { height: 44px; }
.qty--sm .qty__btn { width: 44px; font-size: 20px; }
.qty--sm .qty__val { width: 32px; }

/* Страница товара */
.pdp { display: grid; gap: var(--space-6); padding-block: var(--space-4) var(--space-8); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; } .pdp__media { position: sticky; top: 100px; } }
.pdp__photo { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius-lg); background: var(--surface-100); display: flex; align-items: center; justify-content: center; }
.pdp__photo svg { width: 70%; height: auto; }
.pdp__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pdp__tag { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--inverse-surface); color: var(--on-inverse); font-size: 12px; font-weight: 600; }
.pdp__tag--hit { background: var(--brand-yellow); color: var(--on-brand); }
.pdp__fav { position: absolute; top: 8px; right: 8px; }
.pdp__fav[aria-pressed="true"] svg { fill: var(--danger); stroke: var(--danger); }
.pdp__photo-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-muted); text-align: center; }
.pdp__info { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.pdp__title { font-size: 26px; line-height: 1.2; font-weight: 800; }
.pdp__title span { display: block; margin-top: 4px; font: 600 18px var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .pdp__title { font-size: 34px; } }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin-top: var(--space-2); }
.pdp__price b { font: 800 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.pdp__price span { font-size: 14px; color: var(--ink-muted); }
.pdp__set { font-size: 15px; }
.pdp__stock { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stock-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.stock-row div { display: flex; flex-direction: column; gap: 2px; }
.stock-row .ok { color: var(--success); } .stock-row .wait { color: var(--warning); } .stock-row .muted { color: var(--ink-muted); }
.stock-row--note { border-bottom: 0; color: var(--ink-muted); font-size: 13px; }
.pdp__buy { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-2); }
.pdp__sum { font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; min-height: 20px; }
.pdp__max { align-self: flex-start; font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.pdp-section { padding-block: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-4); }
.pdp-section h2 { font-size: 22px; line-height: 28px; font-weight: 800; }
.specs { margin: 0; display: grid; }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } }
.specs div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--ink-muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.marking { border-radius: var(--radius-md); background: var(--surface-100); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 1.55; }
.marking summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.marking p { margin: 8px 0 0; max-width: 68ch; }
.size-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.size-links a { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); text-decoration: none; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.size-links a b { font: 700 15px var(--font-display); color: var(--ink); }
.size-links a:hover { border-color: var(--ink); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface-0); border-top: 1px solid var(--line); box-shadow: var(--shadow-float); }
.buybar__price { display: flex; flex-direction: column; }
.buybar__price b { font: 800 19px var(--font-display); font-variant-numeric: tabular-nums; }
.buybar__price span { font-size: 12px; color: var(--ink-muted); }
.buybar .ks-btn { padding: 0 28px; }
@media (min-width: 900px) { .buybar { display: none; } }
body:has(.buybar:not([hidden])) .fab { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* Корзина и оформление */
.checkout { display: grid; gap: var(--space-6); padding-bottom: var(--space-12); }
@media (min-width: 1000px) { .checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); align-items: start; } .summary { position: sticky; top: 100px; } }
.checkout__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.lines { display: flex; flex-direction: column; gap: var(--space-2); }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.line__photo { aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius-sm); background: var(--surface-100); display: flex; align-items: center; justify-content: center; }
.line__photo svg { width: 78%; }
.line__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line__name { font-size: 16px; line-height: 21px; font-weight: 700; }
.line__name a { text-decoration: none; }
.line__name a:hover { text-decoration: underline; }
.line__size { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.line__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 6px; }
.line__sum { font: 800 18px var(--font-display); font-variant-numeric: tabular-nums; }
.line .cart-line__remove { justify-self: start; align-self: flex-start; }
@media (min-width: 600px) { .line { grid-template-columns: 112px minmax(0, 1fr); padding: var(--space-4); } }
.order-form { display: flex; flex-direction: column; gap: var(--space-6); }
.ofs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ofs legend { padding: 0; margin-bottom: var(--space-3); font: 800 20px/1.3 var(--font-display); }
.ofs__grid { display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .ofs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.options { display: grid; gap: var(--space-2); }
.option { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); cursor: pointer; }
.option input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.option > span { display: flex; flex-direction: column; gap: 2px; }
.option b { font: 700 15px var(--font-display); }
.option > span > span { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.option:has(input:checked) { border: 2px solid var(--ink); background: var(--brand-tint); padding: 13px; }
.summary { border-radius: var(--radius-lg); background: var(--surface-100); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.summary h2 { font-size: 20px; line-height: 26px; font-weight: 800; }
.summary__rows { margin: 0; display: flex; flex-direction: column; }
.summary__rows div { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary__rows dt { color: var(--ink-muted); min-width: 0; }
.summary__rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; font: 800 22px var(--font-display); font-variant-numeric: tabular-nums; }
.summary__total span { font-size: 17px; }
.done { padding-bottom: var(--space-12); }
.done__card { max-width: 640px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-100); display: flex; flex-direction: column; gap: var(--space-3); }
.done__card h2 { font-size: 28px; line-height: 1.2; font-weight: 800; }
.done__card .hero__eyebrow { color: var(--success); }
.done__card p { margin: 0; }
.toast a { color: var(--brand-yellow); font-weight: 700; }
.stock-row > b { white-space: nowrap; }
.specs dd { white-space: nowrap; }

/* Европейская этикетка */
.eu-grade { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 5px; font: 800 13px/1 var(--font-display); background: var(--surface-200); color: var(--ink); }
.eu-grade--A, .eu-grade--B { background: var(--success-tint); color: var(--success); }
.eu-grade--D, .eu-grade--E { background: var(--warning-tint); color: var(--warning); }
.eu-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-muted); }
.eu-mini li { display: inline-flex; align-items: center; gap: 4px; }
.eu-db { font: 800 13px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.eu-unit { font-size: 11px; }
.eu { display: flex; flex-direction: column; gap: var(--space-3); }
.road { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-100); }
.road span { color: var(--ink-muted); }
.road b { text-align: right; }
.eu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.eu__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink-muted); font-size: 12px; line-height: 1.35; min-width: 0; }
.eu__list .eu-grade { min-width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }
.eu-grade--db { font-variant-numeric: tabular-nums; }
.eu__list span b { display: block; font: 700 13px var(--font-display); color: var(--ink); margin-bottom: 2px; }
.eu__none { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* Фото товаров из каталога поставщика */
.ks-card__photo img, .pdp__photo img, .line__photo img { width: 86%; height: 86%; object-fit: contain; }
.ks-card__photo { overflow: hidden; }

/* Аккумуляторы: подбор по телефону */
.by-phone { grid-column: 1 / -1; display: grid; gap: var(--space-4); padding-block: var(--space-2) var(--space-12); }
@media (min-width: 900px) { .by-phone { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; } }
.by-phone__main { background: var(--inverse-surface); color: var(--on-inverse); border-radius: var(--radius-lg); padding: var(--space-6) max(var(--space-4), 4%); display: flex; flex-direction: column; gap: var(--space-4); }
.by-phone__main h2 { font-size: 26px; line-height: 1.15; font-weight: 800; }
.by-phone__main p { margin: 0; color: var(--on-inverse-muted); font-size: 16px; line-height: 1.55; max-width: 36em; }
@media (min-width: 900px) { .by-phone__main h2 { font-size: 34px; } }
.by-phone__phone { display: flex; flex-direction: column; gap: 2px; }
.by-phone__phone b { font: 800 30px/1.1 var(--font-display); color: var(--brand-yellow); font-variant-numeric: tabular-nums; }
.by-phone__phone span { font-size: 14px; color: var(--on-inverse-muted); }
.by-phone__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.by-phone__actions .ks-btn--secondary { color: var(--on-inverse); box-shadow: inset 0 0 0 2px var(--on-inverse); }
.by-phone__actions .ks-btn--secondary:hover { background: rgba(255,255,255,0.08); }
.by-phone__actions .ks-btn--ghost { color: var(--on-inverse-muted); }
.by-phone__actions .ks-btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--on-inverse); }
.by-phone__help { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.by-phone__help h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }
.by-phone__help ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.by-phone__help li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; position: relative; font-size: 15px; }
.by-phone__help li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-yellow); }
.by-phone__help li span { color: var(--ink-muted); font-size: 14px; }

/* Ссылки на разделы (для покупателей и поисковиков) */
.seo-links { background: var(--surface-100); }
.seo-links .wrap { padding-block: var(--space-8); display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .seo-links .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seo-links__group { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.seo-links__group h3 { font-size: 16px; font-weight: 800; }
.seo-links__list { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-links__list a { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.seo-links__list a:hover { border-color: var(--ink); }
