/*
 Theme Name: Tomiris History - Final
 Description: Строго по ТЗ
 Version: 6.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue: #0051A5;
  --orange: #FF6B35;
  --white: #FFFFFF;
  --bg: #F9FAFB;
  --text: #1F2937;
  --text-gray: #6B7280;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.marathon-page {
  min-height: 100vh;
}

.marathon-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.marathon-section {
  padding: 60px 0;
}

/* ========== HERO ========== */
.marathon-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: var(--white);
}

.marathon-badge {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

.marathon-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--blue);
  text-transform: none;
}

.marathon-hero-title .highlight {
  color: var(--orange);
}

.marathon-hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 40px;
  font-weight: 500;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255,107,53,0.3);
}

/* ========== ЧЕКЛИСТ ========== */
.marathon-checklist-section {
  background: var(--white);
}

.marathon-section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
  line-height: 1.3;
}

.marathon-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.check-card {
  padding: 28px 24px;
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.check-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.check-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.cta-center {
  text-align: center;
}

/* ========== ПРОГРАММА ========== */
.marathon-program-section {
  background: var(--bg);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.program-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.program-day {
  display: inline-block;
  padding: 8px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.program-card.bonus .program-day {
  background: var(--orange);
}

.program-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.4;
}

.program-description {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  font-weight: 500;
}

/* ========== СПИКЕР ========== */
.marathon-speaker-section {
  background: var(--white);
}

.speaker-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

.speaker-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.speaker-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.speaker-name {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 24px;
}

.speaker-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.speaker-list li {
  font-size: 17px;
  color: var(--text);
  line-height: 2;
  padding-left: 28px;
  position: relative;
  font-weight: 500;
}

.speaker-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 20px;
}

.speaker-cta-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* ========== FOOTER ========== */
.marathon-footer {
  padding: 40px 0;
  text-align: center;
  background: var(--white);
  border-top: 1px solid #E5E7EB;
  color: var(--text-gray);
  font-size: 14px;
}

/* ========== MODAL ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-content {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--orange);
  color: var(--white);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 32px;
  color: var(--text);
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: #F3F4F6;
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.radio-label:hover {
  border-color: var(--orange);
}

.radio-label input {
  display: none;
}

.radio-label input:checked + span {
  font-weight: 700;
  color: var(--orange);
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
  .marathon-hero {
    padding: 80px 24px 50px;
  }
  
  .speaker-card {
    grid-template-columns: 1fr;
  }
  
  .marathon-checklist,
  .program-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-cta {
    width: 100%;
  }
  
  .radio-group {
    flex-direction: column;
  }
  
  .radio-label {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 32px 24px;
  }
  
  .marathon-hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }
}





/* ========== АНИМАЦИИ И ПАРАЛЛАКС ========== */

/* Плавающие исторические частицы */
.marathon-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,107,53,0.03) 0%, transparent 2%),
    radial-gradient(circle at 80% 70%, rgba(4,102,200,0.03) 0%, transparent 2%),
    radial-gradient(circle at 50% 50%, rgba(123,97,255,0.02) 0%, transparent 2%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 0.6;
  }
}

/* Градиентная анимация на фоне Hero */
.marathon-hero {
  position: relative;
  overflow: hidden;
}

.marathon-hero::before {
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.03;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.05;
    transform: translate(-50%, -50%) rotate(5deg) scale(1.05);
  }
}

/* Плавающие свитки по углам */
.floating-scroll {
  position: fixed;
  width: 80px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M20,20 Q10,10 20,0 L80,0 Q90,10 80,20 L80,120 Q90,130 80,140 L20,140 Q10,130 20,120 Z' fill='rgba(232,213,196,0.6)' stroke='rgba(255,107,53,0.3)' stroke-width='2'/%3E%3Cpath d='M30,30 L70,30 M30,50 L70,50 M30,70 L70,70' stroke='rgba(90,96,129,0.2)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
  animation: scrollFloat 8s ease-in-out infinite;
}

.floating-scroll-1 {
  top: 15%;
  left: 2%;
  animation-delay: 0s;
}

.floating-scroll-2 {
  bottom: 20%;
  right: 3%;
  animation-delay: 2s;
  transform: rotate(15deg);
}

@keyframes scrollFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(5deg);
  }
}

/* Вращающиеся монеты */
.floating-coin {
  position: fixed;
  width: 50px;
  height: 50px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,140,66,0.4), rgba(255,107,53,0.2)),
    conic-gradient(from 0deg, rgba(255,107,53,0.3), rgba(255,140,66,0.4), rgba(255,107,53,0.3));
  border-radius: 50%;
  border: 2px solid rgba(255,107,53,0.4);
  box-shadow: 
    inset 0 2px 8px rgba(255,255,255,0.3),
    0 4px 12px rgba(255,107,53,0.3);
  pointer-events: none;
  z-index: 1;
  animation: coinRotate 12s linear infinite;
}

.floating-coin::before {
  content: "⚜";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,107,53,0.6);
}

.floating-coin-1 {
  top: 25%;
  right: 8%;
  animation-delay: 0s;
}

.floating-coin-2 {
  bottom: 30%;
  left: 5%;
  animation-delay: 4s;
}

.floating-coin-3 {
  top: 60%;
  right: 15%;
  animation-delay: 8s;
}

@keyframes coinRotate {
  0% {
    transform: translateY(0) rotateY(0deg);
  }
  25% {
    transform: translateY(-20px) rotateY(90deg);
  }
  50% {
    transform: translateY(0) rotateY(180deg);
  }
  75% {
    transform: translateY(-20px) rotateY(270deg);
  }
  100% {
    transform: translateY(0) rotateY(360deg);
  }
}

/* Мерцающие звёздочки */
.star-sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255,107,53,0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: sparkle 3s ease-in-out infinite;
}

.star-sparkle::before,
.star-sparkle::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
}

.star-sparkle::after {
  transform: rotate(90deg);
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Генерация случайных позиций для звёздочек */
.star-1 { top: 20%; left: 15%; animation-delay: 0s; }
.star-2 { top: 40%; right: 20%; animation-delay: 1s; }
.star-3 { bottom: 35%; left: 25%; animation-delay: 2s; }
.star-4 { top: 65%; right: 10%; animation-delay: 1.5s; }
.star-5 { bottom: 20%; right: 30%; animation-delay: 0.5s; }

/* 3D эффект на карточках */
.marathon-check-item,
.marathon-program-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marathon-check-item:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
    0 20px 40px rgba(255,107,53,0.25),
    0 0 0 1px rgba(255,107,53,0.1);
}

.marathon-program-card:hover {
  transform: translateY(-10px) rotateX(-2deg) rotateY(2deg);
  box-shadow: 
    0 25px 50px rgba(4,102,200,0.3),
    0 0 0 1px rgba(4,102,200,0.1);
}

/* Волновая анимация на заголовках */
.marathon-section-title {
  position: relative;
  animation: titleWave 4s ease-in-out infinite;
}

@keyframes titleWave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Пульсирующее свечение на кнопках */
.btn-cta-floating {
  animation: float-bounce 3s ease-in-out infinite, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 12px 40px rgba(255,107,53,0.4),
      inset 0 1px 0 rgba(255,255,255,0.3);
  }
  50% {
    box-shadow: 
      0 12px 50px rgba(255,107,53,0.6),
      0 0 30px rgba(255,107,53,0.3),
      inset 0 1px 0 rgba(255,255,255,0.3);
  }
}

/* Анимация появления при скролле */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Градиентный шифт на highlight */
.marathon-hero-title .highlight {
  background: linear-gradient(
    135deg, 
    var(--orange-main), 
    var(--orange-bright),
    var(--orange-main)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Волны на фоне секций */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q300,0 600,50 T1200,50 L1200,100 L0,100 Z' fill='rgba(255,248,240,0.4)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  animation: waveMove 10s ease-in-out infinite;
}

@keyframes waveMove {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50px);
  }
}

/* Вращающиеся печати */
.rotating-seal {
  position: fixed;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='rgba(255,107,53,0.2)' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='rgba(255,107,53,0.15)' stroke-width='1.5'/%3E%3Cpath d='M50,15 L55,45 L50,50 L45,45 Z M85,50 L55,55 L50,50 L55,45 Z M50,85 L45,55 L50,50 L55,55 Z M15,50 L45,45 L50,50 L45,55 Z' fill='rgba(255,107,53,0.2)'/%3E%3Ccircle cx='50' cy='50' r='8' fill='rgba(255,107,53,0.3)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  animation: sealRotate 20s linear infinite;
}

.rotating-seal-1 {
  top: 10%;
  left: 5%;
}

.rotating-seal-2 {
  bottom: 15%;
  right: 8%;
  animation-delay: 10s;
}

@keyframes sealRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Эффект сияния на иконках */
.marathon-check-icon,
.marathon-speaker-achievements li::before {
  position: relative;
  overflow: hidden;
}

.marathon-check-icon::after,
.marathon-speaker-achievements li::before::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.6) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Параллакс для фото спикера */
.marathon-speaker-photo {
  transition: transform 0.3s ease;
}

.marathon-speaker-photo:hover {
  transform: scale(1.03) translateZ(20px);
}

.marathon-speaker-photo img {
  transition: transform 0.5s ease;
}

.marathon-speaker-photo:hover img {
  transform: scale(1.05);
}

/* Дрожание водяных знаков */
.marathon-hero::before,
.marathon-checklist-section::before,
.marathon-program-section::before,
.marathon-speaker-section::before {
  animation: watermarkPulse 8s ease-in-out infinite;
}

@keyframes watermarkPulse {
  0%, 100% {
    opacity: 0.03;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Анимация рамки страницы */
body::after {
  animation: borderPulse 6s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    border-color: rgba(255,107,53,0.15);
  }
  50% {
    border-color: rgba(255,107,53,0.25);
  }
}

/* Плавающие исторические символы */
.floating-symbol {
  position: fixed;
  font-size: 40px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  animation: symbolFloat 15s ease-in-out infinite;
  filter: blur(1px);
}

.symbol-1 { content: "⚔"; top: 15%; left: 10%; animation-delay: 0s; }
.symbol-2 { content: "🏛"; top: 45%; right: 12%; animation-delay: 5s; }
.symbol-3 { content: "📜"; bottom: 25%; left: 8%; animation-delay: 10s; }

@keyframes symbolFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-40px) rotate(10deg);
    opacity: 0.2;
  }
}

/* Адаптив для анимаций */
@media (max-width: 900px) {
  .floating-scroll,
  .floating-coin,
  .rotating-seal,
  .floating-symbol,
  .star-sparkle {
    display: none;
  }
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}







