﻿* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); margin: 0; padding: 0; color: var(--text); }
.container { max-width: 1620px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 20px; margin-top: 20px; }

/* === HEADER & BREADCRUMBS === */
.header { margin-bottom: 20px; }
.breadcrumbs { margin-bottom: 18px; font-size: 23px; line-height: 1.4; color: var(--muted); }
.breadcrumbs a { color: #FF4000; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.home-icon { font-size: 1.3em; line-height: 1; margin-right: 8px; color: var(--text); vertical-align: baseline; }
.home-icon:hover { color: #FF4000; }
.breadcrumbs span, .breadcrumbs h1.crumb-title { color: var(--text); font-weight: 500; }
.breadcrumbs h1.crumb-title { font-size: 1em; line-height: inherit; margin: 0; display: inline; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: inline; }
.breadcrumbs li { display: inline; }
.breadcrumbs ol li + li::before { content: " - "; }
@media (max-width: 680px) { .breadcrumbs { font-size: 20px; margin-bottom: 14px; } }
/* Главная H1 приемом донора tc-head h1 (системный стек контента, не Manrope) */
.catalog-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.catalog-head .home-icon { font-size: clamp(26px,4.5vw,43px); align-self: center; }
.catalog-title { font-size: clamp(36px,6vw,60px); line-height: 1.05; letter-spacing: -.05em; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.catalog-title em { font-style: normal; background: linear-gradient(90deg,var(--orange),#ff8a5c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.catalog-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); margin-top: 8px; }
@media(max-width:760px) { .catalog-title { font-size: clamp(32px,9vw,44px); } }
@media (max-width: 680px) { .catalog-count { font-size: 12px; } .catalog-head .home-icon { display: none; } }

/* === DONOR CHROME topbar/footer 1:1 (без табов top-nav/mobile-dropdown/mobile-nav) === */
/* Manrope 700/800 (cyrillic+latin сабсеты, как донор tyre-catalog.css:6-35) — только для хрома */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-cyrillic-ext-700.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/manrope-cyrillic-ext-800.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/manrope-cyrillic-800.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/manrope-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/manrope-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dmmono-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dmmono-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Стек донора (body 15px/1.5 Manrope, ls -.01em) — скоуп только хром, остальное не тронуто */
.topbar, .ap-footer { font-family: Manrope, system-ui, sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }
:root { --bg: #090d14; --panel: #111722; --panel-2: #151d2a; --line: #253041; --text: #f3f5f7; --muted: #8d9aab; --orange: #FF4000; }
html.theme-light { --bg: #ffffff; --panel: #f7f4f3; --panel-2: #f1eeeb; --line: #e4e4e4; --text: #555555; --muted: #8d8780; --orange: #FF4000; }
html.theme-dark { --bg: #090d14; --panel: #111722; --panel-2: #151d2a; --line: #253041; --text: #f3f5f7; --muted: #8d9aab; --orange: #FF4000; }
.theme-toggle-btn { display: grid; place-items: center; width: 57px; height: 57px; background: #141c28; border: 1px solid var(--line); color: #d8d2cc; border-radius: 10px; cursor: pointer; transition: all .18s; flex: 0 0 auto; }
.theme-toggle-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,64,0,.2); }
.theme-toggle-btn svg { width: 24px; height: 24px; }
html.theme-light .theme-toggle-btn { background: #fff; border-color: #e4e4e4; color: #5f5a54; }
.topbar { border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 2.5vw; background: var(--bg); position: sticky; top: 0; z-index: 200; }
.autopolka-topbar { height: auto; flex-direction: column; align-items: stretch; padding: 0; gap: 0; background: var(--panel); }
.ap-wrap { max-width: 1620px; width: 100%; box-sizing: border-box; margin: 0 auto; padding-left: calc(20px + env(safe-area-inset-left)); padding-right: calc(20px + env(safe-area-inset-right)); }
.ap-mainline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; flex-wrap: nowrap; min-width: 0; }
.header-logo { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; margin-right: auto; transition: opacity .2s; text-decoration: none; }
.header-logo:hover { opacity: .85; }
.header-logo img { height: 50px; width: auto; display: block; max-width: min(300px,100%); }
.logo-text { display: none; font-weight: 800; font-size: 26px; letter-spacing: .04em; color: var(--orange); line-height: 1; }
html:not(.theme-light) .header-logo img { display: none; }
html:not(.theme-light) .header-logo .logo-text { display: block; }
.topbar-icons { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.topbar-icons a { display: grid; place-items: center; width: 57px; height: 57px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); transition: all .18s; color: var(--text); }
.topbar-icons a:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,64,0,.2); color: var(--orange); }
.topbar-icons .icon-svg { width: 24px; height: 24px; display: block; }
.topbar-icons .icon-png { width: 55px; height: 55px; object-fit: contain; display: none; }
html.theme-light .topbar-icons a { background: #fff; border-color: #e4e4e4; color: #555; }
html.theme-light .topbar-icons a:hover { color: var(--orange); }
html.theme-light .topbar-icons .icon-png { display: block; }
html.theme-light .topbar-icons .icon-svg { display: none; }
.autopolka-topbar .theme-toggle-btn { flex: 0 0 auto; margin: 0; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; flex: 0 0 auto; margin: 0; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; cursor: pointer; transition: all .18s; }
.mobile-menu-btn:hover { border-color: var(--orange); color: var(--orange); }
.nav-hidden { display: none !important; }
.main-content { width: 100%; flex: 1; }
.page-content { max-width: none; margin: 0; padding: 0; width: 100%; }
.ap-footer { margin-top: 60px; }
.ap-footer-image { position: relative; z-index: 3; text-align: center; margin-bottom: 0; }
.ap-footer-image img { width: 100%; max-width: 780px; display: block; margin: 0 auto; }
.ap-footer-widgets { background: var(--panel); padding: 24px 0 26px; }
.ap-footer-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.ap-footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ap-footer-col h3, .ap-footer-request h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.ap-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ap-footer-col li { margin-bottom: 7px; }
.ap-footer-col a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .18s; }
.ap-footer-col a:hover { color: var(--orange); }
.ap-footer-request p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.ap-footer-request-btn { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 12px 22px; border-radius: 15px; text-decoration: none; transition: opacity .18s; }
.ap-footer-request-btn:hover { opacity: .9; color: #fff; }
.ap-footer-copy { background: var(--panel); padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.ap-footer-copy .build-stamp { color: var(--muted); font-size: 13px; }
@media(max-width:1079px) {
  .mobile-menu-btn { display: grid; }
  .topbar-icons { display: none; }
  .autopolka-topbar .theme-toggle-btn { width: 44px; height: 44px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; }
  .autopolka-topbar .theme-toggle-btn:hover { border-color: var(--orange); color: var(--orange); transform: none; box-shadow: none; }
  .autopolka-topbar .theme-toggle-btn svg { width: 22px; height: 22px; }
  html.theme-light .autopolka-topbar .theme-toggle-btn { background: #fff; border-color: #e4e4e4; color: #555; }
  .header-logo { margin: 0 auto; }
  .header-logo img { height: 38px; }
  .sidebar { top: 73px; max-height: calc(100dvh - 73px - 12px); }
  .logo-text { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .ap-wrap { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }
  .container { padding-left: 14px; padding-right: 14px; }
  .ap-mainline { gap: 10px; padding: 8px 0; justify-content: flex-start; }
}
@media(max-width:900px) {
  .ap-footer-row { grid-template-columns: 1fr; gap: 24px; }
  .ap-footer-cols { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:680px) {
  .ap-footer { display: none; }
}

/* === MOBILE LOGO ADAPTATION === */
@media (max-width: 768px) {
  .logo-line .container {
    padding: 10px 15px;
  }
  
  .table-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .table-control {
    display: flex;
    align-items: center;
  }
  
  .header-logo img {
    max-width: 250px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
  }
  
  .header-phone-box {
    margin-left: 8px;
  }
  
  .header-phone-box a {
    display: inline-block;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
  
  .text-right1,
  .timetable-box,
  .header-call-box {
    display: none;
  }
  
  .logo-line {
    padding: 5px 0;
  }
}

/* === GRIDS === */
.categories-grid, .products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 10px; }
@media (max-width: 1400px) { .categories-grid, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .categories-grid, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .categories-grid, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 8px; } .card { padding: 8px 6px 0; } .card-img { height: 200px; } .card-title { font-size: 13px; min-height: 34px; } .product-card { min-height: 0; padding: 10px; } .product-main-image { height: 130px; } .product-name { font-size: 13px; min-height: 48px; } .price-value { font-size: 22px; } .price-label { font-size: 15px; } .btn { font-size: 14px; padding: 8px 12px; } }
@media (max-width: 480px) { .categories-grid, .products-grid { gap: 8px; padding: 6px; } .card-img { height: 170px; } .card-title { font-size: 12px; } .product-main-image { height: 110px; } .product-name { font-size: 12px; } }

/* === CATEGORY CARD === */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 10px 8px 0; text-align: center; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; position: relative; min-height: 100px; width: 100%; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); border-color: var(--orange); }
.card-img { height: 260px; object-fit: contain; background: transparent !important; margin: 0 auto; max-width: calc(100% - 8px); border: none !important; padding: 0 !important; transition: transform 0.3s; }
.card:hover .card-img { transform: scale(1.05); }
.card-title { font-size: 16px; font-weight: 600; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); line-height: 1.3; min-height: 40px; }

/* === PRODUCT CARD === */
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 16px; text-align: center; display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); height: 100%; min-height: 420px; width: 100%; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); border-color: var(--orange); }
.product-image-container { position: relative; display: inline-block; width: 100%; margin: 8px auto 12px; max-width: calc(100% - 16px); background: transparent; border: 0; outline: 0; box-shadow: none; border-radius: 15px; overflow: hidden; }
.product-main-image { display: block; width: 100%; height: 180px; object-fit: contain; background: transparent; cursor: pointer; border: 0; outline: 0; box-shadow: none; border-radius: 15px; padding: 8px; transition: transform 0.3s; }
.products-grid:not(.display-list) .product-card>.q-actions{margin-top:auto;width:100%;padding-top:14px}
.product-card:hover .product-main-image { transform: scale(1.02); }

/* === THUMBNAILS === */
.thumbnails-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; position: relative; max-width: 100%; margin-left: auto; margin-right: auto; width: 100%; }
.thumbnails-container.centered { justify-content: center; }
.thumbnails-container.centered .thumbnails-wrapper { max-width: 100%; flex: none; }
.thumbnails-container.centered .thumbnails-track { justify-content: center; }
.thumbnails-wrapper { flex: 1; overflow: hidden; max-width: calc(100% - 72px); }
.thumbnails-track { display: flex; gap: 8px; transition: transform 0.3s ease; width: max-content; }
.thumbnail-scroll-btn { background: transparent; color: #FF4000; border: none; width: 28px; height: 60px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; transition: all 0.2s ease; z-index: 2; flex-shrink: 0; }
.thumbnail-scroll-btn:hover:not(:disabled) { color: #e03800; transform: scale(1.1); }
.thumbnail-scroll-btn:disabled { color: var(--muted); cursor: not-allowed; }
.thumbnail { width: 60px; height: 60px; object-fit: cover; border: 2px solid var(--line); cursor: pointer; transition: all 0.2s; border-radius: 8px; flex-shrink: 0; }
.thumbnail:hover, .thumbnail.active { border-color: #FF4000; box-shadow: 0 0 4px #FF4000; transform: scale(1.05); }
.single-image-notice { color: var(--muted); font-size: 14px; font-style: italic; text-align: center; padding: 10px 0; margin: 0 0 12px; opacity: 0.7; }
.thumbnails-container:not(.has-scroll) .thumbnail-scroll-btn { display: none; }

/* === PRICE & BTN === */
.price-section { margin: 6px 0 8px; }
.price-label { font-size: 18px; color: #e63900; margin: 2px 0 2px; font-weight: 500; }
.price-value { font-size: 28px; color: #FF4000; font-weight: bold; margin: 0 0 4px; }
.product-name { font-size: 16px; margin: 6px 0 12px; color: var(--text); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 60px; line-height: 1.3; }
.btn { display: inline-block; background: #FF4000; color: #fff; border: none; padding: 10px 16px; border-radius: 15px; font-size: 16px; text-decoration: none; cursor: pointer; font-weight: bold; margin-top: auto; box-shadow: 0 2px 4px rgba(255,64,0,0.3); transition: all 0.2s ease; }
.btn:hover,
.btn:focus,
.btn:active {
  color: #fff !important;
  background: #e03800;
  box-shadow: 0 3px 6px rgba(255,64,0,0.4);
  transform: translateY(-1px);
}

/* === TO-TOP (кнопка вверх, создает JS) === */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--orange); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(255,64,0,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); }
@media (max-width: 680px) { .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; font-size: 20px; } }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; align-items: center; margin: 28px 0 10px; gap: 8px; flex-wrap: wrap; background: none; padding: 0; border: 0; }
.pagination .page-btn, a.page-btn, button.page-btn { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; border-radius: 999px; margin: 0; transition: border-color .18s, color .18s, background .18s, transform .18s, box-shadow .18s; color: var(--text); font-weight: 700; font-size: 14px; line-height: 1; text-decoration: none; }
.pagination a.page-btn, .pagination a.page-btn:hover, .pagination a.page-btn:visited { text-decoration: none; }
.pagination .page-btn:hover { background: var(--panel-2); color: var(--orange); border-color: var(--orange); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,64,0,.18); }
.pagination .page-btn.active { background: #FF4000; color: #fff; border-color: #FF4000; box-shadow: 0 4px 12px rgba(255,64,0,.35); cursor: default; transform: none; }
.pagination .page-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 680px) { .pagination { gap: 6px; margin: 22px 0 8px; } .pagination .page-btn { min-width: 36px; height: 36px; padding: 0 11px; font-size: 13px; } }

/* === MODAL === */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1100; align-items: center; justify-content: center; }
.modal-content { position: relative; max-width: 95vw; max-height: 95vh; text-align: center; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); border: 2px solid white; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: white; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1002; }
.modal-nav:hover { background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); border-color: #FF4000; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-close { position: absolute; top: -50px; right: -50px; background: rgba(0,0,0,0.7); border: 2px solid white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1002; }
.modal-close:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); border-color: #FF4000; color: #FF4000; }
.modal-image { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; border-radius: 15px; box-shadow: 0 0 30px rgba(0,0,0,0.7); }
.modal-counter { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 10px 20px; border-radius: 25px; font-size: 16px; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); }
@media (max-width: 768px) {
  .modal-content { max-width: 98vw; max-height: 98vh; padding: 10px; }
  .modal-nav { width: 45px; height: 45px; font-size: 18px; }
  .modal-prev { left: 5px; }
  .modal-next { right: 5px; }
  .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; background: rgba(0,0,0,0.8); }
  .modal-image { max-height: 85vh; }
  .modal-counter { bottom: -40px; font-size: 14px; padding: 8px 16px; }
}

/* === QUICK-VIEW (донор tc-modal: большая карточка товара) === */
.tc-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 20px; }
.tc-modal-backdrop[hidden] { display: none; }
body.tc-modal-open { overflow: hidden; }
.tc-modal { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: tcPop .22s cubic-bezier(.2,.7,.3,1); }
@keyframes tcPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.tc-modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.tc-modal-x:hover { border-color: var(--orange); color: var(--orange); }
.tc-modal-body { padding: 24px; }
.tc-modal-body .q-gallery { position: relative; }
.tc-modal-body .q-photo { width: 100%; max-height: 380px; object-fit: contain; background: #fff; border: 0; outline: 0; box-shadow: none; border-radius: 15px; padding: 8px; cursor: zoom-in; }
.tc-modal-body .q-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.tc-modal-body .q-nav:hover { border-color: var(--orange); color: var(--orange); }
.tc-modal-body .q-prev { left: 10px; }
.tc-modal-body .q-next { right: 10px; }
.tc-modal-body .q-counter { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tc-modal-body .q-thumbs { display: flex; gap: 8px; margin: 10px 0 0; overflow-x: auto; padding-bottom: 4px; }
.tc-modal-body .q-thumb { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.tc-modal-body .q-thumb.active { border-color: var(--orange); }
.tc-modal-body h3 { margin: 14px 0 4px; font-size: 20px; line-height: 1.3; color: var(--text); }
.tc-modal-body .q-meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.tc-modal-body .q-desc { color: var(--text); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.tc-modal-body .q-open { margin-top: 16px; }
.tc-modal-body .q-actions { margin-top: 16px; }
/* === IDENTITY GATE (вертикальный стек) === */
.tc-identity-modal { max-width: 440px; padding: 28px; }
.tc-identity-modal h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; color: var(--text); }
.tc-identity-text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tc-identity-form { display: flex; flex-direction: column; gap: 12px; }
.tc-identity-form .tc-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.tc-identity-input { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; padding: 12px 14px; font-size: 16px; line-height: 1.4; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 15px; outline: none; }
.tc-identity-input:focus { border-color: var(--orange); }
.tc-identity-input::placeholder { color: var(--muted); }
.tc-identity-err { font-size: 13px; line-height: 1.5; color: #ff5a5a; }
.tc-identity-err[hidden] { display: none; }
.tc-identity-form .tc-btn { width: 100%; box-sizing: border-box; padding: 13px 16px; font-size: 16px; font-weight: 700; color: #fff; background: var(--orange); border: none; border-radius: 15px; cursor: pointer; }
.tc-identity-form .tc-btn:hover { filter: brightness(1.08); }
@media (max-width: 680px) { .tc-identity-backdrop { padding: 12px; align-items: center; } .tc-identity-modal { max-width: 100%; max-height: 92vh; padding: 22px 18px; border-radius: 15px; } }
article.product-card { cursor: pointer; }
article.product-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 680px) {
  .tc-modal-backdrop { padding: 0; align-items: end; }
  .tc-modal { max-width: 100%; max-height: 92vh; border-radius: 15px 15px 0 0; border-bottom: none; }
  .tc-modal-body { padding: 16px 16px 24px; }
  .tc-modal-body .q-photo { max-height: 220px; }
}

/* === SEARCH SUGGESTIONS === */
.search-container-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.home-button-custom {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  background: #555;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  transition: all 0.2s ease;
}
.home-button-custom:hover,
.home-button-custom:focus,
.home-button-custom:active {
  color: white !important;
  background: #444;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-container {
  flex: 1;
  position: relative;
  width: 100%;
}
.search-container::before {
  content: "\1F50D";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

#search-input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border: 2px solid #FF4000;
  border-radius: 15px;
  outline: none;
  background: var(--panel-2);
  box-shadow: 0 2px 8px rgba(255,64,0,0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html.theme-light #search-input { background: #fff; }
#search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
#search-input:hover {
  border-color: #e03800;
}
#search-input:focus {
  border-color: #FF4000;
  box-shadow: 0 0 0 4px rgba(255,64,0,0.15), 0 4px 14px rgba(255,64,0,0.18);
}

@media (max-width: 768px) {
  .search-container-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .home-button-custom {
    width: 100%;
    height: 45px;
    line-height: 45px;
    font-size: 14px;
    padding: 0;
    margin-bottom: 8px;
  }
  
  #search-input {
    height: 52px;
    font-size: 16px;
    padding: 0 16px 0 44px;
  }
  .search-container::before {
    left: 15px;
    font-size: 18px;
  }
}

#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  padding: 0;
}

#search-suggestions.show {
  display: block;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s;
}

.search-suggestion-item:hover {
  background: var(--panel-2);
}

.suggestion-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text);
}

.suggestion-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

mark {
  background: #fff9e6;
  padding: 0 3px;
  border-radius: 8px;
  color: #d97706;
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 16px;
}

/* === SIMPLE HIGHLIGHTED PRODUCT === */
._akcessuary-highlighted-product {
  position: relative;
  animation: pulse 2s infinite;
}

._akcessuary-highlighted-product::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #FF4000;
  border-radius: 15px;
  pointer-events: none;
  z-index: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 64, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 64, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 0, 0); }
}

/* === SEARCH SUGGESTIONS SCROLLBAR === */
#search-suggestions::-webkit-scrollbar {
  width: 8px;
}
#search-suggestions::-webkit-scrollbar-track {
  background: var(--panel-2);
  border-radius: 8px;
}
#search-suggestions::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 8px;
}
#search-suggestions::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* === AIRLINE INFO SECTION === */
.airline-info-section {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.airline-logo {
  text-align: center;
  margin-bottom: 20px;
}

.airline-logo-img {
  max-width: 90%;
  height: auto;
  max-height: 100px;
  display: block;
  margin: 0 auto;
}

.airline-description {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  color: var(--text);
}

.airline-description p {
  margin: 15px 0;
  font-size: 16px;
}

@media (max-width: 768px) {
  .airline-info-section {
    padding: 25px 15px;
  }
  
  .airline-description {
    font-size: 15px;
  }
  
  .airline-logo-img {
    max-height: 80px;
  }
}

/* === WINTER PRODUCTS VIDEO === */
.winter-products-video {
  margin-top: 20px;
  padding: 0;
  border-top: none;
  margin-bottom: 20px;
}

.video-container {
  max-width: 50%;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
  }
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .winter-products-video {
    padding: 15px 0;
  }
  
  .video-container video {
    max-height: 450px;
  }
}

/* === BUILD STAMP === */
.build-stamp { text-align: center; color: var(--muted); font-size: 12px; padding: 16px 0 20px; }
/* === SIDEBAR (donor avs-auto.ru: flyout panels right on hover) === */
.layout { display: flex; gap: 20px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.catalog-fab { display: none; }
.sidebar-overlay { display: none; }
.sidebar-close { display: none; }
.sidebar { width: 288px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; position: sticky; top: 90px; display: flex; flex-direction: column; overflow: visible; z-index: 150; box-shadow: 0 2px 10px rgba(0,0,0,.05); max-height: calc(100dvh - 90px - 12px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; }
.sidebar-title { background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 14px 18px; cursor: default; border-radius: 15px 15px 0 0; display: flex; align-items: center; justify-content: space-between; }
.sidebar-tree { padding: 8px 6px 12px; overflow: visible; }
.sidebar-tree ul { list-style: none; margin: 0; padding: 0; }
.sidebar-tree li { margin: 1px 0; padding: 0; position: static; }
.sidebar-tree > .sidebar-root > li > a, .sidebar-tree > .sidebar-root > li > span { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; line-height: 1.45; text-decoration: none; text-align: left; transition: background .18s ease, color .18s ease; }
.sidebar-tree > .sidebar-root > li:hover > a, .sidebar-tree > .sidebar-root > li:hover > span { color: #FF4000; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.sidebar-tree a { color: var(--text); text-decoration: none; }
.sidebar-tree li > span { color: var(--text); }
.sidebar-tree a:hover { color: #FF4000; }
.sidebar-tree a:focus-visible, .sidebar-tree summary:focus-visible { outline: 2px solid #FF4000; outline-offset: 2px; border-radius: 10px; }
.sidebar-tree a.active { color: #FF4000; font-weight: 700; background: var(--panel-2); box-shadow: inset 3px 0 0 #FF4000; }
.sidebar-tree li.active-trail > a, .sidebar-tree li.active-trail > span { color: #FF4000; background: rgba(255,64,0,.09); box-shadow: inset 3px 0 0 #FF4000; }
.sidebar-tree .cnt { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
/* counters hidden in sidebar everywhere (tree, flyouts, mobile drawer); subnav chips keep theirs */
.sidebar .cnt, .sidebar-tree .cnt, .nav-flyout-1 .cnt, .nav-flyout-2 .cnt { display: none; }
/* top-level nav icons: monochrome, accent on hover/active */
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: color .18s ease; }
.sidebar-tree a:hover .nav-ico, .sidebar-tree a.active .nav-ico,
.sidebar-tree li.active-trail > a .nav-ico, .sidebar-tree li.active-trail > span .nav-ico { color: #FF4000; }
/* parent arrow — every has-child owns a flyout panel */
.sidebar-tree li.has-child > a::after, .sidebar-tree li.has-child > span::after { content: ">"; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1; margin-left: auto; flex-shrink: 0; transition: transform .2s ease, color .18s ease; }
.sidebar-tree li.has-child:hover > a::after, .sidebar-tree li.has-child:hover > span::after,
.sidebar-tree li.has-child:focus-within > a::after, .sidebar-tree li.has-child:focus-within > span::after,
.sidebar-tree li.has-child.active-trail > a::after, .sidebar-tree li.has-child.active-trail > span::after { color: #FF4000; }
.sidebar-tree li:not(.has-child) > a::after, .sidebar-tree li:not(.has-child) > span::after { content: none; }
.sidebar-tree li.has-child.expanded > a::after, .sidebar-tree li.has-child.expanded > span::after { transform: rotate(90deg); }
/* flyout panels: fixed to viewport (immune to sidebar scroll), JS clamps edges */
.nav-flyout-1, .nav-flyout-2 { position: fixed; left: -9999px; top: 0; width: 290px; max-height: 80vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #1a2230; border: 1px solid var(--line); border-radius: 0 15px 15px 0; box-shadow: 0 16px 40px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateX(10px); transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility .22s; z-index: 400; }
html.theme-light .nav-flyout-1, html.theme-light .nav-flyout-2 { background: #fff; }
.sidebar-tree li.has-child.expanded.placed > .nav-flyout-1, .sidebar-tree li.has-child.expanded.placed > .nav-flyout-2 { opacity: 1; visibility: visible; transform: none; }
.nav-flyout-1 > ul, .nav-flyout-2 > ul { padding: 8px 6px; }
.nav-flyout-1 li a, .nav-flyout-1 li span, .nav-flyout-2 li a, .nav-flyout-2 li span { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; min-width: 0; text-align: left; overflow-wrap: anywhere; transition: background .16s ease, color .16s ease; color: var(--text); }
.nav-flyout-1 li a:hover, .nav-flyout-1 li span:hover, .nav-flyout-2 li a:hover, .nav-flyout-2 li span:hover { background: var(--panel-2); color: #FF4000; }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  body.nav-open { overflow: hidden; }
  .catalog-fab { display: none; /* дубль бургера: drawer открывается из шапки */ align-items: center; gap: 8px; position: fixed; left: 14px; bottom: 14px; z-index: 320; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; min-height: 48px; padding: 13px 20px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
  .catalog-fab:active { transform: scale(.97); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 305; background: rgba(20,12,8,.5); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  body.nav-open .sidebar-overlay, .sidebar.open ~ .sidebar-overlay { opacity: 1; visibility: visible; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); max-height: none; height: 100dvh; overflow-y: auto; overflow-x: hidden; border-radius: 0 15px 15px 0; z-index: 310; transform: translateX(-106%); transition: transform .3s cubic-bezier(.2,.7,.25,1); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
  body.nav-open .sidebar, .sidebar.open { transform: none; }
  .sidebar-title { border-radius: 0 15px 0 0; min-height: 56px; text-transform: none; font-size: 16px; letter-spacing: 0; cursor: default; }
  .sidebar-title::after { content: none; }
  .sidebar-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px -6px 0; background: transparent; border: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 15px; }
  .sidebar-close:hover { background: var(--panel-2); }
  .sidebar .sidebar-tree { display: block; padding: 10px 10px 24px; overflow: visible; }
  .sidebar-tree > .sidebar-root > li > a, .sidebar-tree > .sidebar-root > li > span { overflow-wrap: anywhere; }
  /* drawer: flyouts become static stacked panels (same .expanded mechanism) */
  .nav-flyout-1, .nav-flyout-2 { position: static; width: auto; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 0 12px; background: transparent; transition: max-height .28s ease; }
  .sidebar-tree li.has-child.expanded > .nav-flyout-1, .sidebar-tree li.has-child.expanded > .nav-flyout-2 { max-height: 70vh; overflow-y: auto; }
  .nav-flyout-1 > ul, .nav-flyout-2 > ul { padding: 4px 0 8px 10px; }
  .sidebar-tree a, .sidebar-tree span, .sidebar-tree summary { min-height: 44px; }
  .sidebar-tree > .sidebar-root > li > a, .sidebar-tree > .sidebar-root > li > span { padding: 12px; font-size: 15px; }
  .nav-flyout-1 li a, .nav-flyout-1 li span, .nav-flyout-2 li a, .nav-flyout-2 li span { padding: 12px; font-size: 15px; }
}

/* === PRODUCT DESCRIPTION === */
.product-description { color: var(--text); font-size: 15px; line-height: 1.7; max-width: 75ch; }
.product-description p { margin: 0 0 14px; }
.desc-lead { font-size: 17px; font-weight: 600; line-height: 1.6; }
.desc-block { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 14px 18px; margin: 18px 0; }
.desc-block h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #FF4000; }
.desc-block p:last-child { margin-bottom: 0; }
.desc-use { border-left: 4px solid #FF4000; }
.desc-empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 15px; padding: 14px 18px; }
@media (max-width: 900px) {
  .product-description { font-size: 14px; }
  .desc-lead { font-size: 16px; }
  .desc-block { padding: 12px 14px; margin: 14px 0; }
}

/* === PRODUCT SPECS (definition list from spec-wall text) === */
.spec-list { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--panel); }
.spec-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; }
.spec-row:nth-child(odd) { background: var(--panel-2); }
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row dt { margin: 0; padding: 9px 14px; font-weight: 700; color: var(--text); }
.spec-row dd { margin: 0; padding: 9px 14px; color: var(--text); }
/* === PRODUCT FILES === */
.product-files { margin: 18px 0; }
.product-files h2 { font-size: 18px; margin: 0 0 10px; color: var(--text); }
.files-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; }
.file-badge { background: rgba(255,255,255,.28); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
@media (max-width: 900px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { padding-bottom: 0; }
  .spec-row dd { padding-top: 4px; }
}
/* === PACK (fasovka, donor-like) === */
.product-article { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.pack-line { font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; margin: 6px auto 4px; display: inline-block; max-width: 100%; }
.product-meta .pack-line { margin: 6px 0 0; }
.product-meta { font-size: 14px; color: var(--muted); margin: 8px 0; display: grid; gap: 4px; }
.product-pack { margin: 8px 0; display: grid; gap: 4px; justify-items: start; }
.pack-title { font-size: 14px; font-weight: 600; color: var(--text); }
.product-pack .pack-line { margin: 0; }
/* === SUBNAV (children of section) === */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.subnav-item { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 6px 12px 6px 6px; color: var(--text); font-size: 14px; text-decoration: none; transition: all 0.2s ease; }
a.subnav-item:hover { border-color: #FF4000; color: #FF4000; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.subnav-item img { width: 40px; height: 40px; object-fit: contain; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
.subnav-name { font-weight: 600; }
.subnav-item .cnt { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .subnav { gap: 8px; } .subnav-item { font-size: 13px; } .subnav-item img { width: 34px; height: 34px; } }
/* === DARK-SOFT: приглушение фото + белые шрифты (только тёмная тема, светлую не трогать) === */
html:not(.theme-light) .product-image-container { background: #fff; filter: brightness(.82) saturate(.92); }
html:not(.theme-light) .product-main-image { background: #fff; }
html:not(.theme-light) .tc-modal-body .q-photo { background: #fff; filter: brightness(.82) saturate(.92); }
html:not(.theme-light) .tc-modal-body .q-thumb { background: #fff; filter: brightness(.82) saturate(.92); }
html:not(.theme-light) .product-name,
html:not(.theme-light) .price-value,
html:not(.theme-light) .catalog-title,
html:not(.theme-light) .card-title,
html:not(.theme-light) .breadcrumbs span,
html:not(.theme-light) .breadcrumbs h1.crumb-title,
html:not(.theme-light) .home-icon,
html:not(.theme-light) .sidebar-title,
html:not(.theme-light) .sidebar-tree a,
html:not(.theme-light) .sidebar-tree li > span,
html:not(.theme-light) .nav-flyout-1 li a,
html:not(.theme-light) .nav-flyout-1 li span,
html:not(.theme-light) .nav-flyout-2 li a,
html:not(.theme-light) .nav-flyout-2 li span,
html:not(.theme-light) .tc-modal-body h3,
html:not(.theme-light) .product-files h2,
html:not(.theme-light) .suggestion-title,
html:not(.theme-light) .subnav-item,
html:not(.theme-light) .pack-title,
html:not(.theme-light) .spec-row dt,
html:not(.theme-light) .spec-row dd,
html:not(.theme-light) .product-description,
html:not(.theme-light) .tc-modal-body .q-desc { color: #fff; }
html:not(.theme-light) .breadcrumbs,
html:not(.theme-light) .price-label { color: #fff; }
html:not(.theme-light) .catalog-count,
html:not(.theme-light) .product-article,
html:not(.theme-light) .pack-line,
html:not(.theme-light) .product-meta,
html:not(.theme-light) .single-image-notice,
html:not(.theme-light) .suggestion-info,
html:not(.theme-light) .tc-modal-body .q-meta,
html:not(.theme-light) .tc-identity-text,
html:not(.theme-light) .subnav-item .cnt { color: #fff; }

/* Polymerium smartfilter */
.layout-filter{display:flex;gap:20px;align-items:flex-start}
.smartfilter{width:260px;flex-shrink:0;background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:14px;position:sticky;top:90px;max-height:calc(100dvh - 100px);overflow-y:auto}
.smartfilter-count{font-size:14px;margin-bottom:10px}
.smartfilter-group{border:1px solid var(--line);border-radius:10px;padding:10px;margin:0 0 10px}
.smartfilter-group legend{font-weight:700;font-size:13px;padding:0 6px}
.smartfilter-check{display:flex;align-items:center;gap:8px;font-size:13.5px;padding:4px 0;cursor:pointer}
.smartfilter-check .cnt{color:var(--muted);font-size:12px;margin-left:auto}
.smartfilter-price{display:flex;flex-direction:column;gap:8px}
.smartfilter-price input[type=number]{width:100%;padding:6px 8px;border:1px solid var(--line);border-radius:8px}
.oto-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 10px 12px}
.sort-btn,.view-btn{border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:13px;text-decoration:none;color:var(--text)}
.sort-btn.active,.view-btn.active{background:#FF4000;color:#fff;border-color:#FF4000}
.oto-views{margin-left:auto;display:flex;gap:6px}
.oto-extra{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.oto-spec{font-size:12px;color:var(--muted)}
.oto-vols{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.oto-pill{border:1px solid var(--line);border-radius:20px;padding:2px 10px;font-size:12px}
.oto-stock{font-size:13px;font-weight:700;color:green}
.oto-donor{font-size:12px;color:var(--muted)}
.products-grid.display-list{grid-template-columns:1fr}
.products-grid.display-list .product-card{flex-direction:row;text-align:left;min-height:0}
@media(max-width:1024px){.layout-filter{flex-direction:column}.smartfilter{width:100%;position:static;max-height:none}}
.main--full{flex:1;min-width:0}
.layout-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.smartfilter-catlabel{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.smartfilter-btns{display:flex;gap:8px;margin-top:10px}
.breadcrumbs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.head-logo-right{margin-left:auto;height:56px;width:auto;flex-shrink:0}
@media(max-width:1024px){.head-logo-right{display:none}}
.oto-fsp{border:0;padding:0;margin:0;min-width:0}
.oto-wholesale{margin-top:16px;padding:12px 16px;border-radius:12px;font-size:16px;font-weight:700;text-align:center;color:#fff;background:#FF4000;box-shadow:0 2px 8px rgba(255,64,0,.35)}
@media(max-width:1024px){
.oto-fsp{border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-bottom:12px}
.oto-fsp-h{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-weight:700;font-size:16px;padding:12px 14px}
.oto-fsp-h::-webkit-details-marker{display:none}
.oto-fsp-h::after{content:"+";margin-left:auto;color:#FF4000;font-size:20px}
.oto-fsp[open] .oto-fsp-h::after{content:"−"}
.oto-fsp .smartfilter{border:0;background:none;position:static;max-height:none;width:100%}
}
.oto-spoiler{border:1px solid var(--line);border-radius:14px;margin-top:22px;background:var(--panel);overflow:hidden;padding:6px 30px 18px}
.oto-spoiler-h{font-size:26px;font-weight:700;cursor:pointer;padding:16px 60px 16px 18px;list-style:none;display:flex;align-items:center;justify-content:center;position:relative}
.oto-spoiler-h::-webkit-details-marker{display:none}
.oto-spoiler-h::after{content:"+";position:absolute;right:20px;color:#FF4000;font-size:28px;line-height:1}
.oto-spoiler[open] .oto-spoiler-h::after{content:"−"}
.oto-spoiler-logo{height:56px;width:auto;flex-shrink:0}
.oto-spoiler-title{display:flex;align-items:center;gap:16px}
.oto-company{margin:28px 0 8px}
.oto-company .container{max-width:1620px}
.oto-spoiler-h:focus{outline:none}
.oto-co-h{font-size:22px;margin:26px 0 12px}
.oto-co-hero,.oto-co-wide{width:100%;border-radius:12px;margin:8px 0 14px}
.oto-co-feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:14px 0}
.oto-co-feat{border:1px solid var(--line);border-radius:12px;padding:14px}
.oto-co-feat-hd{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:8px}
.oto-co-feat-hd img{width:34px;height:34px}
.oto-co-prods-row{margin:14px 0}
.oto-co-prods-line{font-weight:700;margin-bottom:8px}
.oto-co-prods-items{display:flex;flex-wrap:wrap;gap:10px}
.oto-co-prods-item img{height:64px;max-width:180px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff}
@media(max-width:680px){.oto-co-prods-item img{height:48px;max-width:140px}}
.oto-co-device{width:100%;border-radius:12px;margin-top:12px}
.oto-co-cols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin:12px 0}
.oto-co-cols2 img{width:100%;border-radius:12px}
.oto-co-norms{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}
.oto-co-norms div{border:1px solid var(--line);border-radius:10px;padding:12px;text-align:center}
.oto-co-serts{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.oto-zoom{cursor:zoom-in}
.oto-zoom-ov{position:fixed;inset:0;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;z-index:9999;cursor:zoom-out;padding:20px;box-sizing:border-box}
.oto-zoom-ov img{max-width:100%;max-height:94vh;border-radius:8px;background:#fff}
.oto-co-serts img{height:180px;border:1px solid var(--line);border-radius:10px}
.smartfilter-btns .btn{flex:1;min-width:0;margin:0;padding:8px 6px;font-size:14px;line-height:1.2;text-align:center;white-space:nowrap}
.smartfilter-catsel{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px;margin-bottom:12px}
