:root {
    --ink: #172026;
    --muted: #5c6870;
    --line: #d9e0e4;
    --paper: #f7f8f6;
    --white: #ffffff;
    --red: #c93a2f;
    --teal: #006d77;
    --green: #2f7d59;
    --yellow: #f2b705;
    --shadow: 0 18px 42px rgba(21, 31, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 64px);
    background: rgba(247, 248, 246, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.site-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 28px);
    color: var(--muted);
    font-size: 14px;
}

.nav-contact {
    color: var(--white);
    background: var(--ink);
    border-radius: 6px;
    padding: 8px 14px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(28px, 6vw, 72px);
    min-height: calc(100vh - 75px);
    align-items: center;
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
    background:
        linear-gradient(90deg, rgba(247, 248, 246, 0.96), rgba(247, 248, 246, 0.78)),
        repeating-linear-gradient(135deg, rgba(23, 32, 38, 0.08) 0 1px, transparent 1px 18px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 12em;
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.08;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 6px;
    padding: 11px 20px;
    font-weight: 800;
}

.button.primary {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

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

.hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hero-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.section,
.area-band,
.contact-section {
    padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.intro,
.split,
.contact-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.intro p:last-child,
.split p {
    color: var(--muted);
    font-size: 17px;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-grid article {
    min-height: 260px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-grid span {
    color: var(--red);
    font-weight: 900;
}

.service-grid p,
.empty-case {
    color: var(--muted);
}

.area-band {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(24px, 5vw, 64px);
    color: var(--white);
    background: var(--ink);
}

.area-band .eyebrow {
    color: var(--yellow);
}

.area-band p {
    color: rgba(255, 255, 255, 0.78);
}

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

.area-list li {
    min-height: 58px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-weight: 800;
}

.case-preview {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.case-preview img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

.case-preview div {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 24px);
}

.empty-case {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.empty-case p,
.case-preview p {
    margin-top: 0;
    color: var(--ink);
    font-weight: 800;
}

.case-preview small {
    color: var(--muted);
}

.case-link {
    width: fit-content;
    margin-top: 12px;
}

.company-table {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.company-table div {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
    border-bottom: 0;
}

.company-table dt,
.company-table dd {
    margin: 0;
    padding: 18px 20px;
}

.company-table dt {
    color: var(--muted);
    font-weight: 800;
}

.contact-section {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-hero {
    padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: none;
    font-size: clamp(36px, 5vw, 64px);
}

.page-hero p:last-child {
    max-width: 720px;
    color: var(--muted);
}

.policy-body article {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.policy-body h2 {
    margin-top: 34px;
    font-size: 24px;
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body p {
    color: var(--muted);
}

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

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b8c2c8;
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}

.consent input {
    width: auto;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 36px clamp(20px, 5vw, 64px);
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
}

.site-footer strong {
    display: block;
    color: var(--white);
}

.site-footer p {
    max-width: 520px;
    margin: 8px 0 0;
}

.site-footer nav {
    display: flex;
    gap: 18px;
}

@media (max-width: 980px) {
    .hero,
    .intro,
    .split,
    .area-band,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-visual,
    .hero-visual > img {
        min-height: 520px;
    }

    .case-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        white-space: nowrap;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        font-size: 42px;
    }

    .service-grid,
    .area-list,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .company-table div {
        grid-template-columns: 1fr;
    }

    .hero-visual,
    .hero-visual > img {
        min-height: 580px;
    }

    .case-preview {
        padding: 14px;
    }

    .case-preview img {
        height: 230px;
    }

    .company-table dt {
        padding-bottom: 0;
    }

    .site-footer {
        flex-direction: column;
    }
}
