*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}

:root[data-theme="dark"] body {
    background: radial-gradient(ellipse 1200px 600px at 50% 0%, #201a35 0%, var(--color-surface) 55%);
}

@media (max-width: 640px) {
    :root {
        --nav-clearance: 76px;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 var(--space-3);
}

p {
    margin: 0 0 var(--space-4);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

.section {
    padding: var(--space-8) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-7) 0;
    }
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.section-kicker::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.text-accent {
    color: var(--color-accent);
}

.link-more {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.link-more:hover {
    color: var(--color-accent-hover);
}

.form-flash {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 14px;
}

.form-flash--success {
    background: #e6f6ec;
    color: #1e7a3e;
}

.form-flash--error {
    background: #fdeaea;
    color: #b3261e;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
