/* ========================================================
   Amity University Tashkent — Landing page
   ======================================================== */

:root {
  --navy:        #14274e;
  --navy-deep:   #0c1733;
  --navy-soft:   #1d3a6e;
  --gold:        #f4c41c;
  --gold-soft:   #ffd54a;
  --gold-deep:   #d9a800;
  --ink:         #182338;
  --muted:       #5a6680;
  --line:        #e6e9f0;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fb;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 24px 60px -28px rgba(20, 39, 78, .35);
  --shadow-sm:   0 10px 30px -16px rgba(20, 39, 78, .3);
  --container:   1180px;
  --sky:         #2f6fe0;
  --sky-soft:    #eaf1fd;
  --serif:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; /* headings: bold sans (KHISO-style) */
  --sans:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bold sans headings (KHISO-style) — tight tracking, heavy weight */
.hero__title,
.section__title,
.hero__chip-num,
.price__value,
.hero__badges strong {
  font-weight: 800;
  letter-spacing: -.03em;
}

/* Gold-highlighted key word inside headings (like KHISO's yellow word) */
.hl { color: var(--gold); }
.section__title .hl { color: var(--gold-deep); }
.section__head--light .section__title .hl,
.form-sec .section__title .hl { color: var(--gold); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy-deep);
  box-shadow: 0 12px 28px -10px rgba(244, 196, 28, .65);
}
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--sm  { padding: 11px 18px; font-size: 14px; }
.btn--lg  { padding: 17px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand__logo { height: 38px; width: auto; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.phone:hover { color: var(--navy-soft); }
.phone svg { color: var(--gold-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(244, 196, 28, .14), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__shield {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 560px;
  opacity: .06;
  transform: rotate(-8deg);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 24px 84px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
}
.eyebrow__mark { height: 22px; width: auto; }
.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}
.hero__desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, .8);
  margin-top: 18px;
  max-width: 540px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__badges li { font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero__badges strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-soft);
  font-weight: 800;
  line-height: 1.1;
}

/* hero media */
.hero__media { position: relative; }
.hero__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .12);
  aspect-ratio: 4 / 3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}
.hero__chip--1 {
  left: -22px;
  bottom: 28px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
}
.hero__chip-num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}
.hero__chip-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero__chip--2 {
  right: -16px;
  top: 24px;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  max-width: 180px;
}
.hero__chip--2 svg { color: #15a050; flex: none; }

/* ---------- Section base ---------- */
.section { padding: 92px 0; }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__head--light { color: #fff; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.kicker--light { color: var(--gold-soft); }
.section__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section__sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}
.section__head--light .section__sub { color: rgba(255, 255, 255, .8); }

/* ---------- Why Amity ---------- */
.why { background: var(--bg-soft); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: feat;
}
.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  counter-increment: feat;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature::after {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  color: var(--sky-soft);
}
.feature--accent::after { color: rgba(255, 255, 255, .14); }
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}
.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  margin-bottom: 20px;
}
.feature__icon svg { width: 28px; height: 28px; color: var(--gold-soft); }
.feature h3 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: .98rem; }
.feature--accent {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
}
.feature--accent h3 { color: #fff; }
.feature--accent p { color: rgba(255, 255, 255, .78); }
.feature--accent .feature__icon { background: rgba(244, 196, 28, .16); }

/* ---------- Prices ---------- */
.prices {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(244, 196, 28, .12), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.prices__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease;
}
.price:hover { transform: translateY(-4px); }
.price__flag { font-size: 2rem; line-height: 1; }
.price__country {
  margin-top: 14px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.price__value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2rem;
  margin-top: 10px;
  color: #fff;
}
.price__value span { color: var(--gold-soft); }
.price__per { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.price--best {
  background: linear-gradient(165deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: transparent;
  box-shadow: 0 26px 50px -22px rgba(244, 196, 28, .7);
  transform: scale(1.04);
}
.price--best:hover { transform: scale(1.04) translateY(-4px); }
.price--best .price__country,
.price--best .price__per { color: var(--navy-deep); opacity: .8; }
.price--best .price__value { color: var(--navy-deep); }
.price__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.prices__cta { text-align: center; margin-top: 44px; }

/* ---------- Majors ---------- */
.majors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.major {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.major:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.major__icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  margin-bottom: 12px;
}
.major__icon svg { width: 26px; height: 26px; color: var(--navy); }
.major:hover .major__icon { background: var(--navy); }
.major:hover .major__icon svg { color: var(--gold-soft); }
.major h3 { font-size: 1.2rem; color: var(--navy); font-weight: 700; }
.major p { color: var(--muted); font-size: .96rem; }

/* ---------- Partners ---------- */
.partners { background: var(--bg-soft); }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.partner-logo {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: #fff;
  color: #aeb6c7;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.partner-logo:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Form ---------- */
.form-sec {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.form-sec__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.form-sec__text .section__title { margin-top: 6px; }
.form-sec__perks {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.form-sec__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.form-sec__perks svg { color: var(--gold-soft); flex: none; }

.lead-form {
  background: #fff;
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.field { margin-bottom: 18px; text-align: left; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #aab2c4; }
.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20, 39, 78, .1);
  background: #fff;
}
.field input.is-invalid { border-color: #e0483d; box-shadow: 0 0 0 4px rgba(224, 72, 61, .1); }
.field__error {
  display: block;
  color: #e0483d;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 0;
}
.lead-form__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.lead-form__success {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
  gap: 6px;
}
.lead-form__success svg { color: #15a050; margin-bottom: 8px; }
.lead-form__success h3 { color: var(--navy); font-size: 1.3rem; }
.lead-form__success p { color: var(--muted); }
.lead-form__success[hidden] { display: none; }   /* yashirilganda ko'rinmasin */

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .8);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__logo { height: 56px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 420px; font-size: .95rem; }
.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.phone--lg { color: #fff; font-size: 1.25rem; }
.phone--lg svg { color: var(--gold-soft); }
.footer__bottom {
  padding-top: 22px;
  padding-bottom: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
  .hero__media { max-width: 520px; }
  .why__grid,
  .majors__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }
  .price--best { transform: none; }
  .price--best:hover { transform: translateY(-4px); }
  .partners__grid { grid-template-columns: repeat(4, 1fr); }
  .form-sec__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 38px; }
  .topbar__inner { height: 64px; }
  .brand__logo { height: 30px; }
  .phone span { display: none; }          /* keep icon only on mobile */
  .topbar__right { gap: 12px; }
  .hero__chip--1 { left: 10px; }
  .hero__chip--2 { right: 8px; }
  .why__grid,
  .majors__grid,
  .prices__grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .lead-form { padding: 26px; }
  .hero__badges { gap: 12px 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .modal__box { padding: 30px 22px 24px; }
}

/* ---------- Ro'yxatdan o'tish (CTA banner) ---------- */
.form-sec__cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-sec__cta .section__title { margin-top: 6px; }
.form-sec__perks--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 30px;
  gap: 12px 26px;
}

/* ---------- Popup forma (modal) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 51, .62);
  backdrop-filter: blur(4px);
  animation: modal-fade .2s ease;
}
.modal__box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 34px 30px 30px;
  box-shadow: 0 40px 90px -30px rgba(8, 16, 38, .6);
  animation: modal-pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: #e9edf5; color: var(--navy); }
.modal__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -.02em;
  padding-right: 30px;
}
.modal__sub { color: var(--muted); font-size: .96rem; margin: 8px 0 22px; }
.lead-form--bare { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
body.modal-open { overflow: hidden; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
