/* ==========================================================================
   Business Formula Consulting Group — biznesformula.uz
   Дизайн тамойили: вазмин, салмоқли, далилга таянган. Реклама лендинги эмас.
   Бўлимлар уч хил фонда навбатлашади: очиқ (--bg), оқ (--surface), тўқ (--night).
   ========================================================================== */

/* --- Токенлар ------------------------------------------------------------ */

:root {
  /* Бренд (01-brend-va-yozuv-standarti.md дан) */
  --teal:        #0F7B5F;
  --bg:          #F2F7F5;
  --ink:         #1A1A1A;

  /* Ҳосилалар (бренд яшилининг тўқ ва очиқ оҳанглари) */
  --teal-deep:   #0A4634;
  --night:       #06251D;
  --night-2:     #0B3328;
  --teal-wash:   #E4EFEA;
  --teal-soft:   #8FB6A9;
  --ink-muted:   #4F5E59;
  --ink-faint:   #7E8C87;
  --surface:     #FFFFFF;
  --rule:        #D5E3DD;
  --rule-strong: #A9C2B9;
  --on-dark:     #E8F2EE;
  --on-dark-2:   #A8C8BC;
  --line-dark:   rgba(255,255,255,0.14);

  /* Тип */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;

  --fs-micro: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body:  1.0625rem;
  --fs-lead:  clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-h3:    1.3125rem;
  --fs-h2:    clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h1:    clamp(2.375rem, 5.6vw, 4.25rem);
  --fs-mega:  clamp(4.5rem, 14vw, 9rem);

  /* Ўлчам */
  --page:     1200px;
  --measure:  66ch;
  --gut:      clamp(1.25rem, 4vw, 3rem);
  --band:     clamp(4rem, 9vw, 7.5rem);
  --shadow:   0 1px 2px rgba(6,37,29,.04), 0 8px 24px -12px rgba(6,37,29,.14);
}

/* --- Асос ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); max-width: 24ch; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.75rem 1.25rem;
}
.skip:focus { left: 0; }

.shell { max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }

/* --- Бўлим тузилмаси ------------------------------------------------------ */

.band { padding-block: var(--band); }
.band--white { background: var(--surface); }
.band--dark { background: var(--night); color: var(--on-dark); }
.band--dark h2, .band--dark h3 { color: #fff; }

.band__inner { max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
.band__body > * + * { margin-top: 1.5rem; }

/* Бўлим номи — сарлавҳа устидаги кичик белги */
.band__label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1.25rem;
}
.band__label::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.band--dark .band__label { color: var(--teal-soft); }

.lead { font-size: var(--fs-lead); color: var(--ink-muted); max-width: 58ch; line-height: 1.55; }
.band--dark .lead, .band--dark p { color: var(--on-dark-2); }

/* Бўлим боши: сарлавҳа чапда, изоҳ ўнгда (кенг экранда) */
.head-split { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) {
  .head-split { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; }
  .head-split .lead { margin: 0; }
}

/* --- Шапка --------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  max-width: var(--page); margin-inline: auto; padding: 0.75rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.125rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark__mark { width: 2.125rem; height: 2.125rem; flex: none; }

.nav { display: flex; gap: 2rem; }
.nav a {
  color: var(--ink-muted); text-decoration: none; font-size: var(--fs-small); font-weight: 500;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }

.masthead__cta { padding: 0.65rem 1.25rem; }

.menu-btn {
  display: none; align-items: center; gap: 0.5rem;
  font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--ink);
  background: none; border: 1px solid var(--rule-strong); padding: 0.5rem 0.85rem; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 63.99rem) {
  .masthead .masthead__cta { display: none; }
}
@media (max-width: 55.99rem) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); }
  .nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--rule); }
  .nav__cta { margin-top: 1rem; }
}
@media (min-width: 56rem) { .nav .nav__cta { display: none; } }

/* --- Тугмалар ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  padding: 0.9rem 1.6rem; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-deep); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--line:hover { border-color: var(--teal); color: var(--teal); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.nav .btn { color: #fff; border-bottom: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: var(--fs-small); text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* --- Hero (тўқ) ---------------------------------------------------------- */

.hero { background: var(--night); color: var(--on-dark); overflow: hidden; position: relative; }
.hero::before {
  /* Логотипдаги қия чизиқлардан олинган нозик фон нақши */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-33deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.hero__inner {
  position: relative;
  max-width: var(--page); margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) var(--gut) clamp(3.5rem, 8vw, 6rem);
}

.hero__title { color: #fff; font-size: clamp(2.375rem, 4.8vw, 3.875rem); }
.hero__title .ln { display: inline; }
@media (min-width: 46rem) { .hero__title { max-width: none; } .hero__title .ln { display: block; white-space: nowrap; } }

.hero__lead {
  font-size: var(--fs-lead); color: var(--on-dark-2);
  max-width: 50ch; margin-top: 1.75rem; line-height: 1.55;
}

.facts {
  display: grid; gap: 0; margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark); max-width: 40rem;
}
.fact { padding-block: 0.85rem; }
.fact + .fact { border-top: 1px solid var(--line-dark); }
@media (min-width: 34rem) {
  .facts { grid-template-columns: auto auto 1fr; padding-top: 1.75rem; }
  .fact { padding-block: 0; padding-right: clamp(1.25rem, 3vw, 2.25rem); }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line-dark); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
}
.fact__n {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600; color: #fff; line-height: 1; display: block; letter-spacing: -0.02em;
}
.fact__t { font-size: var(--fs-small); color: var(--on-dark-2); margin-top: 0.5rem; display: block; line-height: 1.4; }

.hero .btn-row { margin-top: 2.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(0.6rem); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .rise:nth-child(1) { animation-delay: .05s; }
  .rise:nth-child(2) { animation-delay: .13s; }
  .rise:nth-child(3) { animation-delay: .21s; }
  .hero__lead { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.3,1) .32s forwards; }
  .hero .facts { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.3,1) .42s forwards; }
  .hero .btn-row { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.3,1) .5s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- Мижозлар логотиплари (ҳаракатланувчи тасма) -------------------------- */

.clients { padding-block: clamp(2rem, 4vw, 3rem); background: var(--surface); border-bottom: 1px solid var(--rule); }
.clients__title {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center; margin: 0 auto 1.5rem; max-width: none;
}
.clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track { display: flex; width: max-content; }
.clients__viewport.is-js { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.clients__viewport.is-dragging { cursor: grabbing; }
.clients__viewport.is-js .clients__track { animation: none; will-change: transform; }
.clients__viewport.is-js img { -webkit-user-drag: none; pointer-events: none; }
.clients__viewport.is-js .client { pointer-events: auto; }
.clients__viewport.is-js .clients__track { width: max-content; }
.clients__viewport.is-js .clients__grid { flex-wrap: nowrap; }
.clients__viewport.is-js .clients__grid[aria-hidden="true"] { display: flex; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.client { flex: none; display: grid; place-items: center; height: 5.5rem; padding-inline: clamp(0.5rem, 1.5vw, 0.9rem); }
.client img {
  box-sizing: content-box; max-height: 2.75rem; max-width: 9rem; width: auto; height: auto; object-fit: contain;
  padding: 0.7rem 1.1rem; background: var(--surface); border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.client:hover img {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--rule); box-shadow: 0 10px 24px -12px rgba(6,37,29,.35);
}

@media (prefers-reduced-motion: no-preference) {
  .clients__track { animation: marquee 60s linear infinite; }
  .clients__viewport:hover .clients__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__track { width: auto; }
  .clients__grid { flex-wrap: wrap; justify-content: center; }
  .clients__grid[aria-hidden="true"] { display: none; }
}

/* Кейслар саҳифасида — тўр кўриниш */
.clients--grid .clients__viewport { -webkit-mask-image: none; mask-image: none; }
.clients--grid .clients__track { animation: none; width: auto; display: block; }
.clients--grid .clients__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.clients--grid .clients__grid[aria-hidden="true"] { display: none; }
.clients--grid .client { background: var(--surface); height: 5.5rem; padding: 0.75rem 1rem; }
.clients--grid .clients__title { text-align: left; margin-left: 0; }

/* --- Очувчи савол -------------------------------------------------------- */

.question h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 18ch; }
.question__text { display: grid; gap: 1.25rem; }
.question__text p { margin: 0; }

/* --- 4 омил --------------------------------------------------------------- */

.factors-wrap { position: relative; margin-top: 3rem; }
.factors { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .factors { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.factor {
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column;
}
.factor__num { font-family: var(--serif); font-weight: 600; font-size: 0.9375rem; color: var(--teal); }
.factor h3 { color: var(--ink); font-size: clamp(1.375rem, 2.4vw, 1.625rem); margin-top: 0.25rem; }
.factor__signs { font-size: var(--fs-small); color: var(--ink-muted); margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.factor__signs li { padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.factor__signs li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border: 1.5px solid var(--teal); transform: rotate(45deg);
}
.factor__loss { font-size: var(--fs-small); color: var(--ink); margin-bottom: 1.25rem; }
.factor__worst {
  margin-top: auto; font-size: var(--fs-small); font-weight: 600; color: var(--teal-deep);
  background: var(--teal-wash); padding: 0.85rem 1rem; border-left: 3px solid var(--teal); max-width: none;
}

/* Марказий «Натижа» тугуни — тақдимотдаги модел */
.factors-hub {
  display: grid; place-items: center; text-align: center;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: var(--teal); color: #fff; box-shadow: 0 0 0 10px var(--bg), var(--shadow);
  font-family: var(--serif); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 auto 1.25rem;
}
@media (min-width: 48rem) {
  .factors-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
  .factor:nth-child(odd) { padding-right: clamp(3.5rem, 7vw, 5.5rem); }
  .factor:nth-child(even) { padding-left: clamp(3.5rem, 7vw, 5.5rem); }
}

.verdict {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  color: var(--teal-deep); margin-top: 3rem; max-width: 30ch; line-height: 1.3;
}

/* --- Ёндашув (ягона рақамланган кетма-кетлик) ----------------------------- */

.steps { counter-reset: step; margin-top: 3rem; display: grid; gap: 2rem; position: relative; }
@media (min-width: 58rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 1.75rem; height: 1px; background: var(--rule-strong);
  }
}
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--teal); color: var(--teal);
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.step:last-child::before { background: var(--teal); color: #fff; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-small); color: var(--ink-muted); max-width: 34ch; }

.approach__close {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  color: var(--teal-deep); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
}

/* --- Иш қандай бошланади --------------------------------------------------- */

.flow { margin-top: 2.5rem; }
.flow__tag {
  display: inline-block; font-size: var(--fs-micro); font-weight: 600; color: var(--teal-deep);
  background: var(--teal-wash); padding: 0.3rem 0.65rem; margin-bottom: 0.6rem; max-width: none;
}

/* --- Муддат ва натижа жадвали -------------------------------------------- */

.overview-wrap { margin-top: 2rem; overflow-x: auto; }
.overview { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--surface); border: 1px solid var(--rule); }
.overview th, .overview td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); }
.overview thead th {
  border-top: 0; background: var(--night); color: #fff;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.overview tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; }
.overview tbody th span { display: block; font-family: var(--sans); font-size: var(--fs-micro); font-weight: 500; color: var(--teal); }
.overview td:nth-child(2) { white-space: nowrap; color: var(--teal-deep); font-weight: 600; }
.overview td { color: var(--ink-muted); }
@media (max-width: 40rem) {
  .overview thead { display: none; }
  .overview, .overview tbody, .overview tr, .overview th, .overview td { display: block; width: auto; white-space: normal; }
  .overview tr { border-top: 1px solid var(--rule); padding: 0.5rem 0; }
  .overview tr:first-child { border-top: 0; }
  .overview th, .overview td { border-top: 0; padding: 0.35rem 1.1rem; }
}

/* --- Кейс (бош акцент) ---------------------------------------------------- */

.case { background: var(--night); color: var(--on-dark); padding-block: var(--band); position: relative; overflow: hidden; }
.case__inner { max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); position: relative; }

.case__top { display: grid; gap: 2rem; }
@media (min-width: 58rem) { .case__top { grid-template-columns: auto 1fr; gap: 4rem; align-items: end; } }

.case__kicker {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-soft); margin-bottom: 1.5rem; max-width: none;
}
.case__figure {
  font-family: var(--serif); font-size: var(--fs-mega); font-weight: 600;
  line-height: 0.85; letter-spacing: -0.04em; color: #fff; margin: 0;
}
.case__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 20ch; }
.case__figureCap { color: var(--on-dark-2); margin-top: 0.75rem; font-size: var(--fs-body); line-height: 1.45; }

.case__split { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2.5rem; }
@media (min-width: 58rem) { .case__split { grid-template-columns: 20rem 1fr; gap: 4rem; } }

.case__before { background: var(--night-2); border: 1px solid var(--line-dark); padding: 1.75rem; align-self: start; }
.case__before h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.65rem; }
.case__before p { color: var(--on-dark-2); font-size: var(--fs-small); }

.stages { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stages li {
  display: grid; gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line-dark);
}
@media (min-width: 40rem) { .stages li { grid-template-columns: 15rem 1fr; } }
.stages li:last-child { border-bottom: 1px solid var(--line-dark); }
.stages b { color: #fff; font-weight: 600; font-size: var(--fs-small); }
.stages b::before { content: "✓"; color: var(--teal-soft); margin-right: 0.6rem; }
.stages span { color: var(--on-dark-2); font-size: var(--fs-small); }

.case__note { color: var(--teal-soft); font-size: var(--fs-micro); margin-top: 2rem; max-width: 56ch; }
.case__more { margin-top: 1rem; }
.case + .case { border-top: 1px solid var(--line-dark); }
.case a { color: #fff; }

/* --- Асосчилар ----------------------------------------------------------- */

.people { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 46rem) { .people { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.person {
  display: grid; gap: 1.5rem; background: var(--surface); border: 1px solid var(--rule);
  box-shadow: var(--shadow); padding: 1.25rem;
}
@media (min-width: 30rem) { .person { grid-template-columns: 11rem 1fr; align-items: start; } }
@media (min-width: 46rem) and (max-width: 71.99rem) { .person { grid-template-columns: 1fr; } }

.person__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--night);
}
@media (min-width: 46rem) and (max-width: 71.99rem) { .person__photo { max-width: 15rem; } }
.person__initials {
  width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--teal-wash);
  color: var(--teal-deep); font-family: var(--serif); font-size: 3rem; font-weight: 600;
}
.person__body { padding-block: 0.25rem; }
.person h3 { margin-bottom: 0.2rem; font-size: 1.375rem; }
.person__role {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.person p { font-size: var(--fs-small); color: var(--ink-muted); max-width: 44ch; }

.people__close {
  font-family: var(--serif); font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--teal-deep); margin-top: 2.5rem;
}

/* --- Хизматлар (бош саҳифа — ихчам) --------------------------------------- */

.offers { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 58rem) { .offers { grid-template-columns: 1fr 1fr; } }

.offer {
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  border-top: 3px solid var(--teal); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
}
.offer__num { font-family: var(--serif); font-weight: 600; font-size: 0.9375rem; color: var(--teal); }
.offer h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-top: 0.25rem; }
.offer__desc { color: var(--ink-muted); margin-top: 0.75rem; }
.offer__tiers { list-style: none; margin: 1.5rem 0; padding: 0; }
.offer__tiers li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; border-top: 1px solid var(--rule); font-size: var(--fs-small);
}
.offer__tiers li:last-child { border-bottom: 1px solid var(--rule); }
.offer__tiers b { font-weight: 600; color: var(--ink); }
.offer__tiers span { color: var(--ink-faint); text-align: right; }
.offer .formula { margin-top: 0; }
.offer .more { margin-top: 1.5rem; }

.price-note {
  font-size: var(--fs-small); color: var(--ink-muted); margin-top: 2rem; max-width: 64ch;
  padding: 1rem 1.25rem; background: var(--teal-wash); border-left: 3px solid var(--teal);
}

/* --- Хизматлар (батафсил саҳифа) ----------------------------------------- */

.service { margin-top: 3rem; }
.service:first-of-type { margin-top: 2rem; }
.service__name { max-width: none; font-size: clamp(1.625rem, 3vw, 2.125rem); padding-top: 1.5rem; border-top: 3px solid var(--teal); }
.service__desc { color: var(--ink-muted); margin-top: 0.75rem; max-width: 56ch; font-size: var(--fs-lead); }

.tariffs { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 52rem) { .tariffs { grid-template-columns: 1fr 1fr; } }

.tariff { background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: clamp(1.4rem, 2.8vw, 2rem); }
.tariff__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.tariff__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; }
.tariff__meta { font-size: var(--fs-small); color: var(--teal); font-weight: 500; margin-top: 0.3rem; }
.tariff__note { font-size: var(--fs-small); color: var(--ink-muted); margin-top: 1rem; }

.tariff h4 {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); margin: 1.5rem 0 0.6rem;
}
.tariff ul { margin: 0; padding-left: 1.1rem; font-size: var(--fs-small); color: var(--ink-muted); }
.tariff li { margin-bottom: 0.35rem; }
.tariff li::marker { color: var(--teal); }

.formula {
  font-size: var(--fs-small); color: var(--teal-deep);
  border-left: 3px solid var(--teal); padding-left: 0.9rem; margin-top: 1.5rem; max-width: 60ch;
}

.dirs { width: 100%; border-collapse: collapse; margin-top: 1.75rem; font-size: var(--fs-small); background: var(--surface); border: 1px solid var(--rule); }
.dirs th, .dirs td { text-align: left; vertical-align: top; padding: 0.95rem 1.25rem; border-top: 1px solid var(--rule); }
.dirs tr:first-child th, .dirs tr:first-child td { border-top: 0; }
.dirs th { font-weight: 600; color: var(--teal-deep); width: 12rem; white-space: nowrap; }
.dirs td { color: var(--ink-muted); }
@media (max-width: 40rem) {
  .dirs, .dirs tbody, .dirs tr, .dirs th, .dirs td { display: block; width: auto; white-space: normal; }
  .dirs td { border-top: 0; padding-top: 0; }
}

/* --- Нега биз (тўқ) ------------------------------------------------------ */

.reasons { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 40rem) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reasons li { background: var(--night); padding: 1.75rem; font-size: var(--fs-small); color: var(--on-dark-2); }
.reasons b {
  color: #fff; font-family: var(--serif); font-weight: 600; display: block;
  font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.5rem;
}
.reasons b::before {
  content: ""; display: block; width: 2rem; height: 2px; background: var(--teal-soft); margin-bottom: 1rem;
}

/* --- Кафолат ------------------------------------------------------------- */

.warranty__box {
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  border-left: 4px solid var(--teal); padding: clamp(1.75rem, 4vw, 3rem);
}
.warranty h2 { max-width: 22ch; color: var(--teal-deep); }
.warranty p { color: var(--ink-muted); }
.warranty .lead { margin-top: 1.25rem; color: var(--ink); }
.warranty__terms {
  border-top: 1px solid var(--rule); margin-top: 1.75rem; padding-top: 1.25rem;
  font-size: var(--fs-small); color: var(--ink-muted);
}

/* --- Ариза --------------------------------------------------------------- */

.apply { background: var(--teal-wash); }
.apply__grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .apply__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }
.apply__direct { list-style: none; margin: 2rem 0 0; padding: 0; }
.apply__direct li { padding: 0.9rem 0; border-top: 1px solid var(--rule-strong); font-size: var(--fs-small); color: var(--ink-muted); }
.apply__direct li:last-child { border-bottom: 1px solid var(--rule-strong); }
.apply__direct a { display: block; font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.apply__direct a:hover { color: var(--teal); }

.form { background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: clamp(1.5rem, 3.5vw, 2.5rem); max-width: 40rem; }
.band__body > .form { margin-top: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--fs-small); font-weight: 500; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-body);
  padding: 0.75rem 0.9rem; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); border-radius: 0;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline-offset: 1px; }
.field--half { display: grid; gap: 0 1.1rem; }
@media (min-width: 34rem) { .field--half { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; }
@media (min-width: 34rem) { .form .btn { width: auto; } }

.form__note { font-size: var(--fs-micro); color: var(--ink-muted); margin-top: 1rem; }
.form__status { font-size: var(--fs-small); margin-top: 1rem; min-height: 1.5rem; }
.form__status[data-state="ok"] { color: var(--teal-deep); font-weight: 500; }
.form__status[data-state="err"] { color: #8C2F20; }

/* --- Футер --------------------------------------------------------------- */

/* Мижозлар фикри — вертикал видеолар */
/* Мобилда — суриладиган қатор, кейингиси чеккадан кўриниб туради */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 58%;
  gap: 1rem; margin-top: clamp(2rem, 4vw, 2.75rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
}
.review { scroll-snap-align: start; }
@media (min-width: 48rem) {
  .reviews {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
    overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  }
}
.review { margin: 0; }
.review__video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000;
  border-radius: 0.75rem; object-fit: cover;
}
.review__cap { margin-top: 0.9rem; }
.review__cap b { display: block; color: #fff; font-size: 1rem; letter-spacing: 0.01em; }
.review__cap span { display: block; font-size: var(--fs-small); color: var(--on-dark-2); margin-top: 0.2rem; }
.review__cap .review__field { font-size: 0.8125rem; opacity: 0.7; margin-top: 0.1rem; }
@media (min-width: 48rem) {
  .review__video { max-width: 14rem; margin-inline: auto; }
  .review__cap { text-align: center; }
}

.foot { background: var(--night); color: #B6D4C9; padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot__inner { max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .foot__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }

.foot__logo { height: 4.5rem; width: auto; margin-bottom: 1rem; }
.foot h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.75rem; }
.foot p, .foot li { font-size: var(--fs-small); color: #9CC0B4; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.5rem; }
/* Контакт белгилари — расм эмас, матн ранги билан бўяладиган SVG */
.foot__contacts li { display: flex; align-items: flex-start; gap: 0.6rem; }
.foot__contacts .ic { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin-top: 0.1em; fill: currentColor; opacity: 0.7; }
.foot__contacts a:hover .ic, .foot__contacts li:hover .ic { opacity: 1; }
/* Ижтимоий тармоқлар — ўз ранглари билан */
.foot__contacts .ic--tg { fill: #29A9EA; opacity: 1; }
.foot__contacts .ic--ig { fill: #E4405F; opacity: 1; }
.foot__contacts .ic--yt { fill: #FF0000; opacity: 1; }
.foot a { color: #DCEDE6; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__cap {
  max-width: var(--page); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-inline: var(--gut);
  border-top: 1px solid var(--line-dark); padding-top: 1.5rem;
  font-size: var(--fs-micro); color: #7FA698;
}

/* --- Ички саҳифа ---------------------------------------------------------- */

.page-head {
  background: var(--night); color: var(--on-dark); max-width: none;
  padding: clamp(3.5rem, 8vw, 6rem) max(var(--gut), calc((100% - var(--page)) / 2 + var(--gut))) clamp(3rem, 6vw, 4.5rem);
}
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead, .page-head p { color: var(--on-dark-2); }
.page-head .lead { margin-top: 1.5rem; }

.beliefs { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 58rem) { .beliefs { grid-template-columns: repeat(3, 1fr); } }
.belief { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--teal); box-shadow: var(--shadow); padding: 1.75rem; }
.belief h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.belief p { font-size: var(--fs-small); color: var(--ink-muted); }

.contacts { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.contacts li { display: grid; gap: 0.15rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); font-size: var(--fs-small); }
.contacts li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 34rem) { .contacts li { grid-template-columns: 9rem 1fr; } }
.contacts b { font-weight: 600; color: var(--ink); }
.contacts a { font-size: var(--fs-body); font-weight: 600; }

@media print {
  .masthead, .apply, .btn, .clients { display: none; }
  body, .hero, .band--dark, .case, .page-head { background: #fff; color: #000; }
}

/* --- Ёрдамчи ------------------------------------------------------------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
