/* Базовые сбросы и контейнер */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
    color: var(--text-color);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Переменные для тем */
:root {
    --background-color: #fff;
    --text-color: #000;
    --progress-bg: #f0f0f0;
    --accent-color: #CE0E0E;
}

[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #fff;
    --progress-bg: #333;
    --accent-color: #CE0E0E;
}

/* Предотвращение мигания белого фона */
html {
    background-color: var(--background-color);
}

/* Переключатель темы */
.theme-switcher {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    align-items: center;
}

.theme-switcher label {
    margin-right: 10px;
}

.theme-switcher input[type="checkbox"] {
    transform: scale(1.5);
}

body {
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Image/background-texture-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: overlay;
    opacity: 0.5;
    pointer-events: none;
}

/* Фон для светлой темы */
body:not(.dark-theme)::before {
    background-image: url('Image/background-texture-image-white.jpg');
    mix-blend-mode: multiply;
    opacity: 0.1;
}

.Slide1693 {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 0 16px 40px 16px;
    z-index: 1;
}

.privacy-policy-link {
    margin-bottom: 5px;
}

.privacy-policy-link a {
    font-size: 12px;
    color: rgba(167, 167, 167, 0.8);
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    max-width: 300px;
    text-align: center;
    transition: color 0.3s ease;
}

.privacy-policy-link a:hover {
    color: rgba(95, 95, 95, 0.8);
} 
/* Гибкая сетка для отзывов, примеров работ и соц. блоков */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Адаптивные заголовки */
.section-title {
    position: relative;
    padding-left: 50px;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 32px 0 16px 0;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #CE0E0E;
    border-radius: 50%;
    animation: recordingBlink 1.5s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-title.visible::before {
    opacity: 1;
}

@keyframes recordingBlink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Примеры работ */
.examples-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
}

.video-preview {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-preview iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
}

/* Соц. блок */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    margin: 0 auto;
    max-width: 1200px;
    margin-top: 48px;
    gap: 24px;
    background: var(--footer-background);
    color: var(--text-color);
    border-radius: 0;
}

.footer-socials .social-group,
.footer-socials .contacts-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}

.footer-socials .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-socials .avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: 8px;
    border-radius: 8px;
}

.footer-socials .contacts-group {
    align-items: flex-end;
    text-align: right;
}

/* Кнопки */
.btn {
    background: hsl(0, 69%, 44%);
    border-radius: 0;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 8px 0;
    transition: background 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: hsl(0, 69%, 44%);
}

/* Программа мероприятия */
.program-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 32px;
}

.program-day {
    background: #F8F8F8;
    border-radius: 0;
    padding: 24px 16px;
    min-width: 220px;
    max-width: 350px;
    flex: 1 1 250px;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.program-day:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.program-day-title {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(0, 69%, 44%);
    margin-bottom: 8px;
}

.program-day-desc {
    font-size: 1rem;
    color: #000;
}

/* Стоимость */
.price-block {
    background: hsl(0, 69%, 44%);
    border-radius: 0;
    padding: 32px 16px;
    max-width: 350px;
    margin: 0 auto 32px auto;
    text-align: center;
    color: #fff;
}

.price-value {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.price-desc {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Адаптивные изображения */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Скрыть дублирующиеся элементы */
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* Стили для центрирования верхнего лого и заголовка */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    min-height: 100vh;
    padding-top: 40px;
    position: relative;
    overflow: hidden; /* Обрезаем все, что выходит за пределы блока */
}

.header-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 16px;
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
}

.header-logo:hover {
    transform: scale(1.1); /* Scale up on hover */
}

/* Стили для SVG логотипа в зависимости от темы */
.header-logo svg path {
    /* Цвет в светлой теме, по умолчанию - цвет темной темы */
    fill: var(--dark-text-color, #f1f1f1); /* Используем переменную или резервный цвет */
    transition: fill 0.3s ease; /* Smooth transition for color change */
}

.header-logo svg line {
    /* Цвет рамки в светлой теме, по умолчанию - цвет темной темы */
    stroke: var(--dark-text-color, #f1f1f1); /* Используем переменную или резервный цвет */
    transition: stroke 0.3s ease;
}

body:not(.dark-theme) .header-logo:hover svg path {
    fill: var(--dark-text-color, #f1f1f1); /* Убедимся, что цвет остается цветом темной темы в светлой теме при наведении */
}

body.dark-theme .header-logo svg path {
    fill: var(--text-color); /* Цвет в темной теме */
}

body.dark-theme .header-logo svg line {
    stroke: var(--text-color); /* Цвет рамки в темной теме */
}

body.dark-theme .header-logo:hover svg path {
    fill: var(--text-color); /* Цвет в темной теме при наведении */
}

/* Добавляем эффекты тени/подсветки в зависимости от темы при наведении */
body:not(.dark-theme) .header-logo:hover {
    filter: drop-shadow(0 0 10px rgba(241, 241, 241, 0.5)); /* Тень в светлой теме, цвет тени под цвет лого */
}

body.dark-theme .header-logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); /* Подсветка в темной теме */
}
/* Стили для контейнера видео */
.video-container {
    position: absolute; /* Видео фиксировано относительно окна просмотра */
    top: 0;
    left: 0;
    width: 100vw; /* Занимает всю ширину окна просмотра */
    height: 100vh; /* Занимает всю высоту окна просмотра */
    overflow: hidden;
    background: #000000;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 120%;
    min-height: 120%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* Центрируем iframe */
    object-fit: cover; /* Масштабируем видео для заполнения контейнера */
}

.video-overlay-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Убедимся, что SVG поверх видео */
    pointer-events: none; /* Игнорируем события мыши на SVG */
}

/* Переключение видео в зависимости от размера экрана */
.video-container.desktop-video {
    display: block; /* Показываем ПК видео по умолчанию */
}

.video-container.mobile-video {
    display: none; /* Скрываем мобильное видео по умолчанию */
}

@media (max-width: 768px) {
    .video-container.desktop-video {
        display: none; /* Скрываем ПК видео на мобильных */
    }

    .video-container.mobile-video {
        display: block; /* Показываем мобильное видео на мобильных */
    }
}

/* Стили для контента хедера (логотип, заголовки, кнопка) */
.header-content {
    position: relative;
    z-index: 2; /* Убедимся, что контент поверх видео */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-center img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark-text-color, #f1f1f1);
    transition: color 0.3s ease;
    width: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: type 3s steps(50, end) forwards;
    -webkit-animation: type 3s steps(50, end) forwards;
}

@keyframes type {
    from { width: 0; }
    to { width: 100%; }
}

@-webkit-keyframes type {
    from { width: 0; }
    to { width: 100%; }
}

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--dark-text-color, #f1f1f1);
    transition: color 0.3s ease;
    width: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: type 3s steps(50, end) forwards;
    -webkit-animation: type 3s steps(50, end) forwards;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

body.dark-theme .header-title,
body.dark-theme .header-subtitle {
    color: var(--text-color);
}

/* Скрыть десктопное видео на мобильных и показать мобильное */


/* Медиа-запросы */
@media (max-width: 1400px) {
    .Slide1693 {
        max-width: 1000px;
    }
    .after-header-space {
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .Slide1693 {
        max-width: 800px;
    }
    .section-title {
        font-size: 2rem;
    }
    .header-title {
        font-size: 3rem;
    }
    .header-subtitle {
        font-size: 1.5rem;
    }
    .after-header-space {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .Slide1693 {
        padding: 0 12px 32px 12px;
    }
    .section-title {
        font-size: 1.8rem;
        margin: 24px 0 12px 0;
    }
    .header-title {
        font-size: 2.5rem;
    }
    .header-subtitle {
        font-size: 1.2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .price-block {
        padding: 24px 12px;
    }
    .price-value {
        font-size: 2.5rem;
    }
    .price-desc {
        font-size: 1rem;
    }
    .after-header-space {
        height: 20px;
    }
    .hide-mobile {
        display: none;
    }
    .show-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .Slide1693 {
        padding: 0 8px 24px 8px;
    }
    .section-title {
        font-size: 1.5rem;
        margin: 20px 0 10px 0;
    }
    .header-title {
        font-size: 2rem;
    }
    .header-subtitle {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .price-value {
        font-size: 2rem;
    }
    .price-desc {
        font-size: 0.9rem;
    }
    .after-header-space {
        height: 15px;
    }
}

/* Стили для блока команды */
.team-section {
    margin-bottom: 32px;
    align-items: flex-start;
}

.team-member {
    flex: 1 1 220px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.team-member div {
    text-align: center;
}

/* Анимация для первого элемента */
.team-member:nth-child(1).visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0s;
}

/* Анимация для второго элемента */
.team-member:nth-child(2).visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.4s;
}

/* Анимация для третьего элемента */
.team-member:nth-child(3).visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.8s;
}

/* Стили для блока "Что вы получите" */
.benefits-section {
    margin-bottom: 32px;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefits-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item {
    align-items: center;
    flex: 1 1 220px;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:nth-child(1) {
    transition-delay: 0.2s;
}

.benefit-item:nth-child(2) {
    transition-delay: 0.4s;
}

.benefit-item:nth-child(3) {
    transition-delay: 0.6s;
}

.benefit-number {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
    border-radius: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text {
    font-size: 1.1rem;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Соц. блок */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    margin: 0 auto;
    max-width: 1200px;
    margin-top: 48px;
    gap: 24px;
    background: var(--footer-background);
    color: var(--text-color);
    border-radius: 0;
}

.footer-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    min-width: 300px;
}

.footer-site-title {
  font-size:2.5rem;
  font-weight:100;
  margin-bottom:8px;
  width:300px;
  text-align: center;
}

.footer-contacts-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Стили для описания съемок */
.shooting-desc {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* Общие стили для интерактивных элементов */
.btn, 
a[href], 
.social-icons a,
.team-member,
.program-day,
.review-card,
.example-img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, box-shadow;
}

.btn:hover, 
a[href]:hover, 
.social-icons a:hover,
.team-member:hover,
.review-card:hover,
.example-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Отключаем эффекты на мобильных устройствах */
@media (max-width: 768px) {
    .btn:hover, 
    a[href]:hover, 
    .social-icons a:hover,
    .team-member:hover,
    .review-card:hover,
    .example-img:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Обновляем существующие стили кнопок */
.btn {
    background: #8B0000;
    border-radius: 0;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: #A00000;
}

/* Обновляем стили для социальных иконок */
.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Обновляем стили для карточек команды */
.team-member {
    transition: none;
}

.team-member:hover {
    transform: none;
    box-shadow: none;
}

.team-member img {
    margin: 0 auto;
    width: 250px !important;
    height: 250px !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: none;
}

.team-member:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .team-member img {
        width: 180px !important;
        height: 180px !important;
        aspect-ratio: 1/1;
    }
    
    .team-member div:first-of-type {
        font-size: 1.8rem !important;
    }
    
    .team-member div:nth-of-type(2) {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .team-member img {
        width: 120px !important;
        height: 120px !important;
        aspect-ratio: 1/1;
    }
    
    .team-member div:first-of-type {
        font-size: 1.5rem !important;
    }
    
    .team-member div:nth-of-type(2) {
        font-size: 0.8rem !important;
    }
}

/* Обновляем стили для карточек программы */
.program-day {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-day:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Обновляем стили для карточек отзывов */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: scale(2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Обновленные стили для секции отзывов */
.reviews-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
    overflow: visible;
}

.reviews-scroll {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-x;
    cursor: grab;
}

.reviews-scroll:active {
    cursor: grabbing;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--review-card-background);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 300px;
    scroll-snap-align: start;
    margin-right: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.review-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-card * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.review-text {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    color: var(--text-color);
}

.review-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
    color: var(--text-color);
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    max-height: 200px; /* Фиксированная высота */
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
    margin-bottom: 10px;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    color: var(--text-color);
    padding-right: 10px; /* Отступ для полосы прокрутки */
}

/* Стилизация полосы прокрутки */
.review-text::-webkit-scrollbar {
    width: 6px;
}

.review-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-hover);
}

.expand-button {
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-color);
}

.expand-button:hover {
    color: #000;
}

.expand-button::after {
    content: '▼';
    display: inline-block;
}

.expand-button.expanded::after {
    content: '▲';
}

/* Стили для видео и кнопок */
.video-circle {
    width: 200px;
    height: 200px;
    min-width: 200px; /* Запрещает сжатие по ширине */
    min-height: 200px; /* Запрещает сжатие по высоте */
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto 20px;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Запрещает сжатие элемента в flex-контейнере */
}

.video-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* Фиксирует видео внутри контейнера */
    top: 0;
    left: 0;    
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.video-circle.is-playing .play-button {
    display: none;
}

.video-circle:hover .play-button {
    opacity: 1;
}

.pause-button::before,
.pause-button::after {
    content: '';
    width: 8px;
    height: 25px;
    background: #ffffff;
    position: absolute;
    border-radius: 2px;
}

.pause-button::before {
    left: 20px;
}

.pause-button::after {
    right: 20px;
}

@media (max-width: 768px) {
    .video-circle {
        width: 160px;
        height: 160px;
        min-width: 160px;
        min-height: 160px;
    }

    @media (max-width: 480px) {
        .video-circle {
            width: 140px;
            height: 140px;
            min-width: 140px;
            min-height: 140px;
        }
    }

    .play-button, .pause-button {
        width: 50px;
        height: 50px;
    }

    .play-button::after {
        border-width: 12px 0 12px 20px;
    }

    .pause-button::before,
    .pause-button::after {
        width: 6px;
        height: 20px;
    }

    .pause-button::before {
        left: 16px;
    }

    .pause-button::after {
        right: 16px;
    }

    .review-name {
        font-size: 1.1rem;
    }

    .review-text {
        max-height: 120px; /* Уменьшаем высоту для планшетов */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
        padding-right: 8px;
    }
    
    .review-item {
        flex: 0 0 350px;
        height: auto;
        min-height: 500px;
        margin: 0 auto;
        overflow: visible; /* Меняем на visible */
        /* Убираем свойства, которые могут мешать прокрутке */
        scroll-snap-align: none;
        will-change: auto; /* Уменьшаем высоту блока для планшетов */
    }
}

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

    .reviews-scroll {
        padding: 10px 0;
    }

    .review-card {
        flex: 0 0 260px;
        padding: 15px;
    }

    .video-circle {
        width: 140px;
        height: 140px;
    }

    .play-button, .pause-button {
        width: 45px;
        height: 45px;
    }

    .play-button::after {
        border-width: 10px 0 10px 18px;
    }

    .pause-button::before,
    .pause-button::after {
        width: 5px;
        height: 18px;
    }

    .pause-button::before {
        left: 14px;
    }

    .pause-button::after {
        right: 14px;
    }

    .review-name {
        font-size: 1rem;
    }

    .review-text {
        max-height: 120px; /* Уменьшаем высоту для планшетов */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
        padding-right: 8px;
                scroll-snap-align: center;
        will-change: transform;
    }
    
    .review-item {
        flex: 0 0 400px;
        border-radius: 0;
        overflow: visible; /* Меняем на visible */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        background: var(--card-background);
        transition: transform 0.3s ease;
        position: relative;
        height: 450px;
        scroll-snap-align: center;
        will-change: transform; /* Уменьшаем высоту блока для планшетов */
    }

    .expand-button {
        font-size: 0.85rem;
    }
}

/* Обновленные стили для команды */
.team-member img {
    margin: 0 auto;
    width: 250px !important;
    height: 250px !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: none;
}

@media (max-width: 768px) {
    .team-member img {
        width: 180px !important;
        height: 180px !important;
        aspect-ratio: 1/1;
    }
    
    .team-member div:first-of-type {
        font-size: 1.8rem !important;
    }
    
    .team-member div:nth-of-type(2) {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .team-member img {
        width: 120px !important;
        height: 120px !important;
        aspect-ratio: 1/1;
    }
    
    .team-member div:first-of-type {
        font-size: 1.5rem !important;
    }
    
    .team-member div:nth-of-type(2) {
        font-size: 0.8rem !important;
    }
}

/* Обновленные стили для блока "Как записаться" */
.signup-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 16px;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, 
                filter 0.8s ease-out, 
                transform 0.8s ease-out;
    transition-delay: 0.6s;
}

.signup-section.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.signup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 280px;
    max-width: 410px;
    margin: 0 auto;
}

.signup-image-container {
    width: 372px;
    height: 258px;
    position: relative;
    margin-bottom: 16px;
}

.signup-image {
    width: 258px;
    height: 258px;
    position: absolute;
    right: 0;
    top: 0;
    object-fit: cover;
}

.signup-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 142px;
    height: 142px;
    z-index: 2;
}

.signup-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-color);
    width: 100%;
    max-width: 372px;
}

.signup-text b {
    color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .signup-section {
        gap: 16px;
        padding: 0 12px;
    }

    .signup-card {
        flex: 1 1 100%;
    }

    .signup-image-container {
        width: 320px;
        height: 220px;
    }

    .signup-image {
        width: 220px;
        height: 220px;
    }

    .signup-icon {
        width: 120px;
        height: 120px;
    }

    .signup-text {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .signup-section {
        gap: 12px;
        padding: 0 8px;
    }

    .signup-image-container {
        width: 280px;
        height: 180px;
    }

    .signup-image {
        width: 180px;
        height: 180px;
        position: absolute;
        left: 0;
        right: auto;
        top: 0;
        object-fit: cover;
    }

    .signup-icon {
        width: 100px;
        height: 100px;
    }

    .signup-text {
        max-width: 280px;
    }
}

/* Добавляем CSS переменные для темной темы */
:root {
  --background-color: #fff;
  --text-color: #000;
  --secondary-background: #F8F8F8;
  --accent-color: #8B0000;
  --footer-background: #D9D9D9;
  --review-card-background: #fff;
  --review-text-gradient: linear-gradient(transparent, #fff);
}

body.dark-theme {
  --background-color: #1a1a1a;
  --text-color: #f1f1f1;
  --secondary-background: #333;
  --accent-color: #A00000;
  --footer-background: #111111;
  --review-card-background: #444;
  --review-text-gradient: linear-gradient(transparent, #444);
  
  /* Адаптация цвета текста в секции "Программа мероприятия" для темной темы */
  .program-day-title {
    color: var(--text-color);
  }
  
  .program-day-desc {
    color: var(--text-color);
  }
}

/* Применяем переменные к элементам */
body {
  background: var(--background-color);
  color: var(--text-color);
}

.Slide1693 {
  /* background: var(--background-color); */ /* Удаляем привязку к background-color */
}

/* Устанавливаем фон для Slide1693 в зависимости от темы */
/* :root .Slide1693 { */
/*   background: white;  Удален фон */
/* } */

body.dark-theme .Slide1693 {
  background: transparent; /* Темная тема - делаем его прозрачным */
}

.program-day {
  background: var(--secondary-background);
}

.price-block {
  background: var(--accent-color);
}

.review-card {
  background: var(--review-card-background);
}

.review-text::after {
  background: none;
}

/* Стили для темной темы кнопок навигации и зума в модальном окне */
.modal-nav button,
.zoom-controls button {
  color: var(--text-color);
}

.zoom-controls {
  background: rgba(0,0,0,0.7);
}

.reviews-nav-button {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.reviews-nav-button:hover {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reviews-nav-button::before {
  border-top-color: var(--text-color);
  border-right-color: var(--text-color);
}

/* Стили для пустого пространства после заголовка */
.after-header-space {
  height: 5vh;
}

/* Адаптивность */
@media (max-width: 1400px) {
  .after-header-space {
    height: 5vh;
  }
}

@media (max-width: 1024px) {
  .after-header-space {
    height: 5vh;
  }
}

@media (max-width: 768px) {
    .reviews-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
  .after-header-space {
    height: 5vh;
  }
}

/* О проекте */
.about-section {
  margin-bottom: 32px;
  justify-content: center;
}

.about-item {
  align-items: center;
  flex: 1 1 250px;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.about-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.about-item:nth-child(1) {
  transition-delay: 0.3s;
}

.about-item:nth-child(2) {
  transition-delay: 0.6s;
}

.about-item:nth-child(3) {
  transition-delay: 0.9s;
}

.about-item img {
  width: 270px;
  height: 270px;
  border-radius: 0;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.about-item:hover img {
  transform: scale(1.1);
}

.about-text {
  font-size: 1rem;
  text-align: center;
}

.about-text a {
  color: hsl(0, 69%, 44%);
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-text a:hover {
  color: hsl(0, 69%, 54%);
}

body.dark-theme .about-text a {
  color: hsl(0, 69%, 54%);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.dark-theme .about-text a:hover {
  color: hsl(0, 69%, 64%);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* Что вы получите */
.benefits-section {
    margin-bottom: 32px;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefits-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item {
    align-items: center;
    flex: 1 1 220px;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:nth-child(1) {
    transition-delay: 0.2s;
}

.benefit-item:nth-child(2) {
    transition-delay: 0.4s;
}

.benefit-item:nth-child(3) {
    transition-delay: 0.6s;
}

.benefit-number {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
    border-radius: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text {
    font-size: 1.1rem;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Соц. блок */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    margin: 0 auto;
    max-width: 1200px;
    margin-top: 48px;
    gap: 24px;
    background: var(--footer-background);
    color: var(--text-color);
    border-radius: 0;
    body:not(.dark-theme) .footer-logo-block .avatar {
        filter: brightness(0);
    }
 
}

body.dark-theme .footer-logo-block .avatar {
    filter: brightness(1);
}

.footer-site-title {
  font-size:2.5rem;
  font-weight:100;
  margin-bottom:8px;
  width:300px;
  text-align: center;
}

.footer-contacts-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Стили для переключателя темы */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
}

.theme-switcher.visible {
    opacity: 1;
}

.theme-switcher.fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5;
    opacity: 1;
    transform: scale(1.2);
    transform-origin: top right;
    transition: transform 0.3s ease;
}

.theme-icon {
    width: 30px;
    height: 30px;
    stroke: var(--text-color);
    transition: all 0.3s ease;
}

.theme-icon:hover {
    opacity: 0.7;
}

.theme-icon.active-icon {
    display: block;
}

.theme-icon:not(.active-icon) {
    display: none;
}

/* Адаптивность для переключателя темы */
@media (max-width: 768px) {
    .theme-switcher {
        top: 15px;
        right: 15px;
    }

    .theme-switcher.fixed {
        top: 15px;
        right: 15px;
        transform: scale(1.1);
    }

    .theme-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        top: 15px;
        right: 10px;
    }

    .theme-switcher.fixed {
        top: 10px;
        right: 10px;
        transform: scale(1.05);
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
}

/* Удаляем старые стили фотогалереи */
.photo-gallery {
    display: none;
}

/* Новые стили для фотогалереи на основе видео-галереи */
.photo-gallery-container {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.photo-grid-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.photo-grid-scroll::-webkit-scrollbar {
    display: none;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.photo-item {
    flex: 0 0 400px;
    height: 225px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: block;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.photo-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(61, 61, 61, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.photo-nav-button:hover {
    opacity: 1;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-nav-button.prev {
    left: 5px;
}

.photo-nav-button.next {
    right: 5px;
}

.photo-nav-button::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    display: block;
}

.photo-nav-button.prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.photo-nav-button.next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.photo-nav-button:hover::before {
    border-color: #fff;
}

@media (max-width: 768px) {
    .photo-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .photo-nav-button.prev {
        left: 5px;
    }
    
    .photo-nav-button.next {
        right: 5px;
    }
    
    .photo-item {
        flex: 0 0 300px;
        height: 169px;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    pointer-events: auto;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.modal-nav-button.prev {
    left: 20px;
}

.modal-nav-button.next {
    right: 20px;
}

.modal-zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 30px;
    z-index: 1001;
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-zoom-controls button {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-nav-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .modal-zoom-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Стили для фиксированного логотипа */
.header-logo {
  transition: all 0.3s ease;
}

.header-logo.fixed {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  width: 250px;
  height: auto;
  cursor: pointer;
  opacity: 1;
  transform: scale(0.5);
  transform-origin: top left;
  transition: all 0.3s ease;
}

.header-logo.fixed:hover {
  opacity: 1;
}

/* Цвет фиксированного логотипа меняется в зависимости от темы */
.header-logo.fixed svg path {
    fill: var(--text-color) !important;
}

.header-logo.fixed svg line {
    stroke: var(--text-color) !important;
}

body.dark-theme .program-day-title {
    color: #A00000;
}

@keyframes recordingBlink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

circle[fill="#CE0E0E"] {
  animation: recordingBlink 2s infinite;
  will-change: opacity;
}

/* Добавляем аппаратное ускорение для анимаций */
.header-logo,
.team-member,
.benefit-item,
.about-item,
.review-card,
.photo-item,
.video-preview {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Оптимизируем анимацию печатающегося текста */
@keyframes type {
    from { width: 0; }
    to { width: 100%; }
}

.header-title,
.header-subtitle {
    width: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: type 3s steps(50, end) forwards;
    -webkit-animation: type 3s steps(50, end) forwards;
}

.header-subtitle {
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

/* Оптимизируем анимации появления элементов */
.team-member,
.benefit-item,
.about-item {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out, filter 1.2s ease-out;
    will-change: opacity, transform, filter;
}

.team-member.visible,
.benefit-item.visible,
.about-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Оптимизируем анимации при наведении */
.btn,
.review-card,
.photo-item,
.video-preview {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Оптимизируем анимацию мигания */
@keyframes recordingBlink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

circle[fill="#CE0E0E"] {
    animation: recordingBlink 2s infinite;
    will-change: opacity;
}

/* Оптимизируем анимации в модальном окне */
.modal-content {
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Отключаем анимации на мобильных устройствах */
@media (max-width: 768px) {
    .header-title,
    .header-subtitle {
        animation: none;
        width: auto;
    }
    
    .team-member,
    .benefit-item,
    .about-item {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
    }
    
    .team-member.visible,
    .benefit-item.visible,
    .about-item.visible {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    
    .btn:hover,
    .review-card:hover,
    .photo-item:hover,
    .video-preview:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  .header-logo.fixed {
    top: 10px;
    left: 10px;
    transform: scale(0.5);
  }
  
  .theme-switcher.fixed {
    top: 20px;
    right: 10px;
    transform: scale(1);
  }
  
  .team-member,
  .benefit-item,
  .about-item {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
  }
  
  .team-member.visible,
  .benefit-item.visible,
  .about-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 480px) {
  .header-logo.fixed {
    top: 5px;
    left: 5px;
    transform: scale(0.5);
  }
  
  .theme-switcher.fixed {
    top: 15px;
    right: 5px;
    transform: scale(1.5);
  }
}

/* Стили для сетки фотографий бэкстейджа */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 колонок для десктопа */
    gap: 16px;
    padding: 16px;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

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

@media (max-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки для планшетов */
    }
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки для маленьких планшетов */
        gap: 12px;
        padding: 12px;
    }

    .photo-grid img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для мобильных */
        gap: 8px;
        padding: 8px;
    }

    .photo-grid img {
        height: 150px;
    }
}

.video-gallery-container {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.video-grid-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Убираем свойства, которые могут мешать прокрутке */
    scroll-snap-type: none;
    will-change: auto;
}

.video-grid-scroll::-webkit-scrollbar {
    display: none;
}

.video-item {
    flex: 0 0 400px;
    height: 225px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: block;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(61, 61, 61, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.video-nav-button:hover {
    opacity: 1;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-nav-button.prev {
    transform: rotate(-135deg);
    left: 4px;
}

.video-nav-button.next {
    transform: rotate(45deg);
    right: 4px;
}

.video-nav-button::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    display: block;
}

@media (max-width: 768px) {
    .video-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .video-nav-button.prev {
        left: 5px;
    }
    
    .video-nav-button.next {
        right: 5px;
    }
    
    .video-item {
        flex: 0 0 300px;
        height: 169px;
    }
}

.header-content .btn {
    position: relative;
    background: #8B0000;
    border-radius: 0;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out;
    will-change: transform;
}

.header-content .btn:hover {
    background: #A00000;
}

/* Базовые стили для анимации */
.fade-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, 
                filter 0.8s ease-out, 
                transform 0.8s ease-out;
}

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

/* Применяем класс fade-in к основным блокам */
.section-title,
.about-section,
.benefits-section,
.team-section,
.program-row,
.price-block,
.examples-row,
.reviews-container,
.photo-gallery-container,
.video-gallery-container,
.footer-socials {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, 
                filter 0.8s ease-out, 
                transform 0.8s ease-out;
}

.section-title.visible,
.about-section.visible,
.benefits-section.visible,
.team-section.visible,
.program-row.visible,
.price-block.visible,
.examples-row.visible,
.reviews-container.visible,
.photo-gallery-container.visible,
.video-gallery-container.visible,
.footer-socials.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Задержки для последовательного появления */
.section-title { transition-delay: 0.1s; }
.about-section { transition-delay: 0.2s; }
.benefits-section { transition-delay: 0.3s; }
.team-section { transition-delay: 0.4s; }
.program-row { transition-delay: 0.5s; }
.price-block { transition-delay: 0.6s; }
.examples-row { transition-delay: 0.7s; }
.reviews-container { transition-delay: 0.8s; }
.photo-gallery-container { transition-delay: 0.9s; }
.video-gallery-container { transition-delay: 1s; }
.footer-socials { transition-delay: 1.1s; }

@media (max-width: 768px) {
    .footer-socials {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 32px;
    }

    .footer-socials .social-group,
    .footer-socials .contacts-group {
        width: 100%;
        align-items: center;
    }

    .footer-socials .social-icons {
        justify-content: center;
    }

    .footer-logo-block {
        width: 100%;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-socials {
        padding: 12px;
        gap: 24px;
    }

    .footer-socials .social-group,
    .footer-socials .contacts-group {
        min-width: auto;
    }

    .footer-site-title {
        font-size: 1.2rem;
    }

    .footer-contacts-title {
        font-size: 1rem;
    }
}

/* Отзывы */
.reviews-gallery-container {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.reviews-grid-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.reviews-grid-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .reviews-grid-scroll {
        padding: 20px calc(50% - 175px);
        -webkit-overflow-scrolling: touch;
        /* Убираем transition и другие свойства, которые могут замедлять прокрутку */
    }
    
    .review-item {
        flex: 0 0 350px;
        height: auto;
        min-height: 500px;
        margin: 0 auto;
        /* Убираем transition и другие свойства, которые могут замедлять прокрутку */
    }
}

.review-item {
    flex: 0 0 400px;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-background);
    transition: transform 0.3s ease;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Добавляем стили для активного (центрального) блока */
.review-item.active {
    box-shadow: 0 0 8px rgba(150, 150, 150, 0.3);
    transform: scale(1.02);
}

.review-item.active .review-name {
    box-shadow: 0 0 8px rgba(150, 150, 150, 0.3);
}

.review-item.active .video-circle {
    box-shadow: 0 4px 8px rgba(150, 150, 150, 0.3);
}

.review-item:hover {
    transform: scale(1.02);
}

.reviews-nav-button {
    position: absolute;
    top: 50%;   
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(61, 61, 61, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.reviews-nav-button:hover {
    opacity: 1;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reviews-nav-button.prev {
    left: 5px;
}

.reviews-nav-button.next {
    right: 5px;
}

.reviews-nav-button::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    display: block;
}

.reviews-nav-button.prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.reviews-nav-button.next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.reviews-nav-button:hover::before {
    border-color: #fff;
}

@media (max-width: 768px) {
    .reviews-nav-button {
        width: 35px;
        height: 35px;
    }
    
    .reviews-nav-button.prev {
        left: 5px;
    }
    
    .reviews-nav-button.next {
        right: 5px;
    }
}

.video-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto 20px;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-circle.is-playing {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button:hover {
    opacity: 0.8;
}

.review-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    max-height: 300px; /* Фиксированная высота */
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
    margin-bottom: 10px;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    color: var(--text-color);
    padding-right: 10px; /* Отступ для полосы прокрутки */
}

/* Стилизация полосы прокрутки */
.review-text::-webkit-scrollbar {
    width: 6px;
}

.review-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.review-text::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-hover);
}

.expand-button {
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-color);
}

.expand-button:hover {
    color: #000;
}

.expand-button::after {
    content: '▼';
    display: inline-block;
}

.expand-button.expanded::after {
    content: '▲';
}

@media (max-width: 768px) {
    .reviews-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .reviews-nav-button.prev {
        left: 5px;
    }
    
    .reviews-nav-button.next {
        right: 5px;
    }
    
    .review-item {
        flex: 0 0 300px;
        height: 450px;
        overflow: hidden;
    }
}
.reviews-gallery-container.fade-in
.fade-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, 
                filter 0.8s ease-out, 
                transform 0.8s ease-out;
}

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

/* Стили для загрузочного экрана */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out, background-color 0.3s ease;
}

.loader-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 300px;
  height: 113px;
  position: relative;
  perspective: 1000px;
}

.loader-logo svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeInLogo 0.5s ease-out forwards;
}

.loader-logo path {
  fill: #fff;
  opacity: 0;
  transform: translateZ(0);
  animation: assembleLogo 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-logo line {
  stroke: #fff;
  opacity: 0;
  transform: translateZ(0);
  animation: assembleLogo 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-progress {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #CE0E0E;
  animation: progress 2.5s ease-out forwards;
}

@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes assembleLogo {
  0% {
    opacity: 0;
    transform: translateZ(-100px) rotateX(-45deg);
  }
  50% {
    opacity: 1;
    transform: translateZ(50px) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) rotateX(0deg);
  }
}

@keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Медиа-запросы для адаптивности загрузочного экрана */
@media (max-width: 768px) {
  .loader-logo {
    width: 200px;
    height: 75px;
  }
  .loader-progress {
    width: 150px;
  }
  .loader-logo path,
  .loader-logo circle,
  .loader-logo line {
    animation-duration: 0.8s;
  }
}

@media (max-width: 480px) {
  .loader-logo {
    width: 150px;
    height: 56px;
  }
  .loader-progress {
    width: 120px;
  }
  .loader-logo path,
  .loader-logo circle,
  .loader-logo line {
    animation-duration: 0.6s;
  }
}

/* Стили для зума изображения в блоке Telegram */
.Layer1 {
    transition: transform 0.3s ease;
    will-change: transform;
}

.Layer1:hover {
    transform: scale(1.1);
}

.Image3 {
    transition: transform 0.3s ease;
    will-change: transform;
}

.Image3:hover {
    transform: scale(1.1);

}

/* Удаляем блюр и связанные transition для появления */
.section-title,
.section-title.visible,
.about-section,
.about-section.visible,
.benefits-section,
.benefits-section.visible,
.team-section,
.team-section.visible,
.program-row,
.program-row.visible,
.price-block,
.price-block.visible,
.examples-row,
.examples-row.visible,
.reviews-container,
.reviews-container.visible,
.photo-gallery-container,
.photo-gallery-container.visible,
.video-gallery-container,
.video-gallery-container.visible,
.footer-socials,
.footer-socials.visible,
.team-member,
.team-member.visible,
.benefit-item,
.benefit-item.visible,
.about-item,
.about-item.visible,
.fade-in,
.fade-in.visible {
    filter: none !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

/* Убираем filter: blur и его значения везде */
.section-title,
.about-section,
.benefits-section,
.team-section,
.program-row,
.price-block,
.examples-row,
.reviews-container,
.photo-gallery-container,
.video-gallery-container,
.footer-socials,
.team-member,
.benefit-item,
.about-item,
.fade-in {
    /* filter: blur(10px); */
}

.section-title.visible,
.about-section.visible,
.benefits-section.visible,
.team-section.visible,
.program-row.visible,
.price-block.visible,
.examples-row.visible,
.reviews-container.visible,
.photo-gallery-container.visible,
.video-gallery-container.visible,
.footer-socials.visible,
.team-member.visible,
.benefit-item.visible,
.about-item.visible,
.fade-in.visible {
    /* filter: blur(0); */
}

.signup-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 16px;
    opacity: 0;
    /* filter: blur(10px); */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.6s;
}

.signup-section.visible {
    opacity: 1;
    /* filter: blur(0); */
    transform: translateY(0);
}

