:root {
    /* #14141e, #613dc1, #97dffc, #75dfd3 */
    --c-bg: #14141e;
    --c-violet: #613dc1;
    --c-cyan: #97dffc;
    --c-teal: #75dfd3;
    --bg: var(--c-bg);
    --bg-elevated: #1a1a2a;
    --surface: #1f1f2e;
    --text: #f0f4fc;
    --text-muted: #9eb4c8;
    --accent: var(--c-cyan);
    --accent-hover: var(--c-teal);
    --accent-violet: var(--c-violet);
    --border: rgba(151, 223, 252, 0.14);
    --glow-violet: rgba(97, 61, 193, 0.35);
    --glow-cyan: rgba(117, 223, 211, 0.18);
    --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(--c-cyan);
    color: #14141e;
    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(20, 20, 30, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--glow-cyan);
}

.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,
.logo__img {
    width: auto;
    max-width: 160px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    display: block;
}

.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(--c-cyan);
}

@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;
        flex-direction: column;
    }

    .hero__content {
        order: 0;
    }

    .hero__figure {
        order: 1;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: block;
        max-width: min(100%, 400px);
        max-height: 280px;
        margin: 1.75rem auto 0;
    }
}

.hero__bg {
    position: absolute;
    inset: 0;
    /* Герой: только веньетка и тон, без main.jpg */
    background-image:
        radial-gradient(ellipse 90% 80% at 15% 50%, rgba(97, 61, 193, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 20%, rgba(117, 223, 211, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at right center,
            rgba(20, 20, 30, 0) 0%,
            rgba(20, 20, 30, 0.15) 40%,
            rgba(20, 20, 30, 0.45) 62%,
            rgba(20, 20, 30, 0.78) 82%,
            rgba(20, 20, 30, 0.94) 100%),
        linear-gradient(90deg,
            rgba(20, 20, 30, 0) 0%,
            rgba(20, 20, 30, 0) 50%,
            rgba(20, 20, 30, 0.2) 70%,
            rgba(20, 20, 30, 0.5) 86%,
            rgba(20, 20, 30, 0.75) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    background-color: var(--bg);
}

.hero__figure {
    position: absolute;
    right: clamp(0.5rem, 3vw, 1.5rem);
    /* Ниже центра: якорь по вертикали смещён вниз */
    top: 62%;
    transform: translateY(-50%);
    z-index: 0;
    max-width: min(58%, 640px);
    max-height: min(82vh, 620px);
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.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;
}

.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, #613dc1 0%, #4a2d9e 50%, #3d6d8a 100%);
    color: #e8faff;
    box-shadow: 0 8px 28px var(--glow-violet), 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(151, 223, 252, 0.35);
}

.btn--bonus:hover {
    background: linear-gradient(135deg, #7048d4 0%, #5a3aad 40%, #4a9a9a 100%);
    color: #f4fcff;
    border-color: rgba(117, 223, 211, 0.5);
    box-shadow: 0 10px 32px var(--glow-violet), 0 0 24px var(--glow-cyan);
}

/* Главная 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(151, 223, 252, 0.45);
    box-shadow:
        0 4px 0 rgba(33, 24, 55, 0.9),
        0 16px 40px rgba(97, 61, 193, 0.35),
        0 0 0 1px rgba(117, 223, 211, 0.2) inset,
        0 1px 0 rgba(151, 223, 252, 0.25) inset;
    text-shadow: 0 1px 2px rgba(20, 20, 30, 0.5);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--bonus-hero:hover {
    filter: brightness(1.06) saturate(1.05);
    box-shadow:
        0 4px 0 rgba(33, 24, 55, 0.85),
        0 22px 50px rgba(97, 61, 193, 0.45),
        0 0 32px rgba(117, 223, 211, 0.2),
        0 0 0 1px rgba(151, 223, 252, 0.2) inset,
        0 1px 0 rgba(151, 223, 252, 0.35) 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: linear-gradient(135deg, var(--c-violet), #4f32a3);
    color: var(--c-cyan);
    border-color: rgba(117, 223, 211, 0.4);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #7048d4, #613dc1);
    color: #e8fbff;
}

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

.btn--ghost:hover {
    border-color: rgba(151, 223, 252, 0.35);
    background: rgba(97, 61, 193, 0.12);
    color: var(--c-cyan);
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background: linear-gradient(180deg, #181824 0%, #1a1a2a 100%);
    border-block: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(97, 61, 193, 0.08);
}

/* Второй блок (#about): только <img.about__photo> скруглён; секция — обычный section--alt */
#about {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Затемнение слева для текста, без скругления всего блока */
    background: linear-gradient(105deg,
        rgba(24, 24, 36, 0.88) 0%,
        rgba(24, 24, 36, 0.55) 42%,
        rgba(24, 24, 36, 0.12) 68%,
        transparent 88%);
}

.about__photo {
    position: absolute;
    right: clamp(0.5rem, 3vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    max-width: min(48%, 520px);
    max-height: min(70vh, 420px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1.25rem;
    border: 1px solid rgba(151, 223, 252, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

#about > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .about__photo {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: block;
        max-width: 100%;
        max-height: 220px;
        margin: 0 auto 1.5rem;
        object-fit: contain;
    }
}

.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);
    box-shadow: 0 0 0 1px rgba(97, 61, 193, 0.06);
}

.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: linear-gradient(145deg, var(--c-violet), #4f32a0);
    color: var(--c-cyan);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(117, 223, 211, 0.3);
}

.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);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: rgba(97, 61, 193, 0.35);
    box-shadow: 0 6px 28px rgba(97, 61, 193, 0.15);
}

.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;
}

.spec-table {
    width: 100%;
    max-width: 48rem;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--border);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    background: linear-gradient(180deg, #252536, #1f1f2e);
    color: var(--c-cyan);
    font-weight: 600;
}

tbody th[scope="row"] {
    color: var(--c-teal);
    background: rgba(97, 61, 193, 0.08);
}
