* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    background: #fff;
}

.site-header {
    height: 164px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: relative;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #31465d;
}
.brand-mark {
    width: 66px;
    height: 72px;
    position: relative;
    display: inline-block;
    margin-right: 10px;
}
.sq { position: absolute; width: 30px; height: 30px; border-radius: 2px; }
.sq-a { left: 20px; top: 0; background: #244d79; }
.sq-b { left: 0; top: 18px; background: #3e6fa7; }
.sq-c { left: 20px; top: 31px; background: #aaa; opacity: .8; }
.sq-d { left: 37px; top: 23px; background: #2e4560; opacity: .75; }

.brand-text > span {
    display: block;
    font-size: 43px;
    line-height: 1;
    letter-spacing: -1.5px;
}
.brand-text > span strong { color: #274f79; }
.brand-text small {
    display: block;
    margin-top: 5px;
    font-size: 17px;
    letter-spacing: .2px;
}

.menu-button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    padding: 7px 4px;
    cursor: pointer;
}
.menu-button span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #222;
}

.menu {
    display: none;
    position: absolute;
    top: 116px;
    right: 22px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    min-width: 150px;
}
.menu.open { display: block; }
.menu a {
    display: block;
    padding: 13px 18px;
    color: #31465d;
    text-decoration: none;
}
.menu a:hover, .menu a.active { background: #eee; }

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #4c78b5;
}
.home-grid article {
    min-height: 187px;
    padding: 34px 16.4%;
    background: #4c78b5;
}
.home-grid article:nth-child(3),
.home-grid article:nth-child(4) { background: #4e7cbb; }
.home-grid h2 {
    margin: 0 0 7px;
    font-size: 21px;
    line-height: 1.1;
}
.home-grid p {
    margin: 0 0 11px;
    max-width: 540px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    line-height: 1.05;
}
.home-grid a { color: #fff; }

.site-footer {
    min-height: 70px;
    background: #3e6da9;
    padding: 25px 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}

.contact-page {
    min-height: 434px;
    background: #fff;
    color: #111;
    padding: 35px 20px 36px;
}
.contact-wrap {
    width: min(650px, 100%);
    margin: 0 auto;
}
.contact-wrap h1 {
    margin: 0 0 7px;
    color: #5b84bd;
    font-weight: 400;
    font-size: 21px;
}
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    margin-bottom: 8px;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    border: 1px solid #aaa;
    padding: 6px;
    font: 14px Arial, sans-serif;
    background: #fff;
}
input[type="text"], input[type="email"] { height: 25px; }
textarea { height: 255px; resize: vertical; }
.consent {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    margin: 7px 0 10px;
    font-size: 11px;
}
.consent input { margin: 1px 0 0; }
.send-button {
    border: 0;
    background: #4c78b5;
    color: #fff;
    padding: 7px 14px;
    cursor: pointer;
}
.notice {
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.notice.success { background: #e5f4e5; color: #285b28; }
.notice.error { background: #f8e5e5; color: #7a2222; }

@media (max-width: 700px) {
    .site-header { height: 100px; padding: 0 14px; }
    .brand-mark { transform: scale(.72); transform-origin: left center; width: 50px; margin-right: 0; }
    .brand-text > span { font-size: 30px; }
    .brand-text small { font-size: 13px; }
    .menu { top: 72px; right: 14px; }

    .home-grid { grid-template-columns: 1fr; }
    .home-grid article { min-height: auto; padding: 28px 9%; }
    .form-columns { grid-template-columns: 1fr; }
    textarea { height: 180px; }
}
