@import "root.css";

.container {
    display: grid;
    justify-content: center;
    background: var(--background-bg);
    width: 100%;
    max-width: var(--max-widht);
    padding: 24px;
    border-radius: 24px;
}

#content {
    display: grid;
    gap: 150px;
}

img {
    background-color: var(--background-color-img);
}

.together img {
    background-color: var(--background-bg);
}

.header__switch img {
    background-color: var(--background-bg);
}

header {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 1fr;
}

.header__photo img {
    width: 160px;
    height: 160px;
    border-radius: 10px;
}

.header__about-contacts {
    display: grid;
    grid-template-columns: 1fr;
}

.header__contacts {
    display: grid;
    grid-template-columns: 1fr auto;
}

.header__contacts-tg-mail {
    display: flex;
    gap: 56px;
}

.header__about {
    margin-top: 120px;
    margin-bottom: 260px;
}

.works {
    display: grid;
    justify-content: center;
}

.work,
.space {
    margin-bottom: 160px;
}

.work__title {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 1fr;
}

.work__img {
    display: grid;
    justify-content: center;

    img {
        width: 100%;
        border-radius: 16px;
    }
}

.together {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-column-gap: 64px;
    grid-row-gap: 40px;
    width: 100%;
}

picture+picture {
    display: grid;
    justify-items: center;
    grid-gap: 64px;
}

.header__name p,
.header__contacts-telegram p,
.header__contacts-mail p {
    display: grid;
    grid-gap: 10px;
}



@media (max-width: 1024px) {

    .header__photo img {
        width: 120px;
        height: 120px;
    }

    .two-screen {
        display: none;
    }

    #content {
        gap: 50px;
    }

}



@media (max-width: 800px) {

    header {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .container {
        width: 360px;
        padding: 12px;
    }

    body {
        margin: 8px;
    }

    .header__switch {
        display: none;
    }

    .header__about {
        margin-top: 48px;
        margin-bottom: 80px;
    }

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

    .work,
    .space {
        margin-bottom: 32px;
    }

    .header__contacts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .header__photo img {
        width: 160px;
        height: 160px;
    }

    .work__img img {
        border-radius: 4px;
    }

    .header__contacts-tg-mail {
        display: flex;
        gap: 24px;
    }

    .header__photo-name {
        display: flex;
        gap: 16px;
    }

    h1 {
        font-size: clamp(30px, -0.429rem + 4.57vw, 56px);
        line-height: 110%;
        font-weight: 600;
    }

    #content {
        gap: 10px;
    }
}
