:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --ink: #101828;
    --muted: #5b6b82;
    --accent: #1d4ed8;
    --accent-dark: #173ea8;
    --accent-soft: #e8eefc;
    --border: #e3e8ef;
    --navy: #0b1b3a;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.45);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Шапка */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

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

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--ink);
}

.logo-mark {
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav > a {
    color: var(--ink);
    font-weight: 500;
}

.site-nav > a:hover {
    color: var(--accent);
}

.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--accent-soft);
    border-radius: 999px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lang-switch a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.7);
}

.lang-switch a.is-active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    border-radius: 2px;
}

/* Первый экран */
.hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 112px;
    color: #ffffff;
    background:
        radial-gradient(1000px 420px at 78% -10%, rgba(96, 165, 250, 0.35), transparent 60%),
        linear-gradient(135deg, #0b1b3a 0%, #123369 58%, #1b4fa8 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #dbe7ff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lead {
    max-width: 640px;
    margin-bottom: 36px;
    color: #c9d8f5;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
    background: #dbe7ff;
    color: var(--navy);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

/* Секции */
.section {
    padding: 76px 0;
}

.section-alt {
    background: #eef2f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 48px;
    align-items: start;
}

.section h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.section-body p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-body .note {
    margin-top: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-size: 0.97rem;
}

.contact-list {
    margin: 28px 0 0;
}

.contact-list dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Подвал */
.site-footer {
    padding: 56px 0 24px;
    background: var(--navy);
    color: #b9c7e4;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 40px;
}

.site-footer .logo-mark {
    color: #ffffff;
}

.site-footer .logo-text {
    color: #b9c7e4;
}

.footer-tagline {
    margin: 12px 0 0;
    max-width: 320px;
    font-size: 0.94rem;
}

.footer-contacts a {
    color: #ffffff;
    font-weight: 600;
}

.footer-contacts a:hover {
    color: #dbe7ff;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* 404 */
.section .eyebrow {
    margin-bottom: 14px;
    border-color: var(--border);
    color: var(--muted);
}

/* Адаптивность */
@media (max-width: 820px) {
    .section-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 24px 22px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > a {
        width: 100%;
        padding: 10px 0;
    }

    .lang-switch {
        margin-top: 12px;
    }

    .hero {
        padding: 76px 0 84px;
    }

    .section {
        padding: 56px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
