/* Дизайн по макету Figma «СитиАрбитр / Шаблон» (посадка 1440). Только оформление: тексты, лого, телефон, реквизиты не затрагиваются. */
@font-face {
  font-family: "gsans";
  src: url(../fonts/GoogleSans-sub.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg-dark: #161E3E;
  --fg-text: #262B45;
  --fg-gray: #6B7080;
  --fg-blue: #2750DD;
  --fg-red: #F52124;
  --fg-card: #F8FAFB;
  --fg-hero: #F8F9FD;
  --fg-input: #EDF0FA;
}

body, .ptr, .ptb, .pale, .header, .hero, .forms, .footer, .modal, .form__input, .modal__input,
.hero__title, .hero__text, .link-btn-red, .question-title, .radio-item, .personal__title, .progressbar__text,
.progressbar__status, .progressbar__htext, .switch__text, .footer__container p, .footer__container a {
  font-family: "gsans", "ptr", Arial, sans-serif;
}
body { color: var(--fg-dark); }
.ptb, .hero__title, .question-title, .personal__title, .forms__first--h1 { font-weight: 700; }

/* ---------- Шапка ---------- */
.header { background: var(--fg-hero); padding: 22px 0; }
.header .header__right { flex-direction: row; align-items: center; gap: 28px; width: auto; }
.header .header__right--phone { font-size: 15px; font-weight: 500; color: var(--fg-dark); }
.header .header__right--btn {
  background: #EEF1FD;
  border: none;
  border-radius: 8px;
  color: var(--fg-blue);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
}

/* ---------- Первый экран ---------- */
.hero { background: var(--fg-hero); }
.hero .hero__container { padding-top: 40px; }
.hero .hero__left { gap: 0; padding-bottom: 56px; }
.hero .hero__title {
  order: 1;
  color: var(--fg-dark);
  font-size: 30px;
  line-height: 1.2;
  max-width: 600px;
  margin: 0 0 22px;
}
.hero .hero__title .accent { color: var(--fg-blue); }
.hero .hero__text { order: 2; font-size: 20px; line-height: 1.35; color: var(--fg-gray); max-width: 600px; margin: 0 0 36px; }
.hero .hero__btn {
  order: 3;
  margin: 0;
  background: var(--fg-red);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 34px;
}
.hero .hero__cards { order: 4; margin-top: 76px; gap: 28px; grid-template-columns: repeat(4, auto); justify-content: start; width: auto; }
.hero .hero__card { background: none; border: none; box-shadow: none; padding: 0; border-radius: 0; align-items: flex-start; text-align: left; }
.hero .hero__card--icon { width: 28px; height: 28px; margin: 0 0 16px; }
.hero .hero__card--text { font-size: 16px; line-height: 1.25; color: var(--fg-text); text-align: left; }
.hero .hero__right { align-items: flex-end; }

/* ---------- Блок с квизом ---------- */
.forms { background: #fff; padding-top: 64px; }
.forms .forms__first--h1 { color: var(--fg-dark); font-size: 30px; line-height: 1.2; max-width: 780px; margin-bottom: 8px; }
.forms .forms__first--block { background: var(--fg-card); border-radius: 24px; padding: 40px 36px 36px; gap: 40px; }
.forms .forms__second { background: var(--fg-card); border-radius: 24px; padding: 40px 36px; }
.question-title { color: var(--fg-dark); font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
.question__input { margin-bottom: 12px; gap: 12px; }
.radio-item, .radio-item span { font-size: 18px; line-height: 1.3; color: var(--fg-text); cursor: pointer; }

input[type="radio"].pointer {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #C4C9D6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input[type="radio"].pointer:checked { border-color: var(--fg-blue); background: var(--fg-blue); box-shadow: inset 0 0 0 3.5px #fff; }

/* прогресс */
.forms .forms__right--sticky { background: var(--fg-card); border-radius: 24px; padding: 36px; max-height: none; }
.progressbar__text { font-size: 16px; font-weight: 400; color: var(--fg-gray); }
.progressbar__status { font-size: 52px; font-weight: 300; line-height: 1.15; color: var(--fg-dark); padding-bottom: 8px; }
.progressbar__common { background: #E0F3EC; height: 8px; margin: 6px 0 24px; }
.progressbar__complete { background: #0BA35B; }
.progressbar__htext { font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--fg-text); }
.progressbar--main { background: var(--fg-card); box-shadow: none; border-radius: 24px; }

/* контактные данные */
.personal__title { font-size: 32px; font-weight: 700; color: var(--fg-dark); }
.inputs { max-width: 390px; }
.form__input {
  width: 100%;
  box-sizing: border-box;
  height: 58px;
  padding: 0 22px;
  background: var(--fg-input);
  border: none;
  border-radius: 12px;
  font-size: 17px;
  color: var(--fg-dark);
}
.form__input::placeholder { color: #9AA0B5; opacity: 1; }
.form__input:focus { outline: 2px solid var(--fg-blue); outline-offset: 0; }
.input__item { background: none; border-radius: 12px; margin-bottom: 12px; }
.input__item--3 { margin-top: 0; }
.form__input--btn, .form__input.link-btn-red {
  height: 60px;
  background: var(--fg-red);
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
}
.personal__policy { max-width: 390px; gap: 8px; }
.personal__policy--block span, .personal__policy--block span a { font-size: 14px; line-height: 1.4; color: var(--fg-gray); opacity: 1; }
.personal__policy--block span a { text-decoration: underline; }
/* чекбоксы: в <head> страниц есть встроенные стили с !important, поэтому тут тоже !important */
.personal__policy .personal__policy--block { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.personal__policy .input__checkbox { display: flex; margin: 2px 0 0; flex: none; }
.personal__policy .checkbox-input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border: 1.5px solid #C4C9D6 !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  accent-color: #2750DD;
}
.personal__policy .checkbox-input:checked { background-color: #2750DD !important; border-color: #2750DD !important; }
.personal__policy .checkbox-input:focus { border-color: #2750DD !important; outline: none; }
/* ---------- Согласия: больше воздуха между текстами ---------- */
.personal__policy { gap: 18px !important; }
.personal__policy .personal__policy--block + .personal__policy--block { margin-top: 18px !important; }
.personal__policy .personal__policy--block { gap: 12px; }
.personal__policy--block span, .personal__policy--block span a { line-height: 1.5; }
.personal__policy .input__checkbox { margin-top: 3px; }

.form-switch input:checked + i { background-color: var(--fg-blue); }
.switch__text { font-size: 20px; line-height: 1.25; font-weight: 500; color: var(--fg-dark); }
.form-switch i { margin-right: 0; }

/* ---------- Подвал ---------- */
.footer { border-top: none; }
.footer__container p, .footer__container a { font-size: 16px; line-height: 1.5; color: #7A7F94; opacity: 1; }
.footer__requisites { gap: 12px; }
.footer__links { gap: 12px; }
@media only screen and (min-width: 1025px) {
  .footer .footer__container { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto; gap: 48px; }
  .footer .footer__links a { white-space: nowrap; }
}

/* ---------- Адаптив ---------- */
@media only screen and (max-width: 1024px) {
  .hero .hero__title, .forms .forms__first--h1 { font-size: 26px; }
  .header .header__right { gap: 16px; }
}
@media only screen and (max-width: 768px) {
  .header { padding: 14px 0; }
  .header .header__right { flex-direction: column; align-items: flex-end; gap: 8px; width: auto; flex: none; }
  .header .header__right--btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; width: auto; }
  .header .header__right--phone { font-size: 14px; }

  .hero .hero__container { padding-top: 28px; gap: 0; }
  .hero .hero__left { padding-bottom: 8px; }
  .hero .hero__title { font-size: 24px; line-height: 1.2; margin: 0 0 14px; max-width: none; }
  .hero .hero__text { font-size: 15px; line-height: 1.35; margin: 0 0 24px; max-width: none; }
  .hero .hero__btn { width: 100%; box-sizing: border-box; text-align: center; font-size: 17px; padding: 20px 16px; }
  .hero .hero__cards { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; width: 100%; }
  .hero .hero__card { flex-direction: row; align-items: center; gap: 14px; }
  .hero .hero__card--icon { width: 24px; height: 24px; margin: 0; flex: none; }
  .hero .hero__card--text { font-size: 16px; line-height: 1.25; margin: 0; }
  .hero .hero__card--text br { display: none; }
  .hero .hero__right { display: flex; justify-content: center; align-items: flex-end; margin-top: 8px; grid-column: auto; }
  .hero .hero__right--img { width: 100%; max-width: 420px; height: auto; display: block; }

  .forms { padding-top: 40px; }
  .forms .forms__first--h1 { font-size: 24px; margin-bottom: 4px; }
  .forms .forms__first--block, .forms .forms__second { padding: 24px; border-radius: 20px; }
  .question-title { font-size: 18px; margin: 0 0 14px; }
  .radio-item, .radio-item span { font-size: 17px; }
  .personal__title { font-size: 26px; line-height: 1.2; }
  .form__input { height: 56px; }
  .form__input--btn, .form__input.link-btn-red { font-size: 18px; height: 58px; }
  .personal__policy { max-width: none; }
  .switch { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
  .form-switch { flex-direction: row; align-items: center; gap: 16px; margin: 0; max-width: none; }
  .form-switch i { margin: 0; }
  .switch__text { font-size: 18px; margin: 0; }
  .progressbar__status { font-size: 40px; }

  .footer { padding-top: 32px; }
  .footer__container { gap: 24px; }
  .footer__container p, .footer__container a { font-size: 16px; }
}
