:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #00b4d8;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.header-phone {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--primary-dark);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 50%, #0d6efd 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="40" cy="70" r="1.2" fill="rgba(255,255,255,0.07)"/></svg>');
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

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

.btn-blue:hover {
  background: var(--primary-dark);
}

/* ========== SECTIONS ========== */
.section {
  padding: 70px 0;
}

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

.section-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e8f0fe, #d0e4ff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-card a {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.service-card a:hover {
  color: var(--primary-dark);
}

/* ========== ADVANTAGES ========== */
.advantages {
  background: var(--light);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.adv-item h4 {
  font-size: 1.1rem;
  margin: 12px 0 6px;
}

.adv-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

.adv-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
}

.cta h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 2px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9ecef;
  min-height: 320px;
}

.map-wrapper iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
  color: white;
  padding: 50px 0;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.85;
  max-width: 600px;
}

.breadcrumbs {
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumbs a:hover { color: var(--primary); }

/* ========== CATALOG ========== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-bottom: 70px;
}

.sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 6px;
}

.category-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
}

.category-list a:hover,
.category-list a.active {
  background: #e8f0fe;
  color: var(--primary);
  font-weight: 500;
}

.filter-block {
  margin-top: 28px;
}

.filter-block label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
}

.catalog-count {
  color: var(--gray);
  font-size: 0.95rem;
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
  height: 180px;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b35;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-badge.green {
  background: #28a745;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: auto;
  margin-bottom: 14px;
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-weight: 500;
  background: white;
  box-shadow: var(--shadow);
}

.pagination a:hover {
  background: var(--primary);
  color: white;
}

.pagination .active {
  background: var(--primary);
  color: white;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.product-gallery {
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.product-info .sku {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.product-info .desc {
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.7;
}

.specs {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}

.specs h3 {
  margin-bottom: 16px;
}

.specs table {
  width: 100%;
  border-collapse: collapse;
}

.specs td {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.specs td:first-child {
  color: var(--gray);
  width: 40%;
}

/* ========== ABOUT / CONTENT ========== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

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

.content-block p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.75;
}

.content-block ul {
  margin: 16px 0 24px 24px;
}

.content-block li {
  margin-bottom: 8px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .contact-grid,
  .footer-grid,
  .product-detail,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

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

  .map-wrapper iframe {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta {
    margin: 0 10px;
    padding: 40px 16px;
  }

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