/* Главная в гос-стиле: синяя панель → тест → синяя панель. Мобилка первой. */

/* 1. Первый экран: светлый, фото нижним слоем на всю панель (вариант 03) */
.hero { margin: var(--gutter); padding: 18px 16px 16px; border-radius: var(--r-lg); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #F7F8FA 0%, #EEF1F6 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, #F3EFE8 0%, #E9E2D6 60%, #DDD4C5 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(247,248,250,.97) 0%, rgba(247,248,250,.93) 55%, rgba(247,248,250,.55) 100%); }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__badge { display: none; align-items: center; gap: 8px; background: #fff; color: var(--c-text); border: 1px solid var(--c-grey-2); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13px; font-weight: 600; }
.hero__badge svg { width: 18px; height: 18px; color: var(--c-red); flex: none; }
.hero__body { margin-top: 26px; max-width: 600px; display: flex; flex-direction: column; }
.hero__text { display: contents; }
.hero__cta { order: 10; }
.hero .facts { order: 5; }
.chips { display: none; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 4px 16px rgba(28,28,28,.06); font-size: 15px; font-weight: 600; color: var(--c-text); }
.chips__ic { width: 32px; height: 32px; border-radius: 50%; background: #FFF0F2; display: grid; place-items: center; color: var(--c-red); flex: none; }
.chips__ic svg { width: 16px; height: 16px; stroke-width: 2.2; }
.hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5B6270; margin-bottom: 12px; }
.hero__title { font-size: clamp(34px, 10.4vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: var(--c-text); }
.hero__subtitle { margin-top: 16px; font-size: 17px; line-height: 1.4; color: #3D4452; max-width: 480px; }
.hero__cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.hero__cta .btn { width: 100%; }
.btn--lg { min-height: 60px; font-size: 18px; padding: 14px 26px; }
.hero__note { font-size: 14px; color: #5B6270; }
.hero__handnote { display: none; position: absolute; right: 14%; top: 120px; font-style: italic; font-size: 20px; line-height: 1.15; color: #2B2F38; width: 190px; transform: rotate(-8deg); z-index: 1; }
.hero__handnote svg { width: 60px; height: 40px; margin: 6px 0 0 70px; }
.hero__person { display: block; width: min(78%, 330px); height: auto; margin: 14px 0 -16px auto; filter: drop-shadow(0 18px 30px rgba(28,28,28,.14)); }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 28px; position: relative; z-index: 2; border-radius: var(--r-md); padding: 4px 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.3) 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 18px rgba(28,28,28,.05); }
.facts li { padding: 8px 0; min-height: 48px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--c-text); display: flex; align-items: center; gap: 10px; }
.facts li + li { border-top: 1px solid rgba(28,28,28,.07); }
.facts__ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; flex: none; }
.facts__ic svg { width: 17px; height: 17px; }
@media (min-width: 900px) {
  .hero { padding: 26px 32px 24px; min-height: 0; display: flex; flex-direction: column; }
  .hero__body { margin-bottom: 0; }
  .hero::after { background: linear-gradient(90deg, rgba(247,248,250,.98) 0%, rgba(247,248,250,.94) 42%, rgba(247,248,250,.35) 70%, rgba(247,248,250,.05) 100%); }
  .hero__badge { display: inline-flex; }
  .hero__body { margin-top: 56px; max-width: 640px; }
  .chips { display: flex; gap: 14px; margin-bottom: 28px; }
  .hero__title { font-size: clamp(48px, 4.6vw, 64px); }
  .hero__cta { flex-direction: row; align-items: center; gap: 22px; }
  .hero__cta .btn { width: auto; min-width: 300px; }
  .hero__note { max-width: 150px; }
  .hero__handnote { display: block; }
  .hero__person { position: absolute; right: 40px; bottom: 86px; width: 400px; margin: 0; z-index: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 22px; padding: 4px 10px; }
  .facts li { padding: 6px 12px; font-size: 14px; font-weight: 500; min-height: 0; }
  .facts li + li { border-top: 0; border-left: 1px solid rgba(28,28,28,.07); }
  .facts__ic { width: 36px; height: 36px; } .facts__ic svg { width: 18px; height: 18px; }
}
@media (min-width: 1240px) { .hero { margin: 14px auto; max-width: calc(var(--wrap) - 2 * var(--gutter)); } }

/* Калькулятор первого экрана */
.calc { margin-top: 22px; }
.hero__body--info .hero__cta { display: none; }
.hero__body--info .hero__subtitle { margin-bottom: 0; }
.calc__card { background: #fff; border-radius: 20px; padding: 22px 20px; box-shadow: 0 10px 40px rgba(28,28,28,.07); }
.calc__title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.calc__field { display: block; margin-bottom: 10px; }
.calc__minmax { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: #3D4452; margin-bottom: 4px; }
.calc__row b { font-size: 17px; color: var(--c-text); }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-red) 0 var(--p, 50%), var(--c-grey-2) var(--p, 50%) 100%); outline: none; margin: 4px 0; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--c-red); box-shadow: 0 2px 8px rgba(238,63,88,.3); cursor: pointer; }
.calc__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--c-red); box-shadow: 0 2px 8px rgba(238,63,88,.3); cursor: pointer; }
.calc__result { margin: 14px 0 12px; padding: 16px 16px 14px; border-radius: 14px; background: linear-gradient(180deg, #FFF3F5 0%, #FFFFFF 100%); border: 1px solid #FFE1E6; }
.calc__label { display: block; font-size: 13px; color: #5B6270; font-weight: 600; margin-bottom: 4px; }
.calc__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: clamp(32px, 9vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.calc__big small { font-size: 15px; font-weight: 600; color: #5B6270; letter-spacing: 0; }
.calc__badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--c-red); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.calc__badge i { width: 7px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); flex: none; }
.calc__badge.is-flat { background: var(--c-grey); color: var(--c-text); }
.calc__badge.is-flat i { display: none; }
.calc__cmp { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #FFE1E6; }
.calc__cmp-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; font-size: 12px; color: #5B6270; }
.calc__cmp-row i { display: block; height: 8px; border-radius: 4px; background: #F0F0F3; overflow: hidden; }
.calc__cmp-row b { display: block; height: 100%; border-radius: 4px; background: #C9CAD2; transition: width .25s; }
.calc__cmp-row--plan b { background: var(--c-red); }
.calc__cmp-row--plan em, .calc__cmp-row--plan span { color: var(--c-text); font-weight: 700; }
.calc__cmp-row em { font-style: normal; font-weight: 600; font-size: 13px; white-space: nowrap; }
.calc__wins { display: grid; gap: 0; margin: 0 0 16px; }
/* Значок, подпись, цифра в ряд. Если ряд не помещается (узкий экран, крупный шрифт), цифра уходит
   на вторую строку вправо — раньше она вылезала за край карточки. */
.calc__wins li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 4px; border-bottom: 1px solid var(--c-grey); font-size: 14px; color: #3D4452; }
.calc__wins span { flex: 1 1 72px; min-width: 0; }
.calc__wins li:last-child { border-bottom: 0; }
.calc__wins i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #16A34A; position: relative; }
.calc__wins i::after { content: ""; position: absolute; left: 9px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.calc__wins b { margin-left: auto; font-size: 15px; font-weight: 800; color: #16A34A; white-space: nowrap; }
.calc__wins li[data-key="interest"] b { color: #16A34A; }
.calc__overpay { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #FFF0F2; color: #B0475A; font-size: 13px; font-weight: 600; line-height: 1.4; }
.calc__cta { width: 100%; }
.calc__cta-note { font-size: 13px; color: #3D4452; margin-top: 10px; line-height: 1.4; text-align: center; }
.calc__note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); margin-top: 12px; line-height: 1.4; }
.calc__note svg { width: 14px; height: 14px; flex: none; }
.calc__steps { display: none; gap: 8px; margin-top: 14px; }
.calc__steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #3D4452; }
.calc__steps li span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--c-red); color: var(--c-red); font-size: 12px; display: grid; place-items: center; flex: none; }
@media (min-width: 900px) {
  .calc { margin-top: 0; }
  .hero__body--info .hero__cta { display: flex; }
  .calc__card { padding: 30px 32px 26px; }
  .calc__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
  .calc__steps li { font-size: 12px; }
}

/* Секция калькулятора (второй экран, по горизонтали на десктопе) */
.calcsec { padding: 16px; }
.calcsec .calc { margin: 0; }
.calc--wide .calc__card { display: grid; gap: 18px; }
.calc__left, .calc__right { min-width: 0; }
@media (min-width: 960px) {
  .calcsec { padding: 40px; }
  .calc--wide .calc__card { grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 40px 44px; align-items: start; }
  .calc--wide .calc__title { font-size: 28px; margin-bottom: 26px; }
  .calc--wide .calc__field { margin-bottom: 22px; }
  .calc--wide .calc__row { font-size: 16px; } .calc--wide .calc__row b { font-size: 20px; }
  .calc--wide .calc__result { margin: 0 0 12px; }
  .calc--wide .calc__big { font-size: 46px; }
}

/* Иллюстрация суда справа на десктопе (v3) */
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(160deg, #F7F8FA 0%, #F4F1EC 100%); }
  .hero::after { left: auto; width: 50%; background: var(--hero-art) right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 28%, rgba(0,0,0,.85) 50%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 28%, rgba(0,0,0,.85) 50%, #000 70%); }
}

/* Первый экран без калькулятора: сканируется */
.hero__body:not(.hero__body--info) .hero__cta { display: flex; }
@media (min-width: 900px) {
  .hero__body:not(.hero__body--info) { margin-top: 28px; max-width: none; display: block; }
  .hero__body:not(.hero__body--info) .hero__text { max-width: 760px; }
  .hero__text { display: block; }
  .hero__cta { order: 0; }
  .hero .facts { order: 0; }
  .hero__body:not(.hero__body--info) .hero__title { font-size: clamp(52px, 5.2vw, 72px); }
  .hero__body:not(.hero__body--info) .hero__subtitle { font-size: 20px; max-width: 640px; margin-top: 20px; }
  .hero__body:not(.hero__body--info) .hero__cta { margin-top: 30px; gap: 26px; }
  .hero__body:not(.hero__body--info) .hero__cta .btn { padding-left: 34px; padding-right: 34px; white-space: nowrap; }
  .hero__body:not(.hero__body--info) .hero__note { max-width: 190px; font-size: 14px; line-height: 1.35; }
  .hero:has(.hero__body:not(.hero__body--info)) .facts { margin-top: 40px; }
}

/* Подсказка «ползунок двигается»: покачивание бегунка второго ползунка, пока его не тронули */
.calc__field--hint .calc__range::-webkit-slider-thumb { animation: thumb-nudge 1.6s ease-in-out 0.6s 4; }
.calc__field--hint .calc__range::-moz-range-thumb { animation: thumb-nudge 1.6s ease-in-out 0.6s 4; }
@keyframes thumb-nudge {
  0%, 100% { transform: translateX(0); box-shadow: 0 2px 8px rgba(238,63,88,.3); }
  30% { transform: translateX(12px); box-shadow: 0 0 0 8px rgba(238,63,88,.18), 0 2px 8px rgba(238,63,88,.3); }
  60% { transform: translateX(-6px); box-shadow: 0 0 0 4px rgba(238,63,88,.12), 0 2px 8px rgba(238,63,88,.3); }
}
@media (prefers-reduced-motion: reduce) { .calc__field--hint .calc__range::-webkit-slider-thumb, .calc__field--hint .calc__range::-moz-range-thumb { animation: none; } }

/* Инфографика первого экрана */
.info { display: grid; gap: 12px; margin-top: 26px; }
.info__card { background: #fff; border-radius: var(--r-md); padding: 18px 20px; box-shadow: 0 6px 24px rgba(28,28,28,.06); }
.info__card--pay { display: flex; flex-direction: column; gap: 6px; }
.info__label { font-size: 14px; color: #5B6270; font-weight: 600; }
.info__value { font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.info__badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--c-grey); font-size: 13px; font-weight: 700; }
.info__badge i { width: 8px; height: 8px; border: solid var(--c-red); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.info__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.info__title { font-weight: 700; font-size: 15px; padding-top: 4px; }
.info__pill { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: 6px 10px; border-radius: 10px; background: #FFF0F2; color: var(--c-red); }
.info__pill b { font-size: 16px; }
.info__pill small { font-size: 10px; color: #B0475A; }
.info__chart { width: 100%; height: 96px; display: block; margin: 4px 0 10px; }
.info__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--c-grey-2); }
.info__row small { display: block; font-size: 11px; color: #5B6270; margin-bottom: 2px; }
.info__row b { font-size: 15px; }
.info__row b.is-red { color: var(--c-red); }
.info__note { font-size: 11px; color: var(--c-muted); margin: 2px 4px 0; }
@media (min-width: 900px) {
  .hero__body--info { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; max-width: none; margin-top: 28px; }
  .hero__body--info .hero__text { padding-top: 22px; }
  .hero__body--info .hero__text { max-width: 640px; }
  .hero__body--info .hero__subtitle { max-width: 640px; font-size: 18px; margin-top: 20px; }
  .hero__body--info .hero__cta { margin-top: 30px; gap: 26px; }
  .hero__body--info .hero__cta .btn { min-width: 0; padding-left: 34px; padding-right: 34px; white-space: nowrap; }
  .hero__body--info .hero__note { max-width: 170px; font-size: 14px; line-height: 1.35; }
  .info { margin-top: 0; }
  .info__card { padding: 20px 24px; }
  .info__chart { height: 120px; }
  .hero__handnote { display: none; }
}

/* 2. Тест (оформление 1 в 1 как на gosdolg.online) */
.quiz { padding: 28px 16px 16px; text-align: center; scroll-margin-top: 10px; }
.quiz__label { color: var(--c-muted); font-size: 14px; margin-bottom: 8px; }
.quiz__title { font-size: clamp(26px, 6vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; max-width: 720px; margin: 0 auto 10px; }
.quiz__sub { color: #5B6270; font-size: 15px; max-width: 560px; margin: 0 auto 20px; }
.quiz__card { background: #fff; border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(28,28,28,.08); padding: 22px 18px 20px; text-align: left; max-width: 900px; margin: 0 auto; position: relative; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.q-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 18px; width: 100%; max-width: 420px; }
.q-steps i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--c-grey-2); color: var(--c-muted); font-style: normal; font-size: 14px; font-weight: 500; display: grid; place-items: center; flex: none; background: #fff; }
.q-steps i.is-active { border-color: var(--c-red); color: var(--c-red); }
.q-steps i.is-done { border-color: var(--c-red); color: var(--c-red); cursor: pointer; transition: background .15s, color .15s; }
.q-steps i.is-done:hover, .q-steps i.is-done:focus-visible { background: var(--c-red); color: #fff; outline: none; }
.q-steps b { flex: 1 1 12px; min-width: 8px; max-width: 36px; height: 1.5px; background: var(--c-grey-2); }
.q-steps b.is-done { background: var(--c-red); }
.q-question { font-size: clamp(20px, 4.5vw, 32px); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
.q-options { display: grid; gap: 10px; }
.q-option { text-align: center; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--c-grey); cursor: pointer; font-weight: 500; font-size: 16px; color: var(--c-text); transition: background .15s, box-shadow .15s; }
.q-option:hover, .q-option:focus-visible { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-red); outline: none; }
.q-back { margin-top: auto; padding-top: 28px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: var(--c-muted); text-decoration: none; font-size: 16px; }
.q-back:hover { color: var(--c-text); }
.q-back::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); margin-left: 4px; }
.q-end h3 { font-size: clamp(22px, 4.5vw, 32px); font-weight: 600; margin-bottom: 12px; }
.q-end p { color: var(--c-muted); font-size: 16px; }
.q-end__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.q-contact { text-align: left; }
.q-contact h3 { font-size: clamp(20px, 5.2vw, 40px); font-weight: 500; line-height: 1.2; margin-bottom: 16px; overflow-wrap: anywhere; }
.q-phone { width: 100%; min-height: 56px; padding: 12px 18px; border: 1.5px solid var(--c-red); border-radius: 10px; background: #fff; font-size: 16px; }
.q-phone::placeholder { color: var(--c-muted); }
.q-phone:focus { outline: none; box-shadow: 0 0 0 3px rgba(238,63,88,.15); }
.q-phone[aria-invalid="true"] { background: #FFF5F6; }
.chans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.chan { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--c-grey); cursor: pointer; font-weight: 500; font-size: 15px; text-align: left; transition: background .15s, box-shadow .15s; }
.chan:hover { background: #ECECEC; }
.chan.is-on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-red); }
.chan__ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; color: var(--c-text); }
.chan__ic svg, .chan__ic img { width: 26px; height: 26px; display: block; }
.chan__ic img { border-radius: 7px; }
.chan__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan__check { width: 16px; height: 10px; border: solid var(--c-grey-2); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-3px); flex: none; }
.chan.is-on .chan__check { border-color: var(--c-red); }
.q-submit { width: 100%; min-height: 56px; font-size: 16px; font-weight: 500; }
/* Галочка согласия: не отмечена заранее, нажимается вся подпись (область не меньше 24px) */
/* 05.10.2026: ссылки в подписи — только слова «согласие» и «Политика», нажатие на остальную строку ставит
   галочку. Поля растягивают зону нажатия до 44 px по высоте (сам квадрат 22×22), отрицательный margin
   возвращает блоку прежний размер — форма не стала выше. */
.q-consent { display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; min-height: 44px; padding: 11px 0; margin: -9px 0; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--c-text); -webkit-tap-highlight-color: transparent; }
.q-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c-red); cursor: pointer; }
.q-consent a { color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.q-contact .consent { color: var(--c-muted); font-size: 12px; line-height: 1.45; margin: 6px 0 16px 32px; }
.q-contact .consent a { color: var(--c-text); font-weight: 600; text-decoration: none; }
@media (min-width: 720px) {
  .quiz { padding: 64px 32px 32px; }
  .q-options { grid-template-columns: 1fr 1fr; gap: 18px; }
  .q-option { min-height: 76px; }
  .q-steps i { width: 44px; height: 44px; font-size: 15px; } .q-steps b { flex-basis: 36px; max-width: 36px; }
  .chans { gap: 18px; margin: 22px 0 28px; } .chan { min-height: 76px; padding: 12px 18px; gap: 14px; }
  .q-phone { min-height: 64px; padding: 14px 22px; }
  .q-submit { min-height: 66px; font-size: 18px; }
  .q-consent { font-size: 16px; }
  .q-contact .consent { font-size: 14px; margin: 8px 0 22px 32px; }
  .q-contact h3 { margin-bottom: 26px; font-weight: 600; }
  .chan { font-weight: 600; font-size: 16px; }
  .q-submit { font-weight: 600; }
}

.q-stage { display: grid; flex: 1; min-height: 0; }
.q-slide { grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 100%; transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .3s ease; }
/* Въезд нового слайда — анимация, а не «скрыть классом и ждать, пока скрипт снимет класс»:
   конечное состояние анимации — обычный видимый слайд, поэтому пустой карточки не бывает,
   даже если скрипту не дали кадр (02.10.2026, см. show() в quiz.js). */
.q-slide.is-in-right { animation: q-in-right .38s cubic-bezier(.22,.61,.36,1) both; }
.q-slide.is-in-left { animation: q-in-left .38s cubic-bezier(.22,.61,.36,1) both; }
@keyframes q-in-right { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes q-in-left { from { transform: translateX(-60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* уходящий слайд: его через 0,38 с удаляет таймер, так что застрять прозрачным он не может */
.q-slide.is-out-left { transform: translateX(-60px); opacity: 0; }
.q-slide.is-out-right { transform: translateX(60px); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .q-slide { transition: none; animation: none !important; } }

/* 3. Что меняется после решения суда (было / стало) */
.after { padding: 30px 16px 26px; }
/* minmax(0, 1fr): колонка не шире экрана, даже когда ряд цифр доверия не помещается (узкий экран, крупный шрифт) */
.after__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.after__lead { display: contents; }
.after__badge { order: 1; align-self: flex-start; }
.after__title { order: 2; }
.after__sub { order: 3; }
.after__lead .trust--inline { order: 4; }
.after__cards { order: 5; }
.after__cta { order: 6; }
.after__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; color: #3D4452; font-size: 13px; font-weight: 600; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(28,28,28,.05); }
.after__badge svg, .after__badge img { width: 16px; height: 16px; color: var(--c-muted); }
.after__title { font-size: clamp(26px, 6vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.after__sub { color: #5B6270; font-size: 15px; margin: 8px 0 14px; max-width: 460px; }
.after__cta { width: 100%; background: var(--c-red); color: #fff; min-height: 56px; font-size: 16px; margin-top: 16px; }
.after__cta:hover { background: var(--c-red-dark); }
.after__cta .btn__arrow { display: none; }
.after__lead .trust--inline { justify-content: flex-start; gap: 0; margin: 0 0 4px; padding-top: 0; border-top: 0; }
.after__lead .trust--inline li { padding: 0 14px; border-left: 1px solid var(--c-grey-2); }
.after__lead .trust--inline li:first-child { padding-left: 0; border-left: 0; }
/* Цифры доверия стоят в ряд и сжимаются (подпись переносится), как раньше. Перенос на вторую
   строку — только когда ряд не помещается даже сжатым (узкий экран, крупный шрифт): основа 0
   даёт перенос по минимальной ширине, max-content не даёт пунктам растягиваться. */
.trust--inline { display: flex; flex-wrap: wrap; row-gap: 10px; }
.trust--inline li { display: flex; flex-direction: column; flex: 1 1 0; max-width: max-content; line-height: 1.15; }
@media (max-width: 339px) { .after__lead .trust--inline li { padding: 0 10px; } }  /* 320 px: ряд по-прежнему в одну строку */
.trust--inline b { font-size: 18px; white-space: nowrap; }
.trust--inline span { font-size: 11px; color: #5B6270; }
.after__cards { display: grid; gap: 10px; margin-top: 14px; }
.after__card { background: #fff; border-radius: var(--r-md); padding: 16px; display: flex; align-items: flex-start; gap: 14px; box-shadow: 0 2px 12px rgba(28,28,28,.05); }
.after__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--c-grey); color: var(--c-text); display: grid; place-items: center; flex: none; }
.after__ic svg { width: 20px; height: 20px; }
.after__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.after__before, .after__after { display: flex; flex-direction: column; gap: 2px; }
.after__before small, .after__after small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.after__after small { color: var(--c-red); }
.after__before s { font-size: 14px; color: #5B6270; text-decoration: line-through; text-decoration-color: var(--c-red); text-decoration-thickness: 1px; line-height: 1.35; }
.after__after b { font-size: 16px; font-weight: 700; line-height: 1.3; }
@media (min-width: 720px) { .after__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .after { padding: 56px 40px 48px; }
  .after__grid { grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
  .after__cards { margin-top: 0; }
  .after__cta { margin-top: 0; }
  .after__badge { margin-bottom: 16px; }
  .after__sub { margin: 14px 0 22px; }
  .after__lead { display: block; }
  .after__lead .trust--inline { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--c-grey-2); }
  .after__title { font-size: clamp(40px, 4.2vw, 52px); }
  .after__sub { font-size: 16px; margin: 14px 0 22px; }
  .after__cta { width: auto; min-width: 300px; min-height: 60px; font-size: 18px; background: #fff; color: var(--c-text); box-shadow: 0 2px 10px rgba(28,28,28,.06); border: 1px solid var(--c-grey-2); }
  .after__cta:hover { background: var(--c-grey); }
  .after__lead .trust--inline li { padding: 0 18px; }
  .trust--inline b { font-size: 20px; } .trust--inline span { font-size: 12px; }
  .after__cards { gap: 16px; }
  .after__card { padding: 22px; flex-direction: column; gap: 14px; }
  .after__ic { width: 48px; height: 48px; background: #FFF0F2; color: var(--c-red); }
  .after__ic svg { width: 22px; height: 22px; }
  .after__body { gap: 10px; }
  .after__after b { font-size: 18px; }
}

/* Страница «Спасибо» (по образцу gosdolg/thanks) */
.thanks { padding: 24px 16px 32px; min-height: 70vh; display: grid; place-items: center; }
.thanks__card { background: #fff; border-radius: var(--r-lg); box-shadow: 0 12px 40px rgba(28,28,28,.08); padding: 24px 18px 28px; width: 100%; max-width: 640px; text-align: center; position: relative; }
.thanks__badges { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.thanks__badge { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; color: #fff; }
.thanks__badge--red { background: var(--c-red); }
.thanks__badge--green { background: #3BB558; }
.thanks__avatar { position: relative; width: 140px; height: 140px; margin: -10px auto 18px; }
.thanks__avatar img, .thanks__avatar svg { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; }
.thanks__ok { position: absolute; right: 2px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; background: #3BB558; border: 4px solid #fff; }
.thanks__ok::after { content: ""; position: absolute; left: 13px; top: 8px; width: 9px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.thanks__title { font-size: clamp(26px, 6vw, 38px); font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.thanks__title mark { background: #3BB558; color: #fff; }
.thanks__text { color: #3D4452; font-size: 17px; max-width: 420px; margin: 0 auto 26px; }
.thanks__links { display: grid; gap: 12px; max-width: 480px; margin: 0 auto; }
.tlink { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; transition: filter .15s; }
.tlink:hover { filter: brightness(1.06); }
.tlink__ic { width: 30px; height: 30px; }
.tlink__ic svg, .tlink__ic img { width: 30px; height: 30px; display: block; }
.tlink__ic img { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.tlink--telegram { background: #2AABEE; }
.tlink--max { background: linear-gradient(90deg, #1E1B4B 0%, #4A2FD6 100%); }
.tlink--vk { background: #0077FF; }
.thanks__note { margin-top: 20px; color: var(--c-muted); font-size: 13px; }
@media (min-width: 720px) { .thanks { padding: 48px 32px 56px; } .thanks__card { padding: 30px 40px 40px; } .thanks__badges { margin-bottom: 0; } .thanks__avatar { margin-top: -20px; } }

/* Страница подтверждения номера (по образцу gosdolg/verify) */
.vpage { padding: 18px 16px 28px; display: flex; flex-direction: column; }
.vpage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vpage__badge { display: none; }
.vcard { background: #fff; border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(28,28,28,.08); padding: 28px 20px 26px; width: 100%; max-width: 860px; margin: 24px auto 0; }
.vcard__title { font-size: clamp(20px, 5.4vw, 36px); font-weight: 600; line-height: 1.25; margin-bottom: 22px; }
/* Номер не режем по ширине. На узком экране он мельче, чтобы остаться в одну строку: строка
   шириной 9,3 кегля должна влезть в карточку (экран минус 100 px полей). Если всё равно не
   влез (крупный шрифт в системе) — переносится, а не обрезается. */
.vcard__phone { display: block; margin-top: 4px; color: #5B6270; font-weight: 500; font-size: min(1em, (100vw - 100px) / 9.6); }
.vcard__phone:empty { display: none; }
.vform { display: grid; gap: 14px; }
.vcode { width: 100%; min-height: 58px; padding: 12px 18px; border: 1.5px solid var(--c-grey-2); border-radius: 10px; background: #fff; font-size: 17px; }
.vcode::placeholder { color: var(--c-muted); }
.vcode:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(238,63,88,.12); }
.vsubmit { width: 100%; min-height: 58px; font-size: 17px; }
.vsubmit .btn__arrow { display: none; }
.vlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.vlink { background: none; border: 0; padding: 0; color: var(--c-muted); font-size: 14px; cursor: pointer; text-align: left; }
.vlink:hover:not([disabled]) { color: var(--c-text); }
.vlink[disabled] { cursor: default; }
.vhint { margin-top: 18px; padding: 14px 16px; background: var(--c-grey); border-radius: 10px; color: #3D4452; font-size: 14px; line-height: 1.5; }
.vhint a { color: var(--c-text); font-weight: 600; text-decoration: none; }
.vchange { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.vchange .vcode { flex: 1 1 240px; }
@media (min-width: 900px) {
  .vpage { padding: 30px 40px 60px; min-height: 80vh; }
  .vpage__badge { display: inline-flex; }
  .vcard { padding: 64px 90px 56px; margin-top: 56px; }
  .vcard__title { margin-bottom: 26px; }
  .vcode { min-height: 66px; padding: 14px 22px; }
  .vsubmit { min-height: 66px; font-size: 18px; }
  .vsubmit .btn__arrow { display: block; }
  .vlink { font-size: 16px; }
  .vlinks { flex-direction: row; align-items: center; gap: 0; }
  .vlink { padding: 0 16px; border-left: 1px solid var(--c-grey-2); }
  .vlink:first-child { padding-left: 0; border-left: 0; }
}


/* ── Тест на первом экране (29.09.2026) ────────────────────────────────────
   Телефон — по мокапу: заголовок, подзаголовок, карточка теста, строка преимуществ.
   Компьютер — две колонки: слева текст, справа карточка теста поверх картинки. */
.facts__short { display: none; }
.hero-quiz { order: 6; margin-top: 18px; position: relative; z-index: 2; }
.hero-quiz__card { background: #fff; border: 1px solid #ECECEC; border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(28,28,28,.08); padding: 16px 16px 14px; overflow: hidden; /* слайды въезжают сбоку — не вылезать за край */ }
.q-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.q-progress__label { font-size: 14px; font-weight: 500; color: #5B6270; }
.q-progress__bar { display: block; height: 4px; border-radius: 2px; background: #EDEDED; overflow: hidden; }
.q-progress__bar i { display: block; height: 100%; border-radius: 2px; background: var(--c-red); transition: width .3s ease; }
.hero--quiz .q-question { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; text-align: left; }
.hero--quiz .q-options { grid-template-columns: 1fr; gap: 10px; }
.hero--quiz .q-option { min-height: 54px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-red); color: #C62B42; font-size: 17px; font-weight: 600; }
.hero--quiz .q-option:hover, .hero--quiz .q-option:focus-visible { background: #FFF1F3; box-shadow: inset 0 0 0 2px var(--c-red); outline: none; }
.hero--quiz .q-option--minor { min-height: 40px; padding: 8px 16px; background: none; box-shadow: none; color: #5B6270; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hero--quiz .q-option--minor:hover, .hero--quiz .q-option--minor:focus-visible { background: none; box-shadow: none; color: var(--c-text); }
.hero--quiz .q-back { padding-top: 12px; }
.hero--quiz .q-end h3 { font-size: 20px; margin-bottom: 10px; }
/* текст темнее обычного приглушённого: на этом экране он несёт совет, его должны прочитать */
.hero--quiz .q-end p { font-size: 15px; color: #5B6270; }

@media (max-width: 899px) {
  .hero--quiz .hero__body { margin-top: 18px; }
  .hero--quiz .hero__title { font-size: clamp(26px, 7.6vw, 40px); line-height: 1.08; }
  .hero--quiz .hero__subtitle { margin-top: 10px; font-size: 16px; }
  /* преимущества — одной строкой под тестом */
  .hero--quiz .facts { order: 7; display: block; margin-top: 14px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14px; line-height: 1.5; color: #5B6270; }
  .hero--quiz .facts li { display: inline; padding: 0; min-height: 0; font-size: 14px; font-weight: 500; color: #5B6270; }
  .hero--quiz .facts li + li { border-top: 0; }
  .hero--quiz .facts li + li::before { content: " · "; }
  .hero--quiz .facts__ic, .hero--quiz .facts__full { display: none; }
  .hero--quiz .facts__short { display: inline; }
}

@media (min-width: 720px) {
  .hero--quiz .q-option { min-height: 56px; }
}

@media (min-width: 900px) {
  .hero--quiz .hero__body:not(.hero__body--info) .hero__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); column-gap: 48px; align-items: start; max-width: none; }
  .hero--quiz .hero__text > * { grid-column: 1; }
  .hero--quiz .hero__text > .hero-quiz { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
  .hero--quiz .hero__body:not(.hero__body--info) .hero__title { font-size: clamp(40px, 4.3vw, 60px); }
  .hero-quiz__card { padding: 22px 22px 18px; }
  .hero--quiz .q-question { font-size: 22px; }
}

/* 900–1099: колонка теста уже, иначе заголовок слева ломается на четыре строки */
@media (min-width: 900px) and (max-width: 1099px) {
  .hero--quiz .hero__body:not(.hero__body--info) .hero__text { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; }
}

/* ── Короткая форма телефона в тесте (01.10.2026) ──────────────────────────
   Порядок: заголовок → «Как удобнее связаться?» + MAX/Звонок → телефон → галочка → кнопка.
   От заголовка до низа кнопки ~300 px вместо 377 — кнопка видна в окне 360×600.
   Размеры заданы для всех ширин: старые правила большой секции теста (≥720) сюда не доходят. */
.hero--quiz .q-contact h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
.chans__label { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.3; color: #5B6270; }
/* Способ связи: две кнопки в ряд, пока обе помещаются; на узком экране и при крупном
   шрифте — одна под другой (перенос вместо обрезания справа). */
.hero--quiz .chans { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.hero--quiz .chan { flex: 1 1 calc(50% - 4px); min-height: 44px; padding: 8px 12px; gap: 8px; font-size: 15px; font-weight: 500; }
.hero--quiz .chan__ic, .hero--quiz .chan__ic svg, .hero--quiz .chan__ic img { width: 24px; height: 24px; }
.hero--quiz .chan__text { flex: 0 1 auto; min-width: auto; overflow: visible; }
.hero--quiz .q-phone { min-height: 50px; padding: 10px 16px; }
.hero--quiz .q-consent { margin-top: 3px; font-size: 14px; }   /* 12 px до поля телефона: 3 + 9 px из отрицательного margin подписи */
.q-consent a.q-consent__policy { font-weight: 500; color: #5B6270; }
.hero--quiz .form__error { margin: 8px 0 0; }
.hero--quiz .q-submit { min-height: 52px; margin-top: 12px; font-size: 16px; font-weight: 600; }
/* Узкие экраны (страница увеличена в браузере): кнопки способа связи держим в одном ряду —
   сначала за счёт полей и значка, совсем узко — без значков. Высота здесь дороже всего. */
@media (max-width: 339px) {
  .hero--quiz .chan { padding: 8px; gap: 6px; }
  .hero--quiz .chan__ic, .hero--quiz .chan__ic svg, .hero--quiz .chan__ic img { width: 20px; height: 20px; }
}
@media (max-width: 299px) {
  .hero--quiz .chan { justify-content: center; }
  .hero--quiz .chan__ic { display: none; }
}
@media (min-width: 900px) {
  .hero--quiz .q-contact h3 { font-size: 22px; margin-bottom: 12px; }
  .hero--quiz .chan { min-height: 48px; }
  .hero--quiz .q-phone { min-height: 54px; }
  .hero--quiz .q-submit { min-height: 56px; margin-top: 14px; }
}


/* Окно «Нужно ваше согласие» (05.10.2026): открывается по кнопке отправки, если галочка не отмечена
   (askConsent() в quiz.js). На телефоне прижато к низу окна, с 720 px — по центру. Показ включает
   атрибут hidden, а не анимация; сдвиг — только украшение. z-index выше плашки cookie (2147483000). */
.consent-dialog { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483600; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(28,28,28,.55); touch-action: none; }
.consent-dialog[hidden] { display: none; }
.consent-dialog__window { box-sizing: border-box; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; padding: 24px 20px 12px; border-radius: var(--r-lg); background: var(--c-white); color: var(--c-text); text-align: left; touch-action: pan-y; animation: consent-dialog-in .2s ease-out; }
@keyframes consent-dialog-in { from { transform: translateY(16px); } }
.consent-dialog__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.consent-dialog__text { margin: 8px 0 0; font-size: 16px; line-height: 22px; color: #5B6270; }
.consent-dialog__text a { color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent-dialog__accept { width: 100%; min-height: 56px; margin-top: 20px; font-size: 16px; font-weight: 500; }
.consent-dialog__back { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 0; background: none; font: 500 16px/1 var(--font); color: #5B6270; cursor: pointer; }
.consent-dialog__accept:focus-visible, .consent-dialog__back:focus-visible, .consent-dialog__text a:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
@media (min-width: 720px) {
  .consent-dialog { align-items: center; padding: 20px; }
  .consent-dialog__window { padding: 36px 36px 20px; }
  .consent-dialog__title { font-size: 26px; line-height: 32px; }
  .consent-dialog__accept { min-height: 66px; font-size: 18px; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .consent-dialog__window { animation: none; } }
