.news-container {
    width: min(1761px, calc(100% - 40px));
    margin: 0 auto;
}

.home-news {
    position: relative;
    left: 50%;
    width: calc(100vw - 72px);
    max-width: 1769px;
    margin: 48px 0;
    transform: translateX(-50%);
}

.home-news__head {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.home-news__title {
    margin: 0 0 0 20px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.home-news__arrows {
    position: absolute;
    top: 234px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.home-news__arrow {
    position: absolute;
    left: -22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 83, 255, 0.12);
    cursor: pointer;
    pointer-events: auto;
}

.home-news__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 10px;
    height: 10px;
    border-left: 2px solid #2d63ff;
    border-bottom: 2px solid #2d63ff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.home-news__arrow_next::before {
    left: 48%;
    transform: translate(-50%, -50%) rotate(225deg);
}

.home-news__arrow_next {
    right: -22px;
    left: auto;
}

.home-news__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 28px) / 3);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-news__track::-webkit-scrollbar {
    display: none;
}

.home-news__card {
    display: flex;
    flex-direction: column;
    min-height: 405px;
    padding: 34px 42px 50px;
    border-radius: 21px;
    background: #f4f7fc;
    scroll-snap-align: start;
}

.home-news__image-link {
    display: block;
    height: 276px;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 6px;
    background: #e7edf7;
}

.home-news__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news__card-title {
    min-height: 50px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.18;
}

.home-news__card-title a,
.news-card__title a {
    color: #111;
    text-decoration: none;
}

.home-news__date,
.news-card__date,
.news-detail__date {
    color: #9aa8bd;
    font-size: 12px;
}

.home-news__more {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding-right: 34px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home-news__more::after {
    content: "";
    position: absolute;
    right: 0;
    width: 26px;
    height: 1px;
    background: #2d63ff;
}

.news-page {
    padding: 42px 0 72px;
}

.news-page__title,
.news-detail__title {
    margin: 0 0 28px;
    color: #111;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.16;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border-radius: 6px;
    background: #f4f7fc;
}

.news-card__image-link {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 6px;
    background: #e7edf7;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
}

.news-card__announce {
    margin: 16px 0 24px;
    color: #526070;
    font-size: 14px;
    line-height: 1.55;
}

.news-card__more,
.news-detail__back {
    width: fit-content;
    margin-top: auto;
    color: #174cff;
    font-weight: 700;
    text-decoration: none;
}

.news-detail {
    padding: 42px 0 80px;
}

.news-detail__container {
    max-width: 900px;
}

.news-detail__date {
    display: block;
    margin-bottom: 14px;
}

.news-detail__image {
    display: block;
    width: 100%;
    max-height: 520px;
    margin: 0 0 28px;
    border-radius: 8px;
    object-fit: cover;
}

.news-detail__announce {
    margin: 0 0 28px;
    color: #344154;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.news-detail__content {
    color: #1b2430;
    font-size: 17px;
    line-height: 1.72;
}

.news-detail__content img {
    max-width: 100%;
    height: auto;
}

.news-detail__back {
    display: inline-block;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .home-news {
        width: min(100% - 24px, 640px);
        margin: 36px 0;
    }

    .home-news__title {
        margin-left: 0;
    }

    .home-news__arrows {
        top: 220px;
    }

    .home-news__track {
        grid-auto-columns: minmax(310px, 86%);
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .news-container {
        width: min(100% - 24px, 1240px);
    }

    .home-news {
        width: calc(100vw - 24px);
    }

    .home-news__card {
        min-height: 360px;
        padding: 22px;
    }

    .home-news__image-link {
        height: 150px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-page__title,
    .news-detail__title {
        font-size: 28px;
    }
}
