/* Hallmark · NEOSYSTEM · theme: custom, owner's brand spec (deal: manual, Node unavailable) · genre: modern-minimal · shape: hub hero + switcher case studies · signature: the NEOSYSTEM mark as a live hub with six service nodes wired into it · sloplint: not run (no Node) */
/* critique: three dark bands only (hero, founder, contact+footer); gradient kept to the mark, primary button and data lines; no eyebrows, no invented numbers. */
/* waive 46a: reviews are owner-requested demo copy, flagged data-demo and switchable in content/site.json (show_reviews). */

/* =========================================================
   1. Tokenlar — barcha rang, shrift va o'lchamlar shu yerda
   ========================================================= */
:root {
  /* brend */
  --c-cyan: #00C2FF;
  --c-blue: #1E5BFF;
  --c-navy: #0A2A8A;
  --c-night: #0B1430;
  --c-white: #FFFFFF;
  --c-grey: #6B7A99;

  /* yorug' fon */
  --c-paper: #FFFFFF;
  --c-paper-2: #F4F7FC;
  --c-ink: #0B1430;
  --c-ink-soft: #3E4B69;
  --c-muted: #5D6B8A;
  --c-line: #E2E8F3;
  --c-line-strong: #C7D1E4;
  --c-blue-soft: #EAF0FF;
  --c-blue-ink: #1546D6;
  --c-shadow: rgba(11, 20, 48, .14);

  /* to'q fon */
  --c-night-2: #111D45;
  --c-night-glass: rgba(11, 20, 48, .88);
  --c-on-dark: #EEF2FF;
  --c-on-dark-muted: #A3B0CC;
  --c-line-dark: rgba(163, 176, 204, .16);
  --c-line-dark-strong: rgba(163, 176, 204, .32);
  --c-veil: rgba(255, 255, 255, .06);
  --c-veil-strong: rgba(255, 255, 255, .12);
  --c-cyan-text: #5CD6FF;
  --c-sky: #7FA2FF;
  --c-placeholder: #7381A3;
  --c-glow: rgba(30, 91, 255, .45);
  --c-glow-soft: rgba(30, 91, 255, .22);
  --c-glow-cyan: rgba(0, 194, 255, .14);
  --c-focus: #00C2FF;
  --c-focus-ring: rgba(0, 194, 255, .28);
  --c-danger: #FF8A8E;
  --c-success: #5BE0A8;

  /* texnologiya logotiplari (hover rangi) */
  --c-python: #3776AB;
  --c-fastapi: #009688;
  --c-js: #C9A800;
  --c-telegram: #26A5E4;
  --c-linux: #1F2937;
  --c-node: #5FA04E;
  --c-postgres: #4169E1;
  --c-sqlite: #0F80CC;
  --c-html: #E34F26;
  --c-css: #1572B6;
  --c-claude: #D97757;
  --c-gemini: #4285F4;
  --c-sap: #0FAAFF;
  --c-sheets: #34A853;
  --c-meta: #0081FB;
  --c-nginx: #009639;

  --grad: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-blue) 55%, var(--c-navy) 100%);
  --grad-btn: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-blue) 70%);
  --grad-text: linear-gradient(90deg, var(--c-cyan), var(--c-sky));

  /* shriftlar */
  --f-display: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h1: clamp(2rem, 1.2rem + 3.4vw, 4rem);

  /* o'lchamlar */
  --container: 1200px;
  --gutter: 16px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --nav-h: 68px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* =========================================================
   2. Asos
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--c-ink-soft);
  background: var(--c-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 6px;
  transition: none;
}

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

.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: .625rem 1rem; border-radius: var(--r-sm);
  background: var(--c-white); color: var(--c-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* =========================================================
   3. Tugmalar (8 holat: oddiy, hover, focus, active, disabled, loading, xato/muvaffaqiyat — formada)
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 600 var(--t-sm)/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.btn--sm { min-height: 40px; padding: .5rem 1.125rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad-btn); color: var(--c-white); box-shadow: 0 10px 26px -12px var(--c-glow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px var(--c-glow); }
.btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px -6px var(--c-glow); }

.btn--ghost { background: transparent; color: var(--c-on-dark); border-color: var(--c-line-dark-strong); }
.btn--ghost:hover { background: var(--c-veil); border-color: var(--c-on-dark-muted); }
.btn--ghost:active { background: var(--c-veil-strong); }

.btn--outline { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--outline:hover { border-color: var(--c-blue); color: var(--c-blue-ink); }
.btn--outline:active { background: var(--c-blue-soft); }

/* o'chirilgan: fon, matn rangi va kursor o'zgaradi; yuborilmoqda: gradient qoladi + aylanuvchi belgi */
.btn:disabled:not([aria-busy="true"]) {
  background: var(--c-veil-strong); color: var(--c-on-dark-muted); border-color: var(--c-line-dark);
  box-shadow: none; cursor: not-allowed; transform: none;
}
.btn[aria-busy="true"] { opacity: .85; cursor: progress; transform: none; }

.btn__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--c-veil-strong); border-top-color: var(--c-white);
  animation: spin .8s linear infinite;
}
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   4. Navigatsiya
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.nav.is-scrolled, .nav.is-open {
  background: var(--c-night-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-line-dark);
}
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { width: auto; height: 14px; }

.nav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.nav__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav__links a {
  display: block; padding: .5rem 0;
  color: var(--c-on-dark-muted); text-decoration: none; font-size: var(--t-sm); font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-white); }

.lang {
  display: inline-flex; gap: .25rem; padding: .25rem;
  border: 1px solid var(--c-line-dark); border-radius: var(--r-pill);
}
.lang a {
  min-width: 40px; min-height: 32px; padding: 0 .625rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  color: var(--c-on-dark-muted); text-decoration: none; font-size: var(--t-xs); font-weight: 600;
  transition: background-color .2s, color .2s;
}
.lang a:hover { color: var(--c-white); }
.lang a[aria-current="true"] { background: var(--c-veil-strong); color: var(--c-white); }

.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-white); cursor: pointer;
}
.nav__toggle:hover { background: var(--c-veil); }
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 20px; height: 2px; margin-inline: auto; border-radius: 2px;
  background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { transform: translateY(-6px); }
.nav__bars::after { transform: translateY(6px); }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: rotate(45deg); background: var(--c-white); }
.nav.is-open .nav__bars::after { transform: rotate(-45deg); background: var(--c-white); }

/* JS'siz: menyu oddiy qatorda turadi */
html:not(.js) .nav { position: absolute; height: auto; padding-block: .75rem; }
html:not(.js) .nav__bar { flex-wrap: wrap; }

/* Telefon va planshet: ochiladigan panel */
@media (max-width: 1023.98px) {
  html.js .nav__toggle { display: inline-grid; place-items: center; }
  html.js .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 1.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--c-night); border-bottom: 1px solid var(--c-line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  html.js .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  html.js .nav__links { flex-direction: column; gap: 0; }
  html.js .nav__links a { padding: .75rem 0; font-size: var(--t-lg); color: var(--c-on-dark); border-bottom: 1px solid var(--c-line-dark); }
  html.js .lang { align-self: flex-start; }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-night); color: var(--c-on-dark-muted);
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 78% 42%, var(--c-glow-soft), transparent 70%),
    radial-gradient(40% 35% at 8% 95%, var(--c-glow-cyan), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }

.hero__title { color: var(--c-white); font-size: var(--t-h1); letter-spacing: -.02em; max-width: 15ch; }
.hero__slogan {
  margin-top: 1.25rem; width: fit-content;
  font: 600 var(--t-lg)/1.3 var(--f-display);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: .625rem; max-width: 44ch; font-size: var(--t-md); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__hub {
  --hub-r: .36;
  position: relative; container-type: inline-size;
  width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto;
}
.hero__mark {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 40%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 36px var(--c-glow));
}
.hub__node {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  padding: .5rem .875rem; border-radius: var(--r-pill);
  background: var(--c-night-2); border: 1px solid var(--c-line-dark-strong);
  color: var(--c-on-dark); font: 600 var(--t-xs)/1 var(--f-body); white-space: nowrap;
  box-shadow: 0 8px 24px -12px var(--c-glow);
  /* JS'siz joylashuv: aylana bo'ylab; JS kelgach sekin aylantiradi */
  transform: translate(
    calc(-50% + cos(var(--a)) * var(--hub-r) * 100cqi),
    calc(-50% + sin(var(--a)) * var(--hub-r) * 100cqi)
  );
}

@media (min-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 4.5rem) 0 5.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__hub { --hub-r: .4; width: min(100%, 480px); }
  .hub__node { font-size: var(--t-sm); padding: .625rem 1rem; }
}

/* =========================================================
   6. Bo'limlar — umumiy
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-paper-2); }
.section--dark { background: var(--c-night); color: var(--c-on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.h2 { font-size: var(--t-h2); letter-spacing: -.015em; max-width: 22ch; }
.section__head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Bitta reveal: pastdan sekin chiqish. JS ishlamasa — hammasi ko'rinadi */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   7. Biz haqimizda
   ========================================================= */
.about { display: grid; gap: 2.5rem; }
.about__p { margin-top: 1.25rem; max-width: 58ch; font-size: var(--t-md); }
.about__p:first-of-type { color: var(--c-ink); }

.stats { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.stat {
  display: flex; flex-direction: column; gap: .375rem;
  padding: 1.375rem 1.5rem; border-radius: var(--r-md);
  background: var(--c-paper); border: 1px solid var(--c-line);
}
.stat__value {
  width: fit-content;
  font: 700 clamp(2rem, 1.6rem + 1.5vw, 2.75rem)/1.05 var(--f-display); letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: var(--t-sm); color: var(--c-muted); }

@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { flex-direction: row; align-items: center; gap: 1.5rem; }
  .stat__value { min-width: 5ch; }
}

/* =========================================================
   8. Xizmatlar
   ========================================================= */
.services { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.service {
  padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--c-paper); border: 1px solid var(--c-line);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, opacity .6s var(--ease);
}
.service:hover { transform: translateY(-3px); border-color: var(--c-line-strong); box-shadow: 0 20px 40px -28px var(--c-shadow); }
.service__icon {
  width: 48px; height: 48px; margin-bottom: 1.25rem;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--c-blue-soft); color: var(--c-blue);
}
.service__title { font-size: var(--t-h3); }
.service__text { margin-top: .5rem; color: var(--c-muted); }
.service__points { margin-top: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--c-line); display: grid; gap: .5rem; }
.service__points li { position: relative; padding-left: 1.5rem; font-size: var(--t-sm); line-height: 1.5; color: var(--c-ink-soft); }
.service__points li::before {
  content: ""; position: absolute; left: .25rem; top: .32em; width: .375rem; height: .7rem;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue); transform: rotate(45deg);
}

@media (min-width: 640px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* =========================================================
   9. Portfolio (tablar)
   ========================================================= */
.work { display: grid; gap: 1.5rem; }
.work__tabs {
  position: relative; display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
}
.work__tabs::-webkit-scrollbar { display: none; }
.work__tab {
  flex: 0 0 auto; min-height: 44px; padding: .75rem 1.125rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; text-align: left;
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-paper); color: var(--c-ink); font: inherit; cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .2s, background-color .2s, color .2s;
}
.work__tab:hover { border-color: var(--c-line-strong); }
.work__tab:active { background: var(--c-paper-2); }
.work__tab[aria-selected="true"] { background: var(--c-night); border-color: var(--c-night); color: var(--c-white); }
.work__tab-name { font: 700 var(--t-base)/1.3 var(--f-display); }
.work__tab-type { display: none; font-size: var(--t-xs); color: var(--c-muted); }
.work__tab[aria-selected="true"] .work__tab-type { color: var(--c-on-dark-muted); }
html:not(.js) .work__tabs { display: none; }

.case { display: grid; gap: 1.75rem; }
.case[hidden] { display: none; }
.case:focus-visible { outline-offset: 8px; border-radius: var(--r-lg); }
html:not(.js) .case + .case { margin-top: 4rem; }

.case__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  border-radius: var(--r-lg); background-color: var(--c-night);
  background-image:
    radial-gradient(60% 60% at 50% 50%, var(--c-glow-soft), transparent 75%),
    radial-gradient(var(--c-line-dark) 1px, transparent 1.2px);
  background-size: auto, 22px 22px;
}
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.map { width: 100%; height: 100%; }
.map__s1 { stop-color: var(--c-cyan); }
.map__s2 { stop-color: var(--c-blue); }
.map__s3 { stop-color: var(--c-navy); }
.map__orbit { fill: none; stroke: var(--c-line-dark-strong); stroke-dasharray: 3 7; }
.map__line { stroke: var(--c-line-dark-strong); stroke-width: 1.25; }
.map__flow { stroke: var(--c-cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 22; animation: flow 2.2s linear infinite; }
.map__pill { fill: var(--c-night-2); stroke: var(--c-line-dark-strong); }
.map__label { fill: var(--c-on-dark); font: 500 14px var(--f-body); text-anchor: middle; dominant-baseline: central; }
.map__hex { filter: drop-shadow(0 0 22px var(--c-glow)); }
.map__center { fill: var(--c-white); font: 700 15px var(--f-display); text-anchor: middle; dominant-baseline: central; }
.map__center--sm { font-size: 13px; }
@keyframes flow { to { stroke-dashoffset: -46; } }

/* telefonda ixcham sxema: yozuvlar o'qiladigan o'lchamda qoladi */
.map--compact { display: none; }
.map--compact .map__label { font-size: 13px; }
.map--compact .map__center { font-size: 13px; }
.map--compact .map__center--sm { font-size: 11.5px; }
@media (max-width: 639.98px) {
  .case__media--map { aspect-ratio: 1; }
  .case__media--eco { aspect-ratio: 36 / 42; }
  .map--wide { display: none; }
  .map--compact { display: block; }
}

/* ekotizim: 12 tizim bitta markazga ulangan, qo'shnilar o'zaro bog'langan */
.map--eco .map__label { font-size: 12.5px; }
.map--eco.map--compact .map__label { font-size: 11.5px; }
.map__ring { stroke: var(--c-line-dark-strong); stroke-width: 1; stroke-dasharray: 2 5; }
.map__pulse { fill: var(--c-glow-soft); transform-box: fill-box; transform-origin: center; animation: pulse 3.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .95; transform: scale(1.1); } }

.case__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.case__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.case__type { width: 100%; color: var(--c-muted); }
.badge {
  display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: var(--r-pill);
  background: var(--c-blue-soft); color: var(--c-blue-ink); font-size: var(--t-xs); font-weight: 600;
}
.case__steps { margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.case__steps > div { padding-top: 1rem; border-top: 1px solid var(--c-line); }
.case__steps dt { font-weight: 600; color: var(--c-ink); }
.case__steps dd { margin: .375rem 0 0; }
.case__link { margin-top: 1.75rem; }

@media (min-width: 768px) { .case__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }
@media (min-width: 1024px) {
  .work { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .work__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .work__tab { padding: 1rem 1.25rem; }
  .work__tab-type { display: block; }
}

/* =========================================================
   10. Asoschi
   ========================================================= */
.founder { display: grid; gap: 2.5rem; }
.founder__photo {
  position: relative; overflow: hidden; display: grid; place-items: center;
  width: 100%; max-width: 440px; aspect-ratio: 4 / 5;
  border-radius: var(--r-lg); border: 1px solid var(--c-line-dark);
  background-color: var(--c-night-2);
  background-image:
    radial-gradient(55% 45% at 50% 50%, var(--c-glow-soft), transparent 75%),
    radial-gradient(var(--c-line-dark) 1px, transparent 1.2px);
  background-size: auto, 22px 22px;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__mono {
  width: 58%; aspect-ratio: 1; display: grid; place-items: center;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: var(--grad);
}
.founder__mono span { font: 700 clamp(3rem, 2.2rem + 3.5vw, 5rem)/1 var(--f-display); color: var(--c-white); letter-spacing: -.02em; }

.founder__role { margin-top: .5rem; color: var(--c-cyan-text); font-weight: 600; }
.founder__story p { margin-top: 1rem; max-width: 60ch; font-size: var(--t-md); }
.founder__story p:first-child { margin-top: 1.5rem; }
.founder__quote { margin: 2rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--c-line-dark); }
.founder__quote p { font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.625rem)/1.4 var(--f-display); color: var(--c-white); max-width: 34ch; }
.founder__quote p::before { content: open-quote; }
.founder__quote p::after { content: close-quote; }
:lang(ru) .founder__quote { quotes: "«" "»"; }
:lang(uz) .founder__quote, :lang(en) .founder__quote { quotes: "“" "”"; }

.founder__social { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.social {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.125rem;
  border: 1px solid var(--c-line-dark-strong); border-radius: var(--r-pill);
  color: var(--c-on-dark); text-decoration: none; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.social .ico { width: 18px; height: 18px; color: var(--c-cyan-text); }
.social:hover { border-color: var(--c-cyan); background: var(--c-veil); }

.values__title { font-size: var(--t-h3); }
.values__list { margin-top: 1.25rem; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.value { padding-top: 1.125rem; border-top: 1px solid var(--c-line-dark); }
.value__title { display: block; color: var(--c-white); font: 600 var(--t-base)/1.3 var(--f-display); }
.value p { margin-top: .375rem; }

@media (min-width: 640px) { .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 4.5rem; align-items: start; }
  .values { grid-column: 1 / -1; padding-top: 1rem; }
  .values__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* =========================================================
   11. Ish jarayoni (timeline)
   ========================================================= */
.steps { position: relative; display: grid; gap: 2rem; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: var(--grad); opacity: .3;
}
.step { position: relative; padding-left: 4rem; min-height: 44px; }
.step__num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 var(--t-sm)/1 var(--f-display); color: var(--c-blue);
  background: var(--c-paper); border: 1.5px solid var(--c-blue);
  box-shadow: 0 0 0 6px var(--c-paper);
}
.step__title { font-size: var(--t-h3); padding-top: .5rem; }
.step__text { margin-top: .5rem; color: var(--c-muted); max-width: 40ch; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .steps::before { left: 22px; right: calc((100% - 6rem) / 5 - 22px); top: 21px; bottom: auto; width: auto; height: 2px; }
  .step { padding-left: 0; padding-top: 4.25rem; }
  .step__title { padding-top: 0; }
}

/* =========================================================
   12. Texnologiyalar
   ========================================================= */
/* 5 guruh: backend, frontend, AI, integratsiyalar, infratuzilma — logotiplar o'z rangida */
.tech { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.tech__group {
  padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--c-paper); border: 1px solid var(--c-line);
  transition: border-color .2s, opacity .6s var(--ease), transform .6s var(--ease);
}
.tech__group:hover { border-color: var(--c-line-strong); }
.tech__name { font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--c-muted); }
.tech__list { margin-top: 1.125rem; display: grid; gap: .875rem; }
.tech__item { display: flex; align-items: center; gap: .875rem; min-width: 0; color: var(--c-ink); font-weight: 600; font-size: var(--t-base); }
.tech__item .ico {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px;
  background: var(--c-paper-2); color: var(--c-grey);
}
.tech__item--python .ico { color: var(--c-python); }
.tech__item--fastapi .ico { color: var(--c-fastapi); }
.tech__item--nodedotjs .ico { color: var(--c-node); }
.tech__item--postgresql .ico { color: var(--c-postgres); }
.tech__item--sqlite .ico { color: var(--c-sqlite); }
.tech__item--javascript .ico { color: var(--c-js); }
.tech__item--html5 .ico { color: var(--c-html); }
.tech__item--css3 .ico { color: var(--c-css); }
.tech__item--claude .ico { color: var(--c-claude); }
.tech__item--googlegemini .ico { color: var(--c-gemini); }
.tech__item--ai .ico { color: var(--c-blue); }
.tech__item--telegram .ico { color: var(--c-telegram); }
.tech__item--sap .ico { color: var(--c-sap); }
.tech__item--googlesheets .ico { color: var(--c-sheets); }
.tech__item--meta .ico { color: var(--c-meta); }
.tech__item--linux .ico { color: var(--c-linux); }
.tech__item--nginx .ico { color: var(--c-nginx); }

@media (min-width: 640px) { .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* =========================================================
   13. Mijozlar fikri
   ========================================================= */
.reviews { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.review {
  height: 100%; margin: 0; padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  border-radius: var(--r-lg); background: var(--c-paper-2); border: 1px solid var(--c-line);
}
.review blockquote { margin: 0; }
.review blockquote p { color: var(--c-ink); font-size: var(--t-md); }
.review figcaption { display: flex; align-items: center; gap: .875rem; }
.review__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--c-white); font: 700 var(--t-base)/1 var(--f-display);
}
.review__name { display: block; color: var(--c-ink); font-weight: 600; }
.review__project { display: block; font-size: var(--t-sm); color: var(--c-muted); }

@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* =========================================================
   14. Aloqa va forma
   ========================================================= */
.contact { display: grid; gap: 2.5rem; }
.contact__lead { margin-top: 1rem; max-width: 40ch; font-size: var(--t-md); }
.channels { margin-top: 2rem; display: grid; gap: .25rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; min-height: 48px; padding: .5rem 0;
  color: var(--c-on-dark); text-decoration: none; min-width: 0;
}
.channel > .ico { flex: none; width: 20px; height: 20px; color: var(--c-cyan-text); }
.channel__label { display: block; font-size: var(--t-xs); color: var(--c-on-dark-muted); }
.channel__value { display: block; font-weight: 600; overflow-wrap: anywhere; }
a.channel:hover .channel__value { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }

.form {
  position: relative; display: grid; gap: 1.125rem; align-content: start;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-lg); background: var(--c-night-2); border: 1px solid var(--c-line-dark);
}
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--c-on-dark); }
.field__opt { font-weight: 400; color: var(--c-on-dark-muted); }
.input {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 1px solid var(--c-line-dark-strong); border-radius: var(--r-sm);
  background: var(--c-night); color: var(--c-white);
  font: inherit; font-size: var(--t-base);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s;
}
.input::placeholder { color: var(--c-placeholder); }
.input:hover { border-color: var(--c-on-dark-muted); }
.input:focus-visible { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px var(--c-focus-ring); border-radius: var(--r-sm); }
.input[aria-invalid="true"] { border-color: var(--c-danger); }
.input:disabled { opacity: .6; cursor: not-allowed; }
textarea.input { min-height: 128px; resize: vertical; }
.select { position: relative; display: block; }
.select .input { padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 1.125rem; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--c-on-dark-muted); border-bottom: 2px solid var(--c-on-dark-muted);
  transform: translateY(-70%) rotate(45deg);
}
.select option { background: var(--c-night); color: var(--c-white); }
.field__error { font-size: var(--t-sm); color: var(--c-danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: .25rem; }
.form__status { min-height: 1.5em; font-size: var(--t-sm); }
.form__status[data-state="ok"] { color: var(--c-success); }
.form__status[data-state="error"] { color: var(--c-danger); }

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full, .form__submit, .form__status { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
}

/* =========================================================
   15. Footer
   ========================================================= */
.footer { padding: 3.5rem 0 2rem; background: var(--c-night); color: var(--c-on-dark-muted); border-top: 1px solid var(--c-line-dark); }
.footer__grid { display: grid; gap: 2rem; }
.footer__about { margin-top: 1rem; max-width: 36ch; }
.footer__links { display: grid; gap: .25rem; align-content: start; }
.footer__links a { display: inline-block; padding: .375rem 0; color: var(--c-on-dark-muted); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--c-white); }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: var(--t-sm);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer__legal { color: var(--c-on-dark-muted); text-underline-offset: 3px; transition: color .2s; }
.footer__legal:hover { color: var(--c-white); }

/* =========================================================
   15a. Loyiha galereyasi (3 skrinshot), botlar ro'yxati, kattalashtirish oynasi
   ========================================================= */
.case__gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10;
  border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-paper-2); cursor: zoom-in;
}
.shot--main { grid-column: 1 / -1; border-radius: var(--r-lg); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot:focus-visible { outline-offset: 3px; border-radius: var(--r-md); }
.case__note { margin-top: -1rem; font-size: var(--t-xs); color: var(--c-muted); }

/* keys raqamlari: faqat tekshiriladigan qiymatlar (content/*.json → metrics) */
.case__metrics { margin-top: 1.5rem; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.case__metrics li { padding: 1rem 1.125rem; border-radius: var(--r-md); background: var(--c-paper-2); border: 1px solid var(--c-line); min-width: 0; }
.case__metric { display: block; width: fit-content; font: 700 clamp(1.5rem, 1.25rem + .9vw, 2rem)/1.1 var(--f-display); letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metric-label { display: block; margin-top: .375rem; font-size: var(--t-sm); line-height: 1.45; color: var(--c-muted); }
@media (min-width: 640px) { .case__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.case__bots { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.case__bots-title { font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--c-muted); }
.bots { margin-top: .875rem; display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); }
.bot { display: grid; gap: .875rem; align-content: start; min-width: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--c-ink-soft); }
.bot__info { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.bot__shot {
  display: block; overflow: hidden; aspect-ratio: 16 / 10; cursor: zoom-in;
  border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-night);
}
.bot__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.bot__shot:hover img { transform: scale(1.03); }
@media (min-width: 768px) { .bot__shot { aspect-ratio: 3 / 4; } }
/* bitta telefon/Telegram skrinshoti: qorong'i panel o'rtasida, to'liq balandlikda */
.shot--phone {
  display: flex; align-items: center; justify-content: center; border-color: var(--c-night); background-color: var(--c-night);
  background-image: radial-gradient(60% 70% at 50% 50%, var(--c-glow-soft), transparent 75%), radial-gradient(var(--c-line-dark) 1px, transparent 1.2px);
  background-size: auto, 22px 22px;
}
.shot--phone img { width: auto; height: 92%; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 60px -24px var(--c-glow); }
.shot--phone:hover img { transform: scale(1.02); }
@media (max-width: 639.98px) { .shot--phone { aspect-ratio: 4 / 5; } }
.bot .ico { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--c-blue-soft); color: var(--c-telegram); }
.bot__name { display: block; color: var(--c-ink); font-weight: 600; }
@media (min-width: 768px) { .bots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: var(--c-night-glass); }
.lightbox__img {
  display: block; width: auto; height: auto; max-width: min(96vw, 1600px); max-height: 90vh;
  border-radius: var(--r-md); box-shadow: 0 30px 80px -20px var(--c-glow);
}
.lightbox__close {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-line-dark-strong); background: var(--c-night-glass); color: var(--c-white);
  transition: background-color .2s;
}
.lightbox__close:hover { background: var(--c-night); }
.lightbox__close .ico { width: 20px; height: 20px; }

/* =========================================================
   15b. Ko'p beriladigan savollar
   ========================================================= */
.faq { display: grid; gap: 2rem; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); transition: border-color .2s; }
.faq__item[open] { border-color: var(--c-line-strong); }
.faq__q {
  list-style: none; cursor: pointer; min-height: 56px; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: var(--r-md); color: var(--c-ink); font: 600 var(--t-base)/1.4 var(--f-display);
  transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: translateY(2px) rotate(-135deg); }
.faq__q:hover { color: var(--c-blue-ink); }
.faq__q:active { background: var(--c-paper-2); }
.faq__a { padding: 0 1.25rem 1.25rem; max-width: 70ch; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; } }

/* rozilik belgisi (forma) */
.field .check { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--t-sm); font-weight: 400; color: var(--c-on-dark-muted); cursor: pointer; }
.check__box { flex: none; width: 20px; height: 20px; margin: .125rem 0 0; accent-color: var(--c-blue); cursor: pointer; }
.check__box[aria-invalid="true"] { outline: 2px solid var(--c-danger); outline-offset: 2px; }
.check a { color: var(--c-cyan-text); text-underline-offset: 3px; }

/* telefonda suzuvchi Telegram tugmasi */
.float-tg {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.125rem;
  border-radius: var(--r-pill); background: var(--grad-btn); color: var(--c-white);
  font: 600 var(--t-sm)/1 var(--f-body); text-decoration: none;
  box-shadow: 0 12px 30px -10px var(--c-glow);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s;
}
.float-tg .ico { width: 20px; height: 20px; }
.float-tg:active { transform: translateY(1px); }
.float-tg.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
@media (min-width: 1024px) { .float-tg { display: none; } }

/* cookie xabari (Yandex Metrika yoqilganda) */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1rem 1.125rem; border-radius: var(--r-md);
  background: var(--c-night-glass); border: 1px solid var(--c-line-dark-strong); color: var(--c-on-dark-muted);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px var(--c-shadow); font-size: var(--t-sm);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; }
.cookie a { color: var(--c-cyan-text); text-underline-offset: 3px; }
html.cookie-open .float-tg { bottom: calc(132px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .cookie { right: auto; max-width: 560px; } html.cookie-open .float-tg { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* =========================================================
   15c. Oddiy sahifalar: maxfiylik siyosati, 404
   ========================================================= */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--c-night); color: var(--c-on-dark-muted); }
.page h1, .page h2 { color: var(--c-white); }
.page__head { border-bottom: 1px solid var(--c-line-dark); }
.page__bar { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page__main { flex: 1; max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page__meta { margin-top: .75rem; font-size: var(--t-sm); }
.prose h2 { margin-top: 2rem; font-size: var(--t-h3); }
.prose p { margin-top: .5rem; max-width: 68ch; }
.page__back { margin-top: 2.5rem; }
.page__code {
  width: fit-content; font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--f-display);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page__nf { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--c-line-dark); display: grid; gap: .75rem; justify-items: start; }
.page__foot { padding-block: 1.5rem; border-top: 1px solid var(--c-line-dark); font-size: var(--t-sm); }

/* =========================================================
   16. Kam harakat rejimi
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .map__flow { animation: none; stroke-dasharray: none; opacity: .25; }
  .btn__spinner { animation-duration: 2.4s; }
  .btn, .service, .nav, .nav__menu, .nav__bars, .nav__bars::before, .nav__bars::after { transition: none; }
  .btn--primary:hover, .service:hover { transform: none; }
  .float-tg, .float-tg.is-hidden, .faq__q, .faq__q::after { transition: none; }
  .map__pulse { animation: none; opacity: .6; }
  .shot img, .bot__shot img, .lightbox__close { transition: none; }
  .shot:hover img { transform: none; }
}
