:root {
    --bg: #eef3f9;
    --bg-deep: #dfe8f2;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-alt: #edf3fb;
    --text: #172131;
    --muted: #607087;
    --border: rgba(114, 137, 168, 0.2);
    --border-strong: rgba(31, 76, 143, 0.18);
    --primary: #1d4d90;
    --primary-dark: #14345e;
    --primary-soft: rgba(29, 77, 144, 0.1);
    --accent: #0d746e;
    --accent-soft: rgba(13, 116, 110, 0.1);
    --highlight: #f2b15b;
    --shadow: 0 24px 60px rgba(19, 34, 59, 0.08);
    --shadow-soft: 0 16px 34px rgba(19, 34, 59, 0.06);
    --radius: 22px;
    --radius-small: 16px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(29, 77, 144, 0.13), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(13, 116, 110, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 58%, var(--bg-deep) 100%);
    line-height: 1.58;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
    opacity: 0.55;
}

main {
    position: relative;
    overflow: hidden;
}

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

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

a:hover {
    text-decoration: underline;
}

code {
    padding: 0.12rem 0.4rem;
    border-radius: 8px;
    background: rgba(23, 33, 49, 0.06);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(242, 246, 251, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(114, 137, 168, 0.18);
    box-shadow: 0 10px 24px rgba(20, 52, 94, 0.04);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-mark-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 239, 247, 0.88));
    border: 1px solid rgba(114, 137, 168, 0.18);
    box-shadow: var(--shadow-soft);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.brand-text strong {
    display: block;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nav a {
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
    color: var(--primary-dark);
    background: rgba(29, 77, 144, 0.08);
}

.header-button {
    min-height: 42px;
    padding-inline: 1rem;
}

.hero {
    position: relative;
    padding: 5rem 0 3.2rem;
}

.hero::after {
    content: "";
    position: absolute;
    right: -12rem;
    top: -2rem;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 77, 144, 0.13), transparent 65%);
    filter: blur(6px);
    pointer-events: none;
}

.hero-home {
    padding-top: 5.4rem;
}

.hero-inner {
    padding: 4rem 0 2.4rem;
}

.hero-grid,
.two-column {
    display: grid;
    grid-template-columns: 1.22fr 0.98fr;
    gap: 1.3rem;
    align-items: stretch;
}

.hero-copy {
    align-self: center;
}

.eyebrow,
.section-kicker,
.card-tag,
.inline-badge,
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eyebrow,
.section-kicker,
.card-tag {
    padding: 0.34rem 0.8rem;
    border-radius: 999px;
    background: rgba(29, 77, 144, 0.08);
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.12;
}

h1 {
    margin: 0.85rem 0 1rem;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
    font-size: clamp(2.35rem, 4.5vw, 4.25rem);
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 0.9rem;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
    font-size: clamp(1.55rem, 2.6vw, 2.55rem);
    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
}

.lead {
    max-width: 62ch;
    margin: 0;
    font-size: 1.08rem;
    color: var(--muted);
}

.section-text {
    margin: 0;
    color: var(--muted);
    max-width: 72ch;
}

.hero-card,
.info-card,
.content-card,
.preview-card,
.cta-strip,
.release-entry,
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card,
.content-card,
.legal-card {
    padding: 1.55rem;
}

.hero-card p,
.content-card p,
.legal-card p {
    color: var(--muted);
}

.hero-card p,
.content-card p,
.legal-card p,
.hero-card h2,
.content-card h2,
.legal-card h2 {
    margin-top: 0;
}

.hero-card .feature-list,
.content-card .feature-list,
.content-card .steps-list,
.hero-card .button-row,
.content-card .button-row,
.content-card .button-column {
    margin-top: 1rem;
}

.hero-visual-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 252, 0.94)),
        var(--surface);
    border-color: var(--border-strong);
}

.brand-placeholder-image,
.showcase-placeholder-image {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(114, 137, 168, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 243, 251, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.placeholder-note {
    margin: 1rem 0 0;
    color: var(--muted);
}

.badge-row,
.button-row,
.button-column {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-row {
    margin: 1.15rem 0 1.4rem;
}

.button-column {
    flex-direction: column;
    align-items: flex-start;
}

.inline-badge {
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(114, 137, 168, 0.16);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.metric-chip {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(114, 137, 168, 0.15);
}

.metric-chip strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.metric-chip span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.76rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(180deg, #2360b2 0%, var(--primary) 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(29, 77, 144, 0.24);
}

.button-primary:hover {
    background: linear-gradient(180deg, #2057a1 0%, var(--primary-dark) 100%);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border-color: rgba(114, 137, 168, 0.18);
}

.button-ghost {
    background: rgba(29, 77, 144, 0.08);
    color: var(--primary-dark);
    border-color: rgba(29, 77, 144, 0.08);
    box-shadow: none;
}

.section {
    position: relative;
    padding: 1.8rem 0 2.25rem;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 243, 251, 0.82));
}

.section-heading {
    margin-bottom: 1.2rem;
    max-width: 76ch;
}

.section-heading h2 {
    margin-bottom: 0.55rem;
}

.card-grid,
.preview-grid,
.steps-grid {
    display: grid;
    gap: 1rem;
}

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

.card-grid-3,
.preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.preview-card {
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.info-card p,
.preview-card p,
.content-card p {
    margin: 0;
    color: var(--muted);
}

.step-card {
    padding: 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(29, 77, 144, 0.14), rgba(13, 116, 110, 0.1));
    color: var(--primary-dark);
    font-weight: 800;
}

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

.feature-list,
.steps-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text);
}

.feature-list li,
.steps-list li {
    margin-bottom: 0.52rem;
}

.preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.preview-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(114, 137, 168, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 251, 0.95));
}

.preview-card .card-tag {
    align-self: flex-start;
}

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.55rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 251, 0.92)),
        var(--surface);
    border-color: var(--border-strong);
}

.cta-strip h2 {
    margin-bottom: 0.45rem;
}

.cta-strip p {
    margin: 0;
    color: var(--muted);
    max-width: 64ch;
}

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

.release-summary,
.release-list,
.download-card {
    display: grid;
    gap: 1rem;
}

.release-entry {
    padding: 1.25rem;
}

.meta-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-item {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
}

.meta-item strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-panel {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(13, 116, 110, 0.08);
    border: 1px solid rgba(13, 116, 110, 0.16);
}

.requisites-block {
    margin: 0;
    padding: 1rem 1.1rem;
    white-space: pre-wrap;
    border-radius: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font: inherit;
}

.narrow-content {
    width: min(100%, 860px);
}

.legal-card {
    padding: 1.5rem;
}

.site-footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid rgba(114, 137, 168, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(235, 242, 249, 0.95));
}

.site-footer h3 {
    margin: 0.75rem 0 0.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.9fr 0.9fr;
    gap: 1.3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-note {
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 1120px) {
    .metric-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .two-column,
    .card-grid-4,
    .card-grid-3,
    .preview-grid,
    .footer-grid,
    .meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .hero-grid,
    .two-column,
    .card-grid-4,
    .card-grid-3,
    .preview-grid,
    .footer-grid,
    .meta-grid,
    .metric-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        padding-inline: 0.8rem;
    }

    .hero {
        padding-top: 3.6rem;
    }

    .container {
        width: min(calc(100% - 1.2rem), var(--container));
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
