/* =================================
   PAGE: HOME
================================= */

.home-categories {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 15px;
    margin: 0 0 30px;
}

/* HERO */

.home-categories__item--hero {
    grid-column: 1 / -1;
    grid-row: span 2;
}

/* левая колонка */

.home-categories__item--wide {
    grid-column: span 7;
}

/* правая верхняя карточка */

.home-categories__item--tall {
    grid-column: span 5;
    grid-row: span 2;
}

/* правая нижняя карточка */

.home-categories__item--small {
    grid-column: span 5;
}

/* карточка */

.home-categories__item {
    position: relative;
    display: block;

    overflow: hidden;

    border: 1px solid #ddd;
    border-radius: 4px;

    text-decoration: none;

    box-shadow: 0 2px 6px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

/* изображение */

.home-categories__image {
    height: 100%;
}

.home-categories__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .4s ease;
}

/* затемнение */

.home-categories__image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.65),
        rgba(0,0,0,.10),
        rgba(0,0,0,0)
    );
}

/* текст */

.home-categories__title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 2;
}

.home-categories__title h3 {
    margin: 0;

    font-size: 22px;
    line-height: 1.2;

    color: #fff;
    text-transform: uppercase;

    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* hover */

.home-categories__item:hover {
    border-color: #00743C;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.home-categories__item:hover img {
    transform: scale(1.08);
}

/* кнопки */

.home-categories__links {
    margin-top: 14px;
}

.home-categories__links .btn {
    background: rgba(255,255,255,.92);
    border: none;

    color: #333;
    font-weight: 600;

    padding: 6px 14px;
    margin-right: 8px;

    border-radius: 3px;

    box-shadow: 0 2px 6px rgba(0,0,0,.15);

    transition: all .2s ease;
}

.home-categories__links .btn:last-child {
    margin-right: 0;
}

.home-categories__links .btn:hover {
    background: #00743C;
    color: #fff;
}

/* адаптив */

@media (max-width: 992px) {

    .home-categories {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .home-categories__item--hero,
    .home-categories__item--wide,
    .home-categories__item--tall,
    .home-categories__item--small {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px;
    }
}

@media (max-width: 576px) {

    .home-categories__item--hero,
    .home-categories__item--wide,
    .home-categories__item--tall,
    .home-categories__item--small {
        min-height: 220px;
    }

    .home-categories__title h3 {
        font-size: 18px;
    }

    .home-categories__links .btn {
        margin-bottom: 6px;
    }
}


/* =================================
   HOME PAGE: VIDEO CAROUSEL
================================= */

.video-carousel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.video-carousel__slider {
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.video-carousel__slider .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.video-carousel__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-carousel__slide:hover {
    transform: scale(1.05);
    z-index: 2;
}

.video-carousel__item {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-carousel__item iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Навигация */

.video-carousel__nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    transition: all 0.3s ease;
}

.video-carousel__nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-carousel__nav::after {
    font-size: 16px;
    font-weight: bold;
}

/* Adaptive */

@media (max-width: 1200px) {
    .video-carousel__item {
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .video-carousel__item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .video-carousel__item {
        height: 260px;
    }

    .video-carousel__nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .video-carousel__item {
        height: 220px;
    }

    .video-carousel__nav {
        display: none;
    }
}

/* =================================
   HOME PAGE: COMMON SECTIONS
================================= */

.home-section-title {
    margin: 0 0 20px;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;

    color: #222;
}


/* =================================
   HOME PAGE: ADVANTAGES
================================= */

.home-advantages {
    margin: 50px 0;
}

.home-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.home-advantages__item {
    position: relative;

    display: flex;
    gap: 18px;

    min-height: 170px;
    padding: 25px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.home-advantages__item:hover {
    border-color: #00743C;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.home-advantages__number {
    flex: 0 0 auto;

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

    width: 42px;
    height: 42px;

    padding-top: 10px;

    box-sizing: border-box;

    border-radius: 50%;

    background: #00743C;
    color: #fff;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.home-advantages__content {
    min-width: 0;
}

.home-advantages__content h3 {
    margin: 2px 0 10px;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;

    color: #222;
}

.home-advantages__content p {
    margin: 0;

    font-size: 15px;
    line-height: 1.55;

    color: #666;
}


/* =================================
   HOME PAGE: ARTICLES
================================= */

.home-articles {
    margin: 50px 0 60px;
}

.home-articles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.home-articles__item {
    position: relative;

    overflow: hidden;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.home-articles__item::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    width: 5px;

    background: #00743C;
}

.home-articles__item:hover {
    border-color: #00743C;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.home-articles__content {
    padding: 28px 30px 26px 35px;
}

.home-articles__label {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;

    color: #00743C;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-articles__content h3 {
    max-width: 1000px;

    margin: 0 0 20px;

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.home-articles__content h3 a {
    color: #222;
    text-decoration: none;

    transition: color .2s ease;
}

.home-articles__content h3 a:hover {
    color: #00743C;
}

.home-articles__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1;
    font-weight: 600;

    color: #00743C;
    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.home-articles__more:hover {
    color: #005c30;
    gap: 12px;
}

.home-articles__more span {
    font-size: 18px;
    line-height: 1;
}


/* =================================
   ADAPTIVE
================================= */

@media (max-width: 1200px) {

    .home-advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .home-advantages,
    .home-articles {
        margin: 40px 0;
    }

    .home-section-title {
        font-size: 24px;
    }

    .home-advantages__grid {
        grid-template-columns: 1fr;
    }

    .home-advantages__item {
        min-height: auto;
        padding: 22px;
    }

    .home-articles__content {
        padding: 24px 24px 24px 30px;
    }

    .home-articles__content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .home-section-title {
        font-size: 22px;
    }

    .home-advantages__item {
        gap: 14px;
        padding: 18px;
    }

    .home-advantages__number {
        width: 38px;
        height: 38px;
        padding-top: 9px;
    }

    .home-advantages__content h3 {
        font-size: 17px;
    }

    .home-advantages__content p {
        font-size: 14px;
    }
}
