@font-face { font-family: Inter; src: url('/assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    --brand: #f01e2c;
    --brand-dark: #c81624;
    --navy: #1c1e21;
    --ink: #1c1e21;
    --ink-soft: #45494f;
    --muted: #6b7280;
    --line: #e6e8eb;
    --surface: #eef1f3;
    --surface-2: #e6e9ed;
    --white: #fff;
    --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
svg { flex-shrink: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; padding: 13px 22px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.btn-sm:hover { background: var(--surface-2); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 11px; }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); white-space: nowrap; }
.topbar-icon { width: 14px; height: 14px; }
.topbar-address { display: none; }
.topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.topbar-right a { color: rgba(255,255,255,.7); }
.topbar-right a:hover { color: #fff; }
.topbar-phone { color: #fff !important; font-weight: 500; font-size: 12px; }
@media (min-width: 768px) { .topbar-address { display: inline-flex; } }

.header-main { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-row { display: flex; align-items: center; gap: 12px; height: 74px; }
.burger { display: none; background: var(--surface); border: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 28px; height: 28px; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
.logo-gear { animation: logo-spin 16s linear infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .logo-gear { animation: none; } }
.brand-text b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-text i { display: block; color: var(--brand); font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .28em; line-height: 1.4; }
.brand-light .brand-mark { background: #fff; border: none; }
.brand-light .brand-text b { color: #fff; }

.catalog-wrap { position: relative; flex-shrink: 0; }
.catalog-btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; border: none; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; padding: 0 15px; cursor: pointer; }
.catalog-btn svg { width: 17px; height: 17px; }
.catalog-btn .chev { width: 14px; height: 14px; opacity: .75; }
.catalog-menu { position: absolute; left: 0; top: calc(100% + 8px); display: none; width: min(580px, calc(100vw - 18rem)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.14); padding: 12px; z-index: 200; }
.catalog-wrap:hover .catalog-menu, .catalog-wrap.open .catalog-menu { display: flex; }
.catalog-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.catalog-col { padding: 4px; min-width: 210px; }
.catalog-main-col { display: flex; flex-direction: column; gap: 2px; }
.catalog-head { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 6px 10px; }
.cat-main { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); text-align: left; cursor: pointer; }
.cat-main svg { width: 17px; height: 17px; color: var(--muted); }
.cat-main:hover, .cat-main.active { background: var(--surface); color: var(--ink); }
.cat-main.active svg { color: var(--brand); }
.catalog-sub { display: none; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); padding-left: 12px; min-width: 230px; }
.catalog-third { min-width: 250px; border-left: 1px solid var(--line); padding-left: 12px; }
.third-group { display: none; }
.third-group .catalog-head span { display: block; margin-top: 3px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.catalog-note { margin: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.catalog-all { font-size: 12px; font-weight: 600; color: var(--brand); padding: 5px 10px 9px; }
.catalog-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); font-size: 13px; }
.catalog-link svg { width: 15px; height: 15px; color: var(--muted); }
.catalog-link:hover { background: var(--surface); color: var(--ink); }

.search { position: relative; flex: 1; min-width: 160px; display: flex; align-items: center; }
.search .search-icon { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; height: 44px; border: none; border-radius: 12px; background: var(--surface); padding: 0 14px 0 38px; font-size: 14px; font-family: inherit; outline: none; }
.search input:focus { box-shadow: 0 0 0 2px rgba(240,30,44,.15); }
.search-suggest { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.12); z-index: 300; display: none; overflow: hidden; }
.search-suggest a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--surface); color: var(--ink); font-size: 13px; }
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--surface); }
.search-suggest a.suggest-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--surface); }
.search-suggest a.suggest-item:last-of-type { border-bottom: none; }
.suggest-item img { width: 46px; height: 46px; object-fit: contain; background: var(--surface); border-radius: 8px; flex-shrink: 0; }
.suggest-body { min-width: 0; flex: 1; }
.suggest-brand { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.suggest-name { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-article { font-size: 10px; color: var(--muted); margin-top: 2px; }
.suggest-price { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.search-suggest a.suggest-all { display: block; padding: 10px 14px; text-align: center; font-size: 12px; font-weight: 600; color: var(--brand); background: #fff; }

.header-phone { display: none; text-align: right; color: var(--ink); margin-left: 2px; }
.header-phone-number { display: block; font-size: 13px; font-weight: 600; line-height: 1.1; }
.header-phone-hours { display: block; font-size: 10px; color: var(--muted); }
@media (min-width: 1280px) { .header-phone { display: block; } }

.header-action { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; flex-shrink: 0; }
.header-action svg { width: 17px; height: 17px; }
.header-action:hover { background: var(--surface-2); color: var(--ink); }
.cart-link { position: relative; }
.mobile-search { display: none; }
.cart-link i { font-style: normal; background: var(--brand); color: #fff; border-radius: 20px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; padding: 0 4px; }

.subnav { border-top: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.subnav-link svg { width: 15px; height: 15px; color: var(--muted); }
.subnav-link:hover { background: var(--surface); color: var(--ink); }

/* ---------- Hero ---------- */
.hero-section { padding: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 32px; min-height: 390px; padding: 40px 40px 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hero-content { position: relative; z-index: 3; max-width: 56%; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 20px; padding: 6px 12px; font-size: 11px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hero-content h1 { margin: 16px 0 0; font-size: 38px; font-weight: 600; line-height: 1.06; color: var(--ink); }
.hero-content p { margin: 14px 0 0; max-width: 420px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-search { display: flex; align-items: center; gap: 8px; margin-top: 22px; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 4px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.hero-search > svg { width: 16px; height: 16px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: none; outline: none; height: 38px; font-size: 13px; font-family: inherit; }
.hero-search .btn { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13px; }
.hero-image { position: absolute; right: 16px; bottom: 0; top: 18px; width: 43%; z-index: 1; pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero-stamp { position: absolute; right: 24px; top: 22px; z-index: 2; width: 78px; height: 78px; border-radius: 14px; border: 1px solid rgba(28,30,33,.06); background: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9px; font-weight: 600; line-height: 1.35; letter-spacing: .04em; color: rgba(28,30,33,.45); text-transform: uppercase; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; border-radius: 32px; padding: 20px; color: #fff; overflow: hidden; min-height: 180px; }
.side-card:hover { color: #fff; }
.side-red { background: var(--brand); }
.side-red:hover { background: var(--brand-dark); }
.side-dark { background: var(--navy); }
.side-dark:hover { background: #000; }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; }
.side-icon { width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.side-icon svg { width: 20px; height: 20px; }
.side-dark .side-icon svg { color: var(--brand); }
.side-arrow { opacity: .6; }
.side-arrow svg { width: 19px; height: 19px; }
.side-body h3 { font-size: 20px; font-weight: 600; line-height: 1.2; margin: 12px 0 0; }
.side-body p { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.75); margin: 7px 0 0; max-width: 90%; }
.side-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; }
.promo { display: inline-block; margin-top: 12px; background: var(--brand); color: #fff; border-radius: 20px; padding: 5px 11px; font-size: 11px; font-weight: 600; letter-spacing: .14em; }

/* ---------- Home sections ---------- */
.catalog-home { background: var(--surface); border-radius: 32px; margin: 20px auto 0; max-width: 1240px; padding: 30px 24px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-head h2 { font-size: 28px; margin: 0; }
.home-head p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }
.home-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.home-all svg { width: 16px; height: 16px; }
.home-categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.home-cat { display: flex; flex-direction: column; justify-content: space-between; min-height: 130px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; color: var(--ink); font-size: 14px; font-weight: 500; }
.home-cat:hover { background: #fff; border-color: rgba(28,30,33,.2); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.home-cat-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.home-cat-icon svg { width: 21px; height: 21px; color: var(--ink); }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 44px; }
.brand-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; color: var(--ink); font-weight: 600; font-size: 16px; }
.brand-card svg { width: 17px; height: 17px; color: var(--muted); }
.brand-card:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 700px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
.news-card { border: 1px solid var(--line); border-radius: 22px; padding: 20px; color: var(--ink); background: #fff; }
.news-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.06); color: var(--ink); }
.news-card h3 { font-size: 17px; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { border: 1px solid var(--line); border-radius: 22px; padding: 12px; color: var(--ink); background: #fff; transition: .15s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 12px 34px rgba(0,0,0,.08); color: var(--ink); filter: brightness(.96); }
.product-media { position: relative; }
.product-badges { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; pointer-events: none; }
.badge-discount, .badge-hit { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 9px; font-size: 10px; font-weight: 600; line-height: 1; }
.badge-discount { background: var(--brand); color: #fff; }
.badge-hit { background: var(--ink); color: #fff; }
.product-img { background: var(--surface); border-radius: 16px; padding: 12px; height: 160px; display: flex; align-items: center; justify-content: center; }
.product-img img { max-height: 128px; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product-brand { margin-top: 10px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product-name { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.product-article { min-height: 16px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.product-rating { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11px; color: var(--muted); }
.product-rating > span:first-child { color: #f5a623; letter-spacing: -1px; font-size: 12px; }
.product-rating b { color: var(--ink); font-weight: 500; }
.product-rating i { font-style: normal; color: var(--line); }
.product-bottom { margin-top: auto; padding-top: 12px; }
.product-prices { display: flex; flex-direction: column; min-height: 38px; }
.product-price { font-weight: 600; font-size: 17px; line-height: 1.1; }
.product-prices s { min-height: 14px; font-size: 11px; line-height: 14px; color: var(--muted); margin-top: 2px; }
.product-stock { display: inline-block; width: fit-content; margin-top: 8px; background: #fdecee; color: var(--brand); border-radius: 20px; padding: 4px 9px; font-size: 10px; font-weight: 500; }
.product-out { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 10px; }

/* ---------- Breadcrumbs / catalog ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); padding: 16px 0; }
.breadcrumbs a { color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding-bottom: 44px; }
.catalog-sections { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 20px; }
.catalog-section-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: var(--ink); font-size: 13px; font-weight: 500; }
.catalog-section-card:hover { background: var(--surface); color: var(--ink); }
.catalog-section-card .home-cat-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.catalog-section-card .home-cat-icon svg { width: 17px; height: 17px; }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.catalog-chips a { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 20px; padding: 7px 13px; color: var(--ink-soft); font-size: 12px; }
.catalog-chips a:hover { background: var(--surface); color: var(--ink); }
.catalog-chips svg { width: 14px; height: 14px; }
.filters { display: flex; flex-direction: column; gap: 14px; }
.filter-group { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: #fff; }
.filter-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.filter-group a { display: block; padding: 4px 0; color: var(--ink-soft); font-size: 14px; }
.filter-group a.active { color: var(--brand); font-weight: 600; }
.check { display: block; padding: 3px 0; font-size: 13px; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-top h1 { font-size: 30px; margin: 0; }
.catalog-subtitle { margin: 4px 0 0; max-width: 640px; font-size: 13px; }
.sort select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-family: inherit; }
.pagination { display: flex; gap: 6px; margin-top: 22px; }
.pagination a { border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; color: var(--ink); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 430px 1fr; gap: 32px; padding: 20px 0; }
.product-img-big { background: var(--surface); border-radius: 26px; display: flex; align-items: center; justify-content: center; padding: 26px; }
.product-img-big img { max-height: 330px; }
.product-info h1 { font-size: 30px; }
.product-info-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.review-stars { color: #f5a623; letter-spacing: 1px; font-size: 12px; }
.price-big { font-size: 28px; font-weight: 600; margin: 14px 0; }
.price-big s { font-size: 16px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.add-to-cart { display: flex; gap: 10px; margin: 18px 0; }
.add-to-cart input { width: 74px; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font-family: inherit; }
.product-desc { padding: 16px 0 22px; }
.product-specs { border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-bottom: 26px; background: #fff; }
.product-specs h2, .product-reviews h2 { font-size: 22px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 12px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 14px; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 500; text-align: right; }
.product-reviews { margin-bottom: 36px; }

/* ---------- Cart / order ---------- */
.cart-table { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.cart-row { display: grid; grid-template-columns: 70px 1fr 90px 130px 100px 90px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; }
.cart-row img { width: 62px; height: 62px; object-fit: contain; background: var(--surface); border-radius: 10px; }
.cart-total { font-size: 20px; font-weight: 600; margin: 16px 0; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; gap: 16px; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 13px; color: var(--ink); background: #fff; }
.order-total { margin: 12px 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.form input, .form textarea, .form select { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-family: inherit; background: #fff; }
.alert { background: #fdeaea; color: #b91c1c; border-radius: 12px; padding: 12px; margin: 12px 0; }
.radio { display: block; padding: 6px 0; }
.form-note { font-size: 10px; color: var(--muted); }

/* ---------- Account ---------- */
.account-nav { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.account-nav a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.account-nav a.active { background: var(--brand); color: #fff; }
.account-card { border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 16px; background: #fff; }


.review-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; }
.footer-cta { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.footer-cta-text h2 { font-size: 28px; margin: 6px 0 0; }
.footer-cta-text p { color: var(--ink-soft); font-size: 14px; max-width: 470px; margin: 8px 0 0; }
.footer-cta-contacts { display: flex; flex-direction: column; gap: 10px; }
.cta-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 12px 16px; color: var(--ink); }
.cta-card:hover { color: var(--ink); background: var(--surface-2); }
.cta-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--brand); }
.cta-icon svg { width: 19px; height: 19px; }
.cta-card b { display: block; font-size: 15px; }
.cta-card small { display: block; font-size: 11px; color: var(--muted); }

.footer-dark { background: var(--navy); color: #fff; margin-top: 20px; padding: 44px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
.footer-grid p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; margin: 14px 0 0; max-width: 290px; }
.footer-title { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.footer-grid a, .footer-grid span { display: block; color: rgba(255,255,255,.55); padding: 4px 0; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; font-size: 11px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); }

/* ---------- Part request ---------- */
.part-request-btn { position: fixed; right: 20px; bottom: 20px; z-index: 400; background: var(--navy); color: #fff; border: none; border-radius: 16px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; box-shadow: 0 12px 32px rgba(0,0,0,.22); font-family: inherit; }
.part-request-btn:hover { background: #000; }
.part-request-btn > svg { width: 18px; height: 18px; }
.part-request-btn b { display: block; font-size: 12px; font-weight: 600; }
.part-request-btn small { display: block; font-size: 10px; color: rgba(255,255,255,.75); }

.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-panel { position: relative; background: #fff; border-radius: 26px; padding: 26px; width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; }
.modal-panel h2 { font-size: 26px; margin: 5px 0 8px; }
.modal-panel > p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.modal-panel form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.modal-panel form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.modal-panel form input, .modal-panel form textarea { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-family: inherit; font-size: 14px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 16px; height: 16px; }
.form-error { color: #b91c1c; font-size: 12px; }
.form-success { color: #16a34a; font-weight: 600; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 450; }
.mobile-menu[hidden] { display: none; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mobile-panel { position: absolute; inset: 0 auto 0 0; width: 88%; max-width: 360px; background: #fff; padding: 20px; overflow: auto; }
.mobile-group { margin-bottom: 14px; }
.mobile-main { font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.mobile-panel a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 14px; }
.mobile-panel .modal-close { position: static; margin-left: auto; margin-bottom: 12px; }

/* ---------- Adaptive ---------- */
@media (max-width: 1100px) {
    .header-phone { display: none; }
    .catalog-btn span { display: none; }
    .catalog-menu { width: min(580px, calc(100vw - 18rem)); }
    .hero-content h1 { font-size: 33px; }
}
@media (max-width: 900px) {
    .burger { display: flex; }
    .catalog-wrap, .search { display: none; }
    .header-row { height: 66px; gap: 8px; }
    .header-action span { display: none; }
    .header-action { width: 42px; justify-content: center; padding: 0; }
    .mobile-search { display: inline-flex; }
    .subnav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 0; padding: 26px 22px; }
    .hero-content { max-width: 100%; }
    .hero-image { display: none; }
    .hero-stamp { display: none; }
    .hero-content h1 { font-size: 32px; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .catalog-layout { grid-template-columns: 1fr; }
    .product-layout { grid-template-columns: 1fr; }
    .home-categories { grid-template-columns: repeat(3, 1fr); }
    .catalog-sections { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .topbar-right a:not(.topbar-phone) { display: none; }
    .hero-content h1 { font-size: 29px; }
    .hero-side { grid-template-columns: 1fr; }
    .home-categories { grid-template-columns: repeat(2, 1fr); }
    .catalog-sections { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .product-img { height: 135px; }
    .cart-row { grid-template-columns: 60px 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .part-request-btn { right: 12px; bottom: 12px; max-width: 250px; }
}

/* Account */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; padding: 28px 0 48px; }
.account-sidebar { border: 1px solid var(--line); border-radius: 26px; background: #fff; padding: 20px; position: sticky; top: 140px; }
.account-user { display: flex; align-items: center; gap: 12px; }
.account-avatar { width: 48px; height: 48px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.account-user b { display: block; font-size: 14px; }
.account-user > div span { display: block; font-size: 11px; color: var(--muted); }
.account-contacts { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); }
.account-contacts div { display: flex; align-items: center; gap: 7px; }
.account-contacts svg { width: 14px; height: 14px; }
.account-side-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.account-side-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 13px; }
.account-side-nav a svg { width: 15px; height: 15px; color: var(--muted); }
.account-side-nav a:hover { background: var(--surface); color: var(--ink); }
.account-side-nav a.active { background: var(--brand); color: #fff; }
.account-side-nav a.active svg { color: #fff; }
.account-admin-link { display: block; margin-top: 8px; padding: 9px 12px; font-size: 12px; color: var(--brand); }
.account-content { min-width: 0; }
.account-head-card { border: 1px solid var(--line); border-radius: 26px; background: #fff; padding: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 16px; }
.account-head-card h1 { font-size: 30px; margin: 4px 0 0; }
.account-head-card p { margin: 5px 0 0; font-size: 13px; }
.account-stats { display: flex; gap: 28px; }
.account-stats b { display: block; font-size: 19px; }
.account-stats span { display: block; font-size: 10px; color: var(--muted); }
.account-ok { background: #eaf7ef; color: #15803d; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.account-card h2 { font-size: 18px; }
.account-card .section-head h2 { font-size: 18px; }
.order-row { background: #fff; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } .account-sidebar { position: static; } }

/* Cart */
.page-title { font-size: 32px; margin: 22px 0 18px; }
.empty-card { border: 1px solid var(--line); border-radius: 26px; background: #fff; padding: 40px 24px; text-align: center; }
.empty-card h2 { font-size: 22px; margin: 0; }
.empty-card p { margin: 8px 0 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding-bottom: 44px; }
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr 90px 120px 100px auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 12px; }
.cart-item-img { background: var(--surface); border-radius: 12px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { max-height: 60px; }
.cart-item-name { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; font-weight: 500; }
.cart-item-name:hover { color: var(--brand); }
.cart-item-price { font-size: 13px; font-weight: 600; }
.cart-item-total { font-size: 14px; font-weight: 600; }
.cart-qty { display: flex; gap: 5px; align-items: center; }
.cart-qty input { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-family: inherit; }
.cart-remove { text-align: right; }
.cart-summary { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 20px; position: sticky; top: 140px; }
.cart-summary h2 { font-size: 20px; margin: 0 0 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-total { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; font-size: 16px; }
.summary-total b { font-size: 22px; }
.btn-block { width: 100%; }
.summary-continue { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.summary-note { font-size: 10px; line-height: 1.4; color: var(--muted); margin: 14px 0 0; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 44px; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.checkout-section { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 20px; }
.checkout-section h2 { font-size: 18px; margin-bottom: 12px; }
.checkout-section .form { gap: 12px; }
.payment-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.payment-choice input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--brand); }
.payment-choice-copy { display: flex; flex-direction: column; gap: 3px; }
.payment-choice-copy b { color: var(--ink); font-size: 13px; font-weight: 600; }
.payment-choice-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.payment-choice:has(input:checked) { border-color: rgba(240,30,44,.45); background: #fffafa; }
.cart-added-note { padding: 10px 13px; margin: 0 0 14px; border: 1px solid rgba(22,163,74,.2); border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 13px; }
.checkout-summary { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 20px; position: sticky; top: 140px; }
.checkout-summary h2 { font-size: 18px; }
.checkout-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.checkout-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.checkout-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Auth */
.auth-page { max-width: 980px; margin: 30px auto 50px; padding: 0 16px; display: grid; grid-template-columns: 1fr 420px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #fff; }
.auth-form { padding: 34px; }
.auth-form h1 { font-size: 28px; }
.auth-form .form { margin-top: 18px; }
.auth-side { background: var(--navy); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 24px; color: #fff; line-height: 1.25; margin: 8px 0 0; }
.auth-side p { color: rgba(255,255,255,.6); font-size: 13px; }
.auth-benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-benefit { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: rgba(255,255,255,.7); }
.auth-benefit svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.auth-side-login { align-self: start; justify-content: flex-start; gap: 22px; padding: 30px; border-radius: 22px; background: radial-gradient(ellipse at top right, rgba(240,30,44,.16), transparent 52%), var(--navy); }
.auth-side-login .eyebrow { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid rgba(240,30,44,.35); border-radius: 999px; background: rgba(240,30,44,.1); }
.auth-side-login h2 { max-width: 340px; font-size: 25px; line-height: 1.2; margin-top: 12px; }
.auth-side-login .auth-benefits { gap: 10px; margin: 0; }
.auth-side-login .auth-benefit { align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.045); font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.82); }
.auth-side-login .auth-benefit svg { width: 18px; height: 18px; margin: 0; }
.auth-link { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 60px 1fr; } .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }

.form label.radio { flex-direction: row; align-items: center; gap: 8px; }
.form label.radio input { width: auto; }


.contacts-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 44px; }
.contacts-main { display: flex; flex-direction: column; gap: 18px; }
.contacts-copy { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 22px; color: var(--ink-soft); line-height: 1.7; }
.contact-form-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 22px; }
.contact-form-card h2 { font-size: 20px; }
.manager-card { border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; position: sticky; top: 140px; }
.manager-photo { background: var(--surface); height: 320px; overflow: hidden; }
.manager-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.manager-body { padding: 20px; }
.manager-body h2 { font-size: 24px; margin: 4px 0 6px; }
.manager-body p { font-size: 13px; line-height: 1.6; }
.manager-contact { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 13px; color: var(--ink-soft); }
.manager-contact svg { width: 15px; height: 15px; color: var(--brand); }
@media (max-width: 900px) { .contacts-layout { grid-template-columns: 1fr; } .manager-card { position: static; } .manager-photo { height: 360px; } }



.news-image { height: 160px; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-image { margin: 18px 0; border-radius: 22px; overflow: hidden; background: var(--surface); }
.post-hero-image img { width: 100%; max-height: 420px; object-fit: cover; }


.catalog-subcategories { border: 1px solid var(--line); border-radius: 26px; background: #fff; padding: 20px; margin: 8px 0 22px; }
.catalog-subcategories-head h2 { font-size: 22px; margin: 4px 0 0; }
.catalog-subcategories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.catalog-subcategory-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: var(--ink); font-size: 13px; font-weight: 500; }
.catalog-subcategory-card:hover { background: var(--surface); color: var(--ink); }
.catalog-subcategory-card.active { border-color: var(--brand); }
.catalog-subcategory-card .home-cat-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.catalog-subcategory-card .home-cat-icon svg { width: 17px; height: 17px; }
@media (max-width: 700px) { .catalog-subcategories-grid { grid-template-columns: repeat(2, 1fr); } }


.news-home { border: 1px solid var(--line); border-radius: 30px; background: #fff; padding: 24px; }
.news-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.news-home-head h2 { font-size: 26px; margin: 5px 0 0; }
.news-home-head p { font-size: 13px; margin: 5px 0 0; }
.news-home .news-card { background: var(--surface); border-color: transparent; border-radius: 22px; display: flex; flex-direction: column; transition: .15s; }
.news-home .news-card:hover { filter: brightness(.96); box-shadow: 0 10px 26px rgba(0,0,0,.06); color: var(--ink); }
.news-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.news-meta span:first-child { text-transform: uppercase; letter-spacing: .12em; }
.news-home .news-card h3 { margin-top: 12px; }
.news-home .news-card p { flex: 1; }
.news-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 12px; font-weight: 500; color: var(--ink); }
.news-more svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .news-home { padding: 16px; } .news-home-head { align-items: flex-start; flex-direction: column; } }


.footer-grid > div { min-width: 0; }
.footer-buyers a { line-height: 1.5; padding: 4px 0; overflow-wrap: break-word; }
.footer-buyers .footer-title { margin-bottom: 12px; }


.reviews-hero { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: end; margin: 8px 0 22px; }
.reviews-hero h1 { font-size: 36px; margin: 5px 0 0; }
.reviews-hero p { margin: 8px 0 0; font-size: 14px; max-width: 600px; }
.reviews-summary { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 16px 20px; }
.reviews-average { font-size: 40px; font-weight: 600; letter-spacing: -.04em; }
.reviews-stars { color: #f5a623; letter-spacing: 1px; font-size: 16px; }
.reviews-stars.small { font-size: 11px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.public-review { display: flex; flex-direction: column; border-radius: 22px; padding: 18px; }
.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.review-author { display: flex; align-items: center; gap: 9px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.review-author b { display: block; font-size: 13px; font-weight: 500; }
.review-author small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.review-verified { color: #16a34a; font-size: 11px; }
.review-text { flex: 1; font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 14px 0; }
.review-product { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 11px; color: var(--ink-soft); }
.review-product:hover { background: var(--surface-2); color: var(--ink); }
.review-product svg { width: 13px; height: 13px; color: var(--brand); flex-shrink: 0; }
.reviews-note { margin: 20px 0 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 18px; font-size: 11px; color: var(--muted); }
@media (max-width: 900px) { .reviews-hero { grid-template-columns: 1fr; align-items: start; } .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }


.catalog-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 18px; }
.catalog-page-head h1 { font-size: 36px; margin: 0; }
.catalog-page-head .catalog-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 13px; max-width: 680px; }
.sort-dropdown { position: relative; flex-shrink: 0; }
.sort-dropdown summary { list-style: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 12px; color: var(--muted); cursor: pointer; background: #fff; white-space: nowrap; }
.sort-dropdown summary::-webkit-details-marker { display: none; }
.sort-dropdown summary b { color: var(--ink); font-weight: 500; }
.sort-dropdown summary svg { width: 14px; height: 14px; }
.sort-dropdown[open] summary { border-color: rgba(28,30,33,.25); }
.sort-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 6px; }
.sort-menu a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--ink-soft); font-size: 12px; }
.sort-menu a:hover { background: var(--surface); color: var(--ink); }
.sort-menu a.active { background: var(--brand); color: #fff; }
.catalog-count { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.catalog-count b { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) { .catalog-page-head { align-items: flex-start; flex-direction: column; } .catalog-page-head h1 { font-size: 30px; } .sort-dropdown { width: 100%; } .sort-dropdown summary { justify-content: space-between; } .sort-menu { left: 0; right: auto; } }

/* ---------- Catalog results / sort ---------- */
.restoring-scroll .topbar { visibility: hidden; }
.catalog-page-head { display: block; margin: 6px 0 18px; }
.catalog-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.catalog-results-head .catalog-count { margin: 0; }
.catalog-results-head .sort-dropdown { margin-left: auto; }
@media (max-width: 700px) {
    .catalog-results-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
    .catalog-results-head .sort-dropdown { width: auto; margin-left: auto; }
    .catalog-results-head .sort-menu { left: auto; right: 0; }
}

/* ---------- Footer brand ---------- */
.footer-grid .brand-footer { display: flex; align-items: center; gap: 12px; padding: 0; color: #fff; }
.footer-grid .brand-footer:hover { color: #fff; }
.footer-grid .brand-footer .brand-mark { width: 48px; height: 48px; border-radius: 13px; background: #101114; border: 1px solid rgba(255,255,255,.14); flex-shrink: 0; }
.footer-grid .brand-footer .brand-mark svg { width: 31px; height: 31px; }
.footer-grid .brand-footer .brand-text b { color: #fff; font-size: 17px; }
.footer-grid .brand-footer .brand-text i { font-size: 10px; letter-spacing: .22em; }
@media (max-width: 700px) {
    .footer-grid .brand-footer { margin-bottom: 4px; }
}

/* ---------- News cards ---------- */
.news-page-head { margin: 8px 0 24px; }
.news-page-head h1 { font-size: 38px; margin: 5px 0 0; }
.news-page-head p { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 620px; }
.news-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 46px; }
.news-card-wide { display: grid; grid-template-columns: 360px 1fr; padding: 0; overflow: hidden; border-radius: 24px; background: #fff; align-items: stretch; transition: .18s; }
.news-card-wide:hover { color: var(--ink); box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.news-cover { position: relative; min-height: 220px; background: var(--surface); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cover-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.news-cover-empty svg { width: 34px; height: 34px; }
.news-type-badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; min-height: 25px; padding: 0 10px; border-radius: 20px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.news-card-body { display: flex; flex-direction: column; padding: 24px 26px; min-width: 0; }
.news-card-body h2 { font-size: 25px; line-height: 1.2; margin: 10px 0 8px; }
.news-card-body p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.news-card-body .news-more { margin-top: auto; padding-top: 18px; color: var(--brand); }
.news-card-body .news-meta { justify-content: flex-start; gap: 14px; }
.news-card-body .news-meta span:first-child { color: var(--muted); }

.news-home .news-grid { gap: 12px; }
.news-home .news-card.news-card-compact { display: grid; grid-template-columns: 98px 1fr; background: #fff; border-color: var(--line); padding: 0; overflow: hidden; align-items: stretch; }
.news-home .news-card.news-card-compact:hover { filter: none; background: var(--surface); box-shadow: 0 10px 26px rgba(0,0,0,.05); }
.news-card-compact .news-cover { min-height: 100%; height: 100%; }
.news-card-compact .news-type-badge { left: 8px; top: 8px; min-height: 20px; padding: 0 7px; font-size: 8px; letter-spacing: .06em; }
.news-card-compact .news-card-body { padding: 14px 14px 14px 12px; }
.news-card-compact .news-card-body h3 { font-size: 14px; line-height: 1.35; margin: 8px 0 6px; }
.news-card-compact .news-card-body p { font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-compact .news-more { font-size: 11px; padding-top: 8px; margin-top: auto; }
.news-card-compact .news-meta { font-size: 9px; gap: 6px; flex-wrap: wrap; }
.news-card-compact .news-meta span:first-child { color: var(--muted); }

/* ---------- Post ---------- */
.post-page { padding-bottom: 48px; }
.post-head { max-width: 900px; margin: 8px 0 22px; }
.post-head h1 { font-size: 40px; line-height: 1.12; margin: 8px 0 10px; }
.post-meta { color: var(--muted); font-size: 12px; }
.post-lead { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 12px 0 0; max-width: 760px; }
.news-type-static { position: static; display: inline-flex; background: var(--surface); color: var(--brand); box-shadow: none; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.post-main { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; min-width: 0; }
.post-main .post-hero-image { margin: 0 0 22px; border-radius: 18px; }
.post-content { color: var(--ink-soft); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.post-back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 13px; }
.post-back:hover { color: var(--brand); }
.post-side { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.post-product { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 18px; }
.post-product-link { display: block; color: var(--ink); }
.post-product-image { height: 170px; border-radius: 14px; background: var(--surface); overflow: hidden; margin: 10px 0 12px; }
.post-product-image img { width: 100%; height: 100%; object-fit: contain; }
.post-product-brand { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.post-product-name { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 5px 0 6px; }
.post-product-price { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.post-product-more { display: inline-block; margin-top: 10px; color: var(--brand); font-size: 12px; font-weight: 500; }
.post-help { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 20px; }
.post-help-icon { width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.post-help-icon svg { width: 20px; height: 20px; }
.post-help h3 { font-size: 18px; margin: 0 0 6px; }
.post-help p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 14px; }
.post-help .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
    .news-card-wide { grid-template-columns: 240px 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .post-side { position: static; }
}
@media (max-width: 700px) {
    .news-page-head h1 { font-size: 30px; }
    .news-card-wide { grid-template-columns: 1fr; }
    .news-card-wide .news-cover { min-height: 210px; height: 210px; }
    .news-card-body { padding: 18px; }
    .news-card-body h2 { font-size: 21px; }
    .news-home .news-card.news-card-compact { grid-template-columns: 82px 1fr; }
    .post-head h1 { font-size: 30px; }
    .post-main { padding: 18px; }
}

/* ---------- Info pages ---------- */
.info-head { margin: 8px 0 22px; }
.info-head .page-title { margin: 5px 0 0; }
.info-lead { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 620px; }
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-bottom: 46px; }
.info-main { min-width: 0; }
.info-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.info-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; color: var(--ink-soft); background: #fff; }
.info-nav a:hover { border-color: rgba(28,30,33,.2); color: var(--ink); }
.info-nav a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.info-card { border: 1px solid var(--line); border-radius: 26px; background: #fff; padding: 24px; }
.info-section-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.info-steps { display: flex; flex-direction: column; gap: 12px; }
.info-step { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; background: #fff; }
.info-step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.info-step p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.info-text { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.info-options { display: flex; flex-direction: column; gap: 12px; }
.info-option { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); }
.info-option-icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-option-icon svg { width: 19px; height: 19px; }
.info-option b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.info-option p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.info-highlight { display: flex; gap: 14px; align-items: flex-start; border-radius: 20px; border: 1px solid rgba(240,30,44,.18); background: rgba(240,30,44,.045); padding: 18px; margin-bottom: 18px; }
.info-highlight-icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-highlight b { display: block; font-size: 15px; margin-bottom: 4px; }
.info-highlight p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.info-steps-compact { gap: 10px; }
.info-prose { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.info-prose p { margin: 0 0 14px; }
.info-prose p:last-child { margin-bottom: 0; }
.info-side { position: sticky; top: 140px; }
.info-help { border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: 22px; }
.info-help-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.info-help-icon svg { width: 22px; height: 22px; }
.info-help h2 { font-size: 21px; margin: 4px 0 6px; }
.info-help p { font-size: 12px; line-height: 1.55; margin: 0 0 10px; }
.info-help .btn { width: 100%; justify-content: center; margin-top: 12px; }
@media (max-width: 900px) {
    .info-layout { grid-template-columns: 1fr; }
    .info-side { position: static; }
}
@media (max-width: 600px) {
    .info-card { padding: 18px; }
    .info-nav { gap: 6px; }
    .info-nav a { font-size: 11px; padding: 0 10px; }
}

/* ---------- Footer logo: white mark, centered gear ---------- */
.footer-grid .brand-footer .brand-text b { color: #fff; }
.footer-grid .brand-footer .brand-text i { color: var(--brand); }

/* ---------- Footer CTA like catalog-home ---------- */
.footer-cta { background: var(--surface); border: 0; }

/* ---------- Price filter ---------- */
.filters-form { display: flex; flex-direction: column; gap: 14px; }
.filters-form > .btn { width: 100%; }
.price-range { display: flex; gap: 8px; }
.price-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.price-range input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 12px; color: var(--ink); background: #fff; }
.price-range input:focus { outline: none; border-color: rgba(28,30,33,.35); }

/* ---------- News: smaller cover ---------- */
.news-card-wide { grid-template-columns: 300px minmax(0, 1fr); }
.news-card-wide .news-cover { height: 210px; min-height: 0; margin: 16px 0 16px 16px; border-radius: 16px; }
.news-card-wide .news-card-body { padding: 20px 24px; }
.post-main .post-hero-image img { height: 340px; max-height: 340px; object-fit: contain; }
@media (max-width: 900px) {
    .news-card-wide { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .news-card-wide .news-cover { height: 180px; margin: 12px 12px 0; }
    .post-main .post-hero-image img { height: 240px; max-height: 240px; }
}

/* ---------- Post without recommendation ---------- */
.post-layout.post-layout-no-side { grid-template-columns: minmax(0, 1fr); }
.post-layout.post-layout-no-side .post-main { max-width: 940px; }

/* ---------- Info manager card ---------- */
.info-manager .manager-photo { height: 270px; }
.info-manager .manager-body { padding: 18px; }
.info-manager .manager-body h2 { font-size: 23px; }
.info-manager .manager-btn { width: 100%; justify-content: center; margin-top: 12px; }
@media (max-width: 900px) {
    .info-manager .manager-photo { height: 320px; }
}

/* ---------- Contacts/manager: no sticky movement ---------- */
.manager-card { position: static; }
.info-side { position: static; }
.contacts-layout .manager-card { position: static; }

/* ---------- Hero stamp ---------- */
.hero-stamp { background: var(--navy); border-color: transparent; color: #fff; }
