:root {
    --color-ink: #102033;
    --color-navy: #102a43;
    --color-blue: #173f5f;
    --color-steel: #5f7488;
    --color-cool: #d8e5ec;
    --color-cyan: #58a6b8;
    --color-ice: #f4f8fa;
    --color-white: #ffffff;
    --color-border: #d7e1e7;
    --color-success: #17684f;
    --color-error: #9b2735;
    --shadow-soft: 0 24px 60px rgba(16, 42, 67, 0.12);
    --radius: 8px;
    --container: 1180px;
    --font-main: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-white);
    font-family: var(--font-main);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(16, 42, 67, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 42, 67, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0, transparent 520px);
}

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

a:hover {
    color: var(--color-blue);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--color-navy);
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 7vw, 5.5rem);
    font-weight: 500;
}

h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.8rem);
    font-weight: 650;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

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

.narrow {
    max-width: 860px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 50;
    padding: 10px 14px;
    color: var(--color-white);
    background: var(--color-navy);
    border-radius: var(--radius);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.site-header.is-scrolled {
    box-shadow: 0 12px 36px rgba(16, 42, 67, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand:hover {
    color: var(--color-ink);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--color-white);
    background: var(--color-navy);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 800;
}

.brand strong,
.footer-brand {
    display: block;
    color: var(--color-navy);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.brand small {
    display: block;
    max-width: 250px;
    color: var(--color-steel);
    font-size: 0.74rem;
    line-height: 1.25;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.primary-nav a {
    padding: 10px 12px;
    color: var(--color-steel);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--color-navy);
    background: var(--color-ice);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
    display: block;
    width: 20px;
    height: 2px;
    content: "";
    background: var(--color-navy);
}

.nav-toggle-line::before {
    transform: translateY(-7px);
}

.nav-toggle-line::after {
    transform: translateY(5px);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 78px);
    padding: 88px 0 58px;
    background:
        linear-gradient(135deg, rgba(244, 248, 250, 0.95), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 84% 22%, rgba(88, 166, 184, 0.18), transparent 34%);
}

.hero::after,
.page-hero::after {
    position: absolute;
    right: -160px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(88, 166, 184, 0.22);
    transform: rotate(24deg);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 56px;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 740px;
    margin-top: 26px;
    color: #31465a;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 750;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
    color: var(--color-white);
    background: var(--color-navy);
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.22);
}

.button-primary:hover {
    color: var(--color-white);
    background: #173f5f;
}

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

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

.hero-visual {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(215, 225, 231, 0.95);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.88)),
        linear-gradient(rgba(23, 63, 95, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 63, 95, 0.08) 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
    box-shadow: var(--shadow-soft);
}

.visual-core {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    padding: 24px;
    color: var(--color-white);
    text-align: center;
    background: var(--color-navy);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 18px rgba(23, 63, 95, 0.08), 0 28px 60px rgba(16, 42, 67, 0.24);
}

.visual-core span {
    align-self: end;
    font-size: 0.8rem;
    font-weight: 800;
}

.visual-core strong {
    align-self: start;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.visual-node {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--color-white);
    border: 4px solid var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 12px rgba(88, 166, 184, 0.12);
}

.node-a {
    left: 18%;
    top: 22%;
}

.node-b {
    right: 18%;
    top: 18%;
}

.node-c {
    left: 22%;
    bottom: 19%;
}

.node-d {
    right: 19%;
    bottom: 22%;
}

.visual-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(23, 63, 95, 0.55), transparent);
    transform-origin: left center;
}

.line-a {
    left: 21%;
    top: 27%;
    width: 250px;
    transform: rotate(24deg);
}

.line-b {
    right: 19%;
    top: 23%;
    width: 250px;
    transform: rotate(141deg);
}

.line-c {
    left: 23%;
    bottom: 24%;
    width: 300px;
    transform: rotate(-21deg);
}

.section {
    padding: 92px 0;
}

.muted {
    background: var(--color-ice);
    border-block: 1px solid var(--color-border);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.large-text {
    color: #31465a;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.level-card,
.insight-grid article {
    min-height: 100%;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.service-card p,
.level-card p,
.insight-grid p {
    margin-top: 14px;
    color: #43576a;
}

.level-card h2,
.service-row h2,
.insight-grid h2 {
    font-size: 1.35rem;
}

.card-index {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--color-cyan);
    font-size: 0.8rem;
    font-weight: 800;
}

.method-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 54px;
    align-items: start;
}

.method-preview p:not(.eyebrow) {
    margin-top: 18px;
    color: #43576a;
}

.step-list {
    counter-reset: step;
    display: grid;
    gap: 14px;
    list-style: none;
}

.step-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    min-height: 68px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.step-list li::before {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--color-white);
    content: counter(step, decimal-leading-zero);
    background: var(--color-navy);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.78rem;
    font-weight: 800;
}

.step-list span {
    padding: 18px 20px;
    font-weight: 750;
}

.final-cta {
    padding: 76px 0;
    color: var(--color-white);
    background: var(--color-navy);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-panel h2,
.cta-panel .eyebrow {
    color: var(--color-white);
}

.cta-panel p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 76px;
    background:
        linear-gradient(135deg, rgba(244, 248, 250, 0.96), rgba(255, 255, 255, 0.92)),
        radial-gradient(circle at 82% 18%, rgba(88, 166, 184, 0.16), transparent 32%);
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.page-hero p:not(.eyebrow) {
    margin-top: 22px;
    color: #31465a;
    font-size: 1.16rem;
}

.services-stack {
    display: grid;
    gap: 18px;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
    gap: 32px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
}

.accent-row {
    background: linear-gradient(135deg, #ffffff, #f4f8fa);
    border-color: rgba(88, 166, 184, 0.55);
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    color: #31465a;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--color-cyan);
    border-radius: 50%;
}

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

.insight-grid article:nth-child(4),
.insight-grid article:nth-child(5) {
    grid-column: span 1;
}

.statement {
    max-width: 940px;
}

.statement p {
    margin: 0;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.16;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.prose {
    color: #31465a;
    font-size: 1.08rem;
}

.prose h2 {
    margin-top: 34px;
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.legal-text {
    max-width: 850px;
}

.contact-aside {
    padding: 28px;
    background: var(--color-ice);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-aside h2 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.small-note {
    color: var(--color-steel);
    font-size: 0.92rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field.full,
.contact-form .button,
.form-message {
    grid-column: 1 / -1;
}

label {
    color: var(--color-navy);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(88, 166, 184, 0.42);
    outline-offset: 3px;
}

.field-error {
    margin: 0;
    color: var(--color-error);
    font-size: 0.92rem;
}

.form-message {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-message.success {
    color: var(--color-success);
    background: rgba(23, 104, 79, 0.1);
    border: 1px solid rgba(23, 104, 79, 0.22);
}

.form-message.error {
    color: var(--color-error);
    background: rgba(155, 39, 53, 0.1);
    border: 1px solid rgba(155, 39, 53, 0.22);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: #0b1d2f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 42px;
    padding: 58px 0 36px;
}

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

.site-footer h2 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.footer-list {
    display: grid;
    gap: 6px;
    list-style: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 70px;
    }

    .nav-toggle {
        display: grid;
    }

    .primary-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 13px 14px;
    }

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

    .hero-grid,
    .method-preview,
    .service-row,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }

    .card-grid.four,
    .level-grid,
    .insight-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    h1 {
        font-size: clamp(2.3rem, 12vw, 3.25rem);
    }

    .brand small {
        display: none;
    }

    .hero,
    .page-hero,
    .section {
        padding-block: 58px;
    }

    .button-row,
    .cta-panel,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .card-grid.four,
    .level-grid,
    .insight-grid,
    .check-list,
    .footer-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .service-row {
        padding: 22px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .visual-core {
        width: 138px;
        height: 138px;
    }
}
