/* ============================================================
   Balance Group — Asosiy sahifa (home)
   ============================================================ */

/* ---- HERO ---- */
.hero { padding-top: clamp(110px, 14vw, 146px); }
.hero__card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 469px;
  background: var(--white);
  border-radius: clamp(28px, 4vw, 50px);
  overflow: hidden;
  padding-left: clamp(24px, 4.5vw, 56px);
}
.hero__content { position: relative; z-index: 2; width: 54%; max-width: 620px; padding: 40px 0; }
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  /* 3 qator (Figma): shrift content kengligiga moslashadi */
  font-size: clamp(20px, 3.15vw, 40px);
  line-height: 1.08;
  color: #000000;
  max-width: 100%;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
/* RU versiyada hero title bir oz kichikroq */
html[lang="ru"] .hero__title { font-size: clamp(18px, 2.7vw, 34px); }
.hero__text {
  margin-top: clamp(16px, 2.5vw, 28px);
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.5;
  /* Figma: 3 qator — 2-qator "…Siz natijani ko'rib" sig'ishi uchun */
  max-width: 560px;
  overflow-wrap: normal;
  word-break: normal;
}
.hero__btn { margin-top: 26px; text-transform: uppercase; }
.hero__media {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  display: flex; align-items: center; justify-content: flex-end;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---- XIZMATLAR ---- */
.services { padding: clamp(48px, 8vw, 80px) 0; }
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}
.services__lead {
  max-width: 331px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
}
.service {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(24px, 3.5vw, 36px) 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.services__list .service:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.service__main {
  width: min(540px, 46%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.service__title {
  display: flex; align-items: center; gap: 16px;
  font-weight: 700; font-size: clamp(20px, 3vw, 30px); color: var(--white);
  text-transform: uppercase;
}
.service__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); flex-shrink: 0; }
.service__btn.btn--ghost { border: 1px solid rgba(255,255,255,.25); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.service__btn.btn--ghost:hover {
  background:
    radial-gradient(120% 150% at 50% -20%, rgba(255,255,255,.45), rgba(255,255,255,0) 55%),
    var(--orange);
  border-color: transparent;
  box-shadow: 0 12px 38px rgba(248,54,0,.5);
}
.service__aside { flex: 1 1 0; min-width: 0; margin-left: auto; display: flex; flex-direction: column; gap: 22px; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service__desc { color: var(--muted); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.5; }

/* ---- PORTFOLIO ---- */
.portfolio { padding: 30px 0 70px; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-items: start;
}
.portfolio__grid .case { width: 100%; max-width: none; }
.portfolio__more { display: flex; justify-content: center; margin-top: 34px; }

/* ---- STATISTIKA ---- */
.stats { padding: 10px 0 70px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* ---- SHARHLAR ---- */
.reviews { padding: 70px 0; }
.reviews .slider { position: relative; }
/* Desktop: tugmalar title yonida (o‘ng yuqori) */
.reviews .slider__nav {
  position: absolute;
  top: -90px;
  right: 0;
  margin-top: 0;
  z-index: 2;
}

/* ---- FAQ ---- */
.faq { padding: 30px 0 70px; }
.faq__list { display: flex; flex-direction: column; gap: 16px; }
.faq__item { background: var(--white); color: #000; border-radius: 20px; overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(20px, 3.2vw, 38px) clamp(20px, 2.8vw, 32px);
  font-weight: 500; font-size: clamp(16px, 2.2vw, 24px); color: #000; text-align: left;
}
.faq__ic {
  width: clamp(26px, 3.4vw, 35px); height: clamp(26px, 3.4vw, 35px); flex-shrink: 0;
  background: url(../images/icon-faq-plus.svg) center/contain no-repeat;
  transition: transform .3s ease;
}
.faq__item--open .faq__ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { padding: 0 clamp(20px, 2.8vw, 32px) clamp(24px, 3.2vw, 36px); color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.5; }
.faq__item--open .faq__a { max-height: 480px; }

/* ---- bo'lim o'ramlari (umumiy spacing style.css da) ---- */

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .hero__card {
    --hpad: clamp(20px, 4vw, 36px);
    flex-direction: column;
    padding: var(--hpad) var(--hpad) 0;   /* pastki padding yo'q — rasm tubiga yopishadi */
    text-align: center;
    align-items: center;
    min-height: 0;
    overflow: hidden;
  }
  .hero__content { width: 100%; max-width: none; padding: 8px 0; }
  .hero__title, .hero__text { max-width: 100%; }
  .hero__title { font-size: clamp(20px, 5.2vw, 34px); }
  .hero__text { margin-left: auto; margin-right: auto; }
  /* mobilda faqat paragraph <br> olib tashlanadi — title eski holida */
  .hero__text br {
    display: none;
  }
  /* rasm karta chetlariga to'liq yopishadi (full-bleed) */
  .hero__media {
    position: static;
    width: calc(100% + 2 * var(--hpad));
    margin: clamp(16px, 3vw, 28px) calc(-1 * var(--hpad)) 0;
    height: auto;
    justify-content: center;
  }
  .hero__media img { width: 100%; height: auto; object-fit: cover; object-position: center bottom; display: block; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .service { flex-direction: column; gap: 20px; }
  .service__main, .service__aside { width: 100%; margin-left: 0; }
}

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .services { padding: 48px 0; }
  .portfolio, .stats, .reviews, .faq { padding-top: 24px; padding-bottom: 48px; }

  /* Sharhlar: tugmalar title ustiga chiqmasin — kartalar ostida */
  .reviews .section-head {
    margin-bottom: 20px;
    padding-right: 0;
  }
  .reviews .section-title br {
    display: none;
  }
  .reviews .slider__nav {
    position: static;
    top: auto;
    right: auto;
    margin-top: 18px;
    justify-content: flex-end;
    gap: 8px;
  }
  .reviews .slider__btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .reviews .slider__btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .reviews .slider__nav {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; justify-items: center; }
  .portfolio__grid .case { width: min(390px, 100%); }
}
