/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
    --color-primary: #c2617a;
    --color-primary-dark: #a04f66;
    --color-primary-light: #e8a0b4;
    --color-primary-glow: rgba(194, 97, 122, 0.25);
    --color-dark: #1c1b2e;
    --color-dark-soft: #2e2d42;
    --color-bg-warm: #fdf7f3;
    --color-bg-section: #faf4f0;
    --color-bg-card: #ffffff;
    --color-text: #2e2d42;
    --color-text-muted: #6b6880;
    --color-border: rgba(194, 97, 122, 0.15);
    --radius-card: 18px;
    --radius-btn: 50px;
    --shadow-soft: 0 4px 24px rgba(28, 27, 46, 0.08);
    --shadow-hover: 0 12px 40px rgba(28, 27, 46, 0.14);
    --shadow-pink: 0 8px 30px rgba(194, 97, 122, 0.25);
    --transition: 0.3s ease;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-warm);
    -webkit-font-smoothing: antialiased;
}

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

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

/* ========== ХЕДЕР ========== */
.header {
    background: rgba(28, 27, 46, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary-light);
    background: linear-gradient(135deg, #e8a0b4 0%, #c2617a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__contacts a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.header__contacts a:hover {
    color: var(--color-primary-light);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #1c1b2e 0%, #2e1f3a 40%, #3d1f35 70%, #1c1b2e 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194, 97, 122, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero__title span {
    font-weight: 900;
    font-style: normal;
    background: linear-gradient(135deg, #e8a0b4 0%, #c2617a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 2px;
}

.hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ========== ВИДЕО БЛОК ========== */
.video-courses {
    padding: 60px 0;
    background-color: var(--color-bg-section);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-border);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.video-card__preview {
    position: relative;
    cursor: pointer;
}

/* ========== СТИЛИ ДЛЯ ПРЕВЬЮ С КАРТИНКАМИ ========== */
.preview-placeholder {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.video-card:hover .preview-image {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

/* Кнопка плеера */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    pointer-events: none;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(194, 97, 122, 0.85);
    border-color: white;
    box-shadow: var(--shadow-pink);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid white;
}

/* Текст превью */
.preview-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 3;
    max-width: 80%;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    background: none;
    padding: 0;
}

/* Бейдж (новинка, популярное и т.д.) */
.video-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(194, 97, 122, 0.9);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Длительность видео */
.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 3;
    backdrop-filter: blur(2px);
}

/* Затемнение при наведении */
.video-card:hover .preview-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
}

/* Заголовок карточки */
.video-card__title {
    padding: 16px 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

/* ========== СТИЛИ ДЛЯ ПРЕВЬЮ БЕЗ КАРТИНОК (ГРАДИЕНТЫ) ========== */
.preview-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preview-1 {
    background: linear-gradient(135deg, #667eea 0%, var(--color-primary) 100%);
}

.preview-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.preview-3 {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.preview-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

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

/* Затемнение для градиентов */
.preview-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 2;
    pointer-events: none;
}

/* Текст для градиентов */
.preview-gradient .preview-text {
    position: relative;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    margin-top: 10px;
    left: auto;
    bottom: auto;
    transform: none;
    font-size: 1.2rem;
}

/* ========== БЛОК УСЛУГ ========== */
.services {
    padding: 60px 0;
    background-color: var(--color-bg-warm);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.price-card {
    background: var(--color-bg-card);
    padding: 36px 28px;
    border-radius: var(--radius-card);
    text-align: center;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.price-card__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--color-dark);
}

.price-card__description {
    flex: 1 0 auto;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-card__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.price-card__price span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Дополнительная информация */
.additional-info {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    color: white;
    padding: 44px;
    border-radius: var(--radius-card);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.06);
}

.info-title {
    font-family: 'DM Serif Display', Georgia, serif;
    color: var(--color-primary-light);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    color: var(--color-primary-light);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Контактный блок */
.contact-block {
    text-align: center;
}

.contact-phone {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-phone a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.slogan {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

/* ========== ПЛЕЕР ========== */
.video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.video-player.hidden {
    display: none;
}

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

.player-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#boomstream-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

#boomstream-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-player {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    line-height: 1;
    padding: 0;
}

.close-player:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.close-player:active {
    transform: scale(0.95);
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 10px;
    }

    .header__contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .header__contacts a {
        margin-left: 0;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .video-grid,
    .price-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .additional-info {
        padding: 20px;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .slogan {
        font-size: 1.4rem;
    }

    .player-wrapper {
        width: 100%;
    }
    
    .close-player {
        top: -35px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button::after {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 15px solid white;
    }
    
    .preview-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .price-card__price {
        font-size: 1.6rem;
    }
    
    .video-player {
        padding: 10px;
    }
    
    .close-player {
        top: -30px;
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }
}

/* ========== ФУТЕР ========== */
.footer {
    background: var(--color-dark);
    color: #fff;
    padding: 28px 0;
    margin-top: 0;
    border-top: 1px solid rgba(194, 97, 122, 0.3);
}

.footer__text {
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.2px;
    color: rgba(255,255,255,0.55);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
    }
    
    .event-media-slider {
        width: 100%; /* Было 100%, станет как у event-info */
        height: 250px;
    }
    
    .event-slide {
        flex: 0 0 100%;
    }
    
    .event-info {
        padding: 20px;
        width: 100%; /* Добавляем явную ширину */
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    .event-datetime {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-date-chip {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    /* Добавляем чтобы слайдер был точно такой же ширины как info */
    .event-media-slider {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .event-slider-track {
        width: 100% !important; /* Переопределяем инлайн-стиль */
    }
    
    .event-slide {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* ========== БЛОК С БОЛЬШОЙ КАРТИНКОЙ ========== */
.featured-image-section {
    padding: 60px 0;
    background-color: var(--color-bg-section);
}

.featured-image-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* Плейсхолдер загрузки */
.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #666;
    font-size: 1.1rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(194, 97, 122, 0.2);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Само изображение */
.featured-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-image.loaded {
    opacity: 1;
}

.featured-image.error {
    opacity: 1;
    filter: grayscale(100%);
    border: 2px solid #ff4444;
}

/* Подпись к изображению */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.featured-image-container:hover .image-caption {
    transform: translateY(0);
}

/* Эффект параллакса при скролле */
.featured-image {
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.featured-image-container:hover .featured-image {
    transform: scale(1.03);
}

/* (дублирующий блок футера удалён) */

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .featured-image-section {
        padding: 30px 0;
    }
    
    .image-caption {
        font-size: 0.9rem;
        padding: 20px 15px 10px;
    }
    
    .loader-spinner {
        width: 40px;
        height: 40px;
    }
    
    .footer__text {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .featured-image-section {
        padding: 20px 0;
    }
    
    .image-caption {
        font-size: 0.8rem;
        padding: 15px 10px 8px;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .footer__text {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* ========== КАРУСЕЛЬ ========== */
.carousel-section {
    padding: 60px 0;
    background: var(--color-bg-warm);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #fff;
    min-height: 400px;
}

.carousel-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #666;
    font-size: 1.1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    min-height: 400px;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-slide-caption {
    transform: translateY(0);
}

.carousel-slide-caption p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.7;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background: rgba(194, 97, 122, 0.85);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    border-color: var(--color-primary-light);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
    left: 20px;
}

.carousel-arrow-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.carousel-dot.active:hover {
    background: var(--color-primary-dark);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }
    
    .carousel-arrow-prev {
        left: 10px;
    }
    
    .carousel-arrow-next {
        right: 10px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .carousel-slide-caption p {
        font-size: 0.9rem;
    }
}

/* Анимация загрузки */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(194, 97, 122, 0.2);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для полноэкранного модального окна */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

/* ========== КНОПКА ХОЧУ ========== */
.price-card__button {
    margin-top: 20px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-pink);
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.price-card__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(194, 97, 122, 0.45);
}

.price-card__button:active {
    transform: translateY(0);
}

/* Стиль для кнопки отправки формы */
.modal-form__submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.modal-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(194, 97, 122, 0.45);
}

/* ========== МОДАЛЬНАЯ ФОРМА ========== */
.modal-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-form.active {
    display: flex;
}

.modal-form__container {
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
    padding: 44px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 24px 60px rgba(28, 27, 46, 0.25);
    animation: slideIn 0.3s ease;
    border-top: 3px solid var(--color-primary);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-form__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-form__close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
    background: var(--color-primary-glow);
}

.modal-form__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
    text-align: center;
}

.modal-form__subtitle {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    text-align: center;
    font-size: 0.9rem;
}

.modal-form__group {
    margin-bottom: 20px;
    position: relative;
}

.modal-form__label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.modal-form__input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modal-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.modal-form__input.error {
    border-color: #ff4444;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-form__error {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.modal-form__input.error + .modal-form__error {
    display: block;
}

.modal-form__honeypot {
    display: none !important;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.modal-form__submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.modal-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(194, 97, 122, 0.45);
}

.modal-form__submit:active {
    transform: translateY(0);
}

.modal-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-form__success {
    text-align: center;
    color: #4CAF50;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(76, 175, 80, 0.1);
    display: none;
}

.modal-form__success.active {
    display: block;
}

.modal-form__error-message {
    text-align: center;
    color: #ff4444;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 68, 68, 0.1);
    display: none;
}

.modal-form__error-message.active {
    display: block;
}

/* Стили для радио-кнопок выбора способа связи */
.modal-form__radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.modal-form__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.modal-form__radio input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

.modal-form__radio span {
    color: #555;
    font-size: 0.95rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .modal-form__container {
        padding: 30px 20px;
    }
    
    .modal-form__title {
        font-size: 1.5rem;
    }
    
    .price-card__button {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

@media (max-width: 480px) {
    .modal-form__container {
        padding: 25px 15px;
    }
    
    .modal-form__radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Подсказка под формой */
.modal-form__hint {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin: 10px 0 15px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 5px;
}

/* ========== СТИЛИ ДЛЯ ВАЛИДАЦИИ ПОЛЕЙ ========== */

/* Зеленая подсветка для валидных полей */
.modal-form__input.valid {
    border-color: var(--color-primary);
    background-color: rgba(194, 97, 122, 0.03);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Красная подсветка только для ошибок после отправки */
.modal-form__input.error {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
    animation: shake 0.3s ease;
}

/* Анимация для ошибки */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Стили для подсказок */
.modal-form__hint {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin: 10px 0 15px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 5px;
}

/* Иконка успеха (можно добавить позже) */
.modal-form__input.valid + .validation-icon {
    display: block;
}

/* ========== СТИЛИ ДЛЯ СООБЩЕНИЯ ОБ УСПЕХЕ ========== */

/* Контейнер для сообщения об успехе */
.modal-form__success {
    text-align: center;
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    display: none;
    animation: fadeInUp 0.3s ease;
}

/* Активное состояние (показываем) */
.modal-form__success.active {
    display: block;
}

/* Стиль для успешной отправки на зеленом фоне */
.modal-form__container .modal-form__success {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для сообщения об ошибке тоже поправим */
.modal-form__error-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.modal-form__error-message.active {
    display: block;
}

/* Стиль для ошибки */
.modal-form__container .modal-form__error-message {
    background-color: #ffffff; /* Белый фон */
    color: #ff4444; /* Красный текст */
    border: 2px solid #ff4444;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}


/* ========== БЛОК МЕРОПРИЯТИЙ ========== */
.events-section {
    padding: 60px 0;
    background: var(--color-bg-warm);
}

.event-dates-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.event-date-chip {
    padding: 8px 20px;
    background: white;
    border: 1.5px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 10px var(--color-primary-glow);
}

.event-date-chip:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink);
}

.event-date-chip.active {
    background: var(--color-primary);
    color: white;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.event-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Слайдер мероприятий */
.event-media-slider {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
}

.event-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.event-slide {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
}

.event-slide img,
.event-slide .video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для видео-плейсхолдера в мероприятиях */
.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f0f0f0; /* Серый фон по умолчанию */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

/* Кнопка play поверх фона */
.video-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(194, 97, 122, 0.9);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(194, 97, 122, 0.4);
    z-index: 5;
}

.video-placeholder .play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid white;
}

.video-placeholder .play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--color-primary);
    box-shadow: var(--shadow-pink);
}

/* Стили для фото в слайдере */
.event-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-slide:hover img {
    transform: scale(1.05);
}



/* Кнопки слайдера */
.event-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.event-slider-arrow:hover {
    background: var(--color-primary);
    color: white;
}

.event-slider-arrow.prev {
    left: 10px;
}

.event-slider-arrow.next {
    right: 10px;
}

/* Индикаторы слайдера */
.event-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.event-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* Информация мероприятия */
.event-info {
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
}

.event-datetime {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.event-date-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
}

.event-time-badge {
    background: var(--color-bg-section);
    color: var(--color-text-muted);
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
}

.event-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.event-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.event-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    padding: 13px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    width: fit-content;
    box-shadow: var(--shadow-pink);
}

.event-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(194, 97, 122, 0.45);
}

.event-button:active {
    transform: translateY(0);
}

/* Загрузчик */
.events-loader {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Пустое состояние */
.no-events {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    color: #666;
    font-size: 1.2rem;
}

/* Адаптация */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
    }
    
    .event-media-slider {
        width: 100%;
        height: 250px;
    }
    
    .event-slide {
        flex: 0 0 100%;
    }
    
    .event-info {
        padding: 20px;
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    .event-datetime {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-date-chip {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Заглушка для видео без обложки */
.video-placeholder--fallback {
    background: linear-gradient(135deg, #667eea 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-fallback-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    max-width: 80%;
    line-height: 1.4;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

/* Кнопка play поверх текста */
.video-placeholder--fallback .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(194, 97, 122, 0.9);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(194, 97, 122, 0.4);
    z-index: 5;
}

.video-placeholder--fallback .play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid white;
}

.video-placeholder--fallback .play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--color-primary);
    box-shadow: var(--shadow-pink);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .video-fallback-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    .video-placeholder--fallback .play-button {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .video-fallback-text {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .event-media-slider {
        height: 200px;
    }
    
    .event-title {
        font-size: 1.3rem;
    }
    
    .event-button {
        width: 100%;
        text-align: center;
    }
}

/* Отключаем автоопределение телефонов на мобильных */
.footer__text {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Запрещаем преобразование в ссылку */
.footer__text,
.footer__text a,
.footer__text a:link,
.footer__text a:visited {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none; /* Отключаем кликабельность если нужно */
}

/* Для iOS убираем синий цвет */
.footer__text span,
.footer__text p {
    color: #fff !important;
}

/* Мета-тег в head запретит определение номеров */
@media (max-width: 768px) {
    .footer__text {
        color: #fff !important;
    }
}