:root {
  --blue: #2637f0;
  --blue-2: #2d3df5;
  --blue-deep: #101dc0;
  --blue-darker: #0c1799;
  --ink: #0e1330;
  --muted: #5a6080;
  --field: #eef0f6;
  --border: #e1e3ec;
  --danger: #e23b5a;
  --page-bg: #f4f6fc;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

@keyframes szPop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Layout ---------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob--1 { top: -160px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(38,55,240,0.10), transparent 70%); }
.blob--2 { bottom: -200px; right: -140px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(38,55,240,0.08), transparent 70%); }

.shell {
  position: relative;
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  justify-content: center;
}
.col--form { flex: 1 1 420px; max-width: 520px; min-width: 320px; }
.col--card { flex: 1 1 400px; max-width: 440px; min-width: 320px; }

/* ---------- Header / logo ---------- */
.lhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.logo { height: 42px; width: auto; display: block; }
.flags { display: none; gap: 8px; }

/* ---------- Headline ---------- */
.headline {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.9vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.headline__accent { color: var(--blue); }
.subtitle { margin: 0 0 30px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 430px; }

/* ---------- Form ---------- */
.form { display: block; }
.field, .phone { margin-bottom: 16px; }
.field {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--field);
  border-radius: 999px;
  padding: 20px 24px;
}
.field::placeholder, .phone__input::placeholder { color: #9aa1bd; }

.phone {
  display: flex;
  align-items: center;
  background: var(--field);
  border-radius: 999px;
  height: 64px;
}
.phone__code { display: flex; align-items: center; gap: 9px; padding: 0 16px 0 22px; height: 100%; }
.phone__plus { font-size: 17px; font-weight: 700; }
.phone__div { width: 1px; height: 30px; background: #d7dae6; }
.phone__input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 17px; color: var(--ink); padding: 0 22px; height: 100%; }

.field.is-bad, .phone.is-bad { box-shadow: 0 0 0 2px var(--danger); }

.error { color: var(--danger); font-size: 14px; font-weight: 600; margin: -6px 4px 14px; }

.submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  padding: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-deep));
  box-shadow: 0 18px 38px -14px rgba(38,55,240,0.75);
  transition: transform .15s ease, filter .15s ease;
}
.submit:hover { transform: translateY(-2px); filter: brightness(1.04); }
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Language buttons ---------- */
.langrow { display: flex; gap: 14px; margin-top: 18px; }
.langbtn {
  display: flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink);
  transition: all .15s ease;
}
.langbtn.is-active { border-color: transparent; background: var(--ink); color: #fff; }

/* flags */
.flag { width: 24px; height: 17px; border-radius: 3px; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.flag--uz { background: linear-gradient(#1eb4e6 0 33.33%, #fff 33.33% 66.66%, #1eae6a 66.66%); }
.flag--ru { background: linear-gradient(#fff 0 33.33%, #1b48c4 33.33% 66.66%, #e23b5a 66.66%); }
.phone__code .flag { width: 26px; height: 18px; }

.flagbtn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 36px; border-radius: 11px; cursor: pointer;
  border: 1.5px solid #e8eaf2; background: #fff;
}
.flagbtn.is-active { border-color: var(--blue); background: #eef0ff; }

/* ---------- Success ---------- */
.success {
  animation: szPop .35s ease both;
  background: linear-gradient(160deg, var(--blue), #0e1aa8);
  color: #fff; border-radius: 26px; padding: 36px 34px;
  box-shadow: 0 24px 50px -20px rgba(38,55,240,0.6);
}
.success__check { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.success__title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success__body { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.success__again { margin-top: 20px; background: rgba(255,255,255,0.16); color: #fff; border: none; border-radius: 999px; padding: 12px 24px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.success__again:hover { background: rgba(255,255,255,0.26); }

/* ---------- Right brand card ---------- */
.card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--blue-2) 0%, #1422c8 55%, var(--blue-darker) 100%);
  padding: 38px 34px;
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(20,34,200,0.7);
}
.card__ring { position: absolute; top: -70px; right: -50px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.card__brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.card__name { font-size: 21px; font-weight: 800; line-height: 1.1; }
.card__loc { font-size: 14px; color: rgba(255,255,255,0.7); }
.card__tag { position: relative; z-index: 2; font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.92); margin-bottom: 18px; }
.card__divider { position: relative; z-index: 2; height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 18px; }

.logo-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4cff, var(--blue-darker));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.25); flex: none;
}
.logo-badge img { width: 46px; height: auto; }
.logo-badge--lg img { width: 50px; }

.chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.16); }

.contacts { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.contact {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 13px 15px; transition: background .15s ease; cursor: pointer;
}
.contact:hover { background: rgba(255,255,255,0.16); }
.contact__ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; flex: none; }
.contact__ico svg { width: 20px; height: 20px; }
.contact__txt { display: flex; flex-direction: column; }
.contact__txt--grow { flex: 1; min-width: 0; }
.contact__label { font-size: 12px; color: rgba(255,255,255,0.6); }
.contact__value { font-size: 16px; font-weight: 700; }
.contact__ext { width: 16px; height: 16px; flex: none; }
.contacts__row { display: flex; gap: 10px; }
.contact--half { flex: 1; gap: 11px; padding: 13px 14px; }
.contact--half svg { width: 20px; height: 20px; }
.contact--half span { font-size: 13px; font-weight: 700; }

/* ---------- Mobile-only blocks (hidden on desktop) ---------- */
.herocard, .strip { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .page { padding: 0; align-items: stretch; }
  .shell { gap: 0; }
  .col--card { display: none; }
  .col--form {
    flex: 1 1 100%; max-width: 460px; min-width: 0;
    background: #fff; min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 26px 20px;
  }

  .lhead { margin-bottom: 16px; }
  .logo { height: 30px; }
  .flags { display: flex; }
  .langrow { display: none; }

  .headline { font-size: 30px; }
  .subtitle { font-size: 15px; margin-bottom: 18px; }

  .field { font-size: 16px; padding: 15px 20px; margin-bottom: 12px; }
  .phone { height: 54px; margin-bottom: 12px; }
  .phone__input { font-size: 16px; }
  .submit { font-size: 18px; padding: 17px; }

  /* hero card */
  .herocard {
    display: block; position: relative; overflow: hidden;
    border-radius: 24px; padding: 20px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(150deg, var(--blue-2) 0%, #1422c8 60%, var(--blue-darker) 100%);
  }
  .herocard__ring { position: absolute; top: -50px; right: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.07); }
  .herocard__top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .herocard__top .logo-badge { width: 46px; height: 46px; border-width: 1.5px; }
  .herocard__top .logo-badge img { width: 34px; }
  .herocard__name { font-size: 16px; font-weight: 800; line-height: 1.1; }
  .herocard__sub { font-size: 12px; color: rgba(255,255,255,0.7); }
  .herocard__tag { position: relative; z-index: 2; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
  .herocard__big { position: relative; z-index: 2; font-size: 36px; font-weight: 800; color: #ffd23f; letter-spacing: -0.02em; line-height: 1; }

  /* contact strip */
  .strip { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
  .strip__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 16px; background: var(--field); color: #1a2150; }
  .strip__item svg { width: 19px; height: 19px; }
  .strip__item span { font-size: 11px; font-weight: 700; }

  .success { margin-top: 6px; }
}
