/* ============================================================
   MUST IT-distribution — main stylesheet
   ============================================================ */

:root {
    --accent: #e72b32;
    --accent-dark: #c4242c;
    --accent-soft: #fdecec;
    --navy: #305172;
    --navy-2: #27405c;
    --bg: #f2f4f7;
    --card: #ffffff;
    --text: #1a2433;
    --muted: #6b7686;
    --border: #e3e7ee;
    --green: #1f9d55;
    --green-bg: #eaf7ef;
    --amber: #d97706;
    --amber-bg: #fdf3e3;
    --gray: #94a0ae;
    --gray-bg: #eef1f5;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(48, 81, 114, .10), 0 6px 18px rgba(48, 81, 114, .07);
    --shadow-lg: 0 12px 40px rgba(48, 81, 114, .18);
    --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--accent); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #aeb9c6; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 20px; padding: 8px 20px; }
.topbar a { color: #dfe6ee; }
.topbar a:hover { color: #fff; }
.topbar__dot { padding: 0 10px; opacity: .4; }

@media (max-width: 900px) {
    .topbar__info span:first-child, .topbar__info .topbar__dot { display: none; }
    .topbar__inner { justify-content: center; }
}

/* ---------- Header ---------- */
.header { background: var(--card); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--border); }
.header__inner { display: flex; align-items: center; gap: 28px; padding: 14px 20px; justify-content: space-between;}

.logo { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.logo__block { display: flex; flex-direction: column; }
.logo__img { height: 38px; width: auto; display: block; }
.logo__img--sm { height: 30px; }
.logo__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent); color: #fff;
    display: grid; place-items: center;
    font-size: 20px; font-weight: 800; flex: 0 0 auto;
}
.logo--footer .logo__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: .3px; color: var(--navy); display: block; line-height: 1.1; }
.logo__name em { font-style: normal; color: var(--accent); font-weight: 700; }
.logo__tagline { font-size: 12px; color: var(--muted); margin-top: 3px; }

.search { flex: 1; position: relative; max-width: 520px; margin: 0 auto; }
.search__input {
    width: 100%; height: 46px; padding: 0 96px 0 18px;
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; background: var(--bg); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 43, 50, .12); background: #fff; }
.search__btn {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    background: var(--accent); color: #fff; border: 0; border-radius: 8px;
    padding: 0 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.search__btn:hover { background: var(--accent-dark); }

.search-suggest {
    position: absolute; top: 52px; left: 0; right: 0; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 60;
}
.search-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--accent-soft); }
.search-suggest .ss-title { font-size: 14px; }
.search-suggest .ss-meta { font-size: 12px; color: var(--muted); }
.search-suggest .ss-price { margin-left: auto; color: var(--accent); font-weight: 700; white-space: nowrap; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.header__phone svg { color: var(--accent); }
.header__phone:hover { color: var(--accent); }

.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border); color: var(--navy); }
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn__badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--accent); color: #fff; border-radius: 10px;
    font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; display: block; }

/* ---------- Nav ---------- */
.nav { background: var(--card); border-top: 1px solid var(--border); }
.nav__inner { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__link {
    padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text);
    border-bottom: 3px solid transparent; white-space: nowrap; text-transform: uppercase;
    letter-spacing: .4px; font-size: 12.3px;
}
.nav__link:first-child { padding-left: 0; }
.nav__link:hover { color: var(--accent); }
.nav__link--active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); z-index: 200;
    background: #fff; transform: translateX(-100%); transition: transform .25s ease;
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mobile-menu__close { font-size: 30px; background: none; border: 0; cursor: pointer; color: var(--muted); line-height: 1; }
.mobile-menu__nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.mobile-menu__link { display: block; padding: 13px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu__link:hover { color: var(--accent); background: var(--accent-soft); }
.mobile-menu__bottom { border-top: 1px solid var(--border); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__phone { font-weight: 700; color: var(--navy); }
.mobile-menu__email { color: var(--muted); }
.mobile-menu-backdrop { position: fixed; inset: 0; background: rgba(48, 81, 114, .55); z-index: 190; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 10px; padding: 12px 24px;
    font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.2;
    text-align: center; transition: background .15s, color .15s, box-shadow .15s, transform .1s;
    text-decoration: none;
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 15px 34px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--buy { min-width: 220px; }
.btn.is-disabled, .btn:disabled { background: var(--gray); cursor: not-allowed; opacity: .85; }

/* ---------- Hero ---------- */
.hero { background: var(--gray-bg); padding: 62px 0 44px; }
.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin: 0 0 16px; }
.hero__title { font-size: 40px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.5px; color: var(--navy); }
.hero__subtitle { font-size: 17px; color: var(--muted); margin: 0 auto 36px; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__benefits {
    margin-top: 44px; padding-top: 36px; border-top: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px;
}

/* ---------- Advantages ---------- */
.benefit__icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; color: var(--accent);
    display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.benefit h3 { color: var(--navy); margin: 0 0 6px; font-size: 16px; }
.benefit p { color: var(--muted); font-size: 13.5px; margin: 0; }

@media (max-width: 900px) {
    .header__inner { gap: 14px; flex-wrap: wrap; }
    .logo { min-width: 0; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .burger { display: flex; }
    .nav { display: none; }
    .header__phone span { display: none; }
    .hero__title { font-size: 30px; }
}

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section--cats { padding: 14px 0 4px; }
.section--alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section__title { font-size: 26px; margin: 0 0 24px; letter-spacing: -.3px; }
.section__head .section__title { margin-bottom: 0; }
.section__more { color: var(--accent); font-weight: 600; font-size: 14px; }
.section__more:hover { text-decoration: underline; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cat-tile {
    display: flex; align-items: center; gap: 16px; padding: 22px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.cat-tile__icon {
    width: 54px; height: 54px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: 0 0 auto;
}
.cat-tile__name { font-weight: 700; font-size: 16px; }
.cat-tile__count { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__labels { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.card__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 9px; border-radius: 6px; color: #fff; }
.card__label--hit { background: var(--accent); }
.card__label--new { background: var(--amber); }
.card__img { aspect-ratio: 4/3; position: relative; display: block; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.card__body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__group { font-size: 12px; color: var(--accent); font-weight: 600; }
.card__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
.card__title:hover { color: var(--accent); }
.card__sku { font-size: 12px; color: var(--muted); }
.card__specs { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.card__specs span { color: var(--text); }
.card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; }
.card__price { font-size: 18px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.card .btn--add { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
.card__stock { display: flex; align-items: center; gap: 7px; padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); }
.price-request { color: var(--accent); font-weight: 700; font-size: 15px; }

.stock-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stock--in .stock-dot, .card__stock--in .stock-dot { background: var(--green); }
.stock--in { color: var(--green); }
.card__stock--in { color: var(--green); font-weight: 600; }

/* ---------- Catalog ---------- */
/* ---------- Category chips ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--card); font-size: 14px; font-weight: 600; color: var(--text);
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.input, .textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 43, 50, .12); }
.textarea { resize: vertical; }

.checkbox { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; cursor: pointer; user-select: none; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination__link, .pagination__arrow {
    min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: var(--text);
}
.pagination__link:hover, .pagination__arrow:hover { border-color: var(--accent); color: var(--accent); }
.pagination__link.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination__dots { color: var(--muted); padding: 0 4px; }

/* ---------- Page head / breadcrumbs ---------- */
.breadcrumbs { background: var(--card); border-bottom: 1px solid var(--border); }
.breadcrumbs__list { display: flex; list-style: none; margin: 0; padding: 12px 0; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.breadcrumbs__list li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--border); }
.breadcrumbs__list a:hover { color: var(--accent); }
.breadcrumbs__list span[aria-current] { color: var(--text); }

.page-head { padding: 26px 0 6px; }
.page-head__title { font-size: 30px; margin: 0 0 10px; letter-spacing: -.4px; }
.page-head__desc { color: var(--muted); margin: 0; max-width: 760px; }

.section--seo { padding: 34px 0 10px; }
.catalog-seo { color: var(--muted); line-height: 1.6; max-width: 760px; }
.catalog-seo p { margin: 0 0 12px; }
.catalog-seo p:last-child { margin-bottom: 0; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.product__gallery { align-self: start; }
.product__img {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden;
}
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product__img .card__label { position: absolute; top: 14px; left: 14px; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb {
    width: 72px; height: 56px; padding: 0; border: 2px solid var(--border); border-radius: 8px;
    overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s;
}
.product__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--accent); }

/* Рамки изображений держат пропорцию 4:3; без поддержки aspect-ratio — padding-hack */
@supports not (aspect-ratio: 4 / 3) {
    .card__img { height: 0; padding-top: 75%; }
    .product__img { height: 0; padding-top: 75%; }
}
.product__info { display: flex; flex-direction: column; gap: 12px; }
.product__title { font-size: 28px; line-height: 1.2; margin: 0; letter-spacing: -.3px; }
.product__subtitle { color: var(--muted); font-size: 16px; }
.product__row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.product__row strong { color: var(--text); }
.product__group { background: var(--bg); border-radius: 6px; padding: 2px 10px; }
.product__price-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 4px; }
.product__price { font-size: 30px; font-weight: 600; color: var(--navy); }
.product__old-price { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.product__vat { font-size: 12.5px; color: var(--muted); }
.product__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.product__buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product__benefits { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13.5px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.qty__btn { width: 42px; height: 44px; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--text); }
.qty__btn:hover { background: var(--accent-soft); color: var(--accent); }
.qty__input { width: 56px; height: 44px; border: 0; text-align: center; font-size: 15px; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.table th, .table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; width: 40%; }
.table--specs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table--specs tr:nth-child(even) { background: var(--bg); }

/* ---------- Configs (full-width table) ---------- */
.configs-wrap { overflow-x: auto; }
.table--configs { border: 1px solid var(--border); }
.table--configs th, .table--configs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table--configs thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.cell--part { width: 32%; }
.cell--qty { width: 16%; text-align: right; white-space: nowrap; }
.table--configs tbody td.cell--qty { text-align: right; font-weight: 600; }
.configs-group td {
    background: var(--accent-soft); padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 15px; color: var(--navy);
}
.configs-group__price { color: var(--accent); font-weight: 600; float: right; }
.config-row__part { font-weight: 600; }
.table--configs tbody tr:nth-child(even):not(.configs-group) { background: var(--bg); }

.prose { max-width: 860px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose h1, .prose h2, .prose h3 { margin-top: 24px; }

.tag { display: inline-block; background: var(--bg); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; color: var(--text); margin: 0 6px 6px 0; }

/* ---------- Cart ---------- */
.cart { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.cart__empty { padding: 30px 0; }
.cart-line { display: grid; grid-template-columns: 1fr 150px 180px 40px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line__title { font-weight: 700; }
.cart-line__title:hover { color: var(--accent); }
.cart-line__sku { font-size: 12px; color: var(--muted); }
.cart-line__price { font-weight: 800; text-align: right; }
.cart-line__remove {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
    background: #fff; color: var(--muted); font-size: 18px; cursor: pointer;
}
.cart-line__remove:hover { border-color: var(--accent); color: var(--accent); }

.cart-summary { margin-top: 22px; padding-top: 20px; border-top: 0px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.cart-summary__label { color: var(--muted); }
.cart-summary__total { font-size: 28px; font-weight: 800; color: var(--navy); }

/* ---------- Forms ---------- */
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; }
.form__note { font-size: 12.5px; color: var(--muted); margin: 0; }
.form__error { font-size: 12.5px; color: var(--accent); }
.form-success {
    background: var(--green-bg); border: 1px solid #cdeadd; color: #155635;
    border-radius: var(--radius); padding: 20px 24px; font-weight: 600; margin-top: 18px;
}
.contact-form-wrap { margin-top: 40px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 10px; }
.contacts__card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contacts__card h2 { margin: 0 0 10px; font-size: 19px; }
.contacts__card p { color: var(--muted); }
.contacts__phone { display: block; font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 8px; }
.contacts__email { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 600; }
.contacts__addr { font-style: normal; }
.contacts__hours { font-size: 13px; }

/* ---------- Faceted filters (dropdowns) ---------- */
.section--filters { padding-bottom: 4px; }
.filters__bar {
    display: flex; gap: 2px; align-items: stretch; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.filters__group { position: relative; flex: none; }
.filters__toggle {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 12px 14px; background: transparent; border: 0; cursor: pointer;
    font-family: inherit; font-size: 12.3px; font-weight: 600; letter-spacing: .4px;
    text-transform: uppercase; color: var(--text); white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.filters__toggle:hover { color: var(--accent); }
.filters__group.is-active .filters__toggle { color: var(--accent); border-bottom-color: var(--accent); }
.filters__badge {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 11px; line-height: 18px;
    letter-spacing: 0; text-align: center; display: inline-block;
}
.filters__chevron { width: 11px; height: 11px; flex: none; color: var(--muted); transition: transform .15s, color .15s; }
.filters__group.is-open .filters__chevron { transform: rotate(180deg); color: var(--accent); }
.filters__panel {
    position: absolute; top: calc(100% - 1px); left: 0; z-index: 60;
    min-width: 236px; max-width: 320px; max-height: 320px; overflow-y: auto;
    background: #fff; border: 1px solid var(--border); border-top-color: var(--accent);
    border-radius: 0 0 14px 14px; box-shadow: var(--shadow-lg); padding: 8px;
    display: none;
}
.filters__group.is-open .filters__panel { display: block; }
.filter-option {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text);
    user-select: none; transition: background .12s;
}
.filter-option:hover { background: var(--accent-soft); }
.filter-option__input { width: 15px; height: 15px; flex: none; accent-color: var(--accent); cursor: pointer; }
.filter-option.is-checked { background: var(--accent-soft); }
.filter-option.is-checked .filter-option__name { color: var(--accent); font-weight: 600; }
.filter-option__count { margin-left: auto; color: var(--muted); font-size: 12px; }
.filter-option.is-checked .filter-option__count { color: var(--accent); }
.filters__clear {
    margin-left: auto; padding: 12px 6px; white-space: nowrap; text-decoration: none;
    font-size: 12.3px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
    color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.filters__clear:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 768px) {
    .filters__bar { flex-direction: column; align-items: stretch; overflow: visible; gap: 0; border-bottom: 0; }
    .filters__toggle { justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--border); }
    .filters__group.is-active .filters__toggle { border-bottom-color: var(--accent); }
    .filters__panel { position: static; max-height: 250px; border: 1px solid var(--border); border-radius: 12px; box-shadow: none; margin: 4px 0 10px; }
    .filters__clear { margin-left: 0; }
}

/* ---------- Home category tabs ---------- */
.tabs-bar {
    display: flex; gap: 2px; flex-wrap: wrap; align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.tabs-bar__tab {
    display: inline-flex; align-items: center; padding: 12px 14px;
    background: transparent; border: 0; cursor: pointer; font-family: inherit;
    font-size: 12.3px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
    color: var(--text); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.tabs-bar__tab:hover { color: var(--accent); }
.tabs-bar__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabs-bar__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs-panels { margin-top: 24px; }
.tabs-panel:not([hidden]) { animation: tabs-fade .28s ease; }
@keyframes tabs-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Thanks / empty ---------- */
.thanks { text-align: center; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 50px 36px; }
.thanks__icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--green-bg); color: var(--green);
    display: grid; place-items: center; font-size: 34px;
}
.thanks__title { font-size: 28px; margin: 0 0 10px; }
.thanks__id { font-size: 16px; color: var(--muted); margin: 0 0 14px; }
.thanks p { color: var(--muted); }
.thanks__actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.empty { text-align: center; padding: 60px 20px; }
.empty__icon { font-size: 64px; font-weight: 900; color: var(--border); line-height: 1; }
.empty h1, .empty h3 { margin: 16px 0 6px; font-size: 24px; }
.empty p { color: var(--muted); margin: 0 0 20px; }
.empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aeb9c6; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 36px; }
.footer__title { color: #fff; font-size: 14px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .8px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { transition: color .15s; }
.footer__list a:hover { color: #fff; }
.footer__list--contacts { gap: 8px; }
.logo--footer .logo__img { height: 34px; filter: brightness(0) invert(1); }
.logo--footer .logo__tagline { color: #aeb9c6; }
.footer__about { font-size: 13.5px; margin-top: 16px; max-width: 320px; }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0 26px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

@media (max-width: 980px) {
    .product { grid-template-columns: 1fr; }
    .product__gallery { max-width: 480px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .form__grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 1fr 60px 120px 36px; }
    .qty__input { width: 44px; }
}

@media (max-width: 600px) {
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .card__bottom { flex-direction: column; align-items: stretch; }
    .card .btn--add { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 1fr 44px; grid-template-areas: "title remove" "price price" "qty qty"; }
    .cart-line__price { grid-area: price; text-align: left; }
    .cart-line .qty { grid-area: qty; }
    .cart-line__remove { grid-area: remove; justify-self: end; }
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.alert { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: var(--card); }
.alert--success { border-color: #2e9e5b; background: #f2fbf6; color: #1c7a44; }
.section__desc { color: var(--muted); margin: 0 0 24px; max-width: 760px; font-size: 15.5px; line-height: 1.6; }

/* ---------- Cart: notice + B2B promo ---------- */
.notice { background: #f5f8fc; border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.notice strong { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 5px; }
.b2b-promo { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: start; background: linear-gradient(135deg, #f2f6fb 0%, #ffffff 70%); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-top: 32px; }
.b2b-promo__title { font-size: 23px; margin: 0 0 12px; color: var(--navy); line-height: 1.3; letter-spacing: -.3px; }
.b2b-promo__text { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.b2b-promo__list { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; color: var(--text); }
.b2b-promo__list li::marker { color: var(--navy); }
.b2b-promo__form { background: var(--card); max-width: none; margin: 0; box-shadow: 0 6px 24px rgba(48, 81, 114, .08); }
.b2b-promo__form .btn--primary { width: 100%; padding: 16px 24px; }
@media (max-width: 900px) { .b2b-promo { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* ---------- Captcha & form error ---------- */
.form-error { background: #fdecec; border: 1px solid #f5c6c9; color: #9c0f1b; border-radius: var(--radius); padding: 16px 20px; font-weight: 600; margin: 18px 0 0; }
.form__field--captcha { max-width: 280px; }
.form__field--captcha .input { max-width: 170px; }
