/* Компоненты: кнопки, формы, квизы, попапы, FAQ, вкладки, прогресс чтения */

:root {
  --c-accent: #4361cd;
  --c-yellow: #ffde13;
  --c-yellow-hover: #ffe230;
  --c-ink: #1a1f2a;
}

/* ---------------------------------------------------------------- сетка */
.container {
  box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto;
}
.col { margin: 0 20px; }
@media screen and (max-width: 1200px) {
  .container { max-width: 960px; }
  .col { margin: 0 10px; }
}
@media screen and (max-width: 960px) {
  .container { max-width: 640px; }
  .col { margin: 0; padding: 0 20px; box-sizing: border-box; }
}

/* ---------------------------------------------------------------- кнопки */
.btn {
  --h: 45px; --lh: 1.4;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; max-width: 100%; overflow: hidden;
  padding: calc((var(--h) - 1em * var(--lh)) / 2) 30px;
  border: 0; border-radius: 7px; background: transparent; color: #000;
  font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: var(--lh);
  text-align: center; white-space: nowrap; text-decoration: none; vertical-align: middle;
  cursor: pointer; -webkit-appearance: none; appearance: none; user-select: none;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, opacity .3s;
}
.btn:focus { outline: none; }
.btn__text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: inherit; }
.btn--primary { color: var(--c-ink); background-color: var(--c-yellow); }
@media (hover: hover) { .btn--primary:hover { background-color: var(--c-yellow-hover); } }
.btn--ghost { color: #000; }
@media (hover: hover) { .btn--ghost:hover { background-color: var(--c-yellow-hover); } }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--md { --h: 60px; font-size: 16px; padding-left: 60px; padding-right: 60px; }
@media screen and (max-width: 1200px) {
  .btn { padding-left: 25px; padding-right: 25px; }
  .btn--md { padding-left: 45px; padding-right: 45px; }
}
@media screen and (max-width: 640px) {
  .btn { white-space: normal; padding-left: 20px; padding-right: 20px; }
  .btn--md { padding-left: 30px; padding-right: 30px; }
}
@media screen and (max-width: 480px) { .btn { --h: 50px; } }

/* Блик, пробегающий по кнопке */
.btn__flash { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.btn__flash > span {
  position: absolute; inset: 0; transform: translateX(-85px);
  animation: btn-flash 3s linear infinite;
}
.btn__flash > span::before {
  content: ""; position: absolute; top: 0; left: 30px; width: 45px; height: 100%;
  background-image: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.4));
  transform: skewX(-45deg);
}
@keyframes btn-flash { 20%, 100% { transform: translateX(100%); } }

/* ---------------------------------------------------------------- поля форм */
.form { position: relative; }
.field { margin-bottom: 25px; }
.field__block { position: relative; }
.field__title {
  display: block; padding: 0 10px 5px 0;
  font-family: var(--font-text); color: #383838; font-size: 26px; line-height: 1.2; font-weight: 700;
}
.field__error { display: none; margin-top: 5px; color: red; font-family: var(--font-text); font-size: 13px; }
.field.has-error .field__error { display: block; }
.field.has-error .input:not(.phone__input),
.field.has-error .radio-list { outline: 1px solid red; outline-offset: -1px; }
.field.has-error .phone { border-color: red !important; }

.input {
  box-sizing: border-box; display: block; width: 100%; height: 60px; margin: 0; padding: 0 20px;
  border: 1px solid #f7f7f7; border-radius: 10px; outline: none; background-color: #f7f7f7;
  font-family: var(--font-text); font-size: 16px; line-height: 1.33; color: #232326;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: inherit; opacity: .5; }
textarea.input { height: 102px; resize: vertical; }
.input--pvis { padding: 26px 20px 10px; }
.input__ph {
  position: absolute; top: 22px; left: 20px; width: calc(100% - 40px); height: 17px; overflow: hidden;
  font-family: var(--font-text); font-size: 16px; line-height: 1; color: #232326; opacity: .5;
  white-space: nowrap; text-overflow: ellipsis; pointer-events: none;
  transform-origin: left center; transition: transform .2s linear;
}
.input:focus ~ .input__ph, .input.has-content ~ .input__ph {
  transform: translateY(-100%) scale(.7); width: 100%;
}

/* Радиокнопки */
.radio-list { margin-top: 5px; }
.radio {
  --size: 20px; --bw: 2px; --lh: 1.2;
  position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%;
  margin: 15px 0 0; padding-top: calc((var(--size) - 1em * var(--lh)) / 2);
  font-family: var(--font-text); font-size: 15px; font-weight: 300; line-height: var(--lh); color: #000;
  cursor: pointer;
}
.radio:first-child { margin: 3px 0 10px; }
.radio__input { position: absolute; z-index: -1; opacity: 0; }
.radio__ind {
  position: relative; flex-shrink: 0; box-sizing: border-box; width: var(--size); height: var(--size);
  margin-top: calc((1em * var(--lh) - var(--size)) / 2);
  border: var(--bw) solid var(--c-accent); border-radius: 50%; opacity: .6; transition: .2s;
}
.radio__ind::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--size) / 2); height: calc(var(--size) / 2);
  border-radius: 50%; background: var(--c-accent); opacity: 0; transform: translate(-50%, -50%); transition: .2s;
}
.radio__input:checked ~ .radio__ind, .radio__input:checked ~ .radio__ind::after { opacity: 1; }

/* Чекбокс */
.checkbox {
  --size: 20px; --bw: 2px; --lh: 1.2;
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding-top: calc((var(--size) - 1em * var(--lh)) / 2);
  font-family: var(--font-text); font-size: 15px; font-weight: 300; line-height: var(--lh); color: #000;
}
.checkbox__input { position: absolute; z-index: -1; opacity: 0; }
.checkbox__ind {
  position: relative; flex-shrink: 0; box-sizing: border-box; width: var(--size); height: var(--size);
  margin-top: calc((1em * var(--lh) - var(--size)) / 2);
  border: var(--bw) solid var(--c-accent); opacity: .6; transition: .2s;
}
.checkbox__ind::after {
  content: ""; display: none; position: absolute; top: 50%; left: 50%;
  width: calc(var(--size) * .4); height: calc(var(--size) * .15);
  border: solid var(--c-accent); border-width: 0 0 var(--bw) var(--bw);
  transform: translate(-50%, -70%) rotate(-45deg);
}
.checkbox__input:checked ~ .checkbox__ind { opacity: 1; }
.checkbox__input:checked ~ .checkbox__ind::after { display: block; }
.checkbox__label a { color: inherit; }
@media screen and (max-width: 1200px) { .checkbox { font-size: 14px; } }
@media screen and (max-width: 640px) { .checkbox { font-size: 12px; } }

/* Телефон с выбором страны */
.phone { position: relative; display: flex; padding: 0 20px; }
.phone__select {
  display: flex; align-items: center; flex-shrink: 0; margin: 0 5px 0 0; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; font-size: 16px; cursor: pointer;
}
.phone__flag, .phone__opt-flag {
  display: inline-block; width: 18px; min-width: 18px; height: 13px;
  background: #c5c5c5 url("../img/flags.png") no-repeat; box-shadow: 0 0 5px rgba(0,0,0,.3);
}
.phone__triangle {
  position: relative; margin-left: 6px; border-style: solid; border-width: 5px 4px 0;
  border-color: #9a9a9a transparent transparent;
}
.phone__code { margin-left: 10px; white-space: nowrap; }
.phone__input {
  flex: 1 1 auto; min-width: 0; height: auto; padding: 0; border: 0; outline: none; background: transparent;
  font: inherit; color: inherit;
}
.phone__input::placeholder { color: inherit; opacity: .5; }
.phone__list {
  position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 260px; overflow-y: auto;
  margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border-radius: 7px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.phone__opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 15px; cursor: pointer;
  font-family: var(--font-text); font-size: 14px; color: #000;
}
.phone__opt:hover, .phone__opt.is-active { background: #f0f3fb; }
.phone__opt-code { margin-left: auto; opacity: .6; }

.form__success {
  position: relative; margin-bottom: 20px; padding: 16px 18px 16px 54px; border-radius: 12px;
  background: #eaf7ef; color: #1d4d33; text-align: left;
  font-family: var(--font-text); font-size: 16px; font-weight: 300; line-height: 1.5;
}
.form__success b { font-weight: 600; }
.form__success::before {
  content: "✓"; position: absolute; top: 16px; left: 16px; width: 26px; height: 26px; border-radius: 50%;
  background: #2fb36b; color: #fff; font-size: 15px; font-weight: 700; line-height: 26px; text-align: center;
}
.form__close { width: 100%; }
@media screen and (max-width: 640px) { .form__success { font-size: 14px; line-height: 1.45; } }

/* ---------------------------------------------------------------- квиз */
.quiz { padding: 0 0 120px; background-color: #f7f7f7; }
.quiz__container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; }
.quiz__card {
  position: relative; box-sizing: border-box; max-width: 760px; margin: 0 20px; padding-bottom: 50px;
  background: #fff; border-radius: 20px; box-shadow: 0 10px 50px -2px rgba(0,11,48,.05);
}
.quiz__wrapper { position: relative; }
.quiz__head { position: relative; background: #101b27; border-radius: 20px 20px 0 0; }
.quiz__desc {
  padding: 35px 45px 40px; color: #fff;
  font-family: var(--font-text); font-size: 14px; font-weight: 300; line-height: 1.55;
}
.quiz__desc::after { content: ""; display: table; clear: both; }
.quiz__desc-title { float: left; width: 90%; box-sizing: border-box; }
.quiz__desc-icon { display: inline-block; vertical-align: top; width: 20px; height: 20px; padding-right: 3px; }
.quiz__icon-line {
  fill: none; stroke: var(--c-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10;
}
.quiz__desc-text { display: inline-block; vertical-align: top; width: 90%; }
.quiz__counter { float: right; font-weight: 500; }
.quiz__result-title {
  display: none; box-sizing: border-box; padding: 35px 45px;
  font-family: var(--font-text); font-size: 24px; font-weight: 300; line-height: 1.5; color: #fff;
}
.quiz.is-capture .quiz__desc { display: none; }
.quiz.is-capture .quiz__result-title { display: block; }
.quiz__progressbar { position: absolute; bottom: 0; left: 0; z-index: 1; width: 100%; height: 5px; background: #cbcbcb; }
.quiz__progress { width: 0; height: 100%; background: var(--c-accent); transition: width .3s; }
.quiz__body { transition: height .3s ease-in-out; }
.quiz__form { padding: 35px 45px 55px; }
.quiz__wrapper > .quiz__body .quiz__form { position: static; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quiz-fade .7s ease; }
@keyframes quiz-fade { from { opacity: 0; } to { opacity: 1; } }
.quiz.is-measuring .quiz__step, .quiz.is-init .quiz__step { animation: none !important; }
.quiz .field__title { font-size: 26px; }
.quiz .radio { font-size: 15px; }
.quiz__capture .field { margin-bottom: 25px; }
.quiz__capture .phone { height: 60px; border: 1px solid #f7f7f7; border-radius: 10px; background: #f7f7f7; color: #232326; font-family: var(--font-text); font-size: 16px; }
.quiz__submit { position: absolute; right: 45px; bottom: 0; z-index: 1; display: none; }
.quiz.is-capture .quiz__submit { display: block; }
.quiz.is-done .quiz__submit, .quiz.is-done .quiz__nav { display: none; }
.quiz__nav { position: relative; padding: 0 45px; }
.quiz__nav::after { content: ""; display: table; clear: both; }
.quiz__prev { float: left; }
.quiz__next, .quiz__result { float: right; }
.quiz__result { display: none; }
.quiz.is-last .quiz__next { display: none; }
.quiz.is-last .quiz__result { display: inline-flex; }
.quiz.is-capture .quiz__next, .quiz.is-capture .quiz__result { display: none; }

@media screen and (max-width: 1200px) {
  .quiz__container { max-width: 960px; }
  .quiz__card { max-width: 620px; margin: 0 10px; }
  .quiz__desc { font-size: 12px; }
  .quiz__result-title { font-size: 22px; }
  .quiz .field__title { font-size: 24px; }
}
@media screen and (max-width: 960px) {
  .quiz__container { max-width: 640px; }
  .quiz__card { max-width: 100%; margin: 0 20px; }
}
@media screen and (max-width: 640px) {
  .quiz__card { margin: 0; padding-bottom: 30px; }
  .quiz__desc, .quiz__result-title { padding: 20px 20px 25px; }
  .quiz__result-title { font-size: 20px; line-height: 1.4; }
  .quiz__desc-icon { display: none; }
  .quiz__form { padding: 20px 20px 55px; }
  .quiz .field__title { font-size: 22px; }
  .quiz .radio { font-size: 14px; }
  .quiz__nav { padding: 0 20px; }
  .quiz__submit { right: 20px; }
}
@media screen and (max-width: 480px) { .quiz { padding-bottom: 90px; } }

/* ---------------------------------------------------------------- квиз-калькулятор: поиск, ответы, расчёт */
.quiz__done-title { display: none; }
.quiz.is-done .quiz__desc, .quiz.is-done .quiz__steps, .quiz.is-done .quiz__capture-title { display: none; }
.quiz.is-done .quiz__result-title, .quiz.is-done .quiz__done-title { display: block; }
.quiz.is-done .quiz__form { padding-bottom: 35px; }
.quiz.is-done .quiz__card { padding-bottom: 0; }

.search__list {
  position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 300px; overflow-y: auto;
  margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.search__item {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 20px; cursor: pointer;
  font-family: var(--font-text); font-size: 15px; color: #000;
}
.search__item:hover, .search__item:first-child { background: #f0f3fb; }
.search__parent { margin-left: auto; color: #8a8f99; font-size: 13px; text-align: right; }
.quiz__link {
  margin-top: 12px; padding: 0; border: 0; background: none; color: var(--c-accent); cursor: pointer;
  font-family: var(--font-text); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.quiz__russia { margin-top: 16px; }
.input:disabled { opacity: .5; }
.radio__hint { color: #8a8f99; }

.field__title--sm { font-size: 18px !important; font-weight: 600; padding-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill__input { position: absolute; opacity: 0; }
.pill__label {
  display: block; padding: 10px 18px; border: 1px solid #dfe3ee; border-radius: 30px;
  font-family: var(--font-text); font-size: 14px; color: #000; transition: .2s;
}
.pill__input:checked + .pill__label { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.pill__input:focus-visible + .pill__label { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error {
  margin: 0 0 15px; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #b3261e;
  font-family: var(--font-text); font-size: 14px; line-height: 1.4;
}
.btn.is-busy { opacity: .6; pointer-events: none; }

.qres { font-family: var(--font-text); color: #000; }
.qres__verdict { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #eaf7ef; }
.qres--maybe .qres__verdict { background: #fdf5e2; }
.qres--no .qres__verdict { background: #fcecea; }
.qres__badge { flex-shrink: 0; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: #2fb36b; }
.qres--maybe .qres__badge { background: #f2a516; }
.qres--no .qres__badge { background: #e2574c; }
.qres__title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.qres__notes { margin: 8px 0 0; padding: 0 0 0 18px; font-size: 14px; font-weight: 300; line-height: 1.45; }
.qres__note + .qres__note { margin-top: 4px; }
.qres__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.qres__kpi { padding: 16px; border-radius: 14px; background: #f4f6fb; }
.qres__label { color: #6b7280; font-size: 13px; }
.qres__value { margin: 4px 0; font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.qres__hint { color: #6b7280; font-size: 12px; line-height: 1.35; }
.qres__cases { margin-top: 20px; }
.qres__subtitle { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.qres__subtitle span { color: #6b7280; font-size: 13px; font-weight: 300; }
.qres__case {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid #eceef3;
  font-size: 14px; font-weight: 300;
}
.qres__avg { margin: 2px 0 6px; color: #4b5563; font-size: 14px; font-weight: 300; }
.qres__avg b { color: #000; font-weight: 600; }
.qres__case-city { font-weight: 600; }
.qres__case-meta { color: #8a8f99; }
.qres__next { margin-top: 14px; color: #8a8f99; font-size: 13px; font-weight: 300; line-height: 1.45; }
.qres__cta { margin-top: 22px; padding: 22px; border-radius: 16px; background: #101b27; color: #fff; }
.qres__cta-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.qres__cta-text { margin-top: 6px; color: #c9d1e3; font-size: 14px; font-weight: 300; line-height: 1.45; }
.qres__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qres__call { --h: 52px; flex: 1 1 auto; font-size: 15px; }
.qres__chat {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px;
  border-radius: 7px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity .2s;
}
.qres__chat--tg { background: #2aa3df; }
.qres__chat--wa { background: #25c062; }
@media (hover: hover) { .qres__chat:hover { opacity: .85; } }
.qres__cta-done { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(47,179,107,.18); color: #b9f0cf; font-size: 15px; }
@media screen and (max-width: 640px) {
  .qres__cta { padding: 18px; }
  .qres__cta-title { font-size: 20px; }
  .qres__call { flex-basis: 100%; }
  .qres__chat { flex: 1 1 0; padding: 0 10px; }
}
@media screen and (max-width: 640px) {
  .qres__grid { grid-template-columns: 1fr; gap: 8px; }
  .qres__value { font-size: 22px; }
  .qres__case { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .qres__case-meta { grid-column: 1 / -1; font-size: 12px; }
  .search__item { padding: 10px 14px; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- вкладки */
.tabs { padding: 0 0 45px; background-color: #e4eef9; }
.tabs__inner { box-sizing: border-box; max-width: 1160px; margin: 0 auto; }
.tabs__list { display: table; width: 100%; margin: 0; padding: 0; list-style: none; text-align: center; }
.tabs__tab {
  position: relative; display: table-cell; width: 25%; vertical-align: middle;
  border: 1px solid #d7e0ff; border-right: none; background-color: #e4eef9;
}
.tabs__tab:first-child { border-radius: 10px 0 0 10px; }
.tabs__tab:nth-last-child(2) { border-radius: 0 10px 10px 0; border-right: 1px solid #d7e0ff; }
.tabs__tab.is-active { background-color: var(--c-accent); border-color: var(--c-accent); }
.tabs__tab.is-active:nth-last-child(2) { border-right-color: var(--c-accent); }
.tabs__tab.is-active::after {
  content: " "; position: absolute; z-index: 1; top: -1px; right: -1px; bottom: -1px; width: 1px;
  background-color: var(--c-accent);
}
.tabs__btn {
  box-sizing: border-box; width: 100%; height: 100%; padding: 14px 22px;
  border: 0; background: transparent; color: #000; cursor: pointer;
  font-family: var(--font-text); font-size: 14px; font-weight: 400; line-height: 1.35;
  text-align: inherit; transition: font-weight, color .3s;
}
.tabs__tab.is-active .tabs__btn { color: #fff; font-weight: 600; cursor: default; }
.tabs__sep { display: none; }
@media screen and (max-width: 1200px) { .tabs__inner { max-width: 940px; } }
@media screen and (max-width: 960px) {
  .tabs__inner { display: flex; width: 100%; max-width: 640px; padding: 0 0 10px; overflow: auto hidden; }
  .tabs__list { display: flex; }
  .tabs__tab { display: block; width: 25%; min-width: fit-content; }
}
@media screen and (max-width: 640px) {
  .tabs__inner { max-width: 100%; }
  .tabs__list { padding-left: 20px; }
  .tabs__btn { font-size: 14px; }
  .tabs__sep { display: block; min-width: 20px; width: 20px; }
}

/* ---------------------------------------------------------------- FAQ */
.faq { background-color: #e4eef9; }
.faq__container { display: flex; flex-wrap: wrap; box-sizing: border-box; max-width: 1200px; margin: 0 auto; }
.faq__col { width: 100%; max-width: 1160px; margin: 0 20px 8px; }
.faq__wrapper { background-color: #fff; border-radius: 15px; }
.faq__header { position: relative; cursor: pointer; }
.faq__trigger {
  position: relative; box-sizing: border-box; width: 100%; padding: 20px 30px;
  border: none; background: transparent; text-align: left; cursor: pointer;
}
.faq__title {
  display: inline-block; padding-right: 30px; color: #212121;
  font-family: var(--font-text); font-size: 24px; font-weight: 600; line-height: 1.35;
}
.faq__icon {
  position: absolute; top: 50%; right: 18px; width: 24px; height: 24px; padding: 8px;
  transform: translateY(-50%); transition: opacity .2s ease-in-out;
}
.faq__icon--hover { opacity: 0; }
@media (hover: hover) and (min-width: 961px) {
  .faq__header:hover .faq__icon { opacity: 0; }
  .faq__header:hover .faq__icon--hover { opacity: 1; }
}
.faq__circle { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 100px; background-color: #f7f7f7; }
.faq__icon--hover .faq__circle { background-color: #3c57d2; }
.faq__lines { position: relative; z-index: 1; display: block; width: 100%; height: 100%; transition: transform .3s ease-in-out; }
.faq__lines svg { display: block; }
.faq__item.is-open .faq__lines { transform: rotate(-45deg); }
.faq__content { padding: 0 30px; overflow: hidden; }
.faq__textwrap { padding: 0 0 20px; }
.faq__text {
  color: #212121; font-family: var(--font-text); font-size: 16px; font-weight: 300; line-height: 1.55;
}
@media screen and (max-width: 1200px) {
  .faq__container { max-width: 960px; }
  .faq__col { max-width: 940px; margin: 0 10px 8px; }
  .faq__title { font-size: 22px; }
  .faq__text { font-size: 14px; }
}
@media screen and (max-width: 960px) {
  .faq__container { max-width: 640px; }
  .faq__col { max-width: 100%; margin: 0 0 8px; padding: 0 20px; box-sizing: border-box; }
}
@media screen and (max-width: 640px) {
  .faq__trigger { padding: 20px !important; }
  .faq__content { padding: 0 20px; }
  .faq__icon { right: 8px; }
  .faq__title { font-size: 20px; }
  .faq__text { font-size: 12px; line-height: 1.45; }
}

/* ---------------------------------------------------------------- попапы */
.popup {
  position: fixed; inset: 0; z-index: 10000001; box-sizing: border-box; width: 100%; height: 100%;
  padding: 0 20px; overflow-y: auto; background-color: rgba(0,0,0,.6); opacity: 0; cursor: pointer;
  transition: opacity .3s ease-in-out;
}
.popup[hidden] { display: none; }
.popup.is-shown { opacity: 1; }
.popup__container {
  position: absolute; top: 50%; left: 20px; right: 20px; z-index: 1; width: auto; margin: 0 auto;
  background: #fff; border-radius: 15px; overflow: hidden; cursor: default;
  transform: translateY(-30%) scale(.9); transition: transform .3s ease-in-out;
}
.popup.is-shown .popup__container { transform: translateY(-50%); }
.popup__container--static { position: relative; top: 0; left: auto; right: auto; width: 100%; margin: 65px auto; transform: translateY(30%) scale(.9); }
.popup.is-shown .popup__container--static { transform: translateY(0); }
.popup__container--6 { max-width: 560px; }
.popup__container--8 { max-width: 760px; }
.popup__container--10 { max-width: 960px; }
.popup__close {
  position: fixed; top: 10px; right: 10px; z-index: 9; box-sizing: content-box; width: 23px; height: 23px;
  padding: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; transition: opacity .3s ease-in-out;
}
.popup__close-icon { display: block; width: 23px; height: 23px; }
@media (hover: hover) and (min-width: 429px) { .popup__close:hover { opacity: .7; } }
body.has-popup { overflow: hidden; }
@media screen and (max-width: 1200px) {
  .popup__container--6 { max-width: 460px; }
  .popup__container--8 { max-width: 620px; }
  .popup__container--10 { max-width: 780px; }
}
@media screen and (max-width: 560px) {
  .popup--form, .popup--case { padding: 0; }
  .popup--form .popup__close, .popup--case .popup__close {
    top: 0; right: 0; left: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center;
    width: 100%; height: 50px; padding: 0; background: #000;
  }
  .popup--form .popup__close-icon, .popup--case .popup__close-icon { width: 16px; height: 16px; margin-right: 20px; }
  .popup--form.is-shown .popup__container {
    position: relative; inset: 0; max-width: 100%; min-height: 100vh; margin: 0; padding-top: 50px;
    box-sizing: border-box; border-radius: 0; transform: none;
  }
  .popup--case.is-shown .popup__container--static {
    max-width: 100%; min-height: 100vh; top: 0; margin: 50px 0 0; border-radius: 0;
  }
}

/* Попап с формой */
.fpop { padding: 40px 45px; }
.fpop__text { margin-bottom: 24px; text-align: center; }
.fpop__title {
  margin-bottom: 11px; color: #000;
  font-family: var(--font-text); font-size: 36px; font-weight: 600; line-height: 1.23;
}
.fpop__descr { color: #000; font-family: var(--font-text); font-size: 16px; font-weight: 300; line-height: 1.55; }
.fpop .input, .fpop .phone {
  height: 60px; color: #000; border: 1px solid #f7f7f7; border-radius: 7px; background-color: #f7f7f7;
}
.fpop .input::placeholder { color: #000; }
.fpop .phone { box-sizing: border-box; font-family: var(--font-text); font-size: 16px; }
.fpop__submit { margin-top: 25px; }
@media screen and (max-width: 960px) { .fpop__submit { margin-top: 0; } }
.fpop__submit .btn { width: 100%; color: #212121; }
@media (hover: hover) { .fpop__submit .btn:hover { background-color: #fee12b; } }
.fpop__bottom {
  margin-top: 20px; text-align: center; color: #000;
  font-family: var(--font-text); font-size: 15px; font-weight: 300; line-height: 1.55;
}
.fpop__bottom a { color: inherit; }
@media screen and (max-width: 1200px) {
  .fpop__title { font-size: 32px; }
  .fpop__descr { font-size: 14px; }
  .fpop__bottom { font-size: 14px; }
}
@media screen and (max-width: 640px) {
  .fpop { padding: 20px; }
  .fpop__title { margin-bottom: 6px; font-size: 28px; }
  .fpop__descr { font-size: 12px; line-height: 1.45; }
  .fpop__text { margin-bottom: 14px; }
  .fpop .input, .fpop .phone { height: 50px; padding: 0 14px; }
  .fpop__submit .btn { --h: 50px; font-size: 16px; }
  .fpop__bottom { font-size: 12px; line-height: 1.45; }
}

/* Попап кейса */
.gallery { position: relative; overflow: hidden; background-color: #fff; }
.gallery__slide { display: none; }
.gallery__slide.is-active { display: block; }
.gallery__img { padding-bottom: 66%; background: no-repeat center / contain; }
.gallery__arrow {
  position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.8); cursor: pointer;
}
.gallery__arrow--prev { left: 15px; }
.gallery__arrow--next { right: 15px; }
.gallery__arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
  border: solid #222; border-width: 2px 2px 0 0; transform: translate(-30%, -50%) rotate(45deg);
}
.gallery__arrow--prev::before { transform: translate(-70%, -50%) rotate(-135deg); }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 15px; display: flex; justify-content: center; gap: 8px; }
.gallery__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c7c7c7; cursor: pointer; }
.gallery__dot.is-active { background: #222; }
.case__wrapper { padding: 40px; text-align: left; }
.case__title {
  margin-bottom: 12px; color: #000; font-family: var(--font-text); font-size: 32px; font-weight: 600; line-height: 1.17;
}
.case__descr {
  margin: 15px 0 30px; color: #000; font-family: var(--font-text); font-size: 16px; font-weight: 300; line-height: 26px;
}
.case__bottom { display: table; width: 100%; padding-top: 23px; border-top: 1px solid #eee; }
.case__btn-wrap { display: table-cell; text-align: right; }
.case__btn { color: #212121; border-radius: 10px; }
@media screen and (max-width: 1200px) {
  .case__title { font-size: 30px; }
  .case__descr { font-size: 14px; }
}
@media screen and (max-width: 640px) {
  .case__wrapper { padding: 30px 20px; }
  .case__title { font-size: 26px; }
  .case__descr { font-size: 12px; }
  .case__btn-wrap { display: block; margin-top: 20px; }
  .case__btn { width: 100%; }
}

/* Попап с текстом (политика) */
.tpop { padding: 40px 45px; text-align: left; }
.tpop__title { color: #000; font-family: var(--font-text); font-size: 32px; font-weight: 600; line-height: 1.17; }
.tpop__descr {
  margin-top: 17px; color: #000; font-family: var(--font-text); font-size: 16px; font-weight: 300; line-height: 1.55;
}
@media screen and (max-width: 1200px) { .tpop__title { font-size: 30px; } .tpop__descr { font-size: 14px; } }
@media screen and (max-width: 960px) { .tpop { padding: 30px; } }
@media screen and (max-width: 640px) {
  .tpop { padding: 20px; }
  .tpop__title { font-size: 26px; }
  .tpop__descr { margin-top: 8px; font-size: 12px; line-height: 1.45; }
}

/* ---------------------------------------------------------------- форма в блоке «Теряете заявки?» */
.zform__fields { display: flex; align-items: flex-end; row-gap: 15px; }
.zform .field { flex: 1; margin: 0; padding-right: 20px; }
.zform .phone {
  box-sizing: border-box; height: 80px; color: #000; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px;
  font-family: var(--font-text); font-size: 16px; line-height: 1.33;
}
.zform__submit { flex: 1; }
.zform__btn { display: block; width: 100%; height: 80px; border: 0; border-radius: 150px; background: transparent; cursor: pointer; }
.zform .field__error {
  position: absolute; z-index: 2; margin-top: 5px; padding: 8px 10px; border-radius: 2px; pointer-events: none;
  background: #fff; box-shadow: 0 1px 20px rgba(0,0,0,.2);
}
.zform .form__success { position: absolute; top: 0; left: 0; right: 0; }
@media screen and (max-width: 1199px) {
  .zform__fields { flex-direction: column; align-items: stretch; row-gap: 0; }
  .zform .field { padding-right: 0; margin-bottom: 20px; }
}
@media screen and (max-width: 479px) {
  .zform .phone, .zform__btn { height: 70px; }
}

/* ---------------------------------------------------------------- прогресс чтения */
.progress__bar {
  position: fixed; top: 0; left: 0; z-index: 9999; width: 0; height: 4px; background: var(--c-accent);
  transition: width .6s;
}

/* ---------------------------------------------------------------- согласие на обработку ПДн */
.field--consent .checkbox { font-size: 13px; line-height: 1.3; color: #555; }
.field--consent .checkbox__label a { color: inherit; text-decoration: underline; }
.field--consent .field__error { font-size: 12px; }
.fpop .field--consent { margin: 0 0 20px; text-align: left; }
.quiz .field--consent .checkbox { color: #282828; }
/* форма «Теряете заявки?»: согласие — белым текстом на тёмном фоне */
.zconsent .field--consent { margin: 0; }
.zconsent .checkbox { color: #fff; font-size: inherit; line-height: inherit; }
.zconsent .checkbox__ind { border-color: #fff; }
.zconsent .checkbox__ind::after { border-color: #fff; }
.zconsent .field__error { color: #ff8a80; }
.zconsent { text-align: left !important; }
/* после отправки формы в блоке кнопка и согласие больше не нужны */
section.is-sent .z[data-type="button"], section.is-sent .zconsent { visibility: hidden; }

/* ---------------------------------------------------------------- мобильная версия: страница не должна ездить вбок */
/* у шапок квизов overflow: visible (на десктопе карточка заходит на квиз); на узких экранах
   спрятанные за край элементы карточки растягивали страницу по горизонтали */
@media screen and (max-width: 1199px) {
  #quiz-head .zb__ab, #quiz2-head .zb__ab { overflow-x: clip; }
}
.page__inner { overflow-x: clip; }
/* очень узкие экраны (320–339px): блоки свёрстаны на 320px без полей — немного уменьшаем,
   чтобы появились отступы по краям */
@media screen and (max-width: 339px) {
  section.zb { zoom: .92; }
}
