:root {
    --blue: #233e66;
    --blue-dark: #14263f;
    --blue-soft: #eff4f9;
    --green: #77a842;
    --gold: #d2a33a;
    --ink: #24303f;
    --muted: #647286;
    --line: #dbe3ec;
    --white: #fff;
    --shadow: 0 18px 36px rgba(20, 38, 63, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    background: #eef2f6 url("../images/page-bg.jpg") center top / 980px auto fixed;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topline {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, .9);
    font: 13px/1.2 Arial, sans-serif;
}

.top-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
}

.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--green);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 94px;
}

.brand {
    display: inline-grid;
    color: var(--blue-dark);
    letter-spacing: .01em;
}

.brand:hover {
    color: var(--blue-dark);
}

.brand-main {
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: .92;
    font-weight: 700;
}

.brand-sub {
    color: var(--green);
    font: 700 17px/1 Arial, sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-top: 7px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    font: 700 14px/1 Arial, sans-serif;
    text-transform: uppercase;
}

.main-nav a {
    padding: 15px 12px;
    color: var(--blue-dark);
    border-radius: 2px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--green);
    color: var(--white);
}

.hero {
    min-height: 390px;
    background-position: center;
    background-size: cover;
    display: grid;
    align-items: center;
    color: var(--white);
}

.hero-content {
    padding: 60px 0;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    color: var(--gold);
    font: 700 13px/1 Arial, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.hero p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.35;
}

.page-shell {
    background: rgba(255, 255, 255, .96);
    margin-top: 34px;
    margin-bottom: 46px;
    padding: 34px;
    box-shadow: var(--shadow);
}

h2,
h3,
h4 {
    color: var(--blue-dark);
    line-height: 1.18;
}

h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 0 0 14px;
}

h3 {
    font-size: 23px;
    margin: 0 0 9px;
}

p {
    margin: 0 0 16px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.intro-grid article,
.card-grid article,
.feature-list article,
.timeline div {
    background: var(--blue-soft);
    border-top: 4px solid var(--green);
    padding: 22px;
}

.intro-grid h2 {
    font-size: 28px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 34px;
}

.split-section img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 10px 24px rgba(20, 38, 63, .16);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    background: var(--green);
    color: var(--white);
    border-radius: 2px;
    font: 700 13px/1 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.button:hover {
    background: var(--blue);
    color: var(--white);
}

.home-links,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.home-links a {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    background: var(--blue-dark);
}

.home-links img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    opacity: .8;
    transition: transform .22s ease, opacity .22s ease;
}

.home-links span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .42);
}

.home-links a:hover img {
    transform: scale(1.035);
    opacity: .95;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.timeline strong {
    display: block;
    color: var(--green);
    font: 800 30px/1 Arial, sans-serif;
    margin-bottom: 10px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.not-found {
    text-align: center;
    padding: 40px 0;
}

.site-footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 42px 0;
}

.site-footer h2 {
    color: var(--white);
    font: 700 21px/1.2 Georgia, "Times New Roman", serif;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin: 0 0 7px;
}

.site-footer a {
    color: rgba(255, 255, 255, .88);
}

.site-footer a:hover {
    color: var(--gold);
}

.address {
    color: var(--white);
    font-weight: 700;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
    color: rgba(255, 255, 255, .68);
    font: 13px/1.4 Arial, sans-serif;
}

@media (max-width: 920px) {
    .top-wrap,
    .header-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-main {
        padding: 22px 0;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 11px 10px;
    }

    .intro-grid,
    .split-section,
    .home-links,
    .card-grid,
    .timeline,
    .feature-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-shell {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 22px, 1120px);
    }

    .topline {
        display: none;
    }

    .brand-main {
        font-size: 34px;
    }

    .brand-sub {
        font-size: 14px;
    }

    .hero {
        min-height: 330px;
    }

    .page-shell {
        margin-top: 22px;
        padding: 18px;
    }

    .split-section img {
        border-width: 5px;
    }
}
