@font-face {
    font-family: "TT-Ricordi-Allegria-Trial";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== ОБЩИЕ СТИЛИ ===== */

* {
    margin: 0;
    padding: 0;
   box-sizing: border-box;
}


body {
    background-color: #353432;
    color: #f3eee6;
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
     width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 80px, 1720px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1440px) {
    .container {
        width: min(100% - 64px, 1720px);
    }
}

@media (max-width: 1024px) {
    .container {
        width: min(100% - 48px, 1720px);
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, 1720px);
    }
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Cтатьи */

.articles {
    margin-top: 30px;
}

.articles__box {
    position: relative;
    padding: 28px 18px 28px;
    border: 1px solid rgba(243, 238, 230, 0.25);
    border-top: none;
    border-left: none;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    margin-bottom: 50px;
}



.articles__head {
    margin-bottom: 24px;
}

.articles__label {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.85);
}

.articles__title {
    font-family: "TT-Ricordi-Allegria-Trial", serif;
    font-size: 58px;
    line-height: 0.98;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

/* рамка по логике кейса */
.articles__frame {
    position: absolute;
    top: -88px;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
}

.articles__frame-line {
    position: absolute;
    display: block;
    background: rgba(243, 238, 230, 0.25);
}

.articles__frame-line--left {
    left: 1px;
    top: 208px;
    width: 369px;
    height: 1px;
}

.articles__frame-line--diag {
    left: 370px;
    top: 208px;
    width: 153px;
    height: 1px;
    transform: rotate(-50deg);
    transform-origin: left center;
}

.articles__frame-line--top {
    left: 468px;
    right: 4px;
    top: 90px;
    height: 1px;
}

.articles__frame-line--right {
    left: 1px;
    right: 0;
    top: 211px;
    width: 1px;
    height: 500px;
}

.articles__slider {
    position: static;
}

.articles__viewport {
    overflow: hidden;
    width: 100%;
    padding: 0 38px;
}

.articles__track {
    display: flex;
    gap: 33px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.article-card {
    position: relative;
    flex: 0 0 calc((100% - 60px) / 3);
}

.article-card__image {
    width: 99%;
    aspect-ratio: 1.1 / 0.97;
    object-fit: cover;
    filter: grayscale(100%);
    display: block;
}

.article-card__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    padding: 16px 14px;
    background: #353432;
    color: #f3eee6;
    border-top-left-radius: 34px;
    border-top-right-radius: 34px;
    font-family: "TT-Ricordi-Allegria-Trial", serif;
    font-size: 22px;
    line-height: 1.06;
    text-transform: uppercase;
    text-align: center;
}

.articles__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles__nav img {
    display: block;
    width: 71%;
    height: 71%;
    object-fit: contain;
}

.articles__nav--prev {
    left: 10px;
}

.articles__nav--next {
    right: 4px;
}

.articles__bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.articles__all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px 8px 16px;
    border: 1px solid rgba(243, 238, 230, 0.5);
    border-radius: 8px;
    color: #f3eee6;
}

.articles__all-icon {
    width: 28px;
    height: 28px;
    border-left: 1px solid rgba(243, 238, 230, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== LAPTOP ===== */

@media (max-width: 1440px) {
    .articles__title {
        font-size: 50px;
    }

    .articles__frame-line--left {
        left: 2px;
        width: 316px;
        top: 198px;
    }

    .articles__frame-line--diag {
        left: 318px;
        top: 198px;
        width: 145px;
    }

    .articles__frame-line--top {
        left: 410px;
        top: 88px;
    }

    .articles__frame-line--right {
        top: 181px;
    }

    .article-card__caption {
        font-size: 18px;
    }
}

/* ===== TABLET ===== */

@media (max-width: 1024px) {
    .articles {
        margin-top: 24px;
    }

    .articles__box {
        padding: 22px 18px 18px;
    }

    .articles__label {
        font-size: 16px;
    }

    .articles__title {
        font-size: 44px;
    }

    .articles__frame-line--left {
        left: 1px;
        top: 191px;
        width: 285px;
    }

    .articles__frame-line--diag {
        left: 286px;
        top: 191px;
        width: 135px;
    }

    .articles__frame-line--top {
        left: 373px;
        top: 88px;
        right: 6px;
    }

    .articles__frame-line--right {
        top: 193px;
    }

    .article-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }

    .article-card__caption {
        font-size: 16px;
        left: 12px;
        right: 12px;
        padding: 14px 12px;
    }

    .articles__nav--prev {
        left: -6px;
    }

    .articles__nav--next {
        right: -6px;
    }
}

/* ===== MOBILE\TABLET ===== */

@media (max-width: 767px) {
    .articles {
        margin-top: 20px;
    }

    .articles__box {
        padding: 16px;
        border-radius: 10px;
    }

    .articles__label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .articles__title {
        font-size: 24px;
        line-height: 1.04;
    }

    .articles__frame-line--left {
        left: 1px;
        top: 159px;
        width: 150px;
    }

    .articles__frame-line--diag {
        left: 151px;
        top: 159px;
        width: 91px;
    }

    .articles__frame-line--top {
        left: 210px;
        top: 89px;
        right: 3px;
    }

    .articles__frame-line--right {
        top: 160px;
    }

    .article-card {
        flex: 0 0 100%;
    }

    .article-card__caption {
        font-size: 14px;
        line-height: 1.15;
        left: 10px;
        right: 10px;
        padding: 12px 10px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .articles__nav {
        width: 36px;
        height: 36px;
    }

    .articles__nav--prev {
        left: -2px;
    }

    .articles__nav--next {
        right: -2px;
    }

    .articles__bottom {
        margin-top: 14px;
    }

    .articles__all {
        gap: 10px;
        padding: 8px 10px 8px 14px;
        font-size: 14px;
    }

    .articles__all-icon {
        width: 24px;
        height: 24px;
    }

    .articles__viewport {
    padding: 0 30px;
}
}

/* ===== SMALL MOBILE ===== */

@media (max-width: 375px) {
    .articles__title {
        font-size: 24px;
    }

    .articles__frame-line--diag {
        transform: rotate(-51deg);
    }

    .articles__frame-line--top {
        left: 208px;
    }
}