/* Базовые стили и переменные */
:root {
  --primary-color: #d35400; /* Цвет охры/огня */
  --primary-dark: #a04000;
  --bg-color: #fcf3cf; /* Светлый пергамент */
  --text-main: #3e2723;
  --text-light: #5d4037;
  --accent: #1e8449; /* Цвет леса */
  --font-heading: 'Cormorant Garamond', serif;
  --font-text: 'Inter', sans-serif;
  --font-handwriting: 'Caveat', cursive;
}

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

body {
  font-family: var(--font-text);
  color: var(--text-main);
  background-color: var(--bg-color);
  background-image: url('https://www.transparenttextures.com/patterns/old-wall.png');
  line-height: 1.6;
  overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
}

h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2.8rem; margin-bottom: 30px; text-align: center; }
h3 { font-size: 2rem; margin-bottom: 15px; }

p { font-size: 1.1rem; margin-bottom: 20px; }

.handwriting {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: var(--primary-color);
  transform: rotate(-2deg);
  display: inline-block;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(211, 84, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 25px rgba(211, 84, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: white;
}

/* Верхняя навигация */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  background: rgba(44, 26, 22, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fcf3cf;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #f4e8c1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-dice {
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 4px 16px;
}

.nav-dice:hover {
  background: var(--primary-color);
  color: #fff !important;
}

.btn.nav-btn {
  padding: 8px 26px;
  font-size: 1.2rem;
  box-shadow: none;
}

@media (max-width: 640px) {
  .site-nav { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .nav-links { justify-content: center; gap: 14px; }
}

/* Hero Секция */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/hero_banner.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(62, 39, 35, 0.3), rgba(252, 243, 207, 1));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding-top: 10vh;
  animation: fadeIn 1.5s ease-out;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 40px;
}

/* Секция "Для родителей" */
.parents-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.two-col {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.two-col.reverse {
  flex-direction: row-reverse;
}

.col-text { flex: 1; }
.col-image { flex: 1; position: relative; }

.col-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}

.col-image:hover img {
  transform: scale(1.02);
}

/* Сетка особенностей (Edutainment) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(255,255,255,0.6);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid rgba(141, 110, 99, 0.3);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: white;
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Секция Героев */
.heroes-section {
  background: #3e2723;
  color: #fcf3cf;
  padding: 100px 20px;
}

.heroes-section h2 {
  color: #fcf3cf;
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.hero-card {
  text-align: center;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-card h4 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* Секция CTA (Подписка) */
.cta-section {
  padding: 120px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.price-box {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  position: relative;
  margin-top: 40px;
}

.price-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: bold;
  letter-spacing: 1px;
}

.price-amount {
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin: 20px 0;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Респонсивность */
@media (max-width: 992px) {
  .two-col, .two-col.reverse { flex-direction: column; }
  .heroes-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  h1 { font-size: 3rem; }
}
