/* Палитра и шрифты взяты с лендинга, чтобы внутренние страницы не выбивались из стиля. */
:root {
    --bg: #f4f6fa;
    --fg: #101828;
    --muted: #5c6b84;
    --accent: #124fb2;
    --border: #d5dded;
    --error: #c1361f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-header,
main,
.site-footer {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
}

.brand {
    font-family: 'Opsilon', 'Opsilon Fallback', 'Rubik', 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--fg);
}

nav a {
    color: var(--accent);
    margin-right: 1rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

h1,
h2 {
    font-family: 'Opsilon', 'Opsilon Fallback', 'Rubik', 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    font-size: 1.9rem;
    line-height: 1.2;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

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

.error,
.field-error {
    color: var(--error);
}

.field-error {
    margin: -0.5rem 0 0.75rem;
    font-size: 0.9rem;
}

.course-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.course-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.course-card h3 {
    margin-top: 0;
}

.price {
    font-weight: 600;
}

form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

form label.checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-weight: 400;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.55rem 0.7rem;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button,
.button {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    font: inherit;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

/* Служебное поле формы: скрыто от людей и недоступно с клавиатуры. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.legal dd {
    margin: 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent);
    margin-right: 1rem;
}

.hint {
    margin: -0.5rem 0 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.features {
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Юридические документы ---------- */

main.doc {
    max-width: 46rem;
}

main.doc h2 {
    margin-top: 2.2rem;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--accent);
}

main.doc p {
    margin: 0 0 0.9rem;
    text-wrap: pretty;
}

main.doc ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

main.doc li {
    margin-bottom: 0.4rem;
}

/* Номер пункта договора: висит слева, не мешает читать текст. */
.clause {
    display: inline-block;
    min-width: 2.6rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.doc-date {
    color: var(--muted);
    font-size: 0.9rem;
}
