:root {
    --accent: #8a4b25;
    --accent-dark: #5f3218;
    --accent-soft: #f3e9df;
    --ink: #211914;
    --muted: #6f635b;
    --line: #eadfd5;
    --soft: #faf6f1;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(52, 34, 24, .14);
}

* {
    box-sizing: border-box;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

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

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: #3a4150;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-weight: 750;
    cursor: pointer;
}

.btn:hover,
.header-cta:hover {
    background: var(--accent-dark);
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, .78fr);
    gap: clamp(24px, 5vw, 76px);
    padding: 58px clamp(18px, 5vw, 76px) 72px;
    background:
        linear-gradient(90deg, rgba(33, 25, 20, .9), rgba(74, 43, 25, .46)),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=82") center/cover;
    color: #fff;
}

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

.eyebrow {
    display: inline-flex;
    margin: 0 0 18px;
    color: #f4d8bc;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.06;
}

h1 {
    font-size: clamp(42px, 7vw, 82px);
    max-width: 820px;
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
}

h3 {
    font-size: 22px;
}

.hero p {
    max-width: 670px;
    color: rgba(255, 255, 255, .88);
    font-size: 19px;
}

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

.btn.secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .12);
}

.lead-panel {
    align-self: center;
    width: 100%;
    padding: 26px;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
}

.lead-panel h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.lead-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.field {
    display: grid;
    gap: 6px;
}

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

label {
    color: #3d4452;
    font-weight: 750;
    font-size: 13px;
}

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

input:focus,
textarea:focus {
    outline: 3px solid rgba(138, 75, 37, .18);
    border-color: var(--accent);
}

.consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 14px 0;
    color: #4e5665;
    font-size: 12px;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.section {
    padding: 78px clamp(18px, 5vw, 76px);
}

.section .eyebrow,
.legal .eyebrow,
.admin-shell .eyebrow {
    color: var(--accent);
}

.section.soft {
    background: var(--soft);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 30px;
}

.section-head p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

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

.service-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 23, 28, .06);
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service-card div {
    padding: 18px;
}

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

.trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.trust-item {
    padding: 22px;
    border-left: 4px solid var(--accent);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(21, 23, 28, .05);
}

.page-hero {
    min-height: 420px;
    display: grid;
    align-items: end;
    padding: 72px clamp(18px, 5vw, 76px);
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 25, 20, .88), rgba(74, 43, 25, .34)), var(--hero-image) center/cover;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
}

.copy {
    max-width: 900px;
}

.copy h2,
.copy h3 {
    margin-top: 34px;
}

.copy ul {
    padding-left: 20px;
}

.side-box {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.side-box a {
    color: var(--accent);
    font-weight: 800;
}

.legal {
    max-width: 980px;
}

.legal h1 {
    color: var(--ink);
    font-size: clamp(36px, 5vw, 58px);
}

.notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #126334;
    background: #eaf8ef;
}

.notice.error {
    color: #70401f;
    background: var(--accent-soft);
}

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1fr;
    gap: 26px;
    padding: 42px clamp(18px, 5vw, 76px);
    color: #efe4d8;
    background: #211914;
}

.site-footer p,
.site-footer span {
    color: #c9b8a8;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-top: 6px;
}

.admin-body {
    min-height: 100vh;
    background: var(--soft);
}

.admin-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: #4b5360;
    font-size: 13px;
    background: #fafbfc;
}

.link-button {
    border: 0;
    color: var(--accent);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(16, 18, 24, .58);
}

.modal.is-open {
    display: grid;
}

.modal-panel {
    width: min(760px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.detail {
    padding: 12px;
    border-radius: 8px;
    background: var(--soft);
}

.detail span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail strong {
    overflow-wrap: anywhere;
}

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

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

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

    .side-box {
        position: static;
    }
}

@media (max-width: 680px) {
    .hero {
        padding-top: 34px;
    }

    .form-grid,
    .service-grid,
    .trust-row,
    .site-footer,
    .modal-body {
        grid-template-columns: 1fr;
    }

    .brand {
        min-width: 0;
    }

    .header-cta {
        width: 100%;
    }
}
