/* ==========================================================================
   Unity Global — style.css
   Tailwind CDN o'rniga yozilgan mustaqil uslublar fayli (build talab qilmaydi)
   ========================================================================== */

/* ---------- 1. Tokenlar ---------- */
:root {
  --ink:        #12151c;
  --ink-2:      #1b202b;
  --ink-3:      #262c3a;
  --lime:       #8cc63f;
  --lime-600:   #74ac2c;
  --lime-100:   #eef7e0;
  --canvas:     #ffffff;
  --mist:       #f5f7f2;
  --line:       #e5e9df;
  --muted:      #6e7683;
  --muted-dark: #9aa3b0;

  --font-display: "Manrope", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Golos Text", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(18, 21, 28, .06);
  --shadow-md: 0 10px 30px -12px rgba(18, 21, 28, .18);
  --shadow-lg: 0 30px 60px -24px rgba(18, 21, 28, .35);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-xs);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- 2b. Skroll animatsiyasi (komponentlardan oldin — hover
              transformlarini bekor qilmasligi uchun) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 3. Tuzilma ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; }

.section__head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--lime);
  border-radius: 2px;
}
.section--ink .eyebrow { color: var(--lime); }

.section__title { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem); }
.section__subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}
.section--ink .section__subtitle { color: var(--muted-dark); }

/* ---------- 4. Tugmalar ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(140, 198, 63, .8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary:hover { background: var(--lime-600); }

/* yorug'lik yaltirashi */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn--primary:hover::after { left: 115%; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover { background: var(--mist); box-shadow: none; }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- 5. Sarlavha / navigatsiya ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(18, 21, 28, .5);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 29px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: .93rem;
  padding: 6px 0;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--lime);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--lime-600); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Til tanlagich */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--mist);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang__toggle:hover { border-color: var(--lime); }
.lang__toggle .chevron { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(18, 21, 28, .12) inset;
  flex: none;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 208px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 70;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }

.lang__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  font-size: .9rem;
  font-weight: 500;
  text-align: start;
  transition: background-color .16s var(--ease);
}
.lang__option:hover { background: var(--mist); }
.lang__option[aria-selected="true"] { background: var(--lime-100); font-weight: 700; }
.lang__option .check { width: 16px; height: 16px; margin-inline-start: auto; color: var(--lime-600); opacity: 0; }
.lang__option[aria-selected="true"] .check { opacity: 1; }

/* Burger + mobil menyu */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background-color .2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 14px 20px 26px;
  display: grid;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  z-index: 55;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  padding: 13px 8px;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 12px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 9vw, 132px) 0 clamp(64px, 7vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(140, 198, 63, .22), transparent 55%),
    linear-gradient(180deg, rgba(18, 21, 28, .82) 0%, rgba(18, 21, 28, .94) 65%, var(--ink) 100%);
}

/* Signature: logotipdagi «shamolgul» belgisi fon sifatida sekin aylanadi */
.hero__mark {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(560px, 62vw);
  opacity: .07;
  z-index: -1;
  transform: translateY(-50%);
  animation: spin-centered 60s linear infinite;
  pointer-events: none;
}

.hero__inner { max-width: 820px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(140, 198, 63, .35);
  background: rgba(140, 198, 63, .12);
  color: var(--lime);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(140, 198, 63, .7);
  animation: pulse 2.4s infinite;
}

.hero__title {
  font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.1rem);
  margin: 24px 0 20px;
  letter-spacing: -.03em;
}
.hero__title .accent { color: var(--lime); display: block; }

.hero__text {
  color: #c9cfd8;
  font-size: clamp(1rem, .95rem + .3vw, 1.16rem);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  color: #d6dbe2;
}
.hero__points svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

/* ---------- 7. Bayroqlar lentasi ---------- */
.marquee {
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aeb6c1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item .flag { width: 26px; height: 19px; }

/* ---------- 8. Ko'rsatkichlar ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.metric {
  position: relative;
  text-align: center;
  padding: 22px 12px;
}
.metric + .metric::before {
  content: "";
  position: absolute;
  left: 0; top: 22%;
  width: 1px; height: 56%;
  background: var(--line);
}
.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.metric__value .suffix { color: var(--lime-600); }
.metric__label {
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 9. Qadriyat kartalari ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value {
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.value:hover::before { transform: scaleX(1); }
.value__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lime-100);
  color: var(--lime-600);
  margin-bottom: 18px;
}
.value__icon svg { width: 23px; height: 23px; }
.value__title { font-size: 1.06rem; margin-bottom: 8px; }
.value__text { font-size: .9rem; color: var(--muted); }

/* ---------- 10. Jarayon (timeline) ---------- */
.process { position: relative; margin-top: 8px; }
.process__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.process__list::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: 21px;
  height: 2px;
  background: var(--line);
}
.process__list::after {
  content: "";
  position: absolute;
  left: 6%;
  top: 21px;
  height: 2px;
  width: 0;
  background: var(--lime);
  transition: width 1.6s var(--ease);
}
.process.is-visible .process__list::after { width: 88%; }

.step { position: relative; text-align: center; padding-top: 0; }
.step__num {
  position: relative;
  z-index: 1;
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  color: var(--muted);
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.step:hover .step__num { border-color: var(--lime); color: var(--ink); background: var(--lime-100); }
.step__title { font-size: .98rem; margin-bottom: 6px; }
.step__text { font-size: .84rem; color: var(--muted); }

/* ---------- 11. Davlat kartalari ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: start;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.country-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 198, 63, .55);
  box-shadow: var(--shadow-md);
}
.country-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.country-card__flag {
  width: 54px; height: 38px;
  border-radius: var(--r-xs);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(18, 21, 28, .1), var(--shadow-sm);
  transition: transform .35s var(--ease);
}
.country-card:hover .country-card__flag { transform: scale(1.07) rotate(-2deg); }

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}

.country-card__name { font-size: 1.22rem; transition: color .2s var(--ease); }
.country-card:hover .country-card__name { color: var(--lime-600); }
.country-card__text { font-size: .88rem; color: var(--muted); flex: 1; }

.country-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
}
.country-card__living { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.country-card__living svg { width: 15px; height: 15px; color: var(--lime-600); flex: none; }
.country-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime-600);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.country-card__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.country-card:hover .country-card__more svg { transform: translateX(4px); }

/* ---------- 12. Asoschilar ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
.founder {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.founder:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.founder__avatar { border-radius: 50%; object-fit: cover; display: block; }
.founder__name { font-size: 1.35rem; }
.founder__role {
  color: var(--lime-600);
  font-weight: 700;
  font-size: .84rem;
  margin: 5px 0 14px;
}
.founder__bio { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 22px; }
.founder__links {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.founder__links a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s var(--ease);
}
.founder__links a:hover { color: var(--lime-600); }
.icon-badge {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  flex: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-badge svg { width: 16px; height: 16px; }
.founder__links a:hover .icon-badge { background: var(--lime); color: var(--ink); }

/* ---------- 13. Aloqa / footer ---------- */
.footer { background: var(--ink); color: #fff; padding-top: 84px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.footer__logo { height: 38px; width: auto; margin-bottom: 26px; }
.footer__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin-bottom: 16px; }
.footer__text { color: var(--muted-dark); max-width: 460px; margin-bottom: 28px; }

.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 13px; font-size: .92rem; }
.contact-list .icon-badge { background: rgba(255, 255, 255, .07); color: var(--lime); }
.contact-list a:hover { color: var(--lime); }
.contact-list span.label {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 2px;
}

/* Forma */
.form-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .95rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input::placeholder { color: #7d8593; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(255, 255, 255, .1);
}
.field select { appearance: none; background-image: none; cursor: pointer; }
.field select option { background: var(--ink-2); color: #fff; }
.field .select-wrap { position: relative; }
.field .select-wrap svg {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted-dark);
  pointer-events: none;
}
.field.has-error input,
.field.has-error select { border-color: #ef5b5b; }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: .78rem;
  color: #ff8080;
}
.field.has-error .field__error { display: block; }

.form-note {
  margin-top: 14px;
  font-size: .76rem;
  color: var(--muted-dark);
  text-align: center;
}

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: rgba(140, 198, 63, .14); color: var(--lime); border: 1px solid rgba(140, 198, 63, .3); }
.form-status--err { background: rgba(239, 91, 91, .12); color: #ff9a9a; border: 1px solid rgba(239, 91, 91, .3); }
.form-status svg { width: 18px; height: 18px; flex: none; }

.footer__bottom {
  margin-top: 64px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted-dark);
}
.footer__bottom .slogan { font-family: var(--font-display); font-style: italic; color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- 14. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 12, 17, .72);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
  width: min(100%, 800px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .32s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.modal__flag {
  width: 50px; height: 36px;
  border-radius: var(--r-xs);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(18, 21, 28, .1);
  flex: none;
}
.modal__title { font-size: 1.3rem; }
.modal__subtitle {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-top: 3px;
}
.modal__close {
  margin-inline-start: auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  flex: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }

.modal__body {
  padding: 22px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}
.module {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  background: #fff;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .45s var(--ease) forwards;
}
.module:nth-child(odd) { background: var(--mist); }
.module__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.module__icon {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lime-100);
  color: var(--lime-600);
  flex: none;
}
.module__icon svg { width: 16px; height: 16px; }
.module__title { font-size: .98rem; }
.module__text { font-size: .9rem; color: var(--muted); }

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--mist);
  border-top: 1px solid var(--line);
  font-size: .76rem;
  color: var(--muted);
}

/* ---------- 15. Yuqoriga tugmasi ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lime); color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 16. Animatsiyalar ---------- */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@keyframes spin-centered {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(140, 198, 63, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}

/* ---------- 17. Moslashuvchanlik ---------- */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .process__list { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .process__list::before,
  .process__list::after { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__actions .btn { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 36px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .metric:nth-child(3)::before { display: none; }
  .metric:nth-child(odd)::before { display: none; }
  .founders { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .form-card { padding: 22px; }
  .modal__body { padding: 16px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; text-align: start; gap: 20px; }
  .step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; text-align: start; }
  .step__num { margin: 0; }
  .marquee__track { gap: 28px; }
}

/* ---------- 18. Harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .module { opacity: 1; transform: none; }
  .process.is-visible .process__list::after { width: 88%; }
}

/* ---------- 19. Chop etish ---------- */
@media print {
  .site-header, .marquee, .to-top, .modal, .form-card { display: none !important; }
  body { color: #000; }
  .hero, .footer, .section--ink { background: #fff !important; color: #000 !important; }
}

/* ==================== v3: Kirish tugmasi va dinamik jamoa ============ */

/* Header — xodimlar uchun "Kirish" */
.btn--login {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2, #d9ded0);
  gap: 7px;
}
.btn--login:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}
.btn--login svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 1180px) {
  .header__actions .btn--login { padding: 9px 13px; }
}
@media (max-width: 980px) {
  .header__actions .btn--login { display: none; }
}

/* ---------------- Jamoa: avatar va karusel ---------------- */

.founder__avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;                 /* rasm doiradan CHIQMAYDI */
  flex: none;
  display: grid;
  place-items: center;
  background: var(--mist, #f5f7f2);
  /* Yashil halqa (tashqarida chiziladi — ichkarini egallamaydi) */
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--lime, #8cc63f),
    0 8px 20px -10px rgba(140, 198, 63, .8);
}

/* Rasm doirani to'liq to'ldiradi, cho'zilmaydi */
.founder__avatar-wrap > .founder__avatar,
.founder__avatar-wrap > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;      /* portretda yuz kesilmasligi uchun */
  display: block;
}

/* Rasm yo'q — ikonka */
.founder__avatar-wrap.is-empty {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--line-2, #d9ded0);
}
.founder__ph {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  color: var(--lime-600, #74ac2c);
}
.founder__avatar-wrap.is-empty .founder__ph { color: var(--muted-dark, #9aa3b0); }

/* Karusel */
.team-carousel {
  position: relative;
  overflow: hidden;
  padding: 4px;
  margin: 0 -4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.team-carousel.is-static {
  -webkit-mask-image: none;
          mask-image: none;
}
.team-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}
.team-carousel.is-static .team-track {
  justify-content: center;
  flex-wrap: wrap;
}
.team-track > .founder {
  flex: 0 0 clamp(260px, 30%, 340px);
  margin: 0;
}
.team-carousel.is-static .team-track > .founder {
  flex: 0 1 clamp(260px, 30%, 340px);
}

@media (max-width: 720px) {
  .team-track { gap: 16px; }
  .team-track > .founder { flex: 0 0 min(84vw, 320px); }
}

/* -------------------- Telefon maydoni: davlat bayrogʻi -------------------- */
.phone-wrap { position: relative; display: block; }
.phone-flag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: rgba(255, 255, 255, .45);
  z-index: 1;
}
.phone-flag svg { width: 19px; height: 19px; }
.phone-flag img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
  display: block;
}
.phone-wrap #formPhone { padding-left: 52px; }

/* Mobil menyudagi "Kirish" tugmasi */
.nav__login {
  margin-top: 10px;
  gap: 9px;
}
.nav__login svg { width: 17px; height: 17px; flex: none; }
