/* ===== ТЕСТ ОСНОВАТЕЛЯ - стили страницы /test =====
   Опирается на палитру и базовые классы style.css сайта.
   Акцент #c22a15, hover #d93425, фон #fafafa, текст #1a1a1a. */

.test-noscript{background:#fff3f1;border-bottom:1px solid rgba(194,42,21,.2);padding:88px 0 20px}
.test-noscript p{color:#c22a15;font-size:15px;line-height:1.6;text-align:center}

.test-main{padding:96px 0 64px;background:#fafafa;min-height:70vh}
.test-container{max-width:680px}

/* Переключение экранов */
.test-screen{display:none}
.test-screen.is-active{display:block}

/* Общие элементы */
.test-eyebrow{display:inline-block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:#c22a15;margin-bottom:12px}
.test-title{font-family:'Playfair Display',serif;font-size:clamp(26px,4vw,38px);font-weight:700;line-height:1.15;letter-spacing:-.02em;color:#1a1a1a;margin-bottom:16px}
.test-subtitle{font-family:'Playfair Display',serif;font-size:clamp(22px,3.2vw,30px);font-weight:700;line-height:1.2;color:#1a1a1a;margin-bottom:12px}
.test-lead{font-size:17px;color:#555;line-height:1.7;margin-bottom:24px}
.test-note{font-size:14px;color:#888;line-height:1.6;margin-bottom:28px}

/* ИНТРО */
.test-intro{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:40px 36px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-getlist{margin:8px 0 24px}
.test-getlist__title{font-size:14px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.05em;margin-bottom:14px}
.test-getlist__ul{display:flex;flex-direction:column;gap:12px}
.test-getlist__ul li{font-size:16px;color:#333;line-height:1.5;padding-left:26px;position:relative}
.test-getlist__ul li::before{content:'';position:absolute;left:0;top:9px;width:9px;height:9px;border-radius:50%;background:#c22a15}

/* АНКЕТА */
.test-form{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:36px 32px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-field{margin-bottom:26px}
.test-label{display:block;font-size:15px;font-weight:700;color:#1a1a1a;margin-bottom:12px}
.test-input{font-family:'Manrope',sans-serif;font-size:16px;width:100%;min-height:52px;padding:14px 18px;border-radius:10px;border:1.5px solid rgba(0,0,0,.12);background:#fff;color:#1a1a1a;outline:none;transition:border-color .2s}
.test-input::placeholder{color:#aaa}
.test-input:focus{border-color:#c22a15}
.test-field__hint{display:block;font-size:13px;color:#aaa;margin-top:8px;text-align:right}
.test-field__note{display:block;font-size:13px;color:#888;line-height:1.5;margin-top:8px}

/* Чекбокс согласия */
.test-consent{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.test-consent__box{flex-shrink:0;width:20px;height:20px;margin:1px 0 0;accent-color:#c22a15;cursor:pointer}
.test-consent__text{font-size:14px;color:#555;line-height:1.5}
.test-consent__text a{color:#c22a15;text-decoration:underline}
.test-consent__text a:hover{opacity:.75}

.test-optgroup{display:flex;flex-wrap:wrap;gap:10px}
.test-opt{font-family:'Manrope',sans-serif;font-size:15px;min-height:48px;padding:12px 20px;border-radius:10px;border:1.5px solid rgba(0,0,0,.12);background:#fff;color:#333;cursor:pointer;transition:border-color .2s,background .2s,color .2s;text-align:left;line-height:1.35}
.test-opt:hover{border-color:#c22a15;background:rgba(194,42,21,.04)}
.test-opt:focus-visible{outline:2px solid #c22a15;outline-offset:2px}
.test-opt[aria-checked="true"]{background:#c22a15;border-color:#c22a15;color:#fff}

.test-formnav,.test-quiznav{display:flex;justify-content:space-between;gap:12px;margin-top:8px}
.test-formnav .btn,.test-quiznav .btn{min-height:52px}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;pointer-events:none}

/* ПЕРЕБИВКА БЛОКА (компактный экран между блоками) */
.test-break{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:32px 32px 28px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-break__name{font-family:'Playfair Display',serif;font-size:clamp(22px,3.2vw,28px);font-weight:700;line-height:1.2;color:#1a1a1a;margin-bottom:12px;outline:none}
.test-break__name:focus-visible{outline:2px dashed rgba(194,42,21,.5);outline-offset:6px}
.test-break__intro{font-size:16px;color:#555;line-height:1.6;margin-bottom:24px}
.test-breaknav{display:flex;justify-content:space-between;gap:12px}
.test-breaknav .btn{min-height:48px}

/* ВОПРОС (компактная верстка - помещается без прокрутки) */
.test-quiz{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:20px 28px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-progress{height:4px;background:rgba(0,0,0,.08);border-radius:2px;overflow:hidden;margin-bottom:10px}
.test-progress__bar{height:100%;width:0;background:#c22a15;border-radius:2px;transition:width .3s ease}
.test-qhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.test-q__block{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#c22a15}
.test-counter{font-size:12px;font-weight:600;color:#999;letter-spacing:.02em;flex-shrink:0}
.test-q__text{font-family:'Playfair Display',serif;font-size:clamp(17px,2.4vw,21px);font-weight:700;color:#1a1a1a;line-height:1.3;margin-bottom:14px;outline:none}
.test-q__text:focus-visible{outline:2px dashed rgba(194,42,21,.5);outline-offset:4px}

.test-anchors{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.test-anchor{font-family:'Manrope',sans-serif;font-size:15px;min-height:40px;padding:6px 14px;border-radius:9px;border:1.5px solid rgba(0,0,0,.1);background:#fff;color:#333;cursor:pointer;text-align:left;line-height:1.3;transition:border-color .2s,background .2s;display:flex;align-items:center;gap:10px}
.test-anchor:hover{border-color:#c22a15;background:rgba(194,42,21,.04)}
.test-anchor:focus-visible{outline:2px solid #c22a15;outline-offset:2px}
.test-anchor[aria-checked="true"]{border-color:#c22a15;background:rgba(194,42,21,.08)}
.test-anchor__num{flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#f0f0f0;color:#888;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.test-anchor[aria-checked="true"] .test-anchor__num{background:#c22a15;color:#fff}
.test-quiznav{margin-top:6px}
.test-quiznav .btn{min-height:44px}

/* РЕЗУЛЬТАТ */
.test-result{display:flex;flex-direction:column;gap:24px}
.test-result__head{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:32px 30px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-state__name{font-family:'Playfair Display',serif;font-size:clamp(24px,3.4vw,32px);font-weight:700;color:#1a1a1a;line-height:1.2;margin-bottom:14px}
.test-state__text{font-size:16px;color:#555;line-height:1.7;margin-bottom:22px}
.test-axes{display:flex;gap:16px}
.test-axis{flex:1;background:#fafafa;border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:14px 18px;text-align:center}
.test-axis__label{display:block;font-size:13px;color:#888;font-weight:600;margin-bottom:4px}
.test-axis__val{display:block;font-family:'Playfair Display',serif;font-size:28px;font-weight:700;color:#c22a15;line-height:1}

.test-map{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:20px;box-shadow:0 4px 24px rgba(0,0,0,.05);display:flex;justify-content:center}
.test-map svg{width:100%;max-width:340px;height:auto;display:block}

.test-bars{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:26px 28px;box-shadow:0 4px 24px rgba(0,0,0,.05);display:flex;flex-direction:column;gap:16px}
.test-bar__top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.test-bar__name{font-size:15px;font-weight:600;color:#1a1a1a}
.test-bar__val{font-size:14px;font-weight:700;color:#c22a15;font-variant-numeric:tabular-nums}
.test-bar__track{height:10px;background:rgba(0,0,0,.07);border-radius:5px;overflow:hidden}
.test-bar__fill{height:100%;background:#c22a15;border-radius:5px;transition:width .5s ease}

.test-block{border-radius:16px;padding:26px 28px}
.test-block--strong{background:#fff;border:1px solid rgba(0,0,0,.06);box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-block--growth{background:#fff3f1;border:1px solid rgba(194,42,21,.18)}
.test-block__title{font-family:'Playfair Display',serif;font-size:19px;font-weight:700;color:#1a1a1a;margin-bottom:10px}
.test-block__text{font-size:16px;color:#444;line-height:1.7;white-space:pre-line}

.test-plates{display:flex;flex-direction:column;gap:14px}
.test-plate{background:#fafafa;border:1px solid rgba(0,0,0,.08);border-left:3px solid #c22a15;border-radius:10px;padding:16px 20px}
.test-plate__title{font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:6px}
.test-plate__text{font-size:15px;color:#555;line-height:1.6;white-space:pre-line}

/* Плашка «разбор летит на почту» (вместо прежней формы почты) */
.test-sent{background:linear-gradient(160deg,#1e1e1e 0%,#1a1a1a 100%);border-radius:16px;padding:28px 30px;color:#fff}
.test-sent__title{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;line-height:1.4;margin-bottom:12px;color:#fff}
.test-sent__email{color:#ff8a7a;word-break:break-word}
.test-sent__text{font-size:15px;color:rgba(255,255,255,.75);line-height:1.6}

.test-cta{text-align:center;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:30px 28px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
.test-cta__note{font-size:16px;color:#555;line-height:1.6;margin-bottom:20px}

.test-restart{align-self:center;background:none;border:none;font-family:'Manrope',sans-serif;font-size:14px;color:#999;cursor:pointer;text-decoration:underline;padding:8px}
.test-restart:hover{color:#c22a15}

/* КОМПАКТНАЯ ШАПКА-ПОЛОСКА на экранах прохождения (вопрос/перебивка) */
body.test-compact .nav__inner{height:44px}
body.test-compact .nav__logo{font-size:13px}
body.test-compact .nav__links,
body.test-compact .nav__burger{display:none}
body.test-compact .nav__mobile{display:none!important}
body.test-compact .test-main{padding-top:60px}

/* МОБИЛЬНАЯ ВЕРСТКА (от 375px) */
@media(max-width:600px){
  .test-main{padding:84px 0 48px}
  body.test-compact .test-main{padding-top:56px}
  .test-intro,.test-form,.test-break{padding:24px 20px}
  .test-quiz{padding:16px 18px}
  .test-result__head,.test-map,.test-bars,.test-block,.test-sent,.test-cta{padding:22px 18px}
  .test-axes{flex-direction:column;gap:10px}
  .test-formnav,.test-quiznav,.test-breaknav{flex-wrap:wrap}
  .test-optgroup{flex-direction:column}
  .test-opt{width:100%}
  /* Тап-таргет на мобайле не меньше 44px */
  .test-anchor{min-height:44px;padding:8px 14px}
}

/* Итог блока: тот же контейнер, что у перебивки, плюс балл и перечни. */
.test-bres__score{display:flex;align-items:baseline;gap:8px;margin-bottom:14px}
.test-bres__score b{font-family:'Playfair Display',serif;font-size:38px;line-height:1;color:#c22a15}
.test-bres__score span{font-size:15px;color:#777}
.test-bres__group{margin:0 0 14px}
.test-bres__label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#888;margin-bottom:6px}
.test-bres__list{margin:0;padding-left:20px}
.test-bres__list li{font-size:16px;line-height:1.55;color:#555;margin-bottom:4px}
.test-bres__step{font-size:16px;line-height:1.6;color:#333;margin:18px 0 0;padding:14px 16px;background:#faf7f6;border-radius:12px}
.test-bres__step b{color:#1a1a1a}
.test-bres__tail{font-size:14px;color:#888;line-height:1.5;margin:14px 0 22px}
@media (max-width:600px){.test-bres__score b{font-size:30px}}
