/* ============================================================
   Balance Group — Xizmat sahifalari (SMM, Performance, Content,
   Kompleks, AI) + "Ishlashimiz ketma-ketligi" timeline (about'da ham)
   ============================================================ */

/* ---- HERO ---- */
.shero {
  position: relative;
  padding: clamp(150px, 20vw, 210px) 0 clamp(70px, 10vw, 120px);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(248,54,0,.10), transparent 60%),
    url("../images/hero-dark-bg.png") center top / cover no-repeat,
    var(--bg);
  text-align: center;
}
.shero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.shero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.shero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}
.shero__text {
  margin: clamp(16px, 2.5vw, 24px) auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.6;
  font-weight: 500;
}
.shero__btns {
  margin-top: clamp(26px, 4vw, 40px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--outline {
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  background: transparent;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn--outline: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);
}

/* ---- XIZMATGA NIMALAR KIRADI ---- */
.sincl { padding: clamp(40px, 7vw, 80px) 0; }
.sincl__wrap {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  align-items: flex-start;
}
.sincl__left {
  width: clamp(280px, 38%, 460px);
  flex-shrink: 0;
  position: sticky;
  top: 40px;
}
.sincl__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
}
.sincl__media { position: relative; margin-top: clamp(24px, 4vw, 48px); }
.sincl__media::before {
  content: "";
  position: absolute;
  inset: -12% -20%;
  background: url("../images/watermark-balance.png") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}
.sincl__media img { position: relative; width: 100%; max-width: 430px; }

.sincl__groups { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.sgroup { border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: clamp(24px, 3.4vw, 36px); }
.sgroup:last-child { border-bottom: 0; }
.sgroup__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2.6vw, 26px);
}
.sgroup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px clamp(20px, 3vw, 40px);
}
.sgroup__item { display: flex; gap: 14px; align-items: baseline; }
.sgroup__code { color: var(--muted); font-size: 13px; font-weight: 500; flex-shrink: 0; min-width: 28px; }
.sgroup__label { color: #dedede; font-size: clamp(14px, 1.6vw, 15px); line-height: 1.4; }

/* ---- ISHLASHIMIZ KETMA-KETLIGI (timeline) ---- */
.stimeline { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.stimeline__title {
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 48px);
  text-transform: uppercase;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.stimeline__subtitle {
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 500;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.stimeline__ruler {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border: none;
  padding-bottom: 14px;
  margin-bottom: 0;
}
/* Full-width chiziq — container emas, butun ekran bo‘ylab */
.stimeline__ruler::after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  right: auto;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.stimeline__ruler span { color: var(--muted); font-size: 12px; font-weight: 500; }
.stimeline__marker {
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(248, 54, 0, 0.9);
  transform: translateX(-50%);
  transition: left .5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left;
  z-index: 3;
  pointer-events: none;
}
/* Service pages still use ::after line on marker */
.stimeline__marker::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 2px;
  height: clamp(320px, 44vw, 540px);
  background: linear-gradient(
    180deg,
    var(--orange) 0%,
    rgba(248, 54, 0, 0.75) 45%,
    rgba(248, 54, 0, 0) 100%
  );
}
/* Active ruler step highlight — layout-stable (no weight jump) */
.stimeline__ruler > span:not(.stimeline__marker) {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: color .35s ease;
}
.stimeline__ruler span.is-active {
  color: #fff;
}

.stimeline__cards { display: flex; align-items: flex-start; position: relative; z-index: 2; }
.tcard {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 15px;
  padding: clamp(14px, 1.8vw, 20px);
  color: #000;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition:
    transform .4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow .4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tcard:hover,
.tcard:focus-visible {
  z-index: 20;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  outline: none;
}
.tcard + .tcard { margin-left: -2.5%; }
.tcard:nth-child(2) { transform: translate3d(0, 34px, 0); }
.tcard:nth-child(3) { transform: translate3d(0, 68px, 0); }
.tcard:nth-child(4) { transform: translate3d(0, 102px, 0); }
.tcard:nth-child(5) { transform: translate3d(0, 136px, 0); }
.tcard:nth-child(6) { transform: translate3d(0, 170px, 0); }
/* service pages: soft lift, cascade offset saqlanadi */
.tcard:nth-child(1):hover,
.tcard:nth-child(1):focus-visible { transform: translate3d(0, -4px, 0); }
.tcard:nth-child(2):hover,
.tcard:nth-child(2):focus-visible { transform: translate3d(0, 30px, 0); }
.tcard:nth-child(3):hover,
.tcard:nth-child(3):focus-visible { transform: translate3d(0, 64px, 0); }
.tcard:nth-child(4):hover,
.tcard:nth-child(4):focus-visible { transform: translate3d(0, 98px, 0); }
.tcard:nth-child(5):hover,
.tcard:nth-child(5):focus-visible { transform: translate3d(0, 132px, 0); }
.tcard:nth-child(6):hover,
.tcard:nth-child(6):focus-visible { transform: translate3d(0, 166px, 0); }
/* Figma palette: 1 #FFFFFF · 2 #D9F784 · 3 #212121 · 4 #A59DF5 · 5 #FFFFFF · 6 #FF6E45 — solid only */
.tcard--lime   { background-color: #D9F784; background-image: none; }
.tcard--gray   { background-color: #212121; background-image: none; color: #fff; }
.tcard--violet { background-color: #A59DF5; background-image: none; }
.tcard--orange { background-color: #FF6E45; background-image: none; color: #fff; }
.tcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tcard__title {
  font-weight: 700;
  font-size: clamp(13px, 1.35vw, 15px);
  text-transform: uppercase;
  line-height: 1.15;
}
.tcard__days {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: .75;
}
.tcard__desc { font-size: clamp(11px, 1.15vw, 12.5px); line-height: 1.45; opacity: .82; font-weight: 500; }
/* pastdagi kartalar tushib ketmasligi uchun joy */
.stimeline__cards { padding-bottom: 190px; }

/* markazlashtirilgan brendlar sarlavhasi (xizmat sahifalarida) */
.section-head--center { text-align: center; }

/* timeline ostidagi izoh (about) */
.stimeline__note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 500;
}

/* ============================================================
   PRO TIMELINE — Figma diagonal cascade (about + service pages)
   ============================================================ */
.stimeline--pro {
  position: relative;
  overflow: hidden;
}
/* Orqa gorizontal chiziqlar — Figma #FFFFFF / 50
   Birinchi chiziq yo‘q (ruler chizig‘i bilan dubl bo‘lmasin) */
.stimeline--pro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(150px, 20vw, 210px);
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 127px,
    rgba(255, 255, 255, 0.5) 127px,
    rgba(255, 255, 255, 0.5) 128px
  );
  pointer-events: none;
  z-index: 0;
}
.stimeline--pro .container {
  position: relative;
  z-index: 1;
}
.stimeline--pro .stimeline__ruler {
  border: none;
  position: relative;
  z-index: 4; /* numbers + orange DOT above line, cards below in stack for vline */
}
/* Dot only on about — vertical line is separate .stimeline__vline under cards */
.stimeline--pro .stimeline__marker::after {
  display: none;
}
.stimeline--pro .stimeline__marker {
  z-index: 5;
  bottom: -5px;
}
/*
  Vertical orange line — BEHIND cards (z-index < cards).
  Positioned from container; left/height set by JS to match marker + card.
*/
.stimeline--pro .stimeline__vline {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: var(--vline-h, 220px);
  margin-left: -1px; /* center on x */
  background: linear-gradient(
    180deg,
    var(--orange) 0%,
    rgba(248, 54, 0, 0.8) 40%,
    rgba(248, 54, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1; /* under cards (z-index 2+) */
  transition:
    left .5s cubic-bezier(0.22, 1, 0.36, 1),
    height .5s cubic-bezier(0.22, 1, 0.36, 1),
    top .5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, height, top;
  border-radius: 1px;
}
.stimeline--pro .stimeline__cards {
  position: relative;
  height: 560px;
  margin-top: 28px;
  padding-bottom: 0;
  overflow: visible;
  z-index: 2; /* above vertical line */
  isolation: isolate;
}
.stimeline--pro .stimeline__cards::before {
  display: none;
}
/*
  Professional cascade stack:
  - Solid cards always (no opacity ghosting)
  - Active card floats above stack for reading
  - Orange marker/line follows active card (JS)
*/
.stimeline--pro .tcard {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(420px, 36vw);
  height: 185px;
  border-radius: 20px;
  padding: 22px 24px;
  margin-left: 0;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    opacity .55s cubic-bezier(0.22, 1, 0.36, 1),
    transform .45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .45s cubic-bezier(0.22, 1, 0.36, 1),
    height .4s cubic-bezier(0.22, 1, 0.36, 1),
    filter .4s ease;
}
.stimeline--pro .tcard,
.stimeline--pro .tcard.tcard--lime,
.stimeline--pro .tcard.tcard--gray,
.stimeline--pro .tcard.tcard--violet,
.stimeline--pro .tcard.tcard--orange {
  background-clip: padding-box;
}
.stimeline--pro .tcard:not(.tcard--lime):not(.tcard--gray):not(.tcard--violet):not(.tcard--orange) {
  background-color: #ffffff;
}
.stimeline--pro .tcard--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.stimeline--pro .tcard--ready {
  opacity: 1 !important;
  transition:
    transform .45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .45s cubic-bezier(0.22, 1, 0.36, 1),
    height .4s cubic-bezier(0.22, 1, 0.36, 1),
    filter .4s ease;
}
/* Reset service-page flex cascade when using pro layout */
.stimeline--pro .tcard,
.stimeline--pro .tcard + .tcard {
  margin-left: 0;
  flex: none;
  min-width: 0;
}
.stimeline--pro .tcard:nth-child(n) {
  /* override global translateY cascade */
  transform: translate3d(0, 28px, 0);
}
.stimeline--pro .tcard.tcard--visible:nth-child(n) {
  transform: translate3d(0, 0, 0);
}
.stimeline--pro .stimeline__cards {
  padding-bottom: 0;
}

/* Diagonal cascade — 6 cards (about) */
.stimeline--pro .tcard:nth-child(1) { top: 0;    left: 0;    z-index: 1; }
.stimeline--pro .tcard:nth-child(2) { top: 62px; left: 130px; z-index: 2; }
.stimeline--pro .tcard:nth-child(3) { top: 124px; left: 260px; z-index: 3; }
.stimeline--pro .tcard:nth-child(4) { top: 186px; left: 390px; z-index: 4; }
.stimeline--pro .tcard:nth-child(5) { top: 248px; left: 520px; z-index: 5; }
.stimeline--pro .tcard:nth-child(6) { top: 310px; left: 650px; z-index: 6; }

/* 5 cards (xizmat sahifalari) — biroz kengroq qadam */
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) {
  height: 500px;
}
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(1) { top: 0;    left: 0;    z-index: 1; }
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(2) { top: 70px; left: 160px; z-index: 2; }
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(3) { top: 140px; left: 320px; z-index: 3; }
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(4) { top: 210px; left: 480px; z-index: 4; }
.stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(5) { top: 280px; left: 640px; z-index: 5; }

/* Active card — above stack, full text, soft lift (class set by JS) */
.stimeline--pro .stimeline__cards .tcard.tcard--visible.tcard--active,
.stimeline--pro .stimeline__cards .tcard.tcard--visible:focus-visible {
  z-index: 50 !important;
  transform: translate3d(0, -12px, 0);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.18),
    0 24px 48px rgba(0, 0, 0, 0.5);
  height: auto;
  min-height: 185px;
  overflow: visible;
  outline: none;
  opacity: 1 !important;
  filter: none;
}
.stimeline--pro .stimeline__cards .tcard.tcard--visible.tcard--active .tcard__desc,
.stimeline--pro .stimeline__cards .tcard.tcard--visible:focus-visible .tcard__desc {
  opacity: 1;
}
/* Siblings when one is active: solid, slightly recessed — still readable */
.stimeline--pro .stimeline__cards.is-interacting .tcard.tcard--visible:not(.tcard--active) {
  filter: brightness(0.92);
  transform: translate3d(0, 2px, 0);
}

.stimeline--pro .tcard__head {
  margin-bottom: 0;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 12px;
}
.stimeline--pro .tcard__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: inherit;
}
.stimeline--pro .tcard__days {
  font-size: 12px;
  font-weight: 500;
  opacity: .7;
  margin-top: 4px;
  color: inherit;
}
.stimeline--pro .tcard__desc {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: .9;
  margin: 0;
  margin-top: auto;
  font-weight: 500;
  color: inherit;
}
.stimeline--pro .tcard--gray .tcard__desc,
.stimeline--pro .tcard--orange .tcard__desc {
  opacity: .95;
}
.stimeline--pro .tcard--gray .tcard__days,
.stimeline--pro .tcard--orange .tcard__days {
  opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
  .stimeline--pro .tcard {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: none;
  }
  .stimeline--pro .stimeline__marker,
  .stimeline--pro .stimeline__vline {
    transition: none;
  }
  .stimeline--pro .stimeline__cards .tcard.tcard--visible.tcard--active {
    transform: translate3d(0, 0, 0);
  }
  .stimeline--pro .stimeline__cards.is-interacting .tcard.tcard--visible:not(.tcard--active) {
    filter: none;
    transform: translate3d(0, 0, 0);
  }
  .tcard:hover,
  .tcard:focus-visible {
    transform: none;
  }
  .tcard:nth-child(2) { transform: translate3d(0, 34px, 0); }
  .tcard:nth-child(3) { transform: translate3d(0, 68px, 0); }
  .tcard:nth-child(4) { transform: translate3d(0, 102px, 0); }
  .tcard:nth-child(5) { transform: translate3d(0, 136px, 0); }
  .tcard:nth-child(6) { transform: translate3d(0, 170px, 0); }
}

@media (hover: none) {
  .tcard:hover {
    transform: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
  .stimeline--pro .stimeline__cards.is-interacting .tcard.tcard--visible:not(.tcard--active) {
    filter: none;
    transform: translate3d(0, 0, 0);
  }
}

/* portfolio grid sarlavhasi */
.pgrid__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.pgrid__head .section-subtitle { max-width: 400px; text-align: right; }
@media (max-width: 768px) {
  .pgrid__head { flex-direction: column; align-items: flex-start; }
  .pgrid__head .section-subtitle { text-align: left; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .stimeline--pro .stimeline__cards { height: 540px; }
  .stimeline--pro .tcard { width: 360px; height: 170px; padding: 18px 20px; }
  .stimeline--pro .tcard:nth-child(1) { top: 0; left: 0; }
  .stimeline--pro .tcard:nth-child(2) { top: 56px; left: 105px; }
  .stimeline--pro .tcard:nth-child(3) { top: 112px; left: 210px; }
  .stimeline--pro .tcard:nth-child(4) { top: 168px; left: 315px; }
  .stimeline--pro .tcard:nth-child(5) { top: 224px; left: 420px; }
  .stimeline--pro .tcard:nth-child(6) { top: 280px; left: 525px; }
}

@media (max-width: 1024px) {
  .sincl__wrap { flex-direction: column; }
  .sincl__left { position: static; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .sincl__media img { max-width: 340px; margin: 0 auto; }
  .sgroup__grid { grid-template-columns: 1fr 1fr; }

  .stimeline--pro .stimeline__cards { height: 520px; }
  .stimeline--pro .tcard { width: 300px; height: 155px; padding: 16px 18px; }
  .stimeline--pro .tcard:nth-child(1) { top: 0; left: 0; }
  .stimeline--pro .tcard:nth-child(2) { top: 50px; left: 80px; }
  .stimeline--pro .tcard:nth-child(3) { top: 100px; left: 160px; }
  .stimeline--pro .tcard:nth-child(4) { top: 150px; left: 240px; }
  .stimeline--pro .tcard:nth-child(5) { top: 200px; left: 320px; }
  .stimeline--pro .tcard:nth-child(6) { top: 250px; left: 400px; }
}

@media (max-width: 860px) {
  /* Base (non-pro) service cascade → column */
  .stimeline__cards { flex-direction: column; gap: 14px; padding-bottom: 0; }
  .tcard { width: 100%; }
  .tcard + .tcard { margin-left: 0; }
  .tcard:nth-child(n) { transform: none; }
  .tcard:nth-child(n):hover,
  .tcard:nth-child(n):focus-visible {
    transform: translate3d(0, -3px, 0);
  }
  .tcard__title { font-size: 15px; }
  .tcard__desc { font-size: 13px; }
  .stimeline__marker::after { display: none; }
  .stimeline__ruler span:nth-child(even) { display: none; }

  /*
    Pro timeline (about + all service pages) — about mobile kabi
    to‘liq kenglikdagi stacked cards
  */
  .stimeline--pro {
    overflow: visible;
    padding-bottom: clamp(32px, 6vw, 48px);
  }
  .stimeline--pro::before,
  .stimeline--pro .stimeline__vline {
    display: none !important;
  }
  .stimeline--pro .stimeline__ruler {
    margin-bottom: 8px;
  }
  .stimeline--pro .stimeline__cards,
  .stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
    padding-bottom: 0 !important;
    isolation: auto;
  }
  .stimeline--pro .tcard,
  .stimeline--pro .tcard:nth-child(n),
  .stimeline--pro .stimeline__cards:has(> .tcard:nth-child(5):last-child) .tcard:nth-child(n) {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    flex: none !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    padding: 20px 18px;
    z-index: auto !important;
  }
  .stimeline--pro .tcard__head {
    margin-bottom: 0;
    align-items: flex-start;
  }
  .stimeline--pro .tcard__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
  .stimeline--pro .tcard__days {
    font-size: 12px;
    margin-top: 2px;
  }
  .stimeline--pro .tcard__desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    opacity: .9;
  }
  /* mobile: no float/hover stack — oddiy ro‘yxat */
  .stimeline--pro .stimeline__cards .tcard.tcard--visible.tcard--active,
  .stimeline--pro .stimeline__cards .tcard.tcard--visible:focus-visible {
    transform: none !important;
    height: auto !important;
    min-height: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: auto !important;
  }
  .stimeline--pro .stimeline__cards.is-interacting .tcard.tcard--visible:not(.tcard--active) {
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .sgroup__grid { grid-template-columns: 1fr; }
  .shero__btns .btn { width: 100%; max-width: 360px; }
}

/* ============================================================
   PORTFOLIO KEYS KARTASI (portfolio.html + bosh sahifa)
   ============================================================ */
.pcase {
  position: relative;
  background: var(--white);
  color: #000;
  border-radius: 10px;
  border-right: 5px solid #FF0101;
  padding: clamp(20px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
  overflow: hidden;
}
.pcase__top {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  justify-content: space-between;
  flex-wrap: wrap;
}
.pcase__kpis { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.pcase__kpi { display: flex; flex-direction: column; min-width: 0; }
.pcase__kpi span {
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pcase__kpi b {
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 29px);
  margin-top: 8px;
  line-height: 1.1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.pcase__kpi small { font-weight: 400; font-size: 13px; margin-top: 5px; color: #444; }
.pcase__brief {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  max-width: 560px;
  flex: 1 1 auto;
  min-width: min(100%, 320px);
}
.pcase__brief-item { flex: 1 1 0; min-width: 0; max-width: 260px; }
.pcase__brief-item b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.pcase__brief-item p {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  overflow-wrap: break-word;
  hyphens: auto;
}

.pcase__body {
  display: flex;
  gap: clamp(20px, 2.6vw, 32px);
  align-items: stretch;
}
.pcase__reels { flex-shrink: 0; }
.pcase__reels-label {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.pcase__shots {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: stretch;
}
.pcase__shot {
  position: relative;
  width: clamp(140px, 16vw, 232px);
  aspect-ratio: 232 / 350;
  border-radius: 15px;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pcase__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ko'rishlar — pastki qatorda bir tekis (Figma) */
.pcase__views {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  z-index: 1;
}
.pcase__views svg { width: 18px; height: 12px; flex-shrink: 0; }

/* o'rtadagi stats kartasi — Figma: och kulrang bg */
.pcase__phone {
  position: relative;
  flex-shrink: 0;
  width: clamp(180px, 20vw, 253px);
  border-radius: 20px;
  background: #F2F2F2;
  padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
}
.pcase__phone-bolt {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 22px;
  color: #111;
  opacity: 0.9;
}
.pcase__phone-stats { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); }
.pcase__phone-stat span {
  display: block;
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 14px);
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.pcase__phone-stat b {
  display: block;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #000;
  margin-top: 4px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
/* watermark logo — phone kartasi ichida, pastki qismda, o'ngdan 4% chiqib turadi */
.pcase__phone-logo {
  position: absolute;
  right: -4%;
  bottom: -1%;
  width: 138px;
  height: 48.9999885559082px;
  max-width: none;
  z-index: 0;
  pointer-events: none;
}
.pcase__phone-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.08;
}
.pcase__phone-stats { position: relative; z-index: 1; }

.pcase__did { flex: 1 1 0; min-width: 240px; display: flex; flex-direction: column; }
.pcase__did > b {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.pcase__did-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
  font-size: 14.5px;
  line-height: 1.55;
  color: #222;
}
.pcase__did-list li { margin-bottom: 8px; padding-left: 2px; }
.pcase__did-list li::marker { color: #111; }
.pcase__did p { font-size: 14.5px; line-height: 1.55; color: #222; margin: 0; }
.pcase__did-logo {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-end;
  width: 96px;
  height: 34px;
  max-width: 100%;
  line-height: 0;
  transform: translate(8px, 8px);
}
.pcase__did-logo img {
  width: 96px;
  height: 34px;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  opacity: 1;
}

/* Chinorkent — vertikal logo */
.pcase--chinorkent .pcase__phone-logo {
  width: 96px;
  height: 107px;
}
.pcase--chinorkent .pcase__did-logo {
  width: 49px;
  height: 55px;
}
.pcase--chinorkent .pcase__did-logo img {
  width: 49px;
  height: 55px;
}

/* Protochka — logo 119×39 */
.pcase--protochka .pcase__phone-logo {
  width: 119px;
  height: 39px;
}
.pcase--protochka .pcase__phone-logo img {
  width: 119px;
  height: 39px;
}
.pcase--protochka .pcase__did-logo {
  width: 119px;
  height: 39px;
}
.pcase--protochka .pcase__did-logo img {
  width: 119px;
  height: 39px;
}

/* Salon Exclusive — logo 64×49 */
.pcase--salon-exclusive .pcase__phone-logo {
  width: 64px;
  height: 49px;
}
.pcase--salon-exclusive .pcase__phone-logo img {
  width: 64px;
  height: 49px;
}
.pcase--salon-exclusive .pcase__did-logo {
  width: 64px;
  height: 49px;
}
.pcase--salon-exclusive .pcase__did-logo img {
  width: 64px;
  height: 49px;
}

/* Ipoteka Leasing — logo 131×29 */
.pcase--ipoteka-leasing .pcase__phone-logo {
  width: 131px;
  height: 29px;
}
.pcase--ipoteka-leasing .pcase__phone-logo img {
  width: 131px;
  height: 29px;
}
.pcase--ipoteka-leasing .pcase__did-logo {
  width: 131px;
  height: 29px;
}
.pcase--ipoteka-leasing .pcase__did-logo img {
  width: 131px;
  height: 29px;
}

/* Apple Gold — logo 78×67 */
.pcase--apple-gold .pcase__phone-logo {
  width: 78px;
  height: 67px;
}
.pcase--apple-gold .pcase__phone-logo img {
  width: 78px;
  height: 67px;
}
.pcase--apple-gold .pcase__did-logo {
  width: 78px;
  height: 67px;
}
.pcase--apple-gold .pcase__did-logo img {
  width: 78px;
  height: 67px;
}

/* Uventa School — logo 59×59 */
.pcase--uventa-school .pcase__phone-logo {
  width: 59px;
  height: 59px;
}
.pcase--uventa-school .pcase__phone-logo img {
  width: 59px;
  height: 59px;
}
.pcase--uventa-school .pcase__did-logo {
  width: 59px;
  height: 59px;
}
.pcase--uventa-school .pcase__did-logo img {
  width: 59px;
  height: 59px;
}

/* Hesap — logo 95×46 */
.pcase--hesap .pcase__phone-logo {
  width: 95px;
  height: 46px;
}
.pcase--hesap .pcase__phone-logo img {
  width: 95px;
  height: 46px;
}
.pcase--hesap .pcase__did-logo {
  width: 95px;
  height: 46px;
}
.pcase--hesap .pcase__did-logo img {
  width: 95px;
  height: 46px;
}

/* Neo Classica — logo 81×47 */
.pcase--neo-classica .pcase__phone-logo {
  width: 81px;
  height: 47px;
}
.pcase--neo-classica .pcase__phone-logo img {
  width: 81px;
  height: 47px;
}
.pcase--neo-classica .pcase__did-logo {
  width: 81px;
  height: 47px;
}
.pcase--neo-classica .pcase__did-logo img {
  width: 81px;
  height: 47px;
}

/* Shark Clean — logo 132×28 */
.pcase--shark-clean .pcase__phone-logo {
  width: 132px;
  height: 28px;
}
.pcase--shark-clean .pcase__phone-logo img {
  width: 132px;
  height: 28px;
}
.pcase--shark-clean .pcase__did-logo {
  width: 132px;
  height: 28px;
}
.pcase--shark-clean .pcase__did-logo img {
  width: 132px;
  height: 28px;
}

/* Uz Auto Leasing — logo 61×47 */
.pcase--uz-auto-leasing .pcase__phone-logo {
  width: 61px;
  height: 47px;
}
.pcase--uz-auto-leasing .pcase__phone-logo img {
  width: 61px;
  height: 47px;
}
.pcase--uz-auto-leasing .pcase__did-logo {
  width: 61px;
  height: 47px;
}
.pcase--uz-auto-leasing .pcase__did-logo img {
  width: 61px;
  height: 47px;
}

/* grid o'ramlari */
.pgrid__grid { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); }
.portfolio__cases { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); }

@media (max-width: 1024px) {
  .pcase__body { flex-wrap: wrap; }
  .pcase__did { min-width: 100%; }
  .pcase__did-logo { width: min(96px, 42vw); height: auto; }
  .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 96 / 34; }
  .pcase--chinorkent .pcase__did-logo { width: min(49px, 15vw); height: auto; }
  .pcase--chinorkent .pcase__did-logo img { aspect-ratio: 49 / 55; }
  .pcase--protochka .pcase__did-logo { width: min(119px, 42vw); height: auto; }
  .pcase--protochka .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 119 / 39; }
  .pcase--salon-exclusive .pcase__did-logo { width: min(64px, 20vw); height: auto; }
  .pcase--salon-exclusive .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 64 / 49; }
  .pcase--ipoteka-leasing .pcase__did-logo { width: min(131px, 42vw); height: auto; }
  .pcase--ipoteka-leasing .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 131 / 29; }
  .pcase--apple-gold .pcase__did-logo { width: min(78px, 22vw); height: auto; }
  .pcase--apple-gold .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 78 / 67; }
  .pcase--uventa-school .pcase__did-logo { width: min(59px, 18vw); height: auto; }
  .pcase--uventa-school .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 1; }
  .pcase--hesap .pcase__did-logo { width: min(95px, 30vw); height: auto; }
  .pcase--hesap .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 95 / 46; }
  .pcase--neo-classica .pcase__did-logo { width: min(81px, 28vw); height: auto; }
  .pcase--neo-classica .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 81 / 47; }
  .pcase--shark-clean .pcase__did-logo { width: min(132px, 42vw); height: auto; }
  .pcase--shark-clean .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 132 / 28; }
  .pcase--uz-auto-leasing .pcase__did-logo { width: min(61px, 20vw); height: auto; }
  .pcase--uz-auto-leasing .pcase__did-logo img { width: 100%; height: auto; aspect-ratio: 61 / 47; }
}
@media (max-width: 640px) {
  .pcase { border-right-width: 4px; }
  .pcase__top { flex-direction: column; }
  .pcase__brief { flex-direction: column; max-width: none; }
  .pcase__brief-item { max-width: none; }
  .pcase__body { flex-direction: column; }
  .pcase__reels { width: 100%; }
  .pcase__shots { width: 100%; }
  .pcase__shot { width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  .pcase__phone { width: 100%; min-height: 280px; }
}
