:root {
    --color-bg: #ffffff;
    --color-surface: #f4f7fb;
    --color-text: #1f2933;
    --color-muted: #5b6775;
    --color-primary: #1f4f77;
    --color-primary-dark: #163956;
    --color-border: #d8e0e8;
    --shadow-soft: 0 18px 45px rgba(31, 41, 51, 0.10);
    --radius: 16px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: #fff;
}

.skip-link:focus {
    left: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--color-text);
    min-width: 260px;
}

.site-brand__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.site-brand__icon {
    display: block;
    width: 58px;
    height: 58px;
}

.site-brand__icon rect {
    fill: var(--color-primary);
}

.site-brand__icon path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.82;
}

.site-brand__icon text {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-brand__name {
    font-weight: 700;
    line-height: 1.2;
}

.primary-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
}

.primary-nav__list a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus,
.current-menu-item > a {
    background: var(--color-surface);
    color: var(--color-primary-dark);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    padding: 0.6rem 0.9rem;
    font: inherit;
    font-weight: 700;
    color: var(--color-text);
}

.site-notice {
    background: #f9fbfd;
    border-bottom: 1px solid var(--color-border);
}

.site-notice__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    padding: 0.7rem 0;
    color: var(--color-text);
    font-size: 0.96rem;
    text-align: center;
}

.site-notice__inner strong {
    color: var(--color-primary-dark);
}

.hero,
.page-hero {
    background: linear-gradient(135deg, #eaf2f8 0%, #ffffff 68%);
    border-bottom: 1px solid var(--color-border);
}

.hero__inner {
    padding: 86px 0 70px;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero__lead {
    max-width: 760px;
    margin: 1.3rem 0 0;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    color: var(--color-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.page-hero .container {
    padding: 60px 0;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.section {
    padding: 64px 0;
}

.section--muted {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.card,
.download-card,
.faq-list details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.card {
    padding: 1.4rem;
}

.card h3 {
    margin-top: 0;
}

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

.card__link {
    font-weight: 800;
}

.prose {
    max-width: 880px;
}

.prose h2 {
    margin-top: 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
}

.prose h2:not(:first-child) {
    margin-top: 2.25rem;
}

.prose p,
.prose li {
    font-size: 1.03rem;
}

.prose li + li {
    margin-top: 0.35rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    padding: 0.82rem 1.15rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
}

.button:hover,
.button:focus {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

.button--secondary {
    background: #fff;
    color: var(--color-primary);
}

.button--secondary:hover,
.button--secondary:focus {
    background: var(--color-surface);
    color: var(--color-primary-dark);
}

.button--small {
    padding: 0.6rem 0.9rem;
}

.contact-card {
    padding: 64px 0;
    background: #fff;
}

.contact-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: 2rem;
    align-items: start;
}

.contact-card__inner--simple {
    display: block;
    max-width: 880px;
}

.contact-card__note {
    max-width: 680px;
    color: var(--color-muted);
}

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

.faq-list {
    max-width: 920px;
}

.faq-list h2 {
    margin-top: 2.5rem;
    font-size: 2rem;
}

.faq-list h2:first-child {
    margin-top: 0;
}

.faq-list details {
    margin: 0.8rem 0;
    padding: 0;
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-weight: 800;
    color: var(--color-text);
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.faq-list details > :not(summary) {
    margin: 1rem 1.2rem;
}

.download-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.site-footer {
    background: #172330;
    color: #f8fafc;
    padding: 36px 0;
}

.site-footer a {
    color: #f8fafc;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: auto;
        padding: 0.85rem 0;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        width: 100%;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav__list {
        display: block;
        padding-top: 0.5rem;
    }

    .primary-nav__list a {
        border-radius: 10px;
    }

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

    .contact-card__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand__name {
        font-size: 0.95rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero__inner,
    .page-hero .container,
    .section,
    .contact-card {
        padding-block: 42px;
    }}
