:root {
    --blue: #004f9f;
    --blue-dark: #00366d;
    --blue-soft: #eaf3fb;
    --ink: #17212b;
    --muted: #66717d;
    --line: #dfe5ea;
    --paper: #ffffff;
    --paper-soft: #f5f7f8;
    --max-width: 1180px;
    --shadow: 0 24px 70px rgba(19, 36, 53, 0.12);
    --footer-bg: #20282d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.topbar {
    background: var(--blue);
    color: #fff;
    font-size: 14px;
}

.topbar__inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar__links {
    display: flex;
    gap: 28px;
}

.topbar__links a {
    opacity: 0.95;
}

.nav-shell {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(223, 229, 234, 0.9);
    transition: box-shadow 180ms ease;
}

.nav-shell.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(22, 36, 50, 0.1);
}

.nav-shell__inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand img {
    width: 145px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
    position: relative;
    padding: 14px 0;
}

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 160ms ease;
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta):focus-visible::after {
    width: 100%;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta {
    color: var(--blue);
    background: #f6f6f6;
    border: solid 1px #e0e0e0;
}

.nav-cta:hover,
.button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 4px;
    background: var(--blue);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 79, 159, 0.03) 1px, transparent 1px) 0 0 / 74px 74px,
        linear-gradient(rgba(0, 79, 159, 0.03) 1px, transparent 1px) 0 0 / 74px 74px,
        linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.hero__grid {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
    align-items: center;
    gap: 72px;
    padding-top: 78px;
    padding-bottom: 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: #b9d8f7;
}

.hero h1,
.section-heading h2,
.oldtimer-band h2,
.contact h2 {
    margin: 0;
    font-family: "Red Hat Display", sans-serif;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 800;
}

.hero__lead {
    max-width: 670px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button--primary {
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
}

.button--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.button--secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.button--secondary:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 32px;
    color: #4d5964;
    font-size: 14px;
    font-weight: 700;
}

.hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__trust span::before {
    content: "✓";
    color: var(--blue);
}

.hero__visual {
    position: relative;
}

.hero__visual::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -36px;
    top: -32px;
    border: 1px solid rgba(0, 79, 159, 0.12);
    background: linear-gradient(180deg, rgba(234, 243, 251, 0.92), rgba(234, 243, 251, 0.5));
    z-index: 0;
    display: none;
}

.hero-card {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 64px 54px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(249, 251, 253, 0.985) 100%);
    border: 1px solid var(--line);
    border: none;
    box-shadow: var(--shadow);
    z-index: 1;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    pointer-events: none;
}

.hero-card::before {
    top: 20px;
    left: 20px;
    border-top: 4px solid var(--blue);
    border-left: 4px solid var(--blue);
}

.hero-card::after {
    right: 20px;
    bottom: 20px;
    border-right: 4px solid rgba(0, 79, 159, 0.36);
    border-bottom: 4px solid rgba(0, 79, 159, 0.36);
}

.hero-card__logo-wrap {
    position: relative;
    z-index: 2;
    width: min(380px, 100%);
    padding: 0;
}

.hero-card--logo-only {
    justify-content: center;
    align-items: center;
}

.hero-card img {
    width: 100%;
}

.intro-strip {
    background: var(--blue);
    color: #fff;
}

.intro-strip__inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.intro-strip p {
    margin: 0;
    font-size: 18px;
}

.section {
    padding: 110px 0;
}

.services {
    background: var(--paper-soft);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 52px;
}

.section-heading h2,
.oldtimer-band h2,
.contact h2 {
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
}

.section-heading p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 17px;
}

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

.service-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(23, 33, 43, 0.1);
}

.service-card--featured {
    border-top: 4px solid var(--blue);
}

.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #d8dde2;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.035);
}

.service-card__number {
    position: absolute;
    left: 18px;
    bottom: 18px;
    min-width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    font-family: "Red Hat Display", sans-serif;
    font-weight: 800;
}

.service-card__body {
    padding: 30px 30px 32px;
}

.service-card__kicker,
.contact-card__label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-card h3 {
    margin: 9px 0 13px;
    font-family: "Red Hat Display", sans-serif;
    font-size: 26px;
    line-height: 1.22;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.service-card__body > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--blue);
    font-weight: 800;
}

.oldtimer-band {
    padding: 0;
    color: #fff;
    background: #0f2438;
}

.oldtimer-band__grid {
    width: min(100%, 1440px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
}

.oldtimer-band__image {
    min-height: 510px;
}

.oldtimer-band__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oldtimer-band__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 8vw;
    background:
        linear-gradient(135deg, rgba(0, 79, 159, 0.22), transparent 65%),
        #0f2438;
}

.oldtimer-band__content p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #d5dde5;
    font-size: 17px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 30px;
    color: #fff;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.contact {
    background: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.contact__intro p {
    max-width: 560px;
    margin: 24px 0 30px;
    color: var(--muted);
    font-size: 17px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 8px 0;
}

.contact-detail {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.contact-detail__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 50%;
}

.contact-detail__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-detail__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.contact-detail__label {
    margin-bottom: 2px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-detail__content strong {
    color: var(--ink);
}

.contact-detail__content a {
    width: fit-content;
    color: var(--blue);
    font-weight: 700;
}

.contact-detail__content a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-detail__content span:not(.contact-detail__label) {
    color: var(--muted);
}

.footer {
    color: #dce7f0;
    background: var(--footer-bg);
}

.footer__inner {
    min-height: 190px;
    display: grid;
    grid-template-columns: 210px 1fr auto;
    grid-template-areas:
        "brand text links"
        "copyright copyright copyright";
    gap: 26px 46px;
    align-items: center;
    padding-top: 38px;
    padding-bottom: 26px;
}

.footer__brand {
    grid-area: brand;
}

.footer__brand img {
    width: 170px;
}

.footer p {
    grid-area: text;
    margin: 0;
    color: #aebdca;
}

.footer__links {
    grid-area: links;
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer__links a:hover {
    color: #fff;
}

.footer__copyright {
    grid-area: copyright;
    padding-top: 20px;
    color: #8294a3;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

@media (max-width: 1050px) {
    .hero__grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .service-card:last-child .service-card__media {
        aspect-ratio: auto;
        min-height: 320px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 820px) {
    .topbar__spacer {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .nav-shell__inner {
        min-height: 88px;
    }

    .brand img {
        width: 118px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 126px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 35px rgba(22, 36, 50, 0.12);
    }

    .nav-shell.is-sticky .main-nav {
        inset: 88px 0 auto 0;
    }

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

    .main-nav > a:not(.nav-cta) {
        padding: 15px 2px;
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        margin-top: 14px;
    }

    .hero__grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .hero__visual {
        max-width: 620px;
    }

    .hero-card {
        min-height: 360px;
    }

    .section {
        padding: 82px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 38px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child {
        grid-column: auto;
        display: block;
    }

    .service-card:last-child .service-card__media {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .oldtimer-band__grid {
        grid-template-columns: 1fr;
    }

    .oldtimer-band__image {
        min-height: 380px;
    }

    .oldtimer-band__content {
        padding: 64px 30px;
    }


    .footer__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "text"
            "links"
            "copyright";
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .topbar__links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero__lead {
        font-size: 17px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-card {
        min-height: 310px;
        padding: 44px 24px;
    }

    .hero-card::before,
    .hero-card::after {
        width: 64px;
        height: 64px;
    }

    .hero-card__logo-wrap {
        width: 100%;
    }


    .intro-strip__inner {
        padding: 24px 0;
    }

    .intro-strip p {
        font-size: 16px;
    }

    .section-heading h2,
    .oldtimer-band h2,
    .contact h2 {
        font-size: 39px;
    }

    .service-card__body {
        padding: 26px 24px 28px;
    }

    .oldtimer-band__image {
        min-height: 300px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .contact-detail {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .contact-detail__icon {
        width: 46px;
        height: 46px;
    }

}

@media (min-width: 1100px) {
    .contact-details {
        padding-left: 60px;
    }
}
