@font-face{font-family:Manrope;src:url('/fonts/manrope-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope-500.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope-600.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope-700.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--bg:#0a1e27;--violet:#6f21d8;--violet-hover:#7d31e5;--white:#fff;--line:#ccc;--muted:#808080;--track:rgba(255,255,255,.1)}
*{box-sizing:border-box}html,body{width:100%;min-height:100%;margin:0;background:var(--bg);font-family:Manrope,Montserrat,sans-serif;color:var(--white)}button,input{font:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #c99cff;outline-offset:3px}#app{min-height:100vh;background:var(--bg)}
.start-screen{position:relative;min-height:100svh;padding:10px 40px 36px;display:flex;flex-direction:column;align-items:center;background:var(--bg);overflow:auto}
.start-image{display:block;width:min(58vw,720px);height:min(40svh,480px);min-height:240px;object-fit:contain;object-position:center;border-radius:14px;background:#050607}
.start-content{width:min(1100px,100%);margin:auto 0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:38px 0 120px}
.start-content h1{width:100%;margin:0 0 12px;font-size:32px;line-height:40px;font-weight:700;color:#fff}.start-subtitle{margin:0 0 30px;max-width:520px;color:rgba(255,255,255,.72);font-size:16px;line-height:1.5}
.start-btn{width:260px;height:62px;padding:20px 24px;border:0;border-radius:10px;background:var(--violet);color:#fff;font-size:14px;line-height:20px;font-weight:700;cursor:pointer;transition:background .18s,transform .18s}
.start-btn:hover{background:var(--violet-hover);transform:translateY(-1px)}
.start-footer{position:absolute;left:40px;right:40px;bottom:34px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.start-footer a{color:inherit;text-decoration:none}.start-footer a:hover{color:#fff}
.quiz-screen{width:100%;height:100svh;min-height:620px;display:grid;grid-template-columns:minmax(420px,46%) minmax(0,54%);overflow:hidden;background:var(--bg)}
.quiz-media{position:relative;min-width:0;height:100%;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 55% 42%,#162d36 0,#030607 66%)}.quiz-media img{display:block;width:86%;height:86%;object-fit:contain;object-position:center}
.quiz-panel{position:relative;min-width:0;height:100%;padding:42px clamp(32px,5vw,76px);display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
.progress{position:absolute;top:12px;left:clamp(32px,5vw,76px);right:clamp(32px,5vw,76px);height:8px;padding:2px;border-radius:10px;background:var(--track);overflow:hidden}.progress span{display:block;height:4px;border-radius:10px;background:linear-gradient(90deg,#8b34f4,var(--violet));transition:width .22s ease}.progress-label{position:absolute;top:25px;right:clamp(32px,5vw,76px);color:rgba(255,255,255,.58);font-size:12px;font-weight:600}
.question-body{width:100%;max-width:680px;min-height:0;margin:auto;padding:48px 0 28px}.question-body h2{margin:20px 0 32px;color:#fff;font-size:clamp(28px,2.5vw,38px);line-height:1.2;font-weight:700;text-align:center}.question-hint{margin:-18px 0 24px;text-align:center;color:rgba(255,255,255,.7);font-size:13px}
.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}.answers.one-column{grid-template-columns:1fr;max-width:585px;margin:0 auto}
.answer{min-width:0;min-height:58px;padding:0 24px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.7);border-radius:8px;background:rgba(255,255,255,.015);color:#fff;text-align:left;font-size:14px;cursor:pointer;transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}.answer:hover{border-color:#fff;background:rgba(255,255,255,.07);transform:translateY(-1px)}.answer.selected{border-color:#a75bff;background:rgba(111,33,216,.28);box-shadow:inset 0 0 0 1px #a75bff,0 6px 22px rgba(111,33,216,.16)}
.radio{width:21px;height:21px;flex:0 0 21px;border:1px solid #ccc;border-radius:50%;position:relative}.multiple .radio{border-radius:4px}.answer.selected .radio{border-color:var(--violet);background:var(--violet)}.answer.selected .radio::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:700}.answer-label{min-width:0;overflow-wrap:anywhere}
.quiz-nav{position:relative;align-self:flex-end;flex:0 0 auto;margin-top:auto;display:flex;align-items:center;gap:14px;padding-top:18px}.nav-btn{height:52px;border-radius:10px;border:1px solid transparent;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 18px;cursor:pointer;font-size:14px;font-weight:700}.nav-back{background:transparent;color:rgba(255,255,255,.7)}.nav-back:hover{color:#fff;background:rgba(255,255,255,.06)}.nav-next{min-width:138px;background:var(--violet);color:#fff}.nav-next:hover{background:var(--violet-hover)}.nav-next:disabled{opacity:.45;cursor:not-allowed}.nav-btn svg{width:22px;height:18px;display:block}.nav-error{margin-top:12px;color:#ffaaaa;font-size:12px;text-align:right}
.form-body{width:min(585px,100%);margin:auto;padding:28px 0 86px}.form-body h2{margin:0 0 8px;color:#fff;text-align:center;font-size:32px;line-height:40px;font-weight:700}.form-description{margin:0 0 25px;color:rgba(255,255,255,.66);text-align:center;font-size:14px}.lead-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lead-form input[type=text],.lead-form input[type=tel],.lead-form input[type=email]{width:100%;height:52px;padding:0 15px;border:1px solid rgba(255,255,255,.35);border-radius:5px;background:rgba(255,255,255,.03);outline:none;color:#fff}.lead-form input::placeholder{color:rgba(255,255,255,.52)}.lead-form input:focus{border-color:var(--violet);box-shadow:0 0 0 2px rgba(111,33,216,.18)}
.full{grid-column:1/-1}.consent{grid-column:1/-1;display:grid;grid-template-columns:18px 1fr;gap:9px;align-items:start;color:rgba(255,255,255,.72);font-size:11px;line-height:1.5}.consent input{width:16px;height:16px;margin:1px 0 0;accent-color:var(--violet)}.consent a{color:#fff}.form-error{grid-column:1/-1;min-height:18px;color:#ffaaaa;font-size:12px}.submit-btn{grid-column:1/-1;height:56px;border:0;border-radius:10px;background:var(--violet);font-weight:700;color:#fff;cursor:pointer}.submit-btn:disabled{opacity:.55;cursor:wait}.honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}
.success{width:min(585px,100%);margin:auto;text-align:center;padding-bottom:60px}.success-mark{width:62px;height:62px;margin:0 auto 20px;display:grid;place-items:center;border-radius:50%;background:var(--violet);font-size:29px;font-weight:700}.success h2{margin:0 0 12px;font-size:32px;line-height:40px}.success p{margin:0;color:rgba(255,255,255,.68);line-height:1.6}.success-summary{margin:25px 0 0;padding:16px;border:1px solid rgba(255,255,255,.25);border-radius:5px}
.corevia-credit{position:absolute;right:40px;bottom:8px;color:var(--muted);font-size:10px;text-decoration:none;z-index:3}.corevia-credit:hover{color:#fff}
.privacy-screen{width:min(820px,calc(100% - 36px));margin:0 auto;padding:64px 0;color:#fff}.privacy-screen a{color:#fff}.privacy-logo{display:block;width:min(360px,100%);margin:0 auto 45px;border-radius:10px}.privacy-screen h1{font-size:32px;line-height:40px}.privacy-screen p{color:rgba(255,255,255,.72);line-height:1.7}
@media(max-width:900px){.quiz-screen{height:auto;min-height:100svh;grid-template-columns:1fr;grid-template-rows:minmax(220px,36svh) minmax(0,1fr);overflow:auto}.quiz-media{height:auto;min-height:220px}.quiz-media img{object-fit:cover}.quiz-panel{height:auto;min-height:64svh;padding:46px 24px 32px;overflow:visible}.progress{left:0;right:0;top:0;border-radius:0}.progress-label{top:18px;right:24px}.question-body{margin:0;padding:20px 0 28px}.question-body h2{font-size:26px;line-height:34px;margin:12px 0 24px}.quiz-nav{position:relative;right:auto;bottom:auto;z-index:auto;align-self:flex-end;margin-top:auto;padding-top:18px}.quiz-nav::before{display:none}.nav-error{position:static;margin-top:12px;text-align:center}.form-body{margin:0 auto;padding:10px 0 15px}.corevia-credit{position:fixed;left:20px;right:auto;bottom:max(8px,env(safe-area-inset-bottom));z-index:6}}
@media(max-width:620px){.start-screen{padding:10px 18px 28px}.start-image{width:100%;height:min(34svh,320px);min-height:0}.start-content{padding:30px 0 90px}.start-content h1{font-size:25px;line-height:33px;margin-bottom:12px}.start-subtitle{font-size:14px;margin-bottom:24px}.start-footer{left:18px;right:18px;bottom:20px}.answers{grid-template-columns:1fr;gap:10px}.answer{min-height:54px;padding:0 16px}.quiz-nav{gap:4px}.nav-btn{height:50px;padding:0 13px}.nav-next{min-width:124px}.lead-form{grid-template-columns:1fr}.full,.consent,.form-error,.submit-btn{grid-column:auto}.form-body h2,.success h2{font-size:26px;line-height:34px}}
@media(max-height:700px) and (min-width:901px){.question-body{padding-bottom:80px}.question-body h2{font-size:27px;line-height:34px;margin-bottom:20px}.answer{min-height:48px}.quiz-nav{bottom:22px}.form-body{padding-bottom:60px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.chat-now-btn{margin:24px auto 0;border:0;border-radius:9px;background:var(--violet);color:#fff;font:inherit;font-weight:700;padding:15px 24px;cursor:pointer;box-shadow:0 12px 28px rgba(111,33,216,.28)}.chat-now-btn:hover{filter:brightness(1.08)}.chat-now-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}.chat-now-note{font-size:14px;margin-top:9px!important}

.social-page-link{display:inline-flex;margin-top:20px;color:#fff;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.45);padding-bottom:2px}.social-page-link:hover{border-color:#fff}

/* Чат отображается после квиза: во время выбора он не перекрывает ответы и навигацию. */
.quiz-in-progress [id^="keycrm-"]{display:none!important}
@media(max-width:900px){.quiz-media img{width:82%;height:82%;object-fit:contain}}
/* На увеличенном масштабе блок с кнопками остаётся после списка, а не перекрывает его. */
.question-body{flex:0 0 auto;margin:auto auto 0;padding-bottom:14px}
.answers.multiple .answer{min-height:50px}
.quiz-nav{margin-top:0;padding-top:12px;background:var(--bg);z-index:2}
@media(max-width:900px){
  .quiz-panel{display:block;overflow-y:auto}
  .question-body{margin:0;padding:20px 0 16px}
  .answers.multiple .answer{min-height:50px}
  .quiz-nav{display:flex;margin:0 0 0 auto;padding:14px 0 0;width:max-content}
}
/* Компактная верхняя композиция: список и навигация помещаются в один экран. */
.question-body{margin:0 auto;padding-top:64px}
.question-body h2{margin-top:0;margin-bottom:24px}
.question-hint{margin-top:-12px;margin-bottom:18px}
.quiz-nav{padding-top:10px}
@media(max-width:900px){.question-body{padding-top:54px}.question-body h2{margin-bottom:20px}}
/* Адаптивные размеры: от широкого монитора до телефона. */
.quiz-screen{min-height:100dvh}
.quiz-media img{max-width:100%;max-height:100%}
@media(min-width:1500px){
  .quiz-screen{grid-template-columns:minmax(380px,40%) minmax(0,60%)}
  .quiz-panel{padding-left:clamp(46px,6vw,112px);padding-right:clamp(46px,6vw,112px)}
  .question-body{max-width:720px}
}
@media(min-width:901px) and (max-width:1200px){
  .quiz-screen{grid-template-columns:minmax(260px,34%) minmax(0,66%)}
  .quiz-panel{padding-left:clamp(26px,4vw,48px);padding-right:clamp(26px,4vw,48px);overflow-y:auto}
  .question-body{max-width:600px;padding-top:54px}
  .question-body h2{font-size:clamp(25px,3.1vw,33px)}
}
@media(max-height:820px) and (min-width:901px){
  .quiz-panel{overflow-y:auto}
  .question-body{padding-top:46px}
  .question-body h2{font-size:clamp(24px,2.4vw,31px);margin-bottom:16px}
  .question-hint{margin-bottom:12px}
  .answers{gap:10px}
  .answers.multiple .answer{min-height:44px}
  .quiz-nav{padding-top:8px}
}
@media(max-width:900px){
  .quiz-screen{grid-template-rows:minmax(150px,26svh) auto;min-height:100dvh}
  .quiz-media{min-height:150px}
  .quiz-media img{width:min(76%,520px);height:82%;object-fit:contain}
  .quiz-panel{min-height:0;padding:42px clamp(18px,5vw,36px) 28px}
  .progress-label{right:clamp(18px,5vw,36px)}
  .answers.one-column{max-width:none}
  .question-body{max-width:680px;padding-top:46px}
}
@media(max-width:620px){
  .quiz-screen{grid-template-rows:minmax(120px,22svh) auto}
  .quiz-media{min-height:120px}
  .quiz-media img{width:min(72%,360px);height:78%}
  .quiz-panel{padding:38px 16px 24px}
  .progress-label{right:16px;font-size:11px}
  .question-body{padding-top:38px}
  .question-body h2{font-size:clamp(23px,7vw,28px);line-height:1.2;margin-bottom:18px}
  .question-hint{font-size:12px;margin-top:-8px;margin-bottom:14px}
  .answers{gap:9px}
  .answers.multiple .answer,.answer{min-height:48px;padding:0 14px;font-size:14px}
  .quiz-nav{width:100%;justify-content:space-between;gap:8px;padding-top:14px}
  .nav-btn{height:48px;padding:0 14px}
  .nav-next{min-width:118px}
}
@media(max-width:380px){
  .quiz-media{display:none}
  .quiz-screen{display:block}
  .quiz-panel{min-height:100dvh}
  .question-body{padding-top:50px}
  .nav-btn{font-size:13px;padding:0 10px}
}
@media(max-height:520px) and (orientation:landscape){
  .quiz-screen{grid-template-columns:minmax(180px,27%) minmax(0,73%);grid-template-rows:1fr;height:100dvh;overflow:hidden}
  .quiz-media{display:grid;min-height:0}
  .quiz-panel{height:100dvh;overflow-y:auto;padding-top:34px}
  .question-body{padding-top:20px}
  .question-body h2{font-size:24px;margin-bottom:12px}
  .answers.multiple .answer{min-height:42px}
}
/* Преміальний стиль карток квізу. */
.question-body h2{font-family:Manrope,Montserrat,sans-serif;font-weight:700;letter-spacing:-.045em;text-wrap:balance}
.question-hint{font-family:Manrope,Montserrat,sans-serif;font-weight:500;letter-spacing:-.015em}
.answers{gap:14px}
.answer{position:relative;isolation:isolate;min-height:62px;border:1px solid rgba(227,239,244,.34);border-radius:14px;background:linear-gradient(115deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 52%,rgba(111,33,216,.055));box-shadow:0 10px 28px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.08);font-family:Manrope,Montserrat,sans-serif;font-size:15px;font-weight:600;letter-spacing:-.018em;overflow:hidden}
.answer::before{content:'';position:absolute;inset:0;z-index:-1;opacity:0;background:radial-gradient(circle at 14% 50%,rgba(190,126,255,.26),transparent 36%),linear-gradient(115deg,rgba(129,43,226,.34),rgba(81,22,148,.12));transition:opacity .2s ease}
.answer::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(110deg,rgba(255,255,255,.12),transparent 28%);opacity:.55}
.answer:hover{border-color:rgba(218,181,255,.9);background:linear-gradient(115deg,rgba(255,255,255,.105),rgba(111,33,216,.16));box-shadow:0 13px 30px rgba(0,0,0,.22),0 0 0 1px rgba(174,105,255,.25),inset 0 1px 0 rgba(255,255,255,.15);transform:translateY(-2px)}
.answer:hover::before,.answer.selected::before{opacity:1}
.answer.selected{border-color:#bc82ff;background:linear-gradient(115deg,rgba(158,76,246,.48),rgba(76,21,141,.5));box-shadow:0 15px 34px rgba(67,14,134,.3),0 0 0 1px rgba(213,180,255,.43),inset 0 1px 0 rgba(255,255,255,.2);color:#fff}
.radio{width:24px;height:24px;flex-basis:24px;border:1px solid rgba(239,231,255,.76);background:rgba(5,12,16,.24);box-shadow:inset 0 1px 2px rgba(0,0,0,.25),0 1px 0 rgba(255,255,255,.1)}
.answer.selected .radio{border-color:#fff;background:linear-gradient(135deg,#c58cff,#7020de);box-shadow:0 0 0 4px rgba(197,140,255,.15),inset 0 1px 1px rgba(255,255,255,.36)}
.answer-label{position:relative;z-index:1}
@media(max-width:620px){.answer{min-height:54px;border-radius:12px;font-size:14px}.radio{width:22px;height:22px;flex-basis:22px}.answers{gap:10px}}

/* Фінальний екран без бокової ілюстрації. */
.success-screen{position:relative;min-height:100dvh;padding:clamp(28px,5vh,64px) 24px 56px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 50% 38%,rgba(111,33,216,.13),transparent 34%),var(--bg);text-align:center}
.success-logo{position:absolute;top:clamp(24px,5vh,56px);left:50%;translate:-50% 0;width:clamp(92px,9vw,132px);height:clamp(92px,9vw,132px);object-fit:cover;border-radius:50%;box-shadow:0 0 0 1px rgba(255,151,47,.25),0 14px 42px rgba(0,0,0,.34)}
.success-content{width:min(620px,100%);margin-top:clamp(100px,12vh,150px)}
.success-content .success-mark{width:58px;height:58px;margin:0 auto 22px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#8f37f2,#6418cd);box-shadow:0 12px 34px rgba(111,33,216,.36);font-size:28px;font-weight:700}
.success-content h1{margin:0 0 14px;font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-.045em}
.success-content>p{margin:0 auto;max-width:590px;color:rgba(255,255,255,.7);font-size:clamp(15px,1.4vw,18px);line-height:1.65}
.success-socials{margin:30px auto 0;display:flex;align-items:center;justify-content:center;gap:12px}
.social-icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.025));box-shadow:0 10px 30px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.1);transition:transform .18s,border-color .18s,box-shadow .18s}
.social-icon svg{width:23px;height:23px;fill:#fff}
.social-icon:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.5);box-shadow:0 14px 34px rgba(0,0,0,.3),0 0 24px rgba(111,33,216,.22)}
.social-icon-facebook{background:linear-gradient(145deg,#287be2,#1558ae)}
.success-content .success-chat-hint{margin-top:20px;font-size:14px;color:rgba(255,255,255,.52)}
.success-powered{position:absolute;left:50%;bottom:22px;translate:-50% 0;color:rgba(255,255,255,.42);font-size:11px;text-decoration:none;white-space:nowrap}
.success-powered:hover{color:#fff}
@media(max-width:620px){.success-screen{padding:24px 18px 52px}.success-logo{width:86px;height:86px}.success-content{margin-top:94px}.success-content .success-mark{width:52px;height:52px;margin-bottom:18px}.success-content h1{font-size:34px}.success-socials{margin-top:24px}.success-content .success-chat-hint{font-size:13px}}
@media(max-height:620px) and (orientation:landscape){.success-screen{justify-content:flex-start;padding-top:24px;overflow-y:auto}.success-logo{position:static;translate:none;width:76px;height:76px}.success-content{margin-top:18px}.success-content .success-mark{display:none}.success-content h1{font-size:32px}.success-socials{margin-top:18px}.success-powered{position:static;translate:none;margin-top:24px}}
