:root {
    --blue-950: #0a4f77;
    --blue-900: #0a4f77;
    --blue-800: #0a4f77;
    --blue-700: #0a4f77;
    --blue-600: #0a4f77;
    --yellow-500: #f4c400;
    --yellow-400: #ffd51b;
    --white: #ffffff;
    --off-white: #f4f7f9;
    --text: #132536;
    --muted: #5a6d7d;
    --border: rgba(10, 79, 119, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--blue-950);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--blue-950);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

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

a {
    color: inherit;
}

.page-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: var(--off-white);
}

.site-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    min-height: 104px;
    padding: 10px clamp(22px, 4vw, 70px);
    color: var(--white);
    background: var(--blue-950);
    border-bottom: 5px solid var(--yellow-500);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand__logo {
    flex: 0 0 auto;
    width: 78px;
    height: 82px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.brand__text {
    min-width: 0;
}

.brand__name {
    margin: 0 0 3px;
    color: var(--yellow-400);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
}

.brand__tagline {
    margin: 0;
    font-size: clamp(0.79rem, 1vw, 0.98rem);
    font-weight: 700;
}

.brand__tagline span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 400;
}

.header-contact {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: flex-end;
    padding: 10px 18px;
    color: var(--blue-950);
    text-decoration: none;
    background: var(--yellow-400);
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
    background: var(--white);
    transform: translateY(-2px);
}

.header-contact span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-contact strong {
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    line-height: 1.1;
}

.hero {
    position: relative;
    width: 100%;
    height: clamp(280px, 36vw, 560px);
    isolation: isolate;
    overflow: hidden;
    background: var(--blue-950);
}

.hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: rgba(10, 79, 119, 0.35);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(22px, 5vw, 96px);
    width: min(640px, calc(100% - 44px));
    color: var(--white);
    transform: translateY(-50%);
}

.hero__eyebrow {
    margin: 0 0 8px;
    color: var(--yellow-400);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2rem, 4.1vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.34);
}

.hero__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(18px, 2.2vw, 30px);
    padding: 12px 18px;
    color: var(--blue-950);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--yellow-400);
    border: 2px solid var(--yellow-400);
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.hero__button strong {
    font-size: 1.05rem;
}

.hero__button:hover,
.hero__button:focus-visible {
    color: var(--white);
    background: var(--blue-800);
    transform: translateY(-2px);
}

.maintenance-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 13px 22px;
    text-align: center;
    color: var(--blue-950);
    background: var(--yellow-400);
    border-top: 1px solid rgba(6, 30, 53, 0.15);
    border-bottom: 1px solid rgba(6, 30, 53, 0.15);
}

.maintenance-notice p,
.maintenance-notice span {
    margin: 0;
}

.maintenance-notice p {
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    font-weight: 900;
}

.maintenance-notice span {
    color: rgba(6, 30, 53, 0.7);
    font-size: 0.84rem;
    font-weight: 700;
}

.offices {
    width: 100%;
    padding: clamp(28px, 3.2vw, 52px) clamp(22px, 4vw, 76px);
    background: var(--off-white);
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-bottom: 22px;
}

.section-heading__label {
    margin: 0 0 3px;
    color: var(--blue-700);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--blue-950);
    font-size: clamp(1.65rem, 2.6vw, 2.7rem);
    line-height: 1;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.office-card {
    position: relative;
    min-width: 0;
    padding: 22px 20px 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 5px solid var(--blue-700);
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(6, 30, 53, 0.08);
}

.office-card::after {
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 90px;
    height: 90px;
    content: "";
    background: var(--yellow-400);
    border-radius: 50%;
    opacity: 0.18;
}

.office-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--blue-800);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.15;
}

.office-card address {
    position: relative;
    z-index: 1;
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.office-card a {
    position: relative;
    z-index: 1;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--blue-700);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.office-card a:first-of-type {
    color: var(--blue-950);
    font-size: 0.96rem;
}

.site-footer {
    flex: 0 0 auto;
    width: 100%;
    color: var(--white);
    background: var(--blue-950);
    border-top: 5px solid var(--yellow-500);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 20px clamp(22px, 4vw, 70px);
}

.footer-company {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.footer-company img {
    flex: 0 0 auto;
    width: 54px;
    height: 57px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.footer-company p {
    margin: 0;
}

.footer-company__name {
    color: var(--yellow-400);
    font-size: 1.03rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.footer-company__name + p {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-contact a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: var(--yellow-400);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-copyright {
    justify-self: end;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    text-align: right;
}

@media (max-width: 1180px) {
    .office-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero {
        height: clamp(280px, 42vw, 460px);
    }

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

    .footer-contact {
        justify-content: flex-end;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .site-header {
        align-items: stretch;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand__logo {
        width: 67px;
        height: 71px;
    }

    .header-contact {
        justify-content: center;
    }

    .office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .footer-company,
    .footer-contact {
        justify-content: center;
    }

    .footer-copyright {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .site-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .brand {
        gap: 13px;
    }

    .brand__name {
        font-size: 1.42rem;
    }

    .brand__tagline {
        font-size: 0.76rem;
    }

    .header-contact {
        align-items: center;
    }

    .hero {
        height: 390px;
    }

    .hero::after {
        background: rgba(10, 79, 119, 0.5);
    }

    .hero__image {
        object-position: 59% center;
    }

    .hero__overlay {
        top: auto;
        right: 22px;
        bottom: 26px;
        left: 22px;
        width: auto;
        transform: none;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero__button {
        width: 100%;
        justify-content: center;
    }

    .section-heading {
        display: block;
    }

    .section-heading__label {
        margin-bottom: 6px;
    }

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

    .office-card address {
        min-height: 0;
    }

    .maintenance-notice {
        display: block;
    }

    .maintenance-notice span {
        display: block;
        margin-top: 3px;
    }

    .footer-company {
        flex-direction: column;
    }

    .footer-contact {
        flex-direction: column;
        gap: 7px;
    }
}

@media (min-width: 1181px) and (max-height: 900px) {
    .site-header {
        min-height: 88px;
    }

    .brand__logo {
        width: 62px;
        height: 66px;
    }

    .hero {
        height: 300px;
    }

    .offices {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .section-heading {
        margin-bottom: 14px;
    }

    .office-card {
        padding-top: 16px;
        padding-bottom: 15px;
    }

    .maintenance-notice {
        min-height: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .footer-company img {
        width: 44px;
        height: 47px;
    }
}

a:focus-visible {
    outline: 3px solid var(--yellow-400);
    outline-offset: 4px;
}

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