:root {
    --green-950: #071b11;
    --green-900: #0d2d1e;
    --green-800: #12402b;
    --green-700: #1f6b49;
    --green-100: #e7f2ea;
    --green-50: #f4f8f4;
    --ink: #111412;
    --muted: #5c6760;
    --line: #dce5de;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(7, 27, 17, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--green-50);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--green-800);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 24px;
}

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

.brand strong {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1;
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--green-900);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: var(--green-800);
}

main {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(34px, 7vw, 84px) 0 36px;
}

.hero-copy h1 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, serif;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
}

.page-title h1 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.04;
}

.hero-copy p:not(.eyebrow),
.page-title p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--green-800);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--green-800);
}

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

.info-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 30px 0 52px;
}

.info-grid article,
.form-card,
.document-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(7, 27, 17, 0.07);
}

.info-grid article,
.form-card {
    padding: 22px;
}

h2 {
    margin: 0 0 14px;
    color: var(--green-950);
    font-family: Georgia, serif;
    font-size: 24px;
}

.rates {
    margin: 0;
}

.rates div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.rates dt {
    color: var(--muted);
}

.rates dd {
    margin: 0;
    color: var(--green-900);
    font-weight: 900;
}

address {
    font-style: normal;
}

.map {
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
}

.document-preview {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 58px;
    padding: 28px;
}

.document-preview h2 {
    font-size: 32px;
}

.page-title {
    padding: 48px 0 28px;
}

.documents-shell {
    margin-bottom: 60px;
}

.doc-section {
    margin: 12px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.doc-section .doc-section {
    margin: 10px 14px;
    background: var(--green-50);
}

.doc-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    color: var(--green-950);
    font-weight: 900;
    cursor: pointer;
}

.doc-section summary small {
    color: var(--muted);
    font-weight: 700;
}

.doc-list {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

.doc-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--green-900);
    text-decoration: none;
}

.doc-link:hover {
    border-color: var(--green-700);
}

.doc-link small {
    flex: 0 0 auto;
    color: var(--muted);
}

.login-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 32px;
    align-items: start;
    padding: 56px 0;
}

.login-panel h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(34px, 5vw, 58px);
}

.form-card {
    display: grid;
    gap: 10px;
}

.form-card h2 {
    margin-bottom: 4px;
}

label {
    color: var(--green-950);
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #b8c8bd;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.alert {
    width: min(1160px, calc(100% - 36px));
    margin: 10px auto;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.alert.error {
    border: 1px solid #7f1d1d;
    color: #7f1d1d;
    background: #fff1f1;
}

.alert.success {
    border: 1px solid var(--green-700);
    color: var(--green-900);
    background: var(--green-100);
}

.form-card .alert {
    width: auto;
    margin: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: var(--white);
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .site-header,
    .site-footer,
    .document-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .login-panel,
    .info-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 28px;
    }

    .brand strong {
        font-size: 21px;
    }
}

@media (max-width: 560px) {
    main {
        width: min(100% - 24px, 1160px);
    }

    .site-nav a {
        padding: 8px 9px;
    }

    .doc-link,
    .doc-section summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
