:root {
    --navy: #0c2348;
    --text: #20252b;
    --muted: #64717b;
    --surface: #f5f7f8;
    --line: #dce2e6;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 80px);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.logo {
    width: 118px;
    transition: opacity 180ms ease;
}

.logo:hover {
    opacity: 0.72;
}

.site-header nav ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
}

.site-header nav a {
    position: relative;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 4px;
    height: 2px;
    background: var(--navy);
    transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after {
    right: 0;
}

section {
    padding: 110px 24px;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-top: calc(var(--header-height) + 60px);
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(6, 13, 22, 0.56), rgba(6, 13, 22, 0.56)),
        url("../img/hg.png") center / cover no-repeat;
}

.hero-content {
    width: min(1180px, 100%);
}

.eyebrow {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.eyebrow.dark {
    color: var(--navy);
}

.hero h1 {
    margin: 0;
    font-size: clamp(52px, 7.4vw, 112px);
    line-height: 0.98;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero h2 {
    margin: 34px auto 0;
    font-size: clamp(16px, 1.6vw, 25px);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e3ebef;
}

.scroll-button {
    width: 50px;
    height: 50px;
    margin: 84px auto 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease;
}

.scroll-button:hover {
    transform: translateY(5px);
    background: #000;
}

.section-heading {
    text-align: center;
    margin-bottom: 62px;
}

.section-heading h3,
.legal-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.heading-line {
    display: block;
    width: 40px;
    height: 3px;
    margin: 24px auto 0;
    background: var(--navy);
}

.about-section {
    background:
        radial-gradient(circle at 90% 10%, rgba(12, 35, 72, 0.06), transparent 32%),
        #fff;
}

.about-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 70px;
    align-items: start;
}

.about-text {
    padding: 40px 0;
    text-align: left;
}

.about-kicker {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-text h4 {
    margin: 0 0 28px;
    max-width: 760px;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.2;
}

.about-text p {
    margin: 0 0 20px;
    max-width: 760px;
    color: #4f5961;
    font-size: 17px;
    line-height: 1.85;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-values {
    display: grid;
    gap: 18px;
}

.value-card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 30px 88px;
    background: var(--surface);
    border: 1px solid #e8ecef;
    border-radius: 10px;
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(13, 31, 52, 0.1);
}

.value-number {
    position: absolute;
    left: 24px;
    top: 30px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
}

.value-card h4 {
    margin: 0 0 10px;
    font-size: 19px;
    text-transform: uppercase;
}

.value-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.contact-section {
    min-height: calc(100vh - 70px);
    background: var(--surface);
    text-align: center;
}

.contact-intro {
    max-width: 760px;
    margin: -18px auto 48px;
    color: #4c565e;
    font-size: 18px;
    line-height: 1.75;
}

.contact-cards {
    width: min(980px, 100%);
    margin: 0 auto 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px;
    background: #fff;
    border: 1px solid #e3e8eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20, 31, 44, 0.06);
}

.contact-card h4 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 18px;
    text-transform: uppercase;
}

.contact-card p {
    margin: 0;
    color: #5b6670;
    font-size: 15px;
    line-height: 1.65;
}

.contact-card a {
    text-transform: none;
}

.contact-button {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(12, 35, 72, 0.18);
    transition: transform 180ms ease, background 180ms ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    background: #173c70;
}

.contact-note {
    margin: 20px 0 0;
    color: #78828a;
    font-size: 13px;
}

footer {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px clamp(24px, 5vw, 80px);
    background: #303337;
    color: #fff;
}

footer p {
    margin: 0;
    font-size: 12px;
}

footer ul {
    display: flex;
    gap: 26px;
}

footer a {
    color: #fff;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

footer a:hover {
    color: #dbe5eb;
}

.legal-page {
    min-height: calc(100vh - 70px);
    padding: calc(var(--header-height) + 76px) 24px 90px;
    background: #f7f8f9;
}

.legal-hero {
    text-align: center;
    margin-bottom: 54px;
}

.legal-content {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    background: #fff;
    border: 1px solid #e4e8eb;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(12, 28, 46, 0.06);
}

.legal-content h2 {
    margin: 36px 0 12px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.4;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 18px;
    color: #4d5760;
    font-size: 15px;
    line-height: 1.8;
}

.legal-content a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.source-note {
    margin-top: 42px !important;
    color: #7b858d !important;
    font-size: 12px !important;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-text {
        padding: 0;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 96px;
    }

    .site-header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: var(--header-height);
        padding: 0 14px;
        gap: 14px;
        overflow: hidden;
    }

    .logo {
        flex: 0 0 auto;
        width: 88px;
        min-width: 0;
    }

    .site-header nav {
        min-width: 0;
        margin-left: auto;
    }

    .site-header nav ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        min-width: 0;
        white-space: nowrap;
    }

    .site-header nav li {
        min-width: 0;
    }

    .site-header nav a {
        display: block;
        padding: 8px 0;
        font-size: 10px;
        letter-spacing: 0.01em;
    }

    section {
        width: 100%;
        max-width: 100%;
        padding: 82px 16px;
        overflow: hidden;
    }

    .hero {
        min-height: 100svh;
        padding-top: calc(var(--header-height) + 34px);
        padding-right: 16px;
        padding-left: 16px;
        background-position: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .eyebrow {
        max-width: 100%;
        margin-bottom: 18px;
        padding: 0 4px;
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: 0.18em;
        overflow-wrap: anywhere;
    }

    .hero h1 {
        max-width: 100%;
        margin: 0 auto;
        font-size: clamp(40px, 13vw, 58px);
        line-height: 1.02;
        letter-spacing: 0.01em;
        overflow-wrap: anywhere;
    }

    .hero h2 {
        max-width: 94%;
        margin: 24px auto 0;
        font-size: 13px;
        line-height: 1.65;
        letter-spacing: 0.07em;
        overflow-wrap: anywhere;
    }

    .scroll-button {
        width: 48px;
        height: 48px;
        margin-top: 46px;
    }

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

    .about-layout,
    .contact-cards,
    .legal-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .about-text {
        padding: 0;
    }

    .about-text h4 {
        font-size: 28px;
        overflow-wrap: anywhere;
    }

    .about-text p,
    .contact-intro,
    .contact-card p,
    .legal-content p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.72;
        overflow-wrap: anywhere;
    }

    .value-card,
    .contact-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .value-card {
        padding: 26px 18px 26px 66px;
    }

    .value-number {
        left: 18px;
        top: 26px;
    }

    .contact-button {
        width: 100%;
        max-width: 360px;
        padding: 15px 20px;
    }

    footer {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 14px;
        padding: 22px 16px;
        text-align: center;
        overflow: hidden;
    }

    footer ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .legal-page {
        width: 100%;
        max-width: 100%;
        padding: calc(var(--header-height) + 44px) 12px 64px;
        overflow: hidden;
    }

    .legal-content {
        padding: 26px 18px;
    }
}


/* ===== FINAL MOBILE HOTFIX ===== */
@media (max-width: 640px) {
    .site-header {
        height: 88px;
        padding: 0 12px;
        gap: 10px;
    }

    .logo {
        width: 82px;
    }

    .site-header nav ul {
        gap: 9px;
    }

    .site-header nav a {
        font-size: 10px;
        letter-spacing: 0;
    }

    .hero {
        min-height: calc(100svh - 88px);
        padding: 128px 14px 64px;
    }

    .eyebrow {
        width: 100%;
        max-width: 340px;
        margin: 0 auto 18px;
        font-size: 10px;
        letter-spacing: 0.14em;
        white-space: normal;
    }

    .hero h1 {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        font-size: clamp(38px, 11.5vw, 52px);
        line-height: 1.02;
        letter-spacing: 0;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero h2 {
        width: 100%;
        max-width: 350px;
        margin: 24px auto 0;
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: 0.05em;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .section-heading h3,
    .legal-hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.15;
        letter-spacing: 0.03em;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .legal-hero {
        margin-bottom: 36px;
        padding: 0 4px;
    }

    .legal-content {
        padding: 24px 16px;
        overflow: hidden;
    }

    .legal-content h2 {
        max-width: 100%;
        font-size: 20px;
        line-height: 1.28;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }

    .legal-content p,
    .legal-content a {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    footer {
        min-height: auto;
        padding: 24px 16px;
    }
}
