  :root {
    --bg: #050505;
    --card-bg: #0D0D0E;
    --border: #1F1F24;
    --gold: #D4AF37;
    --accent: #B02025;
    --text: #FFFFFF;
    --text-dim: #9999A1;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: #000000 !important;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.03em;
    overflow-x: hidden;
  }

  /* --- FAST MANSORY INTRO --- */
  #intro {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000000; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .intro-content { text-align: center; }
  .intro-title {
    font-family: 'Cinzel', serif; font-size: 28px; font-weight: 400;
    letter-spacing: 0.35em; color: #FFF; text-transform: uppercase;
    animation: introText 1.1s ease forwards; opacity: 0;
  }
  .intro-line {
    width: 0; height: 1px; background: var(--gold); margin: 18px auto 0;
    animation: introLine 0.8s ease 0.3s forwards;
    box-shadow: 0 0 10px var(--gold);
  }

  @keyframes introText {
    0% { opacity: 0; transform: translateY(12px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes introLine {
    0% { width: 0; }
    100% { width: 140px; }
  }
  .intro-hide { opacity: 0; visibility: hidden; pointer-events: none; }

  /* --- MAIN STYLES --- */
  h1, h2, h3, .brand-font { font-family: 'Cinzel', serif; letter-spacing: 0.12em; font-weight: 400; }
  a { color: inherit; text-decoration: none; }

  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 48px; background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--border);
  }
  .logo { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #FFF; cursor: pointer; }
  .logo-img { width: 34px; height: 34px; object-fit: contain; transition: transform 0.6s ease; }
  .logo:hover .logo-img { transform: rotate(360deg) scale(1.1); filter: drop-shadow(0 0 8px var(--gold)); }
  
  nav { display: flex; align-items: center; gap: 36px; }
  nav a { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); transition: color .3s; }
  nav a:hover { color: var(--gold); }
  
  .btn-gold {
    border: 1px solid var(--gold); color: var(--gold); padding: 12px 28px;
    font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em;
    background: transparent; cursor: pointer; transition: all 0.4s ease; display: inline-block;
  }
  .btn-gold:hover { background: var(--gold); color: #000; box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); transform: translateY(-3px); }

  .btn-outline {
    border: 1px solid var(--border); color: var(--text); padding: 12px 28px;
    font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em;
    background: transparent; cursor: pointer; transition: all 0.4s ease; display: inline-block;
  }
  .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

  /* --- HERO & VIDEO STYLES --- */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }

  .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
  }

  .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.85) 90%);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }

  .hero-subtitle { font-size: 11px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.4em; margin-bottom: 20px; }
  .hero-title { font-size: clamp(32px, 6vw, 72px); font-weight: 400; line-height: 1.15; margin-bottom: 24px; text-transform: uppercase; }
  .hero-desc { max-width: 600px; margin: 0 auto 40px; font-size: 14px; color: var(--text-dim); line-height: 1.8; font-weight: 300; }
  .hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  section { padding: 120px 48px; border-bottom: 1px solid var(--border); max-width: 1400px; margin: 0 auto; }
  .section-tag { font-size: 10px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 0.35em; margin-bottom: 12px; }
  .section-title { font-size: clamp(24px, 3.5vw, 42px); font-weight: 400; text-transform: uppercase; margin-bottom: 60px; }

  /* Grid Cards */
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .project-card {
    background: var(--card-bg); border: 1px solid var(--border); overflow: hidden;
    transition: all .4s ease; position: relative;
  }
  .project-card:hover { transform: translateY(-8px); border-color: rgba(212, 175, 55, 0.4); }
  .project-img-holder { width: 100%; height: 240px; background: #141417; overflow: hidden; position: relative; }
  .project-img-holder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .project-card:hover .project-img-holder img { transform: scale(1.08); }
  .project-body { padding: 28px; }
  .project-tag { font-size: 9px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 8px; display: block; }
  .project-title { font-size: 16px; margin-bottom: 12px; text-transform: uppercase; font-weight: 400; }
  .project-desc { color: var(--text-dim); font-size: 12px; line-height: 1.7; }

  .product-card {
    background: var(--card-bg); border: 1px solid var(--border); padding: 24px;
    display: flex; flex-direction: column; justify-content: space-between; transition: all .4s ease;
  }
  .product-card:hover { transform: translateY(-6px); border-color: var(--gold); }
  .product-img-holder { width: 100%; height: 200px; background: #141417; margin-bottom: 20px; overflow: hidden; }
  .product-img-holder img { width: 100%; height: 100%; object-fit: cover; }
  .product-title { font-size: 15px; font-weight: 400; text-transform: uppercase; margin-bottom: 8px; }
  .product-price { font-size: 14px; color: var(--gold); font-weight: 500; margin-bottom: 16px; }

  .discover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .discover-card {
    background: var(--card-bg); border: 1px solid var(--border); padding: 40px;
    position: relative; overflow: hidden; transition: all .4s ease;
  }
  .discover-card:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.4); background: #111114; }
  .card-num { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); margin-bottom: 20px; display: block; }
  .discover-card h3 { font-size: 18px; font-weight: 400; margin-bottom: 16px; text-transform: uppercase; }
  .discover-card p { color: var(--text-dim); font-size: 13px; line-height: 1.8; font-weight: 300; }

  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .service-box {
    background: var(--card-bg); border: 1px solid var(--border); padding: 36px 28px;
    border-left: 2px solid var(--gold); transition: all 0.4s ease;
  }
  .service-box:hover { border-left-color: var(--accent); transform: translateX(8px); background: #121215; }
  .service-box h3 { font-size: 16px; font-weight: 400; margin-bottom: 12px; text-transform: uppercase; }
  .service-box p { color: var(--text-dim); font-size: 13px; line-height: 1.7; font-weight: 300; }

  footer { padding: 60px 48px; text-align: center; border-top: 1px solid var(--border); }
  .footer-logo { font-size: 18px; font-weight: 400; color: #FFF; margin-bottom: 12px; }
  .copyright { color: var(--text-dim); font-size: 11px; font-weight: 300; letter-spacing: 0.15em; }

  @media (max-width: 868px) {
    header { padding: 18px 24px; }
    nav { display: none; }
    section { padding: 80px 24px; }
  }

  /* ALOQA BO'LIMI STILLARI */
.contacts-section {
  padding: 80px 0;
  background: #000000;
}

.contacts-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.social-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #121212;
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 18px 25px;
  border-radius: 0%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-box:hover {
  border-color: #c5a059;
  background: rgba(197, 160, 89, 0.08);
  transform: translateX(8px);
}

.box-icon {
  font-size: 24px;
}

.box-content {
  display: flex;
  flex-direction: column;
}

.box-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.box-link {
  color: #c5a059;
  font-size: 13px;
  margin-top: 3px;
}

.map-box {
  flex: 1;
  min-height: 320px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 0px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%) invert(90%); /* Xaritani qora fonga moslashtirish */
}

/* Mobil moslashuvi */
@media (max-width: 768px) {
  .contacts-wrapper {
    flex-direction: column;
  }
  
  .map-box {
    height: 280px;
  }
}
#contact, 
#contacts, 
.contacts-section, 
.combined-section,
.project-card-box,
.social-grid {
  border-top: none !important;
  border-bottom: none !important;
}

/* Agar chiziq pseudo-element (::before yoki ::after) orqali tushgan bo'lsa */
#contact::before, 
#contact::after,
#contacts::before, 
#contacts::after,
.contacts-section::before, 
.contacts-section::after {
  display: none !important;
  content: none !important;
}
/* XIZMATLAR BO'LIMI STILLARI */
#services {
  padding: 80px 0;
  background-color: #000000 !important;
  border: none !important;
}

#services .overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

#services .overview-card {
  background: #0a0a0a;
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 40px 30px;
  border-radius: 0 !important; /* Qirrali o'tkir burchaklar */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

#services .overview-card:hover {
  border-color: #c5a059;
  background: rgba(197, 160, 89, 0.05);
  transform: translateY(-5px);
}

@media (max-width: 992px) {
  #services .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ALL BO'LIMLAR UCHUN UMUMIY VA ANIQLANGAN STILLAR */
.ac-section {
  padding: 80px 0;
  background-color: #000000 !important;
  border: none !important;
}

.ac-header {
  margin-bottom: 40px;
}

.ac-tag {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: #c5a059;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ac-title {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* YONMA-YON GRID GRID SYSTEM */
.ac-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  width: 100%;
}

/* KARTOCHKA DIZAYNI */
.ac-card {
  background: #0a0a0a !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  padding: 35px 25px !important;
  border-radius: 0px !important; /* Qirrali to'rtburchak */
  transition: all 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
}

.ac-card:hover {
  border-color: #c5a059 !important;
  background: rgba(197, 160, 89, 0.05) !important;
  transform: translateY(-5px);
}

.ac-card-num {
  font-family: 'Montserrat', sans-serif;
  color: #c5a059;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.ac-card-title {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
  line-height: 1.4;
}

.ac-card-text {
  font-family: 'Montserrat', sans-serif;
  color: #a0a0a0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* MOBIL QURILMALAR UCHUN (TELEFONDA BITTADAN TUSHADI) */
@media (max-width: 992px) {
  .ac-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
.portfolio-img-wrapper {
  width: 100%;
  height: 280px; /* При необходимости можно немного увеличить высоту блока */
  overflow: hidden;
  background-color: #0a0a0a;
}

/* ===== TUZATISHLAR (statik versiya) ===== */
.portfolio-card-link { display: block; text-decoration: none; color: inherit; }
.ac-section .container,
.contacts-section { padding-left: 48px; padding-right: 48px; max-width: 1400px; margin: 0 auto; }
.contacts-section h2 { font-size: clamp(24px, 3.5vw, 42px); font-weight: 400; text-transform: uppercase; }
.social-grid { max-width: 640px; }
.box-icon { width: 26px; height: 26px; color: #c5a059; flex-shrink: 0; }
.box-icon svg { width: 100%; height: 100%; display: block; }
.product-img-holder.is-empty { display: flex; align-items: center; justify-content: center; }
.product-img-holder.is-empty::after {
  content: 'Фото скоро'; color: var(--text-dim); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.product-img-holder.is-empty img { display: none; }
@media (max-width: 868px) {
  .ac-section .container,
  .contacts-section { padding-left: 24px; padding-right: 24px; }

}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  header .logo .brand-font { font-size: 13px; }
}

/* ===== BURGER MENYU VA O'NG PANEL ===== */
.burger {
  width: 46px; height: 46px; padding: 0 11px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: transparent; border: 1px solid var(--gold); cursor: pointer;
  transition: background .3s ease, box-shadow .3s ease;
}
.burger span {
  display: block; height: 1px; width: 100%; background: var(--gold);
  transition: transform .35s ease, opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.burger:hover { background: rgba(212, 175, 55, 0.08); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
.burger:hover span:nth-child(2) { width: 100%; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.side-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.side-overlay.open { opacity: 1; visibility: visible; }

.side-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1600;
  width: 380px; max-width: 86vw;
  background: #070708; border-left: 1px solid rgba(212, 175, 55, 0.25);
  display: flex; flex-direction: column;
  padding: 28px 36px 36px;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.77, 0, .175, 1);
  overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.side-menu-brand { font-size: 14px; color: #fff; }
.side-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 34px; font-weight: 200; line-height: 1; cursor: pointer;
  transition: color .3s ease, transform .3s ease;
}
.side-close:hover { color: var(--gold); transform: rotate(90deg); }

.side-nav { display: flex !important; flex-direction: column; align-items: stretch; gap: 0; margin-top: 36px; }
.side-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-family: 'Cinzel', serif; font-size: 20px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateX(30px);
  transition: color .3s ease, padding-left .3s ease, opacity .5s ease, transform .5s ease;
}
.side-nav a:hover { color: var(--gold); padding-left: 8px; }
.side-num { font-family: 'Montserrat', sans-serif; font-size: 10px; color: var(--gold); letter-spacing: 0.2em; }
.side-menu.open .side-nav a { opacity: 1; transform: translateX(0); }
.side-menu.open .side-nav a:nth-child(1) { transition-delay: .15s, .15s, .15s, .15s; }
.side-menu.open .side-nav a:nth-child(2) { transition-delay: .22s, .22s, .22s, .22s; }
.side-menu.open .side-nav a:nth-child(3) { transition-delay: .29s, .29s, .29s, .29s; }
.side-menu.open .side-nav a:nth-child(4) { transition-delay: .36s, .36s, .36s, .36s; }
.side-menu.open .side-nav a:hover { transition-delay: 0s; }

.side-menu-foot { margin-top: auto; padding-top: 40px; }
.side-cta { display: block; width: 100%; text-align: center; }
.side-social { display: flex; gap: 24px; margin-top: 24px; justify-content: center; }
.side-social a {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim);
  transition: color .3s ease;
}
.side-social a:hover { color: var(--gold); }

@media (max-width: 480px) {
  .side-menu { padding: 22px 24px 28px; }
  .side-nav a { font-size: 17px; padding: 16px 0; }
}
