/*
Theme Name: CAMTOP Naft
Theme URI: https://camtopnaft.com
Author: CAMTOP
Author URI: https://camtopnaft.com
Description: WordPress theme for CAMTOP Shanghai Machinery Equipment Co., Ltd — industrial oilfield equipment manufacturer. Russian-language B2B theme.
Version: 1.0
License: GPL-2.0+
Text Domain: camtopnaft
*/

/* ============================================================
   CAMTOP Naft WordPress Theme — All Styles
   ============================================================ */

/* — Reset — */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #1A3553;
  --navy-light:  #213C5A;
  --red:         #D32F2F;
  --red-hover:   #B71C1C;
  --red-light:   #FFEBEE;
  --gold:        #B8924A;
  --gold-light:  #D4AF6A;
  --gold-dark:   #8A6E36;
  --dark:        #181818;
  --text:        #333333;
  --gray:        #636363;
  --gray-light:  #999999;
  --border:      #E4E6E8;
  --border-dark: #D6DBE0;
  --bg:          #F5F5F5;
  --white:       #FFFFFF;
  --link:        #16155E;

  --font:        'Inter', 'Segoe UI', Verdana, Helvetica, Arial, sans-serif;
  --max-w:       1120px;
  --min-w:       320px;
}

html { font-size: 100%; }

body {
  font: 100%/1.38 var(--font);
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-width: var(--min-w);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}
h1 { font-size: 26px; line-height: 1.0; }
h2 { font-size: 22px; color: #333; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: none; }
p { margin: 0 0 20px; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
ul { padding: 0 0 0 24px; margin: 0 0 20px; list-style-type: square; }
ul li { margin: 0 0 12px; }

/* Layout */
.wrapper {
  min-height: 100vh;
  max-width: var(--max-w);
  padding: 0 10px;
  margin: 0 auto -110px;
  font-size: 13px;
  line-height: 1.38;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 10px;
}
.content {
  position: relative;
  max-width: var(--max-w);
  padding: 26px 0;
  margin: 0 auto;
}
.content_home { padding-top: 64px; padding-bottom: 0; }
.content_right { max-width: 784px; padding-right: 340px; }
.prim-content { float: left; width: 100%; margin: 0 0 20px; }
.sec-content { float: right; width: 320px; margin: 0 -340px 20px 0; }
.sticky-footer { height: 110px; }
.cf::after { content: ""; display: table; clear: both; }

/* — Header — */
.header { margin: 0 auto; padding: 0 5px; max-width: 1150px; position: relative; z-index: 10; }
.header::after { content: ""; display: table; clear: both; }

.h__logo {
  float: left; display: flex; align-items: center; gap: 14px;
  margin: 18px 0 10px; text-decoration: none; height: auto;
}
.h__logo-img { height: 78px; width: auto; display: block; }
.h__logo-text-block {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid var(--gold); padding-left: 14px;
}
.h__logo-text { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; line-height: 1; }
.h__logo-text span {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.h__logo-sub { font-size: 9.5px; font-weight: 600; color: var(--gray); letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2; margin-top: 4px; }

.h__contacts { float: right; padding: 11px 0 0 0; margin-top: 21px; text-align: right; }
.h__contacts__email { margin-bottom: 4px; font-size: 12px; color: var(--gray); }
.h__contacts__email a { color: var(--link); font-size: 13px; }

.h__call-button {
  display: inline-block; padding: 2px 0 3px 24px; font-size: 12px; line-height: 22px;
  color: var(--gray); text-decoration: none; cursor: pointer; position: relative;
}
.h__call-button::before { content: "📞"; position: absolute; left: 0; top: 2px; font-size: 14px; }
.h__call-button span { border-bottom: 1px dotted var(--gray); }

.h__phone {
  display: inline-block; margin: 0 0 0 10px; font-size: 18px; line-height: 26px;
  color: var(--dark); text-decoration: none; vertical-align: top; font-weight: 600;
}
.h__phone__code { font-size: 10px; line-height: 18px; vertical-align: top; padding-right: 4px; }

.lang-switch { font-size: 12px; color: var(--navy); margin-left: 8px; text-decoration: none; font-weight: 500; }
.lang-switch:hover { text-decoration: underline; }

/* Primary Navigation */
.prim-nav { position: relative; padding: 24px 0 0; float: left; width: 600px; margin-left: 40px; border-top: 1px solid var(--border); margin-top: 8px; }
.prim-nav ul { padding: 0; margin: 0; list-style: none; }
.prim-nav ul li { position: relative; display: inline-block; margin: 0 0 0 2%; }
.prim-nav ul li a { display: block; font-size: 14px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.prim-nav ul li a:hover { text-decoration: underline; }
.prim-nav ul li .subnav {
  position: absolute; padding: 25px 0 0; top: 0; right: -20px; z-index: 40;
  visibility: hidden; opacity: 0; transition: visibility 0.2s, opacity 0.2s;
}
.prim-nav ul li:hover .subnav { visibility: visible; opacity: 1; }
.prim-nav ul li .subnav ul {
  position: relative; width: auto; padding: 15px 19px; border: 1px solid #eee;
  border-radius: 4px; background: var(--white); white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.prim-nav ul li .subnav ul::before {
  content: ""; position: absolute; width: 12px; height: 6px; margin: 0 0 0 -6px;
  top: -6px; left: 30px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #eee;
}
.prim-nav ul li .subnav li { display: block; margin: 0; }
.prim-nav ul li .subnav li a { font-size: 13px; padding: 5px 0; color: var(--text); }
.prim-nav ul li .subnav li a:hover { color: var(--red); text-decoration: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; float: right; margin-top: 28px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Advantages */
.advantages-container {
  width: 100%; overflow: hidden; min-height: 360px; position: relative;
  background: linear-gradient(135deg, #1A3553 0%, #0D1F33 50%, #1A3553 100%);
}
.advantages-container::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,146,74,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(26,53,83,0.8) 0%, transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(212,175,106,0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
  z-index: 0;
}
.advantages-container::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
  z-index: 1;
}
.advantages { max-width: var(--max-w); margin: 0 auto; position: relative; color: var(--white); padding: 82px 10px 60px; font-size: 14px; line-height: 20px; z-index: 2; }
.advantages__title { color: var(--white); font-size: 25px; font-weight: 700; letter-spacing: 0.15px; margin: 0 0 32px; }
.advantages-slider { max-width: 520px; overflow: hidden; position: relative; }
.advantages-list { margin: 0; padding: 0; list-style: none; white-space: nowrap; transition: transform 0.5s ease; }
.advantages-list li { display: inline-block; vertical-align: top; padding: 0 20px 0 0; margin: 0; line-height: 26px; white-space: normal; width: 520px; font-size: 15px; }
.adv-pager { display: flex; gap: 12px; margin-top: 24px; align-items: baseline; }
.adv-dot { color: rgba(255,255,255,0.4); font-size: 21px; font-weight: 700; cursor: pointer; transition: all 0.3s; line-height: 1; }
.adv-dot.active { font-size: 29px; color: var(--gold-light); }

/* Product Categories */
.sections-nav-container { padding: 16px 10px 0; border-bottom: 3px solid var(--border-dark); max-width: var(--max-w); margin: 0 auto; }
.home .sections-nav-container { border-bottom: 0; }
.sections-nav ul { padding: 0; margin: 0; list-style: none; font-size: 0; }
.sn__list__item { display: inline-block; width: 24%; padding: 0 1% 0 0; vertical-align: middle; font-size: 13px; }
.sn__list__item__content { padding: 0 0 0 103px; height: 100px; line-height: 100px; }
.sn__list__item__img { float: left; width: 100px; height: 100px; margin: 0 0 0 -103px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); }
.sn__list__item__img img { display: block; max-width: 90%; max-height: 90%; object-fit: contain; }
.sn__list__item__img .placeholder { font-size: 36px; color: var(--border-dark); }
.sn__list__item__title { display: inline-block; font-size: 11px; line-height: 17px; color: var(--navy); text-transform: uppercase; font-weight: 600; vertical-align: middle; text-decoration: none; }
.sn__list__item__title:hover { color: var(--red); text-decoration: underline; }

/* Homepage */
.h-news__item { padding: 0 0 24px; }
.h-news__item__date { padding: 0 0 6px; font-size: 12px; color: var(--gray-light); }
.h-news__item__title a { font-size: 14px; color: var(--link); text-decoration: none; line-height: 1.3; }
.h-news__item__title a:hover { text-decoration: underline; color: var(--red); }
.h-certificates { text-align: center; }
.h-certificates img { max-width: 160px; margin-bottom: 10px; }
.h-certificates a { display: inline-block; font-size: 12px; color: var(--link); }
.button-divider { display: inline-block; padding: 20px 0 0; border-top: 3px solid var(--border); margin-top: 8px; }

/* Red CTA Button */
.button-red { position: relative; display: inline-block; padding: 0 8px; font-weight: 700; font-size: 12px; text-decoration: none; text-transform: uppercase; }
.button-red span { display: block; position: relative; padding: 8px 28px 6px 18px; background: var(--red); color: var(--white); white-space: nowrap; transition: background 0.2s; }
.button-red:hover span { background: var(--red-hover); }
.button-red span::after { content: "›"; position: absolute; font-size: 18px; top: 6px; right: 11px; font-weight: 700; }
.button-red::before, .button-red::after { content: ""; position: absolute; width: 6px; height: 100%; top: 0; }
.button-red::before { left: 0; background: var(--red); clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%); }
.button-red::after { right: 0; background: var(--red); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
.button-red:hover::before, .button-red:hover::after { background: var(--red-hover); }

/* Generic Buttons */
.btn { display: inline-block; padding: 8px 24px; font-family: var(--font); font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; border: none; transition: all 0.2s; letter-spacing: 0.3px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-sm { padding: 5px 16px; font-size: 11px; }

/* Footer */
.footer { padding: 26px 10px; font-size: 12px; line-height: 22px; color: #000; max-width: var(--max-w); margin: 0 auto; border-top: 3px solid var(--border); }
.footer::after { content: ""; display: table; clear: both; }
.f__copyright { float: left; margin-bottom: 8px; }
.f__copyright__inner { display: inline-block; margin-right: 20px; }
.f__copyright__email { padding: 0 0 0 20px; }
.f__copyright__email a { font-size: 13px; color: var(--link); }
.f__copyright__sitemap { padding-left: 20px; }
.f__copyright__sitemap a { color: var(--link); }
.developer { float: right; font-size: 12px; color: var(--gray-light); text-align: right; }
.developer a { color: var(--link); }
.f-bottom { clear: both; display: flex; justify-content: space-between; align-items: center; padding: 20px 0 0; font-size: 11px; color: var(--gray-light); max-width: var(--max-w); margin: 0 auto; border-top: 1px solid var(--border); }
.f-bottom__left { flex: 1; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.product-card { border: 1px solid var(--border); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.product-card:hover { border-color: var(--border-dark); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.product-card-image { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-bottom: 1px solid var(--border); position: relative; }
.product-card-image img { max-width: 85%; max-height: 85%; object-fit: contain; }
.product-card-image .placeholder { font-size: 48px; color: var(--border-dark); }
.product-card-badge { position: absolute; top: 0; right: 0; background: var(--red); color: var(--white); font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; }
.product-card-body { padding: 15px; }
.product-category { font-size: 10px; text-transform: uppercase; color: var(--red); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-card-body h4 { font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
.product-card-body p { font-size: 12px; color: var(--gray); line-height: 1.5; margin-bottom: 12px; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.product-sku { font-size: 11px; color: var(--gray-light); font-weight: 500; }

/* Filter Bar */
.filter-bar { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-chip { font-size: 12px; font-weight: 500; padding: 5px 16px; border: 1px solid var(--border-dark); background: var(--white); color: var(--text); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.3px; font-family: var(--font); }
.filter-chip:hover, .filter-chip.active { border-color: var(--red); color: var(--red); }
.filter-search { margin-left: auto; position: relative; }
.filter-search input { font-family: var(--font); font-size: 12px; padding: 6px 12px 6px 32px; border: 1px solid var(--border-dark); width: 220px; outline: none; }
.filter-search input:focus { border-color: var(--navy); }
.filter-search .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-light); font-size: 14px; }

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, #0D1F33 100%); padding: 40px 0 30px; position: relative; }
.page-header::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%); }
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }
.breadcrumb { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }

/* About Page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-image { background: var(--bg); border: 1px solid var(--border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.about-image .placeholder { font-size: 64px; color: var(--border-dark); }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cert-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.cert-dot { width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 40px; height: 40px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); font-size: 16px; }
.contact-text strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--navy); }
.contact-text span { font-size: 12px; color: var(--gray); }
.contact-form { border: 1px solid var(--border); padding: 24px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; font-family: var(--font); font-size: 13px; padding: 8px 12px; border: 1px solid var(--border-dark); outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { border: 1px solid var(--border); padding: 24px; }
.feature-icon { width: 44px; height: 44px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; fill: var(--white); }
.feature-card h4 { font-size: 15px; margin-bottom: 8px; }
.feature-card p { font-size: 12px; color: var(--gray); line-height: 1.6; margin-bottom: 0; }

/* CTA Banner */
.cta-banner { background: var(--navy); padding: 48px 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 24px; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.specs-table th, .specs-table td { padding: 8px 12px; border: 1px solid var(--border); font-size: 12px; text-align: left; }
.specs-table th { background: var(--bg); font-weight: 600; color: var(--navy); width: 35%; text-transform: uppercase; font-size: 11px; letter-spacing: 0.3px; }
.specs-table td { color: var(--text); }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: var(--white); padding: 12px 20px; font-size: 13px; font-weight: 500; z-index: 9999; border-left: 4px solid #4CAF50; animation: slideUp 0.3s; }
.toast.error { border-left-color: var(--red); }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* WordPress Content Alignment */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--gray-light); text-align: center; }

/* Search Page */
.search-results .search-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.search-results .search-item h3 { font-size: 16px; margin-bottom: 4px; }
.search-results .search-item .search-meta { font-size: 11px; color: var(--gray-light); }

/* ============================================================
   Single Product Detail
   ============================================================ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 20px; }
.gallery-main {
  background: var(--white);
  border: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gallery-main img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
.gallery-main .product-card-badge {
  position: absolute; top: 0; left: 0;
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 4px 12px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.gallery-thumb {
  width: 82px;
  height: 82px;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}
.gallery-thumb img { max-width: 95%; max-height: 95%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--gray-light); }
.gallery-thumb.active { border-color: var(--red); }

/* Product Info */
.product-meta-rows { margin-bottom: 20px; }
.meta-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.meta-label { width: 150px; color: var(--gray); font-weight: 500; flex-shrink: 0; }
.meta-value { color: var(--navy); font-weight: 600; }

.product-inquiry-btn { width: 100%; margin-bottom: 12px; }
.product-inquiry-btn span { text-align: center; }
.product-wa-btn { width: 100%; text-align: center; margin-bottom: 24px; }

.product-description { border-top: 1px solid var(--border); padding-top: 20px; }
.product-description h3 { font-size: 17px; margin-bottom: 12px; }
.product-description h4 { font-size: 15px; margin: 18px 0 10px; }
.product-description ul { padding-left: 20px; }
.product-description ul li { margin-bottom: 6px; font-size: 13px; }

/* Specs Section */
.product-specs-section { margin-top: 48px; border-top: 3px solid var(--border-dark); padding-top: 32px; }
.product-specs-section h3 { font-size: 20px; margin-bottom: 6px; }
.specs-hint { font-size: 12px; color: var(--gray-light); margin-bottom: 16px; }
.specs-table thead th {
  background: var(--navy); color: var(--white);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 10px 14px;
}
.specs-table tbody tr:nth-child(even) { background: var(--bg); }

/* Related Products */
.related-products { margin-top: 48px; border-top: 3px solid var(--border-dark); padding-top: 32px; }
.related-products h3 { font-size: 20px; margin-bottom: 20px; }
.related-products .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-products .product-card-image { text-decoration: none; display: flex; }


/* ============================================================
   Homepage (CAMTOP Oilfield Tools style)
   ============================================================ */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 24px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hs-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.3px;
}
.hs-label { font-size: 12px; color: rgba(255,255,255,0.7); }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 24px; margin-bottom: 6px; }
.section-head p { font-size: 13px; color: var(--gray); margin: 0; }

.cat-card { text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; display: block; }
.cat-card:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none; }
.cat-card h4 { color: var(--navy); }
.cat-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 72px; color: var(--border-dark); margin-bottom: 10px; }
.error-404 p { color: var(--gray); font-size: 14px; }

/* Responsive */
@media (max-width: 1023px) {
  .wrapper { min-width: 0; padding: 0; margin-bottom: 0; }
  .content { padding: 15px; }
  .content_home { padding-top: 20px; }
  .content_right { max-width: none; padding-right: 0; }
  .prim-content { float: none; }
  .sec-content { float: none; width: auto; margin-right: 0; }
  .sn__list__item { width: 32%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .prim-nav { float: none; width: auto; margin-left: 0; padding: 10px 0; }
  .prim-nav ul li { margin: 0 12px 0 0; }
}

@media (max-width: 767px) {
  body { font-size: 12px; }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  .header { padding: 0 10px; }
  .h__logo { margin: 12px 0 8px; gap: 10px; }
  .h__logo-img { height: 56px; }
  .h__logo-text { font-size: 20px; }
  .h__logo-sub { font-size: 7.5px; letter-spacing: 0.12em; }
  .h__logo-text-block { padding-left: 10px; }
  .h__contacts { float: none; text-align: left; margin-top: 0; }
  .prim-nav { display: none; border-top: none; margin-top: 0; }
  .prim-nav.open { display: block; }
  .mobile-toggle { display: block; }
  .sn__list__item { width: 49%; vertical-align: top; }
  .sn__list__item__content { height: auto; line-height: 1.25; padding: 8px; text-align: center; }
  .sn__list__item__img { float: none; margin: 0 auto 8px; }
  .advantages { padding: 40px 10px 40px; }
  .advantages__title { font-size: 20px; }
  .advantages-slider { max-width: 100%; }
  .advantages-list li { width: 100%; }
  .about-grid, .contact-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .gallery-main { min-height: 320px; }
  .gallery-main img { max-height: 360px; }
  .gallery-thumb { width: 64px; height: 64px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer { text-align: center; }
  .f__copyright { float: none; }
  .developer { float: none; text-align: center; margin-top: 10px; }
  .f-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
}
