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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Topbar + Navbar joyiga yo‘l bo‘shatsin */
}

/* =====================================================
   AAA FONT SCALE
===================================================== */
html {
  font-size: 16px;
  transition: font-size .25s ease;
}
html[data-font="small"]  { font-size: 14px; }
html[data-font="medium"] { font-size: 16px; }
html[data-font="large"]  { font-size: 20px; }
html[data-font="large"] body {
  line-height: 1.8;
}

/* =====================================================
   TOPBAR (fixed)
===================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background: linear-gradient(180deg,#0b2a45,#071f33);
  color: #d6e2f0;
  z-index: 10000;
  transition: transform .25s ease;
}
.topbar.hide {
  transform: translateY(-100%);
}

.topbar-inner {
  max-width: 1600px;
  height: 42px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Flags + Eye  */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.lang-btn,
.eye-btn {
  width: 34px;
  height: 22px;
  background: none;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover,
.eye-btn:hover {
  border-color: #f3c22c;
  color: #f3c22c;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* =====================================================
   AAA PANEL
===================================================== */
.access-panel {
  position: absolute;
  top: 42px;
  right: 0;
  background: #ffffff;
  color: #000;
  padding: 12px;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  display: none;
  z-index: 99999;
}
.access-panel.show {
  display: block !important;
}

.font-controls {
  display: flex;
  gap: 8px;
}
.font-controls button {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px 10px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
}
.font-controls button:hover,
.font-controls button.active {
  background: #f3c22c;
  border-color: #f3c22c;
}

/* =====================================================
   NAVBAR (fixed)
===================================================== */
.navbar {
  position: fixed;
  top: 42px; /* Topbar balandligi bilan yopishgan */
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 9999;
}

.navbar-inner {
  max-width: 1600px;
  margin: auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LOGO */
.logo img {
  height: 78px;
}
@media (min-width: 1400px) {
  .logo img { height: 84px; }
}
@media (min-width: 1800px) {
  .logo img { height: 90px; }
}

/* =====================================================
   MENU (desktop)
===================================================== */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: #222;
  padding: 18px 16px;
  transition: .25s;
}
.nav-link:hover,
.nav-link.active {
  background: #f3c22c;
  color: #000;
}

/* Dropdown */
.nav-item { position: relative; }

@media (min-width: 901px) {
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    display: none;
  }
  .nav-item:hover .dropdown {
    display: block;
  }
  .dropdown a {
    padding: 10px 18px;
    display: block;
    color: #222;
    text-decoration: none;
  }
  .dropdown a:hover { background: #f5f5f5; }
}

/* =====================================================
   MOBILE MENU / ACCORDION
===================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #111;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; margin-left: auto; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding-top: 100px;
    overflow-y: auto;
    transition: right .35s ease;
    z-index: 10000;
  }
  .nav-menu.open { right: 0; }

  .nav-link {
    padding: 16px 22px;
    border-bottom: 1px solid #eee;
  }

  /* Mobile dropdown – accordion */
  .dropdown {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height .25s ease;
  }
  .nav-item.open > .dropdown {
    max-height: 800px;
  }

  /* Arrow icon */
  .nav-item > .nav-link {
    padding-right: 30px;
    position: relative;
  }
  .nav-item > .nav-link::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
  }
}


/* TOPBAR yashirilganda NAVBAR tepaga yopishib kelsin */
.topbar.hide + .navbar {
    top: 0 !important;
}

/* Odatda NAVBAR topbar pastida turadi */
.navbar {
    top: 42px !important;
}

/* Mobilda ham ishlasin */
@media (max-width: 900px) {
    .topbar.hide + .navbar {
        top: 0 !important;
    }
}


/* MOBILE DROPDOWN KETMA-KET OCHILISHI */
@media (max-width: 900px) {

    .nav-item > .dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-item.open > .dropdown {
        max-height: 600px;
    }

    /* Yonma-yon chiqmasligi uchun */
    .dropdown a {
        display: block;
        width: 100%;
    }
}


/* ===============================
   DESKTOP MENYU — BIR QATORDA TEKIS
==================================*/

@media (min-width: 901px) {

  /* Logo va menu bir balandlikda */
  .navbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Menyu bo'limlari tekis joylashsin */
  .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
  }

  /* Har bir menu bir xil balandlikda */
  .nav-link {
    padding: 20px 10px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 17px !important;
  }

  /* Dropdown belgisi sabab pastga tushib ketmasin */
  .nav-item > .nav-link {
    display: flex !important;
    align-items: center !important;
  }

  /* Hamma menu itemlar bir tekis */
  .nav-item {
    display: flex !important;
    align-items: center !important;
  }

}


/* ============================================
   PERFECT CENTERED NAVBAR (DESKTOP)
   Logo yaqin, menu qoq markazda
============================================ */
@media (min-width: 901px) {

  /* NAVBAR strukturani tekislaymiz */
  .navbar-inner {
    display: flex !important;
    justify-content: center !important;   /* MENU QOQ MARKAZDA */
    align-items: center !important;
    gap: 40px !important;                 /* Logo bilan menu orasidagi masofa */
  }

  /* LOGO - Asosiy ga YAQINROQ */
  .logo {
    margin-left: 0 !important;
    margin-right: 20px !important;        /* LOGO Asosiy ga yaqinlashadi */
  }

  .logo img {
    height: 72px !important;
  }

  /* MENU BLOKINI QOQ MARKAZGA OLIB KELISH */
  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;   /* ichki tekislash */
    gap: 40px !important;                 /* menyular orasidagi masofa */
    flex: 0 1 auto !important;            /* kenglikni o‘zi belgilasin */
  }

  /* HAR BIR MENYU ITEM TEKIS BO‘LSIN */
  .nav-link {
    padding: 18px 10px !important;
    font-size: 17px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
  }

  .nav-item {
    display: flex !important;
    align-items: center !important;
  }

}

/* ======================================
   MOBILE DROPDOWN FIX — TEXT YOPILMASIN
====================================== */
@media (max-width: 900px) {

  /* Dropdown konteynerga pastdan joy ochamiz */
  .nav-item.open > .dropdown {
    padding-top: 12px !important;   /* 🔥 Asosiy tugmadan pastroqda boshlanadi */
  }

  /* Har bir ichki link qulay o‘qilishi uchun */
  .dropdown a {
    padding: 14px 30px !important;
    display: block;
  }
}


/* ===========================================
   FIX: MOBILE NAVBAR ALWAYS BELOW TOPBAR
   Drop-down ochilganda menu yuqoriga ko'tarilmasin
=========================================== */
@media (max-width: 900px) {

  /* Navbar doim topbardan keyin turadi */
  .navbar {
    position: sticky;
    top: 48px !important;  /* TOPBAR balandligi + 6px xavfsizlik */
    z-index: 9999 !important;
    background: #fff;
  }

  /* Mobilda drop-down ochilganda text tepaga yopishmasin */
  .nav-item.open > .dropdown {
    padding-top: 14px !important;
  }

  /* Dropdown pastga tushib ochilsin */
  .dropdown {
    margin-top: 6px !important;
  }
}



/* ===========================
   FOOTER — QOQ MARKAZDA
=========================== */

.site-footer {
  width: 100%;
  background: #06233d;       /* sizda ishlatilgan rang */
  color: #d6e2f0;
  padding: 50px 0;
}

.site-footer .container {
  max-width: 1400px;
  margin: 0 auto;            /* QOQ MARKAZGA TEKISLAYDI */
  padding: 0 20px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* barcha content markazda */
  text-align: center;        /* matnlarni ham markazga */
  gap: 40px;                 /* bo‘limlar orasidagi masofa */
}

/* Footer bo‘limlari */
.site-footer .column {
  flex: 1 1 250px;           /* moslashuvchan bo‘lim */
  max-width: 350px;          /* ortiqcha kengaymasin */
  min-width: 250px;
}

.site-footer h5 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #fff;
}

.site-footer a {
  color: #d6e2f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f3c22c;
}

/* Kontakt ikonkalar markazda turishi uchun */
.footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}




/* ===========================
      FOOTER GLOBAL
=========================== */

.site-footer {
  background: #06233d;
  color: #d6e2f0;
  padding: 60px 0 30px;
  width: 100%;
}

/* ===== QOQ MARKAZDA JOYLASHTIRILGAN KONTEYNER ===== */
.footer-container {
  max-width: 1350px;        /* chap/o‘ngdan bir xil bo‘shliq */
  margin: 0 auto;
  padding: 0 25px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* ustunlar markazda */
  gap: 40px;                /* ustunlar oralig‘i mos */
}

/* ==== FOOTER USTUN (lekin matn CHAPDAN) ==== */
.footer-col {
  flex: 1 1 280px;
  max-width: 320px;

  text-align: left;          /* matn chapdan joylashadi */
}

/* ==== Sarlavhalar ==== */
.footer-col h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ==== Oddiy matn ==== */
.footer-col p {
  margin-bottom: 8px;        /* ixcham masofa */
  line-height: 1.5;
}

/* ==== Linklar ==== */
.footer-link,
.footer-menu a,
.map-link {
  color: #d6e2f0;
  text-decoration: none;
}
.footer-link:hover,
.footer-menu a:hover,
.map-link:hover {
  color: #f3c22c;
}

/* ==== Menyu list ==== */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin: 6px 0;
}

/* ==== Google Map ==== */
.footer-map iframe {
  width: 100%;
  height: 210px;
  border: none;
  border-radius: 6px;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
  margin: 12px 0 15px;
  display: flex;
  justify-content: flex-start;   /* chapga tekislanadi */
  gap: 10px;
}
.social-icons a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: 0.2s ease;
}
.social-icons a:hover {
  background: #f3c22c;
  color: #000;
}

/* ===========================
      FOOTER BOTTOM
=========================== */
.footer-bottom {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;

  text-align: center;
}

.footer-bottom a {
  color: #d6e2f0;
}
.footer-bottom a:hover {
  color: #f3c22c;
}

/* ===========================
      MOBILE OPTIMIZATION
=========================== */
@media (max-width: 768px) {
  .footer-col {
    max-width: 100%;
  }
  .social-icons {
    justify-content: flex-start;
  }
}

.eye-btn svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}








/* ================= SNOW EFFECT ================= */
#snow-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

