

/* Start:/local/components/mm/detail.carousel/templates/.default/style.css?17783122213778*/
.post-carousel {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 56px 34px;
    border-radius: 32px;
    background: #f5f8f2;
    overflow: hidden;
}

.post-carousel__viewport {
    overflow: hidden;
    border-radius: 26px;
}

.post-carousel__track {
    display: flex;
    transition: transform 0.55s ease;
}

.post-carousel__slide {
    min-width: 100%;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(31, 92, 46, 0.13);
}

.post-carousel__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #e6eee2;
    overflow: hidden;
}

.post-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Если нужно показывать вертикальные картинки целиком — замени cover на contain */

.post-carousel__image img {
    object-fit: contain;
    background: #e6eee2;
}

.post-carousel__body {
    padding: 22px 24px 26px;
}

.post-carousel__body h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.18;
    color: #1f5c2e;
}

.post-carousel__text {
    font-size: 16px;
    line-height: 1.55;
    color: #263228;
}

.post-carousel__text p {
    margin: 0 0 12px;
}

.post-carousel__text p:last-child {
    margin-bottom: 0;
}

.post-carousel__btn {
    position: absolute;
    top: 20%;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #1f8f3a;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(31, 143, 58, 0.25);
}

.post-carousel__btn--prev {
    left: 12px;
}

.post-carousel__btn--next {
    right: 12px;
}

.post-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.post-carousel__dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: #c6d4c1;
    cursor: pointer;
    transition: 0.25s ease;
}

.post-carousel__dot.active {
    width: 24px;
    border-radius: 999px;
    background: #1f8f3a;
}

@media (max-width: 600px) {
    .post-carousel {
        max-width: 100%;
        padding: 18px 42px 28px;
        border-radius: 24px;
    }

    .post-carousel__image {
        aspect-ratio: 3 / 4;
    }

    .post-carousel__body {
        padding: 18px;
    }

    .post-carousel__body h3 {
        font-size: 21px;
    }

    .post-carousel__text {
        font-size: 15px;
    }

    .post-carousel__btn {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .post-carousel__btn--prev {
        left: 6px;
    }

    .post-carousel__btn--next {
        right: 6px;
    }
}

.post-carousel__btn {
    position: absolute;

    /* раньше было top: 45% */
    top: 20%;

    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #ff8a00;
    color: #fff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s ease;

    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.28);
}

.post-carousel__btn:hover {
    background: #ff9d2e;
    transform: translateY(-50%) scale(1.08);
}

.post-carousel__btn:active {
    transform: translateY(-50%) scale(0.96);
}

.post-carousel__btn--prev {
    left: 14px;
}

.post-carousel__btn--next {
    right: 14px;
}

.post-carousel__dot {
    width: 9px;
    height: 9px;

    border: none;
    border-radius: 50%;

    background: #ffd2a0;

    cursor: pointer;
    transition: 0.25s ease;
}

.post-carousel__dot.active {
    width: 26px;
    border-radius: 999px;

    background: #ff8a00;
}
/* End */
/* /local/components/mm/detail.carousel/templates/.default/style.css?17783122213778 */
