/* ===== ProBux.uz — Modern Design (SYSDC inspired) ===== */

/* --- CSS Variables --- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(30, 30, 60, 0.95);
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fb;
    --bg-tertiary: #eef2f7;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border: rgba(15, 23, 42, 0.10);
    --border-hover: rgba(99, 102, 241, 0.45);

    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f5f7fb 50%, #eef2f7 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav-menu.active {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .input-wrapper input,
[data-theme="light"] .input-wrapper select,
[data-theme="light"] .input-wrapper textarea {
    background: #ffffff;
    color: var(--text-primary);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent { color: var(--primary-light); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: #fff;
}

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

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.08), transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge i { color: #fbbf24; font-size: 0.8rem; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual / Cards */
.hero-visual {
    position: relative;
    height: 450px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.hero-floating-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.hero-floating-card span {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
}

.card-1 {
    top: 0;
    right: 0;
    width: 280px;
    animation: float1 6s ease-in-out infinite;
}

.card-1 i { color: var(--accent); }

.card-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.card-chart .bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    min-height: 10px;
    animation: barGrow 2s ease-out;
}

.card-2 {
    top: 140px;
    left: 0;
    width: 260px;
    animation: float2 7s ease-in-out infinite;
}

.card-2 i { color: var(--primary-light); }

.card-progress {
    height: 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-progress .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: progressFill 2s ease-out;
}

.card-2 small { color: var(--text-muted); font-size: 0.8rem; }

.card-3 {
    bottom: 20px;
    right: 40px;
    width: 200px;
    text-align: center;
    animation: float3 5s ease-in-out infinite;
}

.card-3 i { color: #22c55e; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes barGrow { from { height: 0; } }
@keyframes progressFill { from { width: 0; } }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services Grid --- */
.services-section { background: var(--bg-primary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-card.featured {
    border-color: var(--primary);
    background: var(--gradient-card);
}

.service-card.featured::before { opacity: 1; }

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i { color: var(--accent); font-size: 0.75rem; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.service-link:hover { gap: 12px; }

/* --- Pricing --- */
.pricing-section {
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--gradient-card);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 28px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.pricing-features {
    margin-bottom: 28px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pricing-features li i {
    font-size: 0.8rem;
}

.pricing-features li .fa-check { color: var(--accent); }
.pricing-features li .fa-times { color: var(--text-muted); }
.pricing-features li.disabled { color: var(--text-muted); }

/* --- Features --- */
.features-section { background: var(--bg-primary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonials-section { background: var(--bg-secondary); }

.testimonials-slider {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* --- About --- */
.about-section { background: var(--bg-primary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-badge { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-counters {
    display: flex;
    gap: 40px;
}

.counter-item { text-align: center; }

.counter-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.about-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: block;
}

.about-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.card-c {
    grid-column: 1 / -1;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.cta-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact Section --- */
.contact-section { background: var(--bg-primary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.textarea-wrapper i {
    top: 18px;
    transform: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

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

.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-hover);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-card a, .info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    color: #fff;
    border-color: transparent;
}

.social-link.telegram:hover { background: #0088cc; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.facebook:hover { background: #1877f2; }
.social-link.youtube:hover { background: #ff0000; }

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-links ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Floating Actions --- */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.telegram-float { background: #0088cc; }
.phone-float { background: #22c55e; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- AOS Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================= */
/* ===== MOBILE RESPONSIVE ===== */
/* ============================= */

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 300px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    .section { padding: 70px 0; }
    .container { padding: 0 16px; }
    
    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        font-size: 1rem;
        padding: 14px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    /* Mobile Hero */
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-visual { height: 250px; margin-top: 20px; }
    .hero-stats { gap: 20px; justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-text { text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-badge { margin: 0 auto 24px; }
    .hero-wave svg { height: 40px; }

    .card-1 { width: 200px; right: 10px; }
    .card-2 { width: 190px; left: 0; top: 100px; }
    .card-3 { width: 160px; right: 10px; bottom: 0; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card { padding: 28px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature-card { padding: 24px; }

    /* About */
    .about-content .section-title { text-align: center; }
    .about-content p { text-align: center; }
    .about-counters { justify-content: center; gap: 24px; }
    .about-image-grid { grid-template-columns: 1fr; }
    .card-c { grid-column: auto; }

    /* CTA */
    .cta-card { padding: 36px 24px; }

    /* Contact */
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .social-links { justify-content: center; }

    /* Floating */
    .floating-actions { bottom: 16px; right: 16px; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .back-to-top { bottom: 80px; right: 22px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    .hero-title { font-size: 1.8rem; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-visual { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.5rem; }
    
    .about-counters { flex-wrap: wrap; gap: 20px; }
    .counter-item { min-width: 80px; }
}

/* --- Dark Overlay for Mobile Menu --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Print Styles --- */
@media print {
    .header, .floating-actions, .back-to-top, .hero-bg { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 20px 0; }
}

/* ============================= */
/* === THEME & LANG CONTROLS === */
/* ============================= */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.lang-switch {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    position: relative;
}

.theme-toggle { width: 40px; padding: 0; }

.theme-toggle::before,
.lang-switch::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
}
.theme-toggle:hover::before,
.lang-switch:hover::before { opacity: 0.18; }
.theme-toggle > *,
.lang-switch > * { position: relative; z-index: 1; }

.theme-toggle:hover,
.lang-switch:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.lang-switch {
    gap: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.lang-switch i { font-size: 0.65rem; opacity: 0.8; transition: transform .25s ease; }
.lang-dropdown.open .lang-switch i { transform: rotate(180deg); }

.lang-dropdown { position: relative; }

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: var(--bg-secondary);
    background-image: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.08);
    padding: 8px;
    display: none;
    z-index: 1100;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
[data-theme="light"] .lang-menu {
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(15,23,42,0.18), 0 0 0 1px rgba(99,102,241,0.10);
}

.lang-dropdown.open .lang-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover { background: rgba(99, 102, 241, 0.12); color: var(--primary-light); transform: translateX(2px); }
.lang-option.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.12));
    color: var(--primary-light);
}
.lang-option .flag { font-size: 1.15rem; line-height: 1; }
.lang-option .check { margin-left: auto; opacity: 0; color: var(--primary-light); font-size: 0.8rem; }
.lang-option.active .check { opacity: 1; }

/* ============================= */
/* ======= NEWS SECTION ======== */
/* ============================= */
.news-section { background: var(--bg-secondary); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.news-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 2.4rem;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.news-cat {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    align-self: flex-start;
}

.news-readmore:hover { gap: 10px; color: var(--accent); }

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 0.95rem;
}

/* News modal */
.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.open { display: flex; }

.news-modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 16px 0 12px;
    color: var(--text-primary);
}

.news-modal-card .news-meta { margin-bottom: 16px; }

.news-modal-card .news-content {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 0.98rem;
}

.news-modal-card img.news-cover {
    width: 100%;
    border-radius: var(--radius-md);
    max-height: 320px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .nav-controls .lang-switch { padding: 0 10px; }
    .theme-toggle, .lang-switch { width: 36px; height: 36px; }
    .lang-switch { width: auto; }
}
