.story {
    padding: 160px 0;
    background-color: rgba(245, 237, 224, 1);
    z-index: 5;
}

.story__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
}

.story__top-block {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 64px;
    width: 76%;
}

.story__heading {
    padding: 0 20px;
    margin: 0;
    font-family: "Noto Serif Display", serif;
    font-weight: 500;
    font-size: 120px;
    line-height: 120px;
    text-align: center;
    color: rgba(60, 36, 21, 1);
    text-align: center;
}

.story__description {
    padding: 0 20px;
    font-family: "Inter Tight", serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: rgba(60, 36, 21, 1);
    text-align: center;
    width: 44%;
}

.story__link {
    padding: 14px 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 36, 21, 1);
    font-family: "Inter Tight", serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: rgba(255, 255, 255, 1);
    transition: background-color .3s ease-in-out;
    cursor: pointer;
    outline: none;
    border: none;
    text-decoration: none;
}



.story__link:hover {
    background-color: rgba(158, 107, 75, 1);
}

.story__inner {
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

.story__swiper {
    width: 100%;
}

.customSwiper-slide {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.45s ease, height 0.45s ease;
    user-select: none;
}

.customSwiper-slide.is-active {
    cursor: default;
}

.customSwiper-slide img,
.customSwiper-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигация: стрелки (как heroes__arrow) + точки (как doctors__stage-dots) */
.story__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.story__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: rgba(60, 36, 21, 1);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
    background: rgba(60, 36, 21, 0.12);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.story__arrow:hover {
    background: rgba(60, 36, 21, 0.2);
}

.story__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.story__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.story__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 50%;
    background: rgba(60, 36, 21, 0.25);
    cursor: pointer;
    transition: background 0.2s ease;
}

.story__dot.is-active {
    background: rgba(60, 36, 21, 1);
}

@media (max-width: 1250px) {
    .story__top-block {
        width: 100%;
    }

    .story__description {
        width: fit-content;
    }
}

@media (max-width: 1300px) {
    .story__heading {
        font-size: 60px;
        line-height: 68px;
    }
}


@media (max-width: 768px) {
    .story__wrapper {
        gap: 60px;
    }

    .story {
        padding: 64px 0;
    }
}

@media (max-width: 576px) {
    .story__heading {
        margin-bottom: 24px;
        font-size: 48px;
        line-height: 52px;
    }

    .story__top-block {
        gap: 0;
    }

    .story__description {
        margin-bottom: 43px;
        font-size: 16px;
        line-height: 28px;
    }

    .story__link {
        padding: 12px;
        margin: 0 20px;
        width: 88%;
        font-size: 16px;
        line-height: 24px;
    }

    .story__wrapper {
        gap: 64px;
    }
}