.main {
    margin-top: 100px;
    width: 100%;
    height: 1200px;
    background-color: #f8fbff;
    display: flex;
    justify-content: center;  /* Центр по горизонтали */
    align-items: center;      /* Центр по вертикали */
    gap: 40px;                /* Расстояние между изображением и блоком */
    padding: 0 10%;
    box-sizing: border-box;
}

.main-image {
    width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: -5px -5px 9px rgba(255,255,255,0.45), 5px 5px 9px rgba(94,104,121,0.3);
}

.main-container {
    width: 45%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-title {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-title-text {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.main-subtitle {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.4;
}

.main-choice {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.main-choice-container {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.choice-visit,
.choice-exhib {
    width: 100%;
    height: 40px;
    flex: 1;
    padding: 15px 0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    transition: 0.3s ease;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.choice-visit {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #007fff, #00d4ff);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.choice-visit:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00bfff, #0099ff);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}

.choice-exhib {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
}

.choice-exhib:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #a450ff, #5f00ff);
    box-shadow: 0 0 18px rgba(138, 43, 226, 0.6);
}

.main-date {
    min-width: 160px;
    font-size: 30px;
    color: #333;
    padding-top: 30px;
}

#text-parallax h2, #text-parallax p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

#text-parallax.active h2, 
#text-parallax.active p {
    opacity: 1;
    transform: translateY(0);
}

#text-parallax h2 {
    transition-delay: 0.3s;
}

#text-parallax p {
    transition-delay: 0.5s;
}

@media (min-width: 1440px) and (max-width: 2024px){
    .main{
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Адаптация для <= 1024px */
@media (min-width: 1024px) and (max-width: 1440px) {
    .main {
        flex-direction: column;
        height: auto;
        padding: 50px 5%;
        gap: 40px;
    }

    .main-image {
        width: 100%;
        max-width: 600px;
    }

    .main-container {
        width: 100%;
        text-align: center;
    }

    .main-title-text {
        font-size: 36px;
    }

    .main-subtitle {
        font-size: 20px;
    }

    .main-choice {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .main-choice-container {
        width: 700px;
        gap: 15px;
    }

    .choice-visit,
    .choice-exhib {
        font-size: 24px;
        padding: 12px 0;
    }

    .main-date {
        font-size: 20px;
        text-align: center;
        padding-top: 25px;
    }
}

@media (max-width: 1023px) and (min-width: 781px) {
    .main {
        flex-direction: column;
        height: auto;
        padding: 40px 5%;
        gap: 30px;
    }

    .main-image {
        width: 100%;
        max-width: 550px;
    }

    .main-container {
        width: 100%;
        text-align: center;
    }

    .main-title-text {
        font-size: 32px;
    }

    .main-subtitle {
        font-size: 18px;
    }

    .main-choice {
        flex-direction: column;
        gap: 15px;
    }

    .choice-visit,
    .choice-exhib {
        width: 100%;
        font-size: 22px;
        padding: 12px 0;
    }

    .main-date {
        font-size: 18px;
        padding-top: 20px;
    }
}

/* Адаптация для 480px – 780px */
@media (max-width: 780px) and (min-width: 481px) {
    .main {
        flex-direction: column;
        height: auto;
        padding: 40px 5%;
        gap: 30px;
    }

    .main-image,
    .main-container {
        width: 100%;
    }

    .main-title-text {
        font-size: 32px;
    }

    .main-subtitle {
        font-size: 18px;
    }

    .main-choice {
        flex-direction: column;
        gap: 15px;
    }

    .main-date {
        font-size: 18px;
        text-align: center;
    }
}

/* Адаптация для 430px – 479px */
@media (max-width: 479px) and (min-width: 431px) {
    .main {
        flex-direction: column;
        height: auto;
        padding: 30px 5%;
        gap: 25px;
    }

    .main-image,
    .main-container {
        width: 100%;
    }

    .main-title-text {
        font-size: 28px;
        text-align: center;
    }

    .main-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .main-choice {
        flex-direction: column;
        gap: 12px;
    }

    .main-date {
        font-size: 16px;
        text-align: center;
        padding-top: 20px;
    }
}

/* Адаптация для <= 430px */
@media (max-width: 430px) {
    .main {
        flex-direction: column;
        height: auto;
        padding: 25px 5%;
        gap: 20px;
    }

    .main-image,
    .main-container {
        width: 100%;
    }

    .main-title-text {
        font-size: 24px;
        text-align: center;
    }

    .main-subtitle {
        font-size: 14px;
        text-align: center;
    }

    .main-choice {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .main-choice-container{
        width: 100%;
        padding: 0;
    }

    .choice-exhib,
    .choice-visit{
        padding: 0 0;
    }

    .main-date {
        font-size: 14px;
        text-align: center;
        padding-top: 15px;
    }
}