@font-face {
    font-family: "Montserrat";
    src: url('../fonts/Montserrat-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url('../fonts/Montserrat-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Display";
    src: url('../fonts/FontsFree-Net-SFProDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Display";
    src: url('../fonts/FontsFree-Net-SFProDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "SF Compact Text";
    src: url('../fonts/FontsFree-Net-SFCompactText-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-dark: #212a34;
    --main-light: #6e7884;
    --white: #fff;
    --background-light: #f0f2f7;
    --background-grey: #e0e3e9;
    --light-grey: #bfc8cf;
    --accent-color: #356197;

    --font-family: "Montserrat", sans-serif;
    --second-family: "SF Pro Display", sans-serif;
    --third-family: "SF Compact Text", sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #F0F2F7;
}

/*  For  */

.for-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: 90px;
    margin-bottom: 40px;
}

.for-title {
    font-weight: 700;
    font-size: clamp(32px, 6.11vw, 88px);
    line-height: 110%;
    letter-spacing: 0em;
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.for-descr {
    margin: 0 auto;
    max-width: 895px;
    margin-bottom: 38px;
}

.for-descr p {
    font-weight: 700;
    font-size: clamp(16px, 1.56vw, 22px);
    line-height: 110%;
    letter-spacing: 0.01em;
    color: #1d1d1f;
}

.for-time {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.for-img {
    max-width: 1260px;
}

.for-img img {
    width: 100%;
}

/*  Text  */

.text-container {
    max-width: 1084px;
    margin: 0 auto;
    padding-inline: 94px;
    margin-bottom: 135px;
}

.text-title {
    font-weight: 700;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 110%;
    letter-spacing: 0.01em;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.text-descr-1 p {
    font-weight: 500;
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.text-descr-1 p:not(:last-child) {
    margin-bottom: 15px;
}

.text-descr-1 {
    margin-bottom: 40px;
}

.text-title-2 {
    font-weight: 700;
    font-size: clamp(18px, 1.67vw, 24px);
    line-height: 110%;
    letter-spacing: 0.01em;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.text-descr-2 p {
    font-weight: 500;
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.text-descr-2 {
    margin-bottom: 20px;
}

.text-list {
    padding-left: 20px;
    margin-left: 40px;
    margin-bottom: 20px;
}

.text-list-item {
    list-style-type: disc;
    font-weight: 500;
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.text-descr-3 p {
    font-weight: 500;
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.text-descr-3 p:not(:last-child) {
    margin-bottom: 15px;
}

.text-descr-3 p .text-link {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--accent-color);
}

.text-descr-3 {
    margin-bottom: 40px;
}

.text-img img {
    height: auto;
    margin-bottom: 10px;
}

.text-img {
    margin-bottom: 40px;
}

.text-subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #1d1d1f;
}

.text-descr-4 p {
    font-weight: 500;
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.text-descr-4 p:not(:last-child) {
    margin-bottom: 15px;
}

.text-descr-4 {
    margin-bottom: 40px;
}

.text-button-col {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
}

.text-btn-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    width: 296px;
    height: 38px;
}

.text-span {
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--accent-color);
}

.text-btn-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    width: 169px;
    height: 38px;
}

/*  News  */

.news {
    overflow: hidden;
}

.news-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 90px;
    margin-bottom: 95px;
}

.news-title {
    font-weight: 700;
    font-size: clamp(22px, 2.5vw, 36px);
    line-height: 100%;
    letter-spacing: 0em;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.news-content {
    overflow: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    margin-right: calc(-9vw);
}

.news-cards {
    display: flex;
    column-gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
    max-width: 336px;
    min-width: 336px;
    width: 100%;
    background-color: var(--white);
    border-radius: 23px;
}

.news-img {
    max-width: 336px;
    width: 100%;
    border-radius: 23px 23px 0 0;
}

.news-card-col {
    padding: 20px 23px;
}

.news-card-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.news-descr {
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.news-col-cont {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.news-span {
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.news-button-content {
    display: flex;
    justify-content: end;
    column-gap: 15px;
}

.prev {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: var(--light-grey);
    border-radius: 20px;
}

.next {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    background: var(--main-light);
}

#prev {
    left: 0;
}

#next {
    right: 0;
}

@media (max-width:1439px) {
    .news-container {
        max-width: 1354px;
        padding: 0 47px;
        margin-bottom: 71px;
    }

    .news-button-content {
        display: none;
    }

    .news-content {
        margin-right: calc(-9vw + 5vw);
    }

    .text-container {
        margin-bottom: 40px;
    }

    .text-button-col {
        flex-direction: column;
        row-gap: 20px;
    }
}

@media (max-width:800px) {
    .news-content {
        margin-right: calc(-9vw);
    }

    .for-container {
        max-width: unset;
        padding: unset;
    }

    .for-content {
        margin-inline: 27px;
    }

    .text-container {
        max-width: 950px;
        padding-inline: 27px;
    }

    .text-button-col {
        row-gap: 10px;
    }
}

@media (max-width:470px) {
    .for-title {
        text-align: start;
    }
}

@media (max-width:430px) {
    .news-card {
        min-width: 250px;
    }

    .text-btn-1 {
        width: 250px;
    }

    .text-span {
        font-size: 13px;
    }
}