@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { overflow-x: hidden; }

:root {
  --blue: #1A4B8C;
  --blue-dark: #0f3266;
  --blue-light: #E8F0FB;
  --red: #C41C1C;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: rgba(0,0,0,0.1);
  --bg: #ffffff;
  --bg-secondary: #f5f7fa;
  --sans: 'Inter', -apple-system, sans-serif;
  --radius: 6px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 15px; color: var(--text); line-height: 1.6; background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header { background: #f0f3f7; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.header-top { background: #2c3e50; padding: 6px 40px; display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.header-top a { color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; }
.header-top-phone { font-weight: 600 !important; color: #fff !important; display: none; }
.header-top a:hover { color: #fff; }
.header-main { display: flex; align-items: center; padding: 0 40px; gap: 24px; }
.header-search { flex: 1; max-width: 260px; }
.header-search .ya-site-form { width: 100%; }
.header-top-search { display: inline-flex; align-items: center; }
.header-search-form { display: flex; align-items: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
.header-search-input { background: transparent; border: none; outline: none; color: #fff; font-size: 12px; padding: 4px 8px; width: 180px; font-family: var(--sans); }
.header-search-input::placeholder { color: rgba(255,255,255,0.5); }
.header-search-input::-webkit-search-cancel-button { display: none; }
.header-search-btn { background: transparent; border: none; border-left: 1px solid rgba(255,255,255,0.2); padding: 4px 8px; cursor: pointer; color: rgba(255,255,255,0.7); display: flex; align-items: center; }
.header-search-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-logo { padding: 14px 0; }
.site-logo img { height: 40px; width: auto; }
.nav-main { display: flex; gap: 4px; flex: 1; }
.nav-main a { color: var(--text); font-size: 14px; font-weight: 500; padding: 20px 14px; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.15s; white-space: nowrap; }
.nav-main a:hover, .nav-main a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-main .nav-catalog { position: relative; }
.nav-main .nav-catalog-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 220px; padding: 8px 0; z-index: 200; }
.nav-main .nav-catalog:hover .nav-catalog-dropdown { display: block; }
.nav-catalog-dropdown a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; border-bottom: none; }
.nav-catalog-dropdown a:hover { background: var(--bg-secondary); color: var(--blue); }
.btn-request { background: var(--red); color: #fff !important; border: none; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius); cursor: pointer; text-decoration: none !important; white-space: nowrap; border-bottom: none !important; }
.btn-request:hover { background: #a81818; }
.nav-phone { color: var(--blue); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-phone a { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; flex-direction: column; background: var(--blue); padding: 16px 20px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,0.85); padding: 10px 0; border-bottom: 0.5px solid rgba(255,255,255,0.1); font-size: 14px; text-decoration: none; }

/* ===== HERO ===== */
.hero { background: linear-gradient(to right, rgba(20,30,48,0.92) 0%, rgba(20,30,48,0.75) 50%, rgba(20,30,48,0.55) 100%), url('/img/hero-banner.png') center/cover no-repeat; padding: 64px 40px; color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.hero-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: rgba(255,255,255,0.5); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 560px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: var(--red); color: #fff; border: none; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #a81818; text-decoration: none; color: #fff; }
.btn-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 13px 24px; border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: #fff; color: #fff; text-decoration: none; }
.hero-right-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat .num { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero-stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 20px; }
.hero-stat .num { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ===== SECTIONS ===== */
.section { padding: 64px 40px; }
.section-dark { background: var(--bg-secondary); }
.section-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; line-height: 1.25; margin-bottom: 40px; }

/* ===== CATALOG CARDS ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.catalog-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--text); transition: all 0.2s; display: block; }
.catalog-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,75,140,0.1); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.catalog-card-img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 16px; }
.catalog-card-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.catalog-card-count { font-size: 12px; color: var(--text-muted); }
.catalog-card-arrow { margin-top: 16px; color: var(--blue); font-size: 13px; font-weight: 500; }

/* ===== CATEGORY PAGE ===== */
.cat-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px; align-items: start; }
.cat-sidebar { position: sticky; top: 80px; }
.cat-sidebar-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.cat-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.cat-sidebar-nav a { font-size: 13px; color: var(--text); padding: 8px 12px; border-radius: 4px; text-decoration: none; transition: all 0.15s; line-height: 1.4; }
.cat-sidebar-nav a:hover { background: var(--bg-secondary); color: var(--blue); }
.cat-sidebar-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }
.cat-content { min-width: 0; }
.cat-header { margin-bottom: 24px; }
.cat-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cat-desc { font-size: 14px; color: var(--text-muted); }
.breadcrumb { display: flex; gap: 6px; align-items: center; margin-bottom: 20px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* ===== FILTERS ===== */
.filters-bar { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.filters-title { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.filters-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.filter-group select { border: 1px solid var(--border); border-radius: 4px; font-family: var(--sans); font-size: 13px; color: var(--text); padding: 7px 12px; background: #fff; min-width: 140px; cursor: pointer; }
.filter-group select:focus { outline: none; border-color: var(--blue); }
.btn-filter { background: var(--blue); color: #fff; border: none; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 4px; cursor: pointer; align-self: flex-end; }
.btn-filter:hover { background: var(--blue-dark); }
.btn-reset { background: transparent; color: var(--text-muted); border: 1px solid var(--border); font-family: var(--sans); font-size: 13px; padding: 8px 16px; border-radius: 4px; cursor: pointer; align-self: flex-end; }
.btn-reset:hover { color: var(--text); border-color: var(--text-muted); }
.filter-count { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }


/* ===== PRODUCT CARDS — devongroup style ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid #e8eaed; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.pc-img { height: 180px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #f8f9fa; }
.pc-img img { max-height: 148px; max-width: 100%; object-fit: contain; }
.pc-body { padding: 14px 16px 16px; }
.pc-name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.4; margin-bottom: 12px; min-height: 36px; }
.pc-specs { display: flex; flex-direction: column; gap: 5px; }
.pc-spec-row { display: flex; align-items: baseline; font-size: 12px; gap: 0; }
.pc-spec-name { color: #6b7280; white-space: normal; flex-shrink: 1; min-width: 0; }
.pc-spec-dots { flex: 1; border-bottom: 1px dotted #d1d5db; margin: 0 4px; position: relative; top: -3px; min-width: 6px; }
.pc-spec-val { color: #1a1a1a; font-weight: 500; white-space: nowrap; flex-shrink: 0; }

/* ===== PRODUCT DETAIL ===== */
.product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px; align-items: start; }
.product-gallery { }
.product-gallery img { width: 100%; max-height: 400px; object-fit: contain; background: var(--bg-secondary); border-radius: var(--radius); padding: 32px; }
.product-info { }
.product-title { font-size: 26px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.product-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.product-specs-table tr:nth-child(even) { background: var(--bg-secondary); }
.product-specs-table td { padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.product-specs-table td:first-child { color: var(--text-muted); width: 45%; }
.product-specs-table td:last-child { font-weight: 500; }
.product-variations { margin-bottom: 24px; }
.product-variations h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.variation-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; margin-bottom: 8px; font-size: 13px; }
.variation-item .v-name { font-weight: 500; margin-bottom: 4px; }
.variation-item .v-article { color: var(--text-muted); font-size: 12px; }

/* ===== REQUEST FORM ===== */
.request-section { background: #1e2d40; padding: 64px 40px; }
.request-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 960px; }
.request-text h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.request-text p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.request-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { margin-bottom: 12px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-family: var(--sans); font-size: 13px; padding: 11px 16px; border-radius: 4px; outline: none; transition: border-color 0.2s; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus, .form-field textarea:focus { border-color: rgba(255,255,255,0.6); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-agreement { font-size: 12px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; cursor: pointer; }
.form-agreement a { color: rgba(255,255,255,0.7); }
.form-agreement input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; accent-color: var(--red); }
#form-success { display: none; color: #7ec8a0; font-size: 14px; margin-top: 12px; }

/* ===== FOOTER ===== */
.site-footer { background: #1a2535; color: rgba(255,255,255,0.7); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 48px 40px 40px; }
.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contacts a { color: rgba(255,255,255,0.85) !important; }
.footer-col ul li a:hover { color: #fff; }
.footer-contacts p { font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.footer-phone { font-size: 18px; font-weight: 700; color: #fff !important; }
.footer-phone a { color: #fff; text-decoration: none; }
.footer-copy { padding: 20px 40px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== PAGES ===== */
.page-wrap { padding: 40px; max-width: 900px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.page-text p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.page-text h2 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-top { padding: 6px 20px; }
  .header-top-desktop { display: none; }
  .header-top-phone { display: block; font-size: 14px; }
  .header-main { padding: 0 20px; }
  .nav-main, .nav-phone, .header-top-search { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 20px; }
  .cat-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
  .cat-sidebar { position: static; }
  .product-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
  .request-inner { grid-template-columns: 1fr; gap: 32px; }
  .request-section { padding: 48px 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 40px 20px 32px; }
  .footer-copy { padding: 16px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .contacts-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* Product card as link */
a.product-card { text-decoration: none; color: inherit; display: block; }
a.product-card:hover { text-decoration: none; }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.pd-gallery { background: #f8f9fa; border-radius: 8px; padding: 32px; display: flex; align-items: flex-start; justify-content: center; min-height: 460px; }
.pd-gallery img { max-height: 460px; max-width: 100%; object-fit: contain; }
.pd-info { }
.pd-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }

/* Variation tabs */
.var-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.var-tabs button { background: #f0f3f7; border: 1px solid #e0e4ea; color: var(--text); font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 4px; cursor: pointer; transition: all 0.15s; }
.var-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.var-tabs button:hover:not(.active) { background: #e0e4ea; }

/* Variation specs (HTML from API) */
.variation-panel p, .pd-vars p { font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.variation-panel p strong, .pd-vars p strong { color: var(--text); }

/* Article table */
.article-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.article-table th { background: #f5f7fa; color: var(--text-muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.article-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.article-table tr:last-child td { border-bottom: none; }

/* Order form on product page */
.pd-order { margin-top: 24px; background: #f5f7fa; border-radius: 8px; padding: 20px; }
.pd-order h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.pd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pd-form-row input, .pd-order textarea { width: 100%; background: #fff; border: 1px solid #dde1e7; color: var(--text); font-family: var(--sans); font-size: 13px; padding: 10px 14px; border-radius: 4px; outline: none; }
.pd-order textarea { width: 100%; margin-bottom: 10px; resize: vertical; }
.pd-form-row input:focus, .pd-order textarea:focus { border-color: var(--blue); }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .pd-form-row { grid-template-columns: 1fr; }
  .pd-gallery { min-height: 200px; padding: 16px; }
  .pd-gallery img { max-height: 200px; }
}

/* Variation tabs as links */
.var-tabs a { display: inline-block; background: #f0f3f7; border: 1px solid #e0e4ea; color: var(--text); font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 4px; text-decoration: none; transition: all 0.15s; margin-bottom: 4px; }
.var-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.var-tabs a:hover:not(.active) { background: #e0e4ea; text-decoration: none; color: var(--text); }
.var-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.btn-outline-blue { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 13px 24px; border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline-blue:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-buy { display: inline-block; background: #E6A817; color: #fff; border: none; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.btn-buy:hover { background: #c9911a; color: #fff; text-decoration: none; }
.pd-info .btn-buy { margin-top: 16px; margin-bottom: 20px; }
/* Product detail specs */
.pd-specs p { font-size: 13px; color: var(--text); margin: 3px 0; }

/* ===== CATALOG GROUPS (masla/smazki pages) ===== */
.catalog-groups { display: flex; flex-direction: column; gap: 40px; margin-top: 8px; }
.catalog-group { }
.catalog-group-header { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--blue); }
.catalog-group-img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.catalog-group-title { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
.catalog-group-title:hover { color: var(--blue); text-decoration: none; }
.catalog-group-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.catalog-group-list li { border-bottom: 1px solid #f0f0f0; }
.catalog-group-list li a { display: block; padding: 11px 0 11px 16px; font-size: 14px; color: var(--text); text-decoration: none; position: relative; transition: color 0.15s, padding-left 0.15s; }
.catalog-group-list li a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: var(--blue); border-radius: 50%; opacity: 0; transition: opacity 0.15s; }
.catalog-group-list li a:hover { color: var(--blue); padding-left: 20px; }
.catalog-group-list li a:hover::before { opacity: 1; }

/* Product detail - description and docs */
.pd-description { font-size: 14px; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.pd-description p { margin-bottom: 10px; }
.pd-description strong { font-weight: 600; }
.pd-specs-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.pd-docs { margin: 16px 0; }
.pd-docs h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.pd-doc-link { display: inline-block; font-size: 13px; color: var(--blue); text-decoration: none; padding: 6px 14px; border: 1px solid var(--blue); border-radius: 4px; margin-bottom: 6px; }
.pd-doc-link:hover { background: var(--blue-light); text-decoration: none; }

/* Description at bottom of product page */
.pd-description-full { padding: 32px 40px; border-top: 1px solid var(--border); }
.pd-description-full .pd-description { max-width: 860px; font-size: 14px; line-height: 1.8; color: var(--text); }
.pd-description-full .pd-description p { margin-bottom: 12px; }
.pd-description-full .pd-description strong { font-weight: 600; }
@media (max-width: 900px) { .pd-description-full { padding: 24px 20px; } }

/* ===== MOBILE SIDEBAR — accordion below content ===== */
@media (max-width: 900px) {
  .cat-wrap { display: block; padding: 0; }

  .cat-sidebar {
    position: static;
    order: 2;
    background: #f5f7fa;
    border-top: 1px solid var(--border);
    padding: 0;
    width: 100%;
  }

  .cat-sidebar-title { display: none; }

  /* Toggle button */
  .cat-sidebar::before {
    content: 'Все категории ▼';
    display: block;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }

  .cat-sidebar-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
  }
  .cat-sidebar.open .cat-sidebar-nav { display: flex; }

  .cat-sidebar-nav a {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    line-height: 1.4;
  }
  .cat-sidebar-nav a.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 500;
  }

  .cat-content {
    order: 1;
    padding: 20px 16px;
  }

  .cat-wrap {
    display: flex;
    flex-direction: column;
  }
}

/* Highlighted nav items - Масла and Смазки */
.nav-main .nav-highlight {
  color: var(--text) !important;
  font-weight: 600 !important;
  background: #e0e5ee;
  border-radius: 4px;
  padding: 20px 14px !important;
  margin: 0;
  border-bottom: 3px solid transparent !important;
}
.nav-main .nav-highlight:hover {
  background: #d0d7e8 !important;
  border-bottom-color: transparent !important;
  color: var(--blue) !important;
}
.nav-main .nav-highlight.active {
  background: #d0d7e8 !important;
  border-bottom-color: var(--blue) !important;
  color: var(--blue) !important;
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle { color: var(--text); font-size: 14px; font-weight: 500; padding: 20px 14px; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.15s; white-space: nowrap; cursor: pointer; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.12); min-width: 220px; padding: 8px 0; z-index: 200; border: 1px solid var(--border); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; text-decoration: none; transition: background 0.1s; border-bottom: none; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--bg-secondary); color: var(--blue); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 8px; }
a.news-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: all 0.2s; }
a.news-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(26,75,140,0.1); transform: translateY(-2px); text-decoration: none; }
.news-card-img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--bg-secondary); }
.news-card-img-placeholder { height: 180px; background: var(--bg-secondary); }
.news-card-body { padding: 16px 20px 20px; }
.news-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.news-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.news-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.news-content p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.news-content h2, .news-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ===== BUYERS GRID ===== */
.buyers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 8px; }
.buyer-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; justify-content: center; height: 72px; }
.buyer-item img { max-height: 40px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.2s; }
.buyer-item:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) { .buyers-grid { grid-template-columns: repeat(3, 1fr); } }
