/* Eshit's site: what every page shares (the home page, /mac/). Eshit's own colours (public/eshit.css, the brand
   book in docs/brend) and the visitor's own fonts, as the CSP in _headers loads none: a serif for what is written text,
   the system's sans for what is interface. One accent, the cobalt of the icon. Every value lives in :root; the dark
   block changes colours only. Each page adds its own file (bosh.css, mac/mac.css). */
:root {
  color-scheme: light dark;
  --qogoz: #ffffff;
  --siyoh: #111418;
  --xira: #4a5058;
  --chiziq: rgba(17, 20, 24, .14);
  --kobalt: #0a49c4;
  --kobalt-bosilgan: #083a9c;
  --kobalt-usti: #ffffff;
  --tugma-yuz: #ffffff;
  --tugma-cheti: #c5cad2;
  --tugma-osti: #a9b0ba;
  --tugma-soya: rgba(17, 20, 24, .12);

  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-kichik: 15px;
  --fs: 19px;
  --fs-namuna: clamp(24px, 3.3vw, 40px);
  --fs-h2: clamp(30px, 3.8vw, 44px);
  --fs-shior: clamp(50px, 14.5vw, 128px);

  --chet: clamp(20px, 6vw, 96px);
  --keng: 1280px;
  --oraliq: clamp(56px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --qogoz: #000000;
    --siyoh: #f5f7fa;
    --xira: #b4bac2;
    --chiziq: rgba(245, 247, 250, .2);
    --kobalt: #9cc0ff;
    --kobalt-bosilgan: #7fa9f2;
    --kobalt-usti: #06224d;
    --tugma-yuz: #1f2226;
    --tugma-cheti: #3d424a;
    --tugma-osti: #101214;
    --tugma-soya: rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--qogoz); color: var(--siyoh); font: 400 var(--fs)/1.55 var(--sans); }
h1, h2, p, dl, dd, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 4px; border-radius: 4px; }

.ust, main, .ost { max-width: var(--keng); margin-inline: auto; padding-inline: var(--chet); }

/* The top line: the name, and one way down to the download. */
.ust { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.nom { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; text-decoration: none; }
.nom-belgi { flex: none; }
.ust-havola {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--chiziq);
  border-radius: 20px;
  font-size: var(--fs-kichik);
  font-weight: 600;
  text-decoration: none;
}
.ust-havola:hover { border-color: var(--siyoh); }

.kursor {
  display: inline-block;
  width: .075em;
  min-width: 2px;
  height: 1.02em;
  margin-left: .06em;
  vertical-align: -.14em;
  background: var(--kobalt);
  animation: lip 1.1s steps(1) infinite;
}
@keyframes lip { 50% { opacity: 0; } }

.asosiy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 15px;
  background: var(--kobalt);
  color: var(--kobalt-usti);
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
}
.asosiy:hover { background: var(--kobalt-bosilgan); }

/* The rest: one subject a section, its heading on the left where there is room. */
.bolim {
  display: grid;
  gap: 20px clamp(32px, 6vw, 96px);
  padding-block: var(--oraliq);
  border-top: 1px solid var(--chiziq);
}
.bolim h2 { font: 600 var(--fs-h2)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.bolim-matn { display: grid; gap: 16px; max-width: 34em; }
.havola { font-weight: 650; color: var(--kobalt); text-underline-offset: 4px; }
.xira { color: var(--xira); font-size: var(--fs-kichik); }

.malumot { max-width: 40em; }
.malumot > div { display: grid; gap: 2px; padding-block: 15px; border-top: 1px solid var(--chiziq); }
.malumot > div:first-child { padding-top: 0; border-top: 0; }
.malumot dt { color: var(--xira); font-size: var(--fs-kichik); font-weight: 600; }

.ost { padding-block: 28px 120px; border-top: 1px solid var(--chiziq); color: var(--xira); font-size: var(--fs-kichik); }

@media (min-width: 860px) {
  .bolim { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .malumot > div { grid-template-columns: 9em minmax(0, 1fr); gap: 20px; }
  .malumot dt { padding-top: .22em; }
}

/* Privacy: a heading and three short points, one beside another where there is room. */
.maxfiy { display: grid; gap: 36px; padding-block: var(--oraliq); border-top: 1px solid var(--chiziq); }
.maxfiy h2 { font: 600 var(--fs-h2)/1.1 var(--serif); letter-spacing: -.012em; }
.maxfiy-uch { display: grid; gap: 28px clamp(28px, 4vw, 56px); }
.maxfiy h3 { margin: 0 0 8px; font-size: 20px; font-weight: 650; line-height: 1.3; }
.maxfiy p { max-width: 26em; color: var(--xira); }
@media (min-width: 860px) {
  .maxfiy-uch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The pill, where the app shows it: bottom centre, black on any background. */
.kapsula {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 21px;
  background: rgba(0, 0, 0, .92);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  font: 500 15px/1.3 var(--sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px) scale(.9);
  transform-origin: 50% 100%;
  transition: opacity .16s ease-out, transform .3s cubic-bezier(.2, .9, .3, 1.25), visibility 0s .3s;
}
.kapsula.korinadi { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.kapsula.xira-matn .kapsula-matn { color: rgba(255, 255, 255, .62); }

.tolqin, .nuqtalar { display: none; align-items: center; justify-content: center; width: 27px; height: 18px; flex: none; }
.kapsula.tinglash .tolqin, .kapsula.kutish .nuqtalar { display: flex; }
.tolqin { gap: 3px; }
.tolqin i { width: 3px; height: 18px; border-radius: 2px; background: #ffffff; transform: scaleY(.25); animation: tolqin .82s ease-in-out infinite; }
.tolqin i:nth-child(1) { animation-delay: -.5s; }
.tolqin i:nth-child(2) { animation-delay: -.2s; animation-duration: .7s; }
.tolqin i:nth-child(3) { animation-delay: -.65s; animation-duration: .6s; }
.tolqin i:nth-child(4) { animation-delay: -.1s; animation-duration: .76s; }
.tolqin i:nth-child(5) { animation-delay: -.4s; }
@keyframes tolqin { 50% { transform: scaleY(1); } }
.nuqtalar { gap: 4px; }
.nuqtalar i { width: 5px; height: 5px; border-radius: 50%; background: #ffffff; opacity: .3; animation: nuqta 1.2s ease-in-out infinite; }
.nuqtalar i:nth-child(2) { animation-delay: .18s; }
.nuqtalar i:nth-child(3) { animation-delay: .36s; }
@keyframes nuqta { 30% { opacity: 1; } 60% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kursor, .tolqin i, .nuqtalar i { animation: none; }
  .tolqin i { transform: scaleY(.7); }
  .nuqtalar i { opacity: .8; }
  .kapsula { transition: none; }
}
