/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(11, 28, 45, 0.85);
  color: var(--white);
  z-index: 999;
  transition: background 0.3s;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-bold);
  font-size: 22px;
  color: var(--white);
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.desktop-nav a {
  font-family: var(--font-semibold);
  color: var(--white);
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: var(--red);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--navy);
  padding: 20px;
  z-index: 1000;
  transition: left 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  color: var(--white);
  font-size: 18px;
  font-family: var(--font-medium);
}

.sidebar a:hover {
  color: var(--red);
}

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  align-self: flex-end;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Media queries */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* --- MOBIL VERSIYA UCHUN MAXSUS TUZATISHLAR --- */
@media (max-width: 768px) {
  /* 1. Header konteynerini kengaytirish */
  .header-container {
    height: 80px !important; /* Header juda kichik bo'lmasligi uchun */
    padding: 0 15px !important;
  }

  .btn {
    min-width: 200px !important; /* Juda kichik bo'lib qolmasligi uchun */
    max-width: 300px !important; /* Juda katta bo'lib ketmasligi uchun */
    margin: 0 auto !important;
  }

  /* Logotip o'lchami */
  .logo {
    font-size: 18px !important;
    white-space: nowrap;
  }

  /* 2. O'ng tomondagi elementlar (Sell Now + Burger) */
  /* Agar HTML-da tugma va burger alohida bo'lsa, ularni flex qiling */
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Gamburger tugmasining o'zi */
  .menu-btn {
    font-size: 24px !important;
    margin-left: 10px; /* Tugma bilan oraliq masofa */
  }

  /* 3. Hero Section - Cho'zilib ketgan tugmalar va padding */
  .hero {
    padding: 140px 20px 60px !important; /* Header tagida qolmasligi uchun */
  }

  .hero-title {
    font-size: 26px !important; /* Sarlavha sig'ishi uchun */
    line-height: 1.3;
  }

  .hero-buttons {
    display: flex !important;
    flex-direction: column !important; /* Ustma-ust qilish */
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  /* Tugmalarni "rasvo" cho'zilishidan qutqarish */
  .btn-hero {
    width: 85% !important; /* Ekran bo'ylab 100% yoyilmaydi */
    max-width: 300px !important; /* Juda katta bo'lishini cheklaydi */
    padding: 14px 0 !important;
    text-align: center;
    font-size: 15px !important;
    display: block !important;
  }

  /* 4. Kontakt Formasidagi tugma */
  #contactForm button {
    width: 85% !important;
    max-width: 300px !important;
  }
}

/* Juda kichik ekranlar uchun qo'shimcha (iPhone SE) */
@media (max-width: 380px) {
  .logo {
    font-size: 16px !important;
  }
  .header-container {
    height: 70px !important;
  }
}

/* 380px dan 403px gacha bo'lgan oraliq uchun maxsus tuzatish */
@media (max-width: 403px) and (min-width: 380px) {
  .call-btn {
    padding: 6px 10px !important; /* Paddingni kamaytiramiz */
    font-size: 12px !important; /* Shriftni kichraytiramiz */
    height: auto !important; /* Balandlikni avtomat qilamiz */
    line-height: 1.2 !important;
    display: flex !important; /* Markazlash uchun */
    align-items: center !important;
    justify-content: center !important;
  }

  .header-container {
    gap: 5px !important; /* Logo va tugmalar orasini biroz qisqartiramiz */
  }

  .logo {
    font-size: 16px !important; /* Logotip ham joy bo'shatishi uchun */
  }
}
