/* Реплика стилей дефолтного V1 из landing-quiz (templates/scss/landing.scss,
   components/RadioButton/radio.scss, HeaderV10, ContactFormV4, AboutBanners, Footer) */

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

/* HTML-атрибут hidden сильнее любых display-правил — слайды скрыты по умолчанию */
[hidden] { display: none !important; }


body {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
@media screen and (max-width: 1200px) {
  body { font-size: 16px; }
}

a { color: inherit; text-decoration: none; }
.link:hover { color: #ffcc00; }
.text-center { text-align: center; }
.fw-medium { font-weight: 500; }

.container {
  width: 100%;
  max-width: 1360px;
  padding: 0 10px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---- sections ---- */
.section {
  min-height: 100vh;
  min-height: 100svh; /* мобильные браузеры: шаг влезает в видимую область */
  display: flex;
  padding: 40px 0;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.section_final { padding-bottom: 16px; }
@media screen and (max-width: 768px) {
  .section { padding: 12px 0 24px; }
  .section_final { padding-bottom: 4px; }
  .section_start { padding: 56px 0 24px; }
}

/* ---- header / hero ---- */
.header { position: absolute; top: 0; left: 0; right: 0; }
.header .container {
  padding: 27px 50px 27px 45px;
  display: block;
}
.header__row { display: flex; align-items: center; justify-content: space-between; }
.header-menu__link { font-size: 16px; }
.logo:hover { opacity: 0.6; }
.logo img { display: block; }
@media (max-width: 768px) {
  .header .container { padding: 12px; }
}

.main-title {
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #242424;
}
@media screen and (max-width: 1200px) { .main-title { font-size: 40px; } }
@media screen and (max-width: 768px) {
  .main-title { font-size: 32px; line-height: 1.2; white-space: normal; }
}

.hero__introduce {
  font-size: 26px;
  line-height: 36px;
  margin: 24px auto 30px;
  max-width: 857px;
  color: #161616;
}
@media screen and (max-width: 1200px) {
  .hero__introduce { font-size: 18px; line-height: 28px; margin: 16px auto 20px; }
}

/* ---- button (жёлтая пилюля V1) ---- */
.button {
  display: inline-flex;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  text-align: center;
  border-radius: 46px;
  border: none;
  font-weight: 500;
  font-size: 24px;
  background: #F5DC44;
  color: #000;
  min-height: 60px;
  padding: 0 32px;
}
.button:hover:not(:disabled) { background: #ffcc00; }
.button:active:not(:disabled) { background: #DCC850; }
.button:disabled { cursor: default; background: #9F9F9F; }
@media screen and (max-width: 768px) {
  .button { font-size: 16px; min-height: 48px; }
}
@media screen and (max-width: 576px) {
  .button { width: 100%; padding: 0 16px; }
}

/* ---- step (секция вопроса с пунктирной линией) ---- */
.step { position: relative; }
.step::after {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px dashed #F2C94C;
  z-index: 1;
  content: '';
}
.step_first::after { top: 50%; }
.step_last::after { bottom: 50%; }

.step__block {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}

.step__title { display: flex; }
.step__title .title { display: flex; align-items: center; min-height: 48px; }
.step__title--sub { margin-top: 32px; }

.title { font-weight: 600; font-size: 32px; }
.title--sub { font-size: 24px; }
@media screen and (max-width: 992px) {
  .title { font-size: 24px; }
  .title--sub { font-size: 18px; }
}

.step__number {
  min-width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 100px;
  padding: 0 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  margin-right: 16px;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .step__block { padding: 10px; }
  .step__title .title { font-size: 18px; min-height: 30px; }
  .step__number { font-size: 16px; min-width: 30px; height: 30px; margin-right: 8px; }
}

.step__row { display: flex; flex-wrap: wrap; margin: 8px -8px 0; }
.step__item { padding: 16px 8px 0; }

.step__bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}
.step__result {
  flex-grow: 1;
  max-width: 800px;
  padding-right: 20px;
  min-height: 70px;
  display: flex;
  align-items: center;
  font-size: 30px;
}
@media screen and (max-width: 1200px) { .step__result { font-size: 18px; } }
@media screen and (max-width: 576px) {
  .step__bottom { flex-direction: column-reverse; gap: 12px; }
  .step__result { padding-right: 0; min-height: 0; }
}

/* ---- radio-пилюли ---- */
.radio { display: block; cursor: pointer; position: relative; }
.radio__input { opacity: 0; visibility: hidden; position: absolute; left: -99999px; }
.radio__button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  border: 3px solid #E0E0E0;
  border-radius: 59px;
  padding: 4px 32px;
  transition: 0.3s ease-in-out;
  background: #fff;
}
.radio__input:checked + .radio__button { border-color: #258CDC; }
.radio__flag {
  display: block;
  width: 35px;
  min-width: 35px;
  font-size: 36px;
  line-height: 1;
  margin-right: 10px;
}
.radio__text { display: block; font-weight: 500; }
@media screen and (max-width: 768px) {
  .radio__button { min-height: 48px; border-width: 2px; padding: 4px 20px; }
  .radio__flag { width: 26px; min-width: 26px; font-size: 26px; }
}

/* ---- back: из подвопроса — к родительскому списку, иначе — на прошлый шаг ---- */
.step__back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.54);
  padding: 0;
  margin-bottom: 12px;
  transition: 0.3s ease-in-out;
}
.step__back:hover { color: #000; }
.total .step__back { margin-bottom: 16px; }

/* подвопросы (регион/опыт) показываются вместо родительского списка (инвариант 11) */
#region-options .radio__button { min-height: 48px; border-width: 2px; }

/* ---- dates ---- */
.step__row--dates { gap: 16px; padding: 16px 8px 0; }
.date-field { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.date-field span { font-size: 16px; color: rgba(0, 0, 0, 0.54); }
.date-field input {
  font: inherit;
  padding: 12px 20px;
  border: 3px solid #E0E0E0;
  border-radius: 59px;
  background: #fff;
}
.date-field input:focus { outline: none; border-color: #258CDC; }
@media screen and (max-width: 576px) {
  .step__row--dates { flex-direction: column; }
}

/* ---- get inspired ---- */
.get-inspired {
  min-height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  background-image:
    url('img/instamock.png'),
    url('img/water-wave-sym.svg'),
    linear-gradient(180deg, #9DFBE3 0%, #B8E7FC 100%);
  background-position: top 300px center, top 420px center, center;
  background-repeat: no-repeat, repeat-x, no-repeat;
  background-size: clamp(310px, 80%, 505px), auto, cover;
}
@media screen and (min-width: 820px) {
  .get-inspired { background-position: top 380px center, top 420px center, center; }
}
.get-inspired .step__result { align-items: flex-start; margin-top: 20px; }
.get-inspired .step__bottom { margin-top: auto; justify-content: center; }

/* ---- contact (ContactFormV4) ---- */
.total__title { max-width: 1000px; margin: 0 auto 32px; }
.total-form { max-width: 900px; margin: 0 auto; }
.total-form__row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.total-form__col { flex: 1 1 300px; }
.input {
  width: 100%;
  font: inherit;
  min-height: 60px;
  padding: 4px 32px;
  border: 3px solid #E0E0E0;
  border-radius: 59px;
  background: #fff;
}
.input:focus { outline: none; border-color: #258CDC; }
.total-form__nospam { font-size: 16px; color: rgba(0, 0, 0, 0.54); }
.total-form__button { margin-top: 24px; }
.total-form__agree {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.lead-form__error { color: red; font-style: italic; font-size: 16px; margin-top: 16px; }
/* контактный шаг влезает в 360×640 (инвариант 11) */
@media screen and (max-width: 768px) {
  .total__title { font-size: 20px; margin-bottom: 20px; }
  .input { min-height: 48px; padding: 4px 20px; }
  .total-form__row { gap: 10px; margin-bottom: 16px; }
  .total-form__button { margin-top: 16px; }
  .total-form__agree { margin-top: 16px; font-size: 12px; }
}

/* ---- мобильная компоновка: каждый шаг влезает в 360×640 (инвариант 11) ---- */
@media screen and (max-width: 576px) {
  .step__item { padding: 10px 4px 0; }
  .radio__button { min-height: 44px; padding: 4px 16px; }
  .step__bottom { margin-top: 16px; }
  .step__result { font-size: 15px; }

  /* 12 стран — компактная сетка в 2 колонки */
  #country-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
  #country-options .step__item { padding: 0; }
  #country-options .radio__button { min-height: 42px; padding: 4px 8px; }
  #country-options .radio__flag { width: 20px; min-width: 20px; font-size: 18px; margin-right: 6px; }
  #country-options .radio__text { font-size: 13px; }

  /* длинные названия регионов — компактные пилюли в одну колонку */
  #region-options { margin-top: 0; }
  #region-options .radio__button { min-height: 40px; padding: 4px 12px; }
  #region-options .radio__text { font-size: 14px; }
}

/* ---- about banners ---- */
.about {
  position: relative;
  background-image: url('img/about-bg.png');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  display: flex;
  align-items: center;
  min-height: 768px;
  padding: 40px 0;
}
.about__banner { width: 33vw; position: absolute; }
.about__banner_1 { top: 0; left: 0; }
.about__banner_2 { top: 0; left: 50%; transform: translateX(-50%); }
.about__banner_3 { top: 0; right: 0; }
.about__banner_4 { top: 50%; left: 0; transform: translateY(-50%); }
.about__banner_5 { top: 50%; right: 0; transform: translateY(-50%); }
.about__banner_6 { bottom: 0; left: 0; }
.about__banner_7 { bottom: 0; left: 50%; transform: translateX(-50%); }
.about__banner_8 { bottom: 0; right: 0; }
.about__banner img {
  display: block;
  width: 100%;
  transition: 0.6s ease-in-out;
  transform: translate(-20px, -20px);
  opacity: 0;
}
.about__banner:hover img { transform: translate(0, 0); opacity: 1; }
.about__text { max-width: 640px; margin: 0 auto; }

/* ---- footer ---- */
.footer {
  background: #000;
  border-radius: 20px;
  margin: 0 16px;
  font-size: 15px;
  color: #C4C4C4;
  padding: 32px 0 24px;
}
.footer__row { display: flex; justify-content: space-between; }
.footer__col { padding: 0 20px; }
.footer__logo { display: block; margin-bottom: 34px; }
.footer p:not(:last-child) { margin-bottom: 6px; }
@media screen and (max-width: 768px) {
  .footer { margin: 0 4px; padding: 12px 0 4px; text-align: center; }
  .footer__row { flex-direction: column; align-items: center; }
  .footer__col { padding-top: 30px; }
  .footer__logo { margin-bottom: 16px; }
}
