/* =========================================================
   css/landing.css
   Стили для лендинга Bizarc.pro
========================================================= */

/* Корневой контейнер лендинга */
#landing-overlay {
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9000; /* Поверх всего интерфейса, кроме системных модалок */
    background-color: #ffffff;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Ограничитель ширины */
.ld-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ================== ШАПКА ================== */
.ld-header { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    padding: 20px 0; 
    z-index: 10; 
}
.ld-header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.ld-logo {
    display: flex;
    flex-direction: column;
}
.ld-logo-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ld-logo-img {
    height: 38px;
    width: auto;
    border-radius: 6px;
}
.ld-logo-text {
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
}
.ld-logo-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.ld-header-actions {
    display: flex;
    gap: 10px;
}

/* ================== ГЛАВНЫЙ ЭКРАН ================== */
.ld-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    padding-top: 18vh;
    overflow: hidden;
}

/* Слайдер фоновых изображений */
.ld-hero-slides {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.ld-hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.ld-hero-slide.active {
    opacity: 1;
}

.ld-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(to right, rgba(14, 25, 45, 0.3), rgba(26, 98, 212, 0.15));
}

.ld-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 780px;
    margin-left: 8%;
}
.ld-hero-content h1 {
    font-size: 43px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff !important;
}
.ld-hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    color: #ffffff !important;
}
.ld-hero-actions {
    position: absolute;
    bottom: 60px;
    margin-left: 8%;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 2;
}

/* ================== КНОПКИ ================== */
.ld-btn {
    padding: 10px 24px; 
    border-radius: 6px; 
    font-weight: 500;
    cursor: pointer; 
    border: none; 
    font-family: inherit; 
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ld-btn-primary { 
    background-color: #1a62d4; 
    color: #ffffff; 
}
.ld-btn-primary:hover { 
    background-color: #134ca8; 
}
.ld-btn-outline { 
    background-color: transparent; 
    color: #ffffff; 
    border: 1px solid #ffffff; 
}
.ld-btn-outline:hover { 
    background-color: rgba(255, 255, 255, 0.1); 
}
.ld-btn-large { 
    padding: 14px 32px; 
    font-size: 16px; 
}

/* ================== СЕКЦИИ (БЛОКИ С ВИДЕО) ================== */
.ld-section { 
    padding: 100px 0; 
    color: #2d3748; 
}
.ld-bg-grey { 
    background-color: #f8f9fa; 
}
.ld-section-title { 
    text-align: center; 
    font-size: 36px; 
    margin-bottom: 60px; 
    font-weight: 700;
}

.ld-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
/* Четные строки меняют направление для создания "шахматного" порядка */
.ld-feature-row:nth-child(even) { 
    flex-direction: row-reverse; 
}
.ld-feature-row:last-child { 
    margin-bottom: 0; 
}

.ld-feature-text { 
    flex: 1; 
}
.ld-feature-text h3 { 
    font-size: 24px; 
    margin-bottom: 16px; 
    color: #1a62d4; 
    font-weight: 600;
}
.ld-feature-text p { 
    font-size: 16px; 
    color: #4a5568; 
    line-height: 1.6; 
}

/* Бейдж над заголовком */
.ld-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #1a62d4;
    background-color: #e8f0fe;
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.ld-badge-ai {
    color: #7c3aed;
    background-color: #ede9fe;
}
.ld-badge-smk {
    color: #0a7c4e;
    background-color: #d1fae5;
}

/* Тег-результат под описанием */
.ld-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    background-color: #edf2f7;
    border-radius: 20px;
    padding: 4px 14px;
    border: 1px solid #e2e8f0;
}

/* Обёртка медиа + подпись */
.ld-media-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ld-feature-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #e2e8f0;
    display: flex;
}
.ld-feature-media video {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.ld-feature-media:hover video {
    transform: scale(1.02);
}

/* Подпись под видео */
.ld-media-caption {
    font-size: 13px;
    color: #718096;
    text-align: center;
    padding: 10px 12px 0;
    font-style: italic;
}

/* ================== CTA-БЛОК ================== */
.ld-cta {
    background: linear-gradient(135deg, #0e192d 0%, #1a3a6b 100%);
    padding: 80px 0;
    text-align: center;
}
.ld-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.ld-cta-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
}
.ld-cta-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
}

/* ================== МОДАЛЬНОЕ ОКНО (ИНФО-ВИДЕО) ================== */
.ld-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.ld-modal.active { 
    opacity: 1; 
    visibility: visible; 
}
.ld-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000000;
    border-radius: 8px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.ld-modal.active .ld-modal-content { 
    transform: translateY(0); 
}
.ld-modal-content video { 
    width: 100%; 
    border-radius: 8px; 
    display: block; 
    outline: none; 
}
.ld-modal-close {
    position: absolute;
    top: -40px; 
    right: 0;
    font-size: 32px; 
    color: #ffffff;
    background: none; 
    border: none; 
    cursor: pointer;
    transition: color 0.2s;
}
.ld-modal-close:hover {
    color: #cbd5e0;
}

/* ================== ФУТЕР ================== */
.ld-footer {
    background-color: #2d2d2d;
    color: #c0c0c0;
    padding: 40px 0;
    font-size: 14px;
    line-height: 1.6;
}
.ld-footer-top {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.ld-footer-logo-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 36px;
    justify-content: space-between;
}
.ld-footer-logo-top {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.ld-footer-logo-img {
    height: 24px;
    width: auto;
    flex-shrink: 0;
}
.ld-footer-logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}
.ld-footer-logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
    line-height: 1;
}
.ld-footer-copyright {
    font-size: 14px;
    color: #c0c0c0;
    padding-top: 10px;
}
.ld-footer a {
    color: #5ba3d9;
    text-decoration: none;
    transition: color 0.2s;
}
.ld-footer a:hover {
    color: #80c4f0;
    text-decoration: underline;
}
.ld-footer p {
    margin-bottom: 12px;
}
.ld-footer p:last-child {
    margin-bottom: 0;
}

/* ================== БУРГЕР-КНОПКА (скрыта на десктопе) ================== */
.ld-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}
.ld-burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================== МОБИЛЬНОЕ МЕНЮ ================== */
.ld-mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.ld-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ld-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.ld-mobile-menu.active {
    right: 0;
}
.ld-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.ld-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ld-mobile-logo-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
}
.ld-mobile-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a62d4;
}
.ld-mobile-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #4a5568;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.ld-mobile-menu-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ld-mobile-login {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
}
.ld-btn-install {
    background-color: #f0f4ff;
    color: #1a62d4;
    border: 1px solid #1a62d4;
}
.ld-btn-install:hover {
    background-color: #dce8ff;
}

/* ================== АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) ================== */
@media (max-width: 768px) {
    /* Хедер: скрываем кнопки, показываем бургер */
    .ld-header-actions {
        display: none;
    }
    .ld-burger {
        display: flex;
    }

    /* Логотип: уменьшаем */
    .ld-logo-img {
        height: 28px;
    }
    .ld-logo-text {
        font-size: 28px;
    }
    .ld-logo-subtitle {
        font-size: 11px;
    }

    /* Hero: уменьшаем текст */
    .ld-hero {
        padding-top: 12vh;
    }
    .ld-hero-content {
        margin-left: 4%;
    }
    .ld-hero-content h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    .ld-hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* Кнопки внизу hero */
    .ld-hero-actions {
        margin-left: 4%;
        bottom: 40px;
    }
    .ld-hero-actions button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Секции контента */
    .ld-section {
        padding: 60px 0;
    }
    .ld-section-title {
        font-size: 24px;
        margin-bottom: 36px;
    }
    .ld-feature-row,
    .ld-feature-row:nth-child(even) {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 48px;
    }
    .ld-feature-text h3 {
        font-size: 20px;
    }
    .ld-feature-text p {
        font-size: 14px;
    }
    .ld-social-proof-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ld-cta-title {
        font-size: 26px;
    }
    .ld-cta-subtitle {
        font-size: 15px;
    }

    /* Футер */
    .ld-footer {
        padding: 24px 0;
        font-size: 12px;
    }
    .ld-footer-logo-text {
        font-size: 22px;
    }
}