/* ==========================================================================
   SB AUTOMOTIVE — витрина. Чистый CSS без сборщика: быстро грузится, легко менять.
   Цвета и размеры — в переменных ниже; редизайн = правка этого файла и шаблонов.
   ========================================================================== */

:root {
    --black: #0f0f0f;
    --ink: #161616;
    --graphite: #232323;
    --yellow: #ffc400;
    --yellow-dark: #e6b000;
    --bg: #f4f4f1;
    --surface: #ffffff;
    --line: #e2e2dc;
    --muted: #6b6b66;
    --text: #151515;
    --ok: #1f8a4c;
    --warn: #b7791f;
    --danger: #c0392b;
    --radius: 6px;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.25);
    --container: 1280px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: #000; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- полоса «hazard» ---------- */
.hazard { height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px); }
.hazard--thin { height: 5px; }

/* ---------- верхняя строка ---------- */
.topbar { background: var(--black); color: #bdbdb6; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar__contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #e9e9e3; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.region { display: flex; align-items: center; gap: 8px; }
.region select { background: var(--graphite); color: #fff; border: 1px solid #333; border-radius: 4px; padding: 3px 6px; font-size: 13px; max-width: 160px; }
.region__tax { color: var(--yellow); font-weight: 600; }
.impersonation { background: var(--yellow); color: #000; text-align: center; padding: 6px 12px; font-size: 14px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.impersonation button { background: #000; color: #fff; border: 0; border-radius: 4px; padding: 3px 10px; cursor: pointer; }

/* ---------- шапка ---------- */
.header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; white-space: nowrap; }
.logo__mark { background: var(--yellow); color: #000; font: 900 20px/1 var(--font-head); padding: 9px 9px 8px; border-radius: 3px; letter-spacing: .02em; }
.logo__text { font: 800 21px/1 var(--font-head); letter-spacing: .12em; }
.logo:hover { color: var(--yellow); }
.search { flex: 1; display: flex; max-width: 640px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.search input { flex: 1; border: 0; padding: 12px 14px; min-width: 0; color: #000; background: transparent; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--yellow); color: #000; width: 52px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--yellow-dark); }
.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.icon-link, .cart-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.icon-link:hover, .cart-link:hover { color: var(--yellow); }
.cart-link__count { background: var(--yellow); color: #000; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- меню категорий ---------- */
.nav { background: var(--graphite); border-top: 1px solid #2d2d2d; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: block; padding: 13px 14px; color: #f1f1ec; text-decoration: none; font: 700 14px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.nav__item:hover .nav__link, .nav__link:focus { color: var(--yellow); }
.nav__dropdown { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--yellow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; z-index: 40; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 8px 18px; color: var(--text); text-decoration: none; font-size: 15px; }
.nav__dropdown a:hover { background: var(--bg); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 4px; border: 2px solid transparent; font: 800 14px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--yellow); color: #000; }
.btn--primary:hover { background: var(--yellow-dark); color: #000; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2b2b2b; color: var(--yellow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--black); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 15px; }
.link-button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- значки и метки ---------- */
.badge { display: inline-block; font: 800 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 3px; }
.badge--dark { background: var(--black); color: #fff; }
.badge--yellow { background: var(--yellow); color: #000; }
.badge--outline { background: #fff; color: var(--text); border: 1px solid var(--line); }
.badge--muted { background: #8a8a85; color: #fff; }
.stock { font-size: 13px; font-weight: 700; white-space: nowrap; }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.stock--warn::before { background: var(--warn); }
.stock--muted::before { background: #999; }
.status { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; background: #eee; }
.status--new { background: #fff3c4; }
.status--completed, .status--paid { background: #d9f2e2; }
.status--cancelled { background: #f8d7d3; }

/* ---------- цена ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price__main { font-weight: 800; font-size: 20px; }
.price--sm .price__main { font-size: 17px; }
.price--lg .price__main { font-size: 34px; font-family: var(--font-head); }
.price__main--request { font-size: 16px !important; }
.price__old { color: var(--muted); font-size: 14px; }
.price__tax { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.price__net { width: 100%; color: var(--muted); font-size: 14px; }
.price__personal { display: inline-block; width: max-content; background: #eaf7ee; color: var(--ok); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 3px; }

/* ---------- сообщения ---------- */
.flash { margin: 18px 0; padding: 12px 16px; border-radius: var(--radius); background: #fff; border-left: 4px solid var(--yellow); }
.flash--ok { border-left-color: var(--ok); }
.flash--error { border-left-color: var(--danger); background: #fff6f5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; border-left: 4px solid var(--yellow); }
.toast a { color: var(--yellow); }

/* ---------- главная ---------- */
.hero { background: radial-gradient(ellipse at 85% 0%, #2f2a14 0%, transparent 55%), var(--black); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; background: repeating-linear-gradient(-45deg, rgb(255 196 0 / .08) 0 16px, transparent 16px 32px); transform: rotate(8deg); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.eyebrow { color: var(--yellow); font: 800 13px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.hero__title { font: 900 clamp(32px, 5vw, 56px)/1.03 var(--font-head); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 18px; }
.hero__lead { color: #c9c9c2; font-size: 18px; max-width: 620px; }
.hero__search { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.hero__search input { flex: 1; min-width: 0; border: 2px solid transparent; border-radius: 4px; padding: 0 14px; min-height: 52px; color: #000; background: #fff; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero__facts li { border: 1px solid #333; border-left: 4px solid var(--yellow); padding: 16px 20px; background: rgb(255 255 255 / .03); }
.hero__facts strong { display: block; font: 900 28px/1 var(--font-head); color: var(--yellow); margin-bottom: 6px; }
.hero__facts span { color: #c9c9c2; }

.section { padding: 44px 0 8px; }
.section__head { display: flex; justify-content: space-between; align-items: end; }
.section__title { font: 900 26px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; position: relative; padding-left: 16px; }
.section__title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; background: var(--yellow); }
.section__title--sm { font-size: 19px; }

.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.line { background: var(--ink); color: #fff; padding: 24px 22px 20px; border-radius: var(--radius); display: flex; flex-direction: column; min-height: 280px; position: relative; overflow: hidden; border-bottom: 4px solid var(--yellow); }
.line--minor { grid-column: 1 / -1; min-height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-bottom-width: 0; border-left: 4px solid var(--yellow); }
.line__num { font: 900 46px/1 var(--font-head); color: var(--yellow); opacity: .9; margin-bottom: 12px; }
.line--minor .line__num { font-size: 28px; margin: 0; }
.line__title { font: 900 22px/1.1 var(--font-head); text-transform: uppercase; margin-bottom: 14px; }
.line--minor .line__title { margin: 0; }
.line__title a { color: #fff; text-decoration: none; }
.line__title a:hover { color: var(--yellow); }
.line__links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14px; }
.line--minor .line__links { display: flex; gap: 16px; margin: 0; flex-wrap: wrap; }
.line__links a { color: #c9c9c2; text-decoration: none; }
.line__links a:hover { color: var(--yellow); }
.line__more { margin-top: auto; color: var(--yellow); text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.line--minor .line__more { margin: 0 0 0 auto; }

.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding-bottom: 40px; }
.cta { border-radius: var(--radius); padding: 28px; }
.cta h2 { font: 900 24px/1.1 var(--font-head); text-transform: uppercase; }
.cta--dark { background: var(--ink); color: #fff; }
.cta--dark p { color: #c9c9c2; }
.cta--yellow { background: var(--yellow); color: #000; display: flex; flex-direction: column; align-items: flex-start; }
.cta--yellow .btn { margin-top: auto; }
.cta--light { background: #fff; border: 1px solid var(--line); text-align: left; }
.cta--dark .field span { color: #ddd; }
.cta--dark .form__hint { color: #aaa; }

/* ---------- сетка товаров и карточка ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--yellow); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--sold { opacity: .72; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #111; }
.card__media img, .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { display: block; background: repeating-linear-gradient(-45deg, #1b1b1b 0 12px, #141414 12px 24px); }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__sku { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.card__actions .btn { min-height: 40px; font-size: 13px; }

/* ---------- страница категории ---------- */
.breadcrumbs ol { list-style: none; padding: 18px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head { padding: 18px 0 8px; }
.page-head__title { font: 900 clamp(26px, 3.5vw, 40px)/1.05 var(--font-head); text-transform: uppercase; }
.page-head__lead { color: var(--muted); max-width: 820px; }
.chips { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--black); }
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.filters__group { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.filters__group legend { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 0; margin-bottom: 8px; }
.filters__actions { display: grid; gap: 8px; padding-top: 16px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input, .field input, .field select, .field textarea { width: 100%; border: 1px solid #cfcfc8; border-radius: 4px; padding: 10px 12px; background: #fff; min-height: 44px; }
.range input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgb(255 196 0 / .45); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--black); flex: none; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); font-size: 14px; }
.toolbar__sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.toolbar__sort select { border: 1px solid #cfcfc8; border-radius: 4px; padding: 8px 10px; background: #fff; }
.toolbar__filters { display: none; }
.empty { background: #fff; border: 1px dashed #cfcfc8; border-radius: var(--radius); padding: 32px; text-align: center; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0 10px; flex-wrap: wrap; }
.pagination__item { min-width: 42px; height: 42px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 700; }
.pagination__item.is-active { background: var(--black); color: var(--yellow); border-color: var(--black); }
.pagination__item.is-disabled { color: #bbb; }

/* ---------- карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding: 16px 0 28px; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: var(--radius); overflow: hidden; }
.gallery__image { width: 100%; height: 100%; object-fit: contain; }
.gallery__sold { position: absolute; top: 18px; right: -40px; transform: rotate(35deg); background: var(--yellow); color: #000; font-weight: 900; padding: 6px 50px; text-transform: uppercase; }
.gallery__thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.gallery__thumb { border: 2px solid transparent; padding: 0; background: #111; border-radius: 4px; cursor: pointer; overflow: hidden; }
.gallery__thumb.is-active { border-color: var(--yellow); }
.gallery__thumb img { width: 80px; height: 60px; object-fit: cover; }
.gallery__video { width: 100%; margin-top: 12px; border-radius: var(--radius); background: #000; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 140px; }
.buybox__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.buybox__title { font: 900 clamp(24px, 2.6vw, 32px)/1.1 var(--font-head); margin: 0; }
.buybox__sku { color: var(--muted); margin: 0; }
.buybox__stock, .buybox__short { margin: 0; }
.buybox__cart { display: flex; gap: 10px; }
.buybox__cart .btn { flex: 1; }
.buybox__info { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.buybox__info li { padding-left: 20px; position: relative; }
.buybox__info li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--yellow); }
.qty { display: inline-flex; border: 1px solid #cfcfc8; border-radius: 4px; overflow: hidden; background: #fff; height: 54px; }
.qty button { width: 42px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; }
.qty input { width: 56px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-details { display: grid; gap: 16px; padding-bottom: 12px; }
.product-details__section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-details__section h2 { font: 900 20px/1.1 var(--font-head); text-transform: uppercase; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 45%; color: var(--muted); font-weight: 600; }
.specs tr:nth-child(odd) { background: #fafaf7; }
.specs__total th, .specs__total td { font-weight: 800; color: var(--text); }
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin-top: 1.2em; }
.prose a { color: var(--text); }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { font-weight: 700; }
.field em, .error { color: var(--danger); font-style: normal; font-size: 13px; }
.field--full { grid-column: 1 / -1; }
.form__hint { color: var(--muted); font-size: 14px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.segmented { display: inline-flex; border: 1px solid #cfcfc8; border-radius: 4px; overflow: hidden; width: max-content; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.segmented input:checked + span { background: var(--black); color: var(--yellow); }
.form-section { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; margin: 0; display: grid; gap: 14px; }
.form-section legend { font: 900 16px/1 var(--font-head); text-transform: uppercase; padding: 0 6px; }

/* ---------- корзина и оформление ---------- */
.cart, .checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-bottom: 40px; }
.cart__lines { display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto auto 32px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-line__media { aspect-ratio: 4 / 3; background: #111; border-radius: 4px; overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: grid; gap: 4px; }
.cart-line__title { font-weight: 700; text-decoration: none; }
.cart-line__sku { color: var(--muted); font-size: 13px; }
.cart-line__total { font-weight: 800; min-width: 110px; text-align: right; }
.cart-line__qty .qty { height: 42px; }
.cart-line__remove { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-line__remove:hover { color: var(--danger); }
.summary { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 22px; position: sticky; top: 140px; display: grid; gap: 14px; }
.summary__title { font: 900 18px/1 var(--font-head); text-transform: uppercase; margin: 0; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary__total { font-size: 20px; font-weight: 900 !important; padding-top: 8px; border-top: 1px solid var(--line); }
.summary__note { font-size: 13px; color: var(--muted); margin: 0; }
.summary__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.summary__items li { display: flex; justify-content: space-between; gap: 12px; }
.checkout__form { display: grid; gap: 16px; }
.thanks { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; margin: 32px 0; display: grid; gap: 12px; justify-items: center; }
.thanks__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: #000; display: grid; place-items: center; font-size: 34px; font-weight: 900; }
.thanks__icon--muted { background: var(--black); color: var(--yellow); font-size: 22px; }
.thanks .specs { max-width: 560px; margin: 8px 0 12px; }

/* ---------- кабинет ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 0; }
.auth__box, .auth__aside, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.auth__box h1 { font: 900 28px/1 var(--font-head); text-transform: uppercase; }
.auth__box--wide { margin: 32px 0; }
.auth__aside { background: var(--ink); color: #fff; border: 0; display: grid; gap: 14px; align-content: start; }
.auth__aside h2 { font: 900 22px/1 var(--font-head); text-transform: uppercase; color: var(--yellow); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--yellow); font-weight: 900; margin-right: 8px; }
.account-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.account-nav a, .account-nav button { padding: 9px 14px; border-radius: 4px; text-decoration: none; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; }
.account-nav a.is-active { background: var(--black); color: var(--yellow); border-color: var(--black); }
.account-nav form { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; padding-bottom: 40px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: #fafaf7; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table__total td { font-weight: 800; }
.discounts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.discounts li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.discounts strong { color: var(--ok); white-space: nowrap; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--yellow); padding-left: 12px; display: grid; }

/* ---------- подвал ---------- */
.footer { background: var(--black); color: #bdbdb6; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer__title { font: 800 14px/1 var(--font); color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d8d8d2; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__about { margin-top: 14px; max-width: 320px; font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #262626; padding-top: 16px; padding-bottom: 22px; font-size: 13px; }

/* ---------- адаптивность ---------- */
@media (max-width: 1100px) {
    .lines { grid-template-columns: repeat(2, 1fr); }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); max-height: none; z-index: 70; border-radius: 0; transform: translateX(-105%); transition: transform .2s ease; top: 0; }
    .filters.is-open { transform: none; box-shadow: var(--shadow); }
    .toolbar__filters { display: inline-flex; }
}
@media (max-width: 900px) {
    .hero__inner, .product, .cart, .checkout, .account-grid, .cta-grid, .auth { grid-template-columns: 1fr; }
    .buybox, .summary { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: block; }
    .header__inner { flex-wrap: wrap; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .icon-link span, .cart-link > span:not(.cart-link__count) { display: none; }
    .nav { display: none; }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; padding: 8px 0; }
    .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; }
    .nav__dropdown a { color: #c9c9c2; padding: 6px 14px; }
    .header { position: static; }
}
@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .lines { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card__body { padding: 10px; }
    .card__title { font-size: 14px; }
    .form__grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px 1fr 28px; }
    .cart-line__unit { display: none; }
    .cart-line__qty, .cart-line__total { grid-column: 2; text-align: left; }
    .topbar__contacts { display: none; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__inner { padding-top: 40px; padding-bottom: 40px; }
    .buybox__cart { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* атрибут hidden всегда скрывает элемент */
[hidden] { display: none !important; }
.account-sell__title { margin-top: 26px; }
