/* =============================================================
   АНО МЦ «Новое Поколение»
   Шрифт: Montserrat | Брейкпоинты: 992px, 768px, 576px
   ============================================================= */

/* =====================================================================
   1. ПЕРЕМЕННЫЕ (CSS Custom Properties)
   ===================================================================== */
:root {
   --purple: #cc0d53;
   --gold: #ffc532;
   --blue: #2563EB;
   --white: #FFFFFF;
   --gray-light: #F9F9F9;
   --gray-dark: #222;
   --bg-dark: #0a0e27;
   --bg-dark-card: #111538;
   --bg-light: #ffffff;
   --bg-light-gray: #f8f9fb;
   --accent-pink: #d946ef;
   --accent-orange: #f97316;
   --accent-purple: #7c3aed;
   --gradient-cta: linear-gradient(135deg, #ec4899, #f97316);
   --gradient-banner: linear-gradient(135deg, #7c3aed, #fb923c);
   --gradient-text: linear-gradient(90deg, #d946ef, #f97316);
   --text-white: #ffffff;
   --text-light-gray: #9ca3af;
   --text-dark: #111827;
   --text-medium-gray: #4b5563;
}


/* =====================================================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ===================================================================== */
* { box-sizing: border-box;
  margin:0;
  padding:0;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--gray-light);
  color:#333;
  line-height:1.5;
}
.fas {
  padding-bottom: 1.75px !important;
}
a {
  text-decoration:none; color:inherit;
}


/* =====================================================================
   3. ТИПОГРАФИЯ
   ===================================================================== */
section {
  padding:100px 0 0;
  max-width:1200px;
  margin:0 auto;
}
h2 {
  font-size:36px;
  font-weight: 600;
  margin-bottom:40px;
  text-align:left;
  color: var(--gray-dark);
}
h6 {
   font-weight: 600;
}


/* =====================================================================
   4. КНОПКИ
   ===================================================================== */
.btn {
  padding:12px 25px;
  background: linear-gradient(25deg,var(--purple),var(--gold));
  color: var(--white);
  font-weight:600;
  border-radius:15px;
  border: 1px solid #eb7c3f;
  margin:5px;
  display:inline-block;
  transition:0.3s;
}
.btn:hover {
  opacity:0.85;
  color: var(--white);
}


/* =====================================================================
   5. ШАПКА (HEADER) И НАВИГАЦИЯ
   ===================================================================== */
header {
  padding:20px 50px 0 50px;
  color: var(--white);
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
  position:relative;
  z-index:100;
}
.home-header {
  background: url('/assets/images/hero-image.webp') center/cover no-repeat;  
}
.inner-header {
  background: url('/assets/images/hero-image-1.webp') center/cover no-repeat;  
}

/* ============================================================
   inner-hero-fix.css
   Исправление фона hero-секции на внутренних страницах
   ============================================================ */

/* --- Высота hero на внутренних страницах (десктоп) --- */
.inner-header .hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

/* --- Планшет --- */
@media (max-width: 991px) {
  .inner-header .hero {
    min-height: 220px;
  }
}

/* --- Мобильные --- */
@media (max-width: 767px) {
  .inner-header .hero {
    min-height: 180px;
    padding: 20px 20px 25px 20px;
  }

  /* Убираем негативный margin у h1, он загоняет текст под навигацию */
  .inner-header .hero h1 {
    margin: 0 0 15px;
  }

  .inner-header .hero p {
    font-size: 1.3rem;
  }
}

/* --- Логотип --- */
.logo img {
  width: 100px;
}
.logo span {
  color: var(--gold);
}

/* --- Главное меню --- */
/* Сброс отступов для списка */
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между пунктами меню */
}

/* Родительский пункт меню */
.main-menu .menu-item {
    position: relative; /* Нужно для позиционирования выпадашки */
}

/* Ссылки в меню */
.main-menu .menu-item > a {
    text-decoration: none;
    color: #fff !important; /* Белый текст для темного фона */
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; /* Плавное появление подчеркивания */
    transition: all 0.3s ease;
    display: block;
}

/* Ховер-эффект для пунктов */
.main-menu .menu-item > a:hover {
    color: var(--gold); /* Цвет при наведении (золотой или любой твой) */
    border-bottom-color: var(--gold); /* Подчеркивание появляется */
}

/* Активный пункт меню */
.main-menu .menu-item > a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* === Выпадающее меню (Второй уровень) === */
.main-menu .dropdown {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(3, 4, 57, 0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-radius: 8px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}
.main-menu .has-dropdown > a::after {
    content: "▾";
    font-size: 1.2em;
    margin-left: 3px;
    display: inline-block;
    position: relative;
    top: 2px;
    transition: transform 0.3s ease;
}
/* Эффект при наведении */
.main-menu .has-dropdown:hover > a::after {
    transform: rotate(180deg); 
}

/* Показываем при наведении на родителя */
.main-menu .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Возвращаем на место */
}

/* Ссылки внутри выпадающего меню */
.main-menu .dropdown-item a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
    transition: background 0.2s, color 0.2s;
    white-space: normal; /* Разрешаем перенос строк */
    word-wrap: break-word; /* Переносим длинные слова, если не помещаются */
    line-height: 1.3; /* Чуть увеличим межстрочный интервал для читаемости */
}

/* Ховер для подпунктов */
.main-menu .dropdown-item a:hover {
    background: rgba(255, 255, 255, 0.1); /* Легкая подсветка фона */
    color: var(--gold);
}
.main-menu .dropdown-item.menu-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая линия */
    margin-top: 10px;
    padding-top: 15px;
}


/* =====================================================================
   6. ГЕРОЙ-СЕКЦИЯ (HERO)
   ===================================================================== */
.home-page .hero {
    height: 75vh;
    padding: 120px 20px 75px 20px;
}
.hero {
    text-align: left;
    padding: 100px 20px 55px 20px;
    position: relative;
}
.hero::after {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0);
}
.hero-content {
  position:relative;
  z-index:1;
  /*margin:0 auto;*/
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(25, 19, 54, 0.5);
}
.hero p {
  font-size:24px;
  margin-bottom:10px;
  line-height:1.5;
}
.hero p:first-child {
  text-shadow: 2px 2px 4px rgba(25, 19, 54, 0.5);
}


/* =====================================================================
   7. КАРТОЧКИ (ОБЩИЕ)
   ===================================================================== */
.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
}
.card {
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
  text-align:center;
  padding:0px;
  transition:0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow:0 6px 20px rgba(0,0,0,0.15);
}
.card img {
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:15px;
}
.card .btn {
  margin: 20px 50px;
}
.achievements {
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
  text-align:center;
  padding:30px 20px;
  background: linear-gradient(90deg,var(--blue),var(--purple),var(--gold));
  color: var(--white);
  border-radius:10px;
}
.achievement {
  font-weight:600;
  font-size:18px;
}
.achievement img {
  width: 70px;
}


/* =====================================================================
   8. БЛИЖАЙШИЕ МЕРОПРИЯТИЯ
   ===================================================================== */

/* --- Секция мероприятий --- */
.events-section {
  padding: 40px 0 55px;
  background: #f7f7f8;
}
.events-header {
  margin-bottom: 18px;
}
.events-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8d96a5;
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s ease;
}
.events-all:hover {
  color: #7b2cbf;
}
.event-nav {
  display: flex;
  gap: 8px;
}
.event-nav-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #eceef2;
  color: #9aa1ad;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}
.event-nav-btn:hover {
  background: #d61d73;
  color: #fff;
}

/* =========================
   КАРТОЧКА МЕРОПРИЯТИЯ
   ========================== */
.event-card {
  position: relative;
  min-height: 305px;
  border-radius: 14px;
  overflow: hidden;
  background: #11182c;
  color: #fff;
  isolation: isolate;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(25, 19, 54, 0.2);
}
.event-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Затемнение фотографии */
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 13, 35, 0.96) 0%, rgba(6, 13, 35, 0.76) 45%, rgba(6, 13, 35, 0.15) 100%);
}
.event-card-content {
  height: 100%;
  min-height: 305px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================
   ДАТА МЕРОПРИЯТИЯ
   ========================== */
.event-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-height: 62px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #272b33;
  font-weight: 700;
  line-height: 1.1;
}
.event-date-day {
  font-size: 16px;
}
.event-date-month {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #6e7480;
}

/* =========================
   ТЕКСТ МЕРОПРИЯТИЯ
   ========================== */
.event-info {
  margin-top: auto;
}
.event-name {
  word-wrap: break-word;
  max-width: 200px;
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}
.event-city {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* =========================
   СТАТУС МЕРОПРИЯТИЯ
   ========================== */
.event-status {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.status-close {
  background: linear-gradient(90deg, #c72077, #e54270);
}
.status-soon {
  background: linear-gradient(90deg, #18a7ac, #2ac6bd);
}
.status-open {
  background: linear-gradient(90deg, #ff6b00, #ff9d22);
  transition: all 0.3s ease;
}
a.status-open:hover {
  opacity: .85;
  transform: translateY(-3px); /* Кнопка слегка приподнимается вверх */
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4); /* Появляется красивая тень */
}

/* =========================
   КАРТОЧКА КАЛЕНДАРЯ
   ========================== */
.calendar-card {
  position: relative;
  min-height: 305px;
  padding: 30px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 90% 100%,
      rgba(255, 112, 0, 0.45),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #8f087d 0%,
      #31136f 55%,
      #111b4d 100%
    );
  color: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.calendar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(74, 20, 120, 0.3);
}
.calendar-card::after {
  content: "★";
  position: absolute;
  right: 20px;
  bottom: -50px;
  font-size: 230px;
  color: rgba(255, 255, 255, 0.05);
}
.calendar-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 6px;
}
.calendar-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.calendar-btn {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  border-radius: 8px;
  background:
    linear-gradient(
      90deg,
      #ff6b00,
      #ff2d55
    );
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}
.calendar-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 80, 40, 0.3);
}


/* =====================================================================
   9. ОТЗЫВЫ
   ===================================================================== */
.review-item-text {
    background-color: #f8f9fa; /* Светло-серый фон */
    border-left: 4px solid #0d6efd; /* Синяя полоска слева (поменяй цвет под свой дизайн) */
    padding: 20px 25px; /* Внутренние отступы */
    border-radius: 8px; /* Скругление углов */
}
.review-item-text p {
    margin-bottom: 0; /* Убираем стандартный отступ у параграфа */
}


/* =====================================================================
   10. CTA-БАННЕР
   ===================================================================== */
.cta-banner {
    background: linear-gradient(90deg,var(--blue),var(--purple),var(--gold));
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
    border-radius: 16px;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 180%;
    pointer-events: none;
}
.cta-banner .cta-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}
.cta-banner h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.btn-cta-white {
    background: rgba(255, 255, 255, .25);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #ae1a1a;
}

/* --- Форма внутри CTA-баннера --- */
/* Стилизация инпутов внутри баннера */
.cta-banner .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px); /* Эффект матового стекла */
    color: #fff;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 50px;
}
/* Стилизация плейсхолдера (чтобы был видимым) */
.cta-banner .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}
/* При клике на поле */
.cta-banner .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
}
/* Для текстового поля (textarea) делаем скругление не полностью круглое */
.cta-banner textarea.form-control {
    border-radius: 20px;
}

/* === Стили для ошибок и успеха внутри баннера === */
/* Базовый стиль для текста ошибки */
.cta-banner .error_message {
    display: block;
    background: rgba(220, 53, 69, 0.3); /* Полупрозрачный красный */
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}
/* МАГИЯ: Скрываем пустые блоки ошибок, чтобы не было остатков фона */
.cta-banner .error_message:empty {
    display: none;
}
/* Стиль блока успешной отправки */
.cta-banner .success_message {
    display: block;
    background: rgba(40, 167, 69, 0.3); /* Полупрозрачный зеленый */
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
/* Скрываем блок успеха, пока он пустой */
.cta-banner .success_message:empty {
    display: none;
}


/* =====================================================================
   11. BREADCRUMBS (ХЛЕБНЫЕ КРОШКИ)
   ===================================================================== */
.breadcrumbs-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}
.breadcrumb-item a {
    color: var(--text-medium-gray);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--accent-purple);
}
.breadcrumb-item.active {
    color: var(--accent-purple);
    font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: var(--text-light-gray);
}


/* =====================================================================
   12. О НАС — МИССИЯ
   ===================================================================== */
.mission-section {
    padding: 40px 0 0;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-cta);
    border-radius: 3px;
    margin-top: 10px;
}
.mission-text {
    color: var(--text-medium-gray);
    font-size: 0.95rem;
    line-height: 1.75;
}
.mission-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}
.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.mission-list .icon-circle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    color: var(--accent-pink);
    font-size: 1.5rem;
    margin-top: 2px;
}

/* --- Направления (Direction Cards) --- */
.direction-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.direction-card .card-img-wrapper {
    position: relative;
    height: 180px;
}
.direction-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.direction-card .card-icon-badge {
    position: absolute;
    bottom: -20px;
    left: 14px;
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 30px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.direction-card .card-body {
    padding: 28px 16px 20px;
}
.direction-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.direction-card .card-subtitle {
    font-size: 0.82rem;
    color: var(--text-light-gray);
    line-height: 1.5;
}


/* =====================================================================
   13. О НАС — СТАТИСТИКА
   ===================================================================== */
.stats-section {
    background: var(--bg-dark);
    padding: 60px 0;
    position: relative;
}
.stat-item {
    text-align: center;
    padding: 20px 10px;
    position: relative;
    z-index: 1;
}
.stat-item .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}
.stat-item .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--text-light-gray);
    line-height: 1.4;
}


/* =====================================================================
   14. О НАС — О ЦЕНТРЕ
   ===================================================================== */
.about-section {
    padding: 0 0 80px;
}
.about-section .section-title {
    margin-bottom: 24px;
}
.about-text {
    color: var(--text-medium-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}
.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}


/* =====================================================================
   15. О НАС — ЦЕННОСТИ
   ===================================================================== */
.values-section {
    background: #07032c;
    padding: 45px 25px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.values-section .section-title {
    color: var(--text-white);
}
.values-section .section-subtitle {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
}
.value-card {
    background: var(--bg-dark-card);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(217, 70, 239, 0.2);
}
.value-card .value-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}
.value-card .value-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}
.value-card .value-desc {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    line-height: 1.6;
}


/* =====================================================================
   16. О НАС — ПАРТНЁРЫ (КАРУСЕЛЬ)
   ===================================================================== */
.partners-section {
    padding: 60px 0;
}
.partners-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.partners-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    border-radius: 3px;
    margin-top: 10px;
}
.partner-logo-placeholder {
    height: 120px;
    padding: 8px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s;
    background: #fff;
}
.partner-logo-placeholder:hover {
    opacity: 1;
}
.partner-logo-placeholder img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.partners-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}
.partners-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}
.partners-carousel-track .partner-logo-placeholder {
    flex: 0 0 calc((100% - 96px) / 5);
    min-width: 0;
}
.partners-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: #6b7280;
    font-size: 0.85rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.partners-carousel-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.partners-carousel-btn.prev { left: 8px; }
.partners-carousel-btn.next { right: 8px; }


/* =====================================================================
   17. КОНТАКТЫ
   ===================================================================== */

/* --- Контактная карточка --- */
.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: #fff;
}
.contact-card-icon.icon-address  { background: linear-gradient(135deg, var(--blue), #5b8def); }
.contact-card-icon.icon-phone    { background: linear-gradient(135deg, var(--purple), #e54270); }
.contact-card-icon.icon-email    { background: linear-gradient(135deg, #ff6b00, var(--gold)); }
.contact-card-icon.icon-social   { background: linear-gradient(135deg, #18a7ac, #2ac6bd); }
.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 12px;
}
.contact-card p,
.contact-card a {
    color: var(--text-medium-gray);
    font-size: 0.92rem;
    line-height: 1.7;
    text-decoration: none;
}
.contact-card a:hover { color: var(--purple); }
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}
.phone-link:hover { color: var(--purple); }
.phone-desc {
    color: var(--text-light-gray) !important;
    font-size: 0.82rem !important;
    margin-bottom: 12px !important;
}
.social-row a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium-gray);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.social-row a:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Карта --- */
.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    height: 380px;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Реквизиты --- */
.requisites-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


/* =====================================================================
   18. ПРОЕКТЫ
   ===================================================================== */
.projects-intro {
    background: linear-gradient(135deg, #f8f0ff 0%, #fff5f8 50%, #fffbeb 100%);
    border-radius: 14px;
    padding: 40px 36px;
    margin-bottom: 44px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.projects-intro-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--purple), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}
.projects-intro h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 6px;
}
.projects-intro p {
    color: var(--text-medium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.project-row {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.project-row-img {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}
.project-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-row:hover .project-row-img img {
    transform: scale(1.04);
}
.project-row-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-row-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 14px;
    width: fit-content;
}
.badge-dance   { background: linear-gradient(135deg, #cc0d53, #e54270); }
.badge-vocal   { background: linear-gradient(135deg, #2563EB, #5b8def); }
.badge-music   { background: linear-gradient(135deg, #ff6b00, #ff9a44); }
.badge-theater { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.badge-sport   { background: linear-gradient(135deg, #18a7ac, #2ac6bd); }
.badge-multi   { background: linear-gradient(135deg, #cc0d53, #ffc532); }
.project-row-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 10px;
    line-height: 1.35;
}
.project-row-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium-gray);
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.project-row-venue i {
    color: var(--purple);
    font-size: 0.9rem;
}
.project-row-desc {
    color: var(--text-medium-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 50px;
    background: linear-gradient(25deg, var(--purple), #e54270);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
    width: fit-content;
}
.btn-apply:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(204, 13, 83, 0.35);
    color: #fff;
}
.btn-apply i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.btn-apply:hover i {
    transform: translateX(3px);
}
.project-row {
    position: relative;
}
.project-row-logo {
    position: absolute;
    top: 16px;
    right: 30px;
    z-index: 5;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);*/
}


/* =====================================================================
   19. ЖЮРИ
   ===================================================================== */
.jury-item {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 6px;
}
.jury-item-img {
    overflow: hidden;
}
.jury-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}
.jury-item-text {
    padding: 16px 24px 0 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.jury-item-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    margin: 0 0 8px 0;
}
.jury-item-text p {
    color: #3e3e3e;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}


/* =====================================================================
   20. ГАЛЕРЕЯ
   ===================================================================== */

/* --- Табы годов --- */
.gallery-years-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}
.gallery-year-tab {
    padding: 8px 24px;
    border-radius: 50px;
    border: 2px solid var(--gray-light);
    background: #fff;
    color: var(--text-medium-gray);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}
.gallery-year-tab:hover {
    border-color: var(--purple);
    color: var(--purple);
}
.gallery-year-tab.active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
}

/* --- Панели --- */
.gallery-year-pane {
    display: none;
    animation: fadeIn 0.35s ease;
}
.gallery-year-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Карточка альбома --- */
.gallery-album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    color: inherit;
}
.gallery-album-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gallery-album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-album-card:hover .gallery-album-img img {
    transform: scale(1.06);
}
.gallery-album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-album-card:hover .gallery-album-overlay {
    opacity: 1;
}
.gallery-album-overlay i {
    font-size: 2rem;
    color: #fff;
}
.gallery-album-info {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.gallery-album-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-dark);
    line-height: 1.3;
}
.gallery-album-year {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--purple);
    white-space: nowrap;
    background: rgba(204,13,83,0.08);
    padding: 3px 10px;
    border-radius: 50px;
}

/* --- Фото внутри альбома --- */
/* Обертка карточки */
.gallery-photo-item {
    display: block;
    overflow: hidden;        /* ВАЖНО: обрезает углы картинки по border-radius */
    border-radius: 12px;    /* Степень скругления (можно поменять на 15px или 20px) */
    background-color: #f8f9fa;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
/* Сама картинка */
.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Чтобы картинка не деформировалась */
    transition: transform 0.4s ease;
}
/* Эффект при наведении (Бонус) */
.gallery-photo-item:hover {
    transform: translateY(-3px); /* Карточка приподнимается */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Появляется тень */
}
.gallery-photo-item:hover img {
    transform: scale(1.05);  /* Картинка плавно приближается */
}


/* =====================================================================
   21. СТРАНИЦА ЗАЯВКИ / ФОРМА
   ===================================================================== */

/* --- Общая секция --- */
.form-page-section {
    padding: 30px 0 60px;
}
.app-form {
    max-width: 920px;
    margin: 0 auto;
}

/* --- Звёздочка «обязательно» --- */
.form-required {
    color: var(--purple, #cc0d53);
    font-weight: 700;
}

/* --- Блок секции формы --- */
.form-section-block {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Заголовок блока */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #f8f0f3;
    border-bottom: 1px solid var(--gray-light, #e5e7eb);
}
.form-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--purple, #cc0d53);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}
.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-dark, #222);
    font-family: 'Montserrat', sans-serif;
}

/* Тело блока */
.form-section-body {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
}
.form-section-body > [class*="col-"] {
    padding: 0;
}

/* --- Поля формы --- */
.form-section-body .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium-gray, #555);
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}
.form-section-body .form-control,
.form-section-body .form-select {
    border-radius: 10px;
    border: 1.5px solid #c8ccd2;
    background: #f8f9fb;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-section-body .form-control::placeholder,
.form-section-body .form-select:invalid:not(:focus):not([selected="selected"]) {
    color: var(--text-light-gray, #999);
}
.form-section-body .form-control:focus,
.form-section-body .form-select:focus {
    border-color: var(--purple, #cc0d53);
    box-shadow: 0 0 0 3px rgba(204, 13, 83, 0.1);
    background: #fff;
}
.form-section-body .form-control-lg {
    padding: 12px 16px;
    font-size: 0.95rem;
}
.form-section-body .form-text {
    font-size: 0.78rem;
    color: var(--text-light-gray, #999);
    margin-top: 4px;
}
/* optgroup */
.form-section-body .form-select optgroup {
    font-weight: 700;
    font-style: normal;
    color: var(--gray-dark, #222);
}

/* --- Блок отправки --- */
.form-submit-block {
    max-width: 820px;
    margin: 0 auto 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-submit-block > [class*="col-"] {
    padding: 0;
}

/* Согласие */
.form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid var(--gray-light, #e5e7eb);
}
.form-consent .form-check {
    flex-shrink: 0;
    margin-top: 2px;
}
.form-consent .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #9999;
    cursor: pointer;
}
.form-consent .form-check-input:checked {
    background-color: var(--purple, #cc0d53);
    border-color: var(--purple, #cc0d53);
}
.form-consent .form-check-label {
    display: none;
}
.form-consent p {
    font-size: 0.82rem;
    color: var(--text-medium-gray, #555);
    line-height: 1.55;
    margin: 0;
}
.form-consent a {
    color: var(--purple, #cc0d53);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Кнопка отправки */
.btn-submit-form {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: linear-gradient(25deg, #cc0d53, #ffc532);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
}
.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 13, 83, 0.3);
    color: #fff;
}
.btn-submit-form:active {
    transform: translateY(0);
}


/* =====================================================================
   22. FORMIT — СООБЩЕНИЯ (успех / ошибка валидации / ошибки полей)
   ===================================================================== */

/* --- Сообщения в модалке (без max-width) --- */
.modal div[data-formit-success-message],
.modal div[data-formit-validation-error-message] {
    max-width: 100%;
    margin: 0 0 16px;
}

/* Подсветка полей в модалке */
.modal .form-group:has(> span.error_message:not(:empty)) > .form-control,
.modal .form-group:has(> span.error_message:not(:empty)) > .form-select {
    border-color: #dc3545;
    background: #fef2f2;
    animation: fi-shake 0.4s ease;
}
.modal .form-group:has(> span.error_message:not(:empty)) > .form-control:focus,
.modal .form-group:has(> span.error_message:not(:empty)) > .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
    background: #fff;
}
/* Ошибка чекбокса в модалке */
.modal .form-group:has(> span.error_message:not(:empty)) input[type="checkbox"] {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* --- Успешная отправка --- */
div[data-formit-success-message] {
    max-width: 820px;
}
div[data-formit-success-message]:not(:empty) {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    color: #065f46;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.1);
    animation: fi-success-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
/* Иконка-кружок с галочкой */
div[data-formit-success-message]:not(:empty)::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
/* Кнопка закрытия */
div[data-formit-success-message]:not(:empty)::after {
    content: '✕';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 95, 70, 0.08);
    color: #065f46;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
div[data-formit-success-message]:not(:empty):hover::after {
    background: rgba(6, 95, 70, 0.15);
}
@keyframes fi-success-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes fi-success-disappear {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 120px;
        margin-bottom: 24px;
        padding: 20px 24px;
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
        max-height: 0;
        margin-bottom: 0;
        padding: 0 24px;
        border-width: 0;
    }
}
div[data-formit-success-message].fi-hiding {
    animation: fi-success-disappear 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: hidden;
}

/* --- Общая ошибка валидации --- */
div[data-formit-validation-error-message] {
    max-width: 820px;
}
div[data-formit-validation-error-message]:not(:empty) {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 14px;
    color: #92400e;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(146, 64, 14, 0.08);
    animation: fi-error-appear 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
div[data-formit-validation-error-message]:not(:empty)::before {
    content: '⚠';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
@keyframes fi-error-appear {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Ошибки отдельных полей --- */
span.error_message {
    display: block;
    font-size: 0;
    color: transparent;
    min-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    transition: font-size 0.3s ease, color 0.3s ease, margin-top 0.3s ease, padding 0.3s ease, min-height 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
span.error_message:not(:empty) {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 6px;
    padding: 5px 10px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    min-height: auto;
    animation: fi-field-error 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fi-field-error {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Подсветка невалидных полей (красная рамка + фон) --- */
.form-section-body > [class*="col-"]:has(> span.error_message:not(:empty)) > .form-control,
.form-section-body > [class*="col-"]:has(> span.error_message:not(:empty)) > .form-select {
    border-color: #dc3545;
    background: #fef2f2;
    animation: fi-shake 0.4s ease;
}
/* Убираем фиолетовый focus при ошибке */
.form-section-body > [class*="col-"]:has(> span.error_message:not(:empty)) > .form-control:focus,
.form-section-body > [class*="col-"]:has(> span.error_message:not(:empty)) > .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
    background: #fff;
}
/* Подсветка чекбокса согласия при ошибке */
.form-submit-block:has(> [class*="col-"] > span.error_message:not(:empty)) .form-consent {
    border-color: #dc3545;
    background: #fef2f2;
}
.form-submit-block:has(> [class*="col-"] > span.error_message:not(:empty)) .form-check-input {
    border-color: #dc3545;
}
@keyframes fi-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}


/* =====================================================================
   23. БУРГЕР-МЕНЮ (МОБИЛЬНОЕ)
   ===================================================================== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 120;
}
.burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* =====================================================================
   24. СТРАНИЦА 404
   ===================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}
/* Фоновые декоративные круги */
.error-page .bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.07;
}
.error-page .bg-circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #cc0d53, #ffc532);
    top: -15%;
    right: -10%;
    animation: err-float 12s ease-in-out infinite;
}
.error-page .bg-circle-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ffc532, #cc0d53);
    bottom: -10%;
    left: -8%;
    animation: err-float 10s ease-in-out infinite reverse;
}
.error-page .bg-circle-3 {
    width: 180px;
    height: 180px;
    background: #cc0d53;
    top: 20%;
    left: 15%;
    animation: err-float 8s ease-in-out infinite 2s;
}
@keyframes err-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}
/* Контент */
.error-page-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
}
/* Большая цифра 404 */
.error-page-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(120px, 25vw, 220px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #cc0d53 0%, #e8365f 40%, #ffc532 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: err-number-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    user-select: none;
}
/* Блик на цифре */
.error-page-number::after {
    content: '404';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: err-shine 4s ease-in-out infinite 1.5s;
}
@keyframes err-shine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
@keyframes err-number-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.85);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
/* Иконка под цифрой */
.error-page-icon {
    font-size: 2.4rem;
    color: #cc0d53;
    margin: -10px 0 16px;
    opacity: 0;
    animation: err-icon-in 0.5s ease-out 0.5s forwards;
    display: block;
}
@keyframes err-icon-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Заголовок */
.error-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 700;
    color: var(--gray-dark, #222);
    margin-bottom: 12px;
    opacity: 0;
    animation: err-text-in 0.5s ease-out 0.6s forwards;
}
/* Подзаголовок */
.error-page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-medium-gray, #666);
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0;
    animation: err-text-in 0.5s ease-out 0.75s forwards;
}
@keyframes err-text-in {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Кнопка */
.error-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(25deg, #cc0d53, #ffc532);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    animation: err-text-in 0.5s ease-out 0.9s forwards;
    letter-spacing: 0.3px;
}
.error-page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 13, 83, 0.35);
    color: #fff;
}
.error-page-btn:active {
    transform: translateY(0);
}
.error-page-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.error-page-btn:hover i {
    transform: translateX(-4px);
}


/* =====================================================================
   25. СТРАНИЦА ТЕКСТА (ПОЛИТИКА, ПОЛОЖЕНИЯ)
   ===================================================================== */
.text-page-section {
    padding: 40px 0 60px;
}
.text-page-content {
    max-width: 800px;
    margin: 0 auto;
}
.text-page-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--gray-dark, #222);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #cc0d53, #ffc532) 1;
}
.text-page-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #cc0d53;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid #cc0d53;
}
.text-page-content h2:first-of-type {
    margin-top: 0;
}
.text-page-content p,
.text-page-content li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: var(--text-medium-gray, #444);
    line-height: 1.75;
}
.text-page-content ul,
.text-page-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.text-page-content li {
    margin-bottom: 6px;
}
.text-page-content strong {
    color: var(--gray-dark, #222);
}
.text-page-content a {
    color: #cc0d53;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.text-page-content a:hover {
    color: #a00a42;
}
/* Нумерация пунктов */
.text-page-content > p > strong:first-child {
    color: #cc0d53;
}


/* =====================================================================
   26. ПОДВАЛ (FOOTER)
   ===================================================================== */
footer {
    background: #07032c;
    color: var(--white);
    padding:50px 100px 20px;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    position: relative;
    overflow: hidden;
}
footer div {
    margin:10px;
    min-width:200px;
}
footer a {
    color: var(--white);
    display:block;
    margin:5px 0;
    opacity: 0.8;
    transition: 0.3s;
}
footer a:hover {
    opacity: 1;
}
footer p {
    color: var(--white);
    opacity: 0.8;
}
.footer-img {
    width: 20%;
    position: absolute;
    bottom: -15px;
    right: 11%;
    opacity: 0.9;
}
/* Тост */
.toast {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
/* Иконки соцсетей */
.icon-ss img {
    width: 30px;
}


/* =====================================================================
   27. SCROLL TO TOP (КНОПКА «НАВЕРХ»)
   ===================================================================== */
#scroll-top {
  position: fixed;
  bottom: 20px;
  right: 80px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc0d53, #ffc532);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(204, 13, 83, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top:hover {
  box-shadow: 0 6px 25px rgba(204, 13, 83, 0.6);
  transform: translateY(-3px);
}
#scroll-top:active {
  transform: translateY(0) scale(0.95);
}


/* =====================================================================
   АДАПТИВНОСТЬ — TABLET (max-width: 991.98px)
   ===================================================================== */
@media (max-width: 991.98px) {
    /* Мероприятия и календарь */
    .event-card,
    .calendar-card {
      min-height: 270px;
    }
    .event-card-content {
      min-height: 270px;
    }

    /* Партнёры — карусель */
    .partners-carousel-track .partner-logo-placeholder {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}


/* =====================================================================
   АДАПТИВНОСТЬ — MOBILE (max-width: 767.98px)
   ===================================================================== */
@media (max-width: 767.98px) {
    /* Базовая типографика */
    header {
        padding: 20px 0;
    }
    .home-page .hero {
        height: 85vh;
        padding: 25px 20px;
    }
    .hero h1 {
        font-size: 32px;
        margin: -90px 0 15px;
    }
    section {
        padding: 30px 0 0;
        max-width: 1200px;
        margin: 0 auto;
    }
    h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    /* Мероприятия */
    .event-card,
    .calendar-card {
      min-height: 290px;
    }
    .event-card-content {
      min-height: 290px;
    }
    .events-section {
      padding: 30px 0 40px;
    }

    /* Форма — заявка */
    .form-section-header {
        padding: 14px 16px;
    }
    .form-section-body {
        padding: 16px;
        gap: 14px 16px;
    }
    .form-consent {
        flex-direction: column;
        gap: 8px;
    }
    .form-page-section ~ .cta-banner {
        padding: 32px 20px;
        margin: 20px 0 40px;
    }
    .form-page-section ~ .cta-banner h2 {
        font-size: 1.25rem;
    }
    .form-page-section ~ .cta-banner .btn {
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    /* FormIt сообщения */
    div[data-formit-success-message]:not(:empty),
    div[data-formit-validation-error-message]:not(:empty) {
        padding: 16px 18px;
        font-size: 0.88rem;
        gap: 12px;
    }
    div[data-formit-success-message]:not(:empty)::before,
    div[data-formit-validation-error-message]:not(:empty)::before {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    span.error_message:not(:empty) {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Проекты */
    .project-row-body { padding: 24px 20px; }
    .project-row-img { min-height: 200px; max-height: 240px; }
    .projects-intro { flex-direction: column; text-align: center; padding: 28px 20px; }

    /* Жюри */
    .jury-item {
        flex-direction: column;
    }
    .jury-item-img {
        max-height: 280px;
    }
    .jury-item-text {
        padding: 16px 16px 20px;
    }

    /* Страница 404 */
    .error-page {
        min-height: 70vh;
        padding: 60px 20px;
    }
    .error-page .bg-circle-1 {
        width: 300px;
        height: 300px;
    }
    .error-page .bg-circle-2 {
        width: 200px;
        height: 200px;
    }
    .error-page .bg-circle-3 {
        width: 100px;
        height: 100px;
    }
    .error-page-btn {
        padding: 14px 32px;
        font-size: 0.92rem;
    }

    /* Страница текста */
    .text-page-section {
        padding: 24px 0 40px;
    }
    .text-page-content h2 {
        font-size: 1.05rem;
    }
    .text-page-content p,
    .text-page-content li {
        font-size: 0.85rem;
    }
}


/* =====================================================================
   АДАПТИВНОСТЬ — SMALL MOBILE (max-width: 575.98px)
   ===================================================================== */
@media (max-width: 575.98px) {
    footer {
        padding: 27px;
    }
    .main-menu .dropdown {
        padding: 0;
    }
    .events-title {
      font-size: 25px;
    }
    .gallery-years-bar { justify-content: center; }

    /* Партнёры — карусель на маленьких экранах */
    .partners-carousel-track .partner-logo-placeholder {
        flex: 0 0 calc((100% - 16px));
    }
}


/* =====================================================================
   АДАПТИВНОСТЬ — BURGER MENU (max-width: 768px)
   ===================================================================== */
@media (max-width: 768px) {
  .burger { display: flex; }
  .header-phone { display: none; }

  nav#mainNav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(7, 3, 44, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 105;
    padding: 0;
  }
  nav#mainNav.open { opacity: 1; visibility: visible; }

  nav#mainNav .main-menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 360px;
    gap: 0;
  }
  nav#mainNav .main-menu .menu-item { width: 100%; }
  nav#mainNav .main-menu .menu-item > a {
    font-size: 1.1rem;
    padding: 14px 20px;
    border-bottom: none;
  }
  nav#mainNav .has-dropdown > .dropdown {
    position: static;
    width: 100%;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  nav#mainNav .has-dropdown.dropped > .dropdown { max-height: 300px; }

  body.menu-open { overflow: hidden; }
}


/* =====================================================================
   АДАПТИВНОСТЬ — PARTNERS min-width (min-width: 768px)
   ===================================================================== */
@media (min-width: 768px) {
    .partners-carousel-btn.prev { left: 4px; }
    .partners-carousel-btn.next { right: 4px; }
}


/* =====================================================================
   АДАПТИВНОСТЬ — SCROLL TOP SMALL (max-width: 576px)
   ===================================================================== */
@media (max-width: 576px) {
  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
