/* Shared behavior and accessible primitives; visual identities live in separate sheets. */
[data-design] {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;
    --container: 1240px;
    --radius: 8px;
    --shadow: 0 16px 48px -30px #17243d55;
    --light: #f4f6f9;
}
[data-design] .wrap {
    max-width: var(--container);
    padding-inline: 32px;
}
[data-design] .wrap.narrow {
    max-width: 820px;
}
[data-design] :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #17243d;
}
[data-design] :is(h1, h2, h3) {
    text-wrap: balance;
    overflow-wrap: normal;
}
[data-design] p {
    text-wrap: pretty;
}
[data-design] .btn {
    border-radius: var(--radius);
    min-height: 46px;
    box-shadow: none;
    font-weight: 600;
    transition:
        background 0.18s,
        transform 0.18s;
}
[data-design] .btn-p {
    background: var(--brand-text);
}
[data-design] .card {
    border-width: 1px;
    border-radius: var(--radius);
    box-shadow: none;
}
[data-design] .band {
    background: var(--ink);
    border-radius: var(--radius);
}
[data-design] .grad-t {
    background: none;
    color: var(--brand-text);
}
[data-design] .field {
    border-radius: var(--radius);
    min-height: 48px;
}
[data-design] .eyebrow {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.08em;
    font-size: 12px;
}
[data-design] .section {
    padding-block: 80px;
}
[data-design] h1.h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.14;
    letter-spacing: -0.045em;
    font-weight: 650;
}
[data-design] h2.head {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 650;
    letter-spacing: -0.035em;
}
[data-design] .lead {
    font-size: 18px;
    line-height: 1.75;
}
.ds-kicker {
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    color: var(--brand-text);
    margin-bottom: 20px;
}
.ds-section {
    padding-block: 96px;
}
.ds-section h2 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.17;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.ds-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
}
.ds-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.ds-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 650;
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.ds-link:hover {
    color: var(--brand-text);
}
.ds-caption {
    font-size: 12px !important;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 16px;
}
.ds-menu {
    position: relative;
}
.ds-menu > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 550;
}
.ds-menu > summary::-webkit-details-marker {
    display: none;
}
.ds-menu > summary::after {
    content: "⌄";
    font-size: 15px;
}
.ds-menu[open] > summary::after {
    transform: rotate(180deg);
}
.ds-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 12px);
    inset-inline-start: 0;
    min-width: 330px;
    background: #fff;
    color: #17243d;
    border: 1px solid #dce2e9;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 16px;
    z-index: 75;
}
.ds-menu-panel a {
    display: block;
    padding: 13px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.ds-menu-panel a:hover {
    background: #f1f4f8;
}
.ds-menu-panel small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #58657b;
    margin-top: 4px;
}
.ds-mobile {
    display: none;
}
.ds-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.ds-desktop {
    display: flex;
    gap: 28px;
    align-items: center;
}
.ds-desktop > a,
.ds-account {
    font-size: 14px;
    font-weight: 550;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.ds-nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.ds-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 25px;
    letter-spacing: -1.2px;
    font-weight: 750;
    white-space: nowrap;
}
.ds-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.ds-logo span span {
    font-weight: 450;
}
.ds-footer {
    margin: 0;
    padding: 64px 0 0;
    background: var(--light);
}
.ds-footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
}
.ds-footer-main p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 280px;
    color: var(--muted);
    margin-top: 20px;
}
.ds-footer-main h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 16px;
}
.ds-footer-main a:not(.ds-logo) {
    display: block;
    font-size: 14px;
    padding-block: 7px;
    color: var(--muted);
}
.ds-footer-main a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.ds-footer-end {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    padding-block: 24px;
    margin-top: 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.ds-footer-end > div {
    display: flex;
    gap: 22px;
}
[data-design] main > section:first-child:not(.ds-home-hero) {
    border-bottom: 1px solid var(--line);
}
[data-design] [id] {
    scroll-margin-top: 110px;
}
[data-design] .pr-free {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 16px 20px;
}
[data-design] .art {
    border-radius: var(--radius);
    box-shadow: none;
}
[data-design] .jumps {
    flex-wrap: wrap;
}
[data-design] .navmenu {
    inset-inline-end: 0;
    inset-inline-start: auto;
    right: auto;
}
@media (max-width: 1050px) {
    .ds-desktop {
        gap: 18px;
    }
    .ds-nav {
        gap: 20px;
    }
    .ds-header-actions {
        gap: 14px;
    }
    .ds-account {
        display: none;
    }
}
@media (max-width: 900px) {
    [data-design] .wrap {
        padding-inline: 24px;
    }
    .ds-desktop {
        display: none;
    }
    .ds-mobile {
        display: block;
        position: static;
    }
    .ds-nav {
        height: 76px;
    }
    .ds-mobile .ds-menu-panel {
        position: absolute;
        inset: 100% 16px auto;
        min-width: 0;
        max-height: calc(100dvh - 100px);
        overflow: auto;
    }
    .ds-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .ds-section {
        padding-block: 64px;
    }
    [data-design] .section {
        padding-block: 60px;
    }
    [data-design] .ll-bar {
        display: none;
    }
    [data-design] {
        padding-bottom: 0;
    }
}
@media (max-width: 600px) {
    [data-design] .wrap {
        padding-inline: 20px;
    }
    .ds-logo {
        font-size: 22px;
    }
    .ds-header-actions > .btn {
        display: none;
    }
    .ds-actions {
        align-items: stretch;
    }
    .ds-actions > .btn {
        width: 100%;
    }
    .ds-section {
        padding-block: 52px;
    }
    .ds-footer-main {
        gap: 28px 20px;
    }
    .ds-footer-main > div:first-child {
        grid-column: 1/-1;
    }
    .ds-footer-end {
        flex-direction: column;
    }
    .ds-kicker {
        font-size: 11px;
    }
    .ds-footer {
        padding-top: 44px;
    }
    [data-design] .lead {
        font-size: 17px;
    }
    [data-design] main > section:first-child > .wrap {
        padding-block: 42px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-design] *,
    [data-design] *::before,
    [data-design] *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* System colors keep keyboard focus visible in high-contrast modes. */
@media (forced-colors: active) {
    [data-design]
        :is(a, button, input, select, textarea, summary):focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 3px;
        box-shadow: none;
    }
}
