/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f0f0f0;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.moex-logo-svg { width: 42px; height: 42px; flex-shrink: 0; }

.header-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.moex-badge-text {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

/* ===== HERO ===== */
.hero-section {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== OFFER SECTION ===== */
.offer {
  padding: 28px 24px 36px;
  text-align: center;
  flex: 1;
}

.offer h1 {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.offer .subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  line-height: 1.55;
  margin-bottom: 30px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: #E31E24;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 16px 0;
  border-radius: 6px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  -webkit-appearance: none;
}

.btn-primary:hover { background: #c8181e; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: block;
  background: #fff;
  color: #E31E24;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 6px;
  width: 100%;
  border: 2px solid #E31E24;
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 10px;
  text-align: center;
}

.btn-secondary:hover { background: #fff5f5; }

/* ===== BONUS VIDEOS ===== */
.bonus-videos {
  margin-top: 20px;
  text-align: left;
}

.bonus-label {
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.bonus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bonus-list li {
  font-size: 12px;
  color: #999;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.bonus-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 10px;
  top: 1px;
}

/* ===== FOOTER ===== */
.footer {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  padding: 20px 20px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 12px;
  color: #555;
  text-decoration: underline;
}

.footer-links a:hover { color: #E31E24; }

.footer-disclaimer {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.footer-contacts {
  font-size: 12px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-contacts a { color: #444; text-decoration: underline; }
.footer-contacts a:hover { color: #E31E24; }

.footer-copyright {
  font-size: 11px;
  color: #aaa;
  text-align: center;
}

/* ===== QUIZ PAGE ===== */
.quiz-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.quiz-header .moex-badge-text { font-size: 12px; }

.step-counter {
  font-size: 12px;
  font-weight: 600;
  color: #999;
}

.progress-bar {
  height: 5px;
  background: #e8e8e8;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #E31E24;
  transition: width 0.35s ease;
  border-radius: 0 3px 3px 0;
}

.quiz-body {
  padding: 28px 20px 32px;
}

.question-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.option-item:hover {
  border-color: #E31E24;
  background: #fff8f8;
}

.option-item.selected {
  border-color: #E31E24;
  background: #E31E24;
  color: #fff;
}

.option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.option-item.selected .option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

/* Shake animation for validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease; }

/* ===== LEAD FORM ===== */
.form-step-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.form-step-desc {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 16px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.18s;
  background: #fff;
  -webkit-appearance: none;
}

.form-input:focus { border-color: #E31E24; }
.form-input.error { border-color: #ff4444; }

.form-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 7px;
  line-height: 1.4;
}

/* SMS input */
.sms-input {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 10px;
  color: #E31E24;
}

.sms-resend {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
}

.sms-resend a {
  color: #E31E24;
  text-decoration: underline;
  cursor: pointer;
}

.sms-sent-msg {
  display: none;
  color: #22aa44;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

/* ===== STEP DISPLAY ===== */
.quiz-step { display: none; }
.quiz-step.active { display: block; }

/* ===== RESULT PAGE ===== */
.result-header {
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.result-body { padding: 24px 20px 40px; }

.result-title {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.2;
}

.result-subtitle {
  font-size: 15px;
  color: #777;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* PDF Card */
.pdf-card {
  background: linear-gradient(135deg, #1a2540 0%, #E31E24 100%);
  border-radius: 14px;
  padding: 26px 22px;
  color: white;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(227, 30, 36, 0.25);
}

.pdf-icon {
  font-size: 52px;
  margin-bottom: 12px;
  display: block;
}

.pdf-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pdf-desc {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-download {
  display: inline-block;
  background: #fff;
  color: #E31E24;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn-download:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-download:active { transform: scale(0.97); }

/* Videos Section */
.videos-section {}
.videos-title {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.videos-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.5;
}

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

.video-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.06);
}

.video-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-bg span {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  font-family: Arial Black, sans-serif;
}

.video-bg-1 { background: linear-gradient(135deg, #0d1421, #1e3a5f); }
.video-bg-2 { background: linear-gradient(135deg, #1a0a0a, #4a1010); }
.video-bg-3 { background: linear-gradient(135deg, #0a1a0a, #104a10); }
.video-bg-4 { background: linear-gradient(135deg, #0a0a1a, #1a1060); }
.video-bg-5 { background: linear-gradient(135deg, #0a1a1a, #105050); }

.video-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  backdrop-filter: blur(2px);
}

.lock-icon {
  font-size: 30px;
  line-height: 1;
}

.lock-text {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.lock-hint {
  font-size: 11px;
  opacity: 0.65;
  text-align: center;
  max-width: 180px;
  line-height: 1.4;
}

.video-info {
  padding: 12px 14px;
}

.video-num {
  font-size: 11px;
  color: #E31E24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.video-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

/* ===== PRIVACY PAGE ===== */
.privacy-wrap {
  padding: 24px 20px 48px;
}

.privacy-wrap h1 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

.privacy-wrap h2 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.privacy-wrap p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 10px;
}

.privacy-wrap ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.privacy-wrap li {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .offer h1 { font-size: 23px; }
  .question-title { font-size: 18px; }
  .form-step-title { font-size: 19px; }
  .sms-input { font-size: 26px; letter-spacing: 8px; }
}
