/* Стили для главной страницы (Home Page) */
.home .driver_icon path {
    fill: #FDC128 !important;
}
.home .banner_icon {
    color: #000000;
}
.home .banner_link:hover .banner_icon {
    color: #FDC128 !important;
}
.home .banner_icon path {
    fill: currentColor !important;
}

.about_numbers {
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: transparent;
}

/* Блок "почему мы" */
/* Первый элемент (> 300) - #FDC128 */
.about_item:nth-child(1) .about_numbers {
    color: #FDC128 !important;
}

/* Второй элемент (> 93 000) - #B185BE */
.about_item:nth-child(2) .about_numbers {
    color: #B185BE !important;
}

/* Третий элемент (27 лет) - #B185BE */
.about_item:nth-child(3) .about_numbers {
    color: #B185BE !important;
}

.about{ 
    max-height: 50rem;
}

/* === БЛОК СТАТЬИ === */
.articles {
    padding: 120px 0;
}

.articles_wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1348px;
    margin: 0 auto;
}

/* Шапка блока */
.articles_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.articles_title {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: -0.011em;
    color: #050504;
    margin: 0;
}

.articles_link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #050504;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.011em;
    transition: color 0.2s;
}

.articles_link:hover {
    color: #983B79;
}

.articles_link-arrow {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: background 0.2s;
}

.articles_link-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(35deg);
    width: 6px;
    height: 1px;
    background: currentColor;
    transform-origin: right center;
}

.articles_link-arrow::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-35deg);
    width: 6px;
    height: 1px;
    background: currentColor;
    transform-origin: right center;
}

/* Список карточек */
.articles_list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.articles_item {
    flex: 0 0 322px;
    width: 322px;
}

/* Карточка */
.article-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 322px;
    height: 400px;
    padding: 10px 20px 20px;
    gap: 10px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    background: #797979;
}

/* Фоновое изображение */
.article-card_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card_img {
    transform: scale(1.04);
}

/* Градиент поверх фото */
.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #000000 100%);
    z-index: 1;
}

.article-card_inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Контент поверх градиента */
.article-card_content,
.article-card_footer {
    position: relative;
    z-index: 2;
    width: 100%;
}

.article-card_content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card_title {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: -0.011em;
    color: #ffffff;
    margin: 0;
}

.article-card_text {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.011em;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card_date {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: -0.011em;
    color: #C8C7C7;
    margin: 0;
}

/* Подробнее — показывается при hover */
.article-card_footer {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.article-card:hover .article-card_footer {
    height: 24px;
    opacity: 1;
}

.article-card_more {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.011em;
    color: #ffffff;
}

@media screen and (max-width: 767px) {
    .articles {
        padding: 60px 0 60px 20px;
    }
    .articles_link{
        margin-right: 20px;
    }
    .articles_wrapper {
        gap: 24px;
    }

    .articles_title {
        font-size: 24px;
    }

    /* Список — горизонтальный скролл */
    .articles_list {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px; /* место под скроллбар */

        /* убираем скроллбар визуально */
        scrollbar-width: none;
    }

    .articles_list::-webkit-scrollbar {
        display: none;
    }

    .articles_item {
        flex: 0 0 280px;
        width: 280px;
        scroll-snap-align: start;
    }

    .article-card {
        width: 280px;
    }

    /* На тач-устройствах hover не работает — показываем footer всегда */
    .article-card_footer {
        height: 24px;
        opacity: 1;
    }
}