:root {
  --site-width: 1400px;
  --line: #d4d4d4;
  --line-dark: #bdbdbd;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #333333;
  --muted: #777777;
  --teal: #0aa39b;
  --teal-dark: #008f86;
  --red: #971b2f;
  --red-dark: #7c1527;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.page-wrap { max-width: 80%; margin: 0 auto; background: #fff; box-shadow: 0 2px 40px rgba(0,0,0,0.10); min-height: 100vh; }
a { color: #2f5d87; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(calc(100% - 48px), var(--site-width)); margin: 0 auto; padding: 0 8px; }
.site-header { background: #fff; }
.header-grid { display: grid; grid-template-columns: 260px 160px 160px 1fr; align-items: stretch; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.brand-mark { display: flex; align-items: center; gap: 12px; padding: 18px 16px; color: var(--text); border-right: 1px solid var(--line); min-height: 92px; }
.brand-mark:hover { text-decoration: none; }
.brand-badge { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--teal)); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-text strong { display: block; font-size: 28px; line-height: 1; letter-spacing: .02em; }
.brand-text small { display: block; margin-top: 4px; color: #6f6f6f; font-size: 12px; }
.header-column { padding: 14px 16px 12px; border-right: 1px solid var(--line); color: #666; line-height: 1.45; }
.header-column a { display: block; color: #666; margin-top: 3px; }
.header-column--search { display: flex; align-items: center; justify-content: center; }
.header-title { margin-bottom: 6px; color: #222; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.search-form { display: flex; width: 100%; gap: 6px; }
.search-form input { width: 100%; height: 36px; border: 1px solid var(--line-dark); padding: 0 10px; background: #fff; border-radius: 0; }
.search-form button { width: 70px; border: 1px solid #7e7e7e; background: #f3f3f3; cursor: pointer; }
.search-form button:hover { background: #ebebeb; }
.main-nav { background: var(--red); }
.nav-row { display: flex; align-items: stretch; border-left: 1px solid #7d1325; border-right: 1px solid #7d1325; }
.nav-row a { position: relative; flex: 1 1 0; min-height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.nav-row a::after { content: ''; position: absolute; top: 10px; right: 0; width: 1px; height: 22px; background: rgba(255,255,255,.38); }
.nav-row a:last-child::after { display: none; }
.nav-row a:hover { background: var(--red-dark); text-decoration: none; }

.home-main { padding-bottom: 30px; }
.hero-band { background: #fff; }
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 0; padding: 14px 0 0; }
.hero-slider, .hero-side { min-height: 290px; }
.slider-shell { position: relative; height: 290px; overflow: hidden; background: linear-gradient(90deg, #11a5a0 0%, #1dbbb2 56%, #0a9a93 100%); color: #fff; border: 1px solid #cfd7d8; }
.slider-item { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; opacity: 0; transition: opacity .45s ease; }
.slider-item.is-active { opacity: 1; }
.slider-copy { padding: 28px 32px 28px 34px; display: flex; flex-direction: column; justify-content: center; }
.slider-copy .slider-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; margin-bottom: 10px; }
.slider-copy h2 { margin: 0 0 14px; font-size: 29px; line-height: 1.12; font-weight: 700; max-height: 100px; overflow: hidden; }
.slider-copy p { margin: 0 0 18px; font-size: 14px; line-height: 1.45; max-width: 480px; max-height: 60px; overflow: hidden; }
.slider-link { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 35px; padding: 0 16px; background: var(--red); color: #fff; font-weight: 700; }
.slider-link:hover { text-decoration: none; background: var(--red-dark); }
.slider-media { display: flex; align-items: center; justify-content: center; padding: 16px; }
.slider-media img { max-height: 240px; object-fit: contain; }
.slider-controls { position: absolute; inset: auto 0 12px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: transparent; cursor: pointer; padding: 0; }
.slider-dot.is-active { background: #fff; }
.slider-arrow { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border: 0; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; font-size: 18px; }
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.hero-side { display: none; }
.hero-side-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; border-bottom: 1px solid #ececec; padding-bottom: 10px; }
.hero-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side-item img { width: 72px; height: 72px; object-fit: contain; background: #fafafa; border: 1px solid #ededed; }
.hero-side-item strong { display: block; color: #444; font-size: 13px; line-height: 1.28; margin-bottom: 5px; }
.hero-side-item span { display: block; color: var(--red); font-size: 12px; font-weight: 700; }
.quick-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-icon { min-height: 110px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #3f3f3f; padding: 12px 8px; text-align: center; }
.quick-icon:last-child { border-right: 0; }
.quick-icon:hover { background: #f9f9f9; text-decoration: none; }
.quick-icon-mark { width: 44px; height: 44px; border: 2px solid var(--teal-dark); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; border-radius: 6px; }
.quick-icon span { max-width: 130px; line-height: 1.3; }
.home-news-block, .catalog-home-block, .page-shell { background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.home-news-block { margin-top: 18px; padding: 16px 18px 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #e7e7e7; }
.block-head h2 { margin: 0; color: #3c3c3c; font-size: 30px; font-weight: 400; }
.block-head a { color: #7d7d7d; font-size: 12px; text-transform: lowercase; }
.home-news-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compact-news-item { padding: 0 0 14px; }
.compact-news-date { color: var(--red); font-size: 30px; line-height: 1; margin-bottom: 2px; }
.compact-news-month { color: #777; font-size: 12px; text-transform: lowercase; margin-bottom: 10px; }
.compact-news-title { display: block; color: #3e3e3e; font-size: 14px; line-height: 1.45; }
.catalog-home-block { padding: 0 18px 22px; }
.catalog-headline { margin: 20px -18px 18px; height: 44px; background: linear-gradient(90deg, var(--red) 0 28%, var(--teal) 28% 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; letter-spacing: .03em; }
.catalog-headline a { color: #fff; }
.home-category { padding: 20px 0 22px; border-bottom: 1px solid #ececec; }
.home-category:last-child { border-bottom: 0; }
.home-category-title { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 10px; }
.home-category-icon { display: none; }
.home-category-title h3 { margin: 0; color: #333; font-size: 20px; font-weight: 700; line-height: 1.2; }
.home-category-title p { margin: 0; color: #8a8a8a; }
.home-category-grid { display: block; }
.home-category-links { display: grid; gap: 5px; }
.home-category-links-row { line-height: 1.7; color: #444; font-size: 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; }
.home-category-links-row strong { color: #333; font-size: 13px; white-space: nowrap; margin-right: 4px; }
.home-category-links-row a { color: var(--teal-dark); text-decoration: underline; font-size: 13px; }
.home-category-links-row a:hover { color: var(--red); }
.home-category-products { display: none; }
.home-product-preview { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; }
.home-product-preview img { width: 76px; height: 76px; object-fit: contain; border: 1px solid #ececec; background: #fff; }
.home-product-preview a { display: block; color: #444; line-height: 1.32; }
.home-product-preview .badge { display: inline-block; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 6px; margin-bottom: 6px; }
.page-shell { padding: 16px 18px 30px; }
.page-intro, .brand-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.page-intro--plain, .brand-hero--plain { background: transparent; }
.page-kicker { color: #7b7b7b; font-size: 12px; text-transform: uppercase; margin-bottom: 6px; }
.page-intro h1, .brand-hero h1 { margin: 0 0 8px; color: #4b4b4b; font-size: 34px; font-weight: 400; }
.page-intro p, .brand-hero p { margin: 0; color: #7d7d7d; }
.brand-switcher { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-switcher a { padding: 6px 10px; border: 1px solid var(--line); color: #555; background: #fafafa; }
.section { padding-top: 10px; }
.section--tight { padding-bottom: 18px; }
.catalog-block { padding: 20px 0; border-bottom: 1px solid #ececec; }
.catalog-block:last-child { border-bottom: 0; }
.catalog-block h2 { margin: 0 0 16px; color: #505050; font-size: 32px; font-weight: 400; }
.catalog-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalog-subsection { padding: 15px; border: 1px solid #e4e4e4; background: #fafafa; }
.catalog-subsection h3 { margin: 0 0 12px; color: #4e4e4e; font-size: 20px; font-weight: 400; }
.catalog-links { display: grid; gap: 8px; }
.catalog-products { display: grid; gap: 10px; }
.catalog-product-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid #e5e5e5; background: #fff; }
.catalog-product-row img { width: 92px; height: 92px; object-fit: contain; }
.catalog-product-row strong { display: block; color: #444; font-size: 14px; line-height: 1.35; margin-bottom: 5px; }
.catalog-product-row small { display: block; color: #7b7b7b; line-height: 1.3; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions a, .row-actions button { padding: 8px 10px; border: 1px solid #d6d6d6; background: #f8f8f8; color: #444; cursor: pointer; }
.row-actions button { border-color: var(--red); background: var(--red); color: #fff; }
.brand-category-grid, .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card, .product-card { border: 1px solid #e5e5e5; background: #fff; }
.category-card .brand-cover { padding: 18px; min-height: 96px; background: #fafafa; border-bottom: 1px solid #e8e8e8; }
.category-card-body, .product-card-body { padding: 12px; }
.product-thumb { height: 180px; padding: 14px; border-bottom: 1px solid #ededed; display: flex; align-items: center; justify-content: center; background: #fff; }
.product-thumb img { max-height: 150px; object-fit: contain; }
.inline-tags, .filter-tags, .product-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-tags span, .filter-tags span, .pill { display: inline-block; padding: 3px 7px; background: #f1f6f6; border: 1px solid #d6eaea; color: #3f7070; font-size: 11px; }
.product-card-body h3 { margin: 10px 0 8px; font-size: 14px; line-height: 1.35; min-height: 57px; color: #444; }
.product-price { color: var(--red); font-size: 22px; margin-bottom: 10px; }
.product-sub { color: #777; font-size: 12px; line-height: 1.45; min-height: 52px; margin: 0; }
.product-card-footer { display: flex; gap: 8px; padding: 0 12px 12px; }
.product-card-footer a, .product-card-footer button { flex: 1; text-align: center; padding: 8px 10px; border: 1px solid #d7d7d7; background: #f7f7f7; color: #444; cursor: pointer; }
.product-card-footer button, .buy-button { border-color: var(--red); background: var(--red); color: #fff; }
.product-card-footer button:hover, .row-actions button:hover, .buy-button:hover, .checkout-submit:hover { background: var(--red-dark); }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 240px 1fr; border: 1px solid #e4e4e4; background: #fff; }
.news-cover { background: #f7f7f7; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-body h3 { margin: 0 0 12px; color: #444; font-size: 22px; font-weight: 400; line-height: 1.25; }
.news-card-body p { margin: 0 0 12px; color: #777; line-height: 1.55; }
.news-date { color: var(--red); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.breadcrumbs { margin-bottom: 14px; color: #888; }
.product-page { display: grid; gap: 16px; }
.product-hero { display: grid; grid-template-columns: 380px 1fr; gap: 18px; }
.product-gallery, .product-summary, .content-card { border: 1px solid #e4e4e4; background: #fff; }
.product-gallery { padding: 16px; }
.product-gallery-main { height: 330px; border: 1px solid #ececec; display: flex; align-items: center; justify-content: center; background: #fff; }
.product-gallery-main img { max-height: 300px; object-fit: contain; }
.product-gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.product-gallery-strip button { border: 1px solid #ddd; background: #fff; padding: 8px; cursor: pointer; }
.product-gallery-strip img { width: 100%; height: 60px; object-fit: contain; }
.product-summary { padding: 18px; }
.product-summary h1 { margin: 10px 0 12px; color: #444; font-size: 34px; font-weight: 400; line-height: 1.08; }
.product-summary p { color: #666; line-height: 1.6; }
.price-stack { display: grid; gap: 8px; margin: 14px 0; }
.price-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e6e6e6; background: #fafafa; }
.price-card strong { color: #444; }
.price-card span { color: var(--red); font-size: 20px; }
.price-card button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.content-card { padding: 18px; }
.content-card h2 { margin: 0 0 12px; color: #4a4a4a; font-size: 28px; font-weight: 400; }
.api-html { line-height: 1.6; color: #444; overflow-x: auto; }
.docs-list { display: grid; gap: 8px; }
.docs-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e6e6e6; color: #444; background: #fafafa; }
.empty-state, .error-state, .loading, .success-state { padding: 24px; border: 1px solid #e4e4e4; background: #fafafa; color: #666; }
.success-state { border-color: #b8ded4; background: #effaf7; color: #20735f; font-size: 18px; line-height: 1.4; }
.cart-notice { position: fixed; right: 24px; bottom: 82px; z-index: 80; opacity: 0; transform: translateY(8px); pointer-events: none; padding: 10px 14px; background: #333; color: #fff; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cart-notice.is-visible { opacity: 1; transform: translateY(0); }
.cart-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 0; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; }
.cart-fab strong { min-width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cart-overlay { position: fixed; inset: 0; z-index: 70; display: none; justify-content: flex-end; background: rgba(0,0,0,.28); }
.cart-overlay.is-open { display: flex; }
.cart-panel { width: min(440px, 100%); height: 100%; overflow-y: auto; background: #fff; box-shadow: -12px 0 30px rgba(0,0,0,.18); padding: 18px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e6e6e6; margin-bottom: 14px; }
.cart-head h2 { margin: 0; color: #444; font-size: 28px; font-weight: 400; }
.cart-head button { width: 34px; height: 34px; border: 1px solid #ddd; background: #fafafa; cursor: pointer; font-size: 24px; line-height: 1; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e4e4e4; background: #fafafa; }
.cart-item strong { display: block; margin-bottom: 5px; color: #444; line-height: 1.3; }
.cart-item span { display: block; color: #777; font-size: 12px; }
.cart-qty { display: grid; grid-template-columns: 30px 30px 30px; align-items: center; text-align: center; }
.cart-qty button { height: 30px; border: 1px solid #d4d4d4; background: #fff; cursor: pointer; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
.cart-total strong { color: var(--red); font-size: 18px; }
.checkout-form { display: grid; gap: 10px; }
.checkout-form label { display: grid; gap: 5px; color: #555; }
.checkout-form input { height: 38px; border: 1px solid #cfcfcf; padding: 0 10px; }
.checkout-submit { min-height: 40px; border: 0; background: var(--red); color: #fff; cursor: pointer; font-weight: 700; }
.cart-note { margin-top: 10px; color: #777; font-size: 12px; line-height: 1.45; }
.site-footer { background: #f5f5f5; border-top: 1px solid #ddd; }
.footer-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: #666; }
.footer-links { display: flex; gap: 16px; }
@media (max-width: 1040px) {
  .container { width: calc(100% - 20px); }
  .header-grid { grid-template-columns: 1fr 1fr; }
  .hero-layout, .home-category-grid, .catalog-subgrid, .product-hero, .news-item { grid-template-columns: 1fr; }
  .quick-icons { grid-template-columns: repeat(3, 1fr); }
  .brand-category-grid, .product-grid, .home-news-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .header-grid { grid-template-columns: 1fr; }
  .nav-row { display: grid; }
  .nav-row a::after { display: none; }
  .slider-item { grid-template-columns: 1fr; }
  .slider-media { display: none; }
  .quick-icons, .brand-category-grid, .product-grid, .home-news-compact, .product-gallery-strip { grid-template-columns: 1fr; }
  .home-category-title { flex-direction: column; }
  .catalog-product-row, .price-card { grid-template-columns: 1fr; }
  .footer-row, .page-intro, .brand-hero { flex-direction: column; align-items: flex-start; }
}

/* ─── О компании кнопка в nav ─── */
.nav-about-btn {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  border-radius: 6px !important;
  padding: 3px 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: background .15s !important;
}
.nav-about-btn:hover {
  background: rgba(255,255,255,0.32) !important;
}
