@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f6f4ef;
    background-image: linear-gradient(180deg, #f6f4ef 0%, #edf7f0 100%);
    min-height: 100vh;
    font-family: 'Fira Sans', sans-serif;
}

.blog-slider {
    --slider-ink: #1f2a24;
    --slider-muted: #5d675f;
    --slider-green: #174b35;
    --slider-green-light: #d4f8e8;
    position: relative;
    width: min(95vw, 800px);
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 75, 53, 0.08);
    box-shadow: 0 24px 64px rgba(31, 42, 36, 0.12), 0 3px 10px rgba(31, 42, 36, 0.04);
    padding: 25px;
    border-radius: 24px;
    height: 400px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-slider__wrp {
    height: 100%;
    width: 100%;
}

.blog-slider__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.blog-slider__img {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    background-image: linear-gradient(147deg, var(--slider-green-light) 0%, var(--slider-green) 74%);
    box-shadow: 0 16px 34px rgba(23, 75, 53, 0.18);
    border-radius: 18px;
    overflow: hidden;
}

.blog-slider__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(147deg, var(--slider-green-light) 0%, var(--slider-green) 74%);
    border-radius: 18px;
    opacity: 0;
}

.blog-slider__img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.blog-slider__content {
    flex: 1;
    max-width: 360px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-slider__content>* {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s;
}

.swiper-slide-active .blog-slider__img img {
    transform: scale(1.015);
}

.swiper-slide-active .blog-slider__content>* {
    opacity: 1;
    transform: none;
}

.swiper-slide-active .blog-slider__content>*:nth-child(1) {
    transition-delay: 0.3s;
}

.swiper-slide-active .blog-slider__content>*:nth-child(2) {
    transition-delay: 0.4s;
}

.swiper-slide-active .blog-slider__content>*:nth-child(3) {
    transition-delay: 0.5s;
}

.swiper-slide-active .blog-slider__content>*:nth-child(4) {
    transition-delay: 0.6s;
}

.swiper-slide-active .blog-slider__content>*:nth-child(5) {
    transition-delay: 0.7s;
}

.blog-slider__code {
    color: var(--slider-muted);
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-slider__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--slider-ink);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-slider__text {
    color: var(--slider-muted);
    margin-bottom: 24px;
    line-height: 1.5em;
}

.blog-slider__button {
    display: inline-flex;
    align-self: flex-start;
    background: var(--slider-green);
    padding: 13px 25px;
    border: 1px solid var(--slider-green);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 75, 53, 0.16);
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    letter-spacing: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-slider__button:hover {
    background: #103b29;
    box-shadow: 0 10px 22px rgba(23, 75, 53, 0.22);
    transform: translateY(-1px);
}

.blog-slider__button:focus-visible {
    outline: 3px solid var(--slider-green-light);
    outline-offset: 3px;
}

.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%;
}

.blog-slider__pagination {
    position: absolute;
    z-index: 21;
    right: 20px;
    width: 11px !important;
    text-align: center;
    left: auto !important;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
}

.blog-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 8px 0;
}

.blog-slider__pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 10px;
    background: #5d675f;
    opacity: 0.2;
    transition: background-color 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.blog-slider__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--slider-green);
    height: 30px;
    box-shadow: 0 0 16px rgba(23, 75, 53, 0.24);
}

@media screen and (max-width: 992px) {
    .blog-slider {
        max-width: 680px;
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .blog-slider {
        min-height: 500px;
        height: auto;
        margin: 180px auto;
    }

    .blog-slider__item {
        flex-direction: column;
    }

    .blog-slider__img {
        width: 90%;
    }

    .blog-slider__content {
        margin-top: -80px;
        text-align: center;
        padding: 0 30px;
    }

    .blog-slider__button {
        align-self: center;
    }

    .blog-slider__pagination {
        transform: translateX(-50%);
        left: 50% !important;
        top: 205px;
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .blog-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 5px;
    }
}

@media screen and (max-width: 576px) {
    .blog-slider__img {
        width: 95%;
    }

    .blog-slider__content {
        padding: 0;
    }

    .blog-slider__button {
        width: 100%;
    }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
    .blog-slider {
        height: 350px;
    }

    .blog-slider__img {
        height: 270px;
    }
}