:root {
    --ink: #1f2933;
    --muted: #64748b;
    --line: #d8e0e8;
    --surface: #ffffff;
    --soft: #f4f7f9;
    --brand: #126b5f;
    --brand-dark: #0b463f;
    --accent: #c8942e;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-size: 14px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--brand-dark);
}

.hero {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(8, 44, 39, 0.92), rgba(18, 107, 95, 0.72)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect width='1600' height='900' fill='%23126b5f'/%3E%3Cpath d='M0 620c230-90 420-92 650-25 260 76 520 61 950-105v410H0z' fill='%230b463f' opacity='.55'/%3E%3Cpath d='M0 705c210-58 430-42 690 48 250 86 550 74 910-36v183H0z' fill='%23c8942e' opacity='.38'/%3E%3C/svg%3E");
    background-position: center;
    background-size: cover;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 82px 20px 92px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #d7f1eb;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
}

.hero p {
    max-width: 700px;
    margin-bottom: 28px;
    color: #eefbf8;
    font-size: 19px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    color: var(--brand-dark);
    background: #e1f1ed;
}

.button.danger {
    background: var(--danger);
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 54px 20px;
}

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

.section-header h2 {
    margin-bottom: 0;
    font-size: 30px;
}

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

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

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

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

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-body {
    padding: 22px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.function-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.function-list li {
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: #fff;
}

.contact-band {
    background: var(--brand-dark);
}

.contact-band .section {
    color: #fff;
}

.contact-band a,
.contact-band .meta {
    color: #d7f1eb;
}

.site-footer {
    padding: 24px 20px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.admin-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 20px 70px;
}

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

.panel {
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin: 0;
    font-size: 22px;
}

.panel-body {
    padding: 20px;
}

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

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

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

label {
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

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

textarea {
    min-height: 110px;
    resize: vertical;
}

.repeat-item {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #dcfce7;
    color: #14532d;
}

.error {
    background: #fee2e2;
    color: #7f1d1d;
}

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

@media (max-width: 760px) {
    .nav,
    .section-header,
    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero-inner {
        padding: 58px 20px 68px;
    }

    .grid.three,
    .grid.two,
    .form-grid {
        grid-template-columns: 1fr;
    }
}
