* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    background: #ffffff;
    color: #111111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    display: grid;

    grid-template-rows:
        82px
        minmax(0, 1fr)
        68px;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* Header */

.header {
    width: 100%;
    height: 82px;

    padding:
        0 clamp(
            28px,
            5vw,
            76px
        );

    background: #111111;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 100;
}

.logo {
    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 4.2px;

    user-select: none;
}


/* Hamburger */

.menu-button {
    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    display: flex;
    flex-direction: column;

    align-items: flex-end;
    justify-content: center;

    gap: 5px;

    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 1px;

    display: block;

    background: #ffffff;

    transform-origin: center;

    transition:
        transform 180ms ease,
        opacity 140ms ease;
}

.menu-button.active span:first-child {
    transform:
        translateY(6px)
        rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:last-child {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* Menu */

.site-menu {
    position: fixed;

    top: 89px;

    right: clamp(
        28px,
        5vw,
        76px
    );

    width: 220px;

    padding: 7px;

    background: #111111;

    border: 1px solid #2a2a2a;

    border-radius: 11px;

    box-shadow:
        0 16px 36px rgba(
            0,
            0,
            0,
            0.16
        );

    z-index: 200;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-7px)
        scale(0.985);

    transform-origin: top right;

    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.site-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

.site-menu a {
    display: block;

    padding:
        12px 13px;

    color: #ffffff;

    text-decoration: none;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.35;

    transition:
        background 140ms ease;
}

.site-menu a:hover {
    background: #1d1d1d;
}


/* Main */

.main {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: center;
}

.contact {
    width: min(
        calc(100% - 56px),
        1000px
    );

    padding:
        60px 0
        80px;
}

.contact-intro {
    width: min(
        100%,
        850px
    );

    margin: 0 auto;
}

.contact-intro h1 {
    color: #050505;

    font-size: clamp(
        60px,
        7.5vw,
        98px
    );

    font-weight: 800;

    line-height: 0.94;

    letter-spacing: 0.05px;
}

.contact-intro p {
    max-width: 490px;

    margin-top: 28px;

    color: #666666;

    font-size: 15px;

    line-height: 1.7;
}


/* Form */

.contact-form {
    width: min(
        100%,
        700px
    );

    margin:
        62px auto 0;

    display: flex;

    flex-direction: column;

    gap: 30px;
}

.field {
    width: 100%;
}

.field input,
.field textarea {
    width: 100%;

    padding:
        13px 0;

    border: 0;

    border-bottom:
        1px solid #d4d4d4;

    border-radius: 0;

    outline: none;

    background: transparent;

    color: #111111;

    font-family: inherit;

    font-size: 15px;

    line-height: 1.6;

    transition:
        border-color 160ms ease;
}

.field textarea {
    min-height: 125px;

    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9a9a9a;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: #111111;
}

.submit-button {
    width: fit-content;

    margin-top: 2px;

    padding:
        13px 20px;

    border: 0;

    border-radius: 24px;

    background: #111111;

    color: #ffffff;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 160ms ease;
}

.submit-button:hover {
    opacity: 0.78;
}

.submit-arrow {
    font-size: 16px;

    transition:
        transform 200ms cubic-bezier(
            0.2,
            0.8,
            0.2,
            1
        );
}

.submit-button:hover .submit-arrow {
    transform:
        translate(
            4px,
            -3px
        );
}


/* Footer */

.footer {
    width: 100%;
    height: 68px;

    padding:
        0 clamp(
            28px,
            5vw,
            76px
        );

    background: #111111;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer-status,
.footer-brand {
    color: #ffffff;

    font-size: 11px;

    line-height: 1.4;
}

.footer-status {
    font-weight: 400;
}

.footer-brand {
    font-weight: 700;

    letter-spacing: 0.9px;
}


/* Tablet */

@media (max-width: 900px) {

    .contact {
        width: min(
            calc(100% - 52px),
            820px
        );
    }

    .contact-intro h1 {
        font-size: clamp(
            54px,
            8vw,
            82px
        );
    }

}


/* Mobile */

@media (max-width: 700px) {

    body {
        grid-template-rows:
            68px
            minmax(0, 1fr)
            60px;
    }

    .header {
        height: 68px;

        padding:
            0 6%;
    }

    .logo {
        font-size: 13px;

        letter-spacing: 3.8px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
    }

    .menu-button span {
        width: 19px;
    }

    .site-menu {
        top: 74px;

        right: 6%;

        width: 195px;
    }

    .site-menu a {
        padding:
            11px 12px;

        font-size: 13px;
    }

    .contact {
        width: 88%;

        padding:
            55px 0
            65px;
    }

    .contact-intro {
        width: 100%;
    }

    .contact-intro h1 {
        font-size: clamp(
            44px,
            12.5vw,
            70px
        );

        line-height: 0.95;

        letter-spacing: 0;
    }

    .contact-intro p {
        max-width: 370px;

        margin-top: 22px;

        font-size: 13px;
    }

    .contact-form {
        width: 100%;

        margin-top: 48px;

        gap: 27px;
    }

    .field input,
    .field textarea {
        font-size: 13px;
    }

    .field textarea {
        min-height: 115px;
    }

    .submit-button {
        font-size: 12px;
    }

    .footer {
        height: 60px;

        padding:
            0 6%;
    }

    .footer-status,
    .footer-brand {
        font-size: 9px;
    }

}


/* Small phones */

@media (max-width: 420px) {

    body {
        grid-template-rows:
            66px
            minmax(0, 1fr)
            56px;
    }

    .header {
        height: 66px;
    }

    .contact {
        width: 88%;

        padding:
            46px 0
            55px;
    }

    .contact-intro h1 {
        font-size: 41px;

        line-height: 0.96;
    }

    .contact-intro p {
        max-width: 320px;

        margin-top: 20px;

        font-size: 12px;
    }

    .contact-form {
        margin-top: 42px;

        gap: 24px;
    }

    .field input,
    .field textarea {
        font-size: 12px;
    }

    .field textarea {
        min-height: 105px;
    }

    .site-menu {
        top: 71px;

        width: 180px;
    }

    .footer {
        height: 56px;
    }

    .footer-status,
    .footer-brand {
        font-size: 8px;
    }

}