* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #17232d;
    --muted: #64727c;
    --blue: #087ca5;
    --blue-dark: #075c7b;
    --accent: #f2a900;
    --surface: #fff;
    --page: #f2f5f7;
    --line: #e3e9ed;
    --shadow: 0 16px 42px rgba(24, 43, 56, .09);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 16px/1.65 Arial, Helvetica, sans-serif;
}

a {
    color: var(--blue);
    text-underline-offset: .18em;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.site {
    width: min(100%, 1200px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: clip;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 116px;
    padding: 20px clamp(20px, 5vw, 64px);
    background: var(--surface);
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
}

.site-header .brand img {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.site-header .social {
    display: flex;
    gap: 10px;
}

.site-header .social a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background .2s ease, transform .2s ease;
}

.site-header .social a:hover {
    transform: translateY(-2px);
    background: #f1f7f9;
}

.site-header .social img {
    width: 22px;
    height: 22px;
}

.nav {
    position: relative;
    z-index: 2;
    background: #14212b;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0 clamp(12px, 3vw, 32px);
    list-style: none;
}

.nav a {
    display: block;
    padding: 15px 13px;
    color: #f6f8f9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
    color: #fff;
    background: var(--blue-dark);
}

.nav-toggle {
    display: none;
}

.hero {
    overflow: hidden;
    background: #dce6eb;
}

.hero img {
    display: block;
    width: 100%;
    height: clamp(230px, 34vw, 390px);
    object-fit: cover;
}

main {
    min-height: 300px;
    padding: clamp(28px, 5vw, 60px) clamp(20px, 6vw, 72px);
}

main > h1:first-child,
main > h2:first-child {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.25;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.035em;
}

h2 {
    font-size: clamp(21px, 2.7vw, 28px);
}

p {
    color: #45535d;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 24px;
}

.card {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 43, 56, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(24, 43, 56, .1);
}

.card h2,
.card h3 {
    margin-top: 0;
    font-size: 19px;
}

.card h2 a,
.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card img,
.content-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.brand-list img {
    max-width: 150px;
    max-height: 65px;
}

.form-note {
    padding: 16px 20px;
    border-left: 4px solid var(--blue);
    border-radius: 0 8px 8px 0;
    background: #eef7fa;
}

.site-footer {
    margin-top: 24px;
    padding: 34px clamp(20px, 6vw, 72px) 18px;
    border-top: 1px solid var(--line);
    background: #f8fafb;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.footer-links strong {
    color: var(--ink);
}

.footer-links ul {
    margin: 9px 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 5px;
}

.footer-links a,
.site-footer > a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover,
.site-footer > a:hover {
    color: var(--blue);
}

.copyright {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: right;
    font-size: 12px;
}

@media (max-width: 760px) {
    .site-header {
        gap: 10px;
        min-height: 82px;
        padding: 14px;
    }

    .site-header .brand img {
        width: min(220px, 58vw);
    }

    .site-header .social {
        gap: 6px;
    }

    .site-header .social a {
        width: 36px;
        height: 36px;
    }

    .nav.menu-ready {
        padding: 8px 16px;
    }

    .nav.menu-ready .nav-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .nav-toggle-icon {
        display: grid;
        gap: 5px;
        width: 22px;
    }

    .nav-toggle-icon span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav.menu-ready ul {
        display: none;
        padding: 8px 0 4px;
    }

    .nav.menu-ready.is-open ul {
        display: block;
    }

    .nav.menu-ready li + li {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .nav.menu-ready a {
        padding: 11px 8px;
        font-size: 12px;
    }

    .hero img {
        height: clamp(190px, 56vw, 280px);
    }

    .card {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
