:root {
    color-scheme: dark;
    --bg: #071224;
    --bg-alt: #0b1f38;
    --surface: rgba(12, 28, 52, 0.8);
    --card: rgba(25, 118, 210, 0.08);
    --primary: #1976d2;
    --primary-dark: #0d47a1;
    --secondary: #42a5f5;
    --accent: #64b5f6;
    --text: #f2f6ff;
    --muted: #9bb4dd;
    --border: rgba(100, 149, 237, 0.25);
}

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

/* Предотвращаем горизонтальный скролл и пустоту при zoom */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Убеждаемся, что все элементы не выходят за границы */
section, article, div, header, footer, nav {
    max-width: 100%;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #0d47a1 0%, var(--bg-alt) 45%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: min(1200px, 90%);
    margin-inline: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    width: 100%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.35);
    display: block;
}

.logo strong {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.logo small {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.65rem;
}

.desktop-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.desktop-nav a {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}

.desktop-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.45);
}

.btn.secondary {
    background: rgba(66, 165, 245, 0.12);
    color: #fff;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.lang-toggle {
    margin-left: 1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.8);
}

.mobile-nav a {
    padding: 0.6rem 0;
    color: var(--muted);
}

.hero {
    padding: 4rem 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(100, 181, 246, 0.25), transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2.5rem;
    align-items: stretch;
}

.hero-card,
.hero-card .card {
    height: 100%;
}

.hero-copy h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.hero-meta {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 2rem 0 0;
    color: var(--muted);
}

.hero-card .card {
    padding: 2rem;
}

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

.glass {
    background: rgba(30, 60, 95, 0.3);
    backdrop-filter: blur(12px);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
}

.badge-list li {
    border-radius: 999px;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.timeline {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted);
}

.section {
    padding: 4rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section.alt {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.grid {
    display: grid;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.flex-row.reverse {
    flex-direction: row-reverse;
}

.section-copy {
    flex: 1 1 320px;
}

.section-media {
    flex: 1 1 300px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.perm-list {
    list-style: none;
    padding: 0;
    color: var(--muted);
}

.perm-list li {
    margin-bottom: 0.8rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.screen-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.carousel-window {
    flex: 1;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
.carousel-window.dragging {
    cursor: grabbing;
}
    transition: transform 0.4s ease;
}

.carousel-item {
    flex: 0 0 clamp(240px, 32vw, 320px);
    margin: 0;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(7, 18, 36, 0.9);
    border: 1px solid rgba(100, 149, 237, 0.25);
    box-shadow: 0 30px 60px rgba(7, 18, 36, 0.6);
    text-align: center;
}

.carousel-item img {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-item figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.carousel-btn {
    border: none;
    background: rgba(25, 118, 210, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(25, 118, 210, 0.3);
}

.carousel-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .screen-carousel {
        flex-direction: column;
    }

    .carousel-btn {
        order: 3;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 12, 0.85);
}

.lightbox-content {
    position: relative;
    max-width: min(90%, 900px);
    width: 100%;
    background: rgba(7, 18, 36, 0.95);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 149, 237, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.lightbox-content img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-content p {
    margin-top: 1rem;
    color: var(--muted);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.faq {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cta {
    text-align: center;
}

.agreements-card {
    border-radius: 24px;
    padding: 2rem;
    background: rgba(7, 18, 36, 0.85);
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 25px 60px rgba(5, 10, 18, 0.55);
}

.agreements-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.agreement-tab {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.agreement-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(25, 118, 210, 0.4);
}

.agreements-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.site-footer {
    padding: 3rem 0 1.5rem;
    background: rgba(2, 8, 18, 0.85);
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    width: 50px;
    height: 50px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.35);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(25, 118, 210, 0.45);
}

.desktop-only {
    display: inline-flex;
}

@media (max-width: 900px) {
    .desktop-nav,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .mobile-nav.open {
        display: flex;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .hero-card {
        order: 2;
    }

    /* На мобильных хедер уже фиксированный (установлено выше для всех размеров) */
    body {
        padding-top: 0;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



