:root {
    --bg: #f5f8fb;
    --surface: #ffffff;
    --text: #102033;
    --muted: #526173;
    --brand: #0f8fc7;
    --brand-dark: #0a5677;
    --line: #dce5ee;
    --soft: #eaf7fc;
    --warn: #fff7e6;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(16, 32, 51, 0.1);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 84px;
}

.logo {
    display: block;
    width: auto;
    height: 72px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
}

nav a {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
    color: var(--brand);
}

.doc-hero {
    padding: 58px 0 44px;
    background: linear-gradient(135deg, #ffffff, #eef8fd);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

h1 {
    max-width: 900px;
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: 0;
}

.doc-hero p {
    max-width: 820px;
    color: var(--muted);
    font-size: 19px;
}

.section {
    padding: 48px 0;
}

.section.white {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 18px;
}

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

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

.panel,
.notice,
.step,
.form-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel,
.notice,
.step {
    padding: 20px;
}

.notice {
    background: var(--soft);
    border-color: #c8e9f5;
}

.notice.warn {
    background: var(--warn);
    border-color: #f0dca6;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.25;
}

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

ul,
ol {
    margin: 0;
    padding-left: 22px;
}

li + li {
    margin-top: 8px;
}

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

.plain-list li {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

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

th {
    color: #0f2436;
    background: #eef6fb;
    font-size: 14px;
}

td {
    color: #26364a;
}

tr:last-child td {
    border-bottom: 0;
}

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

.btn,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.btn {
    color: #ffffff;
    background: var(--brand);
}

.btn-secondary {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid #b9ddeb;
}

.form-box {
    max-width: 820px;
    padding: 22px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

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

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

footer {
    padding: 28px 0;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--brand);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .header-inner,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .header-inner {
        display: grid;
        align-items: start;
        padding: 12px 0;
    }

    nav {
        margin-left: 0;
    }

    .logo {
        height: 66px;
    }

    .doc-hero {
        padding: 42px 0 34px;
    }

    .actions,
    .btn,
    .btn-secondary {
        width: 100%;
    }
}
