/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    --bg-dark: #1a1a3e;
    --bg-darker: #0d0d28;
    --bg-card: rgba(30, 30, 60, 0.6);
    --bg-card-hover: rgba(40, 40, 80, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --border-color: rgba(139, 92, 246, 0.35);
    --glow-color: rgba(99, 102, 241, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #1e1b4b 50%, var(--bg-dark) 100%);
}

#canvas {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image {
    animation: fadeInRight 1s ease 0.2s both;
}

.hero-single .demo-placeholder {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 3px;
}


@media (max-width: 768px) {
    .demo-placeholder {
        padding: 3px;
    }
    
    .demo-placeholder::before {
        top: -100%;
        left: -100%;
        width: 300%;
        height: 300%;
    }
    
    .demo-placeholder::after {
        inset: 3px;
    }
}

.demo-placeholder {
    border-radius: 20px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    display: inline-block;  /* ← сжимается по размеру картинки */
    width: 100%;
}

.demo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-color),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.demo-placeholder::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-dark);
    border-radius: 18px;
    z-index: 1;
}

.demo-media {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    position: relative;
    z-index: 2;
}









.demo-icon {
    position: relative;
    z-index: 1;
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.demo-placeholder p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PERFORMANCE SECTION ===== */
.performance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.chart-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-md);
}

.chart-bars {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
    height: 300px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-sm);
    position: relative;
    transition: all 0.3s ease;
    animation: barGrow 1s ease forwards;
}

@keyframes barGrow {
    from {
        height: 0 !important;
    }
}

.bar:hover {
    filter: brightness(1.2);
    transform: translateY(-5px);
}

.bar-label {
    font-size: 0.75rem;
    text-align: center;
    color: white;
    font-weight: 600;
}

.bar-value {
    font-size: 1rem;
    text-align: center;
    color: white;
    font-weight: 700;
}

.performance-specs h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--bg-card);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.specs-list li:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05), transparent);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-badge.popular {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.pricing-title {
    font-size: 1.5rem;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-duration {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.pricing-features .check-icon.limited {
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== INSTALLATION SECTION ===== */
.installation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    background: var(--bg-card-hover);
    transform: translateX(10px);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.installation-code {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-content {
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-comment {
    color: var(--text-muted);
}

.system-requirements h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.requirement {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.requirement:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.req-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.req-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.req-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    margin: var(--spacing-xl) 0;
}

.cta-content {
    text-align: center;
    padding: var(--spacing-lg);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero .container,
    .performance-content,
    .installation-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .features-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
    50%       { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll offset */
section { scroll-margin-top: 80px; }

/* Image lazy load */
img { opacity: 0; transition: opacity 0.3s ease; }
img.loaded { opacity: 1; }

/* ===== FAQ MODAL ===== */
.faq-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7, 7, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
	animation: fadeIn 0.3s ease;
}

.faq-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(15, 15, 35, 0.95));
    max-width: 800px;
    margin: 50px auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: slideUp 0.4s ease;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.faq-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px 20px 0 0;
}

.faq-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.faq-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: rotate(90deg);
}

.faq-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.faq-question {
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover { background: rgba(99, 102, 241, 0.05); }

.faq-question span:first-child {
    display: flex;
    align-items: center;
    gap: 3px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 15px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.faq-answer code {
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--primary-light);
    font-size: 0.9em;
}

.faq-footer {
    padding: 20px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
}

.faq-footer p { color: var(--text-secondary); margin: 0; }

.faq-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===== SUPPORT BUTTONS (LEFT BOTTOM) ===== */
.support-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.faq-button,
.support-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.faq-button:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.support-button {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    border-color: rgba(236, 72, 153, 0.4);
}

.support-button:hover {
    background: linear-gradient(135deg, var(--accent-color), #db2777);
    border-color: var(--accent-color);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.faq-button span:first-child,
.support-button span:first-child { font-size: 1.3rem; }

/* ===== SUPPORT MODAL ===== */
.support-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7, 7, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.support-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(15, 15, 35, 0.95));
    max-width: 600px;
    margin: 50px auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.3);
    animation: slideUp 0.4s ease;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.support-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    border-radius: 20px 20px 0 0;
}

.support-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.support-close:hover {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    transform: rotate(90deg);
}

.support-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.support-body form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===== FORM STYLES ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
}

.btn-full span { font-size: 1.2rem; }

.support-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), #db2777);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: pulse 1.5s ease infinite;
}

.support-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.support-success p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.support-footer {
    padding: 25px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
}

.support-footer p {
    color: var(--text-secondary);
    margin: 5px 0;
    font-size: 0.95rem;
}

.support-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===== CAPTCHA ===== */
.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

#captchaQuestion {
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

#captchaAnswer {
    font-family: var(--font-mono);
    letter-spacing: 2px;
}


.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1100;
}

.nav-hamburger:hover { background: var(--bg-card); }

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE OVERLAY (вне navbar, прямой потомок body) ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #070714;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.mobile-overlay-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-overlay-close:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.mobile-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    padding: 2rem;
}

.mobile-overlay-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-overlay-nav a:hover,
.mobile-overlay-nav a:active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.mobile-overlay-nav .lang-switch {
    margin-top: 0.8rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-links { display: none !important; }

    .hero {
        padding: calc(70px + 2rem) 0 2rem;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-around;
    }

    .stat-value { font-size: 1.4rem; }
    .demo-placeholder { padding: 3px; }

    section { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 1rem; }
    .chart-bars { height: 200px; }
	
	
	.chart-bars {
        height: 200px;
        gap: 0.4rem;        /* ← уменьшаем gap между барами */
    }
    
    .bar {
        padding: 0.4rem 0.2rem;  /* ← уменьшаем padding баров */
        min-width: 0;             /* ← разрешаем сжиматься */
    }
    
    .bar-label {
        font-size: 0.55rem;      /* ← мельче текст */
    }
    
    .bar-value {
        font-size: 0.7rem;
    }
    
    .chart-placeholder {
        padding: 1rem 0.5rem;    /* ← уменьшаем padding контейнера */
    }
	
	
	
	

    .support-buttons { bottom: 16px; left: 16px; gap: 8px; }

    .faq-button, .support-button {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 3px;
    }

    .faq-button span:first-child,
    .support-button span:first-child { font-size: 1.1rem; }

    /* FAQ fullscreen */
    .faq-modal-content {
        margin: 0;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }

    .faq-header { padding: 12px 16px; }
    .faq-header h2 { font-size: 1.0rem; }
    .faq-body { padding: 12px 16px; }
    .faq-question { font-size: 0.9rem; padding: 12px 14px; }
    .faq-answer { padding: 0; }
    .faq-item.active .faq-answer { padding: 10px 14px; }
    .faq-footer { padding: 12px 16px; }

    /* Support modal compact */
    .support-modal { overflow-y: hidden; }

    .support-modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .support-header { padding: 8px 14px; flex-shrink: 0; }
    .support-header h2 { font-size: 1rem; }
    .support-close { font-size: 1.6rem; width: 30px; height: 30px; }

    .support-body { padding: 8px 14px; overflow-y: auto; flex: 1; }
    .support-body form { gap: 5px; }
    .form-group { gap: 2px; }
    .form-group label { font-size: 0.75rem; font-weight: 600; }

    .form-group input,
    .form-group select { padding: 6px 10px; font-size: 0.85rem; border-radius: 7px; }

    .form-group textarea {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-height: 55px;
        border-radius: 7px;
    }

    .form-group small { font-size: 0.7rem; margin-top: 2px; }
    .checkbox-group { gap: 6px !important; }
    .checkbox-group label { font-size: 0.75rem; }
    .btn-full { padding: 9px 14px; font-size: 0.85rem; }
    .support-footer { padding: 6px 14px; flex-shrink: 0; }
    .support-footer p { font-size: 0.75rem; margin: 2px 0; }

    .scroll-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* ===== FIX FOR SINGLE PAGES (Download, Pay, etc.) ===== */
.hero-single .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px; /* Ограничиваем ширину контента */
    margin: 0 auto;
}

.hero-single .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Адаптив для форм оплаты и скачивания */
.payment-container, .download-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
/* ===== ORDER MODAL BASE ===== */
/* ===== ORDER MODAL (FAQ STYLE) ===== */
.modal {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(7, 7, 20, 0.9);
backdrop-filter: blur(10px);
z-index: 3000;
overflow-y: auto;
animation: fadeIn 0.3s ease;
}
.modal-content {
background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(15, 15, 35, 0.95));
max-width: 600px;
margin: 50px auto;
border-radius: 20px;
border: 1px solid var(--border-color);
box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
animation: slideUp 0.4s ease;
max-height: calc(100vh - 100px);
display: flex;
flex-direction: column;
}
.modal-header {
padding: 30px 40px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
border-radius: 20px 20px 0 0;
}
.modal-header h2 {
font-size: 2rem;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 2.5rem;
cursor: pointer;
width: 50px; height: 50px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
transition: all 0.3s ease;
}
.modal-close:hover {
background: rgba(231, 76, 60, 0.2);
color: #e74c3c;
transform: rotate(90deg);
}
.modal-body {
padding: 30px 40px;
overflow-y: auto;
flex: 1;
}
.modal-body form {
display: flex;
flex-direction: column;
gap: 8px;
}
.order-plan-name {
color: var(--primary-color);
font-weight: 500;
font-size: 1rem;
margin: 15px 0 10px;
padding: 0 5px;
}
.modal-footer {
padding: 20px 40px;
border-top: 1px solid var(--border-color);
background: rgba(0, 0, 0, 0.2);
border-radius: 0 0 20px 20px;
}
.success-message {
text-align: center;
padding: 30px 20px;
}
.success-message .success-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
font-size: 2.5rem;
color: white;
animation: successPop 0.5s ease;
}
@keyframes successPop {
0% { transform: scale(0); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
.success-message h3 {
font-size: 1.4rem;
margin-bottom: 10px;
color: var(--text-primary);
}
.success-message p {
color: var(--text-secondary);
margin-bottom: 20px;
line-height: 1.6;
}
/* Form Styles (like supportModal) */
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group label {
font-weight: 500;
color: var(--text-primary);
font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
padding: 10px 14px;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 0.95rem;
transition: all 0.3s ease;
font-family: var(--font-primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-group textarea {
resize: vertical;
min-height: 80px;
}
.form-group select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 36px;
}
.checkbox-group {
flex-direction: row !important;
align-items: flex-start;
gap: 10px !important;
}
.checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 3px;
accent-color: var(--primary-color);
cursor: pointer;
}
.checkbox-group label {
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.5;
}
.btn-full {
width: 100%;
justify-content: center;
padding: 12px 24px;
font-size: 1rem;
margin-top: 5px;
}
.btn-full span { font-size: 1.2rem; }
#orderCaptchaQuestion {
font-weight: bold;
color: var(--primary-color);
font-family: var(--font-mono);
font-size: 1.1rem;
}
#orderCaptchaAnswer {
font-family: var(--font-mono);
letter-spacing: 2px;
}
/* Mobile Order Modal */
@media (max-width: 768px) {
.modal-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
}
.modal-header { padding: 20px 25px; }
.modal-header h2 { font-size: 1.5rem; }
.modal-close { font-size: 2rem; width: 40px; height: 40px; }
.modal-body { padding: 20px 25px; }
.modal-body form { gap: 5px; }
.form-group { gap: 5px; }
.form-group label { font-size: 0.85rem; }
.form-group input,
.form-group select { padding: 9px 12px; font-size: 0.9rem; }
.form-group textarea { min-height: 70px; padding: 9px 12px; }
.btn-full { padding: 11px 20px; font-size: 0.95rem; }
.modal-footer { padding: 15px 25px; }
.order-plan-name { font-size: 0.9rem; margin: 12px 0 8px; }
}

/* ===== GALLERY CAROUSEL ===== */
.gallery-section {
    padding: var(--spacing-xl) 0;
}

.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.gallery-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 0.67rem);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    border-color: var(--primary-color);
}

.gallery-slide:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 35, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.gallery-slide:hover .gallery-overlay span {
    transform: scale(1);
}

.gallery-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 20, 0.96);
    backdrop-filter: blur(16px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gallery-lb-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    display: block;
}

@keyframes lbZoomIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.gallery-lb-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.gallery-lb-close:hover {
    background: rgba(231, 76, 60, 0.4);
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.gallery-lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lb-left  { left: 1.5rem; }
.gallery-lb-right { right: 1.5rem; }

.gallery-lb-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
}

.gallery-lb-counter {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Mobile gallery */
@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 calc(100% - 0rem);
    }
    .gallery-arrow {
        width: 38px;
        height: 38px;
    }
    .gallery-lb-arrow {
        width: 42px;
        height: 42px;
    }
    .gallery-lb-left  { left: 0.5rem; }
    .gallery-lb-right { right: 0.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-slide {
        flex: 0 0 calc(50% - 0.5rem);
    }
}