/* --- Variables --- */
:root {
  --primary: #0A2342;
  --primary-light: #1B3A6B;
  --primary-dark: #061a35;
  --accent: #2196F3;
  --accent-hover: #1976D2;
  --accent-light: #64B5F6;
  --bg-light: #F5F8FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #35383e;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow: rgba(10, 35, 66, 0.08);
  --shadow-md: rgba(10, 35, 66, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1280px;
  --header-h: 80px;
  --header-h-scrolled: 64px;
}

/* --- Reset& Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-muted); line-height: 1.7; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
}

.header.scrolled {
  height: var(--header-h-scrolled);
  box-shadow: 0 4px 20px var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo-text {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.header-logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.95rem;
}

.header-contact-item:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.header-contact-item a:hover {
  color: var(--accent);
}

.header-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.nav-item:hover .nav-link {
  color: var(--accent);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-submenu a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding:160px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.hero-badge-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  border-radius: var(--radius-lg);
}
/* --- Section --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

.card-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* --- Product Card --- */
.product-card {
  display: flex;
  flex-direction: column;
  max-width: 380px;
}
.product-card.visible .lazy-img-wrapper:before{
  visibility: hidden;
  opacity: 0;
}
.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-link {
  margin-top: auto;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

/* --- Stats Counter Animation --- */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-number.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number.counting {
  animation: countPulse 0.1s ease forwards;
}

@keyframes countPulse {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.05); }
}

/* --- Product Cards Scroll Animation --- */
@media (min-width: 769px) {
  .product-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .product-card.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card:nth-child(1) { transition-delay: 0s; }
  .product-card:nth-child(2) { transition-delay: 0.1s; }
  .product-card:nth-child(3) { transition-delay: 0.2s; }
  .product-card:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Lazy Load Images --- */
.lazy-img-wrapper {
  position: relative;
  overflow: hidden;
}

.lazy-img-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(33, 150, 243, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lazySpinner 0.8s linear infinite;
  z-index: 1;
}
.lazy-img-wrapper.loaded::before {
  display: none;
}
.lazy-img-wrapper img {
  transition: opacity 0.4s ease;
}

.lazy-img-wrapper img.lazy {
  opacity: 0;
}

.lazy-img-wrapper img.loaded {
  opacity: 1;
}

@keyframes lazySpinner {
  to { transform: rotate(360deg); }
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
/* --- CTA Form --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content {
  color: #fff;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
}

.cta-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.cta-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.cta-form h3 {
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 65px 0 11px;
  background: var(--primary);
}
.crumb-wrapper {
  justify-content: center;
  display: flex;
}
.breadcrumbs .container{
    display: flex;
    gap: 10px;
}
.search-wrapper {margin-left: auto}
.simplesearch-search-form {}
.simplesearch-search-form label {
  display: none;
}
.simplesearch-search-form #search {}
.simplesearch-search-form fieldset {border: 0;}
.simplesearch-search-form [type=text] {
  padding: 7px 9px;
  border-radius: 5px;
  border: 1px solid;
}
.simplesearch-result-pages {
  margin-right: 15px;
}
.simplesearch-page a,.simplesearch-page.simplesearch-current-page{
  background: #0f2b50;
  color: #fff;
  aspect-ratio: 1;
  width: 25px;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  height: 25px;
  border-radius: 4px;
}
.simplesearch-current-page {
  opacity: 0.5;
}


.simplesearch-search-form [type=submit] {
  background: red;
  color: #fff;
  border: 0px;
  padding: 7px 12px;
  border-radius: 5px;
}
.simplesearch-search-form [type=submit]:hover {
  transform: scale(1.1);
  cursor: pointer;
}


@media screen and (max-width: 560px){
  .breadcrumbs {
    padding: 81px 0 20px;
  }
}
.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.breadcrumbs-list li a:hover {
  color: #fff;
}

.breadcrumbs-list li svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.breadcrumbs-list li:last-child {
  color: #fff;
}

/* --- Page Header --- */
.page-header {
  padding: 60px 0 40px;
  background: var(--bg-light);
}

.page-header h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Text Page --- */
.text-content {
  padding: 60px 0;
}

.text-content-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
}

.text-main h2 {
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.text-main h3 {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.text-main p {
  margin-bottom: 16px;
}

.text-main ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.text-main ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.text-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.text-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 32px 0;
}

.text-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-block {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-block h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* --- Category Page --- */
.category-content {
  padding: 60px 0;
}

.category-header {
  margin-bottom: 40px;
}

.category-header h1 {
  margin-bottom: 12px;
}

.category-header p {
  max-width: 700px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* --- Product Page --- */
.product-content {
  padding: 60px 0;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}

.product-gallery-wrapper {
  position: sticky;
  top: 90px;
  align-self: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery > a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-gallery > a > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.product-gallery-thumbs img {
  width: 143px;
  height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery-thumbs img:hover {
  opacity: 0.8;
}

.product-gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--accent);
}

.product-info h1 {
  margin-bottom: 16px;
}

.product-description {
  margin-bottom: 24px;
}

.product-features {
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.product-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.related-products {
  padding: 60px 0;
  background: var(--bg-light);
}

.related-products h2 {
  margin-bottom: 32px;
}

/* --- Contacts Page --- */
.contacts-content {
  padding: 60px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.contact-block {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 80px;
}

.contact-block h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.contact-list a {
  color: var(--accent);
}

.contact-list a:hover {
  color: var(--accent-hover);
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.contacts-form-section {
  max-width: 600px;
  margin: 0 auto;
}

.contacts-form-section h2 {
  text-align: center;
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-brand .header-logo-text {
  color: #fff;
}

.footer-brand .header-logo-text span {
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {

}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner,
  .cta-inner,
  .product-inner,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .text-content-inner {
    grid-template-columns: 1fr;
  }

  .text-sidebar {
    position: static;
  }

  .product-gallery-wrapper {
    position: static;
    top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --header-h: 64px;
  }

  .header-contacts {
    display: none;
  }

  .header-cta-desktop {
    display: none;
  }

  .header-cta-mobile {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 20px;
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    display: flex;
  }

  .nav-contact-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
  }

  .nav-contact-top a {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-contact-top a.small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
  }

  .nav-link {
    font-size: 1.1rem;
    color: var(--primary);
  }
@media screen and (max-width: 640px){
  .nav-link {
    justify-content: center;
  }
}
  .nav-submenu {
    position: static;
    box-shadow: none;
    padding: 0 0 10px 20px;
    display: none;
  }

  .nav-item:hover .nav-submenu,
  .nav-item.active .nav-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-contact-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 0;
    border-top: 1px solid var(--border);
    margin-top:10px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-badges {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-form {
    padding: 24px;
  }

  .product-cta {
    flex-direction: column;
  }

  .product-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .header-logo-text {
    display: none;
  }
}

/* --- Card Title Links --- */
.card-title-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.card-title-link:hover {
  color: var(--accent);
}

/* --- Product Content Area (plain HTML) --- */
.product-content-area {
  margin-bottom: 24px;
}

.product-content-area p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.product-content-area h2 {
  margin: 28px 0 14px;
  font-size: 1.4rem;
}

.product-content-area h3 {
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.product-content-area ul,
.product-content-area ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.product-content-area ul li,
.product-content-area ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.product-content-area ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.product-content-area table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.product-content-area table th,
.product-content-area table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.product-content-area table th {
  background: var(--bg-light);
  font-weight: 600;
}

.product-content-area img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* --- Product Tabs --- */
.product-tabs {
  margin-bottom: 40px;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Price Block --- */
.price-block {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- Mobile Phone Button --- */
.btn-phone-mobile {
  display: none;
}

@media (max-width: 780px) {
  .btn-phone-mobile {
    display: inline-flex;
  }
}

/* --- Form Privacy --- */
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-privacy label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Required asterisk --- */
.required-star {
  color: #ef4444;
}

/* --- Cookie Notice --- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.cookie-notice.active {
  display: flex;
}

.cookie-notice-text {
  flex: 1;
}

.cookie-notice-text a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-notice-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-notice .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.cookie-notice .btn-primary {
  background: var(--accent);
}

.cookie-notice .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

@media (max-width: 576px) {
  .cookie-notice {
    flex-direction: column;
    text-align: center;
  }

  .cookie-notice-btns {
    width: 100%;
    justify-content: center;
  }
  .hero-inner, .cta-inner, .product-inner, .contacts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .search-wrapper {
    margin-top: 10px;
    margin-left: initial;
  }
  .product-card {
    max-width: 100%;
  }
  .breadcrumbs .container {
    flex-direction: column;
    justify-content: left;
    align-items: baseline;
  }
  .container {
    padding: 0 15px;
  }
  .page-header h1 {
    font-size: 1.6em;
  }
  .lazy-img-wrapper {
    max-width: 100%;
  }
  .category-content {
    padding: 20px 0;
  }
  .category-products .container {
    padding: 0px;
  }
  .category-header p {
    font-size: 0.8em;
    line-height: 1.3em;
  }
  .category-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .product-card .card-body {
    max-width: 100%;
  }
}