/*
 * Хит Сезона 2026 — дизайн-система
 *
 * Перенесено из макета Figma Make (файл P9eKtH0DUzDwCZXpiAotYC, src/index.css).
 * Токены, типографика, сетки и брейкпоинты сохранены как в макете.
 * Добавлены только те классы, которых нет в макете, но требует Bitrix:
 * состояния корзины через AJAX и служебные обёртки.
 */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #101311;
  --muted: #69706b;
  --surface: #ffffff;
  --soft: #f2f4f1;
  --line: #dfe3df;
  --accent: #d9202f;
  --accent-deep: #b81421;
  --accent-soft: #f8eded;
  --accent-shadow: rgba(120, 12, 22, .18);
  --danger: #f04438;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 16px 48px rgba(16, 19, 17, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Manrope", "Montserrat", sans-serif; color: var(--ink); background: var(--surface); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-shell { min-height: 100vh; overflow: hidden; }

/* ---------- Верхняя полоса ---------- */

.announcement { min-height: 40px; padding: 8px max(24px, calc((100vw - 1400px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--surface); background: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.announcement > div { display: flex; gap: 24px; }
.announcement a { display: flex; align-items: center; gap: 7px; opacity: .86; }
.announcement a:hover { opacity: 1; }

/* ---------- Шапка ---------- */

.header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-main { max-width: 1400px; min-height: 82px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: auto auto minmax(220px, 1fr) auto auto; align-items: center; gap: 18px; }
/* Логотип: картинка с прозрачным фоном (перенесён со старого сайта).
   Высота фиксирована, ширина пропорциональна, чтобы не «прыгало» в шапке. */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: auto; height: 46px; }
.logo.light img { height: 52px; }
/* Резервный текстовый вариант, если картинки нет. */
.logo span { font-size: 24px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.logo i { margin-left: 4px; padding: 2px 6px; color: var(--surface); background: var(--accent); border-radius: 4px; font-size: .72em; font-style: normal; letter-spacing: -.04em; transform: skew(-8deg); }
.logo.light { color: var(--surface); }
.catalog-button, .cart-button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--radius-sm); color: var(--surface); background: var(--accent); font-weight: 700; transition: .2s ease; }
.catalog-button:hover, .cart-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.search-box { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.search-box:focus-within { border-color: var(--ink); background: var(--surface); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box button { padding: 3px; border: 0; background: transparent; }
.season-switch { padding: 3px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.season-switch button, .season-switch a { min-height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; transition: .2s ease; }
.season-switch .is-active { color: var(--surface); background: var(--accent); box-shadow: 0 3px 10px var(--accent-shadow); }
.header-actions { display: flex; gap: 4px; }
.header-actions button, .header-actions a { position: relative; width: 68px; padding: 5px 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; font-size: 10px; font-weight: 600; color: inherit; }
.header-actions b { position: absolute; top: 0; right: 12px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 20px; color: var(--surface); background: var(--accent); font-size: 10px; }
.mobile-menu-button { display: none; border: 0; background: transparent; color: inherit; }
.category-nav { max-width: 1400px; height: 48px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 700; }
.category-nav a:hover { opacity: .56; }
.category-nav .sale-link { margin-left: auto; color: var(--danger); }

/* ---------- Hero ---------- */

/* Hero оформлен в том же стиле, что и промо-блок: ограниченная ширина,
   боковые отступы и скруглённые углы (--radius-lg). Ширина через calc(),
   чтобы углы были видны и на экранах уже 1400px, а не только на широких. */
.hero { position: relative; width: calc(100% - 48px); max-width: 1352px; height: min(680px, calc(100vh - 170px)); min-height: 560px; margin: 24px auto 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero-overlay { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(8,10,8,.86) 0%, rgba(8,10,8,.48) 48%, rgba(8,10,8,.06) 76%); }
.hero-content { position: absolute; top: 50%; left: max(40px, calc((100% - 1320px) / 2)); max-width: 630px; color: var(--surface); transform: translateY(-47%); }
.eyebrow { display: block; margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(52px, 6vw, 94px); line-height: .96; letter-spacing: -.07em; }
.hero-content > p { max-width: 540px; margin: 28px 0 34px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.6; }
.primary-link { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; gap: 18px; border-radius: var(--radius-sm); color: var(--surface); background: var(--accent); font-size: 14px; font-weight: 800; }
.primary-link svg, .light-link svg, .section-heading > a svg { transition: transform .2s ease; }
.primary-link:hover svg, .light-link:hover svg, .section-heading > a:hover svg { transform: translateX(4px); }
.hero-counter { position: absolute; right: 38px; bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--surface); font-size: 11px; font-weight: 700; }
.hero-counter i { width: 64px; height: 2px; background: rgba(255,255,255,.35); }
.hero-counter i::after { content: ""; display: block; width: 33%; height: 100%; background: var(--accent); }

/* ---------- Секции ---------- */

.section { max-width: 1400px; margin: 0 auto; padding: 96px 24px; }
.section-heading { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .promo h2 { max-width: 780px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.06; letter-spacing: -.055em; }
.section-heading > a { padding-bottom: 4px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.category-section { max-width: 1500px; padding-top: 72px; padding-bottom: 82px; }
.catalog-title { margin-bottom: 28px; text-align: center; }
.catalog-title > span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.catalog-title h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; text-transform: uppercase; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card { min-height: 290px; padding: 20px 12px 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; border-radius: var(--radius-sm); background: var(--soft); transition: background .2s ease, color .2s ease, transform .2s ease; }
.category-illustration { width: 100%; height: 210px; color: var(--ink); transition: transform .25s ease; }
.category-card h3 { margin: 0; font-size: 11px; letter-spacing: .01em; text-align: center; text-transform: uppercase; }
.category-card:hover { color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.category-card:hover .category-illustration { transform: scale(1.025); }

/* ---------- Товары ---------- */

.products-section { padding-top: 44px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; aspect-ratio: 1 / .91; overflow: hidden; background: var(--soft); }
.product-open { width: 100%; height: 100%; padding: 0; display: block; border: 0; background: transparent; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-image { transform: scale(1.035); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 6px; color: var(--surface); background: var(--accent); font-size: 11px; font-weight: 800; }
.favorite-button { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); }
.favorite-button.is-active { color: var(--danger); }
.favorite-button.is-active svg { fill: currentColor; }
.product-copy { padding: 18px; }
.rating { margin-bottom: 10px; color: var(--ink); font-size: 11px; font-weight: 800; }
.rating span { color: var(--muted); font-weight: 500; }
.product-copy h3 { min-height: 48px; margin: 0 0 7px; font-size: 16px; line-height: 1.45; letter-spacing: -.025em; }
.product-title-button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.product-copy p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.price-row { min-height: 30px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price-row strong { font-size: 19px; }
.price-row s { color: var(--muted); font-size: 12px; }
.product-copy .cart-button { width: 100%; margin-top: 15px; }
.cart-button.is-added { color: var(--surface); background: var(--ink); }
.empty-state { padding: 70px 24px; text-align: center; border-radius: var(--radius-md); background: var(--soft); }
.empty-state h3 { margin: 0 0 8px; font-size: 28px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Промо ---------- */

.promo { position: relative; min-height: 560px; max-width: 1352px; padding: 0; overflow: hidden; border-radius: var(--radius-lg); color: var(--surface); }
.promo > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,12,9,.9), rgba(9,12,9,.5) 58%, rgba(9,12,9,.08)); }
.promo-copy { position: relative; z-index: 2; max-width: 620px; padding: 92px 70px; }
.promo-copy p { max-width: 530px; margin: 25px 0 36px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.light-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.6); font-size: 13px; font-weight: 700; }

/* ---------- Преимущества ---------- */

.benefits { max-width: 1400px; margin: 0 auto; padding: 80px 24px 96px; display: grid; grid-template-columns: repeat(3, 1fr); }
.benefits > div { padding: 12px 42px; display: flex; align-items: center; gap: 20px; border-right: 1px solid var(--line); }
.benefits > div:first-child { padding-left: 0; }
.benefits > div:last-child { border: 0; }
.benefits > div > span { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--surface); background: var(--accent); }
.benefits h3 { margin: 0 0 5px; font-size: 15px; }
.benefits p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---------- Каталог ---------- */

.catalog-page { max-width: 1400px; min-height: 80vh; margin: 0 auto; padding: 32px 24px 100px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.breadcrumbs button, .breadcrumbs a { padding: 0; border: 0; color: var(--muted); background: transparent; }
.breadcrumbs button:hover, .breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs svg { transform: scale(.7); }
.breadcrumbs b { color: var(--ink); font-weight: 600; }
.catalog-page-hero { min-height: 290px; margin-top: 24px; padding: 45px 60px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-radius: var(--radius-md); background: var(--soft); }
.catalog-page-hero > div { max-width: 700px; }
.catalog-page-hero .eyebrow { margin-bottom: 12px; }
.catalog-page-hero h1 { margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: 1; letter-spacing: -.065em; }
.catalog-page-hero p { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.catalog-page-hero .category-illustration { width: 320px; height: 220px; flex: 0 0 auto; color: var(--accent); opacity: .88; }
.section-tabs { margin: 22px 0 44px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs button, .section-tabs a { min-height: 42px; padding: 0 16px; flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; }
.section-tabs .is-active { border-color: var(--accent); color: var(--surface); background: var(--accent); }
.catalog-toolbar { min-height: 58px; margin-bottom: 24px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.catalog-toolbar > span { color: var(--muted); font-size: 12px; }
.catalog-toolbar > div { display: flex; gap: 5px; padding: 3px; border-radius: 9px; background: var(--soft); }
.catalog-toolbar button, .catalog-toolbar a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; }
.catalog-toolbar .is-active { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px rgba(16, 19, 17, .07); }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filter-title { min-height: 60px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.filter-title h3, .filter-group h3 { margin: 0; font-size: 13px; }
.filter-title button, .filter-title a { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 9px; }
.filter-group { padding: 18px 17px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: 0; }
.filter-group h3 { margin-bottom: 15px; }
.filter-check { width: 100%; margin-top: 10px; padding: 0; display: flex; align-items: center; gap: 9px; border: 0; color: var(--muted); background: transparent; font-size: 10px; text-align: left; }
.filter-check i { width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.filter-check.is-active i { border: 4px solid var(--accent); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-inputs span { padding: 10px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Карточка товара ---------- */

.product-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px 110px; }
.product-detail { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: 58px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: var(--soft); }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { position: relative; min-height: 600px; overflow: hidden; border-radius: var(--radius-md); background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main > span { position: absolute; top: 18px; left: 18px; padding: 8px 11px; border-radius: 6px; color: var(--surface); background: var(--accent); font-size: 11px; font-weight: 800; }
.product-info { padding-top: 8px; }
.product-meta { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.product-meta span:last-child { color: var(--ink); font-weight: 700; }
.product-info h1 { margin: 0; font-size: clamp(40px, 4vw, 62px); line-height: 1.04; letter-spacing: -.06em; }
.product-lead { margin: 20px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-price { padding: 22px 0; display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price strong { font-size: 30px; letter-spacing: -.04em; }
.detail-price s { color: var(--muted); font-size: 13px; }
.detail-price span { padding: 6px 8px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 9px; font-weight: 800; }
.option-block { padding: 24px 0; }
.option-block > div:first-child { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.option-block h3 { margin: 0; font-size: 13px; }
.option-block > div:first-child span { color: var(--muted); font-size: 10px; }
.option-row { display: flex; gap: 8px; }
.option-row button { min-width: 54px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 10px; font-weight: 700; }
.option-row button.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.detail-actions { display: grid; grid-template-columns: 1fr 52px; gap: 8px; }
.detail-cart { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--radius-sm); color: var(--surface); background: var(--accent); font-weight: 800; }
.detail-cart.is-added { background: var(--ink); }
.detail-favorite { display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); }
.detail-favorite.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.detail-favorite.is-active svg { fill: currentColor; }
.delivery-cards { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.delivery-cards > div { padding: 16px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.delivery-cards > div:last-child { border: 0; }
.delivery-cards svg { color: var(--accent); }
.delivery-cards span { display: flex; flex-direction: column; gap: 3px; }
.delivery-cards b { font-size: 11px; }
.delivery-cards small { color: var(--muted); font-size: 9px; }
.product-description { margin-top: 100px; padding: 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; border-radius: var(--radius-md); background: var(--soft); }
.product-description h2 { max-width: 520px; margin: 0; font-size: 42px; line-height: 1.1; letter-spacing: -.05em; }
.product-description p { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.spec-list > div { padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 11px; }
.spec-list span { color: var(--muted); }
.spec-list b { text-align: right; }
.related-section { padding-top: 100px; }
.related-section .section-heading { margin-bottom: 32px; }

/* ---------- Подвал ---------- */

footer { color: var(--surface); background: var(--ink); }
.footer-main { max-width: 1400px; margin: auto; padding: 76px 24px 62px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 70px; }
.footer-brand p { max-width: 310px; margin-top: 25px; color: rgba(255,255,255,.52); font-size: 13px; line-height: 1.7; }
.footer-main h3 { margin: 0 0 22px; color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; align-items: start; gap: 13px; }
.footer-main a { font-size: 13px; }
.footer-main a:hover { color: var(--accent); }
.footer-contact a:first-of-type { font-size: 18px; font-weight: 700; }
.footer-contact p { margin: -8px 0 6px; color: rgba(255,255,255,.48); font-size: 11px; }
.footer-bottom { max-width: 1400px; margin: auto; padding: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.42); font-size: 10px; }
.footer-bottom > div { display: flex; gap: 26px; }

/* ---------- Контакты ---------- */

.contacts-block { margin-top: 34px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.contactList { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contactList li { padding: 20px; display: flex; align-items: start; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contactList b { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contactList a, .contactList span { font-size: 14px; font-weight: 600; }
.contactList a:hover { color: var(--accent); }
.contact-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--surface); background: var(--accent); }
.contacts-map { min-width: 0; }

/* ---------- Мобильное меню ---------- */

.drawer-backdrop { position: fixed; z-index: 39; inset: 0; visibility: hidden; opacity: 0; background: rgba(0,0,0,.5); transition: .25s ease; }
.drawer-backdrop.is-open { visibility: visible; opacity: 1; }
.drawer { position: fixed; z-index: 40; top: 0; left: 0; width: min(420px, 90vw); height: 100vh; padding: 26px; overflow-y: auto; background: var(--surface); transform: translateX(-102%); transition: transform .3s ease; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { margin-bottom: 50px; display: flex; align-items: center; justify-content: space-between; }
.drawer-head button { border: 0; background: transparent; }
.drawer-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.drawer-link { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.drawer-contact { margin-top: 36px; padding: 20px; border-radius: var(--radius-sm); background: var(--soft); }
.drawer-contact p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.drawer-contact a { font-size: 18px; font-weight: 800; }

/* ---------- Адаптивность ---------- */

@media (max-width: 1100px) {
  .header-main { grid-template-columns: auto auto 1fr auto auto; gap: 10px; }
  .catalog-button { display: none; }
  .mobile-menu-button { display: block; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 270px; }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-page-hero .category-illustration { width: 240px; }
  .product-detail { gap: 28px; }
  .gallery-main { min-height: 520px; }
  .product-description { gap: 50px; }
}

@media (max-width: 760px) {
  .announcement { justify-content: center; text-align: center; }
  .announcement > div, .category-nav, .header-actions span { display: none; }
  .header-main { min-height: 68px; padding: 0 12px; grid-template-columns: auto 1fr auto auto; gap: 4px; }
  .header-main .logo { justify-self: center; }
  .search-box { position: absolute; top: 68px; left: 0; right: 0; height: 48px; border-width: 1px 0; border-radius: 0; z-index: 5; }
  .header-actions button, .header-actions a { width: 38px; }
  .header-actions > *:nth-child(-n+2) { display: none; }
  .season-switch { border: 0; background: transparent; }
  .season-switch button, .season-switch a { width: 34px; padding: 0; justify-content: center; }
  .season-switch span { display: none; }
  .hero { width: auto; height: 650px; margin: 35px 16px 0; min-height: 0; border-radius: var(--radius-md); }
  .hero > img { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,10,8,.85), rgba(8,10,8,.15) 85%); }
  .hero-content { top: auto; right: 22px; bottom: 44px; left: 22px; transform: none; }
  .hero h1 { font-size: 50px; }
  .hero-content > p { margin: 20px 0 27px; font-size: 14px; line-height: 1.55; }
  .hero-counter { display: none; }
  .section { padding: 68px 16px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > a { display: none; }
  .category-section { padding-top: 52px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-card { min-width: 0; min-height: 220px; padding: 12px 8px; }
  .category-illustration { height: 165px; }
  .products-section { padding-top: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-copy { padding: 12px; }
  .product-copy h3 { min-height: 62px; font-size: 13px; }
  .product-copy p { display: none; }
  .price-row { display: block; }
  .price-row strong { display: block; font-size: 16px; }
  .cart-button { padding: 0 8px; font-size: 12px; }
  .promo { min-height: 580px; margin: 35px 16px 0; border-radius: var(--radius-md); }
  .promo > img { object-position: 66% center; }
  .promo::after { background: linear-gradient(0deg, rgba(9,12,9,.92), rgba(9,12,9,.18)); }
  .promo-copy { position: absolute; bottom: 0; padding: 34px 26px; }
  .promo h2 { font-size: 37px; }
  .benefits { padding: 60px 16px; grid-template-columns: 1fr; }
  .benefits > div, .benefits > div:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-main { padding: 60px 20px; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { padding: 24px 20px; display: block; }
  .footer-bottom > div { margin-top: 12px; flex-direction: column; gap: 7px; }
  .catalog-page { padding: 24px 16px 70px; }
  .catalog-page-hero { min-height: 320px; padding: 34px 24px; position: relative; align-items: end; }
  .catalog-page-hero > div { position: relative; z-index: 2; }
  .catalog-page-hero h1 { font-size: 48px; }
  .catalog-page-hero p { max-width: 85%; font-size: 12px; }
  .catalog-page-hero .category-illustration { position: absolute; right: -42px; top: 4px; width: 220px; height: 170px; opacity: .17; }
  .section-tabs { margin-bottom: 28px; }
  .catalog-toolbar { display: block; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .gallery-thumbs button { width: 64px; }
  .gallery-main { min-height: 320px; }
  .product-description { margin-top: 60px; padding: 26px; grid-template-columns: 1fr; gap: 30px; }
  .product-description h2 { font-size: 30px; }
  .related-section { padding-top: 60px; }
  .contacts-block { grid-template-columns: 1fr; }
  .store-map { height: 320px !important; }
}

/* Печать прайса и карточки товара */
@media print {
  .announcement, .header, footer, .drawer, .drawer-backdrop, .favorite-button, .cart-button { display: none !important; }
}
