/* =============================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И СТИЛИ
   ============================= */
:root {
  --bg: #135a5b;          /* Основной фон сайта */
  --btn: #083233;         /* Цвет кнопок */
  --btn-hover: #135a5b;   /* Цвет при наведении */
  --card-bg: white;       /* Фон карточки */
  --text-light: #f8f9fa;  /* Светлый текст */
  --accent: #d9b66f;      /* ✅ Цвет текста в хедере и футере */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================
   HEADER
   ============================= */
header {
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent);   /* ✅ Цвет текста в хедере */
  padding: 16px 20px;
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

header p {
  font-size: 14px;
  margin: 0;
}

.header-button {
  display: inline-block;
  padding: 8px 20px;
  background: #a8e6cf;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}

.header-button:hover {
  background: #88d4b0;
  text-decoration: underline;
}

/* =============================
   MAIN: ЦЕНТРИРОВАНИЕ КОНТЕНТА
   ============================= */
.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background: var(--card-bg);
  border-radius: 20px; /* ✅ Мягкие углы */
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* ✅ Глубокая тень */
  position: relative;
}

/* =============================
   ЭКРАНЫ (вопросы, интро)
   ============================= */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   ЗАГОЛОВОК И ВВОДНЫЙ ТЕКСТ
   ============================= */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #083233;
  font-weight: 600;
}

.intro-text {
  margin: 0 0 24px;
  line-height: 1.6;
  color: #555;
  font-size: 16px;
  text-align: center;
}

/* =============================
   КНОПКИ
   ============================= */
.full-width-button,
button {
  width: 100%;
  padding: 16px;
  background: var(--btn);
  color: white;
  border: none;
  border-radius: 12px; /* ✅ Мягкие углы */
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.full-width-button:hover,
button:hover:not(:disabled) {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =============================
   ПРОГРЕСС-БАР
   ============================= */
.progress-container {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--btn);
  width: 0%;
  transition: width 0.4s ease;
}

/* =============================
   ВОПРОСЫ И ОПЦИИ
   ============================= */
.question-number {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
  font-size: 16px;
}

.question-text {
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  padding: 14px 18px;
  background: #f5f7fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

label:hover {
  background: #edf2f7;
  transform: translateX(2px);
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + span {
  background: #e3f7f6;
  border-left: 4px solid var(--btn);
  font-weight: bold;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent);   /* ✅ Цвет текста в футере */
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* =============================
   АДАПТИВНОСТЬ
   ============================= */
@media (max-width: 600px) {
  .container {
    padding: 20px;
    margin: 10px;
  }
  h1 {
    font-size: 22px;
  }
  .full-width-button {
    padding: 14px;
    font-size: 16px;
  }
}