/* avto-102.ru — Подорожник. Дизайн: основа «Маркировка» (цвета, шрифты), формы и подбор — скруглённые. */

@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 500; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-500-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 500; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-500-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2010-2027, U+2030-203A, U+20AC, U+20BD, U+2116, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-700-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-700-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2010-2027, U+2030-203A, U+20AC, U+20BD, U+2116, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 800; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-800-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-weight: 800; font-display: swap; src: url(/assets/fonts/FiraSansExtraCondensed-800-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2010-2027, U+2030-203A, U+20AC, U+20BD, U+2116, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/GolosText-400-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/GolosText-400-latin.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+00F7, U+2010-2027, U+2030-203A, U+20AC, U+20BD, U+2116, U+2122, U+2190-2193, U+2212; }

:root {
  --ink: #14171a;          /* резина */
  --ink-2: #2a2f33;
  --paper: #ffffff;
  --mist: #eef1ef;
  --mist-2: #e3e8e5;
  --line: #d6dbd8;
  --muted: #646c67;
  --green: #267001;        /* фирменный */
  --green-ink: #1a4d01;
  --green-soft: #e6f1df;
  --chalk: #ffd21f;        /* жёлтая метка на новой шине */
  --danger: #b3261e;
  --warn: #8a5a00;
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 14px;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 4.6vw, 60px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.warn { color: var(--warn); display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 10px; }
[hidden] { display: none !important; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15.5px; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); }
.btn-ghost { background: var(--mist); color: var(--ink); }
.btn-ghost:hover { background: var(--mist-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- шапка ---------- */
.util { background: var(--mist); font-size: 13px; color: var(--ink-2); }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.util b { font-weight: 600; }
.util nav a { margin-left: 22px; color: var(--ink-2); }
.util-addr, .util-addr:hover { color: inherit; }
.hdr-main { display: flex; align-items: center; gap: 26px; padding-top: 16px; padding-bottom: 14px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.search { position: relative; flex: 1; display: flex; background: var(--mist); border-radius: 999px; padding: 5px 5px 5px 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 8px 0; }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 22px; font-weight: 700; font-size: 15px; cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search-page { max-width: 640px; margin: 0 0 20px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(20,23,26,.16); z-index: 30; max-height: 70vh; overflow: auto; padding: 6px; }
.suggest a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; color: var(--ink); border-radius: 12px; }
.suggest a:hover { background: var(--mist); text-decoration: none; }
.suggest img { width: 48px; height: 48px; object-fit: contain; background: var(--mist); border-radius: 10px; mix-blend-mode: multiply; }
.suggest b { font: 800 22px/1 var(--display); }
.suggest .all { display: block; text-align: center; color: var(--green); font-weight: 700; }
.tel { text-align: right; line-height: 1.1; flex: none; }
.tel-wrap { display: flex; align-items: center; gap: 12px; flex: none; }
.max-ico { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #00b2ff, #6a4dff); color: #fff; flex: none; }
.max-ico span { font: 800 10px/1 var(--display); letter-spacing: .06em; }
a.max-ico, a.max-ico:hover, a.max-ico:visited { color: #fff; text-decoration: none; }
.max-ico:hover { filter: brightness(1.06); }
.tel a { display: block; font: 800 24px/1 var(--display); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.tel span { font-size: 12.5px; color: var(--muted); }
.tel .link { font-size: 12.5px; }
.acts { display: flex; gap: 8px; flex: none; }
.acts a { position: relative; display: flex; align-items: center; gap: 8px; background: var(--mist); color: var(--ink); border-radius: 999px; padding: 11px 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.acts a:hover { background: var(--mist-2); }
.acts a.cart { background: var(--ink); color: #fff; }
.acts .badge { background: var(--chalk); color: var(--ink); border-radius: 999px; padding: 0 8px; font-weight: 700; font-size: 13.5px; }
.nav .wrap { display: flex; gap: 4px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; color: var(--ink); }
.nav a:hover { background: var(--mist); text-decoration: none; }
.nav a[aria-current] { background: var(--ink); color: #fff; }
.nav a.svc { margin-left: auto; background: var(--green); color: #fff; }
.nav a.svc:hover { background: var(--green-ink); }

/* ---------- сообщения ---------- */
.flash { padding: 14px 18px; border-radius: var(--r-sm); margin: 16px 0; background: var(--mist); }
.flash-ok { background: var(--green-soft); color: var(--green-ink); }
.flash-err { background: #fbe9e7; color: var(--danger); }
.flash-warn { background: #fff4d6; color: var(--warn); }
.note { background: var(--mist); border-radius: var(--r-sm); padding: 14px 18px; margin: 16px 0; }
.note b { font-weight: 700; }
.err { display: block; color: var(--danger); font-size: 14px; margin-top: 4px; }

/* ---------- главная: первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--mist); border-radius: var(--r-xl); padding: 48px 52px 138px; }
.hero-txt { position: relative; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk); box-shadow: inset 0 0 0 1px #c9a400; }
.hero h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .92; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0; }
.tyre { position: absolute; right: -46px; bottom: -70px; width: min(46vw, 640px); aspect-ratio: 1; pointer-events: none; }
.tyre text { font-family: var(--display); font-weight: 800; }
.pick { position: relative; z-index: 2; margin: -84px 30px 0; background: #fff; border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; box-shadow: 0 18px 48px rgba(20,23,26,.16); }
.pick > b { align-self: center; font: 800 24px/1 var(--display); max-width: 120px; letter-spacing: .01em; }
.pick label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.pick select, .fl select { appearance: none; -webkit-appearance: none; border: 0; background-color: var(--mist); border-radius: 16px; cursor: pointer; outline-offset: 2px; color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%; background-size: 7px 7px; background-repeat: no-repeat; }
.pick select { font: 800 28px/1 var(--display); padding: 12px 42px 12px 16px; min-width: 118px; }
.seg { display: flex; flex-wrap: wrap; background: var(--mist); border-radius: 16px; padding: 5px; gap: 2px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 11px 15px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--chalk); }
.seg-sm span { padding: 8px 12px; font-size: 14px; }
.pick .go { margin-left: auto; padding: 17px 26px; font-size: 16.5px; border-radius: 18px; }
.often { margin: 22px 6px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.often a { color: var(--ink); font: 700 20px/1.2 var(--display); letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.often a:hover { color: var(--green); border-color: var(--green); text-decoration: none; }

/* ---------- полоса фактов ---------- */
.facts { background: var(--ink); color: #fff; border-radius: var(--r-lg); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; padding: 6px 30px; }
.facts > div { padding: 20px 24px 20px 0; border-right: 1px solid #343a3f; margin-right: 24px; }
.facts > div:last-child { border: 0; margin: 0; }
.facts b { display: block; font: 800 42px/1 var(--display); color: var(--chalk); letter-spacing: .01em; }
.facts span { font-size: 14px; color: #c5ccc8; }

/* ---------- разделы ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.tile { position: relative; background: var(--mist); border-radius: 28px; padding: 22px 22px 20px; min-height: 212px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, background .15s; }
.tile:hover { transform: translateY(-3px); background: var(--mist-2); text-decoration: none; }
.tile b { font: 800 30px/1 var(--display); letter-spacing: .01em; max-width: 62%; position: relative; z-index: 1; }
.tile span { margin-top: auto; align-self: start; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.tile img { position: absolute; right: -6px; bottom: -8px; height: 172px; width: auto; mix-blend-mode: multiply; }
.tile.t-akb img { height: 128px; right: 8px; bottom: 10px; }
.tile.t-exp img { height: 160px; right: 4px; bottom: 0; }
.tiles-plain .tile { min-height: 150px; }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.more a { border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink); }
.more a:hover { border-color: var(--ink); text-decoration: none; }
.more a b { color: var(--muted); font-weight: 500; margin-left: 6px; }
.more a.svc { background: var(--green); border-color: var(--green); color: #fff; margin-left: auto; }
.more a.svc:hover { background: var(--green-ink); }

/* ---------- заголовки блоков ---------- */
.block { margin-top: 52px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head h2 { margin: 0; }
.block-head h2 sup { font: 600 14px/1 var(--body); color: var(--muted); margin-left: 8px; vertical-align: top; position: relative; top: 6px; letter-spacing: 0; }
.block-head > a { font-weight: 700; }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 16px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9c0bc; box-shadow: 0 10px 30px rgba(20,23,26,.08); }
.card-ph { position: relative; display: block; background: var(--mist); border-radius: var(--r-md); aspect-ratio: 1.16; }
.card-ph img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.card-ph.dark, .product-media.dark, .cart-img.dark { background: #000; overflow: hidden; }
.card-ph.dark img { inset: 0; width: 100%; height: 100%; mix-blend-mode: normal; }
.product-media.dark img { mix-blend-mode: normal; }
.cart-img.dark img { mix-blend-mode: normal; }
.card-tag { position: absolute; left: 20px; top: 20px; z-index: 1; background: #fff; border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; color: var(--ink); }
.card-in { padding: 14px 8px 0; display: flex; flex-direction: column; flex: 1; }
.card-size { font: 800 38px/1 var(--display); letter-spacing: .01em; color: var(--ink); }
.card-size small { font: 700 21px/1 var(--display); color: var(--muted); margin-left: 6px; }
.card-name { display: block; font-weight: 500; margin-top: 4px; color: var(--ink-2); line-height: 1.3; }
.card-name.solo { font-weight: 600; font-size: 16.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.card-title { color: inherit; }
a.card-title:hover { text-decoration: none; color: var(--green); }
.stock { margin-top: 10px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--chalk); box-shadow: inset 0 0 0 1px #c9a400; flex: none; }
.stock-few::before { background: #ff9d2e; box-shadow: inset 0 0 0 1px #c97100; }
.stock-order { color: var(--muted); }
.stock-order::before { background: #c6ccc8; box-shadow: none; }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
/* stock + price sit at the bottom of the card, so they line up across a row whatever the name length */
.card-in .stock { margin-top: auto; padding-top: 10px; }
.card-in .card-buy { margin-top: 0; }
.price { font: 800 32px/1 var(--display); white-space: nowrap; }
.price-lg { font-size: 56px; }

/* ---------- сервис ---------- */
.service { display: grid; grid-template-columns: 1fr 1.25fr; margin-top: 56px; border-radius: var(--r-xl); overflow: hidden; background: var(--mist); }
.service .say { background: var(--ink); color: #fff; padding: 40px 38px; display: flex; flex-direction: column; border-radius: var(--r-xl); }
.service .say h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: .95; margin: 0 0 14px; }
.service .say h2 em { font-style: normal; color: var(--chalk); }
.service .say p { color: #c5ccc8; max-width: 420px; margin: 0 0 24px; }
.service .say .btn { margin-top: auto; align-self: start; }
.service ul { list-style: none; margin: 0; padding: 14px 16px; }
.service li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 18px; align-items: center; color: var(--ink); border-radius: var(--r-sm); }
.service li a:hover { background: #fff; text-decoration: none; }
.service li b { font: 700 25px/1.1 var(--display); letter-spacing: .01em; }
.service li span { grid-column: 1; color: var(--muted); font-size: 14px; }
.service li i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 22px; color: var(--green); }

/* ---------- как найти ---------- */
.find { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin: 56px 0 0; }
.find .info { background: var(--mist); border-radius: var(--r-xl); padding: 40px; }
.find h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: .9; margin: 6px 0 20px; }
.find dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 24px; }
.find dt { color: var(--muted); }
.find dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.find dd a { color: var(--ink); }
.find dd a[href^="tel:"] { white-space: nowrap; }
.find .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.map { border-radius: var(--r-xl); overflow: hidden; background: var(--mist-2); min-height: 340px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- хлебные крошки, каталог ---------- */
.crumbs { max-width: 1320px; margin: 4px auto 10px; padding: 0 24px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.listing-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.listing-head h1 { margin: 0; }
.listing-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.filters { background: var(--mist); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 14px; }
.filters-toggle { display: none; width: 100%; }
.filters-apply { display: none; }
.fl { margin-bottom: 14px; }
.fl-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fl select { width: 100%; background-color: #fff; border-radius: var(--r-sm); padding: 11px 38px 11px 14px; font-weight: 500; background-position: calc(100% - 20px) 52%, calc(100% - 13px) 52%; }
.fl .seg { background: #fff; border-radius: var(--r-sm); }
.fl-instock { margin-bottom: 16px; font-weight: 600; }
.fl-reset { font-size: 14px; font-weight: 600; }
.sortbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sortbar a { color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.sortbar a:hover { border-color: var(--ink); text-decoration: none; }
.sortbar a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.listing-main.loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.empty { background: var(--mist); border-radius: var(--r-lg); padding: 28px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; justify-content: center; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 600; }
.pager a:hover { background: var(--mist-2); text-decoration: none; }
.pager [aria-current] { background: var(--ink); color: #fff; }
.pager .gap { background: none; min-width: 0; padding: 9px 2px; }
.intro { color: var(--ink-2); max-width: 900px; }

/* ---------- фильтр «от и до» с ползунком ---------- */
.range { --a: 0%; --b: 100%; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-inputs label { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 14px; padding: 0 12px; }
.range-inputs span { font-size: 13px; color: var(--muted); }
.range-inputs input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 10px 0; font: 800 20px/1 var(--display); color: var(--ink); -moz-appearance: textfield; }
.range-inputs input::-webkit-outer-spin-button, .range-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-inputs input:focus { outline: none; }
.range-inputs label:focus-within { box-shadow: 0 0 0 2px var(--green); }
.range-track { position: relative; height: 28px; margin: 6px 10px 0; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #cfd6d2 var(--a), var(--green) var(--a), var(--green) var(--b), #cfd6d2 var(--b)); }
.range-track input { position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-track input::-webkit-slider-runnable-track { background: none; border: 0; }
.range-track input::-moz-range-track { background: none; border: 0; }
.range-track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgba(20,23,26,.2); cursor: grab; }
.range-track input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgba(20,23,26,.2); cursor: grab; }
.range-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(38,112,1,.25); }

/* ---------- запись в сервис ---------- */
.note-btn { margin-top: 10px; }
.book-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--mist); border-radius: var(--r-lg); padding: 18px 22px; margin: 18px 0 26px; }
.book-panel b { display: block; font: 800 24px/1.1 var(--display); }
.book-panel span { color: var(--ink-2); font-size: 15px; }
.book-panel .btn span { color: inherit; font-size: inherit; }
.book-panel-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-call { background: var(--ink); gap: 8px; white-space: nowrap; letter-spacing: .01em; }
a.btn-call, a.btn-call:visited, a.btn-call:hover { color: #fff; }
.btn-call svg { color: var(--chalk); }
.btn-call:hover { background: #2a2f33; }
#booking { width: min(460px, calc(100vw - 24px)); padding: 34px 30px 30px; }
.book-call { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.book-call > * { margin: 0 !important; }
#booking .book-call h3 { padding: 0 34px; line-height: 1.05; }
.book-svc { background: var(--mist); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; margin-top: -4px !important; }
.book-text { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.book-tel { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; flex-wrap: wrap; width: 100%; margin-top: 6px !important; }
.book-tel b { font-weight: inherit; }
.book-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: -4px !important; }
.book-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); font-size: 14.5px; background: #eef6e9; border-radius: 999px; padding: 7px 14px; }
.book-hours::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.book-hours.closed { color: var(--ink-2); background: var(--mist); }
.nowrap { white-space: nowrap; }
@media (max-width: 420px) { #booking { padding: 30px 18px 22px; } .book-tel { font-size: 17px; padding-left: 12px; padding-right: 12px; } #booking .book-call h3 { font-size: 25px; } }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal select { width: 100%; }
@media (max-width: 560px) { .modal .row2 { grid-template-columns: 1fr; } }

/* ---------- MAX ---------- */
.btn-max { background: linear-gradient(90deg, #00b2ff, #6a4dff); color: #fff; gap: 8px; display: inline-flex; align-items: center; }
.btn-max:hover { filter: brightness(1.05); text-decoration: none; }
a.btn-max, a.btn-max:visited, a.btn-max:hover, a.btn-vk, a.btn-vk:visited, a.btn-vk:hover { color: #fff; }
.book-max { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.ask-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toast-max { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); text-align: center; }

/* ---------- новости ---------- */
.btn-vk, .ftr a.btn-vk { background: #0062d1; color: #fff; gap: 8px; display: inline-flex; align-items: center; }  /* white on VK blue, contrast 5.6:1 */
.btn-vk:hover { background: #0066db; color: #fff; text-decoration: none; }
.ftr-btns { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; max-width: 270px; }
.ftr-btns .btn { width: 100%; justify-content: center; min-height: 46px; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.news-head p { margin: 6px 0 0; max-width: 620px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card time, .news-article time { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.news-card h3 { font: 800 24px/1.05 var(--display); margin: 6px 0 8px; }
.news-card h3 a { color: var(--ink); }
.news-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.news-ph { position: relative; display: block; aspect-ratio: 16 / 10.5; border-radius: var(--r-md); overflow: hidden; background: var(--mist); margin-bottom: 12px; }
.news-ph img { width: 100%; height: 100%; object-fit: cover; }
.news-ph.empty { background: var(--mist) url(/assets/img/logo.svg) center / 64px no-repeat; }
.news-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(20,23,26,.72); }
.news-play::after { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.news-article { max-width: 820px; }
.news-article h1 { margin: 6px 0 22px; }
.news-hero { margin: 0 0 24px; }
.news-hero img { display: block; width: 100%; height: auto; max-height: min(620px, 75vh); object-fit: contain; background: var(--mist); border-radius: var(--r-lg); }
.news-body { font-size: 17.5px; }
.news-video { position: relative; display: block; margin: 24px 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); min-height: 120px; }
.news-video img { width: 100%; height: auto; display: block; opacity: .9; }
.news-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 24px 0; }
.news-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.news-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.news-home-vk { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 18px 22px; background: var(--mist); border-radius: var(--r-lg); font-weight: 600; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .news-card h3 { font-size: 22px; } }

/* ---------- SEO-блоки под каталогом ---------- */
.intro { color: var(--ink-2); max-width: 900px; margin: -4px 0 18px; }
.seo-links { margin-top: 40px; }
.seo-links h2 { font-size: 30px; margin-bottom: 12px; }
.seo-links p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.seo-links a { background: var(--mist); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14.5px; }
.seo-links a:hover { background: var(--mist-2); text-decoration: none; }
.seo-links small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.seo-text { margin-top: 40px; color: var(--ink-2); }
.seo-text h2 { font-size: 32px; }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 4px; align-items: start; }
.product-media { background: var(--mist); border-radius: var(--r-xl); padding: 32px; aspect-ratio: 1.08; position: relative; }
.product-media img { position: absolute; inset: 32px; width: calc(100% - 64px); height: calc(100% - 64px); object-fit: scale-down; mix-blend-mode: multiply; }
.product-info h1 { font-size: clamp(36px, 4.2vw, 58px); margin: 6px 0 12px; }
.badges { display: flex; gap: 6px; margin: 0 0 16px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); }
.tag-winter { background: #e4eefb; color: #1f4f8f; }
.tag-summer { background: #fdeede; color: #9a4a00; }
.tag-all { background: var(--green-soft); color: var(--green-ink); }
.buybox { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; }
.buybox-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.buybox .stock { margin-top: 0; font-size: 15px; }
.buy-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qty { display: inline-flex; background: var(--mist); border-radius: 999px; overflow: hidden; height: 52px; padding: 4px; }
.qty button { width: 44px; border: 0; background: #fff; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty input { width: 54px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; outline: 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); gap: 0; margin: 0; }
.specs dd, .prose, .mini-lines span, .cart-name a { overflow-wrap: anywhere; }
h1 { overflow-wrap: break-word; }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); padding-right: 28px; }
.specs dd { font-weight: 600; }
.product-specs { grid-column: 1 / -1; max-width: 820px; margin-top: 12px; }
.descr { margin-top: 20px; color: var(--ink-2); }
.size-all { margin-top: 18px; font-weight: 600; }

/* ---------- корзина, оформление ---------- */
.cart-grid, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto 120px 36px; grid-template-areas: "img name qty sum x"; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-img { grid-area: img; background: var(--mist); border-radius: var(--r-sm); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.cart-img img { max-height: 100%; mix-blend-mode: multiply; }
.cart-name { grid-area: name; display: grid; gap: 2px; }
.cart-name a { color: var(--ink); font-weight: 600; }
.cart-line .qty { grid-area: qty; height: 46px; }
.cart-line .qty button { width: 38px; }
.cart-sum { grid-area: sum; text-align: right; white-space: nowrap; font: 800 26px/1 var(--display); }
.cart-line form[data-cart-remove] { grid-area: x; justify-self: end; }
.x { width: 36px; height: 36px; border: 0; background: var(--mist); border-radius: 50%; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.x:hover { background: var(--ink); color: #fff; }
.cart-total, .checkout-side { background: var(--mist); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; position: sticky; top: 14px; }
.checkout-side h2 { margin: 0; font-size: 22px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row.big b { font: 800 34px/1 var(--display); }
.row.big span { font-weight: 600; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines b { white-space: nowrap; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 24px; margin: 0 0 18px; display: grid; gap: 14px; min-width: 0; }
legend { font: 800 26px/1 var(--display); padding: 0 8px; margin-left: -8px; }
label { display: grid; gap: 5px; font-weight: 500; }
input[type=text], input[type=tel], input[type=date], .modal select, input[type=email], input[type=password], input[type=search], input:not([type]), textarea, .auth select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; font-weight: 400; outline-offset: 0; }
input:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,210,31,.55); }
.search input, .search input:focus, .qty input, .qty input:focus { border: 0; box-shadow: none; padding-left: 0; padding-right: 0; border-radius: 0; background: none; }
.search input { padding: 8px 0; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; }
.check input, .radio input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--green); flex: none; }
.done { padding: 34px 0 10px; }
.done .mini-lines { background: var(--mist); border-radius: var(--r-md); padding: 16px 18px; margin: 16px 0; }

/* ---------- кабинет ---------- */
.auth { display: grid; gap: 14px; padding: 28px 0 40px; }
.auth h1 { margin-bottom: 4px; }
.auth-left { max-width: 560px; }
.auth-links { font-size: 15px; }
details summary { cursor: pointer; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.acc h1 { margin-top: 8px; }
.acc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; align-items: center; }
.acc-nav a { color: var(--ink); background: var(--mist); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.acc-nav a:hover { background: var(--mist-2); text-decoration: none; }
.acc-nav a[aria-current] { background: var(--ink); color: #fff; }
.acc-nav form { margin-left: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px; }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 13px; }
.tbl tfoot td { border-bottom: 0; font-weight: 600; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mist); }
.status-new { background: #fff4d6; color: var(--warn); }
.status-accepted, .status-ready { background: var(--green-soft); color: var(--green-ink); }
.status-cancelled { background: #fbe9e7; color: var(--danger); }
.order-card .specs { margin-bottom: 22px; }

/* ---------- текстовые страницы ---------- */
.page { padding-bottom: 20px; }
.prose { max-width: 820px; font-size: 17px; }
.prose h2 { font-size: 34px; margin: 1.3em 0 .5em; }
.prose h3 { font-size: 26px; margin: 1.2em 0 .4em; }
.prose img { border-radius: var(--r-md); margin: 14px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose iframe { border: 0; border-radius: var(--r-lg); width: 100%; }

/* ---------- подвал ---------- */
.ftr { background: var(--ink); color: #b8c0bb; font-size: 14.5px; margin-top: 64px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.ftr a { color: #e6eae7; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.ftr-grid img { height: 54px; width: auto; margin-bottom: 14px; }
.ftr h2, .ftr h4 { font-size: 22px; color: #fff; margin: 4px 0 12px; letter-spacing: .03em; text-transform: uppercase; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ftr .big { display: block; font: 800 30px/1.15 var(--display); color: #fff; white-space: nowrap; }
.ftr-bottom { border-top: 1px solid #33393d; }
.ftr-bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 14px; padding-bottom: 20px; font-size: 13px; color: #8a938e; }
.ftr-bottom a { color: #8a938e; }

/* ---------- окно, cookie, уведомление ---------- */
.modal { border: 0; border-radius: var(--r-lg); padding: 28px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(20,23,26,.6); }
.modal form { display: grid; gap: 14px; }
.modal h3 { margin: 0; font-size: 34px; }
.modal p { margin: -6px 0 0; }
.modal-x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--mist); border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.form-msg { margin: 0; font-weight: 600; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 580px; background: var(--ink); color: #dfe4e1; border-radius: var(--r-md); padding: 14px 16px 14px 20px; display: flex; gap: 14px; align-items: center; z-index: 40; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.cookie p { margin: 0; }
.cookie a { color: var(--chalk); }
.cookie .btn { background: var(--chalk); color: var(--ink); flex: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px; z-index: 50; box-shadow: 0 16px 40px rgba(0,0,0,.3); display: flex; gap: 14px; align-items: center; white-space: nowrap; max-width: calc(100vw - 24px); }
.toast a { color: var(--chalk); font-weight: 700; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tel a { font-size: 21px; padding: 6px 0; margin: -6px 0; }
  .acts a span { display: none; }
  .pick .go { margin-left: 0; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 14px; }
  .crumbs { padding: 0 14px; }
  .util nav { display: none; }
  .hdr-main { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .hdr-main { gap: 8px; }
  .logo img { height: 36px; }
  .search { order: 5; flex-basis: 100%; }
  .tel-wrap { margin-left: auto; gap: 8px; }
  .max-ico { width: 38px; height: 38px; border-radius: 12px; }
  .max-ico span { display: none; }
  .tel a { font-size: 18px; }
  .tel span, .tel .link { display: none; }
  .acts { gap: 6px; }
  .acts a { padding: 10px 11px; }
  .nav a.svc { margin-left: 0; }
  .hero { border-radius: 26px; padding: 26px 20px 110px; }
  .hero h1 { font-size: 11.4vw; }
  .hero p { font-size: 16.5px; }
  .tyre { width: 86vw; right: -40vw; bottom: -34vw; opacity: .14; }
  .pick { margin: -88px 10px 0; padding: 16px; gap: 10px; border-radius: 22px; }
  .pick > b { max-width: none; flex-basis: 100%; font-size: 26px; }
  .pick label { flex: 1; min-width: 0; }
  .pick select { min-width: 0; width: 100%; font-size: 24px; padding: 12px 30px 12px 12px; background-position: calc(100% - 16px) 52%, calc(100% - 9px) 52%; }
  .pick .seg { flex-basis: 100%; }
  .pick .seg label { flex: 1 1 auto; text-align: center; }
  .pick .seg span { padding: 11px 6px; font-size: 13.5px; }
  .pick .go { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; padding: 8px 20px; border-radius: 22px; }
  .facts > div { border-right: 0; margin: 0; padding: 14px 8px 14px 0; }
  .facts b { font-size: 34px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 164px; border-radius: 22px; padding: 16px; }
  .tile b { font-size: clamp(18px, 5.6vw, 24px); max-width: 100%; hyphens: auto; }
  .tile span { font-size: 13px; padding: 5px 10px; }
  .tile img, .tile.t-akb img, .tile.t-exp img { height: 88px; right: -4px; bottom: -4px; }
  .more a.svc { margin-left: 0; }
  .grid, .listing .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 20px; padding: 7px 7px 12px; }
  .card-ph { border-radius: 15px; }
  .card-tag { left: 13px; top: 13px; font-size: 11.5px; padding: 3px 8px; }
  .card-in { padding: 10px 5px 0; }
  .card-size { font-size: 27px; } .card-size small { font-size: 17px; }
  .card-name { font-size: 14.5px; } .card-name.solo { font-size: 14.5px; }
  .price { font-size: 26px; }
  .card-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  /* narrow cards: "В наличии больше 12 шт" wraps, so every card reserves two lines and the stock line starts at the same height */
  .card-in .stock { line-height: 1.3; min-height: calc(2.6em + 10px); align-items: flex-start; }
  .card-in .stock::before { margin-top: .23em; }
  .card-buy .btn { padding: 10px 8px; }
  .service, .find, .product, .cart-grid, .checkout, .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .service { border-radius: 26px; } .service .say { border-radius: 26px; padding: 28px 22px; }
  .service ul { padding: 8px; }
  .find .info { padding: 26px 22px; border-radius: 26px; }
  .map { border-radius: 26px; }
  .filters { position: static; padding: 12px; border-radius: 20px; }
  .filters-toggle { display: inline-flex; }
  .filters-body { display: none; padding-top: 14px; }
  .filters-body.open { display: block; }
  .filters-body.open + .filters-apply { display: flex; position: sticky; bottom: 12px; margin-top: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .nav .wrap { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .nav.at-end .wrap { -webkit-mask-image: none; mask-image: none; }
  .nav a { padding: 8px 13px; font-size: 14.5px; }
  .product { gap: 18px; } .product-media { border-radius: 26px; }
  .price-lg { font-size: 46px; }
  .cart-line { grid-template-columns: 68px 1fr auto; grid-template-areas: "img name x" "img qty sum"; }
  .cart-total, .checkout-side { position: static; }
  fieldset { padding: 16px 16px 18px; border-radius: 20px; }
  .ftr { border-radius: 26px 26px 0 0; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .ftr-grid > div:last-child { grid-column: 1 / -1; }
  .ftr-btns { max-width: none; }
  .book-panel-btns { width: 100%; }
  .book-panel-btns .btn { flex: 1 1 100%; }
  .ftr .big { font-size: 23px; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; }
  .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prose table { display: block; overflow-x: auto; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
  .toast { white-space: normal; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- самые узкие телефоны (320 px): шапка в одну строку ---------- */
@media (max-width: 380px) {
  .find dl { grid-template-columns: minmax(0, 1fr); }
  .find dt { margin-top: 6px; }
  /* logo, phone, MAX, cabinet and cart must stay on one row (360 px is a very common Android width) */
  .hdr-main { gap: 6px; }
  .tel-wrap { gap: 6px; }
  .acts { gap: 4px; }
  .logo img { height: 30px; width: auto; }
  .tel a { font-size: 16px; }
  .max-ico { width: 34px; height: 34px; border-radius: 10px; }
  .acts a { padding: 9px; }
}
@media (max-width: 340px) {
  .max-ico { display: none; }  /* MAX stays in the footer, the booking window and on the contacts page */
}

/* home headline: price chips under it (12.10.2026) */
.hero h1 { margin-top: 0; }
.hero h1 em { display: block; }
.hero-prices { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 720px; }
.hero-prices a { display: inline-flex; align-items: baseline; gap: 7px; background: #fff; border-radius: 999px; padding: 9px 14px; color: var(--ink); box-shadow: 0 2px 10px rgba(20,23,26,.06); }
.hero-prices a:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(20,23,26,.12); }
.hero-prices span { font-size: 14.5px; font-weight: 600; }
.hero-prices b { font: 800 20px/1 var(--display); color: var(--green); letter-spacing: .01em; }
@media (max-width: 600px) { .hero-prices a { padding: 8px 12px; } .hero-prices b { font-size: 18px; } .hero-prices span { font-size: 13px; } }
