@charset "UTF-8";
/* ===== SHOP: shared ===== */
a { color: inherit; }
.logo { text-decoration: none; }
.page { padding-top: 92px; min-height: 70vh; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.header-tools { display: flex; align-items: center; gap: 22px; }
.header-search { display: flex; }
.header-search input {
  background: #111; border: 2px solid #333; border-right: none; color: #eee;
  font-family: 'Roboto Condensed', sans-serif; font-size: 15px; padding: 8px 12px; width: 220px; outline: none;
}
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  background: var(--accent); border: none; color: #111; padding: 0 14px; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 1px;
}
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 15px;
}
.cart-link:hover { color: var(--accent); }
.cart-link svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute; top: -8px; left: 16px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #111; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 2px 2px 0 #000;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }
.burger { display: none; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin: 26px 0 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: #444; }

.page-title {
  font-family: 'Oswald', sans-serif; font-size: 40px; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; margin-bottom: 26px; line-height: 1.1;
}
.page-title small { font-size: 16px; color: var(--muted); letter-spacing: 1px; margin-left: 10px; }

.btn-sm { padding: 11px 20px; font-size: 14px; letter-spacing: 2px; box-shadow: 4px 4px 0 #000; }
.btn-ghost {
  display: inline-block; background: transparent; border: 2px solid #444; color: var(--text); cursor: pointer;
  font-family: 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 10px 18px; font-size: 14px; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.alert { border: 2px solid var(--accent); background: rgba(255,107,0,.08); padding: 14px 18px; margin-bottom: 22px; }
.alert-error { border-color: #d33; background: rgba(220,50,50,.08); }
.alert ul { margin-left: 18px; }

/* ===== Category tiles (home + catalog) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
a.card { display: block; text-decoration: none; }
.card .count { color: var(--muted); font-size: 14px; letter-spacing: 1px; }
.subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.subcats a {
  text-decoration: none; border: 2px solid #333; background: #161616; padding: 8px 14px; font-size: 15px;
  transition: border-color .2s, color .2s;
}
.subcats a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Catalog layout ===== */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: start; padding-bottom: 80px; }
.filters { background: linear-gradient(160deg, #1d1d1d, #151515); border: 3px solid #2b2b2b; padding: 22px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.filters summary { display: none; }
.filter-block { margin-bottom: 22px; }
.filter-title {
  font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: #999; margin-bottom: 10px;
}
.cat-tree { list-style: none; font-size: 15px; }
.cat-tree li { margin: 6px 0; }
.cat-tree ul { list-style: none; margin: 4px 0 6px 14px; border-left: 2px solid #2b2b2b; padding-left: 10px; font-size: 14px; }
.cat-tree a { text-decoration: none; color: #bbb; }
.cat-tree a:hover, .cat-tree a.active { color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 6px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.check .n { color: #555; font-size: 13px; margin-left: auto; }
.brand-list { max-height: 260px; overflow: auto; padding-right: 6px; }
.price-inputs { display: flex; gap: 8px; }
.input, .price-inputs input, .select {
  width: 100%; background: #111; border: 2px solid #333; color: #eee; padding: 9px 10px;
  font-family: 'Roboto Condensed', sans-serif; font-size: 15px; outline: none;
}
.input:focus, .select:focus, .price-inputs input:focus { border-color: var(--accent); }
.filters .btn { width: 100%; text-align: center; }
.filters .reset { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 14px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .found { color: var(--muted); }
.toolbar .select { width: auto; }

/* ===== Product grid ===== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.p-card {
  background: linear-gradient(160deg, #222 0%, #191919 100%); border: 3px solid #2e2e2e; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s; position: relative;
}
.p-card:hover { border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 7px 7px 0 #000; }
.p-img { display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, #2a2a2a, #121212);
}
.noimg::before {
  content: ''; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #222 0 22%, #555 23% 30%, #1a1a1a 31% 58%, #666 59% 66%, #2b2b2b 67%);
  box-shadow: 0 10px 25px rgba(0,0,0,.7);
}
.p-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-brand { font-size: 12px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.p-name { font-family: 'Oswald', sans-serif; font-size: 18px; line-height: 1.2; color: #ddd; text-decoration: none; }
.p-name:hover { color: var(--accent); }
.p-stock { font-size: 13px; color: #6c6; }
.p-stock.out { color: #c66; }
.p-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.p-price { font-family: 'Oswald', sans-serif; font-size: 24px; color: var(--accent); white-space: nowrap; }
.p-price.request { font-size: 16px; color: var(--muted); }
.p-old { color: #666; text-decoration: line-through; font-size: 14px; margin-left: 6px; }
.add-form { display: flex; gap: 6px; }
.qty { width: 58px; background: #111; border: 2px solid #333; color: #eee; text-align: center; font-size: 15px; padding: 6px 4px; outline: none; }
.qty:focus { border-color: var(--accent); }
.btn-cart {
  background: linear-gradient(180deg, var(--accent-glow), var(--accent)); border: none; color: #111; cursor: pointer;
  width: 42px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 #000;
}
.btn-cart svg { width: 20px; height: 20px; }
.btn-cart:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.p-tag { position: absolute; top: 10px; left: -3px; background: var(--accent); color: #111; font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 3px 10px; z-index: 2; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 3px dashed #2b2b2b; }

/* ===== Pagination ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; justify-content: center; list-style: none; }
.pagination a, .pagination span {
  display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 2px solid #333; background: #161616;
  text-decoration: none; font-family: 'Oswald', sans-serif;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active span { background: var(--accent); color: #111; border-color: var(--accent); }
.pagination .disabled span { color: #444; }

/* ===== Product page ===== */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.product-photo { background: #fff; border: 4px solid #333; box-shadow: 12px 12px 0 #000; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info h1 { font-family: 'Oswald', sans-serif; font-size: 38px; line-height: 1.1; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.specs { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 16px; }
.specs td { padding: 10px 0; border-bottom: 1px solid #2a2a2a; }
.specs td:first-child { color: var(--muted); width: 40%; }
.buy-box { background: linear-gradient(160deg, #222, #1a1a1a); border: 3px solid #333; padding: 26px; }
.buy-box .p-price { font-size: 42px; }
.buy-row { display: flex; gap: 12px; margin-top: 18px; align-items: stretch; flex-wrap: wrap; }
.buy-row .qty { width: 90px; font-size: 18px; }
.buy-note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.description { color: #bbb; font-size: 16px; line-height: 1.6; margin-top: 30px; white-space: pre-line; }
.section-h { font-family: 'Oswald', sans-serif; font-size: 28px; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin: 10px 0 22px; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: 'Oswald', sans-serif; letter-spacing: 2px; font-weight: 500; color: #999; font-size: 13px; text-transform: uppercase; padding: 10px; border-bottom: 3px solid #333; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid #2a2a2a; vertical-align: middle; }
.cart-table .thumb { width: 70px; height: 70px; background: #fff; display: block; }
.cart-table .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-table .thumb .noimg::before { width: 60%; }
.cart-table a.name { text-decoration: none; font-size: 17px; }
.cart-table a.name:hover { color: var(--accent); }
.cart-table .sum { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--accent); white-space: nowrap; }
.link-btn { background: none; border: none; color: #888; cursor: pointer; font-size: 22px; line-height: 1; }
.link-btn:hover { color: #e55; }
.cart-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin: 26px 0 80px; }
.cart-total { font-family: 'Oswald', sans-serif; font-size: 30px; }
.cart-total b { color: var(--accent); }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.checkout-layout .cta-form { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label.check { text-transform: none; letter-spacing: 0; font-family: 'Roboto Condensed', sans-serif; font-size: 16px; color: #ddd; }
.form-group .err { color: #f66; font-size: 14px; margin-top: 4px; }
.summary { background: linear-gradient(160deg, #1d1d1d, #151515); border: 3px solid #2b2b2b; padding: 24px; position: sticky; top: 100px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #262626; font-size: 15px; }
.summary-line span:last-child { white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; font-family: 'Oswald', sans-serif; font-size: 26px; margin-top: 16px; }
.summary-total b { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Toast ===== */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; background: #1a1a1a; border: 3px solid var(--accent);
  box-shadow: 6px 6px 0 #000; padding: 14px 18px; max-width: 340px; transform: translateY(150%); transition: transform .25s;
}
.toast.show { transform: none; }
.toast a { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header-search input { width: 150px; }
}
@media (max-width: 950px) {
  .wrap { padding: 0 20px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; padding: 0; }
  .filters summary {
    display: block; list-style: none; cursor: pointer; padding: 14px 18px; font-family: 'Oswald', sans-serif;
    letter-spacing: 2px; text-transform: uppercase;
  }
  .filters summary::-webkit-details-marker { display: none; }
  .filters .filters-body { padding: 0 18px 18px; }
  .product-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .header-search { display: none; }
  .mobile-search { display: flex !important; margin-bottom: 18px; }
}
@media (max-width: 760px) {
  header { flex-wrap: wrap; padding: 12px 16px; }
  .burger { display: inline-flex; background: none; border: 2px solid #444; color: #eee; width: 40px; height: 36px; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; }
  header nav { display: none; width: 100%; order: 3; padding-top: 10px; }
  header.open nav { display: flex; flex-direction: column; gap: 10px; }
  header nav a { margin-left: 0; }
  .logo { font-size: 20px; letter-spacing: 2px; }
  .page { padding-top: 76px; }
  .page-title { font-size: 28px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
  .cart-table td { border: none; padding: 0; }
  .cart-table td.c-thumb { grid-row: span 3; }
  .cart-table td.c-price { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-body { padding: 12px; }
  .p-name { font-size: 15px; }
  .p-price { font-size: 19px; }
  .p-bottom { flex-direction: column; align-items: stretch; }
  .add-form .qty { flex: 1; }
}
@media (max-width: 560px) {
  header nav { display: none; }
  header.open nav { display: flex; }
}

/* ===== Characteristics ===== */
.dim-selects { display: flex; flex-direction: column; gap: 8px; }
.dim-select { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dim-select .select { width: 100%; font-size: 14px; padding: 7px 8px; }
.p-dims { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 1px; color: var(--muted); }
.filters .cat-tree { max-height: 240px; overflow: auto; padding-right: 6px; }
@media (max-width: 950px) { .filters .cat-tree { max-height: none; } }
.page-title .filter-h1 { color: var(--accent); }

/* Full-height filter panel: no inner scrolling */
.filters { position: static; max-height: none; overflow: visible; }
.filters .brand-list, .filters .cat-tree { max-height: none; overflow: visible; padding-right: 0; }

/* Pagination lives in <nav>: undo header "nav a" styles (margin, uppercase spacing) */
.pagination a, .pagination span {
  margin: 0; letter-spacing: 0; text-transform: none; font-size: 16px; line-height: 1.4;
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
}
.pagination li { display: block; }

/* ===== Footer documents, requisites, disclaimer ===== */
footer { flex-direction: column; align-items: stretch; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .footer-links a { margin: 0; color: #aaa; font-family: 'Roboto Condensed', sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; text-decoration: none; }
footer .footer-links a:hover { color: var(--accent); }
.requisites { color: #8a8a8a; font-size: 13px; }
.disclaimer { color: #6f6f6f; font-size: 12px; line-height: 1.5; max-width: 1100px; border-top: 1px solid #2a2a2a; padding-top: 14px; }

/* ===== Legal pages ===== */
.doc { max-width: 860px; padding-bottom: 80px; font-size: 16px; line-height: 1.65; }
.doc h2 { font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 1px; margin: 28px 0 10px; }
.doc p, .doc ul { margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--accent); }

/* ===== Cookie notice ===== */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 250; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: var(--surface, #1a1a1a); color: var(--text); border: 2px solid var(--accent); box-shadow: 6px 6px 0 #1c1c1c;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: 14px; line-height: 1.45; margin: 0; }
.cookie-bar a { color: var(--accent); }
.cookie-bar .btn { flex-shrink: 0; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } }

.consent-check { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.consent-check a { color: var(--accent); }

/* ===== SEO text under listings ===== */
.seo-text { max-width: 900px; padding: 10px 0 70px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.seo-text h2 { font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--heading, #fff); margin: 22px 0 10px; }
.seo-text p, .seo-text ul { margin-bottom: 12px; }
.seo-text ul { padding-left: 22px; }
.seo-text strong { color: var(--text); }

/* ===== Lead block: УТП + image ===== */
.cta-form h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: 2px; }
.cta-points { list-style: none; margin: -10px 0 24px; display: grid; gap: 8px; }
.cta-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.cta-points li::before { content: ''; width: 8px; height: 8px; flex-shrink: 0; background: var(--accent); }
.cta-inner { align-items: stretch; }
.cta-image { padding: 0; min-height: 100%; background: #111; }
.cta-image img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 35%; }
@media (max-width: 950px) {
  .cta-image { aspect-ratio: 4 / 3; max-height: none; min-height: 0; }
}
/* The promo image is square with lettering near the edges: keep the box square so nothing is cropped. */
.cta-image { aspect-ratio: 1 / 1; min-height: 0; height: auto; align-self: center; }
.cta-image img { object-position: center; }
@media (max-width: 950px) { .cta-image { aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; } }
/* Same height as the form: whole image (contain) over a blurred, darkened copy of itself — no crop, no white bars. */
.cta-image { aspect-ratio: auto; align-self: stretch; height: auto; min-height: 420px; position: relative; overflow: hidden; background: #111; }
.cta-image::before {
  content: ''; position: absolute; inset: -30px; background: var(--promo) center / cover no-repeat;
  filter: blur(22px) brightness(.45) saturate(1.1); transform: scale(1.1);
}
.cta-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 950px) { .cta-image { aspect-ratio: 1 / 1; min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; } }
.cta-context { font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .5px; color: var(--accent) !important; margin-bottom: 8px !important; }

/* ===== Section icons ===== */
.cat-ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.subcats a { display: inline-flex; align-items: center; gap: 10px; }
.subcats a:hover .cat-ic { transform: rotate(-12deg); }
.cat-ic { transition: transform .2s; }
.cat-tree a { display: inline-flex; align-items: flex-start; gap: 8px; }
.cat-tree .cat-ic { width: 18px; height: 18px; margin-top: 1px; }
.cat-tree ul .cat-ic { width: 16px; height: 16px; }

/* ===== Header: catalog button + mega menu ===== */
header nav { display: flex; align-items: center; }
.nav-catalog { position: relative; }
header nav a.nav-catalog-btn {
  margin-left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: linear-gradient(180deg, var(--accent-glow), var(--accent)); color: #fff;
  font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 15px;
  box-shadow: 3px 3px 0 #1c1c1c; transition: transform .15s, box-shadow .15s;
}
header nav a.nav-catalog-btn:hover, .nav-catalog:hover .nav-catalog-btn, .nav-catalog.open .nav-catalog-btn { color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #1c1c1c; }
.nav-catalog-btn .nc-ic { width: 18px; height: 18px; }
.nav-catalog-btn .nc-arrow { width: 14px; height: 14px; transition: transform .2s; }
.nav-catalog:hover .nc-arrow, .nav-catalog.open .nc-arrow { transform: rotate(180deg); }
.nav-catalog + a { margin-left: 28px; }

.mega {
  display: none; position: absolute; left: 0; top: calc(100% + 18px); z-index: 120;
  width: 780px; max-width: calc(100vw - 40px); min-height: 440px;
  background: var(--surface, #1a1a1a); border: 2px solid var(--line, #333); border-top: 4px solid var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18), 8px 8px 0 #1c1c1c;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* hover bridge */
.nav-catalog:hover .mega, .nav-catalog:focus-within .mega, .nav-catalog.open .mega { display: block; }
.mega-l1 { list-style: none; width: 340px; padding: 10px 0; border-right: 1px solid var(--line, #333); }
.mega-item { position: static; }
.mega a {
  margin: 0; display: flex; align-items: center; gap: 10px; padding: 9px 18px;
  font-family: 'Roboto Condensed', sans-serif; font-size: 15px; letter-spacing: 0; text-transform: none;
  color: var(--text); text-decoration: none; line-height: 1.25;
}
.mega a:hover, .mega-item.is-active > a { background: rgba(223, 90, 0, .08); color: var(--accent); }
.mega .cat-ic { width: 20px; height: 20px; }
.mega-name { flex: 1; }
.mega-count { font-size: 12px; color: var(--muted); font-family: 'Oswald', sans-serif; letter-spacing: .5px; }
.mega-chevron { width: 14px; height: 14px; color: var(--muted); }
.mega-item-all { border-top: 1px solid var(--line, #333); margin-top: 6px; padding-top: 6px; }
.mega-item-all a { font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; color: var(--accent); }
.mega-toggle { display: none; }
.mega-l2 { display: none; position: absolute; left: 340px; top: 0; right: 0; bottom: 0; padding: 22px 10px 22px 14px; overflow: auto; }
.mega-item.is-active > .mega-l2 { display: block; }
.mega-l2-title { font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--heading, #fff); padding: 0 18px 10px; }
.mega-l2 ul { list-style: none; }
.mega-l2 a { font-size: 15px; }
.mega-all { margin-top: 10px; color: var(--accent) !important; font-family: 'Oswald', sans-serif !important; letter-spacing: 1px !important; font-size: 14px !important; }

@media (max-width: 1100px) {
  header nav a.nav-catalog-btn { padding: 8px 12px; font-size: 14px; letter-spacing: 1px; }
  .nav-catalog + a { margin-left: 18px; }
}
@media (max-width: 760px) {
  header nav { flex-direction: column; align-items: stretch; }
  header.open nav { display: flex; }
  header nav a.nav-catalog-btn { width: 100%; justify-content: flex-start; }
  .nav-catalog-btn .nc-arrow { margin-left: auto; }
  .nav-catalog + a { margin-left: 0; }
  .nav-catalog:hover .mega, .nav-catalog:focus-within .mega { display: none; }
  .nav-catalog.open .mega { display: block; }
  .mega { position: static; width: auto; max-width: none; min-height: 0; margin-top: 10px; box-shadow: none; }
  .mega::before { display: none; }
  .mega-l1 { width: auto; border-right: none; padding: 4px 0; }
  .mega-item { position: relative; }
  .mega-item.is-active > a { background: none; color: var(--text); }
  .mega-chevron { display: none; }
  .mega-toggle {
    display: flex; position: absolute; right: 6px; top: 4px; width: 34px; height: 34px; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line, #333); color: var(--accent); font-size: 20px; cursor: pointer;
  }
  .mega-item.has-children > a { padding-right: 52px; }
  .mega-item.is-active > .mega-l2 { display: none; }
  .mega-item.open-sub > .mega-l2 { display: block; }
  .mega-item.open-sub > .mega-toggle { transform: rotate(45deg); }
  .mega-l2 { position: static; padding: 0 0 8px 28px; }
  .mega-l2-title { display: none; }
}
.mega-toggle::before { content: '+'; }
@media (max-width: 760px) {
  .mega-item.open-sub > .mega-toggle { transform: none; background: var(--accent); color: #fff; border-color: var(--accent); }
  .mega-item.open-sub > .mega-toggle::before { content: '\2212'; }
}

/* Menu aligned to the left, right after the logo; search and cart stay on the right */
@media (min-width: 761px) {
  header nav { margin-left: 40px; margin-right: auto; }
  .header-tools { margin-left: 24px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  header nav { margin-left: 24px; }
}

/* Mobile header: menu hidden until the burger is tapped (overrides the desktop "header nav { display:flex }") */
@media (max-width: 760px) {
  header nav { display: none; }
  header.open nav { display: flex; gap: 0; padding: 10px 0 6px; max-height: calc(100vh - 70px); overflow-y: auto; }
  header.open nav > a { padding: 12px 2px; border-bottom: 1px solid var(--line, #333); font-size: 14px; }
  header.open nav > a:last-child { border-bottom: none; }
  .nav-catalog { margin-bottom: 6px; }
}

/* ===== Brands carousel ===== */
.brands-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.brands-nav { display: flex; gap: 10px; margin-bottom: 18px; }
.brands-btn {
  width: 46px; height: 46px; border: 2px solid var(--line, #333); background: var(--surface, #1a1a1a); color: var(--text);
  font-size: 20px; cursor: pointer; box-shadow: 3px 3px 0 #1c1c1c; transition: border-color .2s, color .2s, transform .15s;
}
.brands-btn:hover { border-color: var(--accent); color: var(--accent); transform: translate(-1px, -1px); }
.brands-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 10px 18px 2px;
  scrollbar-width: thin; outline: none;
}
.brands-track::-webkit-scrollbar { height: 6px; }
.brands-track::-webkit-scrollbar-thumb { background: var(--line-strong, #444); }
.brand-tile {
  scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 140px; padding: 22px 20px; text-decoration: none;
  background: var(--surface, #1a1a1a); border: 2px solid var(--line, #333); box-shadow: var(--shadow, none);
  transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.brand-tile::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .2s; }
.brand-tile:hover { border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 #1c1c1c; }
.brand-tile:hover::after { transform: scaleY(1); }
.brand-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 2px; line-height: 1; color: var(--heading, #fff); }
.brand-tile:hover .brand-name { color: var(--accent); }
.brand-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.brand-count { font-family: 'Oswald', sans-serif; letter-spacing: 1px; color: var(--accent); }
@media (max-width: 560px) {
  .brands-track { grid-auto-columns: 62%; }
  .brands-btn { width: 40px; height: 40px; }
}

/* ===== 404: animated machine ===== */
.e404 { text-align: center; padding-top: 10px; padding-bottom: 90px; }
.e404-machine { width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto 10px; }
.e404-title { margin-bottom: 12px; }
.e404-text { max-width: 640px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.e404-text a { color: var(--accent); }
.e404-search { display: flex; max-width: 560px; margin: 0 auto 24px; gap: 0; }
.e404-search input { flex: 1; background: var(--surface, #111); border: 2px solid var(--line, #333); border-right: none; color: var(--text); padding: 12px 14px; font-size: 16px; font-family: 'Roboto Condensed', sans-serif; outline: none; }
.e404-search input:focus { border-color: var(--accent); }
.e404-search .btn { box-shadow: none; }
.e404-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.e404-cats { justify-content: center; }

.m-404 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 230px; fill: var(--heading, #fff); }
.m-ring-o { fill: url(#m-steel); stroke: #3a3d40; stroke-width: 1.5; }
.m-ring-gap { fill: #2a2c2f; }
.m-cage { fill: none; stroke: var(--accent); stroke-width: 3; opacity: .9; }
.m-ball { fill: url(#m-ballg); }
.m-ring-i { fill: url(#m-steel); stroke: #3a3d40; stroke-width: 1.5; }
.m-bore { fill: var(--bg, #f3f3f1); stroke: #3a3d40; stroke-width: 1; }
.m-mark { fill: var(--accent); }
.m-frame { fill: #3a3d40; }
.m-gear { fill: none; stroke: #6b6f73; stroke-width: 14; }
.m-gear-body { fill: #8e9296; stroke: #55595d; stroke-width: 2; }
.m-pulley { fill: #7c8084; stroke: #45484b; stroke-width: 3; }
.m-spoke { stroke: #45484b; stroke-width: 4; }
.m-belt { fill: none; stroke: #222; stroke-width: 7; stroke-dasharray: 12 6; animation: m-belt 0.9s linear infinite; }
.m-cyl { fill: #5d6165; stroke: #3a3d40; stroke-width: 2; }
.m-piston-head { fill: var(--accent); }
.m-rod { fill: #8e9296; }
.m-pin { fill: #2a2c2f; }
.m-conv { fill: #2a2c2f; }
.m-conv-belt { fill: none; stroke: #55595d; stroke-width: 4; stroke-dasharray: 14 8; animation: m-belt 0.6s linear infinite reverse; }
.m-shaft { fill: url(#m-steel); }
.m-pillow { fill: #4d5155; stroke: #2a2c2f; stroke-width: 2; }
.m-box rect { fill: #c8a273; stroke: #8a6a44; stroke-width: 2; }
.m-box text { font: 700 12px 'Oswald', sans-serif; fill: #3d2c18; text-anchor: middle; }
.sp { fill: #ffb347; opacity: 0; }

.spin { transform-box: fill-box; transform-origin: center; animation: m-spin linear infinite; }
.s-slow { animation-duration: 14s; }
.s-cage { animation-duration: 7s; }
.s-rev { animation-duration: 4.5s; animation-direction: reverse; }
.s-fast { animation-duration: 1.6s; }
.s-rev-fast { animation-duration: 1.8s; animation-direction: reverse; }
.s-g1 { animation-duration: 8s; }
.s-g2 { animation-duration: 5s; animation-direction: reverse; }
.s-g3 { animation-duration: 5s; animation-direction: reverse; }
.s-crank { animation-duration: 2s; }
.m-piston { animation: m-piston 2s ease-in-out infinite; }
.m-box { animation: m-conveyor 9s linear infinite; }
.m-box.b2 { animation-delay: -3s; }
.m-box.b3 { animation-delay: -6s; }
.m-float { animation: m-float 4s ease-in-out infinite; }
.m-float:nth-of-type(2n) { animation-delay: -2s; }
.sp1 { animation: m-spark 1.4s ease-out infinite; }
.sp2 { animation: m-spark2 1.4s ease-out infinite .45s; }
.sp3 { animation: m-spark3 1.4s ease-out infinite .9s; }

@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-belt { to { stroke-dashoffset: -18; } }
@keyframes m-piston { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(36px); } }
@keyframes m-conveyor { 0% { transform: translate(560px, 386px); opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(880px, 386px); opacity: 0; } }
@keyframes m-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes m-spark { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-26px, -30px); } }
@keyframes m-spark2 { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(24px, -34px); } }
@keyframes m-spark3 { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(4px, -40px); } }

@media (prefers-reduced-motion: reduce) {
  .e404-machine * { animation: none !important; }
}
@media (max-width: 560px) {
  .e404-search { flex-direction: column; gap: 10px; }
  .e404-search input { border-right: 2px solid var(--line, #333); }
}
.e404-actions { align-items: center; }
.e404-actions .btn-ghost { padding: 16px 28px; }

/* ===== Brands conveyor ===== */
.conveyor { position: relative; padding: 10px 70px 0; margin-top: 10px; }
.cv-window { overflow: hidden; position: relative; z-index: 2; padding: 14px 0 0; }
.cv-track { display: flex; gap: 24px; width: max-content; animation: cv-move var(--lap-time, 70s) linear infinite; }
.cv-box {
  position: relative; flex: 0 0 200px; height: 128px; padding: 26px 16px 14px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  background: linear-gradient(180deg, #d8b483 0%, #c9a06b 100%); border: 2px solid #9c7646; border-radius: 3px;
  box-shadow: inset 0 -10px 18px rgba(110, 74, 30, .18), 0 6px 0 rgba(0, 0, 0, .12);
  transition: transform .2s;
}
.cv-box::before, .cv-box::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(110, 74, 30, .25); }
.cv-box::before { left: 33%; } .cv-box::after { right: 33%; }
.cv-tape { position: absolute; top: 0; left: 50%; width: 46px; height: 100%; transform: translateX(-50%); background: rgba(255, 236, 200, .35); border-left: 1px dashed rgba(110, 74, 30, .3); border-right: 1px dashed rgba(110, 74, 30, .3); }
.cv-name { position: relative; z-index: 1; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 2px; line-height: 1; color: #3b2a16; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.cv-meta { position: relative; z-index: 1; font-size: 13px; color: #5b4326; }
.cv-arrows { position: absolute; top: 6px; right: 8px; font-size: 11px; letter-spacing: -2px; color: rgba(59, 42, 22, .55); }
.cv-box:hover { transform: translateY(-8px); }
.cv-box:hover .cv-name { color: #b04600; }

.cv-belt {
  position: relative; z-index: 1; height: 16px; margin-top: 0; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #2b2b2b 0 28px, #3b3b3b 28px 40px); background-size: 40px 100%;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 3px 0 #1c1c1c; animation: cv-belt .6s linear infinite;
}
.cv-rollers { display: flex; justify-content: space-between; padding: 2px 10px 0; position: relative; z-index: 1; }
.cv-rollers svg { width: 30px; height: 30px; }
.cv-roll { transform-box: fill-box; transform-origin: center; animation: cv-spin 1.32s linear infinite; }
.cv-r-outer { fill: #9a9ea2; stroke: #4a4d50; stroke-width: 1.5; }
.cv-r-gap { fill: #2f3134; }
.cv-r-ball { fill: #d8dadd; }
.cv-r-inner { fill: var(--accent); }
.cv-legs { display: flex; justify-content: space-between; padding: 0 40px; height: 34px; }
.cv-legs span { width: 12px; background: repeating-linear-gradient(45deg, var(--accent) 0 8px, #1c1c1c 8px 16px); }

.cv-gear { position: absolute; z-index: 0; width: 120px; height: 120px; bottom: 26px; }
.cv-gear-l { left: -6px; } .cv-gear-r { right: -6px; }
.cv-spin { transform-box: fill-box; transform-origin: center; animation: cv-spin 3.5s linear infinite; }
.cv-gear-r .cv-spin { animation-direction: normal; }
.cv-teeth { fill: none; stroke: #6b6f73; stroke-width: 14; }
.cv-gear-body { fill: #8e9296; stroke: #55595d; stroke-width: 2; }
.cv-hub { fill: var(--accent); stroke: #1c1c1c; stroke-width: 2; }
.cv-spoke { stroke: #55595d; stroke-width: 5; }

/* Boxes move right → left like a belt; everything pauses on hover so a box is easy to click. */
@keyframes cv-move { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--lap))); } }
@keyframes cv-belt { to { background-position: -40px 0; } }
@keyframes cv-spin { to { transform: rotate(-360deg); } }
.conveyor:hover .cv-track, .conveyor:hover .cv-belt, .conveyor:hover .cv-roll, .conveyor:hover .cv-spin,
.conveyor:focus-within .cv-track, .conveyor:focus-within .cv-belt, .conveyor:focus-within .cv-roll, .conveyor:focus-within .cv-spin { animation-play-state: paused; }

@media (max-width: 760px) {
  .conveyor { padding: 6px 0 0; }
  .cv-gear { display: none; }
  .cv-box { flex-basis: 160px; height: 110px; }
  .cv-name { font-size: 24px; }
  .cv-rollers svg { width: 24px; height: 24px; }
  .cv-legs { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-track, .cv-belt, .cv-roll, .cv-spin { animation: none; }
  .cv-window { overflow-x: auto; }
}

/* ===== Conveyor v2: left → right, warehouse/shipping housings with strip curtains ===== */
.conveyor { padding: 0; --house: 132px; }
.cv-window { padding-top: 14px; }
@keyframes cv-move { from { transform: translateX(calc(-1 * var(--lap))); } to { transform: translateX(0); } }
@keyframes cv-belt { to { background-position: 40px 0; } }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-gear-l, .cv-gear-r { display: none; } /* old free-standing gears */

.cv-house {
  position: absolute; z-index: 3; top: -8px; width: var(--house); height: 176px;
  background: linear-gradient(180deg, #4a4e52 0%, #34373a 100%); border: 3px solid #1c1c1c;
  box-shadow: 6px 6px 0 #1c1c1c; overflow: hidden;
}
.cv-house::before { /* hazard band at the bottom */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 10px, #1c1c1c 10px 20px);
}
.cv-house-l { left: 0; border-radius: 4px 0 0 4px; }
.cv-house-r { right: 0; border-radius: 0 4px 4px 0; }
.cv-house-label {
  position: absolute; top: 12px; left: 0; right: 0; text-align: center;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #e9e9e9;
}
.cv-house .cv-gear { position: absolute; display: block; width: 74px; height: 74px; top: 44px; }
.cv-house-l .cv-gear { left: 12px; } .cv-house-r .cv-gear { right: 12px; }
.cv-lamp {
  position: absolute; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #ff8a1f;
  box-shadow: 0 0 10px 3px rgba(255, 138, 31, .8); animation: cv-blink 1.2s steps(2, jump-none) infinite;
}
.cv-house-l .cv-lamp { right: 12px; } .cv-house-r .cv-lamp { left: 12px; }
.cv-house-r .cv-lamp { animation-delay: .6s; }

/* Rubber strip curtain at the opening facing the belt */
.cv-curtain {
  position: absolute; top: 30px; bottom: 16px; width: 34px; display: flex; gap: 1px;
  background: #1c1c1c; padding: 0 1px;
}
.cv-house-l .cv-curtain { right: 0; } .cv-house-r .cv-curtain { left: 0; }
.cv-curtain i {
  flex: 1; display: block; background: linear-gradient(90deg, rgba(60, 64, 68, .95), rgba(110, 116, 122, .9) 50%, rgba(60, 64, 68, .95));
  transform-origin: top center; animation: cv-flap 1.6s ease-in-out infinite;
}
.cv-curtain i:nth-child(2) { animation-delay: -.3s; } .cv-curtain i:nth-child(3) { animation-delay: -.6s; }
.cv-curtain i:nth-child(4) { animation-delay: -.9s; } .cv-curtain i:nth-child(5) { animation-delay: -1.2s; }
.cv-house-r .cv-curtain i { animation-direction: reverse; }
@keyframes cv-flap { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(7deg); } }
@keyframes cv-blink { 50% { opacity: .25; box-shadow: none; } }

/* Belt and rollers run between the housings */
.cv-belt, .cv-rollers { margin-left: calc(var(--house) - 20px); margin-right: calc(var(--house) - 20px); }
.cv-legs { padding: 0 calc(var(--house) + 20px); }

.conveyor:hover .cv-curtain i, .conveyor:focus-within .cv-curtain i, .conveyor:hover .cv-lamp { animation-play-state: paused; }

@media (max-width: 760px) {
  .conveyor { --house: 64px; }
  .cv-house { height: 150px; }
  .cv-house .cv-gear { width: 40px; height: 40px; top: 46px; }
  .cv-house-l .cv-gear { left: 4px; } .cv-house-r .cv-gear { right: 4px; }
  .cv-house-label { font-size: 9px; letter-spacing: 1px; }
  .cv-curtain { width: 20px; }
  .cv-legs { padding: 0 calc(var(--house) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .cv-curtain i, .cv-lamp { animation: none; }
}
@media (max-width: 760px) { .cv-rollers svg:nth-child(n+9) { display: none; } }

/* ===== Справочник ===== */
footer .footer-links a.footer-strong { color: var(--accent); font-weight: 700; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 60px; }
.article-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; color: var(--text);
  background: var(--surface, #1a1a1a); border: 2px solid var(--line, #333); box-shadow: var(--shadow, none);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.article-card:hover { border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 7px 7px 0 #1c1c1c; }
.article-icon .cat-ic { width: 36px; height: 36px; }
.article-title { font-family: 'Oswald', sans-serif; font-size: 24px; letter-spacing: 1px; line-height: 1.15; color: var(--heading, #fff); }
.article-card:hover .article-title { color: var(--accent); }
.article-excerpt { color: var(--muted); font-size: 15px; line-height: 1.5; }
.article-meta { color: var(--muted); font-size: 14px; margin-top: auto; }
.article-card .article-meta { color: var(--accent); font-family: 'Oswald', sans-serif; letter-spacing: 1px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; padding-bottom: 40px; }
.article-body .page-title { margin-bottom: 10px; }
.article-body .article-meta { margin-bottom: 18px; }
.article-lead { font-size: 18px; line-height: 1.6; color: var(--text); margin-bottom: 20px; padding-left: 16px; border-left: 4px solid var(--accent); }
.article-content { max-width: none; padding-bottom: 20px; }
.article-content h2 { scroll-margin-top: 100px; padding-top: 6px; border-top: 1px solid var(--line, #333); margin-top: 30px; }
.article-content ul ul { margin-top: 6px; }
.article-content li { margin-bottom: 6px; }
.article-toc { position: sticky; top: 100px; background: var(--surface, #1a1a1a); border: 2px solid var(--line, #333); padding: 20px; box-shadow: var(--shadow, none); max-height: calc(100vh - 120px); overflow: auto; }
.article-toc ol { padding-left: 22px; font-size: 14px; line-height: 1.4; }
.article-toc li { margin: 6px 0; }
.article-toc a { color: var(--text); text-decoration: none; }
.article-toc a:hover { color: var(--accent); }
@media (max-width: 950px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; max-height: none; order: -1; }
}

/* Article TOC: full height, no inner scrollbar. Sticky only when the screen is tall enough to show it whole. */
.article-toc { max-height: none; overflow: visible; position: static; }
.article-toc ol { font-size: 13.5px; }
.article-toc li { margin: 4px 0; }
@media (min-width: 951px) and (min-height: 820px) { .article-toc { position: sticky; top: 96px; } }

/* ===== Reference tables & size tool ===== */
.table-wrap { overflow-x: auto; margin: 10px 0 22px; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface, #1a1a1a); }
.ref-table th { text-align: left; font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: 1px; font-size: 13px; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 2px solid var(--line-strong, #444); white-space: nowrap; }
.ref-table td { padding: 8px 12px; border-bottom: 1px solid var(--line, #333); vertical-align: top; }
.ref-table tbody tr:hover td { background: rgba(223, 90, 0, .05); }
.ref-table a { color: var(--accent); font-weight: 700; }
.article-content h3 { font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: 1px; margin: 22px 0 6px; }
.size-tool { background: var(--surface, #1a1a1a); border: 2px solid var(--accent); padding: 22px; margin: 6px 0 28px; box-shadow: 6px 6px 0 #1c1c1c; }
.size-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.size-form label { display: flex; flex-direction: column; gap: 6px; font-family: 'Oswald', sans-serif; letter-spacing: 1px; font-size: 14px; }
.size-form small { font-family: 'Roboto Condensed', sans-serif; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.size-form input, .size-form select { background: var(--surface-2, #111); border: 2px solid var(--line, #333); color: var(--text); font-size: 20px; padding: 10px 12px; font-family: 'Oswald', sans-serif; outline: none; width: 100%; }
.size-form select { font-size: 16px; }
.size-form input:focus, .size-form select:focus { border-color: var(--accent); }
.size-hint { margin: 14px 0 4px; color: var(--muted); font-size: 15px; }
.size-hint a { color: var(--accent); }
.size-results td:last-child { white-space: nowrap; }
@media (max-width: 760px) { .size-form { grid-template-columns: 1fr 1fr; } }
.ref-na { font-weight: 700; color: var(--text); }

/* ===== Home: size finder (blueprint + caliper) ===== */
.sf { max-width: 1240px; margin: 0 auto; padding: 30px 20px 70px; }
.sf-panel { position: relative; background-color: #173a5e; color: #e8f0f8; border: 2px solid #0f2740; box-shadow: 8px 8px 0 #1c1c1c; padding: 34px 34px 28px; overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; }
.sf-panel::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.25); pointer-events: none; }
.sf-stamp { position: absolute; right: 10px; bottom: 10px; font: 600 11px/1 "Roboto Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.25); padding: 8px 12px; }
.sf-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 34px; align-items: center; position: relative; }
.sf-h { font-family: Oswald, sans-serif; font-size: 40px; line-height: 1.05; text-transform: uppercase; margin: 0 0 12px; color: #fff; }
.sf-sub { color: #b9cde0; margin: 0 0 22px; font-size: 16px; line-height: 1.5; }
.sf-form { display: grid; gap: 10px; }
.sf-field { display: grid; grid-template-columns: 46px 1fr 110px 34px; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; cursor: text;
  border: 1px dashed rgba(255,255,255,.35); transition: border-color .25s, background .25s; }
.sf-field.on { border: 1px solid #ff8a1f; background: rgba(255,138,31,.10); }
.sf-key { width: 46px; height: 46px; display: grid; place-items: center; font: 700 26px/1 Oswald, sans-serif; color: #173a5e; background: #fff; transition: background .25s, color .25s; }
.sf-field.on .sf-key { background: #df5a00; color: #fff; }
.sf-label { font: 500 15px/1.2 "Roboto Condensed", sans-serif; color: #dce8f3; text-transform: uppercase; letter-spacing: .04em; }
.sf-field input { width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.5); color: #fff; font: 600 26px/1.2 Oswald, sans-serif;
  text-align: right; padding: 2px 0; outline: none; box-shadow: none; }
.sf-field input::placeholder { color: rgba(255,255,255,.28); }
.sf-field input:focus { border-bottom-color: #ff8a1f; }
.sf-unit { color: #9fb6cc; font-size: 14px; }
.sf-tol { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: #b9cde0; font-size: 14px; cursor: pointer; position: relative; }
.sf-tol input { position: absolute; opacity: 0; pointer-events: none; }
.sf-box { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.6); flex: none; position: relative; }
.sf-tol input:checked + .sf-box { background: #df5a00; border-color: #df5a00; }
.sf-tol input:checked + .sf-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sf-tol input:focus-visible + .sf-box { outline: 2px solid #ff8a1f; outline-offset: 2px; }
.sf-more { display: inline-block; margin-top: 16px; color: #ffb36b; font-size: 14px; text-decoration: none; border-bottom: 1px dashed currentColor; }
.sf-more:hover { color: #fff; }

.sf-draw { width: 100%; height: auto; display: block; overflow: visible; }
.sf-axis { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.sf-hole { fill: #173a5e; }
.sf-hidden { fill: rgba(0,0,0,.22); stroke: #2b2e31; stroke-dasharray: 5 3; }
.sf-sc, .sf-cal, .sf-slide { transition: transform .9s cubic-bezier(.65,0,.25,1); }
.sf-spin { animation: sf-spin 9s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-dim line { stroke: rgba(255,255,255,.75); stroke-width: 1.2; transition: stroke .3s; }
.sf-dim line:not(.sf-ext) { marker-start: url(#sf-arr); marker-end: url(#sf-arr); }
.sf-dim .sf-ext { stroke-dasharray: 3 3; stroke-width: 1; }
.sf-dim text { fill: #fff; font: 600 15px Oswald, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #173a5e; stroke-width: 5px; transition: fill .3s; }
.sf-dim.on line { stroke: #ff8a1f; stroke-width: 2; }
.sf-dim.on line:not(.sf-ext) { marker-start: url(#sf-arr-on); marker-end: url(#sf-arr-on); }
.sf-dim.on text { fill: #ff8a1f; }
.sf-cal { filter: drop-shadow(3px 4px 3px rgba(0,0,0,.35)); }
.sf-read { font: 700 15px "Roboto Condensed", monospace; fill: #1d2a12; text-anchor: end; }

.sf-results { position: relative; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(255,255,255,.3); min-height: 60px; }
.sf-empty { color: #b9cde0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-empty[hidden], .sf-count[hidden] { display: none; }
.sf-try { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 6px 12px; font: 600 14px Oswald, sans-serif; cursor: pointer; letter-spacing: .03em; }
.sf-try:hover { border-color: #ff8a1f; color: #ffb36b; }
.sf-count { color: #b9cde0; font-size: 14px; margin-bottom: 14px; }
.sf-count b { color: #fff; }
.sf-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
/* Result = paper part tag pinned to the drawing */
.sf-tag { position: relative; display: flex; flex-direction: column; gap: 3px; background: #fbf8ef; color: #1c1c1c; padding: 16px 16px 14px 34px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  animation: sf-tag .45s cubic-bezier(.2,.8,.3,1.3) both; transform-origin: 0 50%; }
.sf-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #173a5e; box-shadow: 0 0 0 3px #e3dcc6; }
@keyframes sf-tag { from { opacity: 0; transform: rotate(-6deg) translateY(10px); } }
.sf-iso { font: 700 24px/1.1 Oswald, sans-serif; color: #111; }
.sf-type { font-size: 13px; color: #6b6b6b; hyphens: auto; overflow-wrap: anywhere; }
.sf-size { font: 600 15px "Roboto Condensed", sans-serif; color: #173a5e; margin-top: 4px; }
.sf-gost { font-size: 13px; color: #444; }
.sf-stock { margin-top: 8px; font: 600 13px "Roboto Condensed", sans-serif; text-decoration: none; padding: 6px 8px; text-align: center; }
.sf-stock.yes { background: #df5a00; color: #fff; }
.sf-stock.yes:hover { background: #1c1c1c; }
.sf-stock.no { border: 1px solid #c9c2ad; color: #555; }
.sf-stock.no:hover { border-color: #df5a00; color: #df5a00; }
.sf-none { color: #ffd2a8; font-size: 15px; }
.sf-none a { color: #fff; }

@media (max-width: 900px) {
  .sf { padding: 20px 16px 50px; }
  .sf-panel { padding: 24px 18px 44px; }
  .sf-inner { grid-template-columns: 1fr; gap: 18px; }
  .sf-draw { order: -1; max-width: 520px; margin: 0 auto; }
  .sf-h { font-size: 30px; }
  .sf-field { grid-template-columns: 40px 1fr 80px 26px; gap: 10px; }
  .sf-key { width: 40px; height: 40px; font-size: 22px; }
  .sf-label { font-size: 13px; }
  .sf-field input { font-size: 22px; }
  .sf-tags { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .sf-tag { padding: 12px 10px 10px 26px; }
  .sf-tag::before { left: 8px; width: 8px; height: 8px; margin-top: -4px; }
  .sf-iso { font-size: 20px; }
  .sf-stock { font-size: 12px; padding: 6px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-spin, .sf-tag { animation: none; }
  .sf-sc, .sf-cal, .sf-slide { transition: none; }
}

/* ===== Home: FAQ ===== */
.faq { max-width: 1240px; margin: 0 auto; padding: 80px 20px 70px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 96px; }
.faq-ask { margin-top: 26px; padding: 20px; background: var(--surface, #fff); border: 2px solid #1c1c1c; box-shadow: 6px 6px 0 var(--accent, #df5a00); display: grid; gap: 10px; justify-items: start; }
.faq-ask-t { font: 600 18px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.faq-phone { font: 700 22px Oswald, sans-serif; color: var(--text, #1c1c1c); text-decoration: none; }
.faq-phone:hover { color: var(--accent, #df5a00); }
.faq-list { border-top: 2px solid #1c1c1c; }
.faq-item { border-bottom: 1px solid var(--line, #dcdcd8); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 28px; gap: 14px; align-items: center; padding: 20px 4px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font: 600 19px/1.3 "Roboto Condensed", sans-serif; color: var(--heading, #111); transition: color .2s; }
.faq-item summary:hover h3, .faq-item[open] summary h3 { color: var(--accent, #df5a00); }
.faq-n { font: 700 15px Oswald, sans-serif; color: var(--muted, #6b6b6b); letter-spacing: .05em; }
.faq-item[open] .faq-n { color: var(--accent, #df5a00); }
.faq-ico { position: relative; width: 28px; height: 28px; border: 2px solid #1c1c1c; transition: background .2s, transform .3s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #1c1c1c; transition: transform .3s, background .2s; }
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico { background: var(--accent, #df5a00); border-color: var(--accent, #df5a00); transform: rotate(180deg); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-item[open] .faq-ico::after { transform: rotate(0deg); }
.faq-a { padding: 0 46px 22px 62px; color: var(--text, #1c1c1c); font-size: 16px; line-height: 1.65; }
.faq-item[open] .faq-a { animation: faq-in .3s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--accent, #df5a00); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 20px; padding: 50px 16px 40px; }
  .faq-side { position: static; }
  .faq-ask { display: none; }
  .faq-item summary { grid-template-columns: 30px 1fr 26px; gap: 10px; padding: 16px 0; }
  .faq-item summary h3 { font-size: 17px; }
  .faq-ico { width: 26px; height: 26px; }
  .faq-a { padding: 0 0 18px 40px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } .faq-ico { transition: none; } }

/* ===== Auto section: car make / model filter (bottom of the list) ===== */
.car-filter { margin: 0 0 24px; padding: 18px 20px; background: var(--surface, #fff); border: 2px solid #1c1c1c; box-shadow: 6px 6px 0 var(--accent, #df5a00); }
.car-filter-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.car-filter-head svg { width: 44px; height: 22px; color: var(--accent, #df5a00); flex: none; }
.car-filter-head h2 { margin: 0; font: 600 20px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--heading, #111); }
.car-reset { margin-left: auto; color: var(--accent, #df5a00); text-decoration: none; font-size: 15px; border-bottom: 1px dashed currentColor; }
.car-hint { margin: -4px 0 12px; color: var(--muted, #6b6b6b); font-size: 15px; }
.car-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.car-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 2px solid var(--line-strong, #c9c9c4); background: var(--surface-2, #fafaf8);
  color: var(--text, #1c1c1c); text-decoration: none; font: 600 15px "Roboto Condensed", sans-serif; transition: border-color .15s, background .15s, color .15s; }
.car-chips a span { font-weight: 400; font-size: 13px; color: var(--muted, #6b6b6b); }
.car-chips a:hover { border-color: var(--accent, #df5a00); color: var(--accent, #df5a00); }
.car-chips a.active { background: var(--accent, #df5a00); border-color: var(--accent, #df5a00); color: #fff; }
.car-chips a.active span { color: rgba(255,255,255,.85); }
.specs td.fits a { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border: 1px solid var(--line-strong, #c9c9c4); color: var(--text, #1c1c1c); text-decoration: none; font-size: 14px; }
.specs td.fits a:hover { border-color: var(--accent, #df5a00); color: var(--accent, #df5a00); }
@media (max-width: 700px) {
  .car-filter { padding: 16px; }
  .car-reset { margin-left: 0; }
  .car-chips a { padding: 7px 10px; font-size: 14px; }
}
