/* ====== CSS переменные и базовые ====== */
:root {
  --bg: #fdf8f2; /* светлый фон */
  --card: #ffffff; /* карточки белые */
  --ink: #333; /* тёмный текст */
  --muted: #6a6a7a; /* приглушённый текст */
  --primary: #ff8c42; /* основной акцент (оранжевый) */
  --primary-2: #ff9f66; /* hover для оранжевого */
  --accent: #6a994e; /* вторичный акцент (зелёный) */
  --accent-2: #7ab05e; /* hover для зелёного (светлее) */
  --radius: 20px; /* скругление */
  --shadow: 0 10px 30px rgba(51, 51, 51, .08); /* тень под --ink */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
/* Доступность */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
/* Контейнер */
.container { width: min(1200px, 92%); margin-inline: auto; }
/* ====== Шапка с блюром ====== */
.navbar {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  z-index: 100; /* Обычный уровень шапки */
  transition: background .3s, backdrop-filter .3s, box-shadow .3s; /* Плавность исчезновения */
}

/* КОГДА МЕНЮ ОТКРЫТО (класс добавляется через JS) */
.navbar.menu-open {
  z-index: 9001; /* Поднимаем шапку ВЫШЕ оверлея (9000) */
  background: transparent; /* Делаем фон прозрачным */
  backdrop-filter: none; /* Убираем размытие */
  -webkit-backdrop-filter: none;
  box-shadow: none; /* Убираем тень */
}
/* Скрываем логотип и навигацию, чтобы осталась только кнопка */
.navbar.menu-open .logo,
.navbar.menu-open .nav {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .2px; }
.logo img {
  width: 120px;
  max-height: 56px;
  height: auto;
  object-fit: contain;
}
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  padding: .6rem .9rem; border-radius: 12px; transition: all .25s ease;
}
.nav-links a:hover { background: rgba(106, 153, 78, .08); color: var(--accent); } /* зелёный hover */
/* Бургер */
.nav-toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 34px; height: 26px; position: relative;
  /* z-index внутри шапки не важен для перекрытия оверлея, но важен для кликабельности */
  z-index: 10;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s, top .25s, background-color .25s;
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 19px; }

/* Активное состояние бургера (Крестик) */
.nav-toggle.active span {
  background: #fff; /* Белый цвет крестика на зеленом фоне */
}
.nav-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Мобильный оверлей */
.mobile-menu-overlay {
  position: fixed; inset: 0; width: 100%; height: 100vh; /* Явно задана высота на весь экран */
  background: var(--accent); /* зелёный фон */
  color: #fff; display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 90px 22px 22px;
  /* Анимация выезда справа, перекрывает весь экран */
  transform: translateX(100%);
  transition: transform .3s ease-out;
  visibility: hidden; /* Скрыть, пока не активно */
  /* Слой 9000: Выше контента (и обычной шапки 100), но ниже шапки с классом menu-open (9001) */
  z-index: 9000;
}
.mobile-menu-overlay.active {
  transform: translateX(0); /* Выезд на весь экран */
  visibility: visible;
}
/* Скрыть оверлей на десктопах */
@media (min-width: 769px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ====== КРАСИВОЕ МОБИЛЬНОЕ МЕНЮ (из второго варианта) ====== */
.mobile-menu {
  list-style: none; margin: 0; padding: 20px 0 0 0;
  display: flex; flex-direction: column; gap: 24px; /* Больше отступов */
}

.mobile-menu li {
  /* Начальное состояние для анимации появления */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ссылка меню */
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 26px; /* Крупный текст */
  font-weight: 800;
  position: relative; /* Для позиционирования подчеркивания */
  display: inline-block; /* Чтобы ширина соответствовала тексту */
}

/* Оранжевая линия-акцент */
.mobile-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 30px; /* Изначально короткая линия */
  height: 4px; /* Жирная линия */
  background-color: var(--primary); /* Оранжевый */
  border-radius: 2px;
  transition: width 0.3s ease; /* Плавное удлинение */
}

/* При нажатии линия растягивается */
.mobile-menu a:active::after,
.mobile-menu a:hover::after {
  width: 100%;
}

/* --- АНИМАЦИЯ "ЛЕСЕНКА" --- */
/* Когда меню активно, запускаем появление пунктов */
.mobile-menu-overlay.active .mobile-menu li {
  opacity: 1;
  transform: translateX(0);
}
/* Задержки для каждого пункта, чтобы они вылетали по очереди */
.mobile-menu-overlay.active .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(6) { transition-delay: 0.6s; }

/* ====== Hero + слайдер ====== */
.hero { position: relative; overflow: clip; padding: 5px 0 18px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; filter: blur(8px) saturate(1.1);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero:after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 400px at 50% 10%, rgba(255, 255, 255, .45), rgba(253, 248, 242, .8) 40%, rgba(253, 248, 242, 1) 65%); /* под --bg */
  pointer-events: none; z-index: -1;
}
.hero-title {
  margin: 0px 0 8px; /* Уменьшаем верхний отступ в два раза */
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 48px);
  text-align: center;
}

.hero-subtitle { margin: 0 0 28px; text-align: center; color: var(--muted); }
/* Слайдер */
.slider { position: relative; width: min(100%, 1000px); margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.slides { display: flex; width: 100%; height: clamp(260px, 48vw, 520px); transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.slide { flex: 0 0 100%; position: relative; display: grid; place-items: end; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.slide-cta {
  position: absolute; inset: auto 18px 18px 18px;
  background: linear-gradient(to right, rgba(106, 153, 78, .7), rgba(106, 153, 78, .25)); /* зелёный градиент */
  color: #fff; padding: 16px 16px; border-radius: 16px; backdrop-filter: blur(6px);
}
.slide-cta h3 { margin: 0 0 10px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* Кнопки */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: var(--accent); color: #fff; border: 1px solid rgba(255, 255, 255, .35); } /* зелёный для ghost-кнопок */
.btn-ghost:hover { background: var(--accent-2); border-color: rgba(255,255,255,.5); }
.btn-lg { padding: 14px 22px; border-radius: 18px; font-size: 18px; }
/* Анимация пульсации для кнопки */
.btn-pulse {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary), var(--primary-2));
  background-size: 100%;
}
.btn-pulse::after { display: none; }
/* Стрелки */
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(106, 153, 78, .18); /* зелёный фон стрелок */ color: #fff; border: 0; border-radius: 50%;
  cursor: pointer; transition: background .2s ease; backdrop-filter: blur(3px);
}
.slide-btn:hover { background: rgba(106, 153, 78, .28); } /* зелёный hover */
.prev { left: 10px; } .next { right: 10px; }
@media (max-width: 768px) { .slide-btn { display: none; } }
/* Точки */
.dots { display: flex; gap: 8px; justify-content: center; margin: 12px 0 0; }
.dot {
  width: 10px; height: 15px; border-radius: 50%; /* слегка вытянутый овал */
  background: #cfcfe8; opacity: .7; cursor: pointer; transition: transform .15s ease, opacity .2s;
}
.dot.active { opacity: 1; transform: scale(1.12); background: var(--accent); } /* зелёный для активной точки */
/* ====== Общие секции ====== */
.section { padding: 72px 0; }
.section-title { text-align: center; font-weight: 800; font-size: clamp(22px, 3.6vw, 34px); margin: 0 0 10px; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 28px; width: min(780px, 92%); }
/* Единый контейнер для секций с фоном */
.combined-sections {
  position: relative;
  overflow: hidden;
  background: #fef4ea;
  z-index: 0;
}
/* Наша сцена */
.stage { position: relative; overflow: hidden; padding: 72px 0; }
.stage-bg {
  position: absolute; inset: 0; z-index: -1;
  filter: blur(4px) brightness(0.8); /* более отдалённый фон */
}
.stage-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.stage-inner {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px; text-align: center; max-width: 800px; margin: 0 auto;
}
.stage-content { color: var(--ink); font-size: 18px; }
/* Ближайшие события */
.events { padding: 72px 0; }
.events-inner {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px; text-align: center; max-width: 900px; margin: 0 auto;
}
.events-table {
  width: 100%; border-collapse: collapse; font-size: 16px;
}
.events-table th, .events-table td {
  padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(51, 51, 51, .1);
}
.events-table th { color: var(--muted); font-weight: 700; }
.events-table td:last-child { text-align: right; }
@media (max-width: 768px) {
  .events-table { display: block; }
  .events-table thead { display: none; }
  .events-table tbody, .events-table tr { display: block; }
  .events-table tr {
    background: var(--card); border-radius: 16px; margin-bottom: 12px; padding: 12px;
    box-shadow: 0 4px 12px rgba(51, 51, 51, .08);
  }
  .events-table td {
    display: block; text-align: center; border: none; padding: 6px 0;
  }
  .events-table td:last-child { text-align: center; }
  .events-table td:before {
    content: attr(data-label); display: block; color: var(--muted); font-weight: 700; font-size: 14px;
  }
  .events-table td:nth-child(1):before { content: "Дата"; }
  .events-table td:nth-child(2):before { content: "Спектакль"; }
  .events-table td:nth-child(3):before { content: "Время"; }
  .events-table td:nth-child(4):before { content: ""; }
}
/* Отзывы зрителей */
.reviews { padding: 72px 0; }
.reviews-inner {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px; text-align: center; max-width: 900px; margin: 0 auto;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff8f2 100%);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(0,0,0,.12);
  padding: 32px;
  text-align: left;
  transform: translateY(0);
  transition: transform .4s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 20%, rgba(255,140,66,.12), transparent 50%);
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
}
.review-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.review-avatar {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 16px 32px rgba(0,0,0,.16);
  border: 4px solid rgba(255,140,66,.28);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name {
  margin: 0;
  font-weight: 900;
  color: var(--ink);
  font-size: 20px;
  text-align: center;
}
.review-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.review-text {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.7;
}
.review-footnote {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.review-quote {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 32px;
  color: rgba(255,140,66,.5);
}
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 26px; }
  .review-avatar { width: 160px; height: 160px; }
}
/* Часто задаваемые вопросы */
.faq { padding: 72px 0; }
.faq-inner {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px; text-align: center; max-width: 900px; margin: 0 auto;
}
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  background: var(--card); border-radius: 16px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(51, 51, 51, .08);
}
.faq-question {
  width: 100%; text-align: left; padding: 16px 20px; font-size: 16px; font-weight: 700;
  color: var(--ink); background: transparent; border: none; cursor: pointer;
  position: relative; transition: color .2s ease;
}
.faq-question:hover { color: var(--primary); }
.faq-question::after {
  content: '▼'; position: absolute; right: 20px; font-size: 14px;
  transition: transform .3s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height .3s ease, padding .3s ease;
}
.faq-answer p { margin: 0; font-size: 16px; color: var(--muted); }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 20px 16px; }
@media (max-width: 768px) {
  .faq-question { font-size: 15px; padding: 12px 16px; }
  .faq-answer p { font-size: 15px; }
  .faq-item.active .faq-answer { max-height: 600px; }
}
/* Наши актёры */
.actors { padding: 72px 0; }
.actors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.actor-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.actor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(51, 51, 51, .15);
}
.actor-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.actor-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
}
.actor-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 16px 16px;
  line-height: 1.4;
}
/* Центровка последней карточки актера */
.actor-card:last-child {
  grid-column: 2;
}
@media (max-width: 768px) {
  .actors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .actor-card img { height: 360px; }
  .actor-card:last-child { grid-column: auto; } /* Отменяем центровку на планшетах */
}
@media (max-width: 480px) {
  .actors-grid { grid-template-columns: 1fr; }
  .actor-card:last-child { grid-column: auto; } /* Отменяем центровку на мобильных */
  .actor-card img { height: 400px; } /* Увеличиваем фотографии на мобильных */
}

/* О нас — «дети растут» */
.grow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grow-card {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: 14px; text-align: center; transform: scale(.96); transition: transform .5s ease, box-shadow .3s;
}
.grow-card img { border-radius: 16px; height: 200px; width: 100%; object-fit: cover; margin-bottom: 10px; }
.grow-card h3 { margin: 6px 0 6px; font-size: 20px; }
.grow-card p { margin: 0; color: var(--muted); }
.grow-card:hover { transform: scale(1.01); box-shadow: 0 12px 36px rgba(51, 51, 51, .12); }
/* эффект «роста» при появлении */
.reveal { opacity: 0; transform: translateY(16px) scale(.94); }
.revealed { opacity: 1; transform: translateY(0) scale(1); transition: opacity .6s ease, transform .6s ease; }
/* Хедлайнеры */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.play-card { border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.play-card img { width: 100%; height: 220px; object-fit: cover; }
.play-content { padding: 16px; }
.play-content h3 { margin: 0 0 8px; }
.play-content p { margin: 0 0 16px; color: var(--muted); }
.play-actions { display: flex; gap: 10px; }
/* Партнёры */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.partners-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.partners-row .partner {
  width: 400px;
  flex-shrink: 0;
}
.partner {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px; text-align: center; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .3s;
}
.partner img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  margin: 8px auto 10px;
  filter: none;
}
.partner p { margin: 0; color: var(--muted); font-weight: 700; }
.partner:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(51, 51, 51, .12); }
/* CTA «Ждём вас в театре всегда!» */

/* ====== СЕКЦИЯ DONATE (Обновленная) ====== */
.donate {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Фон с градиентом */
.donate-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #fffbf5 0%, #fff0e3 100%);
}

/* Основная карточка "Волшебный билет" */
.donate-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 50px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  text-align: center;

  /* Красивая сложная тень */
  box-shadow:
    0 20px 50px rgba(255, 140, 66, 0.15),
    0 0 0 8px rgba(255, 255, 255, 0.6); /* Полупрозрачная рамка вокруг */
  border: 1px solid rgba(255, 140, 66, 0.1);
}

/* Декоративные круги (пузырьки) на фоне карточки */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.deco-1 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
  top: -30px; left: -30px;
  animation: float 6s ease-in-out infinite;
}

.deco-2 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(106, 153, 78, 0.1) 0%, transparent 70%);
  bottom: 40px; right: -20px;
  animation: float 8s ease-in-out infinite reverse;
}

/* Анимация плавания */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Контент внутри (чтобы был над декором) */
.donate-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Иконка звезды */
.icon-wrapper {
  background: #fff8f0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.15);
  animation: pulse-soft 3s infinite;
}

@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.2); }
  70% { box-shadow: 0 0 0 15px rgba(255, 140, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0); }
}

.donate-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 800;
}

.donate-title span {
  color: var(--primary);
}

.donate-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ====== БЛОК СПОНСОРОВ ====== */
.sponsor-note {
  background: #f4f9f2; /* Очень светлый зеленый фон */
  border: 2px dashed #a3cca3; /* Пунктирная рамка */
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s;
}

.sponsor-note:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.sponsor-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.sponsor-text {
  font-size: 0.95rem;
  color: #4a634a; /* Темно-зеленый текст */
  line-height: 1.5;
}

.sponsor-text strong {
  color: var(--accent);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

.sponsor-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 140, 66, 0.3);
  transition: border-color 0.2s;
}

.sponsor-link:hover {
  border-bottom-color: var(--primary);
}

/* Адаптив для спонсорского блока */
@media (max-width: 600px) {
  .sponsor-note {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 10px;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Футер */
/* ========================================= */
/* ====== ОСНОВНОЙ СТИЛЬ (DESKTOP) ====== */
/* ========================================= */
.footer {
  background-color: #252526;
  color: #cccccc;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  font-family: sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.made-text {
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #fff;
}
.contact-row a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 10px;
}
.soc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  transition: 0.2s;
}
.soc-icon:hover {
  background: #ff8c42;
}

/* Кнопка разработчика */
.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.developer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.developer-link img {
  height: 28px;
  width: auto;
  opacity: 0.9;
}
.dev-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.dev-text span {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
}
.dev-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* ========================================= */
/* ====== МОБИЛЬНАЯ ВЕРСИЯ (FIX) ====== */
/* ========================================= */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;

    /* ВЕРНУЛ СКРУГЛЕНИЕ (как на десктопе) */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  }

  /* 1. ГЛОБАЛЬНЫЙ СБРОС: Всё прижимаем влево */
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
  }

  /* 2. СОЦСЕТИ СЛЕВА */
  .socials {
    justify-content: flex-start !important;
    width: 100%;
  }

  /* Шрифты для мобилки */
  .footer-col h3 { font-size: 12px; margin-bottom: 10px; }
  .contact-row { font-size: 14px; margin-bottom: 8px; }
  .soc-icon { width: 36px; height: 36px; font-size: 11px; }

  /* 3. БЛОК РАЗРАБОТЧИКА */
  .dev-col {
    flex-direction: row;
    justify-content: center;
    align-items: center !important;

    /* Ваш вариант отступа (0px), чтобы было ровно */
    padding-left: 0px;
    box-sizing: border-box;
    gap: 12px;
  }

  /* Текст "Сделано..." */
  .made-text {
    margin: 0;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
    line-height: 1;
  }

  .developer-link {
    flex-shrink: 0;
    padding: 6px 12px;
  }
}

/* ====== Адаптив ====== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grow-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-row { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .slide-cta { inset: auto 12px 12px 12px; }
  .hero-title { margin-top: 62px; }
}
@media (max-width: 520px) {
  .grow-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .partners-row { flex-direction: column; align-items: center; }
  .partners-row .partner { width: 350px; }
}
/* ====== Снижение движения ====== */
@media (prefers-reduced-motion: reduce) {
  .slides, .reveal, .revealed, .btn, .partner, .grow-card, .btn-pulse::after { transition: none !important; }
}

/* Секция */
.outreach {
  padding: 60px 0;
}

/* Основной блок */
.outreach-block {
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем контент */
  gap: 50px;

  /* Фон и границы */
  background: #ffffff;
  border: 3px dashed #6a994e; /* Зеленая пунктирная линия — "дорожка" */
  border-radius: 40px; /* Сильно скругленные углы */

  padding: 40px 50px;
  max-width: 1000px;
  margin: 0 auto;

  /* Легкая тень для объема */
  box-shadow: 0 10px 30px rgba(106, 153, 78, 0.15);
}

/* Контейнер картинки */
.outreach-image {
  flex-shrink: 0; /* Чтобы картинка не сжималась */
  position: relative;
}

/* Сама картинка */
.outreach-image img {
  width: 240px;       /* Фиксированный небольшой размер */
  height: 240px;      /* Делаем квадрат, чтобы получился круг */
  border-radius: 50%; /* Превращаем в круг */
  object-fit: cover;

  /* Оранжевая рамка вокруг фото */
  border: 6px solid #ff8c42;
  /* Отступ между фото и рамкой (белое кольцо) */
  padding: 4px;
  background: #fff;

  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.25);
}

/* Текстовая часть */
.outreach-text {
  flex: 1;
  max-width: 550px; /* Ограничиваем ширину текста для читаемости */
}

/* Заголовок */
.outreach-title {
  color: #ff8c42; /* Оранжевый */
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 15px 0;

  /* Небольшой декоративный подчерк */
  position: relative;
  display: inline-block;
}

/* Текст описания */
.outreach-desc {
  color: #6a994e; /* Зеленый */
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Адаптив для мобильных */
@media (max-width: 800px) {
  .outreach-block {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
    border-width: 2px; /* Чуть тоньше рамка на телефоне */
  }

  .outreach-image img {
    width: 200px; /* Картинка еще меньше на телефоне */
    height: 200px;
  }
}


/* ====== ИСПРАВЛЕНИЕ СЛАЙДЕРА (FIX) ====== */

/* 1. Десктоп */
.slide-cta .cta-row {
  justify-content: flex-start;
  margin-bottom: 0;
}

/* 2. Мобильные: СТРОГО В ОДНУ СТРОКУ */
@media (max-width: 768px) {
  .slide-cta {
    padding: 10px;
    inset: auto 10px 10px 10px;
  }

  .slide-cta h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* КОНТЕЙНЕР КНОПОК */
  .slide-cta .cta-row {
    display: flex;
    flex-direction: row; /* Строго в строку */
    flex-wrap: nowrap;   /* САМОЕ ВАЖНОЕ: Запрещаем падать друг под друга */
    gap: 8px;            /* Расстояние между кнопками */
    width: 100%;
  }

  /* САМИ КНОПКИ */
  .slide-cta .btn {
    /* Растягиваем их равномерно (50% на 50%) */
    flex: 1;
    width: 100%; /* Заполняем выделенное место */

    /* Центрируем текст */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Визуальные настройки */
    font-size: 12px;
    padding: 10px 5px; /* Чуть больше высоты для пальца, меньше по бокам */
    border-radius: 8px;
    white-space: nowrap; /* Текст никогда не перенесется на вторую строку */
    height: auto;
  }
}