/* ===== FONTS ===== */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

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

:root {
  --bg: #050508;
  --bg-card: #0d0d12;
  --bg-card-hover: #14141c;
  --accent: #00e5a0;
  --accent-bright: #00ffb3;
  --accent-glow: rgba(0, 229, 160, 0.35);
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-subtle: rgba(0, 229, 160, 0.06);
  --text: #f0f0f0;
  --text-muted: #a8a8b8;
  --text-dim: #6a6a7a;
  --border: rgba(0, 229, 160, 0.15);
  --border-hover: rgba(0, 229, 160, 0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 229, 160, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ===== BACKGROUND DECORATIONS ===== */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(0, 229, 160, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 60%, rgba(0, 229, 160, 0.02) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(0, 229, 160, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== SECTION ===== */
.section {
  padding: 56px 0;
  position: relative;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ===== DIVIDER ===== */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 28px;
  border-radius: 3px;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(0.8); }
}

/* ===== HERO ===== */
.hero {
  padding: 40px 0 48px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-banner {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  border: 1px solid var(--border);
}

.hero-banner:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--border-hover);
}

.hero-banner img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.hero-banner::after {
  content: 'Нажмите, чтобы узнать больше';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 8, 0.85);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transform: translateX(-50%) translateY(8px);
}

.hero-banner:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(145deg, #0d0d14 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 229, 160, 0.05);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===== TIMER ===== */
.timer-block {
  text-align: center;
  margin: 28px 0;
}

.timer-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.timer-unit {
  background: linear-gradient(145deg, #0f0f16 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timer-unit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.timer-unit:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--accent-dim);
}

.timer-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.timer-name {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 24px auto 0;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #00c98c 100%);
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--accent-dim);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  box-shadow: 0 8px 40px var(--accent-glow);
  transform: translateY(-3px) scale(1.02);
}

.cta-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-note {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FORM ===== */
.form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.form-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.form-card {
  background: linear-gradient(145deg, #0d0d14 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 229, 160, 0.05);
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: var(--accent);
  letter-spacing: -0.3px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  padding: 15px 18px;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim), inset 0 0 20px rgba(0, 229, 160, 0.03);
  background: rgba(5, 5, 8, 0.95);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-submit {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--accent) 0%, #00c98c 100%);
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.form-success .checkmark {
  font-size: 56px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--accent);
}

.form-success p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== SCREEN 2: PROBLEM ===== */
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.problem-tag {
  background: linear-gradient(135deg, var(--accent) 0%, #00c98c 100%);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 2px 12px var(--accent-dim);
}

.problem-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* ===== SCREEN 3: PROGRAM ===== */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.program-card {
  background: linear-gradient(145deg, #0f0f16 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.program-card:hover::before {
  opacity: 1;
}

.program-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.program-card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-card-title {
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.program-card:hover .program-card-title {
  color: var(--accent);
}

/* ===== CARD MODAL ===== */
.card-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.card-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.card-modal {
  background: linear-gradient(145deg, #0d0d14 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 229, 160, 0.05);
}

.card-modal h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.card-modal p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===== SCREEN 4: SPEAKERS ===== */
.speakers-block {
  margin-top: 28px;
}

.speaker-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(145deg, #0f0f16 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.speaker-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.speaker-feature:hover::before {
  opacity: 1;
}

.speaker-feature:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

.speaker-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--accent-subtle);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.speaker-feature-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== SCREEN 5: FAQ ===== */
.faq-list {
  margin-top: 28px;
}

.faq-item {
  background: linear-gradient(145deg, #0f0f16 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-arrow {
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 20px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer p {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ===== SCROLL ANIMATIONS ===== */
.section .container > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section .container > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .section-title {
    font-size: 24px;
  }
  .timer-unit {
    min-width: 58px;
    padding: 12px 12px;
  }
  .timer-value {
    font-size: 26px;
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
  .cta-btn {
    padding: 16px 28px;
    font-size: 14px;
  }
}
