
:root {
  color-scheme: light;
  --ink: #17202d;
  --muted: #687386;
  --line: #e7eaf0;
  --paper: #fff;
  --soft: #f5f7fa;
  --accent: #ff6b35;
  /* Тёмный оранжевый для текста и кнопок: контраст с белым 5.2:1 (WCAG AA). */
  --accent-dark: #c2410c;
  --accent-hover: #9a3412;
  /* Золото логотипа: тёмный край, основной тон и блик. Только для текста на тёмном фоне. */
  --gold-deep: #d2a440;
  --gold: #efd45f;
  --gold-light: #f6e89a;
  --card-accent: #c2410c;
  --card-accent-soft: #fff0eb;
  --card-accent-strong: #9a3412;
  --card-text: #1a1f2b;
  --card-muted: #5f6b7a;
  --card-border: #e6e9ee; 
  /* У DM Sans нет кириллицы: русские буквы берутся из Manrope. */
  font-family: "DM Sans", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 107, 53, .55); outline-offset: 3px; }

.site-header { height: 78px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .main-nav, .brand, .cart-link, .header-actions { display: flex; align-items: center; }
.header-inner { height: 100%; justify-content: space-between; gap: 30px; }
.brand { gap: 10px; font: 800 20px "Manrope", sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); font-size: 19px; }
.brand-logo { display: block; width: 42px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.brand-accent { color: var(--accent); }
.main-nav { gap: 30px; color: #5c6675; font-size: 14px; }
.main-nav a:hover, .text-link:hover { color: var(--accent-dark); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.cart-link { gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border: 1.5px solid var(--accent); border-radius: 99px; color: var(--ink); font-size: 14px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.cart-link:hover { background: #fff4ef; box-shadow: 0 2px 10px rgba(255, 107, 53, .18); }
.cart-link:focus-visible { outline: 3px solid rgba(255, 107, 53, .35); outline-offset: 2px; }
.cart-icon { display: grid; place-items: center; color: var(--accent); }
.cart-count { display: grid; min-width: 24px; height: 24px; padding: 0 7px; place-items: center; border-radius: 99px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.header-actions { flex: 0 0 auto; gap: 14px; }
.header-language-picker { position: relative; display: flex; align-items: center; gap: 6px; }
.language-flag { display: block; width: 24px; height: 16px; border: 1px solid rgba(23, 32, 45, .12); border-radius: 3px; object-fit: cover; }
.header-language-picker::after { position: absolute; top: 50%; right: 9px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.header-language-picker select { min-height: 38px; padding: 0 27px 0 10px; appearance: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: linear-gradient(180deg, #fff, #f8f9fb); box-shadow: 0 2px 6px rgba(24, 35, 51, .05); cursor: pointer; font: 700 12px "DM Sans", sans-serif; transition: border-color .2s, box-shadow .2s; }
.header-language-picker select:hover, .header-language-picker select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }

.hero { position: relative; overflow: visible; padding: 94px 0 72px; color: #fff; background: #141d2a; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.hero-eyebrow { color: #ff9873; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
.hero h1 { margin: 17px 0 13px; font-size: clamp(42px, 6vw, 66px); line-height: 1.08; letter-spacing: -2.7px; }
.hero-content > p { margin-bottom: 28px; color: #b6c0ce; font-size: 17px; }
.hero-decoration { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; color: rgba(255,255,255,.055); font: 800 clamp(56px, 20vw, 360px) "Manrope", sans-serif; letter-spacing: clamp(-10px, -1vw, -3px); white-space: nowrap; pointer-events: none; }
.hero-decoration-track { display: flex; width: max-content; animation: hero-marquee 30s linear infinite; will-change: transform; }
.hero-decoration-group { display: flex; flex: 0 0 auto; }
.hero-decoration-group > span { flex: 0 0 100vw; text-align: center; }
@keyframes hero-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.search-container { position: relative; z-index: 5; width: min(100%, 680px); }
.search-form { display: flex; width: 100%; max-width: 680px; padding: 6px; border-radius: 12px; background: #fff; }
.search-form input { min-width: 0; flex: 1; padding: 0 16px; border: 0; outline: 0; color: var(--ink); }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(255, 107, 53, .28); }
.search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 18px 48px rgba(10, 20, 35, .2); }
.search-suggestions[hidden], .suggestions-status[hidden] { display: none; }
.suggestion-option { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 7px 9px; border-radius: 8px; }
.suggestion-option:hover, .suggestion-option.is-active { background: var(--soft); }
.suggestion-image { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 7px; object-fit: cover; background: var(--soft); }
.suggestion-image-placeholder { color: #a4afbd; font: 800 20px "Manrope", sans-serif; }
.suggestion-details { display: grid; min-width: 0; gap: 5px; }
.suggestion-name { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-meta { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-price { padding-left: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.suggestions-status { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.suggestions-all { display: block; margin-top: 5px; padding: 12px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 12px; font-weight: 700; text-align: center; }
.suggestions-all:hover { background: var(--soft); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 19px; border: 0; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent-dark); }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-dark { min-height: 38px; padding: 0 13px; color: #fff; background: var(--ink); }
.button-dark:hover { background: #303d50; }
.button.is-added, .button.is-added:hover:not(:disabled) { color: #fff; background: #25834a; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; color: #c4ccd7; font-size: 12px; }

.section { padding-top: 76px; padding-bottom: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .page-heading h1, .cart-page h1 { margin: 7px 0 0; font-size: 34px; letter-spacing: -1.2px; }
.text-link { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(24, 35, 51, .08); }
.product-image { display: block; height: 230px; overflow: hidden; background: #f4f6f8; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.detail-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.detail-image .product-placeholder { min-height: 360px; font-size: 34px; }
.product-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #bdc5d0; background: linear-gradient(145deg, #f3f5f8, #e9edf2); font: 800 26px "Manrope", sans-serif; letter-spacing: 3px; }
.product-card-content { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.product-card .eyebrow { font-size: 11px; }
.product-card h3 { min-height: 44px; margin: 8px 0 5px; font-size: 16px; line-height: 1.4; }
.product-card h3 a:hover { color: var(--accent-dark); }
.product-description { min-height: 42px; margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card-bottom .button { padding-right: 10px; padding-left: 10px; white-space: nowrap; }
.product-card-bottom .price { color: var(--accent-dark); font: 700 21px "Manrope", sans-serif; letter-spacing: -.5px; white-space: nowrap; }

.home-brands-section { padding: 18px 0 72px; }
.home-brands-section .section-heading { align-items: end; margin-bottom: 26px; }
.home-brands-section .section-heading h2 { margin: 7px 0 0; font-size: 30px; }
.home-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.home-brand-card { display: grid; min-width: 0; justify-items: center; gap: 11px; padding: 22px 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff 55%, var(--soft)); text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-brand-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 53, .55); box-shadow: 0 12px 26px rgba(24, 35, 51, .09); }
.home-brand-icon { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #445064; background: #fff; box-shadow: 0 4px 12px rgba(24, 35, 51, .06); font: 800 15px "Manrope", sans-serif; }
.home-brand-icon img { display: block; width: 44px; height: 44px; object-fit: contain; }
.home-brand-name { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; line-height: 1.3; }
.home-brand-count { display: inline-flex; min-width: 36px; justify-content: center; padding: 3px 10px; border-radius: 99px; color: var(--accent-dark); background: #fff1eb; font: 700 11px "Manrope", sans-serif; transition: background .2s, color .2s; }
.home-brand-card:hover .home-brand-count { color: #fff; background: var(--accent-dark); }

.benefit-band { padding: 45px 0; background: var(--soft); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.benefit-icon { color: var(--accent-dark); font: 800 13px "Manrope", sans-serif; }
.benefit-grid h3 { margin: 11px 0 6px; font-size: 16px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.page-heading { padding: 58px 0 42px; background: var(--soft); }
.page-heading h1 { margin: 8px 0; }
.page-heading p { color: var(--muted); }
.page-heading .search-form { border: 1px solid var(--line); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.catalog-layout { display: grid; grid-template-columns: 210px 1fr; gap: 32px; }
.filter-panel { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-panel h2 { margin-bottom: 14px; font-size: 16px; }
.brand-filter { display: grid; max-height: 62vh; gap: 3px; overflow-y: auto; overscroll-behavior: contain; }
.brand-filter-link { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--muted); font-size: 13px; }
.brand-filter-link:hover, .brand-filter-link.is-active { color: var(--accent-dark); background: var(--soft); }
.brand-filter-link.is-active { font-weight: 700; }
.brand-filter-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #445064; background: #fff; font: 800 10px "Manrope", sans-serif; letter-spacing: -.3px; }
.brand-filter-icon img { display: block; width: 20px; height: 20px; object-fit: contain; }
.brand-filter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-filter-count { margin-left: auto; color: #929baa; font-size: 11px; }
.brand-filter-empty { margin: 0; padding: 8px 0; color: var(--muted); font-size: 13px; }
.catalog-filters { display: grid; gap: 9px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.catalog-filters label { color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-filters select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.catalog-results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-count { color: var(--muted); font-size: 13px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.pagination a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-weight: 700; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.empty-state { padding: 48px 24px; border: 1px dashed #cfd5df; border-radius: 12px; text-align: center; }
.empty-state h2 { margin-bottom: 9px; font-size: 21px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.toast-region { position: fixed; right: max(16px, calc((100vw - 1160px) / 2)); bottom: 24px; z-index: 100; display: grid; width: min(420px, calc(100vw - 32px)); gap: 10px; pointer-events: none; }
.toast-message { margin: 0; padding: 14px 18px; border: 1px solid #c9ead3; border-radius: 10px; color: #23643a; background: #f0fbf3; box-shadow: 0 12px 32px rgba(24, 35, 51, .16); font-size: 14px; font-weight: 600; opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }
.toast-message.flash-error { border-color: #f1c7c7; color: #9c2f2f; background: #fff3f3; }
.toast-message.flash-info { border-color: #cbd9ee; color: #35577f; background: #f1f6fc; }
.toast-message.is-dismissing { opacity: 0; transform: translateY(-8px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--accent-dark); }
/* Колонка фото — по ширине вертикального фото (2:3), которое целиком помещается на экран. */
.product-detail { display: grid; grid-template-columns: min(46%, 520px, max(260px, calc((100vh - 230px) * 2 / 3))) minmax(0, 1fr); gap: 54px; align-items: start; }
.detail-image { overflow: hidden; height: auto; border-radius: 14px; background: var(--soft); }
.detail-info h1 { margin: 11px 0 15px; font-size: 38px; letter-spacing: -1.4px; }
.detail-info > p { max-width: 460px; color: var(--muted); line-height: 1.7; }
.detail-price { display: block; margin: 25px 0 13px; font: 800 29px "Manrope", sans-serif; }
.detail-price-block { margin: 25px 0 13px; }
.detail-price-block .detail-price { margin: 0; }
.stock-status { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stock-status span { width: 8px; height: 8px; border-radius: 50%; background: #37ad69; }
.product-add-form { display: grid; justify-items: start; gap: 12px; }
.trim-color-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.trim-color-picker legend, .product-quantity-label { margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.trim-color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.trim-color-option { position: relative; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.trim-color-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.trim-color-option:focus-within { outline: 3px solid rgba(255, 107, 53, .35); outline-offset: 3px; border-radius: 5px; }
.trim-color-swatch { display: block; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: var(--trim-color); box-shadow: 0 0 0 1px #cbd1da; }
.trim-color-option input:checked + .trim-color-swatch { box-shadow: 0 0 0 2px var(--accent); }
.trim-color-name, .trim-color-unavailable { color: var(--muted); font-size: 11px; }
.trim-color-option.is-unavailable { cursor: not-allowed; }
.trim-color-option.is-unavailable .trim-color-swatch { position: relative; background: #c7cbd1; box-shadow: 0 0 0 1px #aeb4bd; }
.trim-color-option.is-unavailable .trim-color-swatch::after { position: absolute; top: 12px; left: 2px; width: 20px; border-top: 2px solid #858b94; content: ""; transform: rotate(-45deg); }
.trim-color-option.is-unavailable .trim-color-name, .trim-color-unavailable { color: #8a9099; }
.trim-color-unavailable { font-size: 11px; }
.product-quantity-label { margin: 0; }
.product-quantity-control { display: flex; align-items: center; }
.product-quantity-control .quantity-step, .product-quantity-control input { height: 42px; }
.product-quantity-control input { width: 54px; padding: 0 4px; border: 1px solid var(--line); border-right: 0; border-left: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; text-align: center; }
.product-quantity-control input::-webkit-inner-spin-button, .product-quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.product-quantity-control .quantity-step:first-child { border-radius: 7px 0 0 7px; }
.product-quantity-control .quantity-step:last-child { border-radius: 0 7px 7px 0; }
.product-add-form .button { margin-top: 4px; }
.cart-trim-color { color: var(--ink) !important; font-weight: 600 !important; }
.dashboard-description { width: 100%; margin-top: 32px; }
.description-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dashboard-description > .description-heading h2 { margin: 0; font-size: 22px; }
.description-language-content { padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 14px; line-height: 1.75; }
.description-language-content[hidden] { display: none; }
.description-language-content p:last-child, .description-language-content ol:last-child { margin-bottom: 0; }
.description-language-content h3 { margin: 24px 0 10px; color: var(--ink); font-size: 17px; }
.description-language-content ul, .description-language-content ol { display: grid; gap: 8px; padding-left: 22px; }
/* Страница товара: характеристики, «нет в наличии», похожие товары */
.detail-info > p.product-intro { max-width: 520px; }
.stock-status.is-out { color: var(--muted); }
.stock-status.is-out span { background: #b9c0cc; }
.detail-info > p.out-of-stock-note { margin-top: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 13px; }
.product-specs { width: 100%; margin-top: 28px; }
.product-specs h2 { margin: 0 0 12px; font-size: 22px; }
.product-specs dl { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.product-specs dl > div { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.product-specs dl > div:last-child { border-bottom: 0; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.product-specs dd a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.related-products { padding-top: 0; }

/* Товар: характеристики и описание под фото, вопрос в WhatsApp, кнопка покупки внизу экрана на телефоне. */
.product-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.product-more.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.product-more .product-specs, .product-more .dashboard-description { margin-top: 0; }
.product-more-side, .product-more-main { display: grid; gap: 32px; min-width: 0; }
.install-steps h2 { margin: 0 0 12px; font-size: 22px; }
.install-steps ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; counter-increment: install-step; }
.install-steps li::before { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--accent-dark); background: #fff1eb; content: counter(install-step); font: 800 14px "Manrope", sans-serif; }
.install-steps li strong { color: var(--ink); font-size: 14px; }
.install-steps li span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-ask { gap: 8px; margin-top: 14px; }
.product-buybar { display: none; }
@media (min-width: 761px) {
  .product-gallery { position: sticky; top: 94px; }  /* под приклеенной шапкой (78 px) */
}
@media (max-width: 900px) {
  .product-more { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; padding-top: 32px; }
}
@media (max-width: 760px) {
  .product-buybar:not([hidden]) { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(24, 35, 51, .1); }
  .product-buybar-info { display: grid; min-width: 0; gap: 2px; }
  .product-buybar-info span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .product-buybar-info strong { font: 800 17px "Manrope", sans-serif; }
  .product-buybar .button { flex: 0 0 auto; min-height: 44px; }
  body.has-buybar { padding-bottom: 72px; }
}

/* Отзывы покупателей: главная и страница товара. */
.reviews-section + .related-products { padding-top: 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; margin: 0; padding: 0; list-style: none; }
.review-card { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.review-photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--soft); }
.review-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.review-photo:hover img { transform: scale(1.03); }
.review-card blockquote { margin: 0; color: #4f5b6b; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.review-author { display: grid; gap: 2px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.review-author strong { color: var(--ink); }
.review-author span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .review-grid { display: flex; align-items: flex-start; gap: 12px; padding: 0 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .review-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Страницы марок и моделей: цепочка навигации, текст «как выбрать», модели с годами, таблица подбора. */
.page-heading .breadcrumbs { margin-bottom: 14px; }
.catalog-about { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.catalog-about h2 { margin: 6px 0 14px; font-size: 24px; letter-spacing: -.6px; }
.catalog-about h3 { margin: 26px 0 12px; font-size: 16px; }
.catalog-about p { max-width: 760px; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.brand-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 22px; margin: 0; padding: 0; font-size: 14px; list-style: none; }
.brand-models li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.brand-models a { font-weight: 700; overflow-wrap: anywhere; }
.brand-models a:hover { color: var(--accent-dark); }
.brand-models span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fitment-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fitment-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.fitment-table th, .fitment-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fitment-table tr:last-child > * { border-bottom: 0; }
.fitment-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); }
.fitment-table tbody th { font-weight: 700; }
.fitment-table tbody th a { text-decoration: underline; text-decoration-color: #c9d0da; text-underline-offset: 3px; }
.fitment-table tbody th a:hover { color: var(--accent-dark); }
.fitment-table td { color: var(--muted); white-space: nowrap; }
@media (max-width: 650px) {
  .catalog-about { margin-top: 32px; padding-top: 26px; }
  .catalog-about h2 { font-size: 20px; }
  .fitment-table th, .fitment-table td { padding: 9px 10px; }
  /* На телефоне длинный артикул переносится, а не уходит за край таблицы. */
  .fitment-table { font-size: 13px; }
  .fitment-table td { white-space: normal; overflow-wrap: anywhere; }
}

/* Подбор «марка → модель → годы» и ссылки на модели на странице марки. */
.vehicle-picker-block { position: relative; z-index: 1; width: min(100%, 680px); margin-top: 14px; }
.vehicle-picker-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero .vehicle-picker-title { color: #c4ccd7; }
.hero.has-video .vehicle-picker-title { color: #dfe5ee; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.vehicle-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px; padding: 6px; border-radius: 12px; background: #fff; }
.page-heading .vehicle-picker { border: 1px solid var(--line); }
.vehicle-picker select { min-width: 0; min-height: 46px; padding: 0 30px 0 12px; appearance: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23687386' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px; cursor: pointer; font: inherit; font-size: 13px; text-overflow: ellipsis; }
.vehicle-picker select:disabled { color: #a4afbd; background-color: var(--soft); cursor: not-allowed; }
.vehicle-picker select:focus-visible { outline: 3px solid rgba(255, 107, 53, .45); outline-offset: 1px; }
.vehicle-picker:focus-within { box-shadow: 0 0 0 3px rgba(255, 107, 53, .28); }
.catalog-results { min-width: 0; }
.model-links { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin-bottom: 18px; }
.model-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; transition: border-color .2s, color .2s; }
.model-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.model-links a span { color: #929baa; font-weight: 400; }
.model-links a.is-current { border-color: var(--ink); color: #fff; background: var(--ink); }
.model-links a.is-current span { color: #cbd1da; }
@media (max-width: 650px) {
  .vehicle-picker { grid-template-columns: minmax(0, 1fr); }
  /* На телефоне списки модели и годов появляются после выбора марки: первый экран короче. */
  .vehicle-picker select:disabled { display: none; }
  .model-links { flex-wrap: nowrap; padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
  .model-links a { flex: 0 0 auto; }
}
.related-products .section-heading h2 { margin: 0; }
.cart-page h1 { margin-bottom: 28px; }
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.cart-items, .cart-summary { border: 1px solid var(--line); border-radius: 12px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-thumb { display: block; overflow: hidden; width: 76px; height: 68px; border-radius: 8px; background: var(--soft); }
.cart-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.cart-item-thumb .product-placeholder { font-size: 12px; letter-spacing: 1px; }
.cart-item-info { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
/* Только строки-подписи: значки внутри («Подарок», скидка, новая цена) красятся своими правилами. */
.cart-item-info > span:not(.gift-badge) { color: var(--muted); font-size: 12px; font-weight: 400; }
.cart-color-form { display: grid; justify-items: start; gap: 6px; }
.cart-color-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.cart-color-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.cart-color-swatch { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.cart-color-swatch > span { position: relative; display: block; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--trim-color); box-shadow: 0 0 0 1px #cbd1da; transition: box-shadow .15s, transform .15s; }
.cart-color-swatch:hover:not(:disabled) > span { transform: scale(1.12); }
.cart-color-swatch.is-selected > span { box-shadow: 0 0 0 2px var(--accent); }
.cart-color-swatch.is-selected > span::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; content: "✓"; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.cart-color-swatch:disabled { cursor: default; }
.cart-color-swatch:focus-visible { outline: 2px solid rgba(255, 107, 53, .55); outline-offset: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 14px; }
.cart-item-actions > strong { min-width: 90px; text-align: right; white-space: nowrap; }
.cart-quantity-form { display: flex; align-items: center; }
.quantity-step, .cart-quantity-form input { display: grid; width: 34px; height: 36px; place-items: center; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: center; }
.quantity-step { cursor: pointer; font-size: 18px; }
.quantity-step:first-of-type { border-radius: 7px 0 0 7px; }
.cart-quantity-form input { width: 46px; padding: 0 2px; border-right: 0; border-left: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; font-size: 13px; }
.cart-quantity-form input::-webkit-inner-spin-button, .cart-quantity-form input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-step:nth-of-type(2) { border-radius: 0 7px 7px 0; }
.quantity-step:disabled { cursor: wait; opacity: .55; }
.remove-button { padding: 6px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 12px; }
.remove-button:hover { color: #c43b35; }
.cart-delete-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(10, 20, 35, .28); }
.cart-delete-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.cart-delete-content { padding: 26px; }
.cart-delete-content h2 { margin: 0 0 10px; font-size: 21px; }
.cart-delete-content > p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cart-delete-preference { display: flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; font-size: 13px; }
.cart-delete-preference input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.cart-delete-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.button-secondary:hover { background: var(--soft); }
.button-danger { color: #fff; background: #c43b35; }
.button-danger:hover { background: #a92f2a; }
.admin-header-link { color: var(--accent-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cart-summary { padding: 22px; }
.cart-summary h2 { font-size: 18px; }
.summary-row, .summary-total { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.summary-total { margin: 20px 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.button-wide { width: 100%; padding: 12px; white-space: normal; }
.checkout-layout, .tracking-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: start; gap: 22px; }
.checkout-form, .tracking-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.checkout-form h2, .tracking-card h2 { margin: 0 0 18px; font-size: 19px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkout-fields label { display: grid; min-width: 0; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.checkout-field-wide { grid-column: 1 / -1; }
.checkout-fields input, .checkout-fields textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.checkout-fields textarea { resize: vertical; }
.checkout-payment { display: grid; gap: 11px; margin: 24px 0; padding: 0; border: 0; }
.checkout-payment legend { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.checkout-payment-option { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.checkout-payment-option input { margin-top: 3px; accent-color: var(--accent); }
.checkout-payment-option span { display: grid; gap: 4px; }
.checkout-payment-option strong { font-size: 13px; }
.checkout-payment-option small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-payment-option.is-disabled { cursor: not-allowed; opacity: .6; }
.checkout-summary { min-width: 0; }
.checkout-item-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checkout-item-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.checkout-item-list li > span { min-width: 0; overflow-wrap: anywhere; }
.checkout-item-list li > strong { flex: 0 0 auto; white-space: nowrap; }
.checkout-item-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.tracking-card + .tracking-card { margin-top: 0; }
.tracking-status { display: grid; gap: 8px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.tracking-status span, .tracking-details dt, .tracking-link > span { color: var(--muted); font-size: 12px; }
.tracking-status-badge { display: inline-flex; width: fit-content; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid transparent; border-radius: 999px; font-size: 18px; line-height: 1.2; }
.tracking-status-icon { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tracking-status-badge.is-new { border-color: #d7dce5; color: #596579; background: #f0f2f5; }
.tracking-status-badge.is-confirmed { border-color: #b7d5ff; color: #1556a6; background: #eaf3ff; }
.tracking-status-badge.is-shipped { border-color: #dec7ff; color: #6b35a5; background: #f4edff; }
.tracking-status-badge.is-delivered { border-color: #b7e3c4; color: #23643a; background: #eaf8ef; }
.tracking-status-badge.is-cancelled { border-color: #f2c2bf; color: #a92f2a; background: #fff0ef; }
.tracking-details { display: grid; gap: 14px; margin: 18px 0; }
.tracking-details div { display: flex; justify-content: space-between; gap: 14px; }
.tracking-details dt { flex: 0 0 auto; }
.tracking-details dd { margin: 0; font-size: 12px; text-align: right; }
.tracking-link { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.tracking-link a { overflow-wrap: anywhere; color: var(--accent-dark); font-size: 12px; font-weight: 700; user-select: all; }
.tracking-link-copy { width: fit-content; min-height: 40px; padding: 0 16px; font-size: 13px; }
.tracking-link-copy.is-copied, .admin-copy-button.is-copied { border-color: #b7e3c4; color: #23643a; background: #eaf8ef; }
.tracking-link small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.tracking-history-card { grid-column: 1 / -1; }
.order-history h2 { margin: 0 0 16px; font-size: 18px; }
.order-history-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 7px; color: #70551c; background: #fff7e5; font-size: 12px; line-height: 1.55; }
.order-history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-history-entry { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; min-height: 58px; }
.order-history-entry:not(:last-child)::before { position: absolute; top: 16px; bottom: -2px; left: 7px; width: 2px; background: var(--line); content: ""; }
.order-history-marker { z-index: 1; width: 16px; height: 16px; margin-top: 2px; border: 3px solid #596579; border-radius: 50%; background: #fff; }
.order-history-entry.is-confirmed .order-history-marker { border-color: #3478c8; }
.order-history-entry.is-shipped .order-history-marker { border-color: #8251bd; }
.order-history-entry.is-delivered .order-history-marker { border-color: #25834a; }
.order-history-entry.is-cancelled .order-history-marker { border-color: #c43b35; }
.order-history-event { display: grid; align-content: start; justify-items: start; gap: 4px; padding-bottom: 14px; }
.order-history-event strong { font-size: 13px; }
.order-history-event time, .order-history-event small { color: var(--muted); font-size: 11px; }

.site-footer { padding: 38px 0 22px; border-top: 1px solid var(--line); background: #fafbfc; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 28px; color: var(--muted); font-size: 12px; }
.footer-contact, .footer-links, .footer-social { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-contact address { font-style: normal; line-height: 1.6; }
.footer-heading { margin: 8px 0 2px; color: var(--ink); font-size: 13px; font-weight: 700; }
.footer-contact > a:not(.brand-footer), .footer-links > a, .footer-social > a { color: var(--muted); overflow-wrap: anywhere; transition: color .2s; }
.footer-contact > a:not(.brand-footer):hover, .footer-links > a:hover, .footer-social > a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.legal-page { max-width: 860px; }
.legal-document { margin-top: 24px; padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 36px rgba(24, 35, 51, .045); }
.legal-document > h1 { margin: 8px 0 32px; font-size: clamp(28px, 5vw, 38px); letter-spacing: -1px; }
.legal-document section { margin-top: 26px; }
.legal-document section h2 { margin: 0 0 10px; font-size: 17px; }
.legal-document p, .legal-document li { color: #4f5b6b; font-size: 14px; line-height: 1.8; }
.legal-document p { margin: 0 0 12px; }
.legal-document ul { display: grid; gap: 8px; padding-left: 22px; }
.legal-document a { color: var(--accent-dark); font-weight: 700; }
.legal-seller { padding-top: 20px; border-top: 1px solid var(--line); }
.legal-notice { margin-top: 28px !important; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--soft); }

/* Информационные страницы: доставка, возврат, вопросы и ответы, контакты, персональные данные. */
.legal-document .info-lead { margin: -20px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.info-draft { padding: 14px 16px; border: 1px dashed #f2a072; border-radius: 10px; color: var(--ink); background: #fff8f5; font-size: 13px; line-height: 1.6; }
.info-draft p { margin: 6px 0 0; color: #4f5b6b; }
.info-draft a { color: var(--accent-dark); font-weight: 700; }
.content-todo { padding: 1px 6px; border-radius: 4px; color: #7a4a00; background: #ffe9a8; font-weight: 700; }
.legal-document .info-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal-document .info-contacts li { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--soft); line-height: 1.5; overflow-wrap: anywhere; }
.legal-document .info-contacts .info-contact-wide { grid-column: 1 / -1; }
.info-contact-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.info-contacts address { font-style: normal; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: #f3c1ad; background: #fff8f5; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; cursor: pointer; color: var(--ink); font: 700 15px "Manrope", sans-serif; line-height: 1.4; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { flex: 0 0 auto; color: var(--accent-dark); content: "+"; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-answer { padding: 0 16px 4px; }
.info-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 22px 24px; border-radius: 14px; color: #fff; background: #141d2a; }
.info-help h2 { margin: 0 0 4px; font-size: 19px; }
.info-help p { margin: 0; color: #b6c0ce; font-size: 14px; }
.info-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.info-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.info-related a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 12px; font-weight: 700; transition: border-color .2s, color .2s; }
.info-related a:hover { border-color: var(--accent); color: var(--accent-dark); }
.home-chips.purchase-notes { margin: 14px 0 0; }
.purchase-notes a:hover { color: var(--accent-dark); }
.checkout-privacy { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.checkout-privacy a { color: var(--accent-dark); font-weight: 700; }
.footer-draft { padding: 1px 6px; border-radius: 99px; color: #8a5a16; background: #fff4dc; font-size: 10px; font-weight: 700; }
@media (min-width: 901px) {
  .footer-inner.has-buyer-links { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 651px) and (max-width: 900px) {
  .footer-inner.has-buyer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner.has-buyer-links .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .legal-document .info-contacts { grid-template-columns: 1fr; }
  .info-help { padding: 18px; }
}
.brand-footer { color: var(--ink); font-size: 16px; }
.brand-footer .brand-mark { width: 29px; height: 29px; font-size: 16px; }
.brand-footer .brand-logo { width: 36px; height: 32px; }

@media (max-width: 900px) {
  .product-grid, .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 18px; }
  .main-nav { gap: 16px; }
  .catalog-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .product-detail { gap: 30px; }
  .cart-layout { grid-template-columns: 1fr 280px; }
  .checkout-layout, .tracking-layout { grid-template-columns: 1fr; }
  .benefit-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "nav nav";
    height: auto;
    min-height: 0;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header { height: auto; }
  .header-inner > .brand { grid-area: brand; }
  /* На телефоне меню — строка ссылок под логотипом: ссылок мало, прятать их за кнопку незачем. */
  .header-inner > .main-nav {
    grid-area: nav;
    width: 100%;
    gap: 22px;
    margin-top: -2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    font-size: 13px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .header-inner > .main-nav a { padding: 4px 0; }
  .header-inner > .header-actions { grid-area: actions; justify-self: end; gap: 8px; }
  .header-inner .cart-link { margin-left: 0; }
  .product-detail, .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { width: 100%; }
  .section { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { height: auto; }
  .header-inner { gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 18px; }
  .hero-decoration { font-size: clamp(72px, 25vw, 170px); letter-spacing: clamp(-12px, -2vw, -7px); }
  .hero-decoration-group > span { transform: scaleX(.8); }
  .header-inner .cart-link { font-size: 12px; min-height: 38px; padding: 0 12px 0 10px; }
  .header-inner .cart-link .cart-icon svg { width: 20px; height: 20px; }
  .hero { padding: 68px 0 50px; }
  .hero h1 { letter-spacing: -1.6px; }
  .search-form { gap: 5px; }
  .search-form input { padding: 0 10px; font-size: 12px; }
  .search-form .button { padding: 0 12px; font-size: 11px; white-space: nowrap; }
  .hero-benefits { gap: 10px 16px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .section-heading { align-items: start; gap: 14px; }
  .section-heading h2, .page-heading h1, .cart-page h1 { font-size: clamp(24px, 7vw, 28px); }
  .product-grid, .catalog-results .product-grid { gap: 11px; }
  .product-image { height: 200px; }
  .product-card-content { padding: 12px; }
  .product-card h3 { min-height: auto; font-size: 14px; }
  .product-description { min-height: 0; font-size: 11px; }
  .product-card-bottom { align-items: start; flex-direction: column; }
  .benefit-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-brands-section { padding: 8px 0 54px; }
  .home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .home-brand-card { gap: 9px; padding: 14px 6px 12px; border-radius: 12px; }
  .home-brand-name { font-size: 13px; }
  .home-brand-icon { width: 54px; height: 54px; }
  .home-brand-icon img { width: 32px; height: 32px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 18px; }
  .filter-panel { padding: 14px; }
  .filter-panel h2 { margin-bottom: 10px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 18px; }
  .brand-filter { max-height: 250px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; }
  .detail-info h1 { font-size: 30px; }
  .cart-item { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 13px; }
  .checkout-form, .tracking-card { padding: 17px; }
  .cart-item-thumb { width: 54px; height: 54px; }
  .cart-item-actions { grid-column: 2; justify-content: space-between; gap: 8px; }
  .cart-item-actions > strong { min-width: 0; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-header-link { display: none; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .header-language-picker select { width: 58px; padding-right: 20px; padding-left: 7px; font-size: 11px; }
  .header-actions { gap: 7px; }
  .cart-label { display: none; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(36px, 11vw, 44px); }
  .hero-content > p { font-size: 15px; }
  .hero-benefits { flex-direction: column; gap: 8px; }
  .section-heading { flex-direction: column; }
  .home-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .product-grid, .catalog-results .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 220px; }
  .product-card-content { padding: 16px; }
  .product-card h3 { font-size: 16px; }
  .product-description { font-size: 12px; }
  .product-card-bottom { align-items: center; flex-direction: row; }
  .search-form { flex-wrap: wrap; }
  .search-form input { min-height: 42px; }
  .search-form .button { flex: 1 0 100%; }
  .cart-item { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 12px 9px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-field-wide { grid-column: auto; }
  .cart-item-thumb { width: 46px; height: 46px; }
  .cart-item-info { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
  .cart-item-actions { flex-wrap: wrap; }
  .cart-item-actions > strong { font-size: 12px; }
  .cart-quantity-form input { width: 38px; }
  .quantity-step { width: 30px; }
  .remove-button { font-size: 11px; }
  .detail-info h1 { font-size: 27px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-contact, .footer-bottom { grid-column: auto; }
}
@media (max-width: 360px) {
  /* На узком экране флаг уступает место названию магазина: язык виден в самом списке. */
  .header-language-picker .language-flag { display: none; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-logo { width: 36px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-decoration-track { animation: none; transform: none; }
}

.checkout-consent { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 6px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.6; cursor: pointer; transition: border-color .2s, background .2s; }
.checkout-consent:hover { border-color: rgba(255, 107, 53, .55); }
.checkout-consent:has(input:checked) { border-color: var(--accent); background: #fff8f5; }
.checkout-consent input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.checkout-consent a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.checkout-consent a:hover { color: var(--ink); }
.product-card {
  --card-accent: #c2410c;
  --card-accent-soft: #fff0eb;
  --card-accent-strong: #9a3412;
  --card-text: #1a1f2b;
  --card-muted: #5f6b7a;
  --card-border: #e6e9ee;

  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .10);
  border-color: #d5dbe3;
}

/* Изображение */
.product-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* после обрезки фото заполнит рамку */
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-placeholder {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--card-muted);
}

/* Контент */
.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--card-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--card-accent);
}

.product-description {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--card-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Цена */
.product-price-row {
  margin-top: auto;
  padding-top: 10px;
}

.product-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--card-accent);
  white-space: nowrap;
}

.product-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--card-accent-soft);
  color: var(--card-accent-strong);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}

.product-price-old {
  width: 100%;
  font-size: .85rem;
  color: var(--card-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Кнопка */
.product-add-form {
  margin: 0;
}

.product-add-button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: background .2s ease, transform .1s ease;
}

.product-add-button:hover {
  background: var(--card-accent);
}

.product-add-button:active {
  transform: scale(.98);
}

/* Адаптив */
@media (max-width: 640px) {
  .product-card { border-radius: 14px; }
  .product-card-content { padding: 14px; }
  .price { font-size: 1.25rem; }
}
.bulk-discount-hint { margin: 6px 0 0; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.bulk-price-head h2 { margin: 0 0 4px; }
.bulk-price-head p { margin: 0; }

/* Скидки в корзине: старая и новая цена, бейдж, экономия */
.cart-old-price { color: var(--muted); font-size: .85em; font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; white-space: nowrap; }
.cart-new-price { color: var(--ink); font-weight: 700; white-space: nowrap; }
.cart-discount-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; color: var(--accent-dark); background: #fff1eb; font-size: 11px; font-weight: 800; line-height: 1.3; vertical-align: middle; white-space: nowrap; }
.cart-savings-row strong { color: var(--accent-dark); }
.cart-savings-row[hidden] { display: none; }

/* Главная: полоса акции «подарок при любом заказе» над первым экраном. */
.promo-bar { color: #fff; background: var(--accent-dark); font-size: 14px; line-height: 1.4; }
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px 14px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.promo-bar img { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: #fff; object-fit: contain; }
.promo-bar-badge { flex: 0 0 auto; padding: 3px 9px; border-radius: 99px; color: var(--accent-dark); background: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.promo-bar-text { min-width: 0; }
.promo-bar-text strong { font-weight: 800; }
@media (max-width: 650px) {
  .promo-bar { font-size: 13px; }
  .promo-bar-inner { justify-content: flex-start; gap: 8px 10px; }
}

/* Подарок при покупке */
.gift-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 10px; border: 1px dashed #f4b9a4; border-radius: 9px; background: #fff8f5; color: var(--ink); font-size: 12px; line-height: 1.4; }
.gift-note img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; }
.gift-note strong { color: var(--accent-dark); }
.gift-badge { display: inline-flex; width: max-content; padding: 2px 8px; border-radius: 99px; color: #fff; background: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cart-gift-item .cart-item-thumb { background: #fff; }
.cart-gift-item .gift-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Ошибки в форме оформления заказа: у каждого поля */
.checkout-fields label.has-error, .checkout-payment.has-error { color: var(--accent-dark); }
.checkout-fields input.is-invalid, .checkout-fields textarea.is-invalid, .checkout-fields input[aria-invalid="true"], .checkout-fields textarea[aria-invalid="true"] { border-color: #d94325; background: #fff8f5; box-shadow: 0 0 0 3px rgba(217, 67, 37, .12); }
.checkout-fields input:focus[aria-invalid="true"], .checkout-fields textarea:focus[aria-invalid="true"] { outline: 0; }
.field-error { display: block; margin-top: 2px; color: #d94325; font-size: 12px; font-weight: 600; line-height: 1.4; }
.checkout-payment .field-error { margin-top: 8px; }
.checkout-consent.is-invalid { border-color: #d94325; background: #fff8f5; }
.checkout-consent + .field-error { margin: -2px 0 12px; }

/* Оформление заказа: поле-ловушка для ботов и общая ошибка формы. */
.checkout-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.checkout-form-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f3c1ad; border-radius: 10px; color: #9a3412; background: #fff4ee; font-weight: 700; line-height: 1.45; }

/* ---------- Галерея товара ---------- */
.product-gallery { display: grid; gap: 12px; align-self: start; overflow: visible; border-radius: 0; background: none; }
/* Фото товаров вертикальные, 2:3: рамка той же пропорции, без серых полей по бокам, и не выше экрана. */
.gallery-stage { position: relative; overflow: hidden; width: 100%; max-width: max(260px, calc((100vh - 230px) * 2 / 3)); margin-inline: auto; aspect-ratio: 2 / 3; border-radius: 14px; background: var(--soft); touch-action: pan-y; user-select: none; }
.gallery-stage.is-empty { display: grid; max-width: none; aspect-ratio: 4 / 3; place-items: center; }
.gallery-main { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; -webkit-user-drag: none; }
.gallery-main.is-zooming img { transform: scale(2.2); }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(16, 24, 40, .16); cursor: pointer; transform: translateY(-50%); transition: background .15s, opacity .15s; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow svg, .gallery-expand svg, .gallery-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; color: #fff; background: rgba(20, 29, 42, .72); font: 700 12px/1.4 "Manrope", sans-serif; pointer-events: none; }
.gallery-expand { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(16, 24, 40, .12); cursor: pointer; }
.gallery-main.is-zooming ~ .gallery-arrow, .gallery-main.is-zooming ~ .gallery-expand, .gallery-main.is-zooming ~ .gallery-counter { opacity: 0; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 60px; height: 90px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--soft); scroll-snap-align: start; transition: border-color .15s, opacity .15s; opacity: .72; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--accent-dark); opacity: 1; }
.gallery-hint { margin: 0; color: var(--muted); font-size: 12px; }
@media (hover: none) { .gallery-hint { display: none; } .gallery-main { cursor: pointer; }
}
body.gallery-open { overflow: hidden; }
.gallery-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; color: #fff; background: rgba(10, 14, 20, .96); }
.gallery-lightbox::backdrop { background: rgba(10, 14, 20, .96); }
.gallery-lightbox[open] { display: grid; place-items: center; }
.gallery-lightbox-stage { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-lightbox-stage img { width: auto; height: auto; max-width: min(92vw, 1400px); max-height: 86dvh; object-fit: contain; cursor: zoom-in; transition: transform .2s ease; -webkit-user-drag: none; }
.gallery-lightbox-stage.is-zoomed img { transform: scale(2); cursor: zoom-out; }
.gallery-lightbox .gallery-arrow { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.gallery-lightbox .gallery-arrow:hover { background: rgba(255, 255, 255, .26); }
.gallery-lightbox .gallery-prev { left: 20px; }
.gallery-lightbox .gallery-next { right: 20px; }
.gallery-lightbox .gallery-counter { right: 50%; bottom: 22px; transform: translateX(50%); background: rgba(255, 255, 255, .14); }
.gallery-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.gallery-close:hover { background: rgba(255, 255, 255, .26); }
.gallery-arrow:focus-visible, .gallery-expand:focus-visible, .gallery-close:focus-visible, .gallery-thumb:focus-visible { outline: 3px solid rgba(255, 107, 53, .7); outline-offset: 2px; }
@media (max-width: 760px) {
  .gallery-stage { border-radius: 12px; }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-expand { top: 8px; right: 8px; width: 34px; height: 34px; }
  .gallery-counter { right: 8px; bottom: 8px; }
  .gallery-thumb { flex-basis: 48px; height: 72px; border-radius: 8px; }
  .gallery-lightbox .gallery-prev { left: 8px; }
  .gallery-lightbox .gallery-next { right: 8px; }
  .gallery-lightbox-stage img { max-width: 100vw; max-height: 78dvh; }
}

/* ---------- Видео в первом экране главной ---------- */
.hero.has-video { background: #141d2a; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #141d2a; }
/* Затемнение слева сильнее — там текст и поиск. */
.hero.has-video::after { position: absolute; inset: 0; z-index: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(20, 29, 42, .86) 0%, rgba(20, 29, 42, .62) 50%, rgba(20, 29, 42, .38) 100%); }
.hero.hero-overlay-light::after { background: linear-gradient(90deg, rgba(20, 29, 42, .7) 0%, rgba(20, 29, 42, .42) 50%, rgba(20, 29, 42, .18) 100%); }
.hero.hero-overlay-strong::after { background: linear-gradient(90deg, rgba(20, 29, 42, .93) 0%, rgba(20, 29, 42, .8) 50%, rgba(20, 29, 42, .62) 100%); }
.hero.has-video .hero-content { z-index: 1; }
.hero.has-video .hero-content > p, .hero.has-video .hero-benefits { color: #dfe5ee; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* Текст под заголовком — золотой, оттенки взяты с логотипа (щит и «Torpido Koruma»). */
.hero .hero-content > p.hero-lead, .hero.has-video .hero-content > p.hero-lead { color: var(--gold); font-weight: 500; text-shadow: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .hero-content > p.hero-lead, .hero.has-video .hero-content > p.hero-lead {
    width: fit-content; max-width: 100%;
    color: transparent; background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 38%, var(--gold-light) 58%, var(--gold-deep) 100%);
    -webkit-background-clip: text; background-clip: text;
  }
  /* Тень у прозрачного текста просвечивает сквозь буквы, поэтому на видео — тень всего абзаца. */
  .hero.has-video .hero-content > p.hero-lead { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45)); }
}
.hero.has-video h1 { text-shadow: 0 2px 22px rgba(0, 0, 0, .3); }
.hero-video-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; color: #fff; background: rgba(20, 29, 42, .45); cursor: pointer; backdrop-filter: blur(4px); transition: background .15s; }
.hero-video-toggle:hover { background: rgba(20, 29, 42, .7); }
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-video-toggle .icon-play { fill: currentColor; stroke-width: 1.5; }
.hero-video-toggle .icon-play, .hero-video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-play { display: block; }
.hero-video-toggle:focus-visible { outline: 3px solid rgba(255, 152, 115, .9); outline-offset: 3px; }
@media (max-width: 760px) {
  /* На телефоне текст занимает всю ширину — затемнение равномерное. */
  .hero.has-video::after { background: rgba(20, 29, 42, .66); }
  .hero.hero-overlay-light::after { background: rgba(20, 29, 42, .48); }
  .hero.hero-overlay-strong::after { background: rgba(20, 29, 42, .82); }
  .hero-video-toggle { right: 12px; bottom: 12px; width: 36px; height: 36px; }
}

/* ---------- Главная: блоки из креативов ---------- */
.home-lead { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.home-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.home-why-media { margin: 0; overflow: hidden; border-radius: 18px; background: #141d2a; box-shadow: 0 18px 40px rgba(16, 24, 40, .14); }
.home-why-media img { display: block; width: 100%; height: auto; }
.home-why-body h2 { margin: 10px 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -1px; }
.home-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 20px; }
.home-compare-col { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.home-compare-col.is-after { border-color: #f3c1ad; background: #fff8f5; }
.home-compare-col h3 { margin: 0 0 12px; font-size: 15px; }
.home-compare-col.is-after h3 { color: var(--accent-dark); }
.home-compare-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.home-compare-col li { position: relative; padding-left: 26px; line-height: 1.4; }
.home-compare-col li::before { position: absolute; top: 1px; left: 0; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.home-compare-col.is-before li { color: var(--muted); }
.home-compare-col.is-before li::before { content: "✕"; background: #9aa3b0; }
.home-compare-col.is-after li::before { content: "✓"; background: #15803d; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.home-chips li { padding: 7px 12px; border-radius: 99px; color: var(--ink); background: var(--soft); font-size: 12px; font-weight: 700; }

.home-colors { display: grid; gap: 22px; }
.home-colors-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.home-colors-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.home-colors-head .home-lead { margin: 0; max-width: 420px; }
.home-colors-media { margin: 0; overflow: hidden; border-radius: 18px; background: #f2f2f2; }
.home-colors-media img { display: block; width: 100%; height: auto; }
.home-swatches { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.home-swatches li { display: inline-flex; align-items: center; gap: 8px; }
.home-swatch { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--trim-color); box-shadow: 0 0 0 1px var(--line); }

.home-production { padding: 76px 0; color: #fff; background: #141d2a; }
.home-production .eyebrow { color: #ff9873; }
.home-production h2 { margin: 10px 0 10px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; }
.home-production .home-lead { color: #b6c0ce; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 26px; padding: 0; list-style: none; }
.home-step { overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: #1b2636; }
.home-step img { display: block; width: 100%; height: 190px; object-fit: cover; }
.home-step-body { padding: 18px 20px 22px; }
.home-step-number { color: #ff9873; font: 800 13px "Manrope", sans-serif; }
.home-step h3 { margin: 6px 0 8px; font-size: 18px; }
.home-step p { margin: 0; color: #b6c0ce; font-size: 14px; line-height: 1.55; }
.home-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; color: #dfe5ee; font-size: 14px; font-weight: 700; }
.home-badges li { display: inline-flex; align-items: center; gap: 10px; }
.home-badges svg { width: 22px; height: 22px; fill: none; stroke: #ff9873; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-video-strip { display: flex; gap: 16px; margin: 0; padding: 4px 2px 14px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.home-video-card { flex: 0 0 auto; display: grid; align-content: start; gap: 10px; scroll-snap-align: start; }
.home-video-frame { position: relative; height: 380px; overflow: hidden; border-radius: 16px; background: #141d2a; }
.home-video-card.is-portrait .home-video-frame { aspect-ratio: 394 / 720; }
.home-video-card.is-square .home-video-frame { aspect-ratio: 1; }
.home-video-card.is-landscape .home-video-frame { aspect-ratio: 720 / 394; }
.home-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #141d2a; }
.home-video-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: linear-gradient(180deg, rgba(20, 29, 42, 0) 40%, rgba(20, 29, 42, .45)); cursor: pointer; }
.home-video-play svg { width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%; fill: #fff; background: rgba(194, 65, 12, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.home-video-play:hover svg { transform: scale(1.06); }
.home-video-play:focus-visible { outline: 3px solid rgba(255, 107, 53, .7); outline-offset: -3px; }
.home-video-frame.is-playing .home-video-play { display: none; }
.home-video-title { max-width: 100%; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.home-video-card.is-portrait .home-video-title { width: calc(380px * 394 / 720); }
.home-video-card.is-square .home-video-title { width: 380px; }
.home-video-card.is-landscape .home-video-title { width: calc(380px * 720 / 394); }

.home-cta { padding: 0 0 80px; }
.home-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: 22px; background: #141d2a; color: #fff; }
.home-cta-body { display: grid; align-content: center; gap: 14px; padding: 48px; }
.home-cta-body h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.home-cta-body p { margin: 0; color: #b6c0ce; font-size: 16px; line-height: 1.6; }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.home-cta-whatsapp { color: #fff; background: #15803d; }
.home-cta-whatsapp:hover { background: #166534; }
.home-cta-media { margin: 0; min-height: 100%; }
.home-cta-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .home-why { grid-template-columns: 1fr; gap: 28px; }
  .home-why-media { max-width: 520px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-step { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .home-step img { height: 100%; min-height: 150px; }
  .home-cta-inner { grid-template-columns: 1fr; }
  .home-cta-media { order: -1; max-height: 320px; overflow: hidden; }
}
@media (max-width: 650px) {
  .home-compare { grid-template-columns: 1fr; }
  .home-production { padding: 54px 0; }
  .home-step { grid-template-columns: 1fr; }
  .home-step img { height: 170px; }
  .home-video-frame { height: 340px; }
  .home-video-card.is-portrait .home-video-title { width: calc(340px * 394 / 720); }
  .home-video-card.is-square .home-video-title { width: 340px; }
  .home-video-card.is-landscape .home-video-title { width: calc(340px * 720 / 394); }
  /* На телефоне все карточки одной высоты; горизонтальное видео — с полями сверху и снизу. */
  .home-video-card.is-landscape .home-video-frame { aspect-ratio: auto; width: min(88vw, 621px); }
  .home-video-card.is-landscape .home-video-frame video { object-fit: contain; }
  .home-video-card.is-landscape .home-video-title { width: min(88vw, 621px); }
  .home-cta { padding-bottom: 54px; }
  .home-cta-body { padding: 28px 22px 30px; }
  .home-cta-actions .button { width: 100%; }
}

.home-strip-arrows { display: flex; gap: 8px; }
.home-strip-arrows[hidden] { display: none; }
.home-strip-arrows .gallery-arrow { position: static; transform: none; border: 1px solid var(--line); box-shadow: none; }
.home-strip-arrows .gallery-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 650px) {
  .home-why-media img { height: 320px; object-fit: cover; object-position: center 20%; }
  .home-strip-arrows { display: none; }
}

/* ------------------------------------------------------------ Форма заказа: подсказки адреса и карта */
.field-optional { color: var(--muted); font-size: 11px; font-weight: 600; }
.address-combobox { position: relative; display: block; min-width: 0; }
.address-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 100%; max-height: min(320px, 50vh); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; box-shadow: 0 18px 48px rgba(10, 20, 35, .18); list-style: none; }
.address-options[hidden] { display: none; }
.address-option { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 10px 11px; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.3; }
.address-option:hover, .address-option.is-active { background: var(--soft); }
.address-option.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.address-option-label { min-width: 0; overflow-wrap: anywhere; }
.address-option-label mark { padding: 0; color: var(--accent-dark); background: transparent; font-weight: 800; }
.address-option-meta { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.address-options-status { padding: 12px 11px; color: var(--muted); font-size: 13px; font-weight: 600; }

.checkout-map[hidden], .checkout-map-panel[hidden], .checkout-map [hidden] { display: none; }
.checkout-map { display: grid; gap: 12px; }
.checkout-map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.checkout-map-toggle { gap: 8px; }
.checkout-map-toggle svg { color: var(--accent); }
.checkout-map-status { margin: 0; color: #23643a; font-size: 13px; font-weight: 700; }
.checkout-map-status:empty { display: none; }
.checkout-map-status::before { content: "✓ "; }
.checkout-map-panel { display: grid; gap: 10px; }
.checkout-map-hint { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.55; }
.checkout-map-canvas { height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.checkout-map-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkout-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.checkout-map-actions .button { min-height: 40px; }
.checkout-map .text-button { padding: 8px 4px; border: 0; color: var(--accent-dark); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.checkout-map-found { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; }
.checkout-map-found:empty { display: none; }
.checkout-map-pin { background: none; border: 0; }
.checkout-map-pin span { display: block; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 4px 12px rgba(10, 20, 35, .35); transform: rotate(-45deg) translate(2px, 2px); }
.checkout-map-pin span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.checkout-map .leaflet-container { font: inherit; font-size: 12px; }

@media (max-width: 720px) {
  /* 16px: iPhone не увеличивает страницу при вводе. */
  .checkout-fields input, .checkout-fields textarea { font-size: 16px; }
  .address-option { min-height: 46px; font-size: 15px; }
  .checkout-map-canvas { height: 280px; }
  .checkout-map-toggle { width: 100%; }
}

/* ------------------------------------------------------------ Чат по заказу */
.tracking-chat-card { grid-column: 1 / -1; }
.order-chat { display: grid; gap: 14px; scroll-margin-top: 90px; }
.order-chat [hidden] { display: none; }
.order-chat-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.order-chat-header h2 { margin: 0 0 4px; font-size: 19px; }
.order-chat-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-chat-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; color: #23643a; background: #edf8f0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order-chat-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.order-chat-state.is-closed { color: var(--muted); background: var(--soft); }
.order-chat-messages { display: flex; flex-direction: column; gap: 12px; max-height: min(460px, 60vh); margin: 0; padding: 14px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); list-style: none; }
.order-chat-message { display: grid; gap: 4px; max-width: min(78%, 560px); }
.order-chat-message.is-mine { align-self: flex-end; justify-items: end; }
.order-chat-message.is-theirs { align-self: flex-start; justify-items: start; }
.order-chat-bubble { padding: 10px 13px; border-radius: 14px 14px 14px 4px; color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 35, .08); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-chat-message.is-mine .order-chat-bubble { border-radius: 14px 14px 4px 14px; color: #fff; background: var(--accent-dark); }
.order-chat-message.is-new .order-chat-bubble { animation: order-chat-in .25s ease-out; }
@keyframes order-chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .order-chat-message.is-new .order-chat-bubble { animation: none; }
}
.order-chat-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.order-chat-read { color: #23643a; }
.order-chat-empty, .order-chat-closed { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.order-chat-closed { border-style: solid; color: var(--ink); background: var(--soft); font-weight: 600; }
.order-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.order-chat-form textarea { width: 100%; min-height: 46px; max-height: 180px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; line-height: 1.45; resize: none; }
.order-chat-form textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(255, 107, 53, .15); }
.order-chat-form .button { min-height: 46px; }
.order-chat-form .button[disabled] { cursor: progress; opacity: .7; }
.order-chat-error { grid-column: 1 / -1; margin: 0; color: #9c2f2f; font-size: 13px; font-weight: 600; }
.order-chat-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-chat-hint a { color: var(--accent-dark); font-weight: 700; }

@media (max-width: 720px) {
  .order-chat-messages { max-height: 55vh; padding: 10px; }
  .order-chat-message { max-width: 88%; }
  .order-chat-form textarea { font-size: 16px; }
  .order-chat-form { grid-template-columns: 1fr; }
  .order-chat-form .button { width: 100%; }
}
/* Шапка сайта на страницах админки — по ширине админки, логотип над меню */
.site-header.is-admin .header-inner { width: min(1360px, calc(100% - 40px)); }
@media (max-width: 650px) { .site-header.is-admin .header-inner { width: calc(100% - 24px); }
}

/* ==========================================================================
   Телефон: путь покупателя от главной до заказа (ширина до 760 px).
   Блок стоит в конце файла и уточняет правила выше. Что здесь сделано:
   поля ввода 16 px, зоны нажатия от 40 px, меньше пустых отступов, товары в две
   колонки, сначала товары — потом список марок, кнопки покупки на всю ширину,
   полоса «Перейти в корзину» внизу экрана.
   ========================================================================== */
.cart-bar, .product-gift-chip, .checkout-total-line { display: none; }

/* Шапка витрины приклеена к верху экрана на всех устройствах: корзина всегда под рукой. */
.site-header.is-sticky { position: sticky; top: 0; z-index: 60; }
html { scroll-padding-top: 96px; }

/* Товар «улетает» в корзину: кружок с фото летит от кнопки к значку корзины в шапке, значок отзывается. */
.cart-fly { position: fixed; z-index: 130; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 2px solid #fff; border-radius: 50%; background: var(--accent-dark) center 20% / cover no-repeat; box-shadow: 0 10px 24px rgba(24, 35, 51, .3); pointer-events: none; will-change: transform, opacity; }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }
.cart-link.is-bumped { animation: cart-bump .5s ease; }
@media (prefers-reduced-motion: reduce) { .cart-link.is-bumped { animation: none; } }
.cart-continue { display: inline-block; margin-top: 14px; }

@media (max-width: 760px) {
  /* Поля ввода: при тексте мельче 16 px iPhone увеличивает страницу при нажатии на поле. */
  .search-form input, .vehicle-picker select, .header-language-picker select, .catalog-filters select,
  .cart-quantity-form input, .product-quantity-control input, .order-chat-form textarea { font-size: 16px; }

  /* Когда страница прокручена, от приклеенной шапки остаётся верхняя строка: логотип, язык, корзина.
     Нижняя строка с меню срезается (static/js/main.js считает её высоту), место на экране не теряется. */
  .site-header.is-sticky { transition: clip-path .2s ease; }
  .site-header.is-sticky.is-compact { clip-path: inset(0 0 var(--header-clip, 0px) 0); }
  .site-header.is-sticky.is-compact::after { position: absolute; right: 0; bottom: var(--header-clip, 0px); left: 0; height: 1px; background: var(--line); content: ""; }

  /* Название магазина не заходит под выбор языка: оно сжимается и переносится на вторую строку. */
  .header-inner > .brand { min-width: 0; }
  .header-inner > .brand > span { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; white-space: normal; }
  .header-inner > .brand-long { font-size: 15px; letter-spacing: -.2px; }

  /* Зоны нажатия. */
  .header-inner > .main-nav { margin-top: 0; padding-top: 2px; }
  .header-inner > .main-nav a { padding: 11px 0; }
  .header-inner .cart-link { min-height: 44px; }
  .header-language-picker select { width: 64px; height: 44px; padding-right: 22px; padding-left: 8px; }
  .breadcrumbs { gap: 0 10px; margin-bottom: 12px; }
  .breadcrumbs a, .breadcrumbs > span { padding: 9px 0; }
  /* Название товара стоит в заголовке сразу под цепочкой: в цепочке оно только занимает две строки. */
  .breadcrumbs .breadcrumb-current, .breadcrumbs > span:has(+ .breadcrumb-current) { display: none; }
  .model-links a { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .gallery-expand { width: 40px; height: 40px; }
  .hero-video-toggle { width: 44px; height: 44px; }
  .section-heading .text-link, .cart-continue { display: inline-block; padding: 10px 0; }
  .footer-contact, .footer-links, .footer-social { gap: 2px; }
  .footer-contact > a:not(.brand-footer), .footer-links > a, .footer-social > a { padding: 8px 0; }
  .cart-color-swatches { gap: 4px; }
  .cart-color-swatch { width: 40px; height: 40px; }
  .cart-color-swatch > span { width: 28px; height: 28px; }
  .quantity-step, .cart-quantity-form input { height: 44px; }
  .quantity-step { width: 42px; }
  .cart-quantity-form input { width: 44px; }
  .product-quantity-control .quantity-step, .product-quantity-control input { height: 48px; }
  .product-quantity-control .quantity-step { width: 48px; }
  .remove-button { min-height: 44px; padding: 0 8px; font-size: 13px; }
  .checkout-consent input { width: 22px; height: 22px; flex: 0 0 22px; }

  /* Меньше пустоты между блоками: содержимое ближе к началу экрана. */
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-heading { padding: 20px 0 22px; }
  .page-heading h1 { margin: 6px 0; }
  .product-page { padding-top: 12px; }

  /* Главная: заголовок компактнее, чтобы поиск и подбор были на первом экране. */
  .hero { padding: 28px 0 32px; }
  .hero h1 { margin: 12px 0 10px; font-size: clamp(30px, 8.4vw, 36px); line-height: 1.12; letter-spacing: -1.2px; }
  .hero-content > p { margin-bottom: 18px; }
  .hero-benefits { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; }
  /* Кнопка «остановить видео» стоит в правом нижнем углу: текст её не касается. */
  .hero.has-video .hero-benefits { padding-right: 56px; }

  /* Поиск — в одну строку. */
  .search-form { flex-wrap: nowrap; gap: 6px; }
  .search-form input { min-height: 46px; padding: 0 10px; text-overflow: ellipsis; }
  .search-form .button { flex: 0 0 auto; min-height: 46px; padding: 0 16px; font-size: 14px; }

  /* Товары — в две колонки, карточка компактная: фото, название, цена, кнопка. */
  .product-grid, .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 12px; }
  .product-card:hover { transform: none; }
  .product-image { height: auto; aspect-ratio: 1 / 1; }
  .product-card-content { gap: 6px; padding: 10px 10px 12px; }
  .product-card .eyebrow { display: none; }
  .product-card h3, .product-card .product-title { min-height: 3.9em; margin: 0; font-size: 13px; line-height: 1.3; -webkit-line-clamp: 3; }
  .product-price-row { padding-top: 4px; }
  .product-price-block { gap: 2px 6px; }
  .product-card .price { font-size: 17px; }
  .product-discount-badge { padding: 3px 6px; font-size: 11px; }
  .product-price-old { font-size: 12px; }
  .product-card .gift-note { display: none; }
  .product-gift-chip { display: inline-flex; width: max-content; margin-top: 6px; padding: 2px 8px; border-radius: 99px; color: var(--accent-dark); background: #fff1eb; font-size: 11px; font-weight: 800; }
  .product-add-button { min-height: 42px; padding: 0 8px; font-size: 13px; }

  /* Марки на главной — плотнее. */
  .home-brand-card { gap: 6px; padding: 10px 4px 9px; }
  .home-brand-icon { width: 46px; height: 46px; }
  .home-brand-icon img { width: 28px; height: 28px; }
  .home-brand-count { min-width: 30px; padding: 2px 8px; }

  /* Товар: кнопки на всю ширину. */
  .detail-info h1 { font-size: 24px; line-height: 1.25; }
  .detail-info .product-add-form { justify-items: stretch; }
  .detail-info .product-add-form > .button { width: 100%; min-height: 52px; font-size: 16px; }
  .product-ask { width: 100%; min-height: 48px; }

  /* Корзина: строка товара. Фото показано целиком (оно вертикальное, 2:3), название и цвет — рядом,
     а под ними одной строкой: количество, «Удалить» и сумма. Сумма со скидкой — в два этажа
     (старая над новой), поэтому не наезжает на количество ни на какой ширине. */
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 14px 12px; }
  .cart-item-thumb { width: 64px; height: 96px; }
  .cart-item-thumb img { object-position: center; }
  .cart-gift-item { align-items: center; }
  .cart-gift-item .cart-item-thumb { height: 64px; }
  .cart-item-info { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
  .cart-item-actions { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .cart-item-actions > strong { display: grid; order: 3; justify-items: end; min-width: 0; margin-left: auto; font-size: 16px; line-height: 1.25; }
  .cart-item-actions > strong .cart-old-price { font-size: 12px; }
  .cart-gift-item .cart-item-actions { grid-column: 2; }
  .cart-gift-item .cart-item-actions > strong { margin-left: 0; }

  /* Корзина и оформление заказа. */
  .cart-summary .button-wide { min-height: 52px; font-size: 16px; }
  .checkout-total-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 16px 0 10px; font-size: 14px; }
  .checkout-total-line strong { font: 800 20px "Manrope", sans-serif; }
  .checkout-total-line small { color: var(--muted); font-size: 12px; }
  .checkout-submit { width: 100%; min-height: 54px; font-size: 16px; }

  /* Полоса корзины внизу экрана. На странице товара её место занимает полоса покупки,
     а сразу после «В корзину» — наоборот: покупателю нужен следующий шаг. */
  .cart-bar:not([hidden]) { position: fixed; right: 0; bottom: 0; left: 0; z-index: 39; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(24, 35, 51, .1); }
  .cart-bar-text { display: grid; min-width: 0; gap: 2px; font-size: 13px; font-weight: 700; }
  .cart-bar-added { color: #23643a; font-size: 12px; }
  .cart-bar .button { flex: 0 0 auto; min-height: 44px; }
  body.has-cartbar { padding-bottom: 72px; }
  body.has-buybar .cart-bar:not(.is-fresh) { display: none; }
  body.has-fresh-cart .product-buybar { display: none; }
  body.has-cartbar .toast-region, body.has-buybar .toast-region { bottom: 86px; }
}
@media (max-width: 650px) {
  /* Каталог: сначала товары, список марок для перехода — после них. */
  .filter-panel { order: 2; }
}
@media (max-width: 360px) {
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 9px; }
  .cart-item-thumb { width: 56px; height: 84px; }
  .cart-gift-item .cart-item-thumb { height: 56px; }
  .cart-color-swatches { gap: 0; }
  .cart-item-actions { gap: 4px; }
  .cart-item-actions > strong { font-size: 15px; }
  .remove-button { padding: 0 5px; }
  .header-inner > .brand-long { gap: 6px; font-size: 13px; }
  .header-inner .cart-link { padding: 0 9px 0 8px; }
}

/* Корзина: уже оформленные заказы этого браузера и отметка у корзины в шапке. */
.cart-link { position: relative; }
.cart-order-mark { position: absolute; top: -4px; left: -4px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #2e9a55; box-shadow: 0 1px 4px rgba(24, 35, 51, .25); }
.my-orders { margin: 4px 0 22px; padding: 16px 18px; border: 1px solid #b7e3c4; border-radius: 12px; background: #f4fbf6; }
.my-orders h2 { margin: 0 0 10px; font-size: 16px; }
.my-orders ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.my-order { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.my-order-link { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-width: 0; font-size: 13px; }
.my-order-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.my-order-title strong { font-size: 14px; }
.my-order-status { display: inline-flex; padding: 3px 9px; border: 1px solid transparent; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.my-order-status.is-new { border-color: #d7dce5; color: #596579; background: #f0f2f5; }
.my-order-status.is-confirmed { border-color: #b7d5ff; color: #1556a6; background: #eaf3ff; }
.my-order-status.is-shipped { border-color: #dec7ff; color: #6b35a5; background: #f4edff; }
.my-order-status.is-delivered { border-color: #b7e3c4; color: #23643a; background: #eaf8ef; }
.my-order-status.is-cancelled { border-color: #f2c2bf; color: #a92f2a; background: #fff0ef; }
.my-order-meta { color: var(--muted); font-size: 12px; }
.my-order-unpaid { color: var(--accent-dark); }
.my-order-open { margin-left: auto; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.my-order-link:hover .my-order-open { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .my-orders { padding: 14px 12px; }
  .my-order { align-items: flex-start; }
  .my-order-link { min-height: 44px; }
  .my-order-open { flex: 1 0 100%; margin-left: 0; padding: 4px 0; }
}

/* Оплата картой: страница перехода в банк и состояние оплаты на странице заказа. */
.checkout-field-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-payment-option .checkout-payment-staff { color: var(--accent-dark); font-weight: 700; }
.payment-card { display: grid; gap: 16px; max-width: 560px; }
.payment-card .summary-total { margin: 0; padding-top: 0; border-top: 0; }
.payment-card .checkout-form-error { margin: 0; }
.payment-lead { margin: 0; font-weight: 700; }
.payment-form { display: grid; }
.payment-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.payment-note.payment-test { color: var(--accent-dark); font-weight: 700; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-state.is-paid { color: #23643a; }
.payment-state.is-unpaid { color: var(--accent-dark); }
.payment-notice { display: grid; gap: 12px; margin: 0 0 18px; padding: 14px; border: 1px solid #f3c1ad; border-radius: 10px; background: #fff4ee; font-size: 13px; line-height: 1.5; }
.payment-notice p { margin: 0; }
.payment-notice .button { width: fit-content; }
.payment-notice.is-failed strong { color: #9a3412; }
.payment-notice.is-paid { border-color: #b7e3c4; color: #23643a; background: #eaf8ef; font-weight: 700; }
@media (max-width: 560px) { .payment-notice .button, .payment-actions .button { width: 100%; } }

/* WhatsApp: кнопка в углу экрана — как у оригинала: круг фирменного цвета с белым логотипом.
   «Не нашли свою машину?» — только когда сайт ничего не нашёл (основное общение — на сайте). */
.wa-float { position: fixed; right: max(16px, calc((100vw - 1160px) / 2 - 72px)); bottom: 24px; z-index: 38; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, .26); }
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-icon { flex: 0 0 auto; width: 20px; height: 20px; fill: currentColor; }
.wa-float .wa-icon { width: 32px; height: 32px; }
.product-ask .wa-icon { color: #25d366; }
body:has(.wa-float) .toast-region { bottom: 92px; }
.missing-car { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border: 1px solid #bfe5cc; border-radius: 12px; background: #f1faf4; }
.missing-car-text { display: grid; gap: 4px; min-width: 0; }
.missing-car-text h2 { margin: 0 0 2px; font-size: 21px; }
.missing-car-text p { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #bfe5cc; color: var(--muted); font-size: 13px; }
.missing-car-text strong { font-size: 16px; }
.missing-car-text span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.missing-car-button { flex: 0 0 auto; gap: 8px; color: #fff; background: #15803d; }
.missing-car-button:hover { color: #fff; background: #166534; }
@media (max-width: 760px) {
  /* Телефон: над полосами корзины и покупки. */
  .wa-float { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .wa-float .wa-icon { width: 30px; height: 30px; }
  body.has-cartbar .wa-float, body.has-buybar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.wa-float) .toast-region { bottom: 84px; }
  body.has-cartbar:has(.wa-float) .toast-region, body.has-buybar:has(.wa-float) .toast-region { bottom: 150px; }
  .missing-car { flex-direction: column; align-items: stretch; }
  .missing-car-button { width: 100%; min-height: 48px; }
}
@media print { .wa-float { display: none; } }

/* Поиск: точно ничего не нашлось — показаны похожие товары. */
.search-similar-note { display: grid; gap: 4px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f3c1ad; border-radius: 10px; color: var(--ink); background: #fff4ee; font-size: 13px; line-height: 1.5; }
.search-similar-note span { color: var(--muted); font-size: 12px; }
.suggestions-status.is-similar { padding: 10px 12px 6px; color: var(--accent-dark); font-size: 12px; font-weight: 700; text-align: left; }

/* Скидка за комплект: блок в корзине. */
.cart-bundle:empty { display: none; }
.cart-bundle-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; padding: 14px 16px; border: 1px solid #f3c1ad; border-radius: 12px; background: #fff4ee; font-size: 13px; line-height: 1.5; }
.cart-bundle-note p { display: grid; gap: 2px; margin: 0; }
.cart-bundle-note span { color: var(--muted); font-size: 12px; }
.cart-bundle-note .button { flex: 0 0 auto; min-height: 40px; }
.cart-bundle-note.is-applied { display: grid; gap: 2px; border-color: #b7e3c4; color: #23643a; background: #eaf8ef; }
@media (max-width: 560px) { .cart-bundle-note .button { width: 100%; } }
