/* ═══════════════════════════════════════════════
   NETZ FILTERS — Main Stylesheet
   ═══════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* ── CSS VARIABLES ── */
:root {
  --green-dark:  #0c2918;
  --green-mid:   #1a3d28;
  --accent:      #c8d800;
  --accent-dark: #aabb00;
  --white:       #ffffff;
  --black:       #111111;
  --bg-light:    #f6f7f2;
  --text-dark:   #1a1a1a;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --shadow:      0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 25px -5px rgba(0,0,0,.12), 0 4px 10px -5px rgba(0,0,0,.08);
  --radius:      12px;
  --radius-sm:   6px;
  --nav-h:       70px;
  --container:   1200px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }

/* ── TYPOGRAPHY HELPERS ── */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-accent { background: var(--accent); color: var(--black); }
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,216,0,.35);
  outline: none;
}
.btn-lg { padding: 15px 34px; font-size: 15px; }

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 200;
  display: flex;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.lang-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--green-dark); color: var(--white); }
.lang-btn:hover:not(.active) { background: rgba(12,41,24,.08); }

/* ══════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; }
.logo-box {
  background: var(--accent);
  color: var(--black);
  font-size: 14px; font-weight: 900;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.logo-text {
  color: var(--text-dark);
  font-size: 14px; font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px; font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(12,41,24,.06); color: var(--green-dark); }
.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 18px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  background: #021e12;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.hero-brand {
  color: var(--accent);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--white);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 42px;
  max-width: 380px;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 520px;
  isolation: isolate;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, #021e12 0%, rgba(2, 30, 18, 0) 14%, rgba(2, 30, 18, 0) 86%, #021e12 100%),
    linear-gradient(180deg, #021e12 0%, rgba(2, 30, 18, 0) 12%, rgba(2, 30, 18, 0) 88%, #021e12 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-product-image {
  width: min(100%, 740px);
  height: auto;
  object-fit: contain;
  object-position: right center;
  filter: saturate(.94) brightness(.94) drop-shadow(0 26px 40px rgba(0, 0, 0, .22));
}

/* ══════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════ */
.products { background: var(--white); }

.products .section-title { margin-bottom: 52px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-img-wrap {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-img-wrap svg {
  width: 90%; height: auto;
  transition: transform .3s ease;
}
.product-img-wrap .product-photo {
  transition: transform .3s ease;
}
.product-card:hover .product-img-wrap svg { transform: scale(1.06); }
.product-card:hover .product-img-wrap .product-photo { transform: scale(1.06); }

.product-card h3 {
  font-size: 14px; font-weight: 700;
  color: var(--text-dark); line-height: 1.45;
}

/* ══════════════════════════════════════════════
   DISTRIBUTORS
══════════════════════════════════════════════ */
.distributors { background: var(--green-dark); color: var(--white); }

.distributors-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.distributors-text h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
}
.distributors-text h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 4px;
  background: var(--accent); border-radius: 2px;
}

.distributors-text > p {
  color: rgba(255,255,255,.72);
  margin-top: 28px; margin-bottom: 44px;
  max-width: 400px;
  line-height: 1.75; font-size: 15px;
}

.distributor-list { display: flex; flex-direction: column; gap: 22px; }

.distributor-item { display: flex; align-items: flex-start; gap: 14px; }

.pin-icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.distributor-item strong {
  display: block;
  font-size: 17px; font-weight: 700;
  margin-bottom: 2px;
}
.distributor-item a {
  color: rgba(255,255,255,.65);
  text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.distributor-item a:hover { color: var(--accent); }

.distributors-map {
  display: flex; justify-content: flex-end; align-items: center;
}
.distributors-map svg { max-width: 420px; width: 100%; height: auto; }

/* ══════════════════════════════════════════════
   WHY NETZ
══════════════════════════════════════════════ */
.why-netz { background: var(--bg-light); }

.why-netz .section-title { margin-bottom: 52px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 0;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.why-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200,216,0,.3);
}
.why-icon svg { width: 26px; height: 26px; fill: var(--green-dark); }

.why-card h3 {
  font-size: 17px; font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--green-dark);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo-text { color: var(--white); }

.footer-copy {
  color: rgba(255,255,255,.45);
  font-size: 13px; text-align: center;
}

.footer-wa {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  transition: background .2s;
  flex-shrink: 0;
}
.footer-wa:hover { background: rgba(255,255,255,.2); }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 99;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { gap: 24px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .section { padding: 64px 0; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Mobile nav */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px; padding-bottom: 52px;
    gap: 12px;
  }
  .hero-text { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .hero-media {
    order: -1;
    min-height: auto;
    justify-content: center;
    padding-top: 8px;
  }
  .hero-product-image {
    width: min(100%, 520px);
  }

  /* Distributors */
  .distributors-inner { grid-template-columns: 1fr; gap: 40px; }
  .distributors-map { justify-content: center; }
  .distributors-map svg { max-width: 320px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }

  /* Lang switcher moves below sticky header */
  .lang-switcher { top: calc(var(--nav-h) + 10px); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card { padding: 18px 10px 16px; }
  .product-card h3 { font-size: 13px; }
  .container { padding: 0 16px; }
  .hero-text h1 { font-size: 28px; }
}

/* ── CITY TRIGGER ── */
.city-trigger {
  cursor: pointer;
  text-decoration: underline dotted;
  transition: color .2s;
}
.city-trigger:hover,
.city-trigger:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

/* ── AKTAU PARTNERS MODAL ── */
.partners-modal,.oil-modal,.air-modal,.salon-modal,.truck-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partners-modal[hidden], .oil-modal[hidden],.air-modal[hidden], .salon-modal[hidden], .truck-modal[hidden] { display: none; }

.partners-modal__backdrop, .oil-modal__backdrop, .air-modal__backdrop, .salon-modal__backdrop, .truck-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.partners-modal__box, .oil-modal__box, .air-modal__box, .salon-modal__box, .truck-modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(760px, 95vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn .22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.partners-modal__header, .oil-modal__header, .air-modal__header, .salon-modal__header, .truck-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--green-dark);
  color: var(--white);
  flex-shrink: 0;
}
.partners-modal__header h3, .oil-modal__header h3, .air-modal__header h3, .salon-modal__header h3, .truck-modal__header h3 {
  font-size: 18px;
  font-weight: 700;
}
.partners-modal__close, .oil-modal__close, .air-modal__close, .salon-modal__close, .truck-modal__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: .75;
  transition: opacity .15s;
}
.partners-modal__close:hover, .oil-modal__close:hover,.air-modal__close:hover, .salon-modal__close:hover, .truck-modal__close:hover { opacity: 1; }

.partners-modal__body, .oil-modal__body, .air-modal__body, .salon-modal__body, .truck-modal__body {
  overflow-y: auto;
  padding: 20px 24px;
}

.partners-table, .oil-table, .air-table, .salon-table, .truck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.partners-table th,
.partners-table td,
.oil-table th,
.oil-table td,
.air-table th,
.air-table td,
.salon-table th,
.salon-table td,
.truck-table th,
.truck-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.partners-table thead th,
.oil-table thead th,
.air-table thead th,
.salon-table thead th,
.truck-table thead th {
  background: var(--bg-light);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.partners-table tbody tr:last-child td,
.oil-table tbody tr:last-child td,
.air-table tbody tr:last-child td,
.salon-table tbody tr:last-child td,
.truck-table tbody tr:last-child td{ border-bottom: none; }
.partners-table tbody tr:hover td,
.oil-table tbody tr:hover td,
.air-table tbody tr:hover td,
.salon-table tbody tr:hover td,
.truck-table tbody tr:hover td{ background: var(--bg-light); }
.partners-table td:first-child,
.oil-table td:first-child,
.air-table td:first-child,
.salon-table td:first-child,
.truck-table td:first-child{ font-weight: 600; }
.partners-table td:last-child,
.oil-table td:last-child,
.air-table td:last-child,
.salon-table td:last-child,
.truck-table td:last-child{ color: var(--text-muted); }

@media (max-width: 520px) {
  .partners-modal__body { padding: 14px 12px; }
  .partners-table th, .partners-table td,
  .oil-table th, .oil-table td { padding: 8px 8px; font-size: 12px; }
  .air-table th, .air-table td { padding: 8px 8px; font-size: 12px; }
  .salon-table th, .salon-table td { padding: 8px 8px; font-size: 12px; }
  .truck-table th, .truck-table td { padding: 8px 8px; font-size: 12px; }
}
