:root {
  --accent: #22D3C5;
  --blue: #4C8DFF;
  --navy: #0B1B2E;
  --navy-2: #102640;
  --navy-3: #12294A;
  --line: #1D3A5F;
  --text-dim: #B6C6D8;
  --text-mute: #9FB3C8;
  --light: #F4F7FA;
  --light-line: #DDE5EE;
  --ink-dim: #4A5D73;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--light { background: var(--light); color: var(--navy); }
.section--mid { background: var(--navy-2); }

.display { font-family: 'Unbounded', 'Manrope', sans-serif; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section--light .eyebrow { color: #3B5573; }
.h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2;
  margin-top: 12px; max-width: 760px;
}

/* Buttons */
.btn { display: inline-block; font-weight: 700; font-size: 16px; padding: 16px 30px; border-radius: 999px; }
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--ghost { border: 1px solid #3A5A84; color: #fff; font-weight: 600; padding: 15px 30px; }
.btn--sm { padding: 12px 22px; font-size: 15px; }

/* Header */
.header { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.brand__name span { font-family: 'Manrope', sans-serif; color: var(--text-mute); }
.brand__tag { font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: #C7D6E6; }

/* Hero */
.hero { padding: 72px 24px 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 520px; height: auto; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid #2B4A72; border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; margin-top: 24px; }
.hero__lead { font-size: 18px; color: var(--text-dim); margin-top: 24px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Numbers */
.numbers { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers__row { padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 32px; }
.numbers__item { flex: 1 1 200px; min-width: 0; }
.numbers__value { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 40px; color: var(--accent); }
.numbers__label { font-size: 15px; color: var(--text-dim); margin-top: 4px; }

/* Cards */
.grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.card { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--light-line); border-radius: 16px; padding: 28px; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 20px; margin: 20px 0 8px; }
.card p { color: var(--ink-dim); font-size: 16px; }

.step { flex: 1 1 320px; min-width: 0; background: var(--navy-3); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.step__num { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 14px; color: var(--accent); }
.step h3 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 24px; margin: 16px 0 12px; }
.step p { color: var(--text-dim); font-size: 16px; }

/* Cases */
.cases { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; }
.case { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--light-line); border-radius: 20px; padding: 36px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px; background: #E4F8F5; color: #0B5D55; }
.badge--blue { background: #E8EFFD; color: #1F4FA8; }
.case h3 { font-size: 24px; line-height: 1.3; margin: 18px 0 12px; }
.case > p { color: var(--ink-dim); font-size: 16px; }
.case ul { margin-top: 20px; padding-left: 20px; color: #1B2D44; font-size: 16px; line-height: 1.8; }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; }
.why__item { flex: 1 1 240px; min-width: 0; border-top: 2px solid var(--accent); padding-top: 20px; }
.why__item h3 { font-size: 19px; margin-bottom: 8px; }
.why__item p { color: var(--text-dim); font-size: 15px; }

/* Contacts */
.cta { background: var(--accent); color: var(--navy); border-radius: 28px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cta__text { flex: 1 1 380px; min-width: 0; }
.cta__text h2 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.cta__text p { font-size: 18px; margin-top: 16px; max-width: 520px; }
.cta__list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta__box { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px 24px; }
.cta__box small { display: block; font-size: 13px; color: var(--text-mute); }
.cta__box strong { display: block; font-size: 22px; margin-top: 2px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__row { padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-mute); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cta { padding: 36px 24px; }
  .case { padding: 28px 22px; }
}

/* Форма заявки */
.form { margin-top: 24px; background: var(--navy-3); border: 1px solid var(--line); border-radius: 28px; padding: 48px; }
.form__title { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 26px; }
.form__hint { color: var(--text-dim); margin-top: 8px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.form__row .field { flex: 1 1 260px; min-width: 0; }
.field { margin-top: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #C7D6E6; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: var(--navy); border: 1px solid #2B4A72; border-radius: 12px; padding: 14px 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #6F86A0; }
.field.has-error input, .field.has-error textarea { border-color: #FF8A8A; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; }
.form__submit { margin-top: 24px; border: 0; cursor: pointer; font-family: inherit; }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__status { margin-top: 16px; font-size: 16px; min-height: 24px; }
.form__status.ok { color: var(--accent); font-weight: 600; }
.form__status.err { color: #FF8A8A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer a { text-decoration: underline; }

/* Страница политики */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 24px 88px; }
.doc h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-dim); margin-top: 12px; }
.doc a { color: var(--accent); text-decoration: underline; }

@media (max-width: 600px) { .form { padding: 28px 22px; } }

/* Форма внутри бирюзового блока */
.cta { align-items: flex-start; }
.cta .form { flex: 1 1 400px; min-width: 0; margin: 0; padding: 36px; border-radius: 20px; }
.cta .form .field:first-of-type { margin-top: 20px; }
.cta__steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.cta__steps b { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--navy); color: var(--accent); margin-right: 10px; font-size: 14px; }
.opt { font-weight: 400; color: var(--text-mute); }
@media (max-width: 600px) { .cta .form { padding: 24px 18px; } }

/* Закреплённая шапка */
html { scroll-padding-top: 88px; }
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 27, 46, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.topbar .header { padding: 14px 0; }
@media (max-width: 700px) {
  html { scroll-padding-top: 120px; }
  .topbar .header { padding: 10px 0; gap: 8px; }
  .brand__tag { display: none; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .btn--sm { padding: 9px 16px; font-size: 14px; }
}

/* Исправления */
.form, .form__title { color: #fff; }
@media (max-width: 600px) { .hero { padding-top: 40px; padding-bottom: 56px; gap: 32px; } }

/* География работы */
.hero__geo { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 15px; font-weight: 600; color: #fff; background: var(--navy-3); border: 1px solid #2B4A72; border-radius: 12px; padding: 10px 16px; }

/* Вкладки формы: физическое / юридическое лицо */
[hidden] { display: none !important; }
.tabs { display: flex; gap: 6px; margin-top: 20px; padding: 5px; background: var(--navy-2, #0B1B2E); border: 1px solid var(--line); border-radius: 14px; }
.tab { flex: 1 1 0; border: 0; background: transparent; color: #C7D6E6; font: inherit; font-size: 15px; font-weight: 700; padding: 11px 8px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: #fff; }
.tab.is-active { background: var(--accent); color: #0B1B2E; }
.tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.field__err { display: none; margin-top: 6px; font-size: 13px; line-height: 1.35; color: #FF8A8A; }
.field.has-error .field__err { display: block; }
.field__hint { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--text-dim); }
.field__hint:empty { display: none; }
.field__hint.ok { color: var(--accent); font-weight: 600; }
.field__hint.warn { color: #FFC86B; }
.field input[readonly] { background: #0F2440; color: #E6EEF7; cursor: default; }
.field input:disabled { opacity: .5; }
.form__row { gap: 0 20px; }
