/* Основная структура */
.element {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.element .div {
    background-color: var(--white);
    width: 1440px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
}

/* Шапка */
.header {
    display: flex;
    width: 1280px;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 35px auto 0;
    padding: 0 110px;
    background-color: transparent;
    z-index: 1000;
}

.theatre-by {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Montserrat-Bold", Helvetica;
    font-weight: 700;
    color: var(--black);
    font-size: 19px;
    letter-spacing: 0;
    line-height: normal;
}

.menu {
    display: inline-flex;
    align-items: center;
    gap: 38px;
    position: relative;
    flex: 0 0 auto;
}

.menu-link {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: var(--mont-poit-font-family);
    font-weight: var(--mont-poit-font-weight);
    color: var(--gray);
    font-size: var(--mont-poit-font-size);
    letter-spacing: var(--mont-poit-letter-spacing);
    line-height: var(--mont-poit-line-height);
    font-style: var(--mont-poit-font-style);
}

.menu-link.active {
    font-family: "Montserrat-Regular", Helvetica;
    font-weight: 400;
    color: var(--black);
    font-size: 18px;
    letter-spacing: 0;
    line-height: normal;
}

/* Секция деталей спектакля */
.spectacle-details-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 1280px;
    max-width: 100%;
    margin: 80px auto 0;
    padding: 0 110px 50px;
}

.spectacle-main-content {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.spectacle-poster {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0px 2px 31.9px rgba(0, 0, 0, 0.25);
}

.spectacle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.spectacle-title {
    font-family: var(--mont-h1-font-family);
    font-weight: var(--mont-h1-font-weight);
    color: var(--black);
    font-size: var(--mont-h1-font-size);
    line-height: var(--mont-h1-line-height);
    letter-spacing: var(--mont-h1-letter-spacing);
    font-style: var(--mont-h1-font-style);
    margin: 0;
}

.spectacle-detail {
    font-family: "Montserrat-Regular", Helvetica;
    font-weight: 400;
    color: var(--black);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}

.spectacle-details-content {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.spectacle-description {
    font-family: "Montserrat-Regular", Helvetica;
    font-weight: 400;
    color: var(--black);
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
}

.spectacle-cast {
    font-family: "Montserrat-Regular", Helvetica;
    font-weight: 400;
    color: var(--black);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}

.spectacle-cast strong {
    font-family: "Montserrat-Bold", Helvetica;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
}

.buy-ticket-button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 297px;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--darkblue);
    border-radius: 28px;
    box-shadow: 0px 6px 31.9px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    color: var(--white);
    font-family: var(--mont-button-font-family);
    font-weight: var(--mont-button-font-weight);
    font-size: var(--mont-button-font-size);
    line-height: var(--mont-button-line-height);
    letter-spacing: var(--mont-button-letter-spacing);
    font-style: var(--mont-button-font-style);
    text-align: center;
}

.buy-ticket-button.bottom {
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
}

.spectacle-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    gap: 0;
}

.slider-image {
    width: 100%;
    flex-basis: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 50%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.slider-button.prev {
    left: 15px;
}

.slider-button.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    height: 14px;
    width: 14px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--darkblue);
}

.no-results {
    text-align: center;
    width: 100%;
    font-family: var(--mont-regul-font-family);
    color: var(--gray);
    font-size: var(--mont-regul-font-size);
    line-height: var(--mont-regul-line-height);
    letter-spacing: var(--mont-regul-letter-spacing);
}

/* Футер */
.footer {
    width: 100%;
    margin-top: clamp(3rem, 6vw, 5rem); /* Увеличенный отступ сверху */
    background-color: transparent;
    border-top: 2px solid var(--light-gray); /* Светло-серая граница сверху */
    padding: 0;
    display: flex;
    align-items: flex-end;
}

.footer-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 1.25rem);
    width: 100%;
    flex-wrap: wrap;
    padding: clamp(1.25rem, 3vw, 1.25rem) clamp(5rem, 8vw, 6rem); /* Увеличенные боковые отступы */
}

.footer-left-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28.9375rem;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    flex-grow: 1;
}

.footer-logo {
    align-self: stretch;
    font-family: "Montserrat-Bold", Helvetica;
    font-weight: 700;
    color: var(--black);
    font-size: var(--num-font-size);
    letter-spacing: 0;
    line-height: normal;
    word-break: break-word;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.9375rem);
    width: 100%;
    flex-wrap: wrap;
}

.footer-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.social-icons-group {
    width: auto;
    height: 1.625rem;
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    align-items: center;
    justify-content: flex-start;
}

.VK, .telegram, .you-tube {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.you-tube {
    width: 1.625rem;
    height: 1.625rem;
}

.copyright-text {
    font-family: var(--mont-poit-font-family);
    font-weight: var(--mont-poit-font-weight);
    color: var(--gray);
    font-size: var(--mont-poit-font-size);
    letter-spacing: var(--mont-poit-letter-spacing);
    line-height: var(--mont-poit-line-height);
    white-space: nowrap;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .header, .spectacle-details-section {
        width: 100%;
        padding: 0 70px;
    }

    .footer-content-wrapper {
        padding: clamp(1rem, 3vw, 1rem) clamp(5rem, 8vw, 6rem); /* Увеличенные боковые отступы */
    }

    .spectacle-main-content {
        gap: 30px;
    }

    .spectacle-poster {
        width: 300px;
        height: 375px;
    }

    .buy-ticket-button {
        width: 250px;
        height: 45px;
    }

    .slider-image {
        height: 360px;
    }

    .slider-button {
        padding: 10px 15px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        gap: 20px;
    }

    .spectacle-details-section {
        margin: 150px auto 0;
        padding: 0 50px 30px;
    }

    .spectacle-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .spectacle-info {
        align-items: center;
    }

    .spectacle-poster {
        width: 250px;
        height: 312px;
    }

    .buy-ticket-button {
        width: 200px;
        height: 40px;
    }

    .slider-container {
        max-width: 100%;
    }

    .slider-image {
        height: 300px;
    }

    .slider-button {
        padding: 8px 12px;
        font-size: 20px;
    }

    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: clamp(1rem, 3vw, 1rem) clamp(4rem, 8vw, 6rem); /* Увеличенные боковые отступы */
    }

    .footer-left-column, .footer-right-column {
        align-items: center;
    }

    .footer-left-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 45px;
    }

    .theatre-by {
        font-size: 16px;
    }

    .menu-link {
        font-size: 14px;
    }

    .menu-link.active {
        font-size: 16px;
    }

    .spectacle-details-section {
        margin: 100px auto 0;
        padding: 0 45px 20px;
        gap: 30px;
    }

    .spectacle-main-content {
        gap: 15px;
    }

    .spectacle-poster {
        width: 200px;
        height: 250px;
    }

    .spectacle-title {
        font-size: 28px;
    }

    .spectacle-detail, .spectacle-description, .spectacle-cast {
        font-size: 14px;
        line-height: 20px;
    }

    .spectacle-cast strong {
        font-size: 16px;
    }

    .buy-ticket-button {
        width: 150px;
        height: 35px;
        padding: 5px 15px;
        font-size: 14px;
    }

    .slider-image {
        height: 200px;
    }

    .slider-button {
        padding: 6px 10px;
        font-size: 16px;
    }

    .dot {
        height: 10px;
        width: 10px;
    }

    .footer-content-wrapper {
        gap: 15px;
        padding: clamp(1rem, 3vw, 1rem) clamp(4rem, 8vw, 6rem); /* Увеличенные боковые отступы */
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-nav {
        gap: 20px;
    }

    .copyright-text {
        font-size: 12px;
    }
}