/* Main CSS file for Call Center Landing */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Фирменная цветовая палитра */
:root {
    /* Основные цвета */
    --primary-color: #10b77d;
    --primary-hover: #0ea86f;
    --primary-light: #e8f9f1;
    --secondary-color: #202a34;
    --text-color: #8c90a9;
    --white: #fff;
    --light-gray: #f8f9fa;
    --border-color: #eaeaea;

    /* Тени */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-primary: rgba(16, 183, 125, 0.15);
    --shadow-primary-hover: rgba(16, 183, 125, 0.25);

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #10b77d, #0ea86f);
    --gradient-secondary: linear-gradient(135deg, #202a34, #2a3441);

    /* Переходы */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-secondary);
    color: var(--white);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* Enhanced button styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-enhanced:focus,
.btn-enhanced:active {
    outline: none;
    box-shadow: none;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--shadow-primary-hover);
}

.btn-enhanced:active {
    transform: translateY(-1px);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease-in-out;
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Background patterns */
.parallax-bg {
    background: var(--gradient-secondary);
}

.hero-bg {
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation styles */
.nav-glass {
    background: rgba(15, 27, 36, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Mobile header hide on scroll */
.nav-glass.hidden-mobile {
    transform: translateY(-100%);
}

/* Desktop header hide on scroll */
.nav-glass.hidden-desktop {
    transform: translateY(-100%);
}

/* Ensure mobile header is hidden on desktop */
@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
}

/* Hero section styles */
.hero-bg {
    background: linear-gradient(135deg, #0f1b24 0%, #1a2a3a 50%, #0f1b24 100%);
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(16, 183, 125, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 183, 125, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section backgrounds */
.section-bg-light {
    background: rgba(32, 42, 52, 0.5);
}

.section-bg-dark {
    background: rgba(16, 183, 125, 0.05);
}

/* Button variants */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    transition: all var(--transition-normal);
    outline: none;
}

.btn-primary:focus,
.btn-primary:active {
    outline: none;
    box-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
    outline: none;
}

.btn-secondary:focus,
.btn-secondary:active {
    outline: none;
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Burger icon animation */
#mobileMenuBtn {
    transition: all 0.3s ease;
    position: relative;
    width: 24px;
    height: 24px;
}

#mobileMenuBtn i {
    transition: all 0.3s ease;
}

/* Burger to X animation */
#mobileMenuBtn.burger-open i:before {
    content: "\f00d";
    /* FontAwesome X icon */
}

#mobileMenuBtn.burger-open i {
    transform: rotate(180deg);
}

/* Background Elements Z-Index */
.particle-container {
    z-index: 1;
}

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

/* Enhanced Interactive Animations */
@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 183, 125, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 183, 125, 0.6);
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Interactive Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.glow-element {
    animation: glow 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes button-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-button-shimmer {
    background: linear-gradient(90deg, #10b77d, #0ea86f, #10b77d);
    background-size: 200% 100%;
    animation: button-shimmer 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.animate-button-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-sweep 2s ease-in-out infinite;
}

@keyframes shimmer-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.animate-button-shimmer-pulse {
    background: linear-gradient(90deg, #10b77d, #0ea86f, #10b77d);
    background-size: 200% 100%;
    animation: button-shimmer 3s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.animate-button-shimmer-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-sweep 2s ease-in-out infinite;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Enhanced Card Hover Effects */
.enhanced-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 183, 125, 0.1), transparent);
    transition: left 0.6s;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 183, 125, 0.2);
}

/* Interactive Background Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.particle:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: -2s;
}

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

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.border-gradient-primary {
    border: 2px solid transparent;
    background: var(--gradient-secondary) padding-box,
        var(--gradient-primary) border-box;
}

/* Hero title improvements */
.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-top: 2rem;
}

.hero-title .gradient-text {
    text-shadow: 0 4px 8px rgba(16, 183, 125, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-weight: 700;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 183, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 4px rgba(16, 183, 125, 0.5));
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 183, 125, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(0);
}

/* Stats in CTA card */
.cta-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-card-stats .stat-item {
    text-align: center;
}

.cta-card-stats .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-card-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-color);
}

/* Soon label for social icons */
.social-icon {
    position: relative;
}

.soon-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-icon:hover .soon-label {
    opacity: 1;
    visibility: visible;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: white;
    padding: 0;
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: bold;
    color: #10b77d;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.3s ease;
    z-index: 10000;
}

.popup-close:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(16, 183, 125, 0.5);
}

/* Remove focus/active borders from all buttons */
button:focus,
button:active,
.btn-enhanced:focus,
.btn-enhanced:active,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary:focus,
.btn-secondary:active,
.back-to-top:focus,
.back-to-top:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ===========================================
   RESPONSIVE DESIGN - ОПТИМИЗИРОВАННАЯ СТРУКТУРА
   =========================================== */

/* Desktop Enhancements - от 768px и выше */
@media (min-width: 768px) {
    .popup-content {
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Large Desktop - от 1024px и выше */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-title .gradient-text {
        font-size: 3rem;
    }
}

/* ===========================================
   MOBILE STYLES - Каскадная оптимизация
   =========================================== */

/* Tablet/Mobile - до 768px */
@media (max-width: 768px) {

    /* Navigation */
    .nav-glass {
        padding: 0.75rem 0;
    }

    .nav-glass .flex.items-center.space-x-2 img {
        height: 2rem;
    }

    .nav-glass .text-sm {
        font-size: 0.875rem;
    }

    .nav-glass .text-xs {
        font-size: 0.75rem;
    }

    .nav-glass .hidden.md\:block {
        display: none !important;
    }

    /* Mobile header is already visible by default */

    /* Ensure mobile header takes full width */
    .nav-glass .md\:hidden.w-full {
        width: 100% !important;
    }

    /* Ensure mobile header flex container takes full width */
    .nav-glass .md\:hidden .flex.items-center.justify-between {
        width: 100% !important;
    }

    /* Ensure mobile menu takes full width */
    .mobile-menu {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Mobile menu button */
    #mobileMenuBtn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 2rem !important;
        width: 2rem !important;
        padding: 0.25rem !important;
    }

    #mobileMenuBtn i {
        font-size: 1rem !important;
    }

    /* Hero Section */
    .hero-bg {
        padding: 1.5rem 0 2rem 0;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }

    .hero-title .text-white {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-title .gradient-text {
        font-size: 2rem !important;
    }

    .hero-title .text-2xl {
        font-size: 2rem !important;
    }

    /* Buttons */
    .btn-enhanced {
        font-size: 1.25rem !important;
        padding: 0.75rem 1.25rem;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .btn-enhanced.btn-primary,
    .btn-enhanced.btn-secondary {
        white-space: nowrap !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.75rem !important;
    }

    .btn-enhanced.btn-primary.flex-1,
    .btn-enhanced.btn-secondary.flex-1 {
        flex: 1 !important;
    }

    .btn-enhanced.btn-primary.w-full,
    .btn-enhanced.btn-secondary.w-full {
        width: 100% !important;
    }

    /* Cards */
    .card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .glass-effect {
        padding: 1.25rem;
    }

    .enhanced-card h3.text-2xl {
        font-size: 1.125rem !important;
        /* 18px */
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .enhanced-card p.text-lg {
        font-size: 0.875rem !important;
        /* 14px */
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .enhanced-card .text-white.font-medium:not(.grid .text-white) {
        font-size: 0.875rem !important;
        /* 14px */
        text-wrap: pretty;
        line-height: 1.5;
    }

    /* Force services list text to 12px on mobile */
    .enhanced-card .text-white.font-medium {
        font-size: 0.75rem !important;
        /* 12px */
        line-height: 1.5;
        hyphens: none;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
    }

    /* Hide decorative dots on mobile and adjust spacing */
    .enhanced-card .space-y-4>div .w-3.h-3.bg-gradient-to-r {
        display: none;
    }

    .enhanced-card .space-y-4>div.flex {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Remove gap from space-x-4 class on mobile */
    .enhanced-card .space-y-4>div.flex.space-x-4 {
        gap: 0 !important;
        column-gap: 0 !important;
    }

    .enhanced-card .space-y-4>div.flex .text-white.font-medium {
        margin-left: 0 !important;
        text-align: left;
    }

    /* Align flex items to left */
    .enhanced-card .space-y-4>div.flex {
        justify-content: flex-start;
        text-align: left;
        position: relative;
    }

    /* Add checkmark pseudo-element in top-right corner */
    .enhanced-card .space-y-4>div.flex::before {
        content: "✓";
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        color: #10b77d;
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1;
    }

    /* Remove height alignment on mobile for cards - let them be natural height */
    .enhanced-card.flex.flex-col.h-full {
        height: auto !important;
        align-items: flex-start !important;
    }

    /* Remove flex column alignment on mobile */
    .enhanced-card.flex.flex-col {
        align-items: flex-start !important;
    }

    /* Remove height alignment from card titles on mobile */
    .enhanced-card h3.h-16.flex.items-start.justify-center {
        height: auto !important;
        display: block !important;
        text-align: center !important;
        width: 100%;
    }

    .enhanced-card .text-gray-300 {
        font-size: 0.875rem !important;
        /* 14px */
        line-height: 1.6;
    }

    .enhanced-card .text-gray-300.italic {
        font-size: 0.875rem !important;
        /* 14px */
        line-height: 1.6;
    }

    /* Grid layouts */
    .grid.lg\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Typography */
    h2.text-4xl.lg\:text-5xl.font-bold.mb-6 {
        font-size: 1.5rem !important;
    }

    .text-4xl:not(h2.text-4xl.lg\:text-5xl.font-bold.mb-6) {
        font-size: 1.75rem;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .text-6xl {
        font-size: 2.5rem;
    }

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

    .text-2xl:not(.grid .text-2xl) {
        font-size: 1.125rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .text-xl.text-gray-300.max-w-3xl {
        font-size: 0.875rem !important;
        /* 14px */
        line-height: 1.4;
    }

    .bg-black\/20 .text-gray-100.text-lg {
        font-size: 0.875rem !important;
    }

    .text-gray-300.mb-6 {
        font-size: 0.875rem !important;
    }

    /* Spacing */
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .py-12 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Reduce footer padding on mobile */
    footer.py-12 {
        padding-top: 1rem !important;
        /* 16px */
        padding-bottom: 1rem !important;
        /* 16px */
    }

    .mb-16 {
        margin-bottom: 1.25rem;
    }

    /* Reduce margin for "Почему мы?" section on mobile */
    .text-center.mb-16.scroll-reveal {
        margin-bottom: 1rem !important;
        /* 16px instead of 64px */
    }

    /* Reduce margin between title and subtitle */
    .text-center.mb-16.scroll-reveal h2.mb-6 {
        margin-bottom: 1rem !important;
        /* 16px instead of 24px */
    }

    .mb-8 {
        margin-bottom: 1rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Footer */
    footer .flex.items-center.space-x-2 img {
        height: 2rem;
    }

    footer .text-sm {
        font-size: 0.875rem;
    }

    footer .text-xs {
        font-size: 0.75rem;
    }

    /* Footer text sizing on mobile */
    footer .text-green-400 {
        font-size: 0.875rem !important;
        /* 14px */
    }

    footer .text-gray-400 {
        font-size: 0.75rem !important;
        /* 12px */
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Stats */
    .grid.grid-cols-3 .text-xs {
        font-size: 0.7rem !important;
        text-align: right;
    }
}

/* Small Tablet/Large Mobile - до 640px */
@media (max-width: 640px) {

    /* Stats grid полностью вертикальный */
    .grid.grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .grid.grid-cols-3>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
    }

    .grid.grid-cols-3 .text-2xl {
        font-size: 1.5rem;
    }

    .grid.grid-cols-3 .text-xs {
        font-size: 0.7rem;
        text-align: right;
    }

    /* CTA card stats */
    .cta-card-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cta-card-stats .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.5rem;
    }

    .cta-card-stats .stat-number {
        font-size: 1.25rem;
    }

    .cta-card-stats .stat-label {
        font-size: 0.7rem;
        text-align: right;
    }
}

/* Small Mobile - до 480px */
@media (max-width: 480px) {

    /* Hero уменьшение */
    .hero-bg {
        padding: 1rem 0 1.5rem 0;
    }

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

    .hero-title .text-white {
        font-size: 1.25rem !important;
        line-height: 1.2;
    }

    .hero-title .gradient-text {
        font-size: 1.25rem !important;
    }

    .hero-title .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Buttons компактнее */
    .btn-enhanced {
        font-size: 1rem !important;
        padding: 0.625rem 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    /* Typography меньше */
    .text-4xl:not(h2.text-4xl.lg\:text-5xl.font-bold.mb-6) {
        font-size: 1.5rem;
    }

    .text-5xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .text-2xl:not(.grid .text-2xl) {
        font-size: 1rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    /* Spacing компактнее */
    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .py-20 {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .py-12 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Cards компактнее */
    .card {
        padding: 0.875rem;
    }

    .glass-effect {
        padding: 0.875rem;
    }

    /* Header/Footer минимум */
    .nav-glass .flex.items-center.space-x-2 img,
    footer .flex.items-center.space-x-2 img {
        height: 1.75rem;
    }

    .nav-glass .text-sm,
    footer .text-sm {
        font-size: 0.75rem;
    }

    .nav-glass .text-xs,
    footer .text-xs {
        font-size: 0.625rem;
    }

    /* Stats минимум */
    .grid.grid-cols-3>div {
        padding: 0.5rem;
    }

    .grid.grid-cols-3 .text-2xl {
        font-size: 1.125rem;
    }

    .grid.grid-cols-3 .text-xs {
        font-size: 0.625rem;
    }
}