/* HamkorSoft sayti — uslublar.
   Tartib: shriftlar, tokenlar, asos, umumiy bloklar, keyin bo'limlar sahifadagi tartibda.
   Telefon uslubi asos; 720px dan — ikki ustunli forma, 1024px dan — noutbuk ko'rinishi.
   Harakat faqat html.js bor va foydalanuvchi harakatni kamaytirishni so'ramagan bo'lsa yoqiladi. */

/* ---------- Shriftlar (lokal fayllar, tashqi CDN yo'q) ---------- */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokenlar (maketdagi «grafit» mavzusi bilan bir xil) ---------- */
@property --p {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --ink: #1d2126;
  --ink-2: #40464e;
  --mute: #6c727a;
  --paper: #f4f4f1;
  --band: #e9e9e5;
  --surface: #ffffff;
  --rule: #d6d6d1;
  --rule-strong: #c9c9c3;
  --on-dark: #f4f4f1;
  --mute-on-dark: #b3b8bf;
  --rule-dark: #3a4048;
  --ink-deep: #111418;
  --signal: #1d75f0; /* urg'u rangi = logotip ko'ki: belgilar, nur, fokus */
  --signal-btn: #1b70e8; /* tugma foni: oq matn 4,5:1 dan o'tishi uchun bir oz to'qroq */
  --signal-hover: #165fcc;
  --signal-ink: #ffffff;
  --signal-deep: #1558c0; /* och fonda: fokus chizig'i, bosqich raqami */
  --field: #8b9199;
  --error: #a3312b;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1200px;
  --hdr-h: 64px;

  /* Harakat: butun sayt shu oltita qiymatdan foydalanadi. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms; /* bosish va hover javobi */
  --t-rule: 600ms; /* chiziq chizilishi */
  --t-text: 450ms; /* yozuv tushishi */
  --stagger: 90ms; /* qatorlar orasidagi kechikish */
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(
      0,
      0.006,
      0.025 2.8%,
      0.101 6.1%,
      0.539 18.9%,
      0.721 25.3%,
      0.849 31.5%,
      0.937 38.1%,
      0.968 41.8%,
      0.991 45.7%,
      1.006 50.1%,
      1.015 55%,
      1.017 63.9%,
      1.001
    );
  }
}

@media (min-width: 1024px) {
  :root {
    --hdr-h: 96px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dt,
dd,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;
}

p,
dd {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgb(29 117 240 / 0.25);
}

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

.hdr :focus-visible,
.hero :focus-visible,
.section--ink :focus-visible,
.ftr :focus-visible,
.nf :focus-visible {
  outline-color: var(--signal);
}

.form :focus-visible {
  outline-color: var(--signal-deep);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
}

.br-d,
.br-xl {
  display: none;
}

@media (min-width: 1024px) {
  .br-d {
    display: inline;
  }
}

@media (min-width: 1200px) {
  .br-xl {
    display: inline;
  }
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--signal-btn);
  color: var(--signal-ink);
  font-weight: 600;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Tugmalar va havolalar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  font: 500 0.9375rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    translate var(--t-fast) ease;
}

.btn:active {
  translate: 0 1px;
}

.btn--signal {
  background: var(--signal-btn);
  color: var(--signal-ink);
  font-weight: 600;
}

.btn--signal:hover {
  background: var(--signal-hover);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--ink-deep);
}

.btn--ghost {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgb(244 244 241 / 0.4);
  background: transparent;
  color: var(--on-dark);
  font-size: 0.875rem;
}

.btn--ghost:hover {
  border-color: var(--on-dark);
}

.btn[disabled] {
  cursor: progress;
}

/* Havola chizig'i: ustiga borilganda o'ngga yig'ilib, chapdan qayta chiziladi. */
.link {
  display: inline-block;
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
}

.link--on-dark {
  color: var(--on-dark);
}

@keyframes link-redraw {
  0% {
    background-size: 100% 1px;
    background-position: right bottom;
  }
  45% {
    background-size: 0% 1px;
    background-position: right bottom;
  }
  46% {
    background-size: 0% 1px;
    background-position: left bottom;
  }
  100% {
    background-size: 100% 1px;
    background-position: left bottom;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .link:hover {
    animation: link-redraw 0.5s var(--ease-io);
  }
}

/* ---------- «Chiziq chiziladi, keyin yozuv tushadi» ----------
   .r — tepasida chizig'i bor qator. data-ledger ichida turganda qator ko'ringuncha
   chiziq 0% bo'ladi; ko'ringach chapdan o'ngga chiziladi, ichidagi yozuv biroz keyin chiqadi. */
.r {
  background-image: linear-gradient(var(--rc, var(--rule)), var(--rc, var(--rule)));
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% var(--rw, 1px);
}

.r--strong {
  --rc: var(--ink);
  --rw: 2px;
}

.r--both {
  background-image:
    linear-gradient(var(--rc, var(--rule)), var(--rc, var(--rule))),
    linear-gradient(var(--rc, var(--rule)), var(--rc, var(--rule)));
  background-position:
    left top,
    left bottom;
  background-size:
    100% var(--rw, 1px),
    100% var(--rw, 1px);
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-ledger] .r {
    transition: background-size var(--t-rule) var(--ease-io);
    transition-delay: calc((var(--n, 0) + var(--m, 0)) * var(--stagger));
  }

  .js [data-ledger].r {
    transition: background-size 0.9s var(--ease-io);
  }

  .js [data-ledger]:not(.is-in) .r,
  .js [data-ledger].r:not(.is-in) {
    background-size: 0% var(--rw, 1px);
  }

  .js [data-ledger]:not(.is-in) .r--both {
    background-size:
      0% var(--rw, 1px),
      0% var(--rw, 1px);
  }

  .js [data-ledger] .r > * {
    transition:
      opacity var(--t-text) ease,
      translate var(--t-text) var(--ease-out);
    transition-delay: calc((var(--n, 0) + var(--m, 0)) * var(--stagger) + 180ms);
  }

  .js [data-ledger]:not(.is-in) .r > * {
    opacity: 0;
    translate: 0 8px;
  }
}

/* ---------- Sarlavha paneli ---------- */
.hdr-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 32px;
  pointer-events: none;
}

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--hdr-h);
  color: var(--on-dark);
  transition:
    height 0.3s var(--ease-out),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hdr.is-stuck,
.hdr.is-open {
  background: var(--ink-deep);
  box-shadow: 0 1px 0 var(--rule-dark);
}

@media (min-width: 1024px) {
  .hdr.is-stuck {
    height: 64px;
  }
}

.hdr__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logotip: to'q fon uchun nusxa (to'q ko'k qismi och rangda), manbasi design/brand/ da. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 34px;
  transition: height 0.3s var(--ease-out);
}

.brand--sm .brand__logo {
  height: 30px;
}

@media (min-width: 1024px) {
  .brand__logo {
    height: 40px;
  }

  .hdr.is-stuck .brand__logo {
    height: 34px;
  }

  .brand--sm .brand__logo {
    height: 32px;
  }
}

.hdr__side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  display: flex;
  gap: 14px;
  font-size: 0.875rem;
}

.lang li:not(.is-current) {
  display: none;
}

.lang__item {
  color: var(--mute-on-dark);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

a.lang__item:hover {
  color: var(--on-dark);
}

.lang .is-current .lang__item {
  color: var(--on-dark);
  font-weight: 600;
}

.hdr .btn--ghost {
  display: none;
}

.burger {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  place-content: center;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-dark);
  transition:
    translate 0.25s var(--ease-out),
    rotate 0.25s var(--ease-out),
    opacity 0.15s ease;
}

.hdr.is-open .burger span:nth-child(1) {
  translate: 0 7px;
  rotate: 45deg;
}

.hdr.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.hdr.is-open .burger span:nth-child(3) {
  translate: 0 -7px;
  rotate: -45deg;
}

/* Telefon: menyu panel ostidan ochiladi, bandlar birin-ketin chiqadi. */
@media (max-width: 1023.98px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--hdr-h));
    padding: 8px var(--gutter) 32px;
    overflow: auto;
    background: var(--ink-deep);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.2s ease,
      visibility 0s linear 0.2s;
  }

  .hdr.is-open .nav {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .nav__list a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule-dark);
    color: var(--on-dark);
    font-size: 1.375rem;
    font-weight: 500;
    text-decoration: none;
  }

  .nav__list li {
    opacity: 0;
    translate: 0 -6px;
    transition:
      opacity 0.3s ease,
      translate 0.3s var(--ease-out);
  }

  .hdr.is-open .nav__list li {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--n) * 40ms + 60ms);
  }

  .nav__mark {
    display: none;
  }

  .nav__lang {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    color: var(--mute-on-dark);
  }

  .nav__lang a {
    color: inherit;
    text-decoration: none;
  }

  .nav__lang .is-current {
    color: var(--on-dark);
    font-weight: 600;
  }
}

/* Noutbuk: ko'k kvadrat joriy bo'lim nomi oldiga suriladi. */
@media (min-width: 1024px) {
  /* Ruscha menyu eng uzun: 1024px da ham sig'ishi uchun oraliqlar kenglikka qarab siqiladi. */
  .nav {
    position: relative;
    margin-left: clamp(28px, 28vw - 255px, 150px);
  }

  .nav__list {
    display: flex;
    gap: clamp(20px, 4.3vw - 24px, 38px);
  }

  .nav__list a {
    display: block;
    padding: 8px 0;
    color: var(--mute-on-dark);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--t-fast) ease;
  }

  .nav__list a:hover,
  .nav__list a[aria-current] {
    color: var(--on-dark);
  }

  .nav__mark {
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--signal);
    opacity: 0;
    translate: var(--x, 0px) 0;
    transition:
      translate 0.5s var(--ease-out),
      opacity 0.2s ease;
  }

  .nav.has-mark .nav__mark {
    opacity: 1;
  }

  .lang li:not(.is-current) {
    display: block;
  }

  .nav__lang {
    display: none;
  }

  .hdr .btn--ghost {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

/* ---------- 1. Kirish ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--hdr-h);
  background: linear-gradient(172deg, var(--ink) 0%, var(--ink-deep) 82%);
  color: var(--mute-on-dark);
}

/* Nur alohida qatlam: skript uni sichqoncha tomon sekin suradi. */
.hero__glow {
  position: absolute;
  z-index: -1;
  top: -410px;
  left: calc(100% - 80vw);
  width: 160vw;
  height: 820px;
  background: radial-gradient(ellipse closest-side, rgb(29 117 240 / 0.3), rgb(29 117 240 / 0));
  pointer-events: none;
  will-change: transform;
}

@media (min-width: 1024px) {
  .hero__glow {
    top: -582px;
    left: calc(92% - 792px);
    width: 1584px;
    height: 1164px;
  }
}

.hero__in {
  padding-top: clamp(56px, 8vw, 112px);
}

.hero__title {
  color: var(--on-dark);
  font-size: clamp(2.3125rem, 1.3rem + 3.9vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

@media (min-width: 1024px) {
  .hero__title {
    line-height: 1.05;
    letter-spacing: -0.029em;
  }
}

.hero__lede {
  max-width: 37em;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__cta .btn--signal {
  width: 100%;
  font-size: 1rem;
}

@media (min-width: 720px) {
  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .hero__cta .btn--signal {
    width: auto;
    font-size: 0.9375rem;
  }
}

/* Rekvizit satri */
.strip {
  --rc: var(--rule-dark);
  display: grid;
  margin-top: clamp(64px, 8vw, 100px);
  padding-bottom: 28px;
}

.strip.r {
  background-image: none;
}

.strip__cell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
}

.strip dt {
  font-size: 0.9375rem;
}

.strip dd {
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: right;
}

@media (min-width: 1024px) {
  .strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 28px 0 40px;
  }

  .strip.r {
    background-image: linear-gradient(var(--rc), var(--rc));
  }

  .strip__cell {
    display: block;
    padding: 0;
  }

  .strip__cell.r {
    background-image: none;
  }

  .strip dt {
    margin-bottom: 6px;
    font-size: 0.8125rem;
  }

  .strip dd {
    text-align: left;
  }
}

/* Sahifa ochilishidagi ketma-ketlik: bir marta o'ynaydi. */
@keyframes seq-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ln-rise {
  to {
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js:not(.seq-go) [data-seq],
  .js:not(.seq-go) .hero__title {
    opacity: 0;
  }

  .js.seq-go [data-seq] {
    animation: seq-fade 0.6s ease both;
    animation-delay: calc(var(--at, 0) * 1ms);
  }

  /* Skript sarlavhani qatorlarga bo'ladi; har qator o'z «derazasi» ichida pastdan chiqadi. */
  .hero__title.is-split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .w {
    display: inline-block;
  }

  .ln {
    display: block;
    overflow: hidden;
    margin-block: -0.1em -0.16em;
    padding-block: 0.1em 0.16em;
    white-space: nowrap;
  }

  .ln__in {
    display: block;
    translate: 0 112%;
    animation: ln-rise 0.9s var(--ease-out) forwards;
    animation-delay: calc(var(--n) * 100ms + 160ms);
  }
}

/* ---------- Bo'limlar ---------- */
.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--band {
  background: var(--band);
}

.section--ink {
  background: var(--ink);
  color: var(--mute-on-dark);
}

.h2 {
  font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section--ink .h2 {
  color: var(--on-dark);
}

/* ---------- 2. Yönalişlar ---------- */
.split {
  display: grid;
  gap: 40px;
}

.dir {
  display: grid;
  gap: 10px;
  padding: 26px 0 30px;
}

.dir__title {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.dir__body .link {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 420fr 780fr;
    gap: 0;
  }

  .split .h2 {
    max-width: 9em;
  }

  .dir {
    grid-template-columns: 328px 1fr;
    gap: 0;
    padding: 32px 0 36px;
  }

  .dir__title {
    font-size: 1.375rem;
  }
}

/* ---------- 3. Mahsulotlar ---------- */
.product {
  overflow-x: clip;
}

.product__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(32px, 4vw, 56px);
}

.product__logo {
  width: auto;
  height: 32px;
}

.product__title {
  margin-top: 24px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.3;
}

.product__lede {
  max-width: 34em;
  margin-top: 14px;
}

.facts {
  margin-top: 28px;
}

.fact {
  --rc: var(--rule-strong);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  font-size: 0.9375rem;
}

.fact dt {
  color: var(--mute);
}

.fact dd {
  color: var(--ink);
  font-weight: 500;
}

.product__text .btn {
  width: 100%;
  margin-top: 28px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(29 33 38 / 0.1);
}

.product__media figcaption {
  margin-top: 14px;
  color: var(--mute);
  font-size: 0.8125rem;
}

@media (min-width: 1024px) {
  .product__grid {
    grid-template-columns: 480px 1fr;
    gap: 72px;
    align-items: start;
  }

  .product__logo {
    height: 36px;
  }

  .fact {
    justify-content: flex-start;
  }

  .fact dt {
    flex: none;
    width: 180px;
  }

  .product__text .btn {
    width: auto;
  }

  /* Rasm sahifaning o'ng chetigacha boradi. */
  .product__media {
    margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2));
  }

  .shot {
    border-right: 0;
    border-radius: 10px 0 0 10px;
  }

  .shot img {
    width: max(900px, 100%);
    max-width: none;
  }
}

/* ---------- 4. Iş tartibi ----------
   --p (0…1) — bo'lim bo'ylab skroll ulushi. Uni CSS'ning o'zi boshqaradi (animation-timeline);
   bu imkoniyat bo'lmagan brauzerda skript yozadi. Qolgan hammasi --p dan hisoblanadi. */
.steps {
  --p: 1;
  display: grid;
  margin-top: clamp(32px, 4vw, 48px);
}

.step {
  --lp: clamp(0, calc(var(--p) * var(--count) - var(--i)), 1); /* shu bosqichning o'z ulushi */
  --on: clamp(0, calc(var(--lp) * 4), 1); /* bosqich «yondi»mi */
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--rule-strong);
}

.step__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  scale: var(--lp) 1;
}

/* Chiziq uchidagi ko'k kvadrat: bosqichdan bosqichga o'tadi, oxirgisida to'xtaydi. */
.step::after {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(var(--lp) * (100% - 10px));
  width: 10px;
  height: 10px;
  background: var(--signal);
  opacity: calc(clamp(0, var(--lp) * 60, 1) * clamp(0, (1 - var(--lp)) * 60, 1));
}

.step:last-child::after {
  opacity: clamp(0, var(--lp) * 60, 1);
}

.step__body {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 22px 0 38px;
  opacity: calc(0.3 + 0.7 * var(--on));
}

.step__num {
  padding-top: 5px;
  color: var(--signal-deep);
  font-size: 0.9375rem;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .step__num {
    color: color-mix(in srgb, var(--signal-deep) calc(var(--on) * 100%), var(--mute));
  }
}

.step__title {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.step p {
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }

  .step__body {
    display: block;
    padding: 18px 0 0;
  }

  .step__num {
    display: block;
    padding: 0;
    font-size: 0.875rem;
  }

  .step__title {
    margin-top: 14px;
    font-size: 1.25rem;
  }

  .step p {
    font-size: 0.90625rem;
  }
}

@keyframes steps-progress {
  from {
    --p: 0;
  }
  to {
    --p: 1;
  }
}

@keyframes shot-in {
  from {
    opacity: 0.2;
    translate: 12% 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Ro'yxat tepasi ekranning 82% balandligiga yetganda boshlanadi,
       pasti 52% ga yetganda tugaydi (skriptdagi zaxira formula bilan bir xil). */
    .js .steps {
      animation: steps-progress linear both;
      animation-timeline: view(block 52% 18%);
      animation-range: cover 0% cover 100%;
    }

    .js .shot {
      animation: shot-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* ---------- 5. Kompaniya ---------- */
.about {
  display: grid;
  gap: 40px;
}

.about__text p {
  max-width: 30em;
  margin-top: 20px;
}

.about__text .h2 + p {
  margin-top: 24px;
}

.passport {
  padding: 24px 20px 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

.passport__title {
  padding-bottom: 18px;
  font-size: 1.3125rem;
}

.prow {
  display: grid;
  gap: 4px;
  padding: 14px 0 16px;
}

.prow dt {
  color: var(--mute);
  font-size: 0.875rem;
}

.prow dd {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.prow dd.mono,
.prow dd .mono {
  font-weight: 500;
}

.prow__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.passport__note {
  margin-top: 16px;
  color: var(--mute);
  font-size: 0.8125rem;
}

/* «Nusxa oliş»: bosilganda ko'k kvadrat chiqib, yozuv «Nusxalandi»ga almashadi. */
.copy {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font: 500 0.8125rem/1 var(--sans);
  cursor: pointer;
  transition:
    border-color var(--t-fast) ease,
    color var(--t-fast) ease;
}

.copy:hover,
.copy.is-done {
  border-color: var(--ink);
  color: var(--ink);
}

.copy__sq {
  width: 0;
  height: 8px;
  background: var(--signal);
  transition:
    width 0.35s var(--spring),
    margin-right 0.25s var(--ease-out);
}

.copy.is-done .copy__sq {
  width: 8px;
  margin-right: 8px;
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 420fr 700fr;
    gap: 80px;
    align-items: start;
  }

  .passport {
    padding: 36px 40px 32px;
  }

  .prow {
    grid-template-columns: 255px 1fr;
    gap: 0;
    padding: 16px 0 18px;
  }
}

/* ---------- 6. Aloqa ---------- */
.contact__grid {
  display: grid;
  gap: 36px;
}

.contact__intro p {
  max-width: 28em;
  margin-top: 20px;
}

.contact__addr {
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
}

.contact__addr dt {
  font-size: 0.8125rem;
}

.contact__addr dd {
  margin-top: 6px;
  color: var(--on-dark);
}

.form {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
}

.form__row {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.field input {
  height: 48px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(29 117 240 / 0.4);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--error);
}

.field__err {
  margin-top: 6px;
  color: var(--error);
  font-size: 0.8125rem;
}

/* Yuborilayotganda tugma tagida ko'k chiziq chapdan o'ngga to'ladi. */
.form__submit {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.form__submit::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform-origin: left center;
  scale: 0 1;
}

.form.is-sending .form__submit::after {
  scale: 1 1;
  transition: scale 0.9s var(--ease-io);
}

.form__status {
  padding: 12px 14px;
  border-left: 3px solid var(--signal);
  border-radius: 0 4px 4px 0;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__status[data-kind='err'] {
  border-left-color: var(--error);
}

@media (min-width: 720px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 460fr 660fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'intro form'
      'addr form';
    gap: 40px 80px;
  }

  .contact__intro {
    grid-area: intro;
  }

  .contact__addr {
    grid-area: addr;
    align-self: start;
  }

  .form {
    grid-area: form;
    padding: 36px 40px 40px;
  }
}

/* ---------- Footer ---------- */
.ftr {
  background: var(--ink);
  color: var(--mute-on-dark);
  font-size: 0.875rem;
}

.ftr__in {
  display: grid;
  gap: 12px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--rule-dark);
}

.ftr__lang {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.ftr__lang .is-current {
  color: var(--on-dark);
  font-weight: 600;
}

.ftr__lang a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.ftr__lang a:hover {
  color: var(--on-dark);
}

@media (min-width: 1024px) {
  .ftr__in {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 32px;
  }

  .ftr__lang {
    margin: 0 0 0 auto;
  }
}

/* ---------- 404 sahifasi ---------- */
.nf {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(172deg, var(--ink) 0%, var(--ink-deep) 82%);
  color: var(--mute-on-dark);
}

.nf__in {
  padding-block: 28px 72px;
}

.nf__code {
  margin-top: clamp(64px, 14vh, 140px);
  font-size: 0.9375rem;
}

.nf__title {
  margin-top: 12px;
  color: var(--on-dark);
  font-size: clamp(2.3125rem, 1.3rem + 3.9vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.nf__alt {
  margin-top: 12px;
  font-size: 1.1875rem;
}

.nf__text {
  max-width: 30em;
  margin-top: 28px;
}

.nf__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-top: 40px;
}

/* ---------- Til almashtirish ----------
   Sahifalar orasida brauzerning o'zi silliq o'tadi (view transition). Til almashtirib kelinganda
   (html.no-intro) kirish ketma-ketligi va chiziqlar qayta o'ynamaydi — faqat matn almashadi. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .js.no-intro [data-seq] {
    animation: none;
  }

  .js.no-intro [data-ledger] .r,
  .js.no-intro [data-ledger].r,
  .js.no-intro [data-ledger] .r > * {
    transition: none;
  }
}
