:root {
    --ink: #162031;
    --muted: #5b6473;
    --line: #dfe5ed;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --accent: #1f7a5b;
    --accent-dark: #15543f;
    --warn: #b73535;
    --ok: #197447;
    --shadow: 0 18px 45px rgba(22, 32, 49, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--accent-dark);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    font-size: 13px;
}

nav,
.site-footer p {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

nav a,
.site-footer a {
    text-decoration: none;
    font-weight: 700;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: center;
    min-height: 58vh;
    padding: 46px 0 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--accent);
}

.button.secondary {
    color: var(--accent-dark);
    background: #e6f1ed;
}

.principles article,
.case-note,
.form-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-image {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: cover;
}

.hero-image figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 8px 11px;
    color: #fff;
    background: rgba(22, 32, 49, 0.78);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.promise-band {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.promise-band h2,
.principles h2,
.case-note h2,
.form-intro h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.promise-band p,
.principles p,
.case-note p,
.form-intro p {
    margin: 0;
    color: var(--muted);
}

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

.principles article {
    padding: 24px;
}

.case-note {
    margin-top: 24px;
    padding: 26px;
    border-left: 5px solid var(--accent);
}

.image-stories {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.image-story {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-story-reverse {
    grid-template-columns: minmax(0, 0.58fr) minmax(240px, 0.42fr);
}

.image-story-reverse img {
    order: 2;
}

.image-story-reverse div {
    order: 1;
}

.image-story img {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}

.image-story h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.15;
}

.image-story p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.form-section {
    margin-top: 24px;
    padding: 28px;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cbd4df;
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(31, 122, 91, 0.18);
}

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

.check {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    color: var(--muted);
    font-weight: 600;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.check span {
    min-width: 0;
}

.honey {
    position: absolute;
    left: -9999px;
}

.notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid;
    background: #fff;
}

.notice.success {
    color: var(--ok);
    border-color: rgba(25, 116, 71, 0.35);
}

.notice.error {
    color: var(--warn);
    border-color: rgba(183, 53, 53, 0.35);
}

.admin {
    padding-top: 40px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef3f8;
}

@media (max-width: 820px) {
    .site-header,
    .site-footer,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .promise-band,
    .principles,
    .image-story,
    .image-story-reverse,
    .contact-form {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 42px;
    }

    .hero-image img {
        height: 320px;
    }

    .image-story-reverse img,
    .image-story-reverse div {
        order: initial;
    }
}
