:root {
    --page-bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #eef4f5;
    --text: #1f2933;
    --muted: #5f6f7d;
    --heading: #16222d;
    --line: #d7dee5;
    --line-strong: #c2ccd6;
    --accent: #1e6f6c;
    --accent-strong: #145350;
    --accent-soft: #e5f2f1;
    --notice-bg: #edf7f3;
    --notice-border: #9acdbc;
    --shadow: 0 18px 45px rgba(32, 45, 57, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.supplemental-field {
    display: none;
}

.visually-hidden-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #0d413f;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner {
    min-height: 76px;
    padding: 14px 0;
}

.site-name {
    color: var(--heading);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

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

.site-nav a,
.site-footer a {
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

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

.site-nav a:hover,
.site-nav a:focus {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.content {
    padding: 44px 0 64px;
}

.hero {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 42px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--accent);
}

h1,
h2 {
    color: var(--heading);
    line-height: 1.25;
    margin: 0 0 14px;
}

h1 {
    max-width: 820px;
    font-size: 2.4rem;
}

h2 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 16px;
}

p:last-child {
    margin-bottom: 0;
}

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

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

.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(32, 45, 57, 0.05);
}

.card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 24px;
}

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

.card a {
    margin-top: auto;
    font-weight: 700;
}

.panel {
    max-width: 860px;
    padding: 30px;
}

.panel + .panel,
.hero + .panel {
    margin-top: 18px;
}

.form {
    display: grid;
    max-width: 720px;
    gap: 18px;
}

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

label {
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 111, 108, 0.16);
    outline: 0;
}

button {
    width: fit-content;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 18px;
}

button:hover,
button:focus {
    background: var(--accent-strong);
}

.notice {
    margin-bottom: 18px;
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 8px;
    color: #244d43;
    padding: 12px 14px;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    min-height: 84px;
    padding: 18px 0;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    padding: 4px 0;
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 1080px);
    }

    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-nav {
        width: 100%;
    }

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

    .content {
        padding: 28px 0 44px;
    }

    .hero,
    .panel,
    .card {
        padding: 24px;
    }

    h1 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        width: min(100% - 22px, 1080px);
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        font-size: 0.92rem;
    }

    .hero,
    .panel,
    .card {
        padding: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    button {
        width: 100%;
    }
}
