:root {
    /* Light Theme (Default) */
    --primary: #FF9F1C;
    --primary-dark: #cc7a00;
    --secondary: #00A3FF;
    --secondary-dark: #007bbd;
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --font-main: 'Inter', sans-serif;

    /* Backgrounds */
    --bg-body: var(--light);
    --bg-card: var(--white);
    --bg-alt: #F1F5F9;
    --bg-hero: adial-gradient(circle at 50% 50%, #F1F5F9 0%, #E2E8F0 100%);
    --bg-projects: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);

    /* Card Gradients */
    --grad-blue: linear-gradient(135deg, #E0F2FE 0%, #FFFFFF 100%);
    --grad-green: linear-gradient(135deg, #DCFCE7 0%, #FFFFFF 100%);
    --grad-orange: linear-gradient(135deg, #FFEDD5 0%, #FFFFFF 100%);
    --grad-purple: linear-gradient(135deg, #F3E8FF 0%, #FFFFFF 100%);
    --grad-red: linear-gradient(135deg, #FEE2E2 0%, #FFFFFF 100%);

    /* Colors */
    --border-blue: #BAE6FD;
    --border-green: #BBF7D0;
    --border-orange: #FED7AA;
    --border-purple: #E9D5FF;
    --border-red: #FECACA;

    /* Text */
    --text-main: var(--dark);
    --text-muted: var(--gray);
    --text-inv: #FFFFFF;

    /* Borders */
    --border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-body: #0F172A;
    --bg-card: #1E293B;
    --bg-alt: #020617;
    /* Darker than body */
    --bg-hero: radial-gradient(circle at 50% 50%, #0F172A 0%, #020617 100%);
    --bg-projects: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

    /* Card Gradients Dark */
    --grad-blue: linear-gradient(135deg, #0c4a6e 0%, #1e293b 100%);
    --grad-green: linear-gradient(135deg, #064e3b 0%, #1e293b 100%);
    --grad-orange: linear-gradient(135deg, #7c2d12 0%, #1e293b 100%);
    --grad-purple: linear-gradient(135deg, #581c87 0%, #1e293b 100%);
    --grad-red: linear-gradient(135deg, #7F1D1D 0%, #1e293b 100%);

    --border-blue: #0ea5e9;
    --border-green: #10b981;
    --border-orange: #f97316;
    --border-purple: #8b5cf6;
    --border-red: #ef4444;

    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-inv: #0F172A;

    --light: #1E293B;
    --white: #1E293B;
    --dark: #F1F5F9;

    --glass: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);

    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF7E5F);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 159, 28, 0.4);
}

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

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

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Pulse Animation */
.wa-pulse {
    position: relative;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 159, 28, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0);
    }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 80px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.brand-logo-link {
    flex: 0 0 auto;
}

.brand-logo-full {
    display: block;
    width: 184px;
    height: auto;
    flex: 0 0 auto;
}

.footer .brand-logo-full {
    width: 218px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.logo-text small {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

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

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

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

.price-download-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 16px 8px 10px;
    border: 1px solid rgba(255, 191, 92, 0.9);
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a00 50%, #ff6b35 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 159, 28, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateZ(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.price-download-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.3) 38%, transparent 58%);
    transform: translateX(-130%) skewX(-18deg);
    transition: transform 0.65s ease;
}

.price-download-btn:hover,
.price-download-btn:focus-visible {
    color: #ffffff;
    filter: saturate(1.08) brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 159, 28, 0.42), 0 10px 24px rgba(255, 107, 53, 0.32);
}

.price-download-btn:hover::before,
.price-download-btn:focus-visible::before {
    transform: translateX(130%) skewX(-18deg);
}

.price-download-btn:focus-visible {
    outline: 3px solid rgba(255, 159, 28, 0.34);
    outline-offset: 3px;
}

.price-download-icon {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.price-download-icon svg {
    width: 18px;
    height: 18px;
    overflow: visible;
}

.price-download-label {
    position: relative;
    z-index: 1;
}

.price-download-btn:hover .download-arrow,
.price-download-btn:hover .download-chevron,
.price-download-btn:focus-visible .download-arrow,
.price-download-btn:focus-visible .download-chevron {
    animation: downloadArrowDrop 0.58s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.price-download-btn:hover .download-tray,
.price-download-btn:focus-visible .download-tray {
    animation: downloadTrayCatch 0.58s ease both;
}

.download-arrow,
.download-chevron,
.download-tray {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes downloadArrowDrop {
    0% {
        transform: translateY(-2px);
    }

    45% {
        transform: translateY(4px);
    }

    68% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes downloadTrayCatch {
    0%,
    100% {
        transform: translateY(0) scaleX(1);
    }

    45% {
        transform: translateY(1px) scaleX(1.08);
    }
}

.lang-switch {
    display: flex;
    background: transparent;
    padding: 0;
    border: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-left: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-100%);
    opacity: 0;
    transition: 0.4s ease;
    text-align: center;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    color: var(--text-main);
}

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

.mobile-nav .price-download-btn {
    width: min(100%, 280px);
    margin: 2px auto 0;
    padding: 11px 18px 11px 12px;
    color: #ffffff;
    font-size: 13px;
}

.mobile-nav .price-download-btn:hover,
.mobile-nav .price-download-btn:focus-visible {
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .price-download-btn,
    .price-download-btn::before,
    .price-download-icon,
    .download-arrow,
    .download-chevron,
    .download-tray {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-hero);
    overflow: hidden;
    transition: background 0.5s ease;
}

.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.aurora-1 {
    width: 900px;
    height: 900px;
    min-width: 900px;
    min-height: 900px;
    background: #FF9F1C;
    top: -25%;
    right: -20%;
    animation: lava-lamp 20s infinite ease-in-out;
}

.aurora-2 {
    width: 800px;
    height: 800px;
    min-width: 800px;
    min-height: 800px;
    background: #00A3FF;
    bottom: -25%;
    left: -15%;
    animation: lava-lamp 25s infinite ease-in-out reverse;
}

@keyframes lava-lamp {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) scale(1);
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(50px, -50px) scale(1.1);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) scale(1);
    }
}

.aurora-3 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.hero-geo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.geo-shape {
    position: absolute;
    border: 2px solid rgba(0, 0, 0, 0.03);
}

.circle {
    border-radius: 50%;
}

.ring-1 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 163, 255, 0.05);
}

.ring-2 {
    width: 1100px;
    height: 1100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 159, 28, 0.05);
}

.diamond {
    width: 40px;
    height: 40px;
    transform: rotate(45deg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.diamond-1 {
    top: 15%;
    left: 10%;
    animation: float 6s infinite ease-in-out;
}

.diamond-2 {
    bottom: 20%;
    right: 15%;
    animation: float 8s infinite ease-in-out reverse;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-3d-photos {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Below text (z-index 2) but above bg */
    pointer-events: none;
    perspective: 1000px;
    overflow: hidden;
}

.hero-photo-item {
    position: absolute;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    top: 50%;
    left: 50%;
    opacity: 0;
    will-change: transform, opacity;
    /* Light Mode: Make images slightly washed out/brighter */
    filter: brightness(1.25) contrast(0.85) grayscale(0.1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .hero-photo-item {
    /* Dark Mode: Make images darker so white text pops */
    filter: brightness(0.5) contrast(1.1) grayscale(0.4);
}

@keyframes flyThrough {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(-800px) rotateX(var(--rx-start)) rotateY(var(--ry-start)) scale(0.5);
    }

    15% {
        opacity: 0.8;
        transform: translate(-50%, -50%) translateZ(-100px) rotateX(var(--rx-mid)) rotateY(var(--ry-mid)) scale(0.9);
    }

    85% {
        opacity: 0.8;
        /* Slow drift part */
        transform: translate(-50%, -50%) translateZ(100px) rotateX(var(--rx-end)) rotateY(var(--ry-end)) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(800px) rotateX(var(--rx-end)) rotateY(var(--ry-end)) scale(1.5);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    color: #075985;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s backwards;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-badge svg {
    width: 18px;
    color: #c25d00;
}

:root[data-theme="dark"] .hero-badge {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.34);
    color: #bae6fd;
}

:root[data-theme="dark"] .hero-badge svg {
    color: #ffb347;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #1E293B;
    animation: fadeInUp 0.8s 0.2s backwards;
}

[data-theme="dark"] .hero h1,
.hero[data-theme="dark"] h1 {
    color: var(--text-main);
}

.hero h1 span:last-child {
    /* Previously secondary color - removed to make whole header one color */
    display: block;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s 0.6s backwards;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: clamp(24px, 4vh, 46px);
    z-index: 4;
    width: 44px;
    height: 58px;
    display: grid;
    place-items: center;
    pointer-events: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 16px rgba(2, 6, 23, .42));
    animation: heroMouseFloat 2.4s ease-in-out infinite;
}

.hero-scroll-mouse {
    position: relative;
    width: 28px;
    height: 44px;
    display: block;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 16px;
    background: rgba(15, 23, 42, .2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 20px rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, .82);
    transform: translateX(-50%);
    animation: heroMouseWheel 1.8s cubic-bezier(.22, .7, .2, 1) infinite;
}

@keyframes heroMouseWheel {
    0% {
        opacity: 0;
        transform: translate(-50%, -2px);
    }
    18% {
        opacity: 1;
    }
    68% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

@keyframes heroMouseFloat {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 4px);
    }
}

@media (max-width: 640px) {
    .hero-scroll-indicator {
        bottom: 18px;
        transform: translateX(-50%) scale(.88);
        transform-origin: center bottom;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator,
    .hero-scroll-wheel {
        animation: none;
    }

    .hero-scroll-wheel {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.hero-visual {
    position: relative;
    perspective: 1000px;
    animation: fadeInRight 1s 0.3s backwards;
}

.hero-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0);
}

[data-theme="dark"] .hero-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.hero-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hero-stat .number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), #FF7E5F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat:nth-child(even) .number {
    background: linear-gradient(to right, var(--secondary), #00F0FF);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-stat .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    line-height: 1.2;
    margin-top: 5px;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 6s infinite ease-in-out;
}

.floating-badge.top-right {
    top: -30px;
    right: -20px;
    animation-delay: 1s;
}

.floating-badge.bottom-left {
    bottom: -30px;
    left: -20px;
    animation-delay: 2s;
}

.floating-badge .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.icon.green {
    background: #10B981;
}

.icon.blue {
    background: #3B82F6;
}

.fb-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.fb-text small {
    color: var(--gray);
    font-weight: 500;
    font-size: 11px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Stats Bar --- */
.stats-bar {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    z-index: 10;
    margin-top: -50px;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.shimmer-line {
    display: none;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 200px;
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: block;
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary);
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #CBD5E1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #94A3B8;
    max-width: 100%;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-alt);
    transition: background-color 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

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

.about-content h3 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.check {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.about-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.about-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.about-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: #F1F5F9;
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-weight: 800;
    color: var(--primary);
    width: 50px;
    flex-shrink: 0;
    text-align: right;
}

.timeline-item .desc {
    background: #F8FAFC;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

/* Projects Section Decorations */
.projects-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-projects);
    z-index: 1;
}

/* Projects Gradient Fades (Removed) */
/* .projects-section::before,
.projects-section::after {
    display: none;
} */

.projects-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Keep the solutions background decorative but static to avoid continuous repaints. */
.projects-section .projects-bg > div {
    animation: none !important;
}

/* This section should remain stable when entering and leaving the viewport. */
.projects-section .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}



.projects-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 159, 28, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 163, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -2;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Colored Cards */
.product-card.card-blue {
    background: var(--grad-blue);
    border-color: var(--border-blue);
}

.product-card.card-green {
    background: var(--grad-green);
    border-color: var(--border-green);
}

.product-card.card-orange {
    background: var(--grad-orange);
    border-color: var(--border-orange);
}

.product-card.card-purple {
    background: var(--grad-purple);
    border-color: var(--border-purple);
}

.product-card.card-red {
    background: var(--grad-red);
    border-color: var(--border-red);
}


.product-card .product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card .product-icon svg {
    width: 30px;
    height: 30px;
}

.card-blue .product-icon {
    color: #0284C7;
}

.card-green .product-icon {
    color: #059669;
}

.card-orange .product-icon {
    color: #EA580C;
}

.card-purple .product-icon {
    color: #7C3AED;
}

.card-red .product-icon {
    color: #DC2626;
}

.card-cyan .product-icon {
    color: #0891B2;
}

.product-card:hover .product-icon {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.09);
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.product-card p {
    color: var(--gray);
    font-size: 14px;
    z-index: 1;
}

.bg-blobs {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.blob-orange-sm {
    width: 300px;
    height: 300px;
    background: rgba(255, 159, 28, 0.15);
}

.blob-blue-sm {
    width: 400px;
    height: 400px;
    background: rgba(0, 163, 255, 0.1);
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    border-color: transparent;
    z-index: 2;
}

.advantage-card:hover .advantage-num {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.8;
}

/* Gradient Divider */
.gradient-divider {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #085bd6, #be6109, #07af2b, #a008b8);
    background-size: 200% 100%;
    animation: rainbowMove 5s linear infinite;
    position: relative;
    z-index: 10;
}

.gradient-divider2 {
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, #0770a1, #0aa737, #b05908, #a008b8);
    background-size: 200% 100%;
    animation: rainbowMove 5s linear infinite;
    position: relative;
    z-index: 10;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Colored Advantage Cards */
.advantage-card.card-blue {
    background: var(--grad-blue);
    border-color: var(--border-blue);
}

.advantage-card.card-green {
    background: var(--grad-green);
    border-color: var(--border-green);
}

.advantage-card.card-orange {
    background: var(--grad-orange);
    border-color: var(--border-orange);
}

.advantage-card.card-purple {
    background: var(--grad-purple);
    border-color: var(--border-purple);
}

.advantage-card.card-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: rgba(6, 182, 212, 0.2);
}

.advantage-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.card-blue .advantage-num {
    color: #0284C7;
}

.card-green .advantage-num {
    color: #059669;
}

.card-orange .advantage-num {
    color: #EA580C;
}

.card-purple .advantage-num {
    color: #7C3AED;
}

.card-cyan .advantage-num {
    color: #0891B2;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--gray);
    z-index: 1;
    position: relative;
}

/* Geography */
.geo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.geo-map {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    border: 4px solid var(--border-color);
}

.geo-map-icon {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.geo-list {
    margin-top: 30px;
}

.geo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Partners Marquee */
.partners-marquee {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: transparent;
}

.partners-marquee::before,
.partners-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
}

.partners-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    padding: 0 20px;
    will-change: transform;
    backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .partners-marquee:hover .partners-track {
        animation-play-state: paused;
    }
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 150px;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-item img {
    max-width: 60%;
    max-height: 60%;
    opacity: 0.65;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: grayscale(100%);
    object-fit: contain;
}

[data-theme="dark"] .partner-item img {
    background: rgba(255, 255, 255, 0.85);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.partner-item:hover img {
    opacity: 1;
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(0%);
    transform: scale(1.0);
}

[data-theme="dark"] .partner-item:hover img {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Kazdidac (Subtle) */
.kazdidac-banner {
    margin-top: 40px;
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Replaced with simplified if HTML changed, but generally subtler styles here just in case */

/* CTA */
.cta {
    padding: 100px 0;
    background: #1E293B;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 {
    width: 600px;
    height: 600px;
    animation: spin 20s linear infinite;
}

/* ==============================
   News Ticker & Popup
   ============================== */


/* --- News Popup (Glassmorphism) --- */
.news-popup {
    position: absolute;
    bottom: 80px;
    /* Above ticker */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90vw;
    /* Responsive width */
    max-width: 800px;
    /* Wider for image */
    min-width: 280px;
    /* Smaller min-width for narrow phones */
    background: rgba(255, 255, 255, 0.95);
    /* Less transparent for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Center vertically */
    gap: 20px;
    /* Gap between image and text */
}

/* Image Section */
.news-popup-image-wrapper {
    flex: 0 0 auto;
    /* Don't grow/shrink automatically */
    width: 40%;
    /* Base width */
    max-width: 200px;
    /* Prevent being too big */
    min-width: 200px;
    /* Prevent being too small */
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    /* Radius for the image block itself */
    background: #f1f5f9;
}

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

/* Body Section */
/* Body Section */
.news-popup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically in its block */
    padding-right: 30px;
    /* Space for close button */
}

/* No Image Fallback */
.news-popup.no-image .news-popup-image-wrapper {
    display: none;
}

.news-popup.no-image {
    max-width: 600px;
}

[data-theme="dark"] .news-popup {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* .news-popup-header removed */

.news-popup-date {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
    margin-bottom: 12px;
}

.news-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.news-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="dark"] .news-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.news-popup-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 500;
}

.orbit-ring-2 {
    width: 900px;
    height: 900px;
    animation: spin 30s linear infinite reverse;
}

.orbit-ring-3 {
    width: 1200px;
    height: 1200px;
    animation: spin 40s linear infinite;
}

.orbit-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px var(--secondary);
}

.orbit-dot.orange {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    color: #94A3B8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 5;
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Contacts */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-items {
    margin-top: 40px;
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: var(--bg-card);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.05);
}

.contact-item:hover .ci-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
}

.ci-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.ci-text strong {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ci-text {
    font-size: 16px;
    font-weight: 600;
}

.contact-form-wrap {
    background: transparent;
    padding: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
    /* Растянуть на всю высоту */
    display: flex;
    flex-direction: column;
}

.maps-box {
    flex: 1;
    /* Занять все доступное пространство по высоте */
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    /* Минимальная высота на мобильных */
}

/* Скрываем подвал 2GIS для полного скругления снизу */
.maps-box [class^="dg-firm-widget"] {
    border-radius: 24px !important;
    overflow: hidden !important;
}

/* Принудительное закругление самого iframe внутри виджета 2GIS */
.maps-box iframe {
    border-radius: 24px !important;
    overflow: hidden !important;
    height: 100% !important;
    /* Убедимся, что iframe занимает всю высоту */
}

.contact-form-wrap h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
    background: var(--bg-body);
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

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

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer,
.footer[data-theme="dark"] {
    background: #1E293B;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--gray);
    margin-top: 20px;
    max-width: 300px;
}

[data-theme="dark"] .footer-brand p,
.footer[data-theme="dark"] .footer-brand p {
    color: #94A3B8;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

[data-theme="dark"] .footer-col h4,
.footer[data-theme="dark"] .footer-col h4 {
    color: #F1F5F9;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--gray);
    font-size: 14px;
}

[data-theme="dark"] .footer-col ul a,
.footer[data-theme="dark"] .footer-col ul a {
    color: #94A3B8;
}

.footer-col ul a:hover {
    color: var(--primary);
}

[data-theme="dark"] .footer-col ul a:hover,
.footer[data-theme="dark"] .footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #F1F5F9;
    padding-top: 30px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    color: #94A3B8;
    font-size: 13px;
}

.footer-association-link {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-association-link:hover,
.footer-association-link:focus-visible {
    color: var(--primary);
    outline: none;
}

[data-theme="dark"] .footer-bottom,
.footer[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .header .container {
        padding: 0 15px;
    }

    .header .brand-logo-full {
        width: 154px;
    }

    .nav-links {
        display: none;
    }

    .nav>.price-download-btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .container,
    .about-grid,
    .contact-grid,
    .geo-content,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: block;
        margin-top: 40px;
    }

    .hero-card {
        transform: none;
        padding: 20px;
    }

    .hero-card:hover {
        transform: none;
    }

    .floating-badge {
        display: none;
        /* Simplify on mobile */
    }

    .footer-grid {
        text-align: left;
    }

    .about-visual {
        display: block;
        margin-top: 40px;
    }

    /* Hide visual on mobile for simplicity or stack it */
    .contact-items {
        margin-bottom: 40px;
    }

    .stats-bar {
        padding: 40px 20px;
        margin-top: 0;
    }

    .stats-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header .brand-logo-full {
        width: 132px;
    }

    .footer .brand-logo-full {
        width: 190px;
    }
}

/* Contacts Padding Fix */
#contacts {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.4);
}

/* ==============================
   ПОРТФОЛИО — бегущая лента (marquee)
   ============================== */

/* Секция портфолио */
.portfolio-section {
    padding: 100px 0 60px;
    background: var(--bg-card);
    overflow: hidden;
}

/* Контейнер marquee-ленты */
.portfolio-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    margin-top: 6px;
}

/* Трек — контейнер карточек с анимацией */
.portfolio-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: portfolio-scroll 45s linear infinite;
    padding: 0 10px;
    will-change: transform;
    backface-visibility: hidden;
}

.portfolio-track:not(.is-ready) {
    visibility: hidden;
}

.portfolio-track-error {
    width: 100%;
    min-height: 180px;
    animation: none;
    justify-content: center;
    align-items: center;
}

.portfolio-load-error {
    color: var(--text-muted);
    font-size: 14px;
}

/* Реверсивный ряд — движение в обратном направлении */
.portfolio-track-reverse {
    animation: portfolio-scroll-reverse 50s linear infinite;
}

/* На touch-устройствах sticky hover не должен останавливать ленту навсегда. */
@media (hover: hover) and (pointer: fine) {
    .portfolio-marquee:hover .portfolio-track {
        animation-play-state: paused;
    }
}

/* Карточка портфолио — единый размер 4:3 */
.portfolio-item {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    flex-shrink: 0;
    width: 340px;
    aspect-ratio: 4 / 3;
}

/* Hover-эффект на карточке */
.portfolio-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

/* Изображение портфолио */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom-эффект изображения при hover */
.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

/* Градиентный overlay снизу */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.18) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Показ overlay при hover */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Заголовок на overlay */
.portfolio-title {
    color: white;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

/* Описание на overlay */
.portfolio-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.35;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.05s;
}

/* Анимация текста при hover */
.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-desc {
    transform: translateY(0);
}

/* ==============================
   Анимации marquee
   ============================== */

/* Справа налево */
@keyframes portfolio-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(0px - var(--marquee-distance, 50%)), 0, 0);
    }
}

/* Слева направо (реверс) */
@keyframes portfolio-scroll-reverse {
    0% {
        transform: translate3d(calc(0px - var(--marquee-distance, 50%)), 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* ==============================
   Лайтбокс (fullscreen просмотр) — поддержка тем
   ============================== */

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    /* Светлая тема по умолчанию */
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Тёмная тема — тёмный фон */
[data-theme="dark"] .portfolio-lightbox {
    background: rgba(15, 23, 42, 0.94);
}

/* Активное состояние лайтбокса */
.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Кнопка закрытия — светлая тема */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
}

/* Кнопка закрытия — тёмная тема */
[data-theme="dark"] .lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: rotate(90deg) scale(1.1);
}

[data-theme="dark"] .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Контент лайтбокса */
.lightbox-content {
    width: min(1720px, 96vw);
    max-width: 96vw;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

/* Слайдер изображений в лайтбоксе */
.lightbox-stage {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    width: auto;
    height: auto;
    max-width: min(100%, 1920px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.68);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.06);
}

.lightbox-nav:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .lightbox-img {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Информация над изображением */
.lightbox-info {
    text-align: center;
    padding: 0 80px 14px;
    max-width: 1100px;
    flex: 0 0 auto;
}

.lightbox-title {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lightbox-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Миниатюры под большим изображением */
.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    min-height: 74px;
    margin: 10px auto 0;
    padding: 3px 3px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    flex: 0 0 auto;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

.lightbox-thumbnail {
    width: 112px;
    height: 63px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: transparent;
    overflow: hidden;
    opacity: 0.58;
    cursor: pointer;
    flex: 0 0 auto;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.lightbox-thumbnail.active {
    transform: translateY(-2px);
}

.lightbox-thumbnail:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ==============================
   Адаптив портфолио
   ============================== */

@media (max-width: 900px) {
    .portfolio-section {
        padding: 60px 0 40px;
    }

    .portfolio-item {
        width: 260px !important;
        aspect-ratio: 4 / 3;
    }

    .portfolio-track {
        gap: 12px;
    }

    .portfolio-lightbox {
        padding: 14px 12px 12px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    .lightbox-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 58vh;
    }

    .lightbox-stage {
        min-height: 0;
        flex: 0 0 auto;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-title {
        font-size: 20px;
    }

    .lightbox-desc {
        font-size: 13px;
    }

    .lightbox-info {
        padding: 0 54px 10px;
    }

    .lightbox-thumbnails {
        min-height: 62px;
        margin-top: 8px;
    }

    .lightbox-thumbnail {
        width: 90px;
        height: 51px;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        width: 220px !important;
        aspect-ratio: 4 / 3;
    }

    .portfolio-title {
        font-size: 14px;
    }

    .portfolio-desc {
        font-size: 11px;
    }

    .lightbox-content {
        width: 100%;
        max-width: 100%;
    }

    .lightbox-stage {
        min-height: 0;
    }

    .lightbox-img {
        max-height: 50vh;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-info {
        padding: 0 52px 8px;
    }

    .lightbox-thumbnail {
        width: 76px;
        height: 43px;
    }
}

/* В портретной мобильной ориентации: информация сверху, фото по центру, миниатюры снизу. */
@media (max-width: 900px) and (orientation: portrait) {
    .lightbox-content {
        height: 100%;
        overflow-y: hidden;
    }

    .lightbox-stage {
        min-height: 0;
        flex: 1 1 auto;
    }

    .lightbox-img {
        max-height: 100%;
    }
}

/* About Section Brightness */
#about {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Make it pop */
    z-index: 5;
    position: relative;
    border-top: 1px solid var(--border-color);
}

/* Tree Timeline */
.tree-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="dark"] .tree-card {
    background: #334155;
    /* Lighter slate for contrast */
}

.tree-timeline {
    position: relative;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.tree-branch {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.tree-item {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease-out;
    transition-delay: var(--d);
}

.reveal.active .reveal-tree {
    opacity: 1;
    transform: translateY(0);
}

.tree-year {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    background: rgba(255, 159, 28, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.tree-year.highlight {
    background: var(--primary);
    color: white;
}

.tree-content {
    font-size: 14px;
    font-weight: 600;
}

/* Alternating tree items (optional visual flair) */
.tree-item:nth-child(even) {
    margin-right: 50px;
}

.tree-item:nth-child(odd) {
    margin-left: 50px;
}

@media (max-width: 600px) {
    .tree-item {
        margin: 0 !important;
    }
}

/* Horizontal Timeline (New) */
.tree-timeline.horizontal {
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 20px;
    height: auto;
    /* Allow scroll on small screens if needed */
    position: relative;
    padding: 60px 0;
    /* More space top/bottom for content */
}

.tree-branch.horizontal {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    top: 95px;
    /* Aligned with the gap between year and content */
    left: 0;
    bottom: auto;
    transform: translateY(-50%);
}

.tree-timeline.horizontal .tree-item {
    flex-direction: column;
    text-align: center;
    margin: 0 !important;
    min-width: 150px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    gap: 30px;
    /* Space between year and content (line goes here) */
}

/* Year above */
.tree-timeline.horizontal .tree-item .tree-year {
    z-index: 2;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Content below */
.tree-timeline.horizontal .tree-item .tree-content {
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    /* Connector to line */
}

.tree-timeline.horizontal .tree-item .tree-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: var(--border-color);
    z-index: -1;
}

@media (max-width: 768px) {
    .tree-timeline.horizontal {
        flex-direction: column;
        align-items: center;
    }

    .tree-branch.horizontal {
        width: 4px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, var(--primary), var(--secondary));
    }
}

/* Partner logo cards with accessible hover/focus descriptions. */
#partners .partners-marquee {
    padding: 124px 0 34px;
    overflow: hidden;
}

#partners .partners-track {
    align-items: center;
    gap: 28px;
    animation-duration: 120s;
}

#partners .partner-item {
    position: relative;
    flex: 0 0 250px;
    width: 250px;
    height: 150px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    background: #fff;
    box-shadow: 0 18px 44px -34px rgba(15, 23, 42, .48);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

#partners .partner-item img,
:root[data-theme="dark"] #partners .partner-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    opacity: .82;
    filter: none;
    transform: scale(.94);
    transition: opacity 260ms ease, transform 260ms ease;
}

#partners .partner-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    z-index: 20;
    width: min(310px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: #172033;
    color: #fff;
    box-shadow: 0 20px 48px -20px rgba(15, 23, 42, .72);
    font-size: 13px;
    font-weight: 560;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(.98);
    transform-origin: center bottom;
    transition: opacity 180ms ease, visibility 0s linear 180ms, transform 220ms ease;
}

:root[data-language="ru"] #partners .partner-item[data-ru-tooltip]::after {
    content: attr(data-ru-tooltip);
}

:root[data-language="kz"] #partners .partner-item[data-kz-tooltip]::after {
    content: attr(data-kz-tooltip);
}

#partners .partner-item:hover,
#partners .partner-item:focus-visible {
    z-index: 10;
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border-color));
    box-shadow: 0 24px 54px -30px color-mix(in srgb, var(--primary) 46%, transparent);
    transform: translateY(-4px);
}

#partners .partner-item:hover img,
#partners .partner-item:focus-visible img {
    max-width: 100%;
    max-height: 100%;
    opacity: 1;
    filter: none;
    transform: scale(1);
}

#partners .partner-item:hover::after,
#partners .partner-item:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
}

#partners .partners-marquee:hover .partners-track,
#partners .partners-marquee:focus-within .partners-track {
    animation-play-state: paused;
}

:root[data-theme="dark"] #partners .partner-item {
    background: #fff;
}

@media (max-width: 640px) {
    #partners .partners-marquee {
        padding: 118px 0 28px;
    }

    #partners .partners-track {
        gap: 18px;
    }

    #partners .partner-item {
        flex-basis: 210px;
        width: 210px;
        height: 126px;
        padding: 10px;
        border-radius: 16px;
    }

    #partners .partner-item::after {
        width: min(280px, calc(100vw - 24px));
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #partners .partners-marquee {
        overflow-x: auto;
    }

    #partners .partners-track {
        animation: none;
        transform: none;
    }

    #partners .partner-item[data-marquee-clone] {
        display: none;
    }

    #partners .partner-item,
    #partners .partner-item img,
    #partners .partner-item::after {
        transition: none;
    }
}

/* Partners Marquee Section flush bottom */
#partners {
    padding-bottom: 0 !important;
    overflow: hidden;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-flag {
    font-size: 24px;
}

.partner-name {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.partner-name small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(0px - var(--marquee-distance, 50%)), 0, 0);
    }
}

/* Marketplaces Section */
.marketplaces-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 40px;
}

.btn-marketplace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 220px;
    height: 70px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    /* Optional shine effect container */
}

/* Shine Effect */
.btn-marketplace::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-marketplace:hover::before {
    left: 100%;
}

.btn-marketplace:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-kaspi {
    background: #f14635;
    background: linear-gradient(135deg, #f14635 0%, #d93025 100%);
    box-shadow: 0 10px 20px rgba(241, 70, 53, 0.3);
}

.btn-kaspi:hover {
    box-shadow: 0 20px 40px rgba(241, 70, 53, 0.5);
}

.btn-omarket {
    background: #ff6700;
    background: linear-gradient(135deg, #ff8800 0%, #ff6700 100%);
    box-shadow: 0 10px 20px rgba(255, 103, 0, 0.3);
}

.btn-omarket:hover {
    box-shadow: 0 20px 40px rgba(255, 103, 0, 0.5);
}

.btn-satu {
    background: #7b1fa2;
    background: linear-gradient(135deg, #8e24aa 0%, #7b1fa2 100%);
    box-shadow: 0 10px 20px rgba(123, 31, 162, 0.3);
}

.btn-satu:hover {
    box-shadow: 0 20px 40px rgba(123, 31, 162, 0.5);
}

.mp-text {
    position: relative;
    z-index: 1;
}

/* === Hero News Ticker === */
.hero-news-ticker {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;

    /* Entrance Animation */
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpTicker 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.5s;
    /* Show after main hero load */
}

/* Блок сохранён в разметке; удалите этот класс, чтобы снова показать новости. */
.hero-news-ticker--hidden {
    display: none;
}

@keyframes slideUpTicker {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-glass {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .news-glass {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Label styles removed or kept for safety, user commented out HTML */
.news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--secondary);
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .news-label {
    border-right-color: rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}

.live-indicator {
    color: #ef4444;
    font-size: 10px;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.news-track-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.news-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee-news 60s linear infinite;
    /* Slower for readability */
    padding-right: 40px;
    /* Start from off-screen right */
    box-sizing: content-box;
    /* Ensure padding adds to width */
    width: max-content;
    /* Critical for correct scroll distance */
    flex-shrink: 0;
    will-change: transform;
}

/* Pause on hover over the track */
.news-glass:hover .news-track {
    animation-play-state: paused;
}

.news-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-right: 60px; REMOVED to use gap from parent */
    cursor: pointer;
    transition: transform 0.2s;
}

.news-item-wrapper:hover {
    transform: scale(1.02);
}

.news-date {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 159, 28, 0.3);
    height: 24px;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .news-date {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: none;
}

.news-text {
    font-weight: 500;
    color: var(--text-main);
    font-size: 14px;
    display: block;
    /* changed from flex to block for ellipsis to work */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
    /* Responsive max width, adjustable */
}

@media (min-width: 1200px) {
    .news-text {
        max-width: 600px;
    }
}

@keyframes marquee-news {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-news-ticker {
        bottom: 25px;
        padding: 0 15px;
    }

    .news-glass {
        padding: 10px 15px;
        border-radius: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        /* Ensure it fits container */
        overflow: hidden;
        /* Prevent overflow */
        box-sizing: border-box;
        /* Include padding in width */
    }

    .news-label {
        border-right: none;
        padding-right: 0;
        width: 100%;
        justify-content: flex-start;
        font-size: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 8px;
    }

    [data-theme="dark"] .news-label {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .news-track-wrapper {
        width: 100%;
        mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
    }

    .news-item {
        font-size: 13px;
    }
}

/* === Footer Socials === */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    border-color: transparent;
}

.social-btn svg {
    transition: transform 0.4s ease;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Brand Colors on Hover */
.social-btn.youtube:hover {
    background: #FF0000;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 10px 20px rgba(214, 36, 159, 0.3);
}

.social-btn.facebook:hover {
    background: #1877F2;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

/* === About Section 3D Card === */
.about-visual {
    perspective: 1200px;
}

.about-visual .hero-card {
    transform: rotateY(-12deg) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.15);
    /* Deep shadow for depth */
}

/* Reset on hover */
.about-visual .hero-card:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Mobile News Popup: No Image, Date Badge + Text */
@media (max-width: 768px) {
    .news-popup {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 30px 20px;
        /* Add bottom padding */
        width: 85vw;
        /* Slightly wider on mobile */
        min-width: unset;
        max-width: 400px;
    }

    .news-popup-image-wrapper {
        display: none;
        /* Hide the photo and wrapper entirely */
    }

    .news-popup-date {
        /* Default behavior is fine now that it's in the body */
        box-shadow: none;
        margin-bottom: 15px;
    }

    .news-popup-body {
        padding-right: 0;
        text-align: left;
    }

    .news-popup-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.05);
        /* Make slightly visible against white */
    }
}
