:root {
    /* Темно-синий "почти серый" + белый */
    --bg: #101820;
    --bg-elevated: #131f2a;
    --surface: #16222e;
    --text: #ffffff;
    --text-muted: #cbd6e3;
    --accent: #ffffff;
    --accent-hover: #e7effa;
    --border: rgba(255, 255, 255, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max: 1120px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

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

code {
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #111;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 24, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

/* Навигация в одну строку; при узком экране — горизонтальный скролл */
.site-nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.site-nav::-webkit-scrollbar {
    height: 4px;
}

.site-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.logo {
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    max-height: 48px;
}

.logo__text {
    display: inline-block;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.02em;
    font-size: 1.35rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 1px;
}

.site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list > li {
    flex-shrink: 0;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.35rem 0;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

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

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        flex: none;
        min-width: unset;
        overflow-x: hidden;
        -webkit-overflow-scrolling: auto;
    }

    .site-nav.is-open {
        max-height: 320px;
        overflow-y: auto;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.25rem;
        gap: 0;
    }

    .site-nav a {
        display: block;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border);
        white-space: normal;
        font-size: 1rem;
    }

    .site-nav li:last-child a {
        border-bottom: 0;
    }
}

.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0 3.25rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2.75rem 0 2.25rem;
    }

    .hero__promo {
        margin-top: 0.75rem;
        padding-top: 0.25rem;
    }
}

.hero__bg {
    position: absolute;
    inset: 0;
    /* Фон первого экрана + веньетка только справа */
    background-image:
        /* Плавное затухание прямо в области края картинки */
        radial-gradient(ellipse at right center,
            rgba(16, 24, 32, 0) 0%,
            rgba(16, 24, 32, 0.12) 40%,
            rgba(16, 24, 32, 0.38) 62%,
            rgba(16, 24, 32, 0.7) 82%,
            rgba(16, 24, 32, 0.92) 100%),
        linear-gradient(90deg,
            rgba(16, 24, 32, 0) 0%,
            rgba(16, 24, 32, 0) 55%,
            rgba(16, 24, 32, 0.18) 72%,
            rgba(16, 24, 32, 0.42) 86%,
            rgba(16, 24, 32, 0.68) 100%),
        url("../images/1.jpg");
    /* Чуть увеличим высоту, чтобы край картинки меньше "вылезал" в стык */
    background-size: auto 104%;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: var(--bg);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__lead {
    margin: 0 0 1.5rem;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero__cta {
    margin-top: 0.25rem;
}

.hero__promo {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.hero__promo-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.promo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promo-box__input {
    flex: 0 0 auto;
    width: 18ch;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.promo-box__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.promo-box__btn {
    white-space: nowrap;
}

.promo-box__btn.btn {
    padding-inline: 1.05rem;
}

@media (max-width: 520px) {
    .promo-box {
        flex-direction: column;
        align-items: stretch;
    }

    .promo-box__btn {
        width: 100%;
    }
}

.cta-block {
    margin-top: 1.5rem;
}

.btn--bonus {
    display: inline-flex;
    min-width: min(100%, 22rem);
    justify-content: center;
    padding-block: 0.95rem;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #ffffff, #cfe0ff);
    color: #111;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.btn--bonus:hover {
    background: linear-gradient(135deg, #e7effa, #bcd2ff);
    color: #111;
}

/* Главная CTA в герое — крупнее и заметнее */
.btn--bonus-hero {
    width: 100%;
    max-width: min(100%, 32rem);
    min-height: 3.75rem;
    padding: 1.15rem 1.75rem;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.05em;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.15) inset,
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--bonus-hero:hover {
    filter: brightness(1.05);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.18),
        0 22px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 0, 0, 0.12) inset,
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn--bonus-hero:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 10px 28px rgba(0, 0, 0, 0.45);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--accent);
    color: #111;
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #111;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--bg-elevated);
    border-block: 1px solid var(--border);
}

.section__head {
    max-width: 640px;
    margin-bottom: 2rem;
}

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

.section__intro {
    margin: 0;
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card__label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.stat-card__value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-card__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.35rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.steps__num {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.steps__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.steps__item p {
    margin: 0;
    color: var(--text-muted);
}

.grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.card__text {
    margin: 0;
    color: var(--text-muted);
}

.notice-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
    max-width: 52rem;
}

.notice-list li {
    margin-bottom: 0.5rem;
}

.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-footer__note {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 28rem;
}
