@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;
}

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

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

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

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

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

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

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

.space {
    margin-top: 40px;
}



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

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

.work__img {
    display: grid;
    justify-content: center;
    max-width: var(--max-widht);
}

.work__img img {
    width: 100%;
    border-radius: 10px;
    margin-top: 24px;
    margin-bottom: 64px;
}

p {
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    max-width: 400px;
    margin: 24px 0;
}

.header__name p,
.header__contacts-telegram p,
.header__contacts-mail p {
    display: grid;
    gap: 10px;
    font-size: 24px;
    line-height: 110%;
    margin: 0;
}

ul {
    list-style-position: inside;
}

ul li {
    list-style-type: decimal;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    max-width: 400px;
    margin-bottom: 16px;
}

.left {
    display: grid;
    justify-content: center;
    justify-self: center;

    img {
        align-items: center;
        max-width: 100%;
    }
}

.right {
    max-width: 600px;
}

.er-floor {
    margin-bottom: 88px;
}

.not-found {
    display: flex;
    justify-content: center;
    text-align: center;
    min-width: 100%;
    margin: 0;

    a {
        margin: 24px;
    }

    @media (max-width: 800px) {
        a {
            margin: 24px 0 32px;
        }
    }
}

.not-found_big {
    margin-top: 24px;
    font-size: 48px;
}





@media (max-width: 860px) {

    .header__contacts-tg-mail {
        gap: 32px;
    }

}

@media (max-width: 800px) {

    header,
    .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: 32px;
    }

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

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

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

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

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

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

    .work__img img {
        border-radius: 4px;
        margin-top: 16px;
        margin-bottom: 32px;
    }

    p {
        font-size: 24px;
        max-width: 380px;
    }

    ul li {
        list-style-type: decimal;
        font-size: 20px;
        max-width: 380px;
    }

    .header__name p,
    .header__contacts-telegram p,
    .header__contacts-mail p {
        display: grid;
        gap: 10px;
        font-size: 24px;
        line-height: 110%;
        margin: 0;
    }

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

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