/* ==========================================================================
    Адаптивность
   ========================================================================== */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }

    body {
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }

    .background-symbols {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    .background-symbols__shape {
        position: absolute;
        opacity: 0.15;
        will-change: transform, opacity;
    }

    .background-symbols__shape svg {
        display: block;
        stroke: #ffffff;
        width: 100%;
        height: 100%;
    }

    @keyframes floatUp {
        0% {
            transform: translateY(110vh) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) rotate(360deg) scale(var(--scale, 1));
        }
    }

    @keyframes floatDiagLeft {
        0% {
            transform: translateY(110vh) translateX(15vw) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) translateX(-15vw) rotate(360deg) scale(var(--scale, 1));
        }
    }

    @keyframes floatDiagRight {
        0% {
            transform: translateY(110vh) translateX(-15vw) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) translateX(15vw) rotate(360deg) scale(var(--scale, 1));
        }
    }

    .program-hero {
        padding: 80px 20px 40px;
        min-height: 60vh;
    }

    .program-hero__title {
        font-size: 80px;
        line-height: 90px;
    }

    .program-hero__subtitle {
        font-size: 24px;
        line-height: 32px;
    }

    .program-hero__dates {
        font-size: 18px;
        line-height: 28px;
    }

    .festival-day {
        margin: 40px auto;
        padding: 0 15px;
    }

    .festival-day__header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }

    .festival-day__number {
        font-size: 32px;
    }

    .festival-day__date {
        font-size: 24px;
    }

    .timeline {
        padding-left: 35px;
        gap: 20px;
    }

    .timeline::before {
        left: 10px;
        top: 35px;
        width: 3px;
    }

    .timeline__item {
        position: relative;
        padding: 20px;
        background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
        border: 2px solid rgba(228, 173, 43, 0.3);
        border-radius: 15px;
    }

    .timeline__item::before {
        content: "";
        position: absolute;
        left: -32px;
        top: 25px;
        width: 12px;
        height: 12px;
        background: #E4AD2B;
        border: 3px solid rgba(30, 30, 30, 1);
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(228, 173, 43, 0.5);
        z-index: 1;
    }

    .timeline__content {
        display: flex;
        flex-direction: column;
    }

    .timeline__time {
        color: #E4AD2B;
        font-size: 16px;
        font-family: "UNCAGE", sans-serif;
        font-weight: 700;
        line-height: 20px;
        margin-bottom: 10px;
        display: inline-block;
        padding: 5px 12px;
        background: rgba(228, 173, 43, 0.1);
        border-radius: 6px;
    }

    .timeline__event-title {
        color: white;
        font-size: 20px;
        font-family: "UNCAGE", sans-serif;
        font-weight: 700;
        line-height: 26px;
        margin: 5px 0 8px 0;
        text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .timeline__event-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: #E4AD2B;
        filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    }

    .timeline__event-location {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-family: "Lucida Sans Unicode", sans-serif;
        font-weight: 500;
        line-height: 20px;
        margin: 0 0 10px 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .timeline__event-location::before {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        flex-shrink: 0;
    }

    .timeline__event-description {
        color: rgba(255, 255, 255, 0.85);
        font-size: 16px;
        font-family: "Lucida Sans Unicode", sans-serif;
        font-weight: 400;
        line-height: 24px;
        margin: 0;
    }

    .program-note {
        margin: 30px auto 50px;
        padding: 16px 20px;
    }

    .program-note p {
        font-size: 14px;
        line-height: 22px;
    }

    .program-note__warning {
        font-size: 14px !important;
    }

    .program-note__warning svg {
        width: 14px;
        height: 14px;
    }

    .timeline__item:active {
        border-color: rgba(228, 173, 43, 0.7);
        box-shadow: 0 5px 20px rgba(228, 173, 43, 0.3);
    }

    .timeline__item:active::before {
        box-shadow: 0 0 15px rgba(228, 173, 43, 0.8);
    }
}
