:root {
    --navy: #0b1c2c;
    --navy-mid: #132a3f;
    --steel: #1e4a63;
    --teal: #2d7a86;
    --brass: #c4a35a;
    --brass-soft: #e0c88a;
    --paper: #f6f3ec;
    --paper-2: #ece6d8;
    --ink: #1a2430;
    --muted: #5b6773;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(11, 28, 44, 0.18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4vw;
    background: rgba(11, 28, 44, 0.94);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand span {
    color: var(--brass-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 18px;
    font-size: 0.92rem;
}

.topbar-nav a {
    text-decoration: none;
    color: #dce7ef;
}

.topbar-nav a:hover {
    color: var(--brass-soft);
}

.topbar-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    line-height: 1.25;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.topbar-contacts a {
    color: var(--brass-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--brass);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--brass-soft);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.btn-outline-dark {
    border: 1px solid var(--navy);
    color: var(--navy);
    background: transparent;
}

.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 28, 44, 0.78) 0%, rgba(11, 28, 44, 0.45) 55%, rgba(11, 28, 44, 0.55) 100%),
        linear-gradient(180deg, rgba(11, 28, 44, 0.2) 0%, rgba(11, 28, 44, 0.78) 100%),
        url("/img/mach/ship_repair.jpg") center / cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: end;
    padding: 8vh 6vw 7vh;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(196, 163, 90, 0.55);
    border-radius: 999px;
    color: var(--brass-soft);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.12;
}

.lead {
    max-width: 640px;
    font-size: 1.12rem;
    color: #e6edf3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
}

.hero-contacts a {
    color: var(--brass-soft);
    text-decoration: none;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero-contacts a:hover {
    color: var(--white);
}

.portrait-card {
    justify-self: end;
    width: min(320px, 100%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.portrait-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top;
    background: #e8e4dc;
}

.portrait-card figcaption {
    padding: 16px 18px 18px;
}

.portrait-card strong {
    display: block;
    font-size: 1.05rem;
}

.portrait-card span {
    color: #d3c39a;
    font-size: 0.9rem;
}

.section {
    padding: 84px 6vw;
    scroll-margin-top: 76px;
}

.section-narrow {
    max-width: 1120px;
    margin: 0 auto;
}

.section h2 {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.15;
}

.section-intro {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.navy .section-intro {
    color: #c5d3de;
}

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.split img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #ddd8ce;
}

.about-text p {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.milestones {
    display: grid;
    gap: 12px;
    margin-top: 48px;
}

.milestone {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 16px 18px;
    background: var(--white);
    border-radius: 14px;
    border-left: 4px solid var(--brass);
}

.milestone b {
    color: var(--navy);
}

.milestone span {
    color: var(--muted);
    font-size: 0.92rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.card {
    padding: 24px 22px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11, 28, 44, 0.06);
}

.navy .card {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brass);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

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

.navy .card p {
    color: #c9d5de;
}

.reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.reason {
    padding: 22px;
    background: var(--white);
    border-left: 4px solid var(--brass);
    border-radius: 12px;
}

.timeline {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.job {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.job time,
.job .years {
    color: var(--brass-soft);
    font-size: 0.92rem;
}

.job h3 {
    margin: 0 0 4px;
    font-size: 1.12rem;
}

.job .org {
    margin: 0 0 10px;
    color: #c9d5de;
}

.job ul {
    margin: 0;
    padding-left: 18px;
}

.job li + li {
    margin-top: 4px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    margin-top: 32px;
}

.contact-box {
    padding: 28px;
    background: var(--navy);
    color: var(--white);
    border-radius: 22px;
}

.contact-box a {
    color: var(--brass-soft);
    text-decoration: none;
    font-weight: 700;
}

.contact-box p {
    color: #d4dee6;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.fact {
    padding: 18px;
    background: var(--paper-2);
    border-radius: 14px;
}

.fact b {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.footer {
    padding: 28px 6vw 40px;
    color: #8b97a3;
    background: #07141f;
    font-size: 0.9rem;
}

.footer strong {
    color: #e8eef3;
}

.footer a {
    color: var(--brass-soft);
    text-decoration: none;
}

@media (max-width: 1280px) {
    .topbar-nav > a {
        display: none;
    }
}

@media (max-width: 980px) {
    .hero-inner,
    .split,
    .cards,
    .reasons,
    .job,
    .contact-grid,
    .facts,
    .milestone {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        justify-self: start;
        width: min(360px, 100%);
    }

    .hero {
        min-height: auto;
    }

    .split img,
    .portrait-card img {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .brand strong {
        font-size: 1.08rem;
    }

    .topbar {
        padding: 12px 16px;
        gap: 8px;
    }

    .topbar-contacts {
        font-size: 0.75rem;
        white-space: normal;
        text-align: right;
        max-width: 58%;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.92rem;
    }
}
