﻿.splash {
  width: 100%;
  height: 100%;
  background: url("../pic/Bg.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.splash-logo {
  width: 220px;
  margin-bottom: 40px;
}
.screen {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  background: url("../pic/Bg.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.screen-inner {
  width: 100%;
  max-width: 520px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;                 /* ⬅️ КЛЮЧ */
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 75px;
}
.screen-3 {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.screen-inner.screen-3 {
  overflow-y: hidden;
  padding-bottom: 24px;
}
.screen-3-content label{
  width: 100%;
  margin: 0;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 29px;
  white-space: nowrap;
}
.screen-3-content p{
    margin-top: 0px;
    color: #e8efff;
    font-size: 14px;
    text-align: center;
    width: 100%;
}
.screen-3-content {
  flex: 1;
  display: flex;
  align-items: center;      /* ВЕРТИКАЛЬНЫЙ ЦЕНТР */
  justify-content: flex-start;
  padding: 0 12px;
  flex-wrap: wrap;
  align-content: start;
  margin-top: 140px;
  overflow: hidden;
}
.screen-3-image {
  width: 100%;
  max-width: 360px;
}
.screen-3-footer {
  margin-top: auto;
  padding-bottom: 16px;
}
.question-screen {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 140px;
}
.question-screen .question-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  padding: 0 24px;
  z-index: 20;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.question-screen .question-footer .back-btn {
  margin-bottom: 10px !important;
}
.back-btn {
  margin: 12px auto 0 !important;
  display: block;
  position: static !important;
  background: none;
  border: none;
  color: rgb(125 140 179 / 85%);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px !important;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.back-btn:active {
  transform: scale(0.96);
  opacity: 0.7;
}
.progress {
  width: 99.5%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 6px;
}
.progress-bar {
  height: 100%;
  background: #1d4ac8;
}
.progress.progress-segmented {
  display: flex;
  gap: 4px;
  background: transparent;
  overflow: visible;
  height: 6px;
}
.progress-segment {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
.progress-segment.active {
  background: #1d4ac8;
}
.profile-screen {
  padding: 12px 16px 90px;
}
.profile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  padding: 0 16px;
  z-index: 20;
}
.scenario-content h3 {
  margin-top: 24px;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: -4px;
}
.scenario-content p {
  margin: 10px 0;
  color: #cfd6ff;
  line-height: 1.45;
}
.scenario-content em {
  color: #ffffff;
  font-style: normal;
  font-weight: 500;
}
.scenario-action {
  position: fixed;
  bottom: 16px;
  left: 24px;
  right: 24px;
  z-index: 20;
}
.scenario-action-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(88deg, #7696ff, 29%, #4177fe);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow:
    0 10px 24px rgba(106,140,255,0.35);
  cursor: pointer;
}
.question-card {
  margin: 0;              /* ❌ убираем auto-центрирование */
  height: auto;           /* ❌ убираем растягивание */
  flex: none;             /* ❌ не занимает весь экран */
}

