/* ═══════════════════════════════════════════════════════════
   SOUR ZOOM — MAIN STYLES
   Структура:
   1. RESET & BASE
   2. ГЛОБАЛЬНЫЕ КЛАССЫ
   3. АНИМАЦИИ
   4. ХЕДЕР + ЛОГОТИП
   5. ГЕРОЙ
   6. СЛАЙДЕР ФИЧ
   7. СЕКЦИЯ СКАЧИВАНИЯ
   8. АВТОРИЗАЦИЯ
   9. СТРАНИЦЫ ОШИБОК
   10. ФУТЕР
   11. АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────── 1. RESET & BASE ─────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0d14;
    color: #eef2f6;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}

/* ─────────────────── 2. ГЛОБАЛЬНЫЕ КЛАССЫ ─────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 6px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-title .highlight {
    background: linear-gradient(135deg, #a78bfa, #4f8cf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    color: rgba(255, 255, 255, 0.45);
    max-width: 600px;
    font-size: 1.05rem;
}
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s, border 0.25s;
}
.btn-primary {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 6px 28px rgba(88, 101, 242, 0.25);
}
.btn-primary:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 12px 44px rgba(88, 101, 242, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ─────────────────── 3. АНИМАЦИИ ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─────────────────── 4. ХЕДЕР + ЛОГОТИП ─────────────────── */
body:not(.dashboard-body) header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
body:not(.dashboard-body) header.scrolled {
    background: rgba(10, 13, 20, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}
.nav-cta {
    background: #5865F2;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    color: #fff !important;
    transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    background: #4752c4;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─────────────────── 5. ГЕРОЙ ─────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(180deg, #0a0d14 0%, #1a1a2e 50%, #0a0d14 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(88, 101, 242, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, #a78bfa, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.hero-placeholder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a2e, #2a2a4a);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 4rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ─────────────────── 6. СЛАЙДЕР ФИЧ (COVERFLOW) ─────────────────── */
.features-section {
    padding: 80px 0 60px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}
.features-header .section-desc {
    margin: 0 auto;
}

/* Обёртка с 3D-перспективой */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    user-select: none;
    cursor: grab;
}
.slider-wrapper:active {
    cursor: grabbing;
}

/* Внутренний слой — содержит слайды, все абсолютно спозиционированы в центре */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Сам слайд */
.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
    cursor: pointer;
}
.slide.active {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 30px 80px rgba(88, 101, 242, 0.25);
}

.slide-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 50%, #1e1e38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(88, 101, 242, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(88, 101, 242, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(124, 92, 252, 0.12) 0%, transparent 55%);
    pointer-events: none;
}
.slide-body {
    padding: 24px 32px 32px;
}
.slide-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #eef2f6;
}
.slide-body p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    z-index: 200;
    backdrop-filter: blur(8px);
}
.slider-arrow:hover {
    background: #5865F2;
    border-color: #5865F2;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}
.slider-arrow--prev { left: 30px; }
.slider-arrow--next { right: 30px; }

/* Точки */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}
.slider-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}
.slider-dot.active {
    background: #5865F2;
    width: 32px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
}

/* Адаптив */
@media (max-width: 1024px) {
    .slider-wrapper {
        height: 460px;
        perspective: 1200px;
    }
    .slide {
        width: 420px;
        height: 380px;
    }
    .slide-image {
        height: 220px;
        font-size: 4rem;
    }
    .slide-body {
        padding: 20px 26px 26px;
    }
    .slider-arrow--prev { left: 16px; }
    .slider-arrow--next { right: 16px; }
    .slider-arrow {
        width: 48px;
        height: 48px;
    }
}
@media (max-width: 768px) {
    .slider-wrapper {
        height: 400px;
        perspective: 900px;
    }
    .slide {
        width: 85vw;
        max-width: 400px;
        height: 340px;
    }
    .slide-image {
        height: 180px;
        font-size: 3rem;
    }
    .slide-body {
        padding: 18px 22px 22px;
    }
    .slide-body h3 {
        font-size: 1.15rem;
    }
    .slide-body p {
        font-size: 0.88rem;
    }
    .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    .slider-arrow--prev { left: 8px; }
    .slider-arrow--next { right: 8px; }
}
@media (max-width: 480px) {
    .slider-wrapper {
        height: 370px;
    }
    .slide {
        height: 320px;
    }
    .slide-image {
        height: 150px;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ─────────────────── 7. СЕКЦИЯ СКАЧИВАНИЯ ─────────────────── */
.download-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.download-grid .hero-placeholder {
    max-width: 100%;
}
.download-links {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.download-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.download-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ─────────────────── 8. АВТОРИЗАЦИЯ ─────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}
.auth-card {
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 40px 36px;
    backdrop-filter: blur(8px);
}
.auth-card .logo {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}
.auth-card h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-card .sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}
.auth-card form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s, background 0.3s;
    outline: none;
    margin-bottom: 16px;
    font-family: inherit;
}
.auth-card form input:focus {
    border-color: #5865F2;
    background: rgba(255, 255, 255, 0.06);
}
.auth-error {
    margin: 0 0 14px;
    color: #f87171;
    font-size: 0.9rem;
}
.auth-card form button {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    background: #5865F2;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-card form button:hover {
    background: #4752c4;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
}
.auth-card .auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}
.auth-card .auth-links a {
    color: #93b4f8;
    font-weight: 500;
}
.auth-card .auth-links a:hover {
    text-decoration: underline;
}

/* ─────────────────── 9. СТРАНИЦЫ ОШИБОК ─────────────────── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}
.error-page .code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    background: linear-gradient(135deg, #5865F2, #7c5cfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}
.error-page h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.error-page p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto 30px;
}

/* ─────────────────── 10. ФУТЕР ─────────────────── */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lang-switch button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
}
.lang-switch button:hover {
    color: #fff;
}
.lang-switch button.is-active {
    background: #5865F2;
    color: #fff;
}
.lang-switch--footer {
    margin-bottom: 16px;
}
.doc-page {
    padding: 120px 0 80px;
}
.doc-wrap {
    max-width: 980px;
}
.doc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 32px;
}
.doc-card h2 {
    margin: 28px 0 10px;
    font-size: 1.2rem;
}
.doc-card h2:first-child {
    margin-top: 0;
}
.doc-card p,
.doc-card li {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}
.doc-card a {
    color: #93b4f8;
}
.doc-card ul {
    margin: 0 0 8px 18px;
}
.doc-card code {
    color: #dbe4ff;
}
.platform-grid,
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.platform-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.platform-card i {
    font-size: 1.6rem;
    color: #93b4f8;
}
.platform-card h2 {
    margin: 0;
    font-size: 1.15rem;
}
.platform-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    flex: 1;
}
.platform-card--ready {
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.16), rgba(255, 255, 255, 0.02));
    border-color: rgba(88, 101, 242, 0.35);
}
.platform-soon {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
}
.sitemap-grid .doc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sitemap-grid .doc-card a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.sitemap-grid .doc-card a:hover {
    color: #fff;
}
.license-note {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.55);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-col h4 {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}
.footer-bottom a.license-link {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.15);
    text-underline-offset: 3px;
}
.footer-bottom a.license-link:hover {
    color: #93b4f8;
    text-decoration-color: #93b4f8;
}

/* ─────────────────── 11. АДАПТИВНОСТЬ ─────────────────── */
@media (max-width: 1024px) {
    .hero-grid,
    .download-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .hero-placeholder {
        max-width: 400px;
        margin: 0 auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(10, 13, 20, 0.95);
        padding: 24px 32px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        min-width: 200px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links,
    .platform-grid,
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slide {
        flex: 0 0 420px;
        width: 420px;
    }
    .slide-image {
        height: 220px;
        font-size: 4rem;
    }
    .slider-arrow--prev { left: 16px; }
    .slider-arrow--next { right: 16px; }
    .slider-arrow {
        width: 48px;
        height: 48px;
    }
}
@media (max-width: 768px) {
    .slide {
        flex: 0 0 85vw;
        width: 85vw;
    }
    .slide-image {
        height: 200px;
        font-size: 3.5rem;
    }
    .slide-body {
        padding: 22px 24px 26px;
    }
    .slide-body h3 {
        font-size: 1.2rem;
    }
    .slider-track {
        gap: 24px;
    }
    .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    .slider-arrow--prev { left: 8px; }
    .slider-arrow--next { right: 8px; }
}
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-placeholder {
        max-width: 300px;
        font-size: 2rem;
    }
    .auth-card {
        padding: 30px 20px;
    }
    .footer-links,
    .platform-grid,
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}