main {
    min-height: fit-content;
}

.divider1 {
    margin-bottom: 0px;
    position: relative;
    top: -42px;
}

.divider2{
    margin-top: 0px;
} 



header .header-wrapper {

    background: linear-gradient(90deg, #0A0B0F 7%, transparent 20%, transparent 80%, #0A0B0F 93%), url('assets3/camera.png'), url('assets/smoke.svg'), url("assets/div-bar.svg"), url("assets/form-left-curtain.svg"), url("assets/form-right-curtain.svg"), url("assets3/red.png"), #12141B;
    background-position: center, top left calc(25% - 100px), center, top -30px center, right calc(50% - 126px) center, right calc(50% - 216px) center, top 0px right calc(50% - 166px);
    background-size: auto, auto, cover, auto, cover, cover, auto;
    background-repeat: no-repeat;
    width: 100%;

    nav {
        width: 471px;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 64px 16px;
    }

    h1 {
        color: var(--White, #F8F8FF);
        font-family: Unbounded;
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 33.6px */
        text-transform: uppercase;

        .bold-title {
            font-weight: 700;
        }
    }

    a {
        display: flex;
        padding: 12px 24px;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(18, 20, 27, 0.25);
        background: rgba(248, 248, 255, 0.10);
        border-image: linear-gradient(0deg, #F8F8FF, transparent 75%) 1;
    }

    .form-link:hover {
        cursor: pointer;
        background-color: #F8F8FF;
        color: #12141B;
    }
}

.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 20% auto;
    margin-top: 164px;

    h1 {
        color: var(--White, #F8F8FF);

        .bold-title {
            color: var(--Violet, #A370FF);
        }
    }

    p {
        color: var(--White, #F8F8FF);
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        opacity: 0.5;
    }

    .director {
        flex-basis: 50%;
        width: 50%;
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .team-wrapper {
        column-gap: 24px;
        row-gap: 24px;
        flex-direction: row;

        .team-block {
            flex-basis: 50%;
            width: 50%;
            padding: 0;
            height: fit-content;

            p {
                margin-bottom: 16px;
            }
        }
    }

    .director-photo {
        border-top: 1px solid rgba(217, 217, 217, 0.25);
        padding-top: 48px;
        margin-top: 48px;
        background: none;
        width: 100%;
        display: grid;
        grid-template-columns: 60px auto;
        grid-template-rows: auto auto;
        height: fit-content;

        .bold-title {
            color: var(--White, #F8F8FF);
        }

        h1, p {
            margin: 0;
        }

        img {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
            margin-top: 6px;
        }
    }
}

footer .contacts .footer-wrapper.tops {

    .director-contacts {
        height: calc(100% - 40px);
    }

    .dir-cont-wrapper {
        height: 100%;
        flex-direction: column;
        justify-content: space-between;

        .links {
            display: flex;
            height: fit-content;

            .vk {
                width: 16px;
                height: 16px;
                background-image: url("assets3/vk.png");
                background-repeat: no-repeat;
                padding: 12px;
            }

            .vk:hover {
                background-image: url("assets/vkhover.png");
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    header .header-wrapper nav {
        display: flex;
        height: 105px;
        position: relative;
        top: calc(57% - 5px);
        left: calc(50% - 100px);
        transform: translate(-50%, -50%);

        a {
            width: fit-content;
        }
    }

    main .team {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 100px;

        .director {
            width: 100%;
            margin-bottom: 32px;
        }

        .director-photo {
            width: 100%;
            height: auto;
        }
    }
}

@media (max-width: 767px) {

    header .header-wrapper {
        background: linear-gradient(90deg, #0A0B0F 7%, transparent 20%, transparent 80%, #0A0B0F 93%), url("assets/div-bar.svg"), url("assets3/red.png"), #12141B;
        background-position: center, top -30px center, top 0px center;
        background-size: auto, auto, auto;
        background-repeat: no-repeat;
    }

    header .header-wrapper nav {
        display: flex;
        height: 105px;
        position: absolute;
        top: 60%;
        left: 75%;
        transform: translateX(-50%);
        gap: 40px 8px;

        a {
            width: fit-content;
        }
    }

    main .team {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 100px;

        .director {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            width: 100%;
            margin-bottom: 32px;
        }

        .director-photo {
            width: 100%;
            height: auto;
            grid-column: 1 / 2;
            grid-row: 3 / 4;
        }

        margin-bottom: 64px;
    }
}