@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@200;300;400;500;600&display=swap');

:root {
    --text: #121212;
    --muted: #c7c7c7;
    --accent: #b40000;
    --card: #E6E6E6;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0
}

body {
    font-family: Geologica, Arial, sans-serif;
    color: var(--text);
    background: #fff
}

img {
    display: block;

    height: auto
}

.container {
    width: 90%;
    margin: 0 auto;

}

.about__grid {
    display: grid;
    align-items: start;
    gap: 1.5vw;
    grid-template-columns: 1fr 1fr;
}

.about__image img {
    width: 100%;
    height: 34vw;
    object-fit: cover;
}

.about__text {
    font-size: 1.25vw;
    font-weight: 300;
    line-height: 1.35
}

.about__text p {
    margin: 0 0 10px
}

.about__link {
    display: inline-block;
    margin-top: 1.25vw;
    text-decoration: underline;
    color: inherit;
    font-size: 1vw;
    border: none;
    background: none;
}

/* Slider (только изображение) */
.work_slider {
    position: relative;
    width: 51vw;
}

.slider__viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 34.1vw;
}

.slider__track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform .35s ease;
    will-change: transform
}

.slide {
    min-width: 980px;
    height: 100%;
    flex: 0 0 980px;
    position: relative;
    overflow: hidden;
}

.slide>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide>img {
    width: 100%;
    height: auto;

}

/* Стрелки — узкие вертикальные плашки поверх фото, как на дизайне */
.work_slider .nav {
    height: 34vw;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.6vw;
    background: rgba(0, 0, 0, .2);
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work_slider .nav.prev {
    left: 0
}

.work_slider .nav.next {
    right: 0
}

.work_slider .nav::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(225deg)
}

.work_slider .nav.next::after {
    transform: rotate(45deg)
}

.work_slider .nav:hover {
    background: rgba(0, 0, 0, .42)
}

.work_slider .nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px
}

.slider__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 10px
}

.slider__dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: var(--muted);
    cursor: pointer;
    aspect-ratio: 1/1;
}

.slider__dots .dot.is_active {
    width: 15px;
    height: 15px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 0, 0, .12);
    aspect-ratio: 1/1;
}


.projects {
    margin: 2.6vw auto 5.2vw;
}

.projects__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 0.5vw;
    column-gap: 2.6vw;
    margin-top: 2.6vw;
    width: 100%;
}

.project__item {
    display: flex;
    align-items: center;
    background: var(--card);
    padding: 1.6vw;
    flex-direction: column;
    height: 100%;
}

.project__logo {
    height: 12vw;
    display: flex;
    width: 100%;
}

.project__logo img {
    width: auto;
    height: 8vw;
    margin: auto;
    object-fit: contain;
}

.project:nth-of-type(4) .project__logo img, .project:nth-of-type(2) .project__logo img
{
    height: 6vw;
}


.project__text {
    font-size: 0.95vw;
    text-align: center;
    font-weight: 300;
}

.project__text p
{
    margin: 0;
    text-decoration: none;
    color: #121212;
}
.project__item
{
    text-decoration: none;
}

@media (min-width:360px) and (max-width:767px) {
    .work_slider .nav {
        display: none;
    }

    .container {
        padding: 0
    }



    .about__grid {
        grid-template-columns: 1fr;
        gap: 3.9vw;
    }

    .about__image img {
        height: 59vw;
    }

    .work_slider {
        width: 100%;
        margin: 0px 0 3vw 0;
    }

    .slider__viewport {
        width: 100%;
        height: auto;
        aspect-ratio: 980 / 654;
    }

    .slide {
        min-width: 100%;
        flex: 0 0 100%;
        height: auto;
        aspect-ratio: 980 / 654;
    }

    .work_slider .nav.prev {
        left: 4px
    }

    .work_slider .nav.next {
        right: 4px
    }

    .slider__dots {
        margin-top: 8px
    }

    /* Текст */
    .about__text {
        font-size: 4.3vw;
        line-height: 1.35;
    }

    .about__text p {
        margin: 0 0 8px;
    }


    .projects {
        margin-top: 16vw;
        margin-bottom: 16vw;
    }

    .projects__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects__list .project {
        margin: 0 0 12px 0;
    }

    .projects__list .project:nth-child(3) {
        margin-top: -2px;
    }

    .project__item {
        padding: 5.7vw 5.7vw;
        gap: 5.6vw;
        height: auto;
    }

    .project__text {
        font-size: 3.6vw;
        line-height: 105%;
        display: none;
    }
    .project:nth-of-type(3)
    {
        order: -1;
    }

    .project__logo img {
        width: auto;
        height: 36vw !important;
    }

    .project__logo {
        flex: 0 0 21vw;
        height: 100%;
    }
}

@media (min-width:768px) and (max-width:1024px) {
    .container {
        width: calc(100% - 40px);
    }

    .work_slider .nav {
        grid-template-columns: 1fr;
    }

    .about__image img {
        height: 63vw;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.6vw;
    }

    .work_slider {
        width: 100%;
        margin: 0 0 16px 0;
    }

    .slider__viewport {
        width: 100%;
        height: auto;
        aspect-ratio: 980 / 654;
    }

    .slide {
        min-width: 100%;
        flex: 0 0 100%;
        height: auto;
        aspect-ratio: 980 / 654;
    }

    .about__text {
        font-size: 2.4vw;
        line-height: 1.4;
    }

    .about__text p {
        margin: 0 0 1.3vw;
    }


    .projects {
        margin-top: 10.5vw;
        margin-bottom: 10.5vw;
    }

    .projects__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2.7vw;
        row-gap: 1.3vw;
        margin: 0;
        padding: 0;
        list-style: none;
        margin-top: 4vw;
    }

    .project__logo img {
        height: 25vw;
        width: auto;
    }

    .project:nth-of-type(4) .project__logo img, .project:nth-of-type(2) .project__logo img
    {
        height: 17vw;
    }

    .project__logo {
        flex: 0 0 9.2vw;
        height: 100%;
    }

    .project {
        margin: 0;
    }

    .project__item {
        gap: 2vw;
        display: grid;
        grid-template-rows: 1fr 0.5fr;
    }

    .project__text {
        font-size: 2.1vw;
        line-height: 105%;
        align-self: self-start;
    }



    /* На планшете точки/стрелки немного ближе к краям */
    .work_slider .nav.prev {
        left: 6px
    }

    .work_slider .nav.next {
        right: 6px
    }

    .slider__dots {
        margin-top: 10px
    }
}