/* Дополнительные стили и анимации */

/* FA icon fallback: reserve space before font loads */
.fas, .fab, .far {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* Анимации появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Плавная прокрутка (only desktop — causes lag on mobile) */
@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }
}

/* Навигация */
.site-header {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link-modern {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link-modern:hover {
    color: #fff;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7e22ce);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #4f46e5, #7e22ce);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #4f46e5, #7e22ce);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Мобильное меню оверлей */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.mobile-nav-link i {
    width: 1.5rem;
    text-align: center;
    color: #6366f1;
    font-size: 1rem;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 110;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Анимация для карточек услуг */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* ===== PREMIUM HERO SECTION ===== */

/* Background: deep mesh gradient */
.hero-wrapper {
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(88, 28, 135, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(79, 70, 229, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(124, 58, 237, 0.4) 0%, transparent 60%),
        linear-gradient(160deg, #0a0118 0%, #140a2e 25%, #1e0a3a 50%, #0f0720 75%, #0a0118 100%);
    position: relative;
    overflow: hidden;
}

/* Particle canvas */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.08); }
    66% { transform: translate(-15px, 25px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Mesh grid overlay */
.hero-mesh-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

.hero-section {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Premium badge */
.hero-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(196, 181, 253, 1);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.hero-badge-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #a78bfa;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 16px rgba(167, 139, 250, 0.9); }
}

/* Premium title */
.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 25%, #c084fc 50%, #e879f9 75%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Premium CTA buttons */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 8px 25px rgba(99, 102, 241, 0.35),
        0 2px 10px rgba(139, 92, 246, 0.2);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.5),
        0 12px 35px rgba(99, 102, 241, 0.45),
        0 4px 15px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.15);
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* Trust row */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    width: fit-content;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.hero-trust-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.hero-trust-divider {
    width: 1px;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero background image (full-section, blurred, white-tinted) */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: blur(1px) brightness(0.65) saturate(0.9);
    transform: scale(1.02);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
}

/* Centered hero text column */
.hero-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* Hero image showcase (kept for legacy, hidden now) */
.hero-image-col {
    display: flex;
    justify-content: center;
}

.hero-image-showcase {
    position: relative;
    max-width: 480px;
    width: 100%;
}

/* Glow rings */
.hero-glow-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 1px solid rgba(139, 92, 246, 0.15);
    animation: ringPulse 4s ease-in-out infinite;
}

.hero-glow-ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border: 1px solid rgba(99, 102, 241, 0.08);
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.5; }
}

/* Premium image wrapper */
.hero-image-wrapper-premium {
    position: relative;
    z-index: 2;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 100px rgba(139, 92, 246, 0.2);
}

.hero-main-image {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrapper-premium:hover .hero-main-image {
    transform: scale(1.03);
}

/* Floating glass cards */
.hero-float-card {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 10, 30, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-float-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.hero-float-card-revenue {
    bottom: 15%;
    left: -10%;
    animation: floatCard1 5s ease-in-out infinite;
}

.hero-float-card-games {
    top: 12%;
    right: -8%;
    animation: floatCard2 6s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* Stats bar */
.hero-stats-bar {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #0a0118 0%, #1a1e2e 100%);
    border-top: none;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

/* Стили для кнопок */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7e22ce);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Анимация для чисел */
.counter {
    transition: all 0.5s ease;
}

/* Стили для формы */
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


/* Product section — white background */
#product {
    background: #ffffff;
}
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23334155' stroke-opacity='0.07' stroke-linejoin='round' stroke-linecap='round'%3E%3C!-- outer ring --%3E%3Ccircle cx='100' cy='90' r='62' stroke-width='2.5'/%3E%3Ccircle cx='100' cy='90' r='56' stroke-width='1'/%3E%3C!-- center divider line --%3E%3Cline x1='100' y1='34' x2='100' y2='146' stroke-width='1.2'/%3E%3C!-- dragon head (right side, facing left) --%3E%3Cpath d='M100 52 Q118 48 128 58 Q138 68 132 80 Q126 90 116 92 Q108 94 100 90' stroke-width='1.5'/%3E%3Cpath d='M128 58 L134 52 L130 60' stroke-width='1.2'/%3E%3Cpath d='M132 80 Q138 86 134 94 Q130 100 124 98' stroke-width='1.2'/%3E%3Ccircle cx='120' cy='66' r='3' stroke-width='1.2'/%3E%3Cpath d='M116 92 Q112 110 118 122 Q124 132 116 138 Q108 142 100 138' stroke-width='1.5'/%3E%3C!-- crystal shards right --%3E%3Cpath d='M106 110 L112 98 L120 112 L114 124 Z' stroke-width='1'/%3E%3Cpath d='M118 106 L124 96 L130 108 L125 118 Z' stroke-width='1'/%3E%3C!-- dragon body left (fire side) --%3E%3Cpath d='M100 52 Q82 48 72 58 Q62 68 68 80 Q74 90 84 92 Q92 94 100 90' stroke-width='1.5'/%3E%3Cpath d='M72 58 L66 52 L70 60' stroke-width='1.2'/%3E%3Cpath d='M68 80 Q62 86 66 94 Q70 100 76 98' stroke-width='1.2'/%3E%3Ccircle cx='80' cy='66' r='3' stroke-width='1.2'/%3E%3Cpath d='M84 92 Q88 110 82 122 Q76 132 84 138 Q92 142 100 138' stroke-width='1.5'/%3E%3C!-- flame shapes left --%3E%3Cpath d='M74 112 Q70 102 76 96 Q78 108 84 104 Q80 116 86 118 Q78 122 74 112 Z' stroke-width='1'/%3E%3C!-- D-pad left of circle --%3E%3Crect x='16' y='86' width='8' height='24' rx='2' stroke-width='1.5'/%3E%3Crect x='8' y='94' width='24' height='8' rx='2' stroke-width='1.5'/%3E%3C!-- PS buttons right of circle --%3E%3Ccircle cx='172' cy='86' r='5' stroke-width='1.5'/%3E%3Ccircle cx='184' cy='94' r='5' stroke-width='1.5'/%3E%3Ccircle cx='172' cy='102' r='5' stroke-width='1.5'/%3E%3Ccircle cx='160' cy='94' r='5' stroke-width='1.5'/%3E%3C!-- triangle inside top button --%3E%3Cpath d='M170 83 L174 83 L172 80 Z' stroke-width='0.8'/%3E%3C!-- square inside left button --%3E%3Crect x='158' y='92' width='4' height='4' stroke-width='0.8'/%3E%3C!-- circle inside right button --%3E%3Ccircle cx='184' cy='94' r='2' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");

/* Benefits section */
.benefit-card-featured {
    transition: all 0.4s ease;
}

.benefit-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
}

/* Audience & Location cards */
.audience-card:hover,
.location-card:hover {
    transform: translateY(-4px);
}

/* Model section */
.model-section {
    background: #f8fafc;
    position: relative;
}

.model-step-card {
    transition: all 0.3s ease;
}

.model-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Параллакс эффект */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Стили для загрузки */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Gallery section */
.gallery-section {
    background: linear-gradient(160deg, #0a0a1a 0%, #0d0b2e 40%, #1a0a2e 70%, #0f0a20 100%);
}

/* Bento grid: 2 columns, first item spans 2 rows */
.gallery-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-card-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

/* Overlay with caption */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

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

.gallery-card-overlay h3 {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-overlay h3 {
    transform: translateY(0);
}

.gallery-card-overlay p {
    transform: translateY(10px);
    transition: transform 0.4s ease 0.05s;
}

.gallery-card:hover .gallery-card-overlay p {
    transform: translateY(0);
}

.gallery-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85), rgba(126, 34, 206, 0.85));
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    width: fit-content;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-card:hover .gallery-card-badge {
    transform: translateY(0);
}

/* Subtle border glow on hover */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 3;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.gallery-card:hover::before {
    border-color: rgba(99, 102, 241, 0.4);
}

/* Mobile: single column */
@media (max-width: 640px) {
    .gallery-bento {
        grid-template-columns: 1fr;
    }
    .gallery-card-large {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
    .gallery-card-overlay {
        opacity: 1;
    }
}

/* Technology section */
.technology-section {
    background: linear-gradient(160deg, #0a0a1a 0%, #0d0b2e 40%, #1a0a2e 70%, #0f0a20 100%);
}

/* Contact section */
.contact-section {
    background: linear-gradient(160deg, #0a0a1a 0%, #0d0b2e 40%, #1a0a2e 70%, #0f0a20 100%);
}

.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Desktop-only backdrop-blur for contact cards */
@media (min-width: 769px) {
    .contact-info-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Start section steps */
.start-step {
    transition: all 0.3s ease;
}

.start-step:hover .start-step-icon {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.start-step-icon {
    transition: all 0.3s ease;
}

/* FAQ section */
.faq-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item[open] {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    display: none;
    content: '';
}

.faq-item[open] .faq-summary {
    color: #4f46e5;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item[open] .faq-icon {
    background: linear-gradient(135deg, #4f46e5, #7e22ce);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure buttons/links don't block touch scrolling */
    button, a, .hero-cta-primary, .hero-cta-secondary, .nav-cta, .mobile-nav-link {
        touch-action: manipulation;
    }

    .hero-section {
        padding-top: 6rem;
        padding-bottom: 2rem;
        overflow: hidden;
    }

    .hero-wrapper {
        overflow: hidden;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }

    .hero-stat-card {
        padding: 1rem;
    }

    .hero-stat-card .text-3xl {
        font-size: 1.5rem;
    }

    .hero-trust-row {
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-trust-divider {
        display: none;
    }

    .hero-float-card-revenue {
        left: 0;
        bottom: 5%;
        max-width: calc(50vw - 1rem);
    }

    .hero-float-card-games {
        right: 0;
        top: 5%;
        max-width: calc(50vw - 1rem);
    }

    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        display: none;
    }

    .hero-glow-ring-1,
    .hero-glow-ring-2 {
        display: none;
    }

    /* === MOBILE PERFORMANCE: Disable backdrop-filter === */
    .site-header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 26, 0.95);
    }

    .hero-badge-premium {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(30, 20, 60, 0.85);
    }

    .hero-cta-secondary {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .hero-trust-row {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 15, 40, 0.85);
    }

    .hero-stat-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.06);
        min-width: 0;
        word-break: break-word;
    }

    .hero-float-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 10, 30, 0.9);
    }

    .mobile-menu-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 26, 0.98);
    }

    .gallery-card-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* === MOBILE PERFORMANCE: Simplify heavy gradients === */
    .hero-wrapper {
        background: linear-gradient(160deg, #0a0118 0%, #140a2e 50%, #0a0118 100%);
    }

    .hero-stats-bar {
        background: linear-gradient(180deg, #0a0118 0%, #1a1e2e 100%);
    }

    .gallery-section {
        background: linear-gradient(160deg, #0a0a1a 0%, #0f0a20 100%);
    }

    .technology-section {
        background: linear-gradient(160deg, #0a0a1a 0%, #0f0a20 100%);
    }

    .contact-section {
        background: linear-gradient(160deg, #0a0a1a 0%, #0f0a20 100%);
    }

    /* === MOBILE: Disable ALL animations to prevent invisible content === */
    /* animate-fade-in-delay uses 'both' fill mode which starts at opacity:0.
       If animation fails to trigger, content stays invisible forever. */
    .animate-fade-in,
    .animate-fade-in-delay,
    .animate-fade-in-delay-2 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-float-card-revenue,
    .hero-float-card-games {
        animation: none;
    }

    .hero-title-gradient {
        animation: none;
        background-size: 100% 100%;
    }

    .hero-badge-dot {
        animation: none;
    }

    .hero-mesh-grid {
        display: none;
    }

    .hero-particles-canvas {
        display: none;
    }

    /* === MOBILE PERFORMANCE: Simplify pseudo-elements === */
    #product::before,
    #product::after {
        display: none;
    }

    /* === MOBILE PERFORMANCE: Disable hover transforms === */
    .hero-stat-card:hover,
    .benefit-card:hover,
    .benefit-card-featured:hover,
    .model-step-card:hover,
    .audience-card:hover,
    .location-card:hover,
    .service-card:hover {
        transform: none;
    }

    /* === MOBILE PERFORMANCE: Remove will-change to free GPU memory === */
    .parallax {
        will-change: auto;
    }

    /* === MOBILE PERFORMANCE: Reduce box-shadow complexity === */
    .hero-image-wrapper-premium {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .hero-cta-primary {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    .hero-cta-primary:hover {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        transform: none;
    }
}

/* === prefers-reduced-motion: disable ALL animations === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-particles-canvas {
        display: none;
    }
}

/* ===================================================
   MOBILE RESPONSIVE — Comprehensive fixes
   Prevents horizontal scroll and layout overflow
   =================================================== */

/* Global overflow guard */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Technology section: glow spots cause horizontal overflow */
#technology .absolute {
    overflow: hidden;
}

@media (max-width: 768px) {

    /* ---- GLOBAL ---- */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Prevent any section from overflowing */
    section,
    .hero-wrapper,
    .hero-stats-bar,
    #product,
    #model,
    #benefits,
    #technology,
    #audience,
    #gallery,
    #faq,
    #start,
    #contact {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ---- HERO ---- */
    .hero-center-col {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        word-break: break-word;
        hyphens: auto;
    }

    .hero-section p.text-lg,
    .hero-section p.text-xl {
        font-size: 0.95rem;
    }

    /* CTA buttons — stack and stretch on very small screens */
    .hero-section .flex.flex-col.sm\:flex-row {
        width: 100%;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    /* ---- STATS BAR ---- */
    .hero-stats-bar .grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat-card .text-3xl,
    .hero-stat-card .text-4xl {
        font-size: 1.25rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-stat-card {
        padding: 0.875rem 0.625rem;
        text-align: center;
    }

    /* ---- PRODUCT SECTION ---- */
    #product .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Specs strip: 2 columns on mobile */
    #product .grid.grid-cols-2.sm\:grid-cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    /* Trust row: single column */
    #product .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ---- FINANCIAL MODEL ---- */
    #model .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Revenue bar chart rows: tighten label widths */
    #model .flex.items-center.gap-3 > span:first-child {
        width: 2.5rem;
        font-size: 0.7rem;
    }

    #model .flex.items-center.gap-3 > span:last-child {
        width: 5.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* ---- BENEFITS ---- */
    /* Hero featured cards — clip overflowing decorative circles */
    .benefit-card-featured {
        overflow: hidden;
    }

    /* Bottom benefit cards — full-width horizontal layout */
    .benefit-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Comparison table — horizontal scroll, but parent clips at viewport */
    #benefits .mt-14 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #benefits .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        max-width: calc(100vw - 2rem);
    }

    #benefits .overflow-x-auto table {
        min-width: 480px;
    }

    #benefits .overflow-x-auto table td,
    #benefits .overflow-x-auto table th {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.75rem;
    }

    /* ---- TECHNOLOGY SECTION ---- */
    /* Hide overflowing background glow blobs */
    #technology > .absolute {
        display: none;
    }

    #technology .max-w-6xl {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }

    #technology .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    #technology .grid.sm\:grid-cols-2.xl\:grid-cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    #technology .grid.sm\:grid-cols-2.xl\:grid-cols-4 > div {
        padding: 1rem;
    }

    /* CTA in technology */
    #technology .rounded-2xl.border.border-indigo-300\/35 .w-full.sm\:w-auto {
        width: 100%;
    }

    /* ---- AUDIENCE SECTION ---- */
    #audience .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;
    }

    #audience .grid.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    /* CTA banner: stack vertically */
    #audience .flex.flex-col.md\:flex-row {
        flex-direction: column;
        text-align: center;
    }

    #audience .flex-shrink-0 {
        width: 100%;
    }

    /* ---- GALLERY ---- */
    .gallery-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* ---- FAQ ---- */
    #faq .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr;
    }

    .faq-summary {
        padding: 1rem;
        font-size: 0.875rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }

    /* ---- START / STEPS ---- */
    #start .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    #start .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Connecting line: hide on mobile */
    #start .hidden.lg\:block.absolute {
        display: none !important;
    }

    /* ---- CONTACT SECTION ---- */
    #contact .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr;
    }

    #contact .bg-white.rounded-2xl {
        padding: 1.25rem;
    }

    #contact .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Trust badges: wrap */
    #contact .flex.flex-wrap.gap-3 {
        gap: 0.5rem;
    }

    #contact .flex.flex-wrap.gap-3 > div {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* ---- START CTA CARD ---- */
    #start .flex.items-center.gap-6 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Extra small screens: 375px and below */
@media (max-width: 390px) {

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stat-card .text-3xl,
    .hero-stat-card .text-4xl {
        font-size: 1.1rem !important;
    }

    #audience .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }

    #start .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    #technology .grid.sm\:grid-cols-2.xl\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

