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

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.light-theme {
    font-family: 'Inter', sans-serif;
    background-color: #fbfbfd;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: clip;
}

img,
video,
iframe {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

h2.center {
    text-align: center;
}

.section-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #b59410;
    margin-bottom: 10px;
}

.section-subtitle.center {
    text-align: center;
}

.header {
    background: rgba(251, 251, 253, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 700;
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 110;
}

.nav.active {
    display: flex;
}

.nav a {
    color: #1d1d1f;
    text-decoration: none;
    padding: 12px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #1d1d1f;
    transition: all 0.3s;
}

.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            to bottom,
            rgba(251,251,253,0.8),
            rgba(251,251,253,0.6)
        ),
        url('photo.jpg') 75% 0% no-repeat;

    background-size: auto 100%;
    transition: opacity 1.2s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    font-style: italic;
    color: #b59410;
}

.hero-lead {
    font-size: 1rem;
    color: rgba(29, 29, 31, 0.9);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 280px;
    min-height: 54px;
    padding: 15px 28px;

    border-radius: 999px;

    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 14px 35px rgba(29, 29, 31, 0.22);
}

.btn-primary:hover {
    background: #b59410;
    box-shadow: 0 16px 40px rgba(181, 148, 16, 0.28);
}

.btn-secondary {
    border: 1px solid rgba(29,29,31,0.18);
    color: #1d1d1f;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: #b59410;
    color: #b59410;
    background: #fff;
}

.scroll-track {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.about,
.projects,
.gallery,
.media {
    width: 100%;
    padding: 80px 0;
    background: #fff;
    overflow-x: clip;
}

.projects {
    background: #fbfbfd;
}

.photo-main {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 25%;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 12px;
    font-weight: 300;
    font-size: 0.95rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.project-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 25px;
}

.project-card h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-card p {
    font-size: 0.88rem;
    color: rgba(29, 29, 31, 0.7);
}

.gallery {
    background: #fff;
}

.gallery-grid {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

.gallery-item {
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 22px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f5f5f5;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    padding: 15px;
    color: rgba(29, 29, 31, 0.8);
    font-size: 0.95rem;
    background: #fbfbfd;
}

.media-grid {
    display: flex;
    flex-direction: column;
    gap: 70px;
    width: 100%;
}

.media-left,
.media-right {
    width: 100%;
    margin-bottom: 0;
}

.audio-list,
.video-list {
    width: 100%;
    max-width: 100%;
}

.audio-item,
.video-item {
    background: #fbfbfd;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    border-radius: 22px;
    overflow: hidden;
}

.audio-item h3,
.video-item h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 14px;
}

.audio-item audio {
    width: 100%;
}

.video-file {
    width: 100%;
    display: block;
    background: #000;
    border-radius: 16px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.empty-message {
    color: rgba(29, 29, 31, 0.5);
    font-size: 0.95rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 22px;

    border-radius: 999px;
    background: #1d1d1f;
    color: #fff;

    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-link:hover {
    background: #b59410;
}

.media-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.media-slider {
    display: flex;
    gap: 24px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 10px 4px 18px;

    scrollbar-width: none;


}

.media-slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 999px;

    background: rgba(29, 29, 31, 0.88);
    color: #fff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow: 0 12px 35px rgba(0,0,0,0.18);

    transition:
        background-color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.slider-btn:hover {
    background: #b59410;
    transform: translateY(-50%) scale(1.05);
}

.slider-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.slider-btn-prev {
    left: -14px;
}

.slider-btn-next {
    right: -14px;
}

.footer {
    background: #1d1d1f;
    padding: 60px 0 30px 0;
    text-align: center;
    color: #fff;
    overflow-x: clip;
}

.footer-logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-weight: 400;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.footer-info .phone {
    font-size: 1.5rem;
    color: #b59410;
    margin-bottom: 5px;
}

.footer-info .email {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 40px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ==========================================
   === ПРОБНАЯ ВЕРСИЯ АНИМАЦИИ             ===
   Более заметное и длительное появление
   ========================================== */

.element-to-animate {
    opacity: 0;
    transform: translateY(90px) scale(0.985);
    filter: blur(8px);

    transition:
        opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 2.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 2.2s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform, opacity, filter;
}

.reveal-item {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(6px);

    transition:
        opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.9s cubic-bezier(0.16, 1, 0.3, 1);

    transition-delay: var(--delay, 0s);
    will-change: transform, opacity, filter;
}

.hero:not(.fade-in-visible) .hero-bg-blur {
    opacity: 0.05;
    filter: blur(12px);
}

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

.element-to-animate.fade-in-visible .reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero:not(.fade-in-visible) .hero-bg-blur {
    opacity: 0.1;
}

.element-to-animate.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.element-to-animate.fade-in-visible .reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .footer-logo {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        background: transparent;
        width: auto;
        box-shadow: none;
        border-bottom: none;
    }

    .nav a {
        color: rgba(29, 29, 31, 0.8);
        margin-left: 24px;
        padding: 0;
        font-size: 0.85rem;
    }

    .nav a:hover {
        color: #b59410;
    }

    .hero {
        height: 90vh;
        text-align: left;
    }

.hero-bg-blur {
        background:
            linear-gradient(
                to right,
                #fbfbfd 35%,
                rgba(251,251,253,0.2)
            ),
            url('photo.jpg') 90% 0% no-repeat;

        background-size: auto 108%;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    .hero-actions {
        flex-direction: row;
    }

    .about,
    .projects,
    .gallery,
    .media {
        padding: 120px 0;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        width: 100%;
    }

    .photo-main {
        height: 520px;
        margin-bottom: 0;
    }

    .projects-grid {
        flex-direction: row;
        gap: 20px;
    }

    .project-card {
        flex: 1;
        height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .media-grid {
        display: flex;
        flex-direction: column;
        gap: 70px;
        width: 100%;
    }

    .media-left,
    .media-right {
        width: 100%;
        margin-bottom: 0;
    }

    .slider-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (min-width: 1100px) {
    .gallery .slider-card {
        flex-basis: calc((100% - 48px) / 3);
    }

    .media .slider-card {
        flex-basis: 100%;
    }
}

@media (max-width: 767px) {
    .gallery-item img {
        height: 320px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1.7rem;
    }

    .slider-btn-prev {
        left: 6px;
    }

    .slider-btn-next {
        right: 6px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fbfbfd;
}

::-webkit-scrollbar-thumb {
    background: rgba(181, 148, 16, 0.45);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 148, 16, 0.75);
}

.footer-info .phone a {
    color: #b59410;
    text-decoration: none;
}

.footer-info .email a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-info .phone a:hover,
.footer-info .email a:hover,
.social-links a:hover {
    color: #b59410;
}

/* ==========================================
   === ОПТИМИЗАЦИЯ АНИМАЦИИ ДЛЯ МОБИЛЬНЫХ ===
   ========================================== 

@media (max-width: 767px) {
    .element-to-animate {
        transform: translateY(55px) scale(0.99);
        filter: none;

        transition:
            opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-item {
        transform: translateY(35px);
        filter: none;

        transition:
            opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);

        transition-delay: var(--delay, 0s);
    }

    .hero:not(.fade-in-visible) .hero-bg-blur {
        filter: none;
        opacity: 0.12;
    }
}*/

/* ==========================================
   === ИСПРАВЛЕНИЕ ВЛОЖЕННЫХ СКРОЛЛОВ      ===
   ========================================== */

/*
   Важно:
   overflow-x: hidden на большом количестве блоков создаёт
   вложенные scroll-контейнеры. На мобильных это может мешать
   нормальной вертикальной прокрутке страницы.
*/

html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
    overflow-y: visible;
}

/* Секции НЕ должны иметь собственный скролл */
.scroll-track,
.header,
.hero,
.about,
.projects,
.gallery,
.media,
.footer,
.container,
.media-grid,
.gallery-grid,
.audio-list,
.video-list,
.media-left,
.media-right {
    overflow: visible;
}

/* Защита от горизонтального вылета */
body,
html,
.scroll-track,
.header,
.hero,
.about,
.projects,
.gallery,
.media,
.footer {
    max-width: 100%;
}

/*
   Слайдеры:
   - не перехватывают вертикальный свайп;
   - прокручиваются кнопками вперёд/назад;
   - скрытый внутренний горизонтальный скролл не мешает странице.
*/

.media-slider-wrap {
    overflow: visible;
    touch-action: pan-y;
}

.media-slider {
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

/* Карточки не должны создавать свои вертикальные скроллы */
.slider-card,
.gallery-item,
.video-item,
.audio-item {
    overflow: visible;
}

/* Но внутренности с медиа можно аккуратно обрезать визуально */
.gallery-item,
.video-item,
.audio-item {
    overflow: hidden;
}

/* Видео-контейнеру оставляем скрытие, оно нужно для iframe */
.video-container {
    overflow: hidden;
}

/* Изображения, видео и iframe не должны расширять страницу */
img,
video,
iframe {
    max-width: 100%;
}

/* --- Безопасная правка скролла на мобильных --- */

/* 1. Страница не должна ехать по горизонтали */
html, body {
  overflow-x: hidden;
}

/* 2. Слайдер не должен перехватывать вертикальный свайп */
.media-slider {
  touch-action: pan-y;
}

/* 3. Убираем внутренний вертикальный скролл только там, где он мешает */
.media-section,
.programs-section,
.programs,
.program-list,
.concert-programs {
  overflow-y: visible !important;
  max-height: none !important;
}

/* 4. На всякий случай ограничим только горизонтальные переполнения у типовых блоков */
section,
.block,
.container {
  overflow-x: clip;
}

/* === Финальная аккуратная правка мобильного скролла === */

/* Страница: основной вертикальный скролл только у документа */
html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: auto;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

body.light-theme {
    overflow-x: clip;
}

/* Крупные секции не должны создавать горизонтальный выезд */
.scroll-track,
.about,
.projects,
.gallery,
.media,
.footer {
    max-width: 100%;
    overflow-x: clip;
}

/* Обертка слайдера не должна резать контент по вертикали */
.media-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Сам слайдер:
   - горизонтально работает как и раньше
   - вертикальный жест отдаем прокрутке страницы */
.media-slider {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    padding: 10px 4px 18px;
    scrollbar-width: none;

    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.media-slider::-webkit-scrollbar {
    display: none;
}

/* === Безопасные небольшие улучшения === */

/* Стабильнее отображение текста на iPhone */
html {
    -webkit-text-size-adjust: 100%;
}

/* Медиа не должны вылезать за экран */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Удобнее нажимать кнопки слайдера на телефоне */
.slider-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Аккуратный фокус для клавиатуры и accessibility */
a:focus-visible,
button:focus-visible,
.slider-btn:focus-visible {
    outline: 2px solid #c9a14a;
    outline-offset: 3px;
}

/* Защита от слишком длинных слов/ссылок */
h1, h2, h3, p, li, a, span {
    overflow-wrap: anywhere;
}

/* Более дружелюбно для пользователей с reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Безопасная визуальная полировка === */

/* Плавнее интерактивность */
a,
button,
.slider-btn,
.project-card,
.gallery-item,
.media-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Легкий hover для карточек */
.project-card:hover,
.gallery-item:hover,
.media-card:hover {
    transform: translateY(-2px);
}

/* Аккуратнее кнопки */
button,
.slider-btn {
    cursor: pointer;
}

/* Если кнопка отключена — показываем это визуально */
button:disabled,
.slider-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Картинки выглядят аккуратнее как блоки */
img {
    display: block;
}

/* Видео тоже */
video {
    display: block;
}

/* Чуть аккуратнее поведение медиа-контейнеров */
img,
video {
    border-radius: inherit;
}

/* Длинные секции не будут прилипать к якорю под шапку */
section {
    scroll-margin-top: 24px;
}

/* Выделение текста чуть приятнее */
::selection {
    background: rgba(201, 161, 74, 0.25);
}

/* На сенсорных устройствах убираем лишний hover-эффект */
@media (hover: none) {
    .project-card:hover,
    .gallery-item:hover,
    .media-card:hover {
        transform: none;
    }
}

.project-card,
.gallery-item,
.media-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

p,
li {
    line-height: 1.7;
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* === Минималистичный стиль для блока с фотографиями === */

.gallery-item,
.gallery-item img,
.media-card,
.media-card img {
    box-shadow: none !important;
}

.gallery-item,
.media-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    overflow: hidden;
}

.gallery-item img,
.media-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* Очень деликатная реакция при наведении */
@media (hover: hover) {
    .gallery-item:hover,
    .media-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.28);
    }
}

/* === Возврат блока "Концертные программы" к более исходному виду === */

.project-card {
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (hover: hover) {
    .project-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }
}

.projects::before {
    display: none !important;
}

/* === Минималистичная полировка сайта === */

/* 1. Галерея / фотографии: без теней, с тонкой рамкой */
.gallery-item,
.gallery-item img {
    box-shadow: none !important;
}

.gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    overflow: hidden;
}

@media (hover: hover) {
    .gallery-item:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.24);
    }
}

/* 2. Блок программ: без декоративных выделений, только аккуратная типографика */
.project-card {
    box-shadow: none !important;
    border: none !important;
}

.project-card h3,
.project-card h4 {
    line-height: 1.25;
    margin-bottom: 0.45em;
}

.project-card p,
.project-card li {
    line-height: 1.7;
}

/* 3. Кнопки слайдера: чище и удобнее */
.slider-btn {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) {
    .slider-btn:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.28);
    }
}

/* 4. Текстовые блоки: чуть спокойнее и легче читаются */
/*.about p,
.hero p,
.footer p,
.footer li {
    line-height: 1.7;
}

.about h2,
.about h3,
.hero h1,
.project-card h3,
.project-card h4 {
    line-height: 1.2;
}

/* 5. Футер: аккуратнее и чище */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* === Точечный возврат шрифта логотипа и футера === */

.logo {
    font-family: 'Bodoni Moda', serif !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

.footer-logo {
    font-family: 'Bodoni Moda', serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* === Увеличение фото при клике === */

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-close:hover {
    background: #b59410;
    color: #ffffff;
}

.gallery-item img {
    cursor: zoom-in;
}

/* === Кнопка полноэкранного режима для видео === */

.video-fullscreen-btn {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(181, 148, 16, 0.55);
    background: #b59410;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-fullscreen-btn:hover {
    background: #1d1d1f;
    transform: translateY(-1px);
}

.video-fullscreen-btn:active {
    transform: translateY(0);
}

.admin-video-preview {
    width: 100%;
    margin: 12px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.admin-video-preview iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.admin-video-preview video {
    width: 100%;
    max-height: 260px;
    display: block;
    background: #000;
}

.admin-video-link {
    display: inline-block;
    margin: 10px 0;
    color: #b59410;
    word-break: break-all;
}

/* === Страница концертной программы === */

.program-page-body {
    background:
        radial-gradient(circle at top left, var(--program-accent, #f3d6df), transparent 34%),
        #fbfbfd;
}

.program-page {
    min-height: 70vh;
}

.program-hero {
    padding: 120px 0 50px;
}

.program-back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--program-color, #8b1e3f);
    text-decoration: none;
    font-weight: 600;
}

.program-back-link:hover {
    text-decoration: underline;
}

.program-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 64px);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
        var(--program-accent, #f3d6df);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 30px 90px rgba(0,0,0,0.08);
}

.program-hero-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -80px;
    background: var(--program-color, #8b1e3f);
    opacity: 0.14;
    border-radius: 50%;
}

.program-hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -70px;
    background: var(--program-color, #8b1e3f);
    opacity: 0.10;
    border-radius: 50%;
}

.program-hero-card h1 {
    position: relative;
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
    margin: 12px 0 18px;
    color: var(--program-color, #8b1e3f);
}

.program-subtitle {
    position: relative;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 600;
    margin-bottom: 18px;
    color: #1d1d1f;
}

.program-description {
    position: relative;
    max-width: 780px;
    font-size: 1.05rem;
    color: #4a4a4a;
}

.program-songs-section {
    padding: 30px 0 90px;
}

.program-songs-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: #1d1d1f;
    margin-bottom: 28px;
}

.program-songs-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.program-song-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 6px solid var(--program-color, #8b1e3f);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.05);
}

.program-song-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--program-color, #8b1e3f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.program-song-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.program-song-content p {
    color: #666;
    margin-bottom: 12px;
}

.program-song-media {
    margin-top: 12px;
}

.program-song-media audio,
.program-song-media video {
    width: 100%;
    max-width: 760px;
}

.program-song-media video {
    border-radius: 18px;
    background: #000;
}

.program-song-video-frame {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    margin-top: 12px;
}

.program-song-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.program-song-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--program-color, #8b1e3f);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.program-song-link:hover {
    filter: brightness(0.92);
}

@media (max-width: 640px) {
    .program-hero {
        padding: 96px 0 36px;
    }

    .program-song-card {
        grid-template-columns: 1fr;
    }

    .program-song-number {
        width: 44px;
        height: 44px;
    }
}

/* === Кликабельные карточки концертных программ === */

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.project-card-link::after {
    content: "";
    position: absolute;
    inset: auto 20px 20px auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(181, 148, 16, 0.16);
    opacity: 0;
    transform: scale(0.7);
    transition: 0.25s ease;
}

.project-card-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

.project-card-more {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 600;
    color: #b59410;
}

/* === Осторожное исправление стрелок слайдера на смартфонах === */

/*
   Задача:
   - стрелки не должны смещаться при касании;
   - клик по стрелке не должен случайно попадать в фото;
   - зона нажатия должна быть стабильной и достаточно крупной.
*/

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    padding: 0;
    line-height: 1;

    z-index: 20;

    user-select: none;
    -webkit-user-select: none;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    transform: translate3d(0, -50%, 0) !important;
}

.slider-btn:hover,
.slider-btn:active,
.slider-btn:focus {
    transform: translate3d(0, -50%, 0) !important;
}

/* На сенсорных устройствах полностью убираем hover-движение стрелок */
@media (hover: none), (pointer: coarse) {
    .slider-btn,
    .slider-btn:hover,
    .slider-btn:active,
    .slider-btn:focus {
        transform: translate3d(0, -50%, 0) !important;
    }

    .slider-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

/* Фото не должно перехватывать клик в зоне стрелок */
.media-slider-wrap {
    isolation: isolate;
}

.slider-btn {
    pointer-events: auto;
}