* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #f3f4f2;
    color: #202326;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
textarea {
    font: inherit
}

.site-header {
    height: 86px;
    padding: 0 4.7%;
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    color: #fff;
    transition: .3s
}

.site-header.scrolled {
    position: fixed;
    background: #f8f8f8;
    box-shadow: 0 4px 20px #0003;
}

.brand {
    display: flex;
    width: 150px;
}

.brand img {
    width: 100%;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

.site-header.scrolled .brand img{
    -webkit-filter: brightness(1) invert(0);
    filter: brightness(1) invert(0);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    flex: 1;
}

.main-nav a {
    display: block;
    position: relative;
    height: 86px;
    padding-top: 33px;
    color: #ffffff;
    white-space: nowrap;
}

.site-header.scrolled .main-nav a{
    color: #000000;
}

.main-nav a.active:after, .main-nav a:hover:after {
    content: '';
    position: absolute;
    height: 2px;
    background: #962023;
    left: 0;
    right: 0;
    bottom: 25px;
}

.search-form {
    width: 220px;
    height: 39px;
    border: 1px solid #ffffff60;
    display: flex;
}

.search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    padding: 0 12px;
    font-size: 12px;
}

.search-form input::placeholder {
    color: #fff9;
}

.search-form button {
    width: 40px;
    border: 0;
    background: none;
    color: white;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.site-header.scrolled .search-form{
    border: 1px solid #f4f4f4;
}
.site-header.scrolled .search-form input {
    background-color: #ffffff;
}

.site-header.scrolled .search-form button {
    color: #f5f5f5;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
}

footer {
    background: #171b1d;
    color: #c4c9c8;
    padding: 60px 4.7% 25px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 6%;
    font-size: 12px;
}

footer .brand-mark {
    color: #fff;
}

footer p {
    max-width: 280px;
    line-height: 1.8;
    color: #8e9696;
}

footer h4 {
    font-size: 13px;
    color: white;
    margin: 0 0 17px;
}

footer a {
    display: block;
    margin: 0 0 12px;
    color: #929a99;
}

.copyright {
    align-self: end;
    color: #747b7b;
    line-height: 1.8;
}

.reveal {
    animation: rise .9s ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media(max-width:900px) {
    .site-header {
        height: 70px;
        padding: 0 5%;
    }

    .brand {
        width: auto;
        flex: 1;
    }

    .main-nav {
        position: absolute;
        display: none;
        top: 70px;
        left: 0;
        right: 0;
        background: #161b1d;
        padding: 10px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        height: auto;
        padding: 15px 0;
        border-bottom: 1px solid #ffffff1b;
    }

    .main-nav a.active:after, .main-nav a:hover:after {
        display: none;
    }

    .search-form {
        width: 170px;
        margin-right: 16px
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        background: #fff;
        width: 24px;
        height: 2px;
    }

    footer {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media(max-width:520px) {
    .search-form {
        display: none;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .copyright {
        margin-top: 10px;
    }
}