/* Квиз Qform в стиле сайта (тема stm2026). Подключается только на странице категории, у которой есть квиз
   (views/catalog/category.php — ссылка стоит перед блоком квиза): на остальных страницах каталога эти правила не нужны.
   Белая подложка и секция «Подберём станок под вашу задачу» — в catalog.css; здесь — только вид самого виджета. */

/* --- Квиз Qform в стиле сайта (артборды QuizStates и QuizStatesMobile, сообщения 77–78 канала с дизайном).
       Разметку, тексты и поведение задаёт виджет Qform, здесь — только вид. Правила действуют, когда у формы в кабинете
       Qform включено «Не использовать оформление QForm»: тогда виджет помечает свой блок классом
       --qform-without-general-styles и не подключает свои цвета. Пока флажок не включён, квиз выглядит как раньше.
       Видимость шагов, строк и кнопок Qform задаёт встроенным display — его здесь не трогаем. Правила Qform с
       !important (кружок варианта, кнопка в загрузке, отступ подписи) обходим: кружок рисуется тенью, а не рамкой --- */
.quiz-box:has(> .is_qform.\-\-qform-without-general-styles):not(:has(.btn_modal-box)) {
  padding: 28px 32px 32px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

/* строка шагов: сегменты 4 px, подпись («Шаг 2») видна только у текущего; место под подпись есть у всех — строка не
   прыгает. Стрелки прокрутки строки Qform не нужны; на узком экране Qform делает из строки карусель и пишет ей
   ширину во встроенный стиль — сегменты всегда на всю ширину блока */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-tabnav-here {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  font-size: 12px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .tabnav-here__prev-btn,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .tabnav-here__next-btn,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__title i {
  display: none !important;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav {
  display: flex;
  gap: 6px;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__item {
  flex: 1 1 0;
  min-width: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__title {
  overflow: hidden;
  color: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__item::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--line-2);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__item.complete::after,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__item.active::after {
  background: var(--accent);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform_tab-nav__item.active .qform_tab-nav__title {
  color: var(--link);
}

/* строки шага: сетка в две колонки — поля «Телефон» и «E-mail», стоящие подряд, встают рядом, остальное на всю ширину */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row {
  grid-column: 1 / -1;
  min-width: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row:has(.qform_icon-phone):has(+ .qform-row .qform_icon-email),
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row:has(.qform_icon-phone) + .qform-row:has(.qform_icon-email) {
  grid-column: auto;
}
/* пустая строка шага — без места в сетке: обёртку согласия Qform выводит и у формы без текста согласия (так у наших
   квизов), и она давала перед кнопками лишний промежуток 14 px */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row:not(:has(input, textarea, select, label, a, img, iframe, video, .qform-field__textblock_label, .qform-field__textblock_text)) {
  display: none;
}
/* служебные значки и места под них, «(обязательное)» у вопроса */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field_valid,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field_icon,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_shift,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field_shift-box,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_message__hint:empty,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_message__error:empty {
  display: none;
}

/* вопрос шага и текстовый блок — заголовок; подпись поля ввода — как в окне заявки, у обязательного — звёздочка */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field-outside-label-box {
  margin: 0 0 6px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field-outside-label-box_label {
  display: block;
  margin: 0;
  color: var(--h);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__importance-label {
  display: none;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:has(:is(input, textarea, select)[required]) .qform-field-outside-label-box_label::after {
  content: " *";
  color: var(--red);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field-outside-label-box,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field-outside-label-box {
  margin-bottom: 16px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field-outside-label-box_label,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field-outside-label-box_label,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__textblock_label {
  color: var(--h);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
/* у вопроса с вариантами отметки обязательности нет (решение дизайна, D-142) */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox):has([required]) .qform-field-outside-label-box_label::after {
  content: none;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__textblock_text {
  margin-top: 6px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.55;
}

/* варианты ответа — карточки: на широком экране в две колонки, последний при нечётном числе — на всю ширину.
   Сам переключатель прозрачен и вынесен из сетки, карточка — его подпись. Все правила вариантов начинаются с
   .qform-field:is(.radio, .checkbox) — у состояний вес не меньше, чем у обычного вида */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field {
  display: block;
  width: 100%;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > input {
  /* Qform прячет переключатели через display: none — с клавиатуры к вариантам было не подойти; здесь они на месте,
     но невидимы: Tab приводит к группе вариантов, стрелки переключают выбор, рамка фокуса — у карточки */
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > label {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px !important;
  border: 1px solid var(--line-3);
  border-radius: var(--r-10);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--t) ease, background-color var(--t) ease, box-shadow var(--t) ease;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > label:last-of-type:nth-of-type(odd) {
  grid-column: 1 / -1;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__label {
  flex: 1 1 auto;
  min-width: 0;
  /* у Qform подпись варианта не шире 300 px — в широкой карточке текст переносился раньше времени */
  max-width: none;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__label,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__label * {
  margin: 0;
  color: inherit;
  font: inherit;
}
/* «несколько ответов»: каждый вариант Qform кладёт в свою обёртку — она и есть ячейка сетки */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__checkbox-item {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__checkbox-item > label {
  flex: 1 1 auto;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__checkbox-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* кружок (у «нескольких ответов» — квадрат): Qform запрещает ему рамку, поэтому кольцо — внутренняя тень */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__check {
  position: relative;
  order: -1;
  flex: 0 0 20px;
  box-sizing: border-box;
  width: 20px;
  min-width: 0;
  height: 20px;
  min-height: 0;
  margin: 0;
  border-radius: 50%;
  background: #fff none;
  box-shadow: inset 0 0 0 1.5px #9fb2c6;
  transition: box-shadow var(--t) ease, background-color var(--t) ease;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__block_box__field-box__check {
  border-radius: 5px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__check > * {
  visibility: hidden;
}
/* свою галочку Qform рисует псевдоэлементом поверх квадрата — у сайта галочка белая, фоном квадрата */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__check::before,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) .qform-field__block_box__field-box__check::after {
  display: none !important;
}
@media (hover: hover) {
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > label:hover {
    border-color: #9fb2c6;
    background: #f9fbfd;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > label:hover .qform-field__block_box__field-box__check {
    box-shadow: inset 0 0 0 1.5px var(--accent);
  }
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > input:checked + label {
  border-color: var(--accent);
  background: #f1f7fe;
  color: var(--h);
  font-weight: 600;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > input:checked + label .qform-field__block_box__field-box__check {
  background-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 0 0 5.5px #fff;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > input:checked + label .qform-field__block_box__field-box__check {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-9'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox) :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > input:focus-visible + label {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 208, .25);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field:is(.radio, .checkbox).qform-error :is(.qform-field__block_box__field-box, .qform-field__checkbox-item) > label {
  border-color: var(--red);
}

/* поля ввода — как в окне заявки */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__block_box__field-box_input,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-10);
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: max(15px, var(--field-fs-min));
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field textarea {
  height: 112px;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__block_box__field-box_input::placeholder,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__block_box__field-box_input:hover,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field textarea:hover {
  border-color: #9fb2c6;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__block_box__field-box_input:focus,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 208, .2);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.qform-error .qform-field__block_box__field-box_input,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.qform-error textarea {
  border-color: var(--red);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.qform-error .qform-field__block_box__field-box_input:focus,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.qform-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .15);
}

/* подсказка поля (текст из настроек Qform): Qform выводит её в шести местах — у подписи, слева и справа внутри поля,
   снаружи по бокам и под ним — и показывает одну по своей настройке; без его оформления видны все. Остаётся одна —
   под полем, серая (цвет подсказки листа States); при ошибке поля на её месте — текст ошибки */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field_hint {
  display: none !important;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_message__hint:not(:empty) {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.qform-error .qform-field__bottom-box_message__hint {
  display: none;
}

/* ошибки: у поля — строка со значком под ним (под вариантами — с отступом 10 px); общее сообщение Qform над кнопками
   показывается, только когда ни у одного поля своей ошибки нет */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_message__error,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-error-box_message,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__error-box_message:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: var(--red);
  font-size: 12.5px;
  line-height: 1.35;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field__bottom-box_message__error,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__bottom-box_message__error {
  margin-top: 10px;
  font-size: 13px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__bottom-box_message__error::before,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-error-box_message::before,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__error-box_message:not(:empty)::before {
  content: "";
  flex: 0 0 15px;
  height: 15px;
  margin-top: .5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / 15px no-repeat;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-error-box_message {
  margin: 0 0 4px;
  font-size: 13px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-error-box_message:empty,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form:has(.qform-field.qform-error) .qform-field__quiz-btn-error-box,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form:has(.qform-field__submit_agree-box__error-box_message:not(:empty)) .qform-field__quiz-btn-error-box {
  display: none !important;
}

/* согласие — галочка окна заявки: прозрачный флажок 44 × 44 вокруг нарисованного квадрата, ссылка — поверх */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box {
  position: relative;
  margin: 2px 0 0;
  padding: 0;
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.5;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__text,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__error-box {
  margin: 0;
  padding: 0;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__input {
  position: absolute;
  top: -11px;
  left: -12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0 !important;
  cursor: pointer;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box > label::before {
  content: "";
  flex: 0 0 20px;
  box-sizing: border-box;
  height: 20px;
  border: 1.5px solid #9fb2c6;
  border-radius: 5px;
  background: #fff center / 14px no-repeat;
  transition: background-color var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease;
}
@media (hover: hover) {
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box:hover > label::before {
    border-color: var(--accent);
  }
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__input:focus-visible + label::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 208, .25);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box:has(.qform-field__submit_agree-box__error-box_message:not(:empty)) .qform-field__submit_agree-box__input:not(:checked) + label::before {
  border-color: var(--red);
  background-color: #fdf2f3;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__input:checked + label::before {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-9'/%3E%3C/svg%3E");
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__link {
  position: relative;
  z-index: 2;
  /* у Qform для ссылки согласия — color: inherit !important */
  color: var(--link) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__submit_agree-box__error-box_message:not(:empty) {
  margin-left: 30px;
}

/* кнопки: «Далее» и «Отправить» — синие со стрелкой, справа; «Назад» — обводка со стрелкой влево. Во время отправки
   у «Отправить» Qform убирает текст и ставит свой индикатор (с !important) — возвращаем текст и ставим индикатор сайта */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn .qform-field__quiz-btn-box {
  flex: 0 0 auto;
  width: auto;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-box:has(> [data-action="next"]),
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-box:has(> [data-action="send"]) {
  margin-left: auto;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[type="button"] {
  box-sizing: border-box;
  width: auto;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: var(--r-10);
  outline: 0;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease, opacity var(--t) ease;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="next"],
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="send"] {
  padding: 0 48px 0 24px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat right 20px center / 18px;
  color: #fff;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="prev"] {
  padding: 0 22px 0 44px;
  border: 1.5px solid #b9cbe0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003e6c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") no-repeat left 18px center / 18px;
  color: var(--brand);
}
@media (hover: hover) {
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="next"]:enabled:hover,
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="send"]:enabled:hover {
    background-color: var(--accent-h);
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="prev"]:enabled:hover {
    border-color: var(--brand);
  }
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="next"]:focus-visible,
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="send"]:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="prev"]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 208, .25);
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="prev"]:disabled {
  border-color: var(--line-3);
  color: var(--muted);
  cursor: default;
  opacity: .7;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input.qform-btn-loading {
  background: var(--accent-h) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") no-repeat right 20px center / 18px !important;
  color: #fff !important;
  font-size: 15.5px !important;
  opacity: .85;
  cursor: progress;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form:has(.qform-btn-loading) .qform-field__block_box__field-box_input {
  border-color: var(--line);
  background: var(--bg-draft);
  color: var(--text-2);
}

/* после отправки: «спасибо» — на месте формы, по центру, со значком; ошибка отправки — красный блок (Qform ставит
   её после формы, то есть под кнопками) */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):not(:has(.qform__quiz-wrapper)) > .qform-after-send-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  text-align: center;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):not(:has(.qform__quiz-wrapper)) > .qform-after-send-msg::before {
  content: "";
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e7f5ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-9'/%3E%3C/svg%3E") center / 32px no-repeat;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .message_from_server {
  max-width: 380px;
  padding: 0;
  background: none;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .message_from_server p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .message_from_server p + p {
  margin-top: 8px;
}
/* текст «спасибо» из настроек Qform: одним абзацем — он и есть заголовок; несколько абзацев — первый заголовок */
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):not(:has(.qform__quiz-wrapper)) .message_from_server p:first-child:not(:only-child),
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):not(:has(.qform__quiz-wrapper)) .message_from_server :is(b, strong) {
  display: block;
  color: var(--h);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):not(:has(.qform__quiz-wrapper)) .message_from_server p:only-child {
  color: var(--h);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):has(.qform__quiz-wrapper) > .qform-after-send-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #f3c4c0;
  border-radius: var(--r-12);
  background: #fdecea;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):has(.qform__quiz-wrapper) > .qform-after-send-msg::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a1020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):has(.qform__quiz-wrapper) > .qform-after-send-msg .message_from_server {
  max-width: none;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost):has(.qform__quiz-wrapper) > .qform-after-send-msg .message_from_server p {
  color: #8a1020;
  font-size: 14px;
  line-height: 1.5;
}
:is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-after-send-actions:empty {
  display: none;
}

/* квиз-кнопка (в Qform — показ формы кнопкой со всплывающим окном): в секции вместо белого блока синяя кнопка справа,
   квиз — в окне вида окна заявки. Окно Qform добавляет в конец страницы (.form-overlay > .form-modal), правила квиза
   выше действуют и в нём */
/* на широком экране кнопка — справа от текста; уже (секция в одну колонку, catalog.css) — под текстом слева,
   на телефоне — во всю ширину */
@media (min-width: 1024px) {
  .quiz:has(.is_qform.\-\-qform-without-general-styles .btn_modal-box) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .quiz-box:has(> .is_qform.\-\-qform-without-general-styles .btn_modal-box) {
    justify-content: flex-end;
  }
}
@media (max-width: 1023px) {
  .quiz-box:has(> .is_qform.\-\-qform-without-general-styles .btn_modal-box) {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .quiz-box:has(> .is_qform.\-\-qform-without-general-styles .btn_modal-box) > .is_qform,
  .is_qform:is(.\-\-qform-without-general-styles, #qf-boost) > div,
  .is_qform:is(.\-\-qform-without-general-styles, #qf-boost) .btn_modal-box,
  .is_qform:is(.\-\-qform-without-general-styles, #qf-boost) .btn-modal {
    width: 100%;
  }
}
.is_qform:is(.\-\-qform-without-general-styles, #qf-boost) .btn-modal {
  height: 54px;
  margin: 0;
  padding: 0 52px 0 28px;
  border: 0;
  border-radius: var(--r-10);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat right 22px center / 18px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color var(--t) ease;
}
@media (hover: hover) {
  .is_qform:is(.\-\-qform-without-general-styles, #qf-boost) .btn-modal:hover {
    background-color: var(--accent-h);
  }
}
.is_qform:is(.\-\-qform-without-general-styles, #qf-boost) .btn-modal:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(6, 16, 28, .6);
  font-family: var(--font);
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal {
  position: relative;
  box-sizing: border-box;
  width: min(640px, 100%) !important;
  margin: auto;
  padding: 28px 32px 32px;
  border-radius: var(--r-20);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 20, 40, .45);
  color: var(--text);
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal .qform-tabnav-here {
  margin-right: 52px;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-sec) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4b57' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 18px no-repeat;
  cursor: pointer;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal__close-btn::before,
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal__close-btn::after,
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .form-modal__close-btn > * {
  display: none;
}

/* окно с текстом согласия: Qform добавляет его в конец страницы — вид окна сайта. Закрывается крестиком (кнопка
   «Закрыть» Qform), по фону и Esc (js/main.js). Пока у квиза оформление Qform, правила не действуют */
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 16, 28, .6);
  font-family: var(--font);
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__modal {
  position: relative;
  box-sizing: border-box;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 24px 28px 28px;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-20);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 20, 40, .45);
  color: var(--text-body);
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__label {
  margin: 0 56px 12px 0;
  color: var(--h);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__label:empty {
  display: none;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__text {
  max-height: 420px;
  margin: 0;
  padding: 4px 48px 0 0;
  overflow-y: auto;
  border: 0;
  font-size: 15px;
  line-height: 1.6;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__label:not(:empty) + .qform-agreement__text {
  padding-right: 0;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__text p {
  margin: 0 0 12px;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__text > br:last-child {
  display: none;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__close-btn-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  padding: 0;
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__close-btn {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: var(--bg-sec) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4b57' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 18px no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
@media (hover: hover) {
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__close-btn:hover {
    background-color: #e1e9f2;
  }
}
body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__close-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  /* белый блок стоит в 14 px от краёв секции — это поля секции (catalog.css, CategoryStatesMobile) */
  .quiz-box:has(> .is_qform.\-\-qform-without-general-styles):not(:has(.btn_modal-box)) {
    padding: 20px 18px 22px;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row:has(.qform_icon-phone):has(+ .qform-row .qform_icon-email),
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) form > .qform-row:has(.qform_icon-phone) + .qform-row:has(.qform_icon-email) {
    grid-column: 1 / -1;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field-outside-label-box_label,
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field-outside-label-box_label,
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__textblock_label {
    font-size: 17px;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field-outside-label-box,
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field-outside-label-box {
    margin-bottom: 14px;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.radio .qform-field__block_box__field-box,
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field.checkbox .qform-field__block_box__field-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn {
    padding-top: 6px;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-box:has(> [data-action="next"]),
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn-box:has(> [data-action="send"]) {
    flex: 1 1 auto;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="next"],
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input[data-action="send"] {
    width: 100%;
    background-position: right 18px center;
  }
  :is(.is_qform.\-\-qform-without-general-styles, body:has(.is_qform.\-\-qform-without-general-styles) .form-modal, #qf-boost) .qform-field__quiz-btn input.qform-btn-loading {
    background-position: right 18px center !important;
  }
  /* окно согласия — снизу экрана во всю ширину */
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__overlay {
    align-items: flex-end;
    padding: 0;
  }
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__modal {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    margin: 0;
    padding: 16px;
    border-radius: var(--r-20) var(--r-20) 0 0;
    transform: none;
  }
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__label {
    font-size: 19px;
  }
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__text {
    max-height: calc(85vh - 32px);
    padding-right: 52px;
  }
  body:has(.is_qform:is(.\-\-qform-without-general-styles, #qf-boost)) .qform-agreement__close-btn-wrapper {
    top: 12px;
    right: 12px;
  }
}
