:root {
    --background-color: #ffffff;
    --surface-color: #f3f3f3;
    --surface-secondary-color: #f5f5f5;
    --card-color: #fdfdfd;
    --text-color: #060c3b;
    --primary-color: #3c69f0;
    --border-color: #dfdfdf;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 500;
}

html.__menu-open,
body.__menu-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
dl,
dd,
ol,
ul {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

#body-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    width: 100%;
}

main {
    width: 100%;
}

.grid-container {
    position: relative;
    display: grid;
    width: min(940px, calc(100% - 48px));
    margin: 0 auto;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
}

.button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover,
.button:focus-visible {
    background: #2857df;
}

h1,
h2,
h3 {
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 1.1;
}

.header-section {
    position: relative;
    z-index: 20;
    height: 90px;
    background: #ffffff;
}

.header-container {
    height: 100%;
    align-items: center;
}

.header-logo-link {
    grid-column: 1 / 4;
    width: 205px;
}

.header-logo-image {
    width: 205px;
    height: auto;
}

.menu-container {
    display: flex;
    grid-column: 6 / 11;
    width: 390px;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    white-space: nowrap;
}

.menu-link {
    font-size: 11px;
    line-height: 1.1;
    text-decoration: none;
}

.menu-link:hover,
.menu-link:focus-visible {
    color: var(--primary-color);
}

.header-contact-button {
    grid-column: 11 / 13;
    justify-self: end;
    width: 91px;
    margin-right: 5px;
}

@media (min-width: 880px) and (max-width: 939px) {
    .menu-container {
        width: max-content;
        gap: clamp(17px, calc(17.5vw - 137px), 24px);
    }
}

.footer-section {
    min-height: 146px;
    background: var(--primary-color);
    box-shadow: 10px 0 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.footer-container {
    min-height: 146px;
    align-items: start;
    padding-top: 24px;
}

.footer-links {
    display: flex;
    grid-column: 1 / 4;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    display: flex;
    width: max-content;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #dfdfdf;
    font-size: 11px;
    line-height: 1.25;
    text-underline-offset: 2px;
}

.footer-links img {
    width: 14px;
    height: 8px;
    transform: rotate(90deg);
}

.footer-brand {
    display: flex;
    grid-column: 8 / 13;
    width: 421px;
    height: 98px;
    align-items: flex-end;
    justify-self: end;
    justify-content: space-between;
    flex-direction: column;
    text-align: right;
}

.footer-brand p {
    width: 100%;
    color: #dfdfdf;
    font-size: 11px;
    line-height: 1.25;
}

.footer-brand img {
    width: 205px;
}

.__mobile-only {
    display: none !important;
}

@media (max-width: 879px) {
    .__desktop-only {
        display: none !important;
    }

    .__mobile-only {
        display: block !important;
    }

    body {
        font-size: 9px;
    }

    .grid-container {
        width: calc(100% - 48px);
        column-gap: 12px;
    }

    h2 {
        font-size: 20px;
    }

    .header-section {
        height: 60px;
    }

    .header-logo-link {
        grid-column: 1 / 8;
        width: 154px;
    }

    .header-logo-image {
        width: 154px;
    }

    .footer-section {
        min-height: 294px;
    }

    .footer-container {
        display: flex;
        min-height: 294px;
        flex-direction: column;
        justify-content: space-between;
        padding: 22px 0 26px;
    }

    .footer-links {
        gap: 14px;
    }

    .footer-links a {
        gap: 20px;
        color: #ffffff;
        font-size: 9px;
    }

    .footer-brand {
        width: 100%;
        height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }

    .footer-brand p {
        width: auto;
        font-size: 9px;
    }

    .footer-brand img {
        width: min(272px, 100%);
    }
}
