/* ============ Протектор — дизайн-система ============ */
:root {
  --ink: #0d1117;
  --ink-2: #161c26;
  --ink-3: #232b38;
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e4e7ec;
  --muted: #667085;
  --text: #101828;
  --accent: #ffc400;
  --accent-2: #ffd84d;
  --accent-ink: #111111;
  --red: #e5372b;
  --green: #12a150;
  --blue: #2e6bff;
  --winter: #3b82f6;
  --summer: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(255, 196, 0, .35); }
.btn-accent:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fbe5b; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Верхняя плашка и шапка ---------- */
.topbar { background: var(--ink); color: #c9d1dc; font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; height: 36px; }
.topbar .tb-promo { color: var(--accent); font-weight: 700; }
.topbar .tb-right { margin-left: auto; display: flex; gap: 20px; }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 26px; height: 26px; }
.logo small { display: block; font-family: var(--font); font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.active { background: var(--bg); }
.search { flex: 1; position: relative; max-width: 420px; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 44px 0 16px; outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--ink); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.h-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.h-phone { display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; font-size: 15px; }
.h-phone small { font-weight: 500; font-size: 12px; color: var(--muted); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.icon-btn .badge:empty { display: none; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a3446 0%, transparent 60%), var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 720px; height: 720px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0 6deg, transparent 6deg 12deg); mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 196, 0, .12); color: var(--accent); border: 1px solid rgba(255, 196, 0, .3); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { color: #b8c2d0; font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 26px; color: #fff; }
.hero-stats span { color: #93a0b2; font-size: 13px; }

/* ---------- Подбор ---------- */
.picker { background: #fff; color: var(--text); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); }
.picker-tabs { display: flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 14px; margin-bottom: 18px; }
.picker-tabs button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--muted); }
.picker-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.picker h3 { font-size: 18px; margin-bottom: 14px; }
.hero .wrap > *, .catalog > *, .product > * { min-width: 0; }
.picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.select, .input { height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-weight: 700; font-size: 16px; outline: none; width: 100%; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select:focus, .input:focus { border-color: var(--ink); }
.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip svg { width: 18px; height: 18px; }
.picker-foot { display: flex; align-items: center; gap: 14px; }
.picker-foot .btn { flex: 1; height: 56px; font-size: 16px; }
.picker-count { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.picker-count b { color: var(--text); }
.quick-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.quick-sizes span { font-size: 12px; color: var(--muted); width: 100%; font-weight: 600; }
.quick-sizes a { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.quick-sizes a:hover { background: var(--accent); }

/* ---------- Плашка преимуществ ---------- */
.usp { background: #fff; border-bottom: 1px solid var(--line); }
.usp .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.usp-item { display: flex; gap: 14px; align-items: center; padding: 22px 18px; border-right: 1px solid var(--line); }
.usp-item:last-child { border-right: 0; }
.usp-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff7d6; display: grid; place-items: center; flex: none; }
.usp-ico svg { width: 24px; height: 24px; }
.usp-item b { display: block; font-size: 15px; }
.usp-item span { font-size: 13px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.link-arrow:hover { color: var(--blue); }

.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; position: relative; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat b { font-size: 16px; font-weight: 800; }
.cat span { font-size: 13px; color: var(--muted); }
.cat .cat-ico { width: 64px; height: 64px; margin-top: auto; align-self: flex-end; opacity: .9; }
.cat.big { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.cat.big span { color: #a6b0bf; }
.cat.big .cat-ico { width: 110px; height: 110px; }

/* ---------- Карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 18px; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; background: var(--bg); }
.tag svg { width: 14px; height: 14px; }
.tag-sale { background: var(--red); color: #fff; }
.tag-hit { background: var(--accent); color: var(--accent-ink); }
.tag-winter { background: #e8f0ff; color: #1d4ed8; }
.tag-summer { background: #fff4dc; color: #b45309; }
.tag-all { background: #e9f7ef; color: #0f7a3d; }
.tag-spike { background: var(--ink); color: #fff; }
.card-body { padding: 4px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card-brand { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-size { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-stock { font-size: 12px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.card-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-stock.order { color: var(--muted); }
.card-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 600; }
.card-set { font-size: 12.5px; color: var(--muted); }
.card-set b { color: var(--text); }
.card-credit { font-size: 12px; font-weight: 700; color: #b45309; background: #fff7d6; border-radius: 6px; padding: 3px 7px; align-self: flex-start; margin-top: 6px; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.card-actions .btn { height: 44px; }
.card-actions .btn-1c { width: 44px; padding: 0; }
.card.in-cart .btn-cart { background: var(--green); color: #fff; box-shadow: none; }

/* ---------- Бренды ---------- */
.brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: border-color .15s, transform .15s; }
.brand:hover { border-color: var(--ink); transform: translateY(-2px); }
.brand b { font-family: var(--font-head); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.brand span { font-size: 12px; color: var(--muted); }

/* ---------- Как заказать / доверие ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--font-head); font-weight: 800; font-size: 44px; color: var(--accent); line-height: 1; display: block; margin-bottom: 14px; }
.step b { display: block; font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.promo { background: var(--accent); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.promo h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--accent-ink); }
.promo p { font-size: 17px; margin: 12px 0 0; color: #3b3200; }
.promo-form { background: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.promo-form small { color: var(--muted); font-size: 12px; text-align: center; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Футер ---------- */
.footer { background: var(--ink); color: #a6b0bf; padding: 56px 0 28px; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo-mark { background: var(--accent); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--ink-3); padding-top: 20px; margin-top: 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Каталог ---------- */
.page-head { padding: 28px 0 18px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
.page-head .count { color: var(--muted); font-weight: 600; margin-top: 8px; }
.type-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 18px; scrollbar-width: none; }
.type-tabs::-webkit-scrollbar { display: none; }
.type-tabs a { flex: none; height: 40px; padding: 0 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.type-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-tabs a span { font-weight: 600; opacity: .6; font-size: 12px; }
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 6px 18px 18px; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; }
.f-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-group:last-of-type { border-bottom: 0; }
.f-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.f-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.f-row .select { height: 42px; font-size: 14px; padding: 0 26px 0 10px; background-position: right 9px center; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips .chip { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.f-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.f-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.f-check span { margin-left: auto; color: var(--muted); font-size: 12px; }
.f-brands { max-height: 260px; overflow-y: auto; scrollbar-width: thin; margin-top: 8px; }
.f-search { height: 38px; width: 100%; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; font-size: 14px; outline: none; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-price input { height: 42px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; font-size: 14px; font-weight: 700; width: 100%; outline: none; }
.f-reset { width: 100%; margin-top: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .select { width: auto; height: 42px; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.active-filters button { height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.btn-filters { display: none; }
.empty { background: #fff; border-radius: var(--radius); padding: 48px 24px; text-align: center; border: 1px solid var(--line); }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.more-wrap { text-align: center; margin-top: 24px; }
.more-wrap .muted { font-size: 13px; margin-top: 8px; }
.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 380px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding-bottom: 40px; align-items: start; }
.gallery { background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 24px; position: sticky; top: 92px; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; }
.thumbs button { width: 72px; height: 72px; flex: none; border-radius: 12px; border: 2px solid var(--line); background: #fff; padding: 6px; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; margin: 10px 0 6px; }
.p-sub { color: var(--muted); font-weight: 600; font-size: 16px; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.p-tags .tag { height: 30px; font-size: 13px; padding: 0 10px; }
.buybox { background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
.buybox .price { font-size: 34px; }
.bb-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bb-unit { color: var(--muted); font-weight: 600; }
.bb-credit { display: flex; align-items: center; gap: 10px; background: #fff7d6; border-radius: 12px; padding: 12px 14px; margin: 16px 0; font-size: 14px; }
.bb-credit b { font-size: 16px; }
.bb-credit svg { width: 28px; height: 28px; flex: none; color: #b45309; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 52px; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; font-size: 22px; font-weight: 600; }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 800; font-size: 17px; outline: none; background: transparent; }
.qty-total { font-size: 14px; color: var(--muted); }
.qty-total b { color: var(--text); font-size: 18px; font-family: var(--font-head); }
.bb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bb-actions .btn { height: 56px; font-size: 16px; }
.bb-perks { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.bb-perks div { display: flex; gap: 10px; align-items: center; }
.bb-perks svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.specs { background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 8px 24px; margin-top: 20px; }
.specs h3 { font-size: 18px; padding: 16px 0 6px; }
.specs dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.specs dt, .specs dd { padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 700; text-align: right; }
.specs dl > :nth-last-child(-n+2) { border-bottom: 0; }
.sticky-buy { display: none; }

/* ---------- Корзина / модалки ---------- */
.overlay { position: fixed; inset: 0; background: rgba(13, 17, 23, .55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--bg); font-size: 22px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; height: 72px; object-fit: contain; }
.ci-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.ci-size { font-size: 12.5px; color: var(--muted); }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci .qty { height: 36px; border-radius: 9px; }
.ci .qty button { width: 32px; font-size: 18px; }
.ci .qty input { width: 32px; font-size: 14px; }
.ci-del { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; margin-top: 6px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; }
.sum-row.total { font-size: 18px; font-weight: 800; }
.sum-row.total b { font-family: var(--font-head); }
.perk-note { font-size: 13px; background: #e9f7ef; color: #0f7a3d; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(480px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; border-radius: 22px; z-index: 110; padding: 26px; opacity: 0; pointer-events: none; transition: all .2s; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h3 { font-size: 22px; margin-bottom: 6px; padding-right: 44px; }
.modal p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.modal form { display: grid; gap: 12px; }
.modal .x { position: absolute; right: 16px; top: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.seg input { accent-color: var(--ink); }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; z-index: 120; opacity: 0; transition: all .25s; pointer-events: none; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--accent); }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; z-index: 60; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); animation: pulse 2.4s infinite; }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat.big { grid-column: span 1; }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 40px; }
  .usp .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp-item:nth-child(2) { border-right: 0; }
  .usp-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 92%); max-height: none; top: 0; border-radius: 0; z-index: 100; transform: translateX(-100%); transition: transform .28s; }
  .filters.on { transform: none; }
  .btn-filters { display: inline-flex; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo { grid-template-columns: 1fr; padding: 28px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .h-phone { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .topbar .tb-hide { display: none; }
  .header .wrap { height: 62px; gap: 10px; }
  .search { display: none; }
  .search.mobile { display: block; max-width: none; padding: 0 16px 10px; }
  .logo { font-size: 17px; }
  .logo small { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 2px 12px 12px; }
  .card-img { padding: 12px; }
  .price { font-size: 17px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .btn-1c { display: none; }
  .card-title { font-size: 14px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { min-height: 150px; padding: 16px; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picker { padding: 18px; border-radius: 18px; }
  .picker-grid { gap: 8px; }
  .select, .input { font-size: 15px; height: 48px; padding: 0 10px; }
  .select { padding-right: 28px; background-position: right 10px center; }
  .hero-lead { font-size: 16px; }
  .hero-stats { gap: 16px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 12px; }
  .seasons .chip { padding: 0 6px; font-size: 12.5px; gap: 4px; }
  .seasons .chip svg { width: 15px; height: 15px; }
  .topbar .tb-promo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topbar .wrap { gap: 12px; }
  .usp-item { padding: 16px 10px; gap: 10px; }
  .usp-ico { width: 38px; height: 38px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .bb-actions { grid-template-columns: 1fr; }
  .buybox .price { font-size: 28px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; z-index: 70; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .sticky-buy .price { font-size: 18px; }
  .sticky-buy .btn { flex: 1; }
  .has-sticky .wa-float { bottom: 84px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* ===================== v2: фото, категории, рейтинг, Telegram ===================== */
/* Единый «студийный» фон под фото: белые подложки разных магазинов сливаются с ним */
.card-img { background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f1f3f6 70%); margin: 8px 8px 0; border-radius: 12px; }
.card-img img { mix-blend-mode: multiply; filter: contrast(1.03); }
.gallery-main { background: radial-gradient(circle at 50% 45%, #fff 0%, #f1f3f6 72%); border-radius: 16px; }
.gallery-main img, .thumbs img, .ci img { mix-blend-mode: multiply; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.card-meta .card-stock { margin: 0; }
.stars { font-size: 12.5px; font-weight: 800; color: #b45309; display: inline-flex; gap: 3px; align-items: center; }
.stars span { color: var(--muted); font-weight: 600; }
.card-price .per { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-set .credit { color: #b45309; font-weight: 700; }
.nav-tg { display: inline-flex !important; align-items: center; gap: 6px; color: #229ed9; }
.nav-tg svg { width: 16px; height: 16px; }

/* Плитки категорий с фото */
.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat { min-height: 210px; padding: 22px; background: linear-gradient(160deg, #fff 0%, #f3f5f8 100%); }
.cat-photo { position: absolute; right: -18px; bottom: -22px; width: 58%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.cat:hover .cat-photo { transform: scale(1.07) rotate(-4deg); }
.cat b, .cat span { position: relative; z-index: 1; max-width: 62%; }
.cat .cat-go { margin-top: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 18px; position: relative; z-index: 1; transition: background .2s; }
.cat:hover .cat-go { background: var(--accent); color: var(--ink); }
.cat.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, #ffd84d 0%, #ffc400 60%, #f5b400 100%); color: var(--ink); border-color: transparent; min-height: 440px; }
.cat.big b { font-size: 28px; font-family: var(--font-head); line-height: 1.1; max-width: 60%; }
.cat.big span { color: #4a3d00; font-size: 15px; }
.cat.big .cat-photo { width: 78%; right: -40px; bottom: -40px; }
.cat.big .cat-go { width: 52px; height: 52px; font-size: 22px; }
.cat.big:hover .cat-go { background: #fff; }
.cat.winter { background: linear-gradient(160deg, #eef4ff 0%, #dde9ff 100%); }

/* Telegram-блок */
.tg-block { background: linear-gradient(120deg, #1c8adb 0%, #2aabee 60%, #47c1ff 100%); border-radius: 24px; padding: 36px 40px; color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.tg-block::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tg-ico { width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.tg-ico svg { width: 46px; height: 46px; }
.tg-block h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.tg-block p { margin: 8px 0 0; opacity: .92; font-size: 15px; }
.tg-block ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.tg-block li::before { content: '✓ '; }
.btn-tg { background: #fff; color: #1c8adb; position: relative; z-index: 1; height: 56px; padding: 0 28px; font-size: 16px; }
.btn-tg:hover { background: #eaf6ff; }
.btn-tg svg { width: 22px; height: 22px; }

@media (max-width: 1180px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cat.big { grid-row: span 1; min-height: 260px; } }
@media (max-width: 980px) { .tg-block { grid-template-columns: 1fr; padding: 28px; gap: 18px; } .tg-ico { width: 64px; height: 64px; } }
@media (max-width: 680px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { min-height: 170px; padding: 16px; }
  .cat b { font-size: 15px; max-width: 70%; }
  .cat span { font-size: 12px; max-width: 70%; }
  .cat .cat-go { width: 32px; height: 32px; font-size: 15px; }
  .cat.big { grid-column: span 2; min-height: 220px; }
  .cat.big b { font-size: 22px; }
  .cat.big .cat-photo { width: 62%; right: -24px; bottom: -28px; }
  .card-set .credit { display: block; }
}
.btn-1c svg { color: #25d366; } .btn-1c:hover { border-color: #25d366; background: #effcf3; }
.topbar .wrap > *, .topbar a { white-space: nowrap; }
@media (max-width: 1180px) { .topbar .tb-hide { display: none; } }
.cat.big span { max-width: 48%; }
.card-set .credit { display: block; margin-top: 2px; }
@media (max-width: 680px) { .topbar .tb-right a:last-child { display: none; } }

/* v3: звёзды рейтинга */
.stars i { font-style: normal; letter-spacing: -1px; color: #f5a400; }
.stars i.off { color: #d0d5dd; }
.stars span { margin-left: 3px; }
.promo-form .btn-wa svg { margin-right: 8px; }

/* ===================== v4: мобильная шапка ===================== */
.icon-btn.ib-wa { background: #25d366; border-color: #25d366; color: #fff; }
.icon-btn.ib-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.icon-btn.ib-wa svg, .icon-btn.ib-tg svg { width: 22px; height: 22px; }
.search.mobile { background: #fff; border-bottom: 1px solid var(--line); }
@media (max-width: 680px) {
  .topbar { display: none; }                 /* на телефоне промо-полоса не читается — убрана, акции есть на главной */
  .wa-float { display: none; }               /* WhatsApp уже в шапке, плавающая кнопка перекрывала карточки */
  .h-actions { gap: 8px; }
  .icon-btn { width: 42px; height: 42px; }
  .search.mobile { padding: 10px 16px; }
}

/* ===================== v4: удобство на телефоне ===================== */
/* Значки на фото — в строку, а не столбиком */
.card-badges { flex-direction: row; flex-wrap: wrap; right: 12px; }
/* Кнопки фильтров всегда под рукой: внизу панели */
.f-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sticky-1c { flex: 0 0 52px !important; padding: 0; }
.sticky-1c svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  /* iPhone увеличивает страницу при вводе в поле со шрифтом меньше 16px — фиксируем 16px */
  input, select, textarea, .input, .select, .search input, .f-search { font-size: 16px !important; }
  .f-foot { position: sticky; bottom: -18px; margin: 12px -18px -18px; padding: 12px 18px 18px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(13, 17, 23, .06); z-index: 2; }
  .f-foot .f-reset { order: 2; }
}
@media (max-width: 680px) {
  .card-badges { left: 8px; top: 8px; right: 8px; gap: 4px; }
  .card-badges .tag { height: 21px; padding: 0 6px; font-size: 10.5px; border-radius: 6px; gap: 3px; }
  .card-badges .tag svg { width: 11px; height: 11px; }
  .brand { padding: 14px 6px; }
  .brand b { font-family: var(--font); font-weight: 800; font-size: 14px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .brand span { font-size: 12px; }
  .quick-sizes a { padding: 9px 10px; font-size: 13.5px; }
  .card-price { gap: 2px 6px; }
  .card-set { font-size: 12.5px; }
  .stars { font-size: 12px; }
}
.f-lbl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f-lbl span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
/* мобильный поиск: лупа внутри поля, по центру (у блока есть внутренние отступы 10px/16px) */
@media (max-width: 680px) {
  .search.mobile button { right: 20px; top: 14px; }
}

/* ===================== v5: скидки к ценам рынка ===================== */
.hero-lead .hl, .hero-stats b.hl { color: var(--accent); }
.deal-strip { margin-top: 12px; display: block; max-width: 720px; line-height: 1.5; background: #fff3cd; border: 1px solid #ffe08a; color: #6b4e00; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.deal-strip b { color: #b42318; }
.deal-strip a { color: #0d1117; text-decoration: underline; font-weight: 700; }
@media (max-width: 680px) { .deal-strip { font-size: 13px; padding: 9px 12px; } }
