:root {
    --color-ink: #14213d;
    --color-muted: #5b6475;
    --color-line: #d8dee8;
    --color-surface: #f6f8fb;
    --color-white: #ffffff;
    --color-accent: #0e8f7c;
    --color-accent-dark: #0a6256;
    --color-warm: #ffb84d;
    --shadow: 0 24px 70px rgba(20, 33, 61, 0.14);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 999;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 10px 14px;
}

.skip-link:focus {
    left: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 222, 232, 0.8);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand__mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--color-ink);
    color: var(--color-white);
}

.custom-logo {
    max-width: 180px;
    height: auto;
}

.primary-nav .menu,
.site-footer .menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a,
.site-footer a {
    text-decoration: none;
}

.primary-nav a {
    color: var(--color-muted);
    font-weight: 650;
}

.primary-nav a:hover,
.site-footer a:hover {
    color: var(--color-accent-dark);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-ink);
    margin: 5px 0;
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 86px 0;
    background:
        linear-gradient(135deg, rgba(20, 33, 61, 0.9), rgba(14, 143, 124, 0.78)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: var(--color-white);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero .eyebrow {
    color: var(--color-warm);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

h3 {
    margin: 10px 0 12px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.hero__lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
}

.button--primary {
    background: var(--color-warm);
    color: #1a1f2c;
}

.button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--color-white);
}

.hero__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.metric {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.metric strong {
    font-size: 2rem;
    color: var(--color-warm);
}

.metric span {
    font-weight: 750;
}

.section {
    padding: 96px 0;
}

.section--intro,
.section--method,
.page-hero {
    background: var(--color-surface);
}

.split,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.split > p,
.contact-grid p,
.proof p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.2rem;
}

.section__heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
}

.service-card span {
    color: var(--color-accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.service-card p,
.content p {
    color: var(--color-muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.steps li {
    min-height: 220px;
    padding: 24px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(20, 33, 61, 0.08);
}

.steps strong,
.steps span {
    display: block;
}

.steps strong {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.steps span {
    color: var(--color-muted);
}

.section--proof {
    background: var(--color-ink);
    color: var(--color-white);
}

.proof {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.proof p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.contact-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.contact-card a,
.contact-card span {
    display: block;
    padding: 16px 0;
    color: var(--color-ink);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid var(--color-line);
}

.contact-card span {
    border-bottom: 0;
    color: var(--color-muted);
}

.page-hero {
    padding: 82px 0 52px;
}

.page-hero h1 {
    color: var(--color-ink);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.content {
    max-width: 820px;
}

.content h2,
.content h3 {
    margin-top: 36px;
}

.post-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-line);
}

.site-footer {
    padding: 58px 0 22px;
    color: rgba(255, 255, 255, 0.78);
    background: #111827;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 36px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: var(--color-white);
    font-size: 1rem;
}

.site-footer .brand {
    color: var(--color-white);
}

.site-footer .brand__mark {
    background: var(--color-accent);
}

.site-footer .menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.site-footer__bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
    }

    .primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        display: none;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-line);
        padding: 18px 20px;
    }

    .site-header.is-open .primary-nav {
        display: block;
    }

    .primary-nav .menu {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        width: min(100%, var(--container));
        margin: 0 auto;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero__grid,
    .split,
    .contact-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero__panel,
    .card-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }
}
