/* ==============================
   Quiz UI (PT Sans, 55+)
============================== */

:root{
  --bg:#0b1220;
  --card: rgba(255,255,255,.10);
  --text:#eef4ff;
  --muted: rgba(238,244,255,.78);
  --muted2: rgba(238,244,255,.62);
  --primary:#6ebeff;
  --primary2:#9ad2ff;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{background:#061024;
height:100%}

html{background:#050b18}

body{
  margin:0;
  font-family: "PT Sans", Arial, sans-serif;
  color:var(--text);
  background: #050b18;
  overflow-x:hidden;

  /* 55+ */
  font-size:21px;
  line-height:1.8;
}

.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  /* ровный фон без «стыков» */
  background:
    radial-gradient(1200px 900px at 72% 38%, rgba(120,170,235,.22), rgba(7,13,24,0) 62%),
    radial-gradient(900px 700px at 28% 82%, rgba(60,120,220,.14), rgba(7,13,24,0) 65%),
    #061024;
}


.wrap{
  width:min(1060px, 94vw);
  margin:0 auto;
}

.topbar{
  position:sticky; top:0;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.60);
  border-bottom:1px solid rgba(255,255,255,.10);
  z-index:5;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
  gap:14px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand__dot{
  width:16px; height:16px; border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 0 0 7px rgba(110,190,255,.18);
}
.brand__name{font-weight:700; font-size:20px; letter-spacing:.2px}
.brand__sub{font-size:14px; color:var(--muted2)}

.topbar__trust{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  font-size:14px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background: rgba(255,255,255,.08);
  color:var(--muted);
}

.card{
  margin-top:20px;
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hidden{display:none !important}

h1{
  margin:6px 0 14px;
  font-size:48px;
  line-height:1.12;
  font-weight:700;
}

.lead{
  color:var(--muted);
  font-size:22px;
  line-height:1.85;
}

.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap:20px;
  padding:26px;
  overflow:hidden;
}

.hero.card{
  position:relative;
  background: url("./assets/bg_scene.webp") center / cover no-repeat;
}
.hero.card::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(6,12,24,.80) 0%, rgba(6,12,24,.55) 40%, rgba(6,12,24,.25) 70%, rgba(6,12,24,.10) 100%);
  pointer-events:none;
}
.hero > *{ position:relative; z-index:1; }

.hero__content{padding:6px 4px 12px}

.hero__meta{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin:18px 0;
}

.meta{
  display:flex; gap:12px; align-items:flex-start;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding:12px;
}
.meta img{width:38px; height:38px; opacity:.95}
.meta__t{font-weight:700; font-size:18px}
.meta__s{font-size:16px; color:var(--muted2); margin-top:4px}

.ctaRow{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:16px}

.btn{
  border:none; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:16px 22px;
  border-radius: 18px;
  font-weight:700;
  font-size:21px;
  transition: transform .08s ease, opacity .18s ease, background .18s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#071022;
  box-shadow: 0 10px 30px rgba(110,190,255,.28);
}
.btn--ghost{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color:var(--text);
}
.btn[disabled]{opacity:.55; cursor:not-allowed}
.spacer{flex:1}

/* hero art with separate background */
.hero__art.heroArt{
  position: relative;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  background-image: url("./assets/hero_bg.png");
  background-size: cover;
  background-position: center;
  min-height: 360px;
}
.heroArt__person{
  position:absolute;
  right: 6%;
  bottom: 0;
  height: 92%;
  width:auto;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

.why{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
}
.why__title{font-weight:700; color:var(--text); margin-bottom:6px}

.quiz{padding:22px}
.quiz__top{display:flex; align-items:center; gap:12px}
.progress{
  flex:1;
  height:14px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
}

/* Quiz внутри hero: остаётся в том же блоке, не уезжает вниз */
.hero{ position:relative; }
.hero #quiz.quiz{
  /* важно: НЕ absolute, иначе hero-карта схлопывается при скрытии hero__content */
  position:relative;
  inset:auto;
  margin:0;
  background: transparent;
  border:0;
  box-shadow:none;
  padding:26px;
}
.hero #quiz .quiz__top{ margin-bottom:14px; }
.hero #quiz .quiz__bottom{ margin-top:18px; }
.hero #quiz .quiz__body{ max-width: 860px; }

.progress__bar{
  height:100%;
  width:0%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  transition: width .25s ease;
}
.progress__txt{
  font-size:15px;
  color:var(--muted2);
  width:78px;
  text-align:right
}

.quiz__body{padding:14px 0 8px}
.qTitle{
  font-size:30px;
  font-weight:700;
  margin:10px 0 8px;
  line-height:1.3;
}
.qHint{
  font-size:17px;
  color:var(--muted2);
  margin-bottom:12px;
}

.answers{display:grid; gap:12px; margin-top:8px}
.answer{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .08s ease;
}
.answer:hover{background: rgba(255,255,255,.10)}
.answer:active{transform: translateY(1px)}
.answer input{
  accent-color: var(--primary);
  width:24px; height:24px;
  margin-top:2px;
}
.answer__text{font-weight:700; font-size:21px}
.answer__sub{font-size:16px; color:var(--muted2); margin-top:4px; line-height:1.6}

.quiz__bottom{
  display:flex; align-items:center; gap:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.12);
}

.result{padding:26px}
.result__badge{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  background: rgba(110,190,255,.22);
  border:1px solid rgba(110,190,255,.35);
  color: var(--text);
  margin-bottom:12px;
}
.result__bullets{
  display:grid; gap:12px;
  margin:16px 0 10px;
}
.bullet{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding:14px;
  color: var(--muted);
  font-size:18px;
  line-height:1.7;
}
.fineprint{
  margin-top:10px;
  font-size:14px;
  color:var(--muted2);
  line-height:1.55;
}

.cardLite{
  margin-top:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.inp{
  width:100%;
  padding:16px 16px;
  border-radius:16px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color: rgba(238,244,255,.95);
  font-size:21px;
  font-weight:700;
}

.inp::placeholder, input::placeholder{
  color: rgba(238,244,255,.85);
  font-weight:600;
  font-size:18px;
}

.status{
  margin-top:10px;
  color: rgba(238,244,255,.78);
  font-size:16px;
}

.hp{
  position:absolute !important;
  left:-9999px !important;
  top:-9999px !important;
  height:1px !important;
  width:1px !important;
  opacity:0 !important;
}

.footer{
  margin:22px 0 28px;
  padding:16px 2px;
}
.footer__row{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
.muted{color:var(--muted2); font-size:14px}

/* select readability (dropdown options) */
select{
  background-color:#ffffff !important;
  color:#0b1220 !important;
  font-size:21px !important;
}
select option{
  background-color:#ffffff;
  color:#0b1220;
  font-size:21px;
}

/* responsive */
@media (max-width: 900px){
  body{font-size:22px}
  h1{font-size:36px}
  .hero{grid-template-columns:1fr}
  .hero__art.heroArt{min-height: 320px}
  .heroArt__person{right:50%; transform: translateX(50%); height:85%}
  .grid2{grid-template-columns:1fr}
  .btn{width:100%}
}

/* ===== Scene background layout (single scene, no right panel) ===== */
.hero{
  display:block !important;
}
.hero__content{
  max-width: 720px;
}
@media (min-width: 980px){
  .hero__content{ max-width: 780px; }
}
/* всплывающее окно */
.notice-bar{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 96%);
  z-index: 9999;
}

.notice-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px; /* больше воздуха */

  background:
    radial-gradient(900px 380px at 85% 0%, rgba(90,170,255,.28), transparent 60%),
    linear-gradient(180deg, rgba(18,32,64,.92), rgba(10,18,38,.97));
  border: 1px solid rgba(140,190,255,.28);
  border-radius: 20px;
  box-shadow:
    0 18px 50px rgba(0,0,0,.60),
    inset 0 0 0 1px rgba(140,190,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.notice-left{
  display: flex;
  align-items: flex-start;
  gap: 14px;

  font-size: 18px;      /* КРУПНЕЕ */
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255,255,255,.92);
}

.notice-badge{
  font-size: 13px;      /* акцент на "ВНИМАНИЕ" */
  font-weight: 800;
  letter-spacing: .16em;
  color: #b7dbff;
  white-space: nowrap;
  padding-top: 2px;
}

.notice-close{
  width: 40px;          /* крупнее кнопка */
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
}

.notice-close:hover{
  background: rgba(255,255,255,.12);
}

/* адаптив */
@media (max-width: 720px){
  .notice-inner{
    padding: 14px 16px;
    gap: 12px;
  }
  .notice-left{
    flex-direction: column;
    gap: 6px;
    font-size: 15.5px;  /* чтобы не раздувало мобилку */
    line-height: 1.55;
  }
  .notice-badge{
    font-size: 12px;
  }
  .notice-close{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}
/* всплывающее окно */


/* ===== captcha (anti-bot) small bar under phone ===== */
.captchaBar{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(238,244,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.captchaLabel{
  font-weight:700;
  letter-spacing:.06em;
  color: rgba(175,210,255,.95);
  white-space:nowrap;
}

.captchaQ{
  font-weight:800;
  color: rgba(238,244,255,.95);
}

.captchaInp{
  width:72px;
  height:36px;
  border-radius:12px;
  padding:0 10px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color: rgba(238,244,255,.95);
  font-size:18px;
  font-weight:800;
  outline:none;
}

.captchaInp:focus{
  border-color: rgba(120,170,255,.55);
  box-shadow: 0 0 0 3px rgba(90,170,255,.18);
}

@media (max-width: 720px){
  .captchaBar{ margin-top:10px; }
  .captchaInp{ width:64px; font-size:16px; }
}
