/* umar.marketing V2 — monoxrom dizayn tizimi */

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  --bg: #09090B;
  --bg-2: #111113;
  --card: #18181B;
  --elev: #222225;
  --text: #FAFAFA;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --line: #303034;
  --line-2: #232327;
  --cta: #FFFFFF;
  --cta-text: #09090B;
  --danger: #F87171;
  --danger-text: #FCA5A5;

  /* qora shisha: shaffof fon + blur + ingichka yorug' chegara + yuqori qirradagi aks */
  --glass: rgba(22, 22, 25, .5);
  --glass-strong: rgba(17, 17, 19, .66);
  --glass-field: rgba(9, 9, 11, .55);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-line-hover: rgba(255, 255, 255, .16);
  --glass-hi: rgba(255, 255, 255, .08);
  --glass-blur: blur(22px) saturate(140%);
  --glass-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 60px -32px rgba(0, 0, 0, .85);
  --glass-sheen: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .015) 32%, rgba(255, 255, 255, 0) 55%);

  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --hdr: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--cta); color: var(--cta-text); font-weight: 600;
}
.skip:focus { top: 12px; }

.mu { color: var(--text-3); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2);
}
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }

.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 36ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: #E4E4E7; }
.btn-primary .ic { transition: transform .25s var(--ease); }
.btn-primary:hover .ic { transform: translate(2px, -2px); }
.btn-ghost {
  border-color: var(--glass-line-hover); color: var(--text);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; height: 56px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: var(--text);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.hdr.is-scrolled {
  background: rgba(9, 9, 11, .58);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--glass-line);
}
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 700;
}
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--text-2); }
.nav a { transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--hdr) + clamp(40px, 8vw, 104px)); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .label { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 84px); line-height: .98; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance;
}
.hero .lead { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-media {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--glass-line-hover); background: var(--card);
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .95);
  aspect-ratio: 4 / 4.4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.media-cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(17, 17, 19, .45);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.media-cap-t { display: flex; flex-direction: column; line-height: 1.25; }
.media-cap-t b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.media-cap-t small { font-size: 13px; color: var(--text-2); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; }
  .hero-media { aspect-ratio: 4 / 5; }
}

/* ---------- shisha fonlar (bitta manba rasmning kesimlari, faqat kulrang tus) ----------
   Rasm hech qachon cho'zilmaydi: object-fit: cover, kenglik manba o'lchamidan oshmaydi.
   Chetlari mask bilan qora fonga eriydi — section'lar orasida chegara ko'rinmaydi. */
.hero, .sec { position: relative; isolation: isolate; }
.sec-bg { position: absolute; z-index: -1; pointer-events: none; overflow: hidden; }
.sec-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* mobil: rasm section tepasida to'liq kenglikda, pastga qarab eriydi */
.sec-bg { inset: 0 0 auto 0; height: min(100%, 560px); opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 100%); }
.sec-bg--hero { height: 600px; opacity: .62;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); }
.sec-bg--hero img { object-position: 30% 0; }
.sec-bg--portfolio img, .sec-bg--about img { transform: scaleX(-1); }
.sec-bg--apply { inset: auto 0 0 0; height: min(100%, 640px); opacity: .55;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 60%, transparent 100%); }
/* matn ustida qo'shimcha qoraytirish — kontrast doim yuqori */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 9, 11, .45), rgba(9, 9, 11, .32) 45%, rgba(9, 9, 11, .6)); }

@media (min-width: 960px) {
  .sec-bg { inset: 0 auto 0 auto; height: auto; width: min(58vw, 941px); opacity: .55;
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 35%, transparent 100%); }
  /* hero: o'ng tomonda, portret kartasi ortida; matn tomoni qora qoladi */
  .sec-bg--hero { right: 0; width: min(62vw, 941px); opacity: .85; }
  .sec-bg--hero img { object-position: 0 0; }
  .hero::before { background: linear-gradient(to right, rgba(9, 9, 11, .9) 0%, rgba(9, 9, 11, .55) 38%, rgba(9, 9, 11, 0) 62%); }
  .sec-bg--portfolio { left: 0; opacity: .5; }
  .sec-bg--services { right: 0; opacity: .5; }
  .sec-bg--about { right: 0; opacity: .55; }
  .sec-bg--apply { left: 50%; right: auto; top: 0; bottom: 0; width: min(100vw, 1100px); transform: translateX(-50%); opacity: .6;
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 55%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 65% 60% at 50% 55%, #000 30%, transparent 100%); }
}

/* umumiy shisha sirt: aks (sheen) kontent ostida, fon ustida */
.case, .svc, .form-card, .facts { position: relative; isolation: isolate; }
.case::before, .svc::before, .form-card::before, .facts::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--glass-sheen);
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 136px); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
  max-width: 17ch; text-wrap: balance;
}

/* ---------- portfolio ---------- */
.cases {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.case {
  flex: 0 0 min(84%, 360px); scroll-snap-align: start;
  display: grid; grid-template-areas: 'media' 'body'; grid-template-rows: auto 1fr;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.case-media { grid-area: media; position: relative; height: 200px; overflow: hidden; background: rgba(34, 34, 37, .6); }
.case-bg {
  position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; object-fit: cover;
  filter: grayscale(1) blur(22px) brightness(.72) contrast(1.2);
  transform: scale(1.05);
}
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 16, 18, .85), rgba(16, 16, 18, 0) 72%); }
.case-who {
  grid-area: media; align-self: end; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px; padding: 20px 24px;
}
.case-av {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid rgba(255, 255, 255, .14); filter: grayscale(1);
  transition: filter .4s var(--ease);
}
.case-who h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.case-who p { font-size: 14px; color: var(--text-2); }
.case-body { grid-area: body; display: flex; flex-direction: column; padding: 8px 24px 28px; }
.case-num { font-size: clamp(52px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.case-unit { margin: 8px 0 24px; font-size: 15px; color: var(--text-2); }
.case-desc { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--glass-line); font-size: 15px; color: var(--text-2); }
.case:hover { border-color: var(--glass-line-hover); transform: translateY(-3px); }
.case:hover .case-av { filter: grayscale(0); }

.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.rail-dots button {
  width: 24px; height: 24px; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.rail-dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--line);
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.rail-dots button[aria-current='true']::before { width: 20px; background: var(--text); }

@media (min-width: 900px) {
  .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .rail-dots { display: none; }
}

/* ---------- services ---------- */
.services { display: grid; gap: 12px; }
.svc {
  display: flex; flex-direction: column; min-height: 260px; padding: 28px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.svc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-line-hover); background: rgba(255, 255, 255, .03); }
.svc-ic .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.svc-no { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.svc h3 { margin-top: auto; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.svc p { margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 32ch; }
.svc:hover { border-color: var(--glass-line-hover); background: rgba(30, 30, 34, .56); transform: translateY(-3px); }

@media (min-width: 760px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .svc { min-height: 320px; padding: 32px; }
}

/* ---------- about ---------- */
.about { display: grid; gap: 48px; align-items: end; }
.statement {
  font-size: clamp(26px, 3.3vw, 44px); line-height: 1.24; letter-spacing: -0.03em; font-weight: 400;
}
.pill {
  display: inline-flex; vertical-align: middle; align-items: center;
  padding: 4px 8px 4px 4px; margin: 0 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line-hover);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transform: translateY(-.06em);
}
.pill img {
  width: 1.1em; height: 1.1em; border-radius: 50%; object-fit: cover; filter: grayscale(1);
  border: 2px solid #1A1A1D;
}
.pill img + img { margin-left: -.32em; }
.facts {
  padding: 6px 24px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--glass-line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 14px; color: var(--text-3); }
.facts dd { font-size: 15px; font-weight: 500; text-align: right; }

@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 80px; }
}

/* ---------- apply ---------- */
.apply { display: grid; gap: 32px; }
.apply h2 { max-width: 14ch; }
.apply-copy .label { margin-bottom: 20px; }
.apply-copy .lead { margin-top: 20px; }
.assure { display: grid; gap: 12px; margin-top: 32px; font-size: 15px; color: var(--text-2); }
.assure li { display: flex; align-items: center; gap: 12px; }
.assure .ic { color: var(--text); }

.form-card {
  padding: 20px; border-radius: var(--r-lg);
  background: var(--glass-strong); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.form { display: grid; gap: 20px; }
.row2 { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--text); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--text-3); font-weight: 400; }
.opt::before { content: '· '; }

.form input[type='text'], .form input[type='tel'], .form select {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--glass-field); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-sm);
  font-size: 16px; color: var(--text); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input::placeholder { color: #5A5A63; }
.form input:hover, .form select:hover { border-color: #45454C; }
.form input:focus-visible, .form select:focus-visible { border-color: var(--text-2); box-shadow: 0 0 0 3px rgba(250, 250, 250, .1); outline: none; }
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.form select:invalid { color: #5A5A63; }
.form select option { color: var(--text); background: var(--card); }

.affix { position: relative; }
.affix-t { position: absolute; top: 50%; transform: translateY(-50%); right: 16px; color: var(--text-3); pointer-events: none; font-size: 15px; }
.form .affix input { padding-right: 48px; }
.affix-pre .affix-t { right: auto; left: 16px; }
.form .affix-pre input { padding-right: 16px; padding-left: 34px; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 10px; border-radius: 12px;
  background: var(--glass-field); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; line-height: 1.25; color: var(--text-2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover span { border-color: #45454C; color: var(--text); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.hint { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px !important; font-weight: 400 !important; color: var(--text-2) !important; line-height: 1.45; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; background: var(--glass-field); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.consent input:checked {
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309090B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--text);
}
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }
.consent a:hover { text-decoration-color: var(--text); }

.err { display: none; font-size: 13px; color: var(--danger-text); }
.field.is-invalid .err { display: block; }
.field.is-invalid input[type='text'], .field.is-invalid input[type='tel'], .field.is-invalid select,
.field.is-invalid .chip span, .field.is-invalid .consent input { border-color: var(--danger); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading { cursor: progress; background: #D4D4D8; }
.btn.is-loading .spinner { display: block; }
.btn:disabled { cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--danger-text); background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .32); }
.form-status.is-shown { display: block; }

.success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 12px; outline: none; }
.success[hidden] { display: none; }
.success-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: var(--bg); margin-bottom: 8px; }
.success-ic .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.success h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.success p { color: var(--text-2); max-width: 30ch; }

@media (min-width: 560px) {
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .form-card { padding: 28px; }
}
/* Chiplar soni forma kengligiga bog'liq (ekranga emas): tor formada matn ikki qatorga bo'linmaydi. */
.form-card { container-type: inline-size; }
@container (min-width: 460px) {
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .apply {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start;
    padding: 56px; border-radius: 40px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 40%), rgba(14, 14, 16, .42);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
    box-shadow: inset 0 1px 0 var(--glass-hi), 0 60px 120px -60px rgba(0, 0, 0, .9);
  }
  .sec-apply .wrap.apply { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
  .apply-copy { position: sticky; top: calc(var(--hdr) + 40px); }
  .form-card { padding: 32px; }
}

/* ---------- matnli sahifalar (maxfiylik, 404) ---------- */
.doc { max-width: 760px; padding-top: calc(var(--hdr) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(64px, 9vw, 120px); }
.doc h1 { margin: 16px 0 24px; font-size: clamp(38px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.doc h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.doc p, .doc li { color: var(--text-2); font-size: 17px; }
.doc ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.doc .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-2); padding-block: 28px; color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv-hide { opacity: 0; transform: translateY(18px); }

@media (max-width: 759px) {
  .nav { display: none; }
}
@media (max-width: 380px) {
  .hdr .btn-sm { padding: 0 14px; }
  .cta-row .btn { width: 100%; }
}

/* blur qo'llab-quvvatlanmasa yoki foydalanuvchi shaffoflikni kamaytirgan bo'lsa — to'q, o'qilishi oson sirtlar */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .case, .svc, .facts, .form-card, .pill { background: var(--card); }
  .media-cap, .hdr.is-scrolled { background: rgba(17, 17, 19, .94); }
  @media (min-width: 960px) { .apply { background: var(--bg-2) !important; } }
}
@media (prefers-reduced-transparency: reduce) {
  .sec-bg, .hero::before { display: none; }
  .case, .svc, .facts, .form-card, .pill { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .media-cap, .hdr.is-scrolled { background: rgba(17, 17, 19, .96); }
  @media (min-width: 960px) { .apply { background: var(--bg-2) !important; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv-hide { opacity: 1; transform: none; }
  .spinner { animation-duration: 1.6s; }
  .case:hover, .svc:hover { transform: none; }
}
