

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
nav {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 108px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #df4f02;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* MOBILE: hide nav by default, show hamburger */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .nav-links > li > a {
    line-height: 1;
    padding: 16px 0;
    font-size: 1rem;
    display: block;
    width: 100%;
  }
  .dropdown {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 16px;
    top: auto;
    display: none;
    min-width: unset;
    border-top: none;
  }
  .nav-links li.open-sub .dropdown {
    display: block;
  }
  .hamburger {
    display: flex;
    z-index: 1000;
  }
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 0 14px;
  line-height: 108px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #1a039e; }

.nav-links li:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 108px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 2px solid #1a039e;
  min-width: 230px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.8rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #f0f7ff; color: #1a039e; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #444;
  border-radius: 2px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: #1a039e;
  padding: 28px 0;
}
.page-header h1 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 0 148px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

/* ===== MAIN ===== */
main { flex: 1; }

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 20px 24px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.04em;
}

/* ===== SOLID BUTTON ===== */
.btn {
  display: inline-block;
  padding: 10px 28px;
  background: #1a039e;
  color: #fff;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: #150380; }

/* ===== PDF BUTTON ===== */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #1a039e;
  border: 2px solid #1a039e;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border-radius: 2px;
}
.btn-pdf:hover { background: #1a039e; color: #fff; }
.btn-pdf svg { flex-shrink: 0; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { background: #fff; padding: 60px 24px; }
.product-detail-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-inner.centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 760px;
}
.product-detail-inner.centered .pdf-buttons { justify-content: center; }
.product-detail-inner.centered ul { text-align: left; display: inline-block; }
.product-detail-inner img { width: 100%; object-fit: cover; }
.product-detail h2 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a039e;
  margin-bottom: 16px;
}
.product-detail p {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
}
.product-detail ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.product-detail ul li {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}
.pdf-section { margin-top: 36px; }
.pdf-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pdf-group { margin-bottom: 20px; }
.pdf-group h4 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* hamburger → X when open */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger span { transition: transform 0.2s, opacity 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .nav-links > li > a { padding: 0 10px; font-size: 0.72rem; }
}

@media (max-width: 768px) {
  .nav-inner { height: 80px; gap: 12px; }
  .nav-logo img { width: 60px !important; height: 60px !important; }
  .nav-logo-name { font-size: 1.2rem !important; }

  /* content scaling */
  .product-detail-inner { grid-template-columns: 1fr; }
  .product-detail-inner.centered { text-align: left; }
  .product-detail-inner.centered .pdf-buttons { justify-content: flex-start; }
  .home-lists-inner { grid-template-columns: 1fr !important; }
  .product-cards-inner { grid-template-columns: 1fr 1fr !important; }
  .rubber-sub-cards { grid-template-columns: 1fr !important; }
  .app-grid-inner { grid-template-columns: 1fr 1fr !important; }
  .about-gallery-inner { flex-direction: column; }
  .contacts-inner { grid-template-columns: 1fr !important; }
  .page-header h1 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .product-cards-inner { grid-template-columns: 1fr !important; }
  .app-grid-inner { grid-template-columns: 1fr !important; }
  .nav-logo-name { font-size: 1rem !important; }
}

/* ===== CRITICAL MOBILE WIDTH FIX ===== */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  * { max-width: 100%; }
  .home-lists-inner { grid-template-columns: 1fr !important; }
  .product-cards-inner { grid-template-columns: 1fr !important; }
  .rubber-sub-cards { grid-template-columns: 1fr !important; }
  .app-grid-inner { grid-template-columns: 1fr !important; }
  .about-gallery-inner { flex-direction: column !important; }
  .contacts-inner { grid-template-columns: 1fr !important; }
  .product-detail-inner { grid-template-columns: 1fr !important; }
  .hero-banner img { height: 200px !important; }
  .page-header h1 { font-size: 1rem !important; padding: 0 16px !important; }
  .pdf-buttons { flex-direction: column !important; }
  section, .section { padding: 24px 16px !important; }
}
