/* ============================================================
   STYLES.CSS — VidOpera Pro (Dark + Light themes)
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ: ТЁМНАЯ ТЕМА (по умолчанию) ---------- */
:root {
    --bg-primary: #0B1E48;
    --bg-secondary: #1A3B7A;
    --bg-tertiary: #2B4B8A;
    --bg-card: #1A3B7A;
    --bg-card-hover: #244B8A;
    --bg-input: #0B1E48;
    --bg-modal: #1A3B7A;
    --bg-header: rgba(11, 30, 72, 0.9);
    --bg-nav: #0B1E48;
    --bg-stat: linear-gradient(180deg, #0B1E48 0%, #1A3B7A 100%);
    --bg-footer: #060F2A;
    --bg-footer-border: #1A3B7A;

    --accent-primary: #00E5FF;
    --accent-dim: #0099AA;
    --accent-gold: #FFB800;
    --accent-gold-dim: #CC9200;
    --accent-success: #00C853;
    --accent-danger: #FF3D00;

    --text-primary: #FFFFFF;
    --text-secondary: #A0C0E0;
    --text-muted: #6B8DB5;
    --text-inverted: #0B1E48;
    --text-on-accent: #0B1E48;

    --border-color: #2B4B8A;
    --border-light: #1A3B7A;
    --shadow-color: rgba(0, 229, 255, 0.2);
    --shadow-gold: rgba(255, 184, 0, 0.3);

    --status-active-bg: rgba(0, 200, 83, 0.2);
    --status-active-text: #00C853;
    --status-past-bg: rgba(160, 192, 224, 0.15);
    --status-past-text: #A0C0E0;
    --status-client-bg: rgba(0, 200, 83, 0.15);
    --status-client-text: #00C853;
    --status-lead-bg: rgba(255, 184, 0, 0.15);
    --status-lead-text: #FFB800;

    --toggle-bg: #2B4B8A;
    --toggle-active-bg: #00E5FF;
    --toggle-slider: #FFFFFF;
}

/* ---------- ПЕРЕМЕННЫЕ: СВЕТЛАЯ ТЕМА ---------- */
[data-theme="light"] {
    --bg-primary: #FFF5F7;
    --bg-secondary: #FFE8EE;
    --bg-tertiary: #FFD9E3;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF0F3;
    --bg-input: #FFF5F7;
    --bg-modal: #FFFFFF;
    --bg-header: rgba(255, 245, 247, 0.95);
    --bg-nav: #FFF5F7;
    --bg-stat: linear-gradient(180deg, #FFF5F7 0%, #FFE8EE 100%);
    --bg-footer: #F5E6EA;
    --bg-footer-border: #FFD9E3;

    --accent-primary: #FF6B8A;
    --accent-dim: #E05575;
    --accent-gold: #FFB800;
    --accent-gold-dim: #CC9200;
    --accent-success: #00C853;
    --accent-danger: #FF3D00;

    --text-primary: #2D1B24;
    --text-secondary: #8A6A7A;
    --text-muted: #B895A5;
    --text-inverted: #FFFFFF;
    --text-on-accent: #FFFFFF;

    --border-color: #FFD9E3;
    --border-light: #FFE8EE;
    --shadow-color: rgba(255, 107, 138, 0.15);
    --shadow-gold: rgba(255, 184, 0, 0.25);

    --status-active-bg: rgba(0, 200, 83, 0.15);
    --status-active-text: #00A844;
    --status-past-bg: rgba(138, 106, 122, 0.12);
    --status-past-text: #8A6A7A;
    --status-client-bg: rgba(0, 200, 83, 0.12);
    --status-client-text: #00A844;
    --status-lead-bg: rgba(255, 184, 0, 0.12);
    --status-lead-text: #CC9200;

    --toggle-bg: #FFD9E3;
    --toggle-active-bg: #FF6B8A;
    --toggle-slider: #FFFFFF;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.highlight {
    color: var(--accent-primary);
}

/* ---------- ЗАГОЛОВКИ ---------- */
.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-header-center .section-title {
    margin-bottom: 8px;
}

.section-header-center .section-subtitle {
    margin-bottom: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: scale(1.02);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--text-inverted);
}

.btn-gold:hover {
    background: var(--accent-gold-dim);
    transform: scale(1.02);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------- ШАПКА ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-primary);
}

.logo-text-light {
    color: var(--accent-primary);
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---------- ГЕРОЙ ---------- */
.hero {
    padding: 100px 0 60px;
    background: var(--bg-stat);
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 24px;
}

.hero-triggers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-triggers li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
}

.trigger-icon {
    flex-shrink: 0;
}

.hero-cta {
    margin-bottom: 32px;
}

.hero-cta-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.hero-mockup img {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- ВОЗМОЖНОСТИ ---------- */
.benefits {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.benefit-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---------- КАК ЭТО РАБОТАЕТ ---------- */
.how-it-works {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.step-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-primary);
}

.step-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
    flex-shrink: 0;
    min-width: 48px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-image {
    margin-top: 12px;
}

.step-image img {
    max-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- ТАРИФЫ ---------- */
.pricing {
    padding: 60px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-popular {
    border-color: var(--accent-gold);
}

.pricing-card-business {
    border-color: var(--accent-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--text-inverted);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-badge.business {
    background: var(--accent-primary);
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.pricing-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 4px;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li strong {
    color: var(--text-primary);
}

.pricing-features li.disabled {
    opacity: 0.5;
}

.feature-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.check-icon {
    flex-shrink: 0;
}

.pricing-guarantee {
    text-align: center;
    font-size: 12px;
    color: var(--accent-gold);
    margin-top: 8px;
}

/* ---------- ОТЗЫВЫ ---------- */
.testimonials {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- SEO-ТЕКСТ ---------- */
.seo-text {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.seo-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.seo-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.seo-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.seo-text strong {
    color: var(--text-primary);
}

/* ---------- FAQ ---------- */
.faq {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    background: rgba(0, 229, 255, 0.05);
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

.faq-answer a {
    color: var(--accent-primary);
}

/* ---------- CTA ---------- */
.cta {
    padding: 60px 0;
    background: var(--bg-secondary);
    text-align: center;
    transition: background 0.3s ease;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---------- ФУТЕР ---------- */
.footer {
    padding: 40px 0 20px;
    background: var(--bg-footer);
    border-top: 1px solid var(--bg-footer-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* ----- БЛОК 1 (левый) ----- */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .logo {
    font-size: 20px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin-bottom: 12px;
}

/* ----- СОЦСЕТИ ----- */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.share-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
}

.social-icon:hover svg {
    fill: var(--text-inverted);
}

/* ----- КОНТАКТЫ ----- */
.footer-contacts p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.footer-contacts a {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--text-primary);
}

/* ----- БЛОКИ 2 и 3 (Навигация, Документы) ----- */
.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
}

.footer-links h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

/* ----- НИЖНЯЯ ЛИНИЯ ----- */
.footer-bottom {
    border-top: 1px solid var(--bg-footer-border);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}

/* ============================================================
   ПЛАВАЮЩИЙ ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ (правый нижний угол)
   ============================================================ */

.theme-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

.theme-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
}

.theme-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.theme-float-btn:active {
    transform: scale(0.95);
}

/* На мобильных — чуть выше нижней навигации */
@media (max-width: 576px) {
    .theme-float {
        bottom: 80px;
        right: 16px;
    }
    .theme-float-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (min-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .nav {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
    .hero-content {
        text-align: left;
        flex: 1;
    }
    .hero-title {
        font-size: 52px;
    }
    .hero-subtitle {
        margin: 0 0 24px 0;
    }
    .hero-triggers {
        align-items: flex-start;
    }
    .hero-stats {
        justify-content: flex-start;
    }
    .hero-image {
        flex: 1;
    }
    .hero-mockup img {
        max-width: 340px;
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
    .pricing-card-popular {
        transform: scale(1.02);
    }
    .pricing-card-popular:hover {
        transform: scale(1.04);
    }
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

@media (max-width: 991px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        padding: 80px 24px 24px;
        z-index: 99;
    }
    .nav.open {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .nav-link {
        font-size: 20px;
    }
}