:root {
    --navy: #00488f;
    --navy-deep: #012c58;
    --navy-ink: #02182f;
    --gold: #f5b82a;
    --gold-deep: #e0a20f;
    --ink: #172033;
    --muted: #5c6b80;
    --line: #e3e8f0;
    --bg: #f4f7fb;
    --white: #fff;
    --ok: #157a45;
    --danger: #b42318;
    --shadow: 0 10px 30px rgba(1, 44, 88, .08);
    --radius: 16px;
    --header: 96px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.03em; color: var(--navy-deep); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar { background: var(--navy-ink); color: #d7e4f5; font-size: 13px; }
.topbar-inner, .header-row, .section-head, .catalog-bar, .hero-actions, .footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { min-height: 38px; }
.topbar p { margin: 0; }
.topbar a { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 1px 0 rgba(1, 44, 88, .04); }
.header-row { min-height: var(--header); }
.logo img { height: 80px; width: auto; max-width: 240px; object-fit: contain; }
.main-nav, .header-tools { display: flex; align-items: center; gap: 14px; }
.main-nav a, .nav-drop-btn { color: var(--navy-deep); font-weight: 650; background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.nav-quote { display: none; }
.main-nav a.is-active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-drop { position: relative; }
.mega { display: none; position: absolute; top: 100%; left: 0; width: 280px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.is-open .mega { display: grid; }
.mega a { padding: 8px 10px; border-radius: 8px; }
.mega a:hover { background: var(--bg); }
.mega-all { font-weight: 750; }
.search-form { display: flex; align-items: center; width: 280px; height: 46px; border: 1px solid #cfd8e6; border-radius: 999px; background: var(--bg); padding: 0 6px 0 16px; }
.search-form:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 72, 143, .12); }
.search-form input { flex: 1; border: 0; background: transparent; min-width: 0; outline: none; }
.search-form button, .icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; }
.search-form svg, .icon-btn svg, .cart-link svg { width: 18px; height: 18px; }
.cart-link { position: relative; color: var(--navy-deep); display: grid; place-items: center; width: 42px; height: 42px; }
.cart-link span { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; border-radius: 99px; background: var(--gold); color: var(--navy-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 750; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { width: 100%; border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-block { width: 100%; }
.site-header .nav-quote { display: none; }
.burger, .search-mobile, .filter-open, .filters-head .icon-btn { display: none; }
.hero { position: relative; min-height: 460px; background: linear-gradient(90deg, #f7f9fc 0%, #f7f9fc 46%, #e7eef8 100%); overflow: hidden; }
.hero-slide { display: none; min-height: 460px; position: relative; }
.hero-slide.is-active { display: block; }
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,249,252,.96) 0 30%, rgba(247,249,252,.78) 42%, rgba(247,249,252,0) 58%); }
.hero-copy { position: relative; z-index: 1; padding: 72px 0 88px; max-width: 520px; }
.hero-plain { padding: 84px 0; }
.eyebrow { margin: 0 0 8px; color: var(--navy); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
.lead { font-size: 18px; color: #31445f; }
.hero-actions { justify-content: flex-start; margin-top: 22px; flex-wrap: wrap; }
.hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(1, 44, 88, .25); cursor: pointer; }
.hero-dots .is-active { background: var(--navy); width: 22px; }
.hero-arrow { position: absolute; bottom: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 8px 18px rgba(1, 44, 88, .18); cursor: pointer; }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-arrow:hover { background: var(--gold); }
.section { padding: 56px 0; }
.section-muted { background: var(--bg); }
.section-line { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 22px; }
.section-head h2, .product-info h1, .page-hero h1 { margin: 0; }
.section-head a, .text-link { font-weight: 750; }
.category-grid, .product-grid, .brand-grid { display: grid; gap: 16px; }
.category-grid { grid-template-columns: repeat(6, 1fr); }
.category-card, .product-card, .brand-card, .form-card, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.category-card { padding: 10px 10px 14px; text-align: center; color: var(--navy-deep); box-shadow: var(--shadow); }
.category-card strong { display: block; margin-top: 10px; font-size: 14px; }
.category-photo { display: grid; place-items: center; aspect-ratio: 1.45; border-radius: 12px; overflow: hidden; background: #eef3f9; }
.category-icon { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.category-icon svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-block-main .category-icon { width: 92px; height: 92px; border-radius: 16px; }
.category-block-main .category-icon svg { width: 40px; height: 40px; }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1; background: #f6f8fb; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); background: repeating-linear-gradient(135deg, #f6f8fb, #f6f8fb 12px, #eef2f7 12px, #eef2f7 24px); }
.product-fallback.large { min-height: 360px; }
.flag { position: absolute; top: 10px; left: 10px; border-radius: 99px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.flag-new { background: var(--navy); color: #fff; }
.flag-promo { left: auto; right: 10px; background: var(--gold); color: var(--navy-ink); }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.product-body h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.product-body h3 a { color: var(--navy-ink); }
.product-brand, .product-sku { margin: 0; color: var(--muted); font-size: 13px; }
.product-price { margin: 4px 0 10px; }
.product-price strong { color: var(--navy-deep); font-size: 18px; }
.product-price s, .price-box s { color: var(--muted); margin-right: 6px; }
.price-ask { font-size: 16px !important; }
.product-body .btn { margin-top: auto; }
.brand-row, .brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.brand-row a, .brand-card { min-height: 92px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.brand-row img, .brand-card img { max-height: 54px; width: auto; margin: 0 auto 8px; object-fit: contain; }
.benefits { background: #eaf1f9; padding: 28px 0; }
.benefits-grid, .split, .contact-grid, .detail-grid, .catalog-layout { display: grid; gap: 18px; }
.benefits-grid { grid-template-columns: repeat(4, 1fr); }
.benefits article { background: #fff; border-radius: 14px; padding: 16px; }
.benefits h3, .cta-panel h2 { margin: 0 0 6px; }
.benefits p, .cta-panel p { margin: 0; color: var(--muted); }
.split { grid-template-columns: 1.2fr .8fr; align-items: center; }
.cta-panel { background: var(--navy-deep); color: #fff; border-radius: 20px; padding: 28px; }
.cta-panel h2, .cta-panel p { color: #fff; }
.cta-panel .btn { margin-top: 16px; }
.site-footer { background: var(--navy-ink); color: #d5e0ee; padding-top: 42px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 24px; }
.footer-logo { height: 72px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 10px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.site-footer h2 { color: #fff; font-size: 16px; }
.site-footer a, .site-footer p { color: #d5e0ee; display: block; margin: 0 0 8px; }
.footer-btn { margin-top: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; min-height: 54px; font-size: 13px; }
.page-hero { background: var(--bg); padding: 36px 0 20px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.breadcrumb, .breadcrumb a { color: var(--muted); font-size: 14px; }
.catalog-layout { grid-template-columns: 270px 1fr; align-items: start; }
.filters { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.filters fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.filters legend, .filter-label { font-weight: 750; color: var(--navy-deep); margin-bottom: 8px; }
.filters label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; color: var(--ink); font-size: 14px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range input, .catalog-bar select, .form-card input, .form-card textarea, .stack-form input, .stack-form textarea, .stack-form select { width: 100%; border: 1px solid #d5deea; border-radius: 10px; padding: 10px 12px; background: #fff; }
.catalog-bar { margin-bottom: 14px; }
.catalog-bar p { margin: 0; color: var(--muted); }
.empty, .empty-cart { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; background: var(--bg); }
.empty-cart { display: grid; gap: 12px; justify-items: start; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; }
.pagination .is-current { background: var(--navy); color: #fff; }
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; }
.gallery-main { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #f6f8fb; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #fff; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(28px, 4vw, 40px); }
.availability { display: inline-flex; border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 750; background: #e8f6ee; color: var(--ok); }
.availability.is-unavailable { background: #fdecec; color: var(--danger); }
.availability.is-on_request { background: #fff6df; color: #8a5a00; }
.price-box { margin: 16px 0; padding: 16px; border-radius: 14px; background: var(--bg); }
.price-box strong { font-size: 32px; color: var(--navy-deep); }
.wholesale { margin: 8px 0 0; color: var(--navy); font-weight: 700; }
.meta-list, .checks { list-style: none; padding: 0; margin: 0 0 16px; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-list span { color: var(--muted); }
.detail-grid { grid-template-columns: 1.2fr .8fr; margin-top: 36px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 650; }
.category-list, .quote-list { display: grid; gap: 14px; }
.category-block { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.category-block-main { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; color: inherit; }
.category-block-main img { width: 180px; height: 110px; object-fit: cover; border-radius: 12px; }
.category-block small { display: block; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-row a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; font-size: 13px; }
.prose { max-width: 760px; display: grid; gap: 12px; }
.contact-grid { grid-template-columns: 1.2fr .8fr; }
.form-card, .notice { padding: 16px; }
.form-card, .stack-form label { display: grid; gap: 6px; font-weight: 680; }
.form-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { border-radius: 12px; margin: 0 0 10px; }
.notice-stack { padding-top: 16px; }
.notice-success { background: #e8f6ee; color: #0f5a32; }
.notice-error { background: #fdecec; color: var(--danger); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 10px 24px rgba(16, 94, 48, .28); }
.wa-float svg { width: 32px; height: 32px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(2, 24, 47, .45); z-index: 32; }
body.nav-open { overflow: hidden; }
@media (max-width: 1020px) {
    .category-grid, .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout, .product-layout, .split, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
    .filters { position: static; }
    .header-quote, .search-form { display: none; }
    .search-mobile, .burger { display: flex; }
    .search-mobile { gap: 8px; width: 100%; padding: 0 16px 12px; }
    .search-mobile input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid #cfd8e6; padding: 0 16px; background: var(--bg); }
    .search-mobile button { flex-shrink: 0; white-space: nowrap; border: 0; border-radius: 999px; background: var(--navy); color: #fff; padding: 0 16px; font-weight: 750; }
    .site-header { z-index: 40; }
    .header-row { gap: 10px; }
    .header-tools { margin-left: auto; }
    .main-nav { display: none; position: fixed; z-index: 35; left: 0; right: 0; width: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 18px 28px; gap: 0; overflow: auto; box-shadow: 0 18px 30px rgba(1, 44, 88, .08); }
    .main-nav > a, .main-nav .nav-drop-btn { width: 100%; text-align: left; padding: 14px 2px; border-bottom: 1px solid var(--line); box-shadow: none; }
    .main-nav a.is-active { box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }
    .main-nav.is-open { display: flex; z-index: 45; }
    .main-nav a.nav-quote { display: inline-flex; width: 100%; margin-top: 18px; background: var(--gold); color: var(--navy-ink); border-bottom: 0; box-shadow: none; }
    .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
    .filter-open { display: inline-flex; margin-bottom: 12px; }
    .filters { display: none; }
    .filters.is-open { display: block; position: fixed; z-index: 45; inset: auto 0 0 0; max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0; }
    .filters-head { display: flex; justify-content: space-between; align-items: center; }
    .filters-head .icon-btn { display: grid; background: var(--bg); color: var(--navy); }
}
@media (max-width: 720px) {
    .category-grid, .product-grid, .brand-row, .brand-grid, .benefits-grid, .footer-grid, .form-row, .form-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid, .form-row, .form-grid, .category-block-main { grid-template-columns: 1fr; }
    .topbar { font-size: 12px; }
    .topbar-inner { gap: 8px; min-height: 32px; }
    .topbar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar a { flex-shrink: 0; }
    .logo img { height: 64px; max-width: 190px; }
    .hero, .hero-slide { min-height: 560px; }
    .hero-slide::after { background: linear-gradient(180deg, rgba(247,249,252,.97) 0 42%, rgba(247,249,252,.55) 58%, rgba(247,249,252,0) 76%); }
    .hero-slide img { object-position: center 78%; }
    .hero-copy { padding: 28px 0 92px; max-width: none; }
    .hero h1 { font-size: 34px; }
    .lead { font-size: 16px; }
    .hero-actions .btn { min-height: 42px; padding: 0 14px; }
    .hero-arrow { width: 38px; height: 38px; bottom: 12px; }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }
    .hero-dots { bottom: 20px; }
    .product-grid { gap: 10px; }
    .product-body { padding: 10px; }
    .product-body h3 { font-size: 14px; }
    .product-price strong { font-size: 15px; }
    .section { padding: 36px 0; }
    .footer-base { align-items: flex-start; flex-direction: column; gap: 4px; padding: 14px 0 24px; }
}
