:root {
  --red: #e3111a;
  --red-hover: #c20d15;
  --red-soft: #fdecec;
  --black: #222325;
  --ink: #1d1e20;
  --gray: #7c7d7f;
  --gray-dark: #57585a;
  --line: #e2e3e5;
  --bg: #f3f3f4;
  --white: #fff;
  --ok: #1f8a4c;
  --radius: 6px;
  --wrap: 1240px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--gray); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: var(--radius);
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--red-hover); }
.btn--dark { background: var(--black); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--line); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--line:hover { background: var(--bg); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.is-in { background: var(--black); }
.link { color: var(--red); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* шапка */
.topbar { background: var(--black); color: #c9cacc; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--gray); }
.topbar__right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.vk { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; background: #0077ff; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: -.02em; }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { flex: none; }
.logo img { height: 46px; width: auto; }
.catalog-btn { flex: none; }
.search { flex: 1; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 2px solid var(--black); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; outline: none;
}
.search input:focus { border-color: var(--red); }
.search button { width: 52px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--black); color: #fff; cursor: pointer; }
.search button:hover { background: var(--red); }
.head-phone { flex: none; text-align: right; line-height: 1.25; }
.head-phone a { font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.head-phone button { border: 0; background: none; padding: 0; color: var(--red); cursor: pointer; font-size: 13px; border-bottom: 1px dashed; }
.head-icons { display: flex; gap: 6px; flex: none; }
.head-icon {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 8px; font-size: 12px; color: var(--gray-dark); text-decoration: none;
}
.head-icon .icon { width: 24px; height: 24px; color: var(--ink); }
.head-icon:hover .icon { color: var(--red); }
.head-icon__count {
  position: absolute; top: -2px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 19px; text-align: center;
}
.head-icon__count:empty, .head-icon__count[data-count="0"] { display: none; }
.burger, .head-call { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.burger .icon, .head-call .icon { width: 26px; height: 26px; }

.nav { background: var(--white); border-bottom: 1px solid var(--line); }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 12px 11px; font-weight: 700; font-size: 14px; white-space: nowrap;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.nav li:first-child a { padding-left: 0; }
.nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* выпадающий каталог */
.catalog-drop { position: relative; }
.catalog-drop__panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  width: 560px; padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  columns: 2; column-gap: 28px;
}
.catalog-drop.is-open .catalog-drop__panel { display: block; }
.catalog-drop__group { break-inside: avoid; margin-bottom: 14px; }
.catalog-drop__group > a { font-weight: 800; text-decoration: none; }
.catalog-drop__group > a:hover, .catalog-drop__group li a:hover { color: var(--red); }
.catalog-drop__group ul { list-style: none; margin: 4px 0 0; padding: 0; }
.catalog-drop__group li a { color: var(--gray-dark); text-decoration: none; font-size: 14px; }

/* мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer__body {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw);
  background: #fff; overflow-y: auto; padding: 16px;
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__head img { height: 36px; width: auto; }
.drawer__close { border: 0; background: none; padding: 6px; cursor: pointer; }
.drawer h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.drawer__contacts { margin-top: 18px; font-size: 14px; }
.drawer__contacts a { font-weight: 800; font-size: 18px; text-decoration: none; }

/* сообщения */
.messages { margin: 16px auto 0; }
.message { padding: 12px 16px; border-radius: var(--radius); background: #eaf6ef; color: #16502f; margin-bottom: 8px; }
.message--error { background: var(--red-soft); color: #8a0b10; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  padding: 12px 18px; border-radius: var(--radius); background: var(--black); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); display: none; max-width: calc(100vw - 32px);
}
.toast.is-shown { display: flex; gap: 14px; align-items: center; }
.toast a { color: #fff; font-weight: 700; }

/* крошки и заголовки страниц */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 10px; padding: 0; font-size: 13px; color: var(--gray); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.section { margin: 44px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__head h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--red); margin-top: 8px; }

/* главная: баннеры и подбор */
.hero { display: grid; grid-template-columns: 360px 1fr; gap: 20px; margin-top: 22px; }
.picker { background: var(--black); color: #fff; border-radius: var(--radius); padding: 20px; }
.picker__tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.picker__tab {
  flex: 1; padding: 9px 0; border: 0; border-radius: var(--radius); cursor: pointer;
  background: #353639; color: #c9cacc; font-weight: 700;
}
.picker__tab.is-active { background: var(--red); color: #fff; }
.picker__form { display: none; }
.picker__form.is-active { display: block; }
.picker__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.picker label { display: block; font-size: 12px; color: #a4a5a8; margin-bottom: 4px; }
.picker select {
  width: 100%; height: 42px; padding: 0 8px; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.picker__seasons { display: flex; gap: 8px; margin: 6px 0 16px; flex-wrap: wrap; }
.picker__seasons label { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; margin: 0; cursor: pointer; }
.picker__seasons input { accent-color: var(--red); width: 17px; height: 17px; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--black); min-height: 330px; }
.slide {
  position: absolute; inset: 0; display: none; grid-template-columns: 1.2fr 1fr; align-items: center;
  color: #fff; padding: 36px 40px; gap: 20px;
}
.slide.is-active { display: grid; }
.slide::before {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 420px; height: 420px;
  background: url("../img/emblem.d514fac33d07.png") no-repeat center / contain; opacity: .12; pointer-events: none;
}
.slide h2 { font-size: 32px; margin-bottom: 12px; position: relative; }
.slide p { color: #d4d5d7; font-size: 16px; max-width: 460px; position: relative; }
.slide__img { position: relative; background: #fff; border-radius: var(--radius); padding: 14px; max-height: 260px; }
.slide__img img { max-height: 232px; margin: 0 auto; object-fit: contain; }
.slide .btn { position: relative; }
.slider__dots { position: absolute; left: 40px; bottom: 18px; display: flex; gap: 8px; }
.slider__dots button { width: 26px; height: 5px; border: 0; padding: 0; border-radius: 3px; background: #55565a; cursor: pointer; }
.slider__dots button.is-active { background: var(--red); }

/* плитки категорий */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 170px; padding: 16px;
  background: var(--bg); border-radius: var(--radius); text-decoration: none; overflow: hidden;
}
.tile:hover { background: #eaeaec; }
.tile:hover .tile__name { color: var(--red); }
.tile__name { font-weight: 800; font-size: 17px; max-width: 70%; position: relative; z-index: 1; }
.tile__count { font-size: 13px; color: var(--gray); position: relative; z-index: 1; }
.tile img { position: absolute; right: 8px; bottom: 8px; width: 46%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.tile--wide { grid-column: span 2; }

/* бренды */
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.brand {
  display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  font-weight: 900; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; text-align: center;
}
.brand:hover { border-color: var(--black); }
.brand img { max-height: 48px; width: auto; }

/* о компании на главной */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts b { flex: none; width: 116px; color: var(--red); font-size: 18px; font-weight: 900; line-height: 1.3; }


.highlight { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border-radius: var(--radius); background: var(--black); color: #fff; }
.highlight h2 { margin-bottom: 8px; }
.highlight p { color: #c9cacc; margin: 0; max-width: 640px; }

.contacts-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }
.contacts-list { list-style: none; margin: 0; padding: 0; }
.contacts-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contacts-list .icon { color: var(--red); margin-top: 2px; }
.contacts-list a { text-decoration: none; font-weight: 700; }
.map { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius); background: var(--bg); }

/* карточка товара в списке */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
}
.pcard:hover { border-color: #c5c6c9; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.pcard__img { position: relative; display: block; aspect-ratio: 1; padding: 14px; background: #fff; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bg); border-radius: 4px; }
.pcard__noimg img { width: 40%; opacity: .25; }
.pcard__tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.pcard__body { padding: 0 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pcard__name { font-weight: 700; text-decoration: none; line-height: 1.3; margin-bottom: 4px; }
.pcard__name:hover { color: var(--red); }
.pcard__specs { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.pcard__foot { margin-top: auto; }
.pcard__stock { font-size: 13px; margin-bottom: 8px; }
.pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.price s { display: block; font-size: 13px; font-weight: 400; color: var(--gray); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: var(--bg); color: var(--gray-dark);
}
.tag .icon { width: 13px; height: 13px; }
.tag--summer { background: #fff4d6; color: #7a5a00; }
.tag--winter { background: #e6f0fb; color: #1d4f86; }
.tag--all { background: #ecefe9; color: #3e5230; }
.tag--red { background: var(--red); color: #fff; }
.tag--dark { background: var(--black); color: #fff; }

.stock-yes { color: var(--ok); }
.stock-order { color: #9a6700; }
.stock-no { color: var(--gray); }

/* каталог: фильтры */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { padding-right: 4px; }
.filters__block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.filters__block:first-child { padding-top: 0; }
.filters__title { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.filters__list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 196px; overflow-y: auto; scrollbar-width: thin; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 5px 10px; border-radius: 4px; background: var(--bg);
  font-size: 13px; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--black); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); }
.filters select, .filters input[type="number"], .filters input[type="text"] {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.filters__price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filters__check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.filters__check input { accent-color: var(--red); width: 16px; height: 16px; }
.filters__actions { display: flex; gap: 8px; padding-top: 14px; }
.filters-toggle { display: none; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subcats a { padding: 7px 14px; border-radius: 20px; background: var(--bg); text-decoration: none; font-size: 14px; font-weight: 600; }
.subcats a:hover { background: var(--black); color: #fff; }

.empty { padding: 32px; border-radius: var(--radius); background: var(--bg); }
.split { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.empty--order { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--bg); text-decoration: none; font-weight: 600;
}
.pager a:hover { background: var(--line); }
.pager .is-current { background: var(--black); color: #fff; }

/* страница товара */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.gallery__main { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: center; }
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.buybox .price { font-size: 30px; }
.buybox__row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 38px; border: 0; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--line); }
.qty .icon { width: 16px; height: 16px; }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.note { padding: 14px 16px; border-left: 4px solid var(--red); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.note p:last-child { margin: 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px dotted #cfd0d3; vertical-align: top; }
.specs th { font-weight: 400; color: var(--gray-dark); width: 50%; padding-right: 12px; }
.text { max-width: 820px; }
.text h2 { margin-top: 1.4em; }
.text ul { padding-left: 20px; }
.text li { margin-bottom: 4px; }

/* корзина и оформление */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; height: 84px; object-fit: contain; }
.cart-line__name { font-weight: 700; text-decoration: none; }
.cart-line__name:hover { color: var(--red); }
.cart-line__sum { font-weight: 800; min-width: 100px; text-align: right; white-space: nowrap; }
.cart-line__del { border: 0; background: none; cursor: pointer; color: var(--gray); padding: 4px; }
.cart-line__del:hover { color: var(--red); }
.summary { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius); background: var(--bg); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary__total { font-size: 22px; font-weight: 800; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }

.form { display: grid; gap: 14px; }
.form--2 { grid-template-columns: 1fr 1fr; }
.company-check { margin-top: 14px; }
.company { margin-top: 12px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field label b { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd0d3; border-radius: var(--radius); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: var(--black); }
.field small { display: block; color: var(--gray); font-size: 13px; margin-top: 4px; }
.field em { display: block; color: var(--red); font-style: normal; font-size: 13px; margin-top: 4px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field--wide { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.check a { color: var(--red); }
.options { display: grid; gap: 8px; }
.option { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option:has(input:checked) { border-color: var(--black); }
.option input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.option__title { font-weight: 700; }
.option__text { font-size: 13px; color: var(--gray); }
.option__price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.checkout legend { font-weight: 800; font-size: 19px; margin-bottom: 12px; padding: 0; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }

.status { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--bg); }
.status--new { background: var(--red-soft); color: #8a0b10; }
.status--done, .status--paid { background: #e3f3e9; color: #16502f; }
.status--cancelled { background: #eee; color: var(--gray); }

.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.narrow { max-width: 460px; margin: 30px auto; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a.is-active { border-color: var(--red); color: var(--red); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: 13px; color: var(--gray); font-weight: 600; }

/* запчасти по номеру */
.parts-search { max-width: 640px; }
.parts-hint { font-size: 14px; margin: 8px 0 22px; }
.parts-note { margin-bottom: 20px; }
.parts-title { margin: 26px 0 8px; font-size: 20px; }
.acat { display: block; border: 0; width: 100%; height: 600px; border-radius: var(--radius); background: var(--bg); }
.parts { border-top: 1px solid var(--line); }
.part { display: grid; grid-template-columns: 1fr 200px 120px auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.part__name b { display: block; }
.part__name .muted, .part__stock .muted { font-size: 13px; }
.part__stock { display: grid; gap: 2px; font-size: 14px; }
.part .price { font-size: 20px; text-align: right; white-space: nowrap; }
.parts-more summary { list-style: none; margin-top: 14px; }
.parts-more summary::-webkit-details-marker { display: none; }
.parts-more[open] summary { display: none; }

/* подбор по автомобилю */
.car-picker__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.car-picker label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.car-picker select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; }
.car-picker select:disabled { opacity: .5; }
.car-picker__error { color: var(--red); font-size: 14px; }
.picker .car-picker__row { grid-template-columns: 1fr 1fr; }
.picker .car-picker label { color: #a4a5a8; }
.car-years { font-weight: 400; font-size: .7em; }
.car-mod { margin: 14px 0 0; }
.car-tabs { margin: 14px 0 12px; }
.car-note { margin: 12px 0 18px; }
.car-intro { margin-top: 18px; }
.car-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.chip-link { display: inline-flex; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip-link:hover { color: var(--red); }
.chip-link.is-active { background: var(--black); color: #fff; }
.chip-link.is-active .muted { color: #a4a5a8; }

/* плитки популярных товаров на странице запчастей */
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border-radius: var(--radius); background: var(--bg); text-decoration: none; text-align: center; font-weight: 700; font-size: 14px; }
.ptile:hover { background: #eaeaec; color: var(--red); }
.ptile__icon { width: 44px; height: 44px; stroke-width: 1.5; color: var(--red); }

/* подбор запчасти менеджером */
.expert { display: grid; grid-template-columns: 1fr 1.2fr; margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.expert__intro { background: var(--red); color: #fff; padding: 28px; }
.expert__intro h2 { color: #fff; margin-top: 0; }
.expert__vin { font-size: 14px; opacity: .85; }
.expert__form { padding: 28px; grid-template-columns: 1fr 1fr; align-content: start; }
.expert__form .check, .expert__form p, .expert__form button { grid-column: 1 / -1; }
.expert__form button { justify-self: start; }

/* окно заявки */
dialog.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal__body { padding: 24px; }
.modal__close { position: absolute; right: 10px; top: 10px; border: 0; background: none; cursor: pointer; padding: 6px; }
.modal__done { display: none; }
.modal.is-done .modal__done { display: block; }
.modal.is-done form { display: none; }
.hp { position: absolute; left: -9999px; }

/* подвал */
.footer { background: var(--black); color: #b7b8bb; margin-top: 60px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; padding-top: 40px; padding-bottom: 30px; }
.footer img { height: 44px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; margin: 4px 0 12px; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__phone { color: #fff; font-size: 20px; font-weight: 800; }
.footer__bottom { border-top: 1px solid #38393c; }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--gray); }

/* адаптив */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 320px 1fr; }
  .head-phone button { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile--wide { grid-column: auto; }
  .brands { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar__item--hours, .topbar__item--addr { display: none; }
  .header .wrap { flex-wrap: wrap; gap: 10px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .burger, .head-call { display: block; }
  .logo img { height: 36px; }
  .catalog-btn, .head-phone, .nav, .head-icon__label { display: none; }
  .head-icons { margin-left: auto; }
  .search { order: 5; flex-basis: 100%; }
  .search input { height: 40px; }
  .hero { grid-template-columns: 1fr; }
  .slider { min-height: 300px; }
  .listing, .cart, .checkout, .product, .about, .contacts-block, .empty--order, .split { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .summary { position: static; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .highlight { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcard__img { padding: 8px; }
  .pcard__body { padding: 0 10px 10px; }
  .pcard__buy { flex-direction: column; align-items: stretch; }
  .pcard__buy .btn { width: 100%; }
  .price { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile { min-height: 130px; padding: 12px; }
  .tile__name { font-size: 15px; max-width: 100%; }
  .tile--wide { grid-column: span 2; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .slide { grid-template-columns: 1fr; padding: 24px 20px 48px; }
  .slide h2 { font-size: 24px; }
  .slide__img { display: none; }
  .slider__dots { left: 20px; }
  .picker__row { grid-template-columns: 1fr 1fr 1fr; }
  .cart-line { grid-template-columns: 64px 1fr 28px; gap: 10px; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .qty, .cart-line__sum { grid-column: 2; }
  .cart-line__sum { text-align: left; }
  .cart-line__del { grid-row: 1; grid-column: 3; }
  .part { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .ptiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .car-picker__row { grid-template-columns: 1fr 1fr; }
  .expert { grid-template-columns: 1fr; }
  .expert__intro, .expert__form { padding: 20px; }
  .expert__form { grid-template-columns: 1fr; }
  .part__name, .part__stock { grid-column: 1 / -1; }
  .part .price { text-align: left; }
  .form--2 { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer__bottom .wrap { flex-direction: column; }
  .topbar__right { gap: 12px; }
  .highlight { padding: 22px 20px; }
}
