/* MedFlow landing — motion dizayn.
   Brend ranglari saqlangan: asosiy #0284c7, osmon #0ea5e9, aksent #14b8a6, to'q #0b1324.
   Sarlavha Outfit, matn Inter, aksent so'zlar Fraunces kursiv. */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --sky: #0ea5e9;
  --accent: #14b8a6;
  --mint: #5eead4;
  --navy: #0b1324;
  --navy-2: #12203a;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f0f9ff;
  --bg-green: #f0fdf4;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(2, 132, 199, 0.14);
  --radius: 20px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  overflow-x: clip;
}
.menu-open body { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.12; margin: 0; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; }
::selection { background: var(--primary-soft); color: var(--primary-dark); }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 820px; }

/* ---------- Preloader: foiz hisoblagich va ECG chizilishi ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--navy); color: #fff; clip-path: inset(0 0 0 0);
  animation: preloader-out .9s var(--ease-out) 2.6s forwards;
}
.js .preloader.is-done { animation: preloader-out .9s var(--ease-out) forwards; }
.no-intro .preloader { display: none !important; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__mark {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font: 800 30px var(--font-head); background: linear-gradient(135deg, var(--sky), var(--primary));
  box-shadow: 0 0 0 0 rgba(14, 165, 233, .5); animation: mark-beat 1.1s ease-in-out infinite, glow-ring 1.1s ease-out infinite;
}
.preloader__ecg { width: 240px; height: 60px; overflow: visible; }
.preloader__ecg path {
  fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw-line 1.2s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, .7));
}
.preloader__count { font: 700 14px var(--font-head); letter-spacing: .3em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--primary));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(15, 23, 42, .07); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; transition: height .3s; }
.site-header.is-scrolled .header-inner { height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--text); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--primary)); color: #fff; font-size: 18px;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3); animation: mark-beat 3.2s ease-in-out infinite;
}
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav a { position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  background: var(--primary); color: #fff; font: 600 16px/1 var(--font-body);
  cursor: pointer; transition: background .25s, transform .35s var(--ease-out), box-shadow .25s, color .25s;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 14px 28px rgba(2, 132, 199, 0.32); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { scale: .97; }
.btn:focus-visible, .nav a:focus-visible, .site-footer a:focus-visible, .faq__item summary:focus-visible, .menu-toggle:focus-visible, .scroll-cue:focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
.btn--sm { padding: 10px 20px; font-size: 15px; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--text); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); box-shadow: none; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.btn--light:hover { background: var(--bg-soft); color: var(--primary-dark); }
.btn--pulse { animation: cta-ring 2.6s ease-out infinite; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 600;
}
.pill--live { background: rgba(255, 255, 255, .8); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live-dot 1.8s ease-out infinite; }
.pill--dark { background: rgba(94, 234, 212, .12); color: var(--mint); border: 1px solid rgba(94, 234, 212, .25); }

/* ---------- Hero: mesh gradient, maskadan chiquvchi sarlavha, 3D sahna ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 120px; background: linear-gradient(180deg, #f8fcff 0%, #fff 100%); }
.hero-canvas {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, rgba(0, 0, 0, .55) 45%, #000 72%);
  mask-image: linear-gradient(100deg, transparent 15%, rgba(0, 0, 0, .55) 45%, #000 72%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-title { font-size: clamp(42px, 6.4vw, 86px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 24px 0 24px; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .1em .08em 0; }
.hero-title .line > span { display: inline-block; transform-origin: 0 100%; }
.hero-title .accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--primary) 0%, var(--sky) 25%, var(--accent) 50%, var(--sky) 75%, var(--primary) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; padding-right: .06em;
}
.lead { font-size: 18px; max-width: 540px; color: var(--text-2); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-ecg { display: block; width: min(420px, 100%); height: auto; overflow: visible; }
.hero-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-ecg__base { stroke: rgba(2, 132, 199, .2); stroke-width: 2; }
.hero-ecg__pulse { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 140 860; filter: drop-shadow(0 0 5px rgba(20, 184, 166, .6)); animation: ecg-flow 3s linear infinite; }

/* Intro: JS sahifani tayyor deb belgilagach ochiladi */
.js .hero-title .line > span { translate: 0 112%; rotate: 5deg; }
.js .hero [data-intro] { opacity: 0; translate: 0 24px; }
.js .hero-stage { opacity: 0; }
.js.is-loaded .hero-title .line > span {
  translate: 0 0; rotate: 0deg;
  transition: translate 1.15s var(--ease-out) calc(var(--i) * 110ms + 80ms), rotate 1.15s var(--ease-out) calc(var(--i) * 110ms + 80ms);
}
.js.is-loaded .hero [data-intro] { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease) var(--d, 0ms), translate 1s var(--ease-out) var(--d, 0ms); }
.js.is-loaded .hero-stage { opacity: 1; transition: opacity 1s ease .3s; }
.js.is-loaded .hero-scene { animation: scene-in 1.8s var(--ease-out) .25s both; }

.hero-stage { position: relative; height: 540px; perspective: 1400px; }
.hero-scene {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -12deg));
  transition: transform 1s var(--ease-out);
}
.layer { position: absolute; transform: translateZ(calc(var(--z, 0) * 1px)); }
.hero-photo { inset: 34px 40px 46px 18px; overflow: hidden; margin: 0; border: 7px solid #fff; border-radius: 30px; box-shadow: var(--shadow-lg); }
.hero-photo::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .42)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; animation: photo-drift 18s ease-in-out infinite alternate; }
.hero-photo__caption { position: absolute; z-index: 1; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 12px; font-weight: 600; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.hero-photo__dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); animation: live-dot 1.8s ease-out infinite; }
.app-card { background: rgba(255, 255, 255, .96); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(2, 132, 199, .35); border: 1px solid var(--border); }
.app-card--main { top: 44px; right: -14px; width: 74%; padding: 20px; animation: float-card 6s ease-in-out infinite; }
.app-card__top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--r { background: #f87171; } .dot--y { background: #fbbf24; } .dot--g { background: #34d399; }
.app-card__title { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 15px; }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 9px; border-radius: 14px; background: var(--bg-soft); font-size: 15px; color: var(--text); animation: row-live 7.5s ease-in-out infinite; }
.app-card--main .queue-item:nth-of-type(3) { animation-delay: 2.5s; }
.app-card--main .queue-item:nth-of-type(4) { animation-delay: 5s; }
.time { font-weight: 700; color: var(--primary); min-width: 52px; }
.queue-item--free { background: #ecfdf5; }
.tag { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e2e8f0; color: var(--text-2); white-space: nowrap; }
.tag--ok { background: #dcfce7; color: #166534; }
.tag--free { background: #d1fae5; color: #065f46; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 56px; padding: 10px 4px 0; }
.mini-chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--sky), var(--primary)); opacity: .85;
  animation: bar-breathe 3.2s ease-in-out calc(var(--i) * .2s) infinite alternate;
}
.app-card--float { left: -18px; bottom: 34px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; animation: float-card 5s 1s ease-in-out infinite; }
.float-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; animation: glow-ring-teal 2.4s ease-out infinite; }
.app-card--float strong, .app-card--notify strong { display: block; color: var(--text); font-family: var(--font-head); }
.app-card--float small, .app-card--notify small { color: var(--muted); font-size: 13px; }
.app-card--notify { right: -24px; bottom: 120px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; animation: float-card 7s 1.6s ease-in-out infinite; }
.notify-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.notify-icon svg { width: 20px; height: 20px; transform-origin: 50% 10%; animation: bell 3.4s 1.8s ease-in-out infinite; }
.orbit {
  position: absolute; left: 50%; top: 50%; width: 108%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1.5px dashed rgba(2, 132, 199, .25); transform: translateZ(-140px);
  animation: spin 40s linear infinite;
}
.orbit__chip {
  position: absolute; translate: -50% -50%; padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
  font: 600 13px var(--font-head); color: var(--primary-dark); white-space: nowrap;
  animation: spin 40s linear infinite reverse;
}
.orbit__chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.orbit__chip--n { left: 50%; top: 0; }
.orbit__chip--e { left: 100%; top: 50%; }
.orbit__chip--s { left: 50%; top: 100%; }
.orbit__chip--w { left: 0; top: 50%; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(15, 23, 42, .22); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: cue 1.8s var(--ease) infinite; }

/* ---------- Marquee: modullar ikki tomonga oqadi ---------- */
.marquee { display: grid; gap: 14px; padding: 30px 0; border-block: 1px solid var(--border); background: #fff; }
.marquee__row { 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); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 42s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 14px; padding-right: 14px; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--bg-soft); font: 600 17px var(--font-head); color: var(--text);
}
.marquee__item::before { content: "✦"; color: var(--accent); font-size: 14px; }
.marquee__item--soft { background: #fff; color: var(--text-2); font-weight: 500; }
.marquee__item--soft::before { color: var(--sky); }

/* ---------- Imkoniyatlar: scroll'ga bog'langan sticky sahna ---------- */
.story { position: relative; background: var(--navy); color: #94a3b8; }
.story__pin { position: relative; overflow: hidden; }
.story__glow span { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: blob-drift 20s ease-in-out infinite alternate; }
.story__glow span:first-child { width: 520px; height: 520px; left: -160px; top: -140px; background: rgba(2, 132, 199, .35); }
.story__glow span:last-child { width: 460px; height: 460px; right: -120px; bottom: -160px; background: rgba(20, 184, 166, .25); animation-delay: -8s; }
.story__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding-block: 96px; }
.story h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 16px; }
.story__lead { font-size: 17px; margin-bottom: 28px; }
.story h3 { color: #e2e8f0; font-size: 22px; margin-bottom: 10px; }
.story__text > p:not(.story__lead) { margin-bottom: 26px; }
.story__steps { list-style: none; display: grid; gap: 4px; position: relative; padding-left: 22px; }
.story__steps::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(148, 163, 184, .2); }
.story__steps li {
  position: relative; display: flex; gap: 14px; align-items: baseline; padding: 12px 0;
  color: #64748b; font-weight: 500; font-size: 17px; transition: color .5s, translate .5s var(--ease-out);
}
.story__steps li::before {
  content: ""; position: absolute; left: -26px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #334155; transition: background-color .4s, box-shadow .4s;
}
.story__steps li.is-active { color: #fff; translate: 6px 0; }
.story__steps li.is-active::before { background: var(--mint); box-shadow: 0 0 0 6px rgba(94, 234, 212, .15); }
.story__num { font: 700 13px var(--font-head); color: var(--mint); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.story__visual { position: relative; height: 460px; perspective: 1200px; }
.story__screen {
  position: absolute; inset: 0; padding: 22px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(40px) rotateX(10deg) scale(.95); pointer-events: none;
  transition: opacity .6s ease, transform .9s var(--ease-out);
}
.story__screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.screen-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; color: #e2e8f0; }
.screen-head b { margin-left: auto; font: 700 15px var(--font-head); }
.tenants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tenant {
  display: grid; gap: 6px; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  opacity: 0; translate: 0 18px; transition: opacity .6s, translate .7s var(--ease-out);
}
.is-active .tenant { opacity: 1; translate: 0 0; transition-delay: calc(var(--i) * 120ms + 150ms); }
.tenant b { color: #fff; font-family: var(--font-head); }
.tenant small { font-size: 12.5px; color: #94a3b8; }
.tenant__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(94, 234, 212, .12); color: var(--mint); margin-bottom: 6px; }
.tenant__icon svg, .tenant-wall svg, .card__icon svg, .why-item__icon svg, .notify-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tenant__icon svg { width: 24px; height: 24px; }
.tenant-wall {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: rgba(20, 184, 166, .12); border: 1px dashed rgba(94, 234, 212, .35); color: var(--mint); font-weight: 600; font-size: 14px;
}
.tenant-wall svg { width: 20px; height: 20px; flex: 0 0 20px; }
.roles { list-style: none; display: grid; gap: 10px; }
.roles li {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; translate: -20px 0; transition: opacity .5s, translate .6s var(--ease-out);
}
.is-active .roles li { opacity: 1; translate: 0 0; transition-delay: calc(var(--i) * 110ms + 120ms); }
.roles .av { grid-row: span 2; }
.roles b { color: #fff; font-family: var(--font-head); }
.roles small { grid-column: 2; font-size: 12.5px; color: #94a3b8; }
.av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font: 700 15px var(--font-head); border: 3px solid rgba(255, 255, 255, .9);
}
.switch { grid-row: span 2; width: 44px; height: 24px; border-radius: 999px; background: #334155; position: relative; transition: background-color .4s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: translate .5s var(--ease-out); }
.is-active .switch { background: var(--accent); transition-delay: calc(var(--i) * 140ms + 500ms); }
.is-active .switch::after { translate: 20px 0; transition-delay: calc(var(--i) * 140ms + 500ms); }
.feature-photo { position: relative; height: 260px; overflow: hidden; margin: 0 0 14px; border-radius: 20px; }
.feature-photo::after { content: ""; position: absolute; inset: 28% 0 0; background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .78)); }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.is-active .feature-photo img { transform: scale(1); }
.feature-photo figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; color: #fff; }
.feature-photo figcaption strong { font: 700 19px/1.2 var(--font-head); }
.feature-photo figcaption span { font-size: 13px; color: rgba(255, 255, 255, .88); }
.screen-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.screen-stats div {
  padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  opacity: 0; translate: 0 14px; transition: opacity .5s, translate .6s var(--ease-out);
}
.is-active .screen-stats div { opacity: 1; translate: 0 0; transition-delay: calc(var(--i) * 110ms + 300ms); }
.screen-stats small { display: block; font-size: 12px; color: #94a3b8; }
.screen-stats b { color: #fff; font: 700 15px var(--font-head); }
.story__progress { position: absolute; right: -26px; top: 10%; bottom: 10%; width: 3px; border-radius: 3px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.story__progress span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--mint), var(--sky)); transform-origin: 50% 0; transform: scaleY(0); }

/* ---------- Umumiy bo'limlar ---------- */
.section { padding: 110px 0; overflow-x: clip; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .pill { margin-bottom: 18px; }
.section h2, .hscroll h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted); }
[data-scrub] span { color: rgba(100, 116, 139, .3); transition: color .35s; }
[data-scrub] span.is-lit { color: var(--text-2); }

/* ---------- Modullar: bento + jonli illyustratsiyalar ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .3s, border-color .3s;
}
.card::before, .plan::after, .why-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(2, 132, 199, .12), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::before, .plan:hover::after, .why-item:hover::after { opacity: 1; }
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(2, 132, 199, .35); }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; }
.card__art {
  position: relative; height: 170px; margin-bottom: 22px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-soft), #fff); border: 1px solid #eef2f7;
}
.card--full .card__art { flex: 0 0 min(46%, 460px); margin: 0; height: 180px; }
.card__title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card__icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon svg { animation: icon-wiggle .6s ease; }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; color: var(--muted); }

.art-booking { padding: 16px; display: grid; gap: 12px; align-content: start; }
.art-booking__days { display: flex; gap: 8px; }
.art-booking__days span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; font: 600 12px var(--font-head); color: var(--muted); background: #fff; border: 1px solid var(--border); }
.art-booking__days .is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.art-booking__slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.art-booking__slots span {
  text-align: center; padding: 9px 0; border-radius: 10px; font: 600 12px var(--font-head); color: var(--primary-dark);
  background: var(--primary-soft); scale: 0; animation: pop .5s var(--ease-out) calc(var(--i) * 90ms + .2s) both;
}
.art-booking__slots .is-pick { animation: pop .5s var(--ease-out) .45s both, slot-pick 3.6s ease-in-out 1s infinite; }
.art-booking__toast {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .1); font-size: 13px; font-weight: 600; color: var(--text);
  animation: toast 3.6s ease-in-out 1s infinite;
}
.art-booking__toast b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }

.art-queue { display: grid; place-content: center; justify-items: center; gap: 6px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-color: transparent; }
.art-queue__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }
.art-queue__num { font: 800 56px/1 var(--font-head); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(94, 234, 212, .45); }
.art-queue__num.flip { animation: flip-in .6s var(--ease-out); }
.art-queue__bar { width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.art-queue__bar i { display: block; height: 100%; background: var(--mint); transform-origin: 0 50%; animation: queue-bar 2.2s linear infinite; }

.art-team { display: flex; align-items: center; justify-content: center; }
.art-team .av { width: 58px; height: 58px; font-size: 20px; margin-left: -14px; box-shadow: 0 10px 20px rgba(15, 23, 42, .15); animation: bob 3s ease-in-out calc(var(--i) * .25s) infinite; }
.art-team .av:first-child { margin-left: 0; }
.art-team__badge { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font: 600 12px var(--font-head); color: var(--primary-dark); }

.art-chart { display: flex; align-items: flex-end; gap: 10px; padding: 22px 20px 18px; }
.art-chart > span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--mint), var(--accent)); transform-origin: 50% 100%; }
.js .art-chart > span { scale: 1 0; }
.js .is-in .art-chart > span { scale: 1 1; transition: scale 1s var(--ease-out) calc(var(--i) * 90ms + 200ms); }
.art-chart svg { position: absolute; inset: 18px 20px 30px; width: calc(100% - 40px); height: calc(100% - 48px); overflow: visible; }
.art-chart path { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.js .art-chart path { stroke-dashoffset: 1; }
.js .is-in .art-chart path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .6s; }

.art-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; justify-content: center; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.35; opacity: 0; animation: bubble 6s ease-in-out infinite; }
.bubble--in { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--sky); color: #fff; border-bottom-right-radius: 4px; animation-delay: 1s; }
.bubble--typing { display: inline-flex; gap: 4px; padding: 11px 13px; animation-delay: 2s; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }

.art-pay { display: grid; place-items: center; perspective: 800px; }
.pay-card {
  position: relative; width: min(290px, 80%); aspect-ratio: 1.6; max-width: 100%; border-radius: 18px; padding: 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--sky) 55%, var(--accent)); color: #fff; box-shadow: 0 24px 40px -18px rgba(2, 132, 199, .6);
  display: grid; grid-template-rows: auto 1fr auto; animation: card-tilt 6s ease-in-out infinite;
}
.pay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; }
.pay-card__chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.pay-card__num { align-self: end; font: 600 15px var(--font-head); letter-spacing: .12em; }
.pay-card__brand { justify-self: end; font: 800 16px var(--font-head); }
.pay-stamp {
  position: absolute; right: 18px; top: 18px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #166534;
  font: 700 13px var(--font-head); box-shadow: 0 10px 22px rgba(15, 23, 42, .12); rotate: -6deg; animation: stamp 3.5s ease-in-out infinite;
}
.card__body { flex: 1; }

/* ---------- Narxlar ---------- */
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; isolation: isolate; background: #fff; border: 1px solid var(--border); border-radius: 26px;
  padding: 38px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.plan:hover { --lift: -8px; box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 22px; margin-bottom: 12px; }
.plan__price { font-family: var(--font-head); font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--primary); margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.plan ul li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan--featured { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--rim), var(--primary), var(--accent), var(--sky), var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rim-spin 6s linear infinite;
}
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--sky), var(--accent), var(--sky), var(--primary)); background-size: 220% 100%;
  color: #fff; font-size: 13px; font-weight: 700; animation: shimmer 4s linear infinite;
}

/* ---------- Klinikalar: to'q fon, radar to'lqinlari ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 115%, rgba(14, 165, 233, .4), transparent 60%), var(--navy); color: #94a3b8; }
.cta h2 { color: #fff; font-size: clamp(38px, 6.4vw, 84px); }
.cta .section-head { margin-bottom: 0; }
.cta .section-head p { color: #94a3b8; margin-bottom: 34px; }
.cta .btn { padding: 16px 34px; font-size: 17px; }
.cta__radar { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__radar span {
  position: absolute; left: 50%; top: 58%; width: 260px; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  border: 1px solid rgba(94, 234, 212, .4); animation: radar 4.5s linear infinite;
}
.cta__radar span:nth-child(2) { animation-delay: 1.5s; }
.cta__radar span:nth-child(3) { animation-delay: 3s; }

/* ---------- Afzalliklar: gorizontal scroll sahnasi ---------- */
.hscroll { position: relative; background: #fff; padding: 110px 0 60px; }
.hscroll__head { text-align: center; margin-bottom: 40px; }
.hscroll__head .pill { margin-bottom: 18px; }
.hscroll__track { display: flex; gap: 24px; width: max-content; padding-inline: max(20px, calc((100vw - 1200px) / 2)); will-change: transform; }
.why-item {
  position: relative; isolation: isolate; overflow: hidden; flex: 0 0 340px; height: 320px; padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; border-radius: 30px;
  background: linear-gradient(160deg, #fff, var(--bg-soft)); border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.why-item::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--tone), transparent 70%); opacity: .22; transition: scale .6s var(--ease-out), opacity .4s;
}
.why-item:hover { box-shadow: var(--shadow-lg); }
.why-item:hover::before { scale: 1.4; opacity: .35; }
.why-item__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: #fff; color: var(--tone); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); transition: rotate .5s var(--ease-out), scale .5s var(--ease-out); }
.why-item:hover .why-item__icon { rotate: -8deg; scale: 1.08; }
.why-item__icon svg { width: 30px; height: 30px; }
.why-item strong { font: 700 26px/1.15 var(--font-head); color: var(--text); letter-spacing: -0.01em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 0 24px; transition: border-color .3s, box-shadow .3s; interpolate-size: allow-keywords; }
.faq__item:hover, .faq__item[open] { border-color: rgba(2, 132, 199, .35); box-shadow: var(--shadow-lg); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-soft); font-size: 22px; font-weight: 500; color: var(--primary); transition: rotate .35s var(--ease-out), background-color .3s, color .3s;
}
.faq__item[open] summary::after { rotate: 45deg; background: var(--primary); color: #fff; }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__item p { padding-bottom: 22px; color: var(--muted); font-size: 15px; }
.faq__item[open] p { animation: rise-in .5s var(--ease-out) both; }

/* ---------- Demo ---------- */
.demo-band {
  text-align: center; padding: 72px 40px; border-radius: 30px; color: #fff;
  background: linear-gradient(135deg, var(--sky) 0%, var(--primary) 50%, var(--primary-dark) 100%); background-size: 200% 200%;
  box-shadow: var(--shadow-lg); animation: band-shift 12s ease infinite;
}
.demo-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.demo-band > p { color: rgba(255, 255, 255, 0.9); font-size: 17px; max-width: 560px; margin: 0 auto 34px; }
.demo-form { max-width: 640px; margin: 0 auto 26px; text-align: left; }
.demo-form__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; }
.demo-form input { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; font: inherit; color: var(--text); background: #fff; }
.demo-form input:focus { outline: 3px solid #bae6fd; outline-offset: 2px; }
.demo-form__error { color: #fff; background: rgba(127, 29, 29, 0.55); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.demo-form .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #94a3b8; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--sky), transparent); background-size: 200% 100%; animation: shimmer 6s linear infinite;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 64px 0 24px; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 15px; }
.footer-brand .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer ul a { color: #94a3b8; font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer-wordmark {
  font: 800 clamp(64px, 17vw, 250px)/.9 var(--font-head); letter-spacing: -0.06em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; padding-bottom: 8px;
}
.footer-bottom { border-top: 1px solid #1e293b; padding: 22px 0; text-align: center; font-size: 14px; color: #64748b; }

/* ---------- Scroll'da paydo bo'lish va so'zma-so'z sarlavhalar ---------- */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease) var(--d, 0ms), translate 1s var(--ease-out) var(--d, 0ms), transform .5s var(--ease-out), box-shadow .3s, border-color .3s; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .story__visual[data-reveal] { translate: 0 0; scale: .92; transition: opacity 1s var(--ease), scale 1.2s var(--ease-out); }
.js .story__visual[data-reveal].is-in { scale: 1; }
.js .footer-wordmark[data-reveal] { translate: 0 60%; transition: opacity 1.2s var(--ease), translate 1.4s var(--ease-out); }
.js .footer-wordmark[data-reveal].is-in { translate: 0 0; }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .word > span { display: inline-block; }
.js [data-split] .word > span { translate: 0 110%; }
.js [data-split].is-in .word > span { translate: 0 0; transition: translate 1s var(--ease-out) calc(var(--i) * 70ms); }

/* ---------- Klinikaga kirish oynasi ---------- */
.clinic-login { border: 0; border-radius: var(--radius); padding: 28px; width: min(420px, 92vw); box-shadow: var(--shadow-lg); color: var(--text); }
.clinic-login[open] { animation: dialog-in .45s var(--ease-out); }
.clinic-login::backdrop { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); }
.clinic-login h2 { margin: 0 0 8px; font-family: var(--font-head); }
.clinic-login p { margin: 0 0 16px; color: var(--text-2); }
.clinic-login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.clinic-login input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit; }
.clinic-login input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.clinic-login__error { color: #b91c1c; margin: 10px 0 0 !important; font-size: 14px; }
.clinic-login__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Katta ekranlarda scroll sahnalari (pin) ---------- */
@media (min-width: 961px) {
  .story { height: 330vh; }
  .story__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
  .story__grid { padding-block: 40px; }
  .hscroll { height: 280vh; padding: 0; }
  .hscroll__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border);
    border-radius: 14px; background: #fff; cursor: pointer;
  }
  .header-actions { margin-left: auto; }
  .header-actions + .menu-toggle { margin-left: 0; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: translate .35s var(--ease-out), rotate .35s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { translate: 0 4px; rotate: 45deg; }
  .menu-toggle[aria-expanded="true"] span:last-child { translate: 0 -4px; rotate: -45deg; }
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 66px); display: flex; flex-direction: column; gap: 6px;
    padding: 28px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px); animation: menu-fade .35s ease;
  }
  .mobile-menu a { font: 700 clamp(28px, 8vw, 40px)/1.2 var(--font-head); color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--border); animation: menu-item .6s var(--ease-out) var(--d, 0ms) both; }
  .hero { padding-top: 40px; }
  .hero-grid, .story__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-stage { height: 470px; max-width: 600px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }
  .story__grid { padding-block: 84px; }
  .story__visual { height: auto; display: grid; gap: 18px; }
  .story__screen { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; }
  .story__screen .tenant, .story__screen .roles li, .story__screen .screen-stats div { opacity: 1; translate: 0 0; }
  .story__screen .switch { background: var(--accent); }
  .story__screen .switch::after { translate: 20px 0; }
  .story__screen .feature-photo img { transform: none; }
  .story__steps li { color: #cbd5e1; }
  .story__progress { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: 1 / -1; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 26px; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .why-item { flex: 0 0 min(320px, 78vw); height: 280px; scroll-snap-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 32px), 1200px); }
  .header-actions a[href="#demo"] { display: none; }
  .header-inner { gap: 10px; height: 66px; }
  .brand { font-size: 20px; }
  .header-actions .btn { padding: 10px 15px; font-size: 13px; }
  .hero { padding: 30px 0 70px; }
  .hero-grid { gap: 26px; }
  .hero-title { margin: 18px 0; }
  .lead { font-size: 16px; }
  .hero-stage { height: 380px; }
  .hero-photo { inset: 22px 18px 28px 6px; border-width: 5px; border-radius: 24px; }
  .hero-photo__caption { left: 10px; top: 10px; padding: 8px 11px; font-size: 10px; }
  .app-card--main { top: 40px; right: -4px; width: 84%; padding: 14px; border-radius: 18px; }
  .app-card__top { margin-bottom: 10px; }
  .app-card__title { font-size: 13px; }
  .queue-item { gap: 8px; padding: 10px; margin-bottom: 7px; border-radius: 12px; font-size: 12px; }
  .time { min-width: 42px; }
  .tag { padding: 4px 7px; font-size: 10px; }
  .mini-chart { height: 38px; }
  .app-card--float { left: -2px; bottom: 16px; padding: 12px 14px; gap: 10px; }
  .app-card--float small { font-size: 11px; }
  .float-icon { width: 32px; height: 32px; }
  .app-card--notify { display: none; }
  .orbit { width: 112%; }
  .orbit__chip { padding: 6px 10px; font-size: 11px; }
  .marquee__item { padding: 10px 16px; font-size: 15px; }
  .section { padding: 80px 0; }
  .tenants { grid-template-columns: minmax(0, 1fr); }
  .tenant { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .tenant__icon { grid-row: span 2; margin: 0; }
  .screen-stats { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--full { flex-direction: column; align-items: stretch; gap: 0; }
  .card--full .card__art { flex: none; margin-bottom: 22px; }
  .art-booking__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hscroll { padding-top: 80px; }
  .demo-band { padding: 48px 24px; }
  .demo-form__fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .preloader { display: none !important; }
  .js [data-reveal], .js [data-intro], .js .hero-stage { opacity: 1 !important; translate: none !important; scale: none !important; }
  .js .hero-title .line > span, .js [data-split] .word > span { translate: none !important; rotate: none !important; }
  .art-booking__slots span, .bubble { scale: 1; opacity: 1; }
}

/* ---------- Kadrlar ---------- */
@keyframes preloader-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes mark-beat { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(1.12); } 82% { transform: scale(.96); } 88% { transform: scale(1.06); } }
@keyframes glow-ring { from { box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); } to { box-shadow: 0 0 0 26px rgba(14, 165, 233, 0); } }
@keyframes glow-ring-teal { from { box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); } to { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); } }
@keyframes cta-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(0, 0, 0, .15); } 70%, 100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 8px 20px rgba(0, 0, 0, .15); } }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); } 100% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes ecg-flow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes scene-in { from { opacity: 0; translate: 0 90px; scale: .88; rotate: x 22deg; } to { opacity: 1; translate: 0 0; scale: 1; rotate: x 0deg; } }
@keyframes float-card { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes photo-drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.1) translateY(-6px); } }
@keyframes row-live { 0%, 34%, 100% { box-shadow: inset 0 0 0 0 rgba(2, 132, 199, 0); } 6%, 28% { box-shadow: inset 0 0 0 2px rgba(2, 132, 199, .35); } }
@keyframes bar-breathe { from { scale: 1 .82; } to { scale: 1 1; } }
@keyframes bell { 0%, 70%, 100% { rotate: 0deg; } 75% { rotate: 14deg; } 80% { rotate: -12deg; } 85% { rotate: 8deg; } 90% { rotate: -4deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes cue { 0% { translate: 0 0; opacity: 0; } 30% { opacity: 1; } 80% { translate: 0 14px; opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blob-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, -40px, 0) scale(1.15); } }
@keyframes pop { 0% { scale: 0; } 60% { scale: 1.12; } 100% { scale: 1; } }
@keyframes slot-pick { 0%, 100% { background: var(--primary-soft); color: var(--primary-dark); } 20%, 75% { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(2, 132, 199, .35); } }
@keyframes toast { 0%, 15% { opacity: 0; translate: -12px 0; } 25%, 80% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; translate: 0 6px; } }
@keyframes flip-in { from { opacity: 0; transform: translateY(40%) rotateX(80deg); } to { opacity: 1; transform: none; } }
@keyframes queue-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bubble { 0%, 8% { opacity: 0; translate: 0 10px; } 15%, 80% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; translate: 0 -6px; } }
@keyframes typing { 0%, 100% { translate: 0 0; opacity: .5; } 50% { translate: 0 -4px; opacity: 1; } }
@keyframes card-tilt { 0%, 100% { transform: rotateY(-12deg) rotateX(6deg); } 50% { transform: rotateY(12deg) rotateX(-4deg); } }
@keyframes shine { 0%, 40% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes stamp { 0%, 20% { opacity: 0; scale: 1.6; } 30%, 85% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes rim-spin { to { --rim: 360deg; } }
@keyframes radar { from { scale: .3; opacity: .9; } to { scale: 3.4; opacity: 0; } }
@keyframes icon-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -10deg; } 60% { rotate: 8deg; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes band-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes dialog-in { from { opacity: 0; translate: 0 20px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-item { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
