/* ============================================================
   ЭКСОКВАРЦ — единый style.css (Единый бренд-стиль + Адаптив)
============================================================ */

:root {
    --brand-900: #0c3b1f;
    --brand-800: #14532d;
    --brand-700: #166534;
    --brand-600: #15803d;
    --brand-500: #22a04a;
    --brand-400: #4ade80;
    --brand-300: #86efac;
    --brand-100: #dcfce7;
    --brand-50: #f0fdf4;
    
    --accent-500: #ff7a1a;
    --accent-600: #ea580c;
    --accent-400: #fb923c;
    
    --teal-700: #0f766e;
    --teal-500: #14b8a6;
    
    --ink: #0b2a14;
    --muted: #4b6353;
    --line: #cfe3d2;
    
    --surface: #fff;
    --bg: #f3faf4;
    
    --c-call: #ff7a1a;
    --c-mail: #166534;
    --c-max: #2f6fe4;
    --c-wa: #25d366;
    --c-tg: #229ed9;
    
    --p-call: #ff7a1a;
    --p-max: #2f6fe4;
    --p-wa: #25d366;
    --p-tg: #229ed9;
    
    --radius: 16px;
    --radius-sm: 10px;
    
    --shadow: 0 10px 30px rgba(12, 59, 31, .12);
    --shadow-sm: 0 4px 14px rgba(12, 59, 31, .08);
    
    --container: 1240px;
    --header-h: 74px;
    --mbar-h: 62px;
}

/* ---------- БАЗА ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
    width: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
}

img, svg, video {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

a {
    color: var(--brand-700);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container);
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-inline: auto;
    box-sizing: border-box;
}

.narrow {
    max-width: 900px;
}

.center {
    text-align: center;
}

.hide-sm, .hide-md {
    display: inline;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    padding: 10px 14px;
    z-index: 999;
    border-radius: 8px;
}

.skip-link:focus {
    left: 8px;
}

body.no-scroll {
    overflow: hidden;
}

a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible, 
[tabindex]:focus-visible {
    outline: 3px solid rgba(34, 160, 74, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ФИКС OVERFLOW ДЛЯ СЕТОК */
.hero-grid > *, .split-grid > *, .product-grid > *, .cta-grid > *, .footer-grid > *,
.contacts-grid > *, .features-grid > *, .market-grid > *, .cards-grid > *, .products-grid > *,
.form-grid > *, .dc__grid > *, .dp-grid > *, .market-card > *, .buy-box, .product-buy,
.product-gallery, .thumbs, .spec-table {
    min-width: 0;
}

h1, h2, h3, .section-title, .page-head h1, .product-page h1, .hero h1,
.product-short, .lead, .market-card h3, .category-card h3, .hub-card h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.15em;
}

/* ---------- КНОПКИ (КОНТРАСТНЫЕ И ЗАМЕТНЫЕ НА ЛЮБОМ ФОНЕ) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none !important;
    font: inherit;
    text-align: center;
    max-width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--brand-600);
    color: #fff !important;
    border-color: var(--brand-600);
    box-shadow: 0 6px 16px rgba(21, 128, 61, .24);
}
.btn-primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff !important;
}

/* Четкая контрастная кнопка (для "Весь каталог", "Рассчитать количество" и др.) */
.btn-secondary {
    background: #ffffff;
    color: var(--brand-800) !important;
    border: 2px solid var(--brand-600);
    box-shadow: 0 4px 14px rgba(12, 59, 31, .08);
}
.btn-secondary:hover {
    background: var(--brand-600);
    color: #ffffff !important;
    border-color: var(--brand-600);
    box-shadow: 0 6px 18px rgba(21, 128, 61, .22);
}

.btn-accent {
    background: var(--accent-500);
    color: #fff !important;
    border-color: var(--accent-500);
    box-shadow: 0 6px 18px rgba(234, 88, 12, .30);
}
.btn-accent:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff !important;
}

.btn-light {
    background: #ffffff;
    color: var(--brand-900) !important;
    border-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.btn-light:hover {
    background: var(--brand-50);
    color: var(--brand-700) !important;
}

.btn-outline {
    background: #ffffff;
    color: var(--brand-700) !important;
    border: 2px solid var(--brand-400);
}
.btn-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-600);
    color: var(--brand-900) !important;
}

.btn-outline--light {
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, .35);
}
.btn-outline--light:hover {
    background: rgba(255, 255, 255, .18);
    border-color: #ffffff;
    color: #ffffff !important;
}

.btn-block { width: 100%; }

/* ---------- ШАПКА (ВСЕГДА СВЕТЛАЯ) ---------- */
.site-header { position: relative; z-index: 60; background: #fff; width: 100%; }

.topbar {
    background: linear-gradient(90deg, var(--brand-900), var(--brand-800));
    color: #d8f3df;
    font-size: 13px;
}

.topbar-inner, .header-inner, .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-inner { min-height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #eafff0; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: none; }
.tb-cap { opacity: .75; font-weight: 700; }
.tb-mp { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.tb-mp:hover { transform: translateY(-1px); }

.header-main {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    width: 100%;
}

.header-main.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(12, 59, 31, 0.10);
}

.header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: var(--header-h);
    gap: 12px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: inherit;
    flex: 0 1 auto;
    min-width: 0;
}

.brand img {
    width: 165px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    max-width: 100%;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-700);
    background: var(--brand-50);
    text-decoration: none;
}

.has-dd { position: relative; }
.has-dd .dd-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.has-dd.open .dd-toggle .icon, .has-dd:hover .dd-toggle .icon { transform: rotate(180deg); }

.submenu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 60;
}

.has-dd.open .submenu { display: block; }

@media (hover: hover) {
    .has-dd:hover .submenu, .has-dd:focus-within .submenu { display: block; }
}

.submenu a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; transition: background .2s ease, color .2s ease; }
.submenu a .icon { color: var(--brand-600); width: 18px; height: 18px; }
.submenu a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.submenu .sub-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.submenu .sub-all a { color: var(--accent-600); font-weight: 800; }
.submenu .sub-all a .icon { color: var(--accent-600); margin-left: auto; }

.comm-row { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.comm-row-lg { gap: 10px; }

.comm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(12, 59, 31, .16);
    transition: transform .18s, box-shadow .18s, background .18s;
    flex: 0 0 auto;
    overflow: hidden;
}

.comm .icon { width: 19px; height: 19px; stroke-width: 2; }
.comm:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 20px rgba(12, 59, 31, .25); text-decoration: none; }

.comm-call { background: var(--c-call); }
.comm-mail { background: var(--c-mail); }
.comm-max  { background: var(--c-max); }
.comm-wa   { background: var(--c-wa); }
.comm-tg   { background: var(--c-tg); }

.comm-row-lg .comm { width: 46px; height: 46px; }
.comm-row-lg .comm .icon { width: 22px; height: 22px; }

.comm-txt { font-weight: 800; font-size: 12px; letter-spacing: .3px; line-height: 1; font-family: inherit; white-space: nowrap; }

.header-actions { display: none; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--brand-300);
    border-radius: 12px;
    background: var(--brand-50);
    cursor: pointer;
    padding: 0;
    align-items: center;
    flex: 0 0 auto;
    transition: background .2s ease, border-color .2s ease;
}

.burger:hover {
    background: var(--brand-100);
}

.burger span { display: block; width: 20px; height: 2px; background: var(--brand-800); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- МАРКЕТПЛЕЙСЫ ---------- */
.mp-round {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    border-radius: 30%; overflow: hidden; line-height: 0; background: transparent;
    transition: transform .18s, box-shadow .18s;
}
.mp-round:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 16px rgba(12, 59, 31, .22); }
.mp-round-sm { width: 24px; height: 24px; }
.mp-round-md { width: 44px; height: 44px; }
.mp-round-lg { width: 64px; height: 64px; border-radius: 26%; }
.mp-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border-radius: inherit !important; padding: 0 !important; background: transparent !important; }

.mp-sq { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mp-sq-label { font-weight: 800; font-size: 14px; color: var(--brand-900); }
.mp-sq-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mp-sq-row--dark .mp-sq-label { color: #dff3e4; }

/* ---------- МОБИЛЬНЫЙ DRAWER (В ЕДИНОМ СТИЛЕ САЙТА) ---------- */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(12, 59, 31, .45); backdrop-filter: blur(3px);
    z-index: 90; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.drawer-overlay.visible { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(370px, 88vw);
    background: #ffffff; z-index: 95; display: flex; flex-direction: column;
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -12px 0 40px rgba(12, 59, 31, .18);
    color: var(--ink);
}
.nav-drawer.open { transform: translateX(0); }

.drawer-head {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 10px 16px;
    background: var(--brand-50);
    border-bottom: 1px solid var(--line);
    min-height: 60px;
}

.drawer-close {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--brand-300);
    background: #ffffff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--brand-800); transition: background .2s, color .2s, transform .25s;
}
.drawer-close .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.drawer-close:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: rotate(90deg); }

.drawer-scroll {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 8px 16px 16px; display: flex; flex-direction: column;
}

.d-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    text-align: left; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--line);
    background: none; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 800;
    color: var(--brand-900); border-radius: 8px; transition: background .2s, color .2s;
}
.d-item:hover, .d-item.active {
    color: var(--brand-700);
    background: var(--brand-50);
    text-decoration: none;
}

.d-chev { display: inline-flex; color: var(--brand-600); transition: transform .2s; }
.d-chev .icon { width: 18px; height: 18px; }
.acc.open > .d-item { background: var(--brand-50); color: var(--brand-700); border-bottom-color: transparent; }
.acc.open .d-chev { transform: rotate(180deg); }

.acc-body {
    display: none;
    padding: 6px 12px;
    margin: 4px 0 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.acc.open .acc-body { display: block; }

.d-sub {
    display: block; padding: 10px 4px;
    border-bottom: 1px dashed var(--line);
    font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.d-sub:last-child { border-bottom: 0; }
.d-sub:hover { color: var(--brand-700); text-decoration: none; }
.d-sub--all { color: var(--accent-600) !important; font-weight: 800; }

.d-mp {
    margin-top: 14px;
    padding: 14px;
    background: var(--brand-50);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.d-mp-cap {
    display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
    color: var(--brand-800); font-weight: 800; margin-bottom: 10px;
}

.drawer-cta {
    flex: 0 0 auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
    display: grid;
    gap: 8px;
}

.pill {
    display: flex; align-items: center; justify-content: flex-start; text-align: left;
    padding: 10px 14px; gap: 10px; min-height: 46px; border-radius: 12px;
    color: #fff; font-weight: 800; font-size: 15px;
    box-shadow: 0 4px 12px rgba(12, 59, 31, .12);
    transition: transform .18s, filter .18s;
}
.pill .icon { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2.2; flex: 0 0 auto; }
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.pill-call { background: var(--accent-500); }
.pill-max  { background: var(--p-max); }
.pill-wa   { background: var(--p-wa); }
.pill-tg   { background: var(--p-tg); }

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.bc-wrap { padding: 12px 0 0; }
.bc-wrap:empty, .bc-wrap:not(:has(.breadcrumbs)) { display: none !important; padding: 0 !important; }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li+li::before { content: "/"; margin-right: 6px; color: #9bb8a3; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { color: var(--ink); }

/* ---------- HERO ---------- */
.hero { padding: 42px 0 28px; background: radial-gradient(circle at 12% 18%, rgba(34, 160, 74, .16), transparent 36%), linear-gradient(135deg, #fff 0%, #eafaf0 100%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 28px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 14px;
    border-radius: 999px; background: #fff; color: var(--brand-700); font-weight: 800; box-shadow: var(--shadow-sm);
    max-width: 100%;
    font-size: 14px;
}

.hero h1 { font-size: clamp(28px, 4vw, 50px); line-height: 1.08; margin: 0 0 14px; color: var(--brand-900); }
.lead { font-size: 18px; color: #2c4a36; margin: 0 0 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-actions.center { justify-content: center; }

.hero-usp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #23402c; }
.hero-usp li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-usp .icon { color: var(--brand-600); }

.hero-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-card h2 { margin: 0 0 12px; font-size: 22px; color: var(--brand-900); }

.price-box { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--ink); }
.price-box strong { font-size: 34px; color: var(--accent-600); line-height: 1; }
.price-box span:not(.old-price) { color: var(--muted) !important; font-weight: 700; font-size: 14px; }
.old-price { color: #8aa392; text-decoration: line-through; font-size: 16px; font-weight: 600; }

.hero-badges { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-badges span { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-900); }
.hero-badges .icon { color: var(--brand-600); }

/* ---------- HERO С ФОТОГРАФИЕЙ ---------- */
.hero--shipment { position: relative; isolation: isolate; min-height: clamp(520px, calc(100svh - var(--header-h) - 34px), 760px); padding: 0; overflow: hidden; color: #fff; background: #173c25; }
.hero-shipment-photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-shipment-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
.hero-shipment-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg, rgba(5, 34, 17, .88) 0%, rgba(5, 34, 17, .72) 38%, rgba(5, 34, 17, .35) 70%, rgba(5, 34, 17, .18) 100%), linear-gradient(0deg, rgba(5, 34, 17, .45), transparent 58%); }
.hero--shipment > .container { position: relative; z-index: 1; }
.hero--shipment .hero-grid { min-height: inherit; grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 6vw, 78px); padding-bottom: clamp(36px, 6vw, 78px); }
.hero--shipment .hero-copy { max-width: 760px; }
.hero--shipment .eyebrow { background: rgba(255, 255, 255, .96); color: var(--brand-800); }
.hero--shipment h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero--shipment .lead { color: #f0fff4; text-shadow: 0 1px 10px rgba(0, 0, 0, .2); }
.hero--shipment .hero-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.hero--shipment .hero-usp .icon { color: #86efac; }
.hero--shipment .hero-card { background: rgba(255, 255, 255, .98); color: var(--ink); border-color: rgba(255, 255, 255, .85); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); backdrop-filter: blur(4px); }
.hero--shipment .hero-card p { color: var(--muted); margin: 0 0 10px; font-size: 14.5px; }
.hero--shipment .hero-card p strong { color: var(--brand-900); }
.hero--shipment .hero-card .btn-accent { width: 100%; margin-top: 6px; }

.trust-bar { background: #fff; border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.trust-grid > div { display: flex; align-items: center; gap: 12px; color: var(--brand-900); min-width: 0; }
.trust-grid .icon { width: 28px; height: 28px; color: var(--brand-600); }
.trust-grid strong { display: block; font-size: 15px; }
.trust-grid span { color: var(--muted); font-size: 13px; }

/* ---------- СЕКЦИИ И КАРТОЧКИ ---------- */
.section { padding: 52px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: linear-gradient(135deg, var(--brand-900), var(--teal-700)); color: #fff; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; color: var(--brand-900); font-weight: 800; line-height: 1.2; }
.section-dark .section-title, .section-title.light { color: #fff; }
.section-lead { max-width: 820px; color: var(--muted); margin: 0 0 26px; font-size: 16.5px; }
.center .section-lead { margin-inline: auto; }

.cards-grid, .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.category-card, .hub-card, .product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.category-card:hover, .hub-card:hover, .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--brand-400);
    text-decoration: none;
}
.category-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); margin-bottom: 12px; }
.category-icon .icon { width: 26px; height: 26px; }
.category-card h3, .category-card h2, .hub-card h3, .product-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--brand-900); font-weight: 800; line-height: 1.3; }
.category-card p, .hub-card p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent-600); font-size: 14.5px; }

.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--brand-900); }
.check-list .icon { color: var(--brand-600); margin-top: 3px; }

.offer-card { background: linear-gradient(135deg, var(--brand-800), var(--brand-900)); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--brand-600); }
.offer-card h3 { margin-top: 0; color: #fff; }
.offer-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.offer-row:last-of-type { border-bottom: 0; }

/* ---------- ПАЛЛЕТНЫЙ БОРТ ---------- */
.pallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pallet-item { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 20px; min-width: 0; }
.pallet-item .icon { width: 32px; height: 32px; color: var(--accent-400); margin-bottom: 10px; }
.pallet-item h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.pallet-item p { margin: 0; color: #d8f3df; font-size: 14.5px; }
.pallet-photo { margin: 26px 0 0; text-align: center; }
.pallet-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); }
.pallet-photo figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: #bfe6cb; max-width: 820px; margin-inline: auto; }

/* ---------- ВИДЖЕТ ОТЗЫВОВ SMARTWIDGETS ---------- */
.sw-app { width: 100%; max-width: 100%; overflow: hidden; }

/* ---------- КАЛЬКУЛЯТОР ДОСТАВКИ ПЭК И КОРЗИНА (.dp) ---------- */
.dp { background: linear-gradient(135deg, #fff 0%, #eafaf0 100%); border-top: 1px solid var(--line); }

.dp-grid { 
    display: grid; 
    grid-template-columns: 1.05fr .95fr; 
    gap: 24px; 
    align-items: stretch; 
}

.dp-panel, .dp-aside { 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    padding: 22px; 
    box-shadow: var(--shadow-sm); 
    min-width: 0; 
}

.dp-aside, .q-invoice-sticky { 
    background: linear-gradient(135deg, var(--brand-900), var(--teal-700)); 
    color: #eafff1; 
    border-color: rgba(255, 255, 255, .12); 
    position: -webkit-sticky;
    position: sticky; 
    align-self: start;
    z-index: 35;
}

@media (min-width: 993px) {
    .dp-grid { align-items: stretch !important; }
    .q-invoice-step-1 { position: -webkit-sticky !important; position: sticky !important; top: 86px !important; align-self: start !important; z-index: 35 !important; }
    .q-invoice-step-2 { position: -webkit-sticky !important; position: sticky !important; top: 86px !important; align-self: start !important; z-index: 35 !important; }
}

.dp-aside-title { margin: 0 0 16px; font-size: 21px; line-height: 1.2; color: #fff; }
.dp-form { display: grid; gap: 14px; }
.dp-field { display: grid; gap: 7px; min-width: 0; }
.dp-field span { font-size: 13px; font-weight: 800; color: var(--brand-900); }
.dp-aside .dp-field span { color: #cfeed8; }
.dp-field input, .dp-field select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
.dp-field input:focus, .dp-field select:focus { outline: 3px solid rgba(34, 160, 74, .22); border-color: var(--brand-500); }
.dp-field--full { grid-column: 1 / -1; }

.dp-result { display: grid; gap: 9px; }
.dp-row { 
    display: flex !important; 
    flex-direction: row !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    gap: 12px !important; 
    padding: 8px 0 !important; 
    border-bottom: 1px solid rgba(255, 255, 255, .14) !important; 
    font-size: 14.5px !important; 
}
.dp-row:last-child { border-bottom: 0 !important; }
.dp-row span { color: #cfeed8 !important; white-space: nowrap !important; }
.dp-row b { color: #fff !important; font-weight: 900 !important; white-space: nowrap !important; text-align: right !important; }
.dp-row--main b { color: var(--accent-400) !important; font-size: 20px !important; }
.dp-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.dp-aside .dp-note { color: #bfe6cb; }
.dp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dp-cta .btn { flex: 1 1 220px; }

.file-dropzone { position: relative; margin-top: 4px; }
.file-dropzone-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 5; }
.file-dropzone-label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border: 2px dashed var(--brand-300); border-radius: 12px; cursor: pointer; transition: .2s; }
.file-dropzone:hover .file-dropzone-label { border-color: var(--brand-600); background: var(--brand-50); }
.file-dropzone-icon { font-size: 1.25rem; line-height: 1; }
.file-label-text { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.file-chosen-name { font-size: 0.95rem; color: var(--brand-800); font-weight: 800; word-break: break-all; }

/* ---------- ФОРМЫ / КВИЗ / ПОИСК ---------- */
.quiz, .search-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.search-form { display: flex; gap: 10px; align-items: stretch; }
.search-form input { flex: 1 1 auto; width: auto; min-width: 0; }
.search-form button { flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--brand-900); }
label span { font-size: 14px; color: var(--muted); font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(34, 160, 74, .22); border-color: var(--brand-500); }
.full { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 14px 0; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border-radius: 4px; cursor: pointer; accent-color: var(--brand-600); }
.consent span { font-size: 13px; line-height: 18px; color: var(--muted); }
.consent a { font-size: 13px; line-height: 18px; color: var(--brand-700); text-decoration: underline; }
.form-message { padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.form-message.success { background: var(--brand-100); color: var(--brand-800); }
.form-message.error { background: #fff1f2; color: #b91c1c; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }
.is-invalid { border-color: #dc2626 !important; }

/* ---------- ЧАСТЫЕ ВОПРОСЫ (FAQ) ---------- */
.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease;
}
.faq-list details[open] {
    border-color: var(--brand-500);
}
.faq-list summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 16.5px;
    color: var(--brand-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}
.faq-list details[open] summary::after {
    content: "−";
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}
.faq-list p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

.search-results { display: grid; gap: 12px; }
.search-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.search-type { display: inline-block; font-size: 12px; font-weight: 800; color: var(--accent-600); margin-bottom: 6px; }
.search-item p { margin: 6px 0 0; color: var(--muted); }

/* ---------- МАРКЕТПЛЕЙСЫ / ФИНАЛЬНЫЙ БЛОК CTA ---------- */
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.market-card { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    padding: 20px; 
    box-shadow: var(--shadow-sm); 
    transition: .2s; 
    color: inherit; 
    min-width: 0;
    max-width: 100%;
}
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-400); text-decoration: none; }
.market-card > .mc-text { flex: 1 1 auto; min-width: 0; }
.market-card h3 { margin: 0 0 4px; font-size: 20px; color: var(--brand-900); font-weight: 800; }
.market-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.market-card .go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent-600); flex: 0 0 auto; white-space: nowrap; }

.cta-section {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--teal-700) 100%);
    color: #fff;
    padding: 52px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.cta-section h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); color: #fff; font-weight: 800; line-height: 1.2; }
.cta-section p { margin: 0; color: #d8f3df; font-size: 16px; line-height: 1.55; max-width: 680px; }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.cta-actions {
    display: grid;
    gap: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
}

/* ---------- КНОПКИ МЕССЕНДЖЕРОВ (В ЕДИНОМ СТИЛЕ БРЕНДА) ---------- */
.messengers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.messengers.vertical {
    grid-template-columns: 1fr;
    gap: 8px;
}

.messengers a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.messengers a .icon {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    flex: 0 0 auto;
}

.messengers a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
    text-decoration: none !important;
}

/* Фирменные цвета для Telegram, WhatsApp и MAX */
.messengers a:nth-child(1),
.messengers a[href*="t.me"] {
    background: var(--c-tg);
}

.messengers a:nth-child(2),
.messengers a[href*="wa.me"],
.messengers a[href*="whatsapp"] {
    background: var(--c-wa);
}

.messengers a:nth-child(3),
.messengers a[href*="max"] {
    background: var(--c-max);
}

.messengers.vertical a {
    justify-content: flex-start;
    padding-left: 16px;
}

/* ---------- СТРАНИЦЫ / ТОВАР ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.page-head h1 { margin: 0 0 8px; color: var(--brand-900); font-size: clamp(26px, 3vw, 38px); }
.page-head p { margin: 0; color: var(--muted); max-width: 900px; }

.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding-top: 28px; padding-bottom: 28px; }
.product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
#main-product-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--brand-50); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; max-width: 560px; }
.thumb { aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--brand-500); }

.product-category { color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.product-page h1 { margin: 0 0 10px; color: var(--brand-900); }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--accent-500); margin-bottom: 12px; }
.rating-line small { color: var(--muted); }
.product-short { font-size: 17px; color: #2c4a36; }

.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-top: 16px; }
.miniqty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.miniqty .icon { color: var(--brand-600); }
.buy-actions { display: grid; gap: 10px; margin: 14px 0; }
.mini-usp { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--brand-900); font-weight: 600; }
.mini-usp .icon { color: var(--brand-600); }

.product-tabs details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.product-tabs summary { font-weight: 800; font-size: 17px; color: var(--brand-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.product-tabs summary::-webkit-details-marker { display: none; }
.product-tabs summary::after { content: "▾"; color: var(--brand-600); font-size: 18px; transition: transform .2s; }
.product-tabs details[open] summary::after { transform: rotate(180deg); }
.tab-content { padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line); color: #2c4a36; }

.spec-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; word-break: break-word; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }

.features-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features-grid li { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; font-weight: 600; }
.features-grid .icon { color: var(--brand-600); margin-top: 2px; }

.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; box-shadow: var(--shadow-sm); }
.contact-card h2 { margin: 0 0 12px; font-size: 19px; color: var(--brand-900); }
.contact-card p { margin: 0 0 8px; }
.big-link { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--brand-900); overflow-wrap: anywhere; }

.xc__fallback { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; color: var(--muted); }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.f-usp { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 20px; }
.f-usp-item { display: flex; align-items: center; gap: 12px; background: var(--brand-50); border: 1px solid var(--brand-300); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.f-usp-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.f-usp-ic svg { width: 26px; height: 26px; }
.f-usp-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-usp-tx b { font-size: 13.5px; font-weight: 900; text-transform: uppercase; color: var(--brand-900); line-height: 1.2; }
.f-usp-tx i { font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 1.25; }

/* ---------- ФУТЕР ---------- */
.site-footer { background: linear-gradient(180deg, var(--brand-900), #082a16); color: #cfe9d6; padding: 44px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; padding-bottom: 28px; }
.footer-brand img { background: #fff; padding: 6px 10px; border-radius: 10px; width: 160px; height: auto; max-width: 100%; }
.f-about p { color: #bcd9c4; font-size: 14px; }
.f-req { display: grid; gap: 2px; font-size: 13px; color: #9fc6ab; margin: 10px 0; }
.f-mp-cap { font-size: 13px; color: #9fc6ab; margin: 8px 0; }
.site-footer h3 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfe9d6; }
.site-footer a:hover { color: #fff; }
.f-contacts p { margin: 0 0 8px; }
.f-contacts .f-phone a { font-size: 18px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.f-contacts .f-phone small { display: block; color: #9fc6ab; font-weight: 600; font-size: 12px; }
.f-contacts .f-phone small a { font-size: 12px; font-weight: 700; }
.f-contacts .f-mail a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; overflow-wrap: anywhere; }
.f-addr p { font-size: 13px; color: #bcd9c4; margin: 0 0 8px; display: flex; gap: 6px; align-items: flex-start; }
.f-addr .icon { margin-top: 2px; color: #86efac; }
.f-addr strong { color: #fff; }
.f-addr small { color: #9fc6ab; }
.site-footer .comm { box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; font-size: 13px; }
.footer-bottom-inner { flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: #9fc6ab; }

/* ---------- ПЛАВАЮЩИЙ ВИДЖЕТ / МОБИЛЬНАЯ ПАНЕЛЬ ---------- */
.cfab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cfab-main { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(234, 88, 12, .4); position: relative; }
.cfab-main .icon { width: 26px; height: 26px; }
.cfab-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); animation: cfpulse 2.2s infinite; }
@keyframes cfpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); } 70% { box-shadow: 0 0 0 16px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }

.cfab-list {
    position: absolute; bottom: calc(100% + 12px); right: 0; display: flex; flex-direction: column; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
    min-width: 240px; max-width: min(86vw, 320px); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.cfab.open .cfab-list { opacity: 1; visibility: visible; transform: none; }
.cfab-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; width: 100%; min-width: 0; }
.cfab-item:hover { background: var(--brand-50); text-decoration: none; }
.cfab-item .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.cfab-item span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.cfab-item b { font-weight: 800; color: var(--brand-700); }
.cf-call .icon { color: var(--c-call); }
.cf-wa .icon   { color: var(--c-wa); }
.cf-tg .icon   { color: var(--c-tg); }
.cf-max .icon  { color: var(--c-max); }
.cf-mail .icon { color: var(--c-mail); }
.cf-quote .icon{ color: var(--brand-600); }

.mbar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(12, 59, 31, .12);
    width: 100%;
}
.mbar-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; font-weight: 800; font-size: 14.5px; border: 0; cursor: pointer; font-family: inherit; text-decoration: none !important; padding: 8px 10px; }
.mbar-btn .icon { width: 18px; height: 18px; }
.mbar-call { background: var(--c-call); color: #fff; }
.mbar-quote { background: var(--brand-600); color: #fff; }
.mbar-btn:hover { filter: brightness(1.05); }

/* ---------- МОДАЛКИ / LIGHTBOX ---------- */
.modal { width: min(520px, calc(100% - 24px)); margin: auto; border: 0; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(7, 32, 17, .55); backdrop-filter: blur(2px); }
.modal-inner { position: relative; padding: 24px; background: #fff; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-700); transition: background .2s, color .2s, transform .25s; }
.modal-close:hover { background: var(--brand-600); color: #fff; transform: rotate(90deg); }
.modal form { display: grid; gap: 12px; margin-top: 12px; }
dialog:not([open]) { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 26, 14, .9); display: none; place-items: center; padding: 24px; }
.lightbox:not([hidden]) { display: grid; }
.lightbox-fig { margin: 0; display: grid; justify-items: center; gap: 10px; max-width: 100%; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; }
.lightbox-close { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .25s; }
.lightbox-close:hover { background: var(--brand-600); transform: rotate(90deg); }

/* ---------- КАЛЬКУЛЯТОР КОЛИЧЕСТВА (.xc) ---------- */
.xc-section { background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xc { margin-top: 10px; }
.xc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.xc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.xc-panel--dark { background: linear-gradient(135deg, var(--brand-900), var(--teal-700)); color: #eafff1; border-color: rgba(255, 255, 255, .12); overflow: visible; max-height: none; min-height: 0; position: sticky; top: 96px; }
.xc-panel-title { margin: 0 0 16px; font-size: 21px; line-height: 1.2; color: var(--brand-900); }
.xc-panel-title--light { color: #fff; }
.xc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xc-field { display: grid; gap: 7px; min-width: 0; }
.xc-field > span { font-size: 13px; font-weight: 800; color: var(--brand-900); }
.xc-field input, .xc-field select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
.xc-field input:focus, .xc-field select:focus { outline: 3px solid rgba(34, 160, 74, .22); border-color: var(--brand-500); }
.xc-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.xc-fieldset legend { margin: 0 0 10px; font-size: 13px; font-weight: 900; color: var(--brand-900); }
.xc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xc-seg label { position: relative; display: block; min-width: 0; }
.xc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.xc-seg span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-900); font-size: 13.5px; font-weight: 800; line-height: 1.25; text-align: center; cursor: pointer; transition: .15s ease; }
.xc-seg input:checked + span { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.xc-switch { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand-900); }
.xc-switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex: 0 0 auto; }
.xc-result-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 4px 0 18px; min-width: 0; text-transform: uppercase; }
.xc-count, .xc-unit, .xc-model-label { font-size: clamp(24px, 4.5vw, 42px); line-height: 1.05; font-weight: 950; letter-spacing: -.02em; color: #fff; white-space: nowrap; flex: 0 0 auto; }
.xc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.xc-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }
.xc-lines li:last-child { border-bottom: 0; }
.xc-lines span { color: #cfeed8; }
.xc-lines b { color: #fff; font-weight: 900; white-space: nowrap; }
.xc-warning { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 122, 26, .16); border: 1px solid rgba(255, 122, 26, .34); color: #ffe7d1; font-size: 13.5px; line-height: 1.45; }
.xc-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #bfe6cb; }
.xc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xc-cta .btn { flex: 1 1 220px; }

/* =========================================================================
   АДАПТАЦИЯ (МОНОЛИТНЫЙ БЛОК МЕДИА-ЗАПРОСОВ)
========================================================================= */

@media (min-width: 640px) {
    .f-usp { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .f-usp { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* 1. НОУТБУКИ И ПЛАНШЕТЫ (до 1250px) */
@media (max-width: 1250px) {
    .nav-link { padding: 8px 8px; font-size: 13.5px; }
    .header-inner { gap: 10px !important; }
}

@media (max-width: 1150px) {
    .topbar { display: none !important; }
    .main-nav { display: none !important; }
    .header-actions { display: flex !important; margin-left: auto !important; }
    .header-inner > .comm-row { margin-left: auto !important; }
    .burger { display: flex !important; }
    
    .header-main {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 85 !important;
    }
    body {
        padding-top: var(--header-h) !important;
    }
    .header-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
}

/* 2. ПЛАНШЕТЫ И ТЕЛЕФОНЫ (до 992px) */
@media (max-width: 992px) {
    .hide-md { display: none !important; }
    
    .hero-grid, 
    .hero--shipment .hero-grid, 
    .split-grid, 
    .product-grid, 
    .cta-grid, 
    .xc-grid, 
    .dp-grid { 
        grid-template-columns: 1fr !important; 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important; 
    }
    
    .hero-copy, .hero-card, .hero-product-card, .cta-actions {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cards-grid, .products-grid, .trust-grid, .pallet-grid, .form-grid, .choice-grid, .footer-grid, .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .cfab { display: none !important; }
    
    .mbar { display: flex !important; }
    body { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom) + 25px); }

    .dp-aside, .q-invoice-sticky, .xc-panel--dark {
        position: static !important;
        top: auto !important;
    }

    .dp-grid--checkout {
        display: flex !important;
        flex-direction: column !important;
    }
    .dp-grid--checkout .q-invoice-step-2 {
        order: -1 !important;
        position: static !important;
        margin-bottom: 25px !important;
        width: 100% !important;
    }
    .checkout-actions-desktop { display: none !important; }
    .checkout-actions-mobile { display: block !important; }

    .cart-mob-bar {
        position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        z-index: 999 !important; background: #fff !important; border-top: 1px solid var(--brand-400) !important;
        box-shadow: 0 -10px 30px rgba(12, 59, 31, 0.15) !important; padding: 12px 16px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important; box-sizing: border-box !important;
        transform: translateY(150%) !important; opacity: 0 !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
        pointer-events: none !important;
        display: block !important;
    }
    .cart-mob-bar.is-visible {
        transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important;
    }

    .cart-mob-bar > div:first-child { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 10px !important; width: 100% !important; }
    .cart-mob-bar .btn-reset-cart { flex: 0 0 35% !important; width: auto !important; min-width: 0 !important; padding: 12px 5px !important; font-size: 14px !important; }
    .cart-mob-bar .trigger-next-step { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
}

@media (min-width: 993px) {
    .checkout-actions-desktop { display: block !important; }
    .checkout-actions-mobile { display: none !important; }
}

/* 3. УМНАЯ АДАПТАЦИЯ ИКОНОК В ШАПКЕ (ОПТИМАЛЬНОЕ ЗАПОЛНЕНИЕ) */
.comm .comm-txt, .comm-max { display: flex !important; align-items: center; justify-content: center; color: #fff !important; font-weight: 800 !important; font-size: 11.5px !important; }
.header-inner .comm-call, .header-inner .comm-wa, .header-inner .comm-tg { display: none !important; }

@media (min-width: 380px) {
    .header-inner .comm-tg { display: inline-flex !important; }
}
@media (min-width: 430px) {
    .header-inner .comm-wa { display: inline-flex !important; }
}
@media (min-width: 480px) {
    .header-inner .comm-call { display: inline-flex !important; }
}

/* 4. ИДЕАЛЬНЫЙ КОНТРОЛЬ СМАРТФОНОВ (до 768px) */
@media (max-width: 768px) {
    :root {
        --header-h: 62px;
    }

    .topbar, .hide-sm { display: none !important; }

    body {
        padding-top: 62px !important;
    }

    .container, 
    .container.narrow,
    .hero--shipment .hero-grid,
    .trust-grid,
    .product-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        margin-inline: auto !important;
    }

    .hero--shipment .hero-grid {
        padding-top: 26px !important;
        padding-bottom: 30px !important;
    }

    .header-inner {
        height: 62px !important;
        min-height: 62px !important;
        padding: 6px 16px !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .brand {
        flex: 0 1 auto !important;
        max-width: 145px !important;
        margin-right: auto !important;
    }

    .brand img {
        width: 132px !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }

    .header-actions,
    .header-inner > .comm-row {
        margin-left: auto !important;
        gap: 6px !important;
    }

    .header-inner .comm {
        width: 35px !important;
        height: 35px !important;
    }

    .header-inner .comm .icon {
        width: 16px !important;
        height: 16px !important;
    }

    .burger {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    /* СЕТКИ В 1 КОЛОНКУ */
    .cards-grid, .products-grid, .form-grid, .choice-grid, .contacts-grid, 
    .features-grid, .market-grid, .trust-grid, .pallet-grid, .footer-grid, .xc-fields {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    /* ФИКС КАРТОЧЕК МАРКЕТПЛЕЙСОВ (OZON / WB) */
    .market-card {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .market-card .mp-round-lg {
        width: 52px !important;
        height: 52px !important;
    }

    .market-card > .mc-text {
        flex: 1 1 calc(100% - 68px) !important;
        min-width: 0 !important;
    }

    .market-card h3 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    .market-card p {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }

    .market-card .go {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
        padding-top: 10px !important;
        border-top: 1px dashed var(--line) !important;
        justify-content: space-between !important;
        font-size: 14px !important;
    }

    /* ПАНЕЛИ И ФОРМЫ */
    .xc-panel, .dp-panel, .dp-aside, .dp-form, .cart-item, .ws-progress-wrap, .hero-card, .offer-card, .cta-actions {
        width: 100% !important; 
        max-width: 100% !important;
        padding: 16px 14px !important; 
        margin-left: 0 !important; 
        margin-right: 0 !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }

    .xc-seg {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .xc-seg span {
        min-height: 46px !important;
    }

    dialog, .modal, [data-modal], .modal-inner {
        width: calc(100vw - 28px) !important;
        max-width: 100% !important;
        margin: auto !important;
        padding: 20px 14px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .consent { display: flex !important; align-items: flex-start !important; flex-wrap: nowrap !important; width: 100% !important; box-sizing: border-box !important; }
    .consent span { white-space: normal !important; word-wrap: break-word !important; flex: 1 1 auto !important; min-width: 0 !important; line-height: 1.3 !important; }

    input:not([type="checkbox"]):not([type="radio"]), select, textarea { 
        width: 100% !important; 
        max-width: 100% !important; 
        font-size: 16px !important; 
        box-sizing: border-box !important; 
    }
    .modal button[type="submit"] { width: 100% !important; box-sizing: border-box !important; }

    .cart-controls { width: 100% !important; justify-content: space-between !important; margin-top: 10px; }
    .input-qty { flex: 1 !important; width: auto !important; }

    .dp-row { 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: space-between !important; 
        gap: 8px !important; 
        padding: 7px 0 !important;
        flex-wrap: wrap !important;
    }
    .dp-row b { 
        text-align: right !important; 
        font-size: 1.1rem !important; 
        white-space: nowrap !important;
        margin-left: auto !important;
    }
    .dp-row--main b {
        font-size: 1.35rem !important;
    }

    .eyebrow { font-size: 12.5px !important; padding: 6px 12px !important; }
    h1, .hero h1, .page-head h1 { font-size: 24px !important; line-height: 1.2 !important; }
    h2, .section-title, .cta-section h2 { font-size: 20px !important; line-height: 1.25 !important; }
    h3 { font-size: 17px !important; }
    .lead, .section-lead, .cta-section p { font-size: 15px !important; }
    .section, .cta-section { padding: 32px 0 !important; }

    .hero--shipment .hero-usp { grid-template-columns: 1fr !important; }
    .hero-actions { flex-direction: column !important; width: 100% !important; }
    .hero-actions .btn { width: 100% !important; }

    /* Аккуратный ряд из 3 кнопок мессенджеров на мобильных */
    .messengers {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .messengers.vertical {
        grid-template-columns: 1fr !important;
    }
    .messengers a {
        padding: 10px 6px !important;
        font-size: 13px !important;
        min-height: 44px !important;
    }

    .search-form { flex-direction: column !important; }
    .search-form button { width: 100% !important; }
}

/* 5. СВЕРХУЗКИЕ ЭКРАНЫ (до 350px) */
@media (max-width: 350px) {
    .header-inner { padding: 6px 12px !important; }
    .brand img { width: 115px !important; }
    .header-inner .comm-mail { display: none !important; }
    .mbar-btn { font-size: 13px !important; padding: 8px 6px !important; }
    .messengers { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   СТРЕЛКИ ГАЛЕРЕИ И МОБИЛЬНЫЙ БАР КОРЗИНЫ
========================================================================= */
.lightbox-prev, .lightbox-next {
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important;
    width: 54px !important; 
    height: 54px !important; 
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important; 
    font-size: 24px !important; 
    cursor: pointer !important;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.2s ease !important; 
    z-index: 999999 !important;
}

.lightbox-prev:hover, .lightbox-next:hover { 
    background: var(--brand-600) !important; 
    border-color: var(--brand-600) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.lightbox-prev { left: 20px !important; }
.lightbox-next { right: 20px !important; }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 40px !important; 
        height: 40px !important; 
        font-size: 18px !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
    .lightbox-prev { left: 10px !important; }
    .lightbox-next { right: 10px !important; }
}

.cart-mob-bar {
    display: none !important;
}

@media (max-width: 992px) {
    .cart-mob-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
    }
}