:root {
    --primary: #16375f;
    --primary-dark: #0f2744;
    --primary-soft: #e8eef6;
    --secondary: #1a5fb4;
    --accent: #e36b12;
    --accent-dark: #c75a0c;
    --ok: #067647;
    --warn: #b54708;
    --danger: #b42318;
    --info: #175cd3;
    --text: #152033;
    --muted: #5b6777;
    --surface: #ffffff;
    --paper: #f4f7fb;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(15, 39, 68, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 39, 68, 0.10);
    --header-h: 88px;
    --font: "Josefin Sans", sans-serif;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.65;
    font-weight: 400;
}

body.is-nav-open {
    overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.12rem; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.75rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.skip-link {
    position: absolute; left: 12px; top: -44px; z-index: 2000;
    background: var(--primary-dark); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.section { padding: 80px 0; }
.section.paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
    color: var(--accent); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: .76rem; margin-bottom: 10px;
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
