:root {
    --gold: #C5A059;
    --gold-dark: #9f8158;
    --navy: #1F2E3E;
    --navy-dark: #151f2b;
    --ink: #182433;
    --muted: #68717d;
    --line: rgba(197, 160, 89, 0.28);
    --paper: #f9f9f9;
    --surface-soft: #f3f4f5;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(21, 31, 43, 0.14);
    --font-label: 0.66rem;
    --font-small: 0.88rem;
    --font-base: 1rem;
    --font-card-title: 1rem;
    --font-section-title: 1.72rem;
    --font-stat: 1.38rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(249, 249, 249, 0.92), rgba(255, 255, 255, 0.98)),
        var(--paper);
}

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

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

.card-page {
    width: min(100%, 460px);
    margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgba(21, 31, 43, 0.05);
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-dark);
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    filter: saturate(0.94) contrast(1.02);
}

.hero-shade {
    background:
        linear-gradient(180deg, rgba(9, 15, 22, 0.24) 0%, rgba(9, 15, 22, 0.05) 34%, rgba(9, 15, 22, 0.86) 100%),
        linear-gradient(90deg, rgba(9, 15, 22, 0.7), rgba(9, 15, 22, 0.08) 52%, rgba(9, 15, 22, 0.4));
}

.hero-brand {
    position: relative;
    z-index: 1;
    padding: 24px 24px 0;
}

.hero-brand img {
    width: 118px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-content {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px calc(24px + env(safe-area-inset-bottom));
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: var(--font-label);
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 16vw, 4.45rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0;
}

.lead {
    max-width: 360px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-base);
    line-height: 1.45;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.primary-action,
.ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 2px;
    font-size: var(--font-small);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.primary-action {
    color: var(--white);
    background: linear-gradient(180deg, #dec36a 0%, #c7a05a 48%, #9f8158 100%);
    box-shadow: 0 12px 28px rgba(159, 129, 88, 0.28);
}

.ghost-action {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.section {
    padding: 46px 24px;
}

.section h2 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: var(--font-section-title);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.section p {
    color: var(--muted);
    font-size: var(--font-base);
    line-height: 1.62;
}

.intro {
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--white);
}

.stat-card {
    min-height: 128px;
    padding: 20px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.stat-card:nth-child(2n) {
    border-right: 0;
}

.stat-card:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.stat-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--navy);
    font-size: var(--font-stat);
    font-weight: 800;
    line-height: 1.03;
    transition: color 0.25s ease;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: var(--font-small);
    line-height: 1.35;
}

.proof {
    background: var(--surface-soft);
}

.proof-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.proof-list article {
    padding: 22px;
    border: 1px solid rgba(31, 46, 62, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.proof-list span {
    display: block;
    margin-bottom: 20px;
    color: var(--gold-dark);
    font-size: var(--font-label);
    font-weight: 800;
    letter-spacing: 0.2em;
    transition: color 0.25s ease;
}

.proof-list h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: var(--font-card-title);
    line-height: 1.2;
}

.proof-list p {
    margin: 0;
    font-size: var(--font-base);
    line-height: 1.5;
}

.projects {
    color: var(--white);
    background: var(--navy-dark);
}

.projects h2 {
    color: var(--white);
}

.project-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.project-card {
    position: relative;
    min-height: 222px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(31, 46, 62, 0.96), rgba(197, 160, 89, 0.68)),
        var(--navy);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:nth-child(2) {
    background:
        linear-gradient(135deg, rgba(21, 31, 43, 0.96), rgba(124, 143, 160, 0.62)),
        var(--navy);
}

.project-card:nth-child(3) {
    background:
        linear-gradient(135deg, rgba(21, 31, 43, 0.96), rgba(83, 118, 119, 0.62)),
        var(--navy);
}

.project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 20, 29, 0.1), rgba(12, 20, 29, 0.86));
    transition: background 0.3s ease;
}

.project-card div {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.project-card h3 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: var(--font-card-title);
    line-height: 1.12;
    transition: color 0.25s ease;
}

.project-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-small);
    line-height: 1.38;
}

.contacts {
    background: var(--white);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-link.primary {
    color: var(--white);
    border-color: var(--navy-dark);
    background: var(--navy-dark);
}

.contact-link strong,
.contact-link small {
    display: block;
}

.contact-link strong {
    margin-bottom: 5px;
    font-size: var(--font-card-title);
    line-height: 1.2;
}

.contact-link small {
    color: var(--muted);
    font-size: var(--font-small);
    line-height: 1.3;
}

.contact-link.primary small {
    color: rgba(222, 195, 106, 0.92);
}

.contact-link b {
    color: var(--gold-dark);
    font-size: var(--font-card-title);
    transition: transform 0.25s ease, color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hero-brand img:hover {
        opacity: 0.88;
        transform: translateY(-2px);
    }

    .primary-action:hover,
    .ghost-action:hover {
        transform: translateY(-3px);
    }

    .primary-action:hover {
        box-shadow: 0 16px 34px rgba(159, 129, 88, 0.38);
    }

    .ghost-action:hover {
        border-color: rgba(222, 195, 106, 0.72);
        background: rgba(255, 255, 255, 0.16);
    }

    .stat-card:hover {
        background: var(--surface-soft);
        transform: translateY(-2px);
    }

    .stat-card:hover strong {
        color: var(--gold-dark);
    }

    .proof-list article:hover {
        border-color: rgba(197, 160, 89, 0.42);
        background: var(--white);
        box-shadow: 0 14px 28px rgba(21, 31, 43, 0.08);
        transform: translateY(-4px);
    }

    .proof-list article:hover span {
        color: var(--gold);
    }

    .project-card:hover {
        box-shadow: 0 22px 50px rgba(21, 31, 43, 0.24);
        transform: translateY(-5px);
    }

    .project-card:hover img {
        filter: saturate(1.06) contrast(1.03);
        transform: scale(1.06);
    }

    .project-card:hover::after {
        background: linear-gradient(180deg, rgba(12, 20, 29, 0), rgba(12, 20, 29, 0.78));
    }

    .project-card:hover h3 {
        color: #dec36a;
    }

    .contact-link:hover {
        border-color: rgba(197, 160, 89, 0.58);
        background: var(--white);
        box-shadow: 0 12px 26px rgba(21, 31, 43, 0.08);
        transform: translateY(-3px);
    }

    .contact-link.primary:hover {
        background: #1f2e3e;
        box-shadow: 0 16px 32px rgba(21, 31, 43, 0.22);
    }

    .contact-link:hover b {
        color: var(--gold);
        transform: translate(3px, -3px);
    }
}

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

.mobile-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 34px 24px 40px;
    text-align: center;
    background: var(--paper);
}

.mobile-footer img {
    width: 128px;
    margin-bottom: 12px;
}

.mobile-footer strong {
    color: var(--navy);
    font-size: var(--font-card-title);
}

.mobile-footer span,
.mobile-footer p {
    margin: 0;
    color: var(--muted);
    font-size: var(--font-small);
    line-height: 1.4;
}

@media (min-width: 461px) {
    body {
        padding: 24px 0;
    }

    .card-page {
        border-radius: 18px;
        overflow: hidden;
    }

    .hero {
        min-height: 820px;
    }
}

@media (max-width: 360px) {
    .hero-brand,
    .hero-content,
    .section,
    .mobile-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

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

    .stat-card,
    .stat-card:nth-child(2n),
    .stat-card:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat-card:last-child {
        border-bottom: 0;
    }
}
