/* Tailwind CSS Replacement - Все необходимые утилиты */

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

/* Убираем подчеркивание у всех ссылок */
a {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

/* Layout Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }

/* Display */
.flex { display: flex; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Responsive variants (minimal) */
@media (min-width: 768px) {
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:block { display: block !important; }
    .md\:grid { display: grid !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:block { display: block !important; }
    .lg\:grid { display: grid !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Flexbox */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-20 { padding-top: 5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.h-1 { height: 0.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.min-h-screen { min-height: 100vh; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }

/* Colors using CSS variables */
.text-primary { color: hsl(var(--primary)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-destructive { background-color: hsl(var(--destructive)); }

.border { border-width: 1px; border-color: hsl(var(--border)); }
.border-t { border-top-width: 1px; border-top-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-bottom-color: hsl(var(--border)); }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

.border-primary { border-color: hsl(var(--primary)); }
.border-border { border-color: hsl(var(--border)); }

/* Opacity variants */
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }

/* Background with opacity */
.bg-background\/50 { background-color: hsl(var(--background) / 0.5); }
.bg-background\/60 { background-color: hsl(var(--background) / 0.6); }
.bg-background\/40 { background-color: hsl(var(--background) / 0.4); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary\/5 { background-color: hsl(var(--secondary) / 0.05); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }

.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }

/* Border radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }

/* Effects */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-y-scroll { overflow-y: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.blur-lg { filter: blur(16px); }
.blur-xl { filter: blur(24px); }
.blur-3xl { filter: blur(64px); }

/* Transforms */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

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

/* Исправление масштаба на мобильных */
@media (max-width: 767px) {
    html {
        -webkit-text-size-adjust: 100% !important;
        -moz-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:gap-10 { gap: 2.5rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:w-40 { width: 10rem; }
    .md\:h-40 { height: 10rem; }
    .md\:px-0 { padding-left: 0; padding-right: 0; }
    .md\:py-0 { padding-top: 0; padding-bottom: 0; }
    .md\:bg-transparent { background-color: transparent; }
    .md\:backdrop-blur-none { backdrop-filter: none; }
    .md\:rounded-none { border-radius: 0; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* Background utilities */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

/* Gradient utilities */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-background\/60 { --tw-gradient-from: hsl(var(--background) / 0.6); --tw-gradient-to: hsl(var(--background) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-background\/40 { --tw-gradient-to: hsl(var(--background) / 0.4); }
.to-background { --tw-gradient-to: hsl(var(--background)); }
.from-neon-cyan { --tw-gradient-from: hsl(var(--neon-cyan)); --tw-gradient-to: hsl(var(--neon-cyan) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-neon-pink { --tw-gradient-to: hsl(var(--neon-pink)); }
.from-neon-cyan\/20 { --tw-gradient-from: hsl(var(--neon-cyan) / 0.2); --tw-gradient-to: hsl(var(--neon-cyan) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-neon-pink\/20 { --tw-gradient-to: hsl(var(--neon-pink) / 0.2); }
.from-neon-cyan\/10 { --tw-gradient-from: hsl(var(--neon-cyan) / 0.1); --tw-gradient-to: hsl(var(--neon-cyan) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.from-neon-pink\/10 { --tw-gradient-from: hsl(var(--neon-pink) / 0.1); --tw-gradient-to: hsl(var(--neon-pink) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }

/* Hover states */
.hover\:bg-primary\/20:hover { background-color: hsl(var(--primary) / 0.2); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:border-primary:hover { border-color: hsl(var(--primary)); }
.hover\:border-primary\/50:hover { border-color: hsl(var(--primary) / 0.5); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Group hover */
.group:hover .group-hover\:bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.group:hover .group-hover\:border-primary { border-color: hsl(var(--primary)); }
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.group:hover .group-hover\:shadow-\[0_0_20px_hsl\(var\(--primary\)\/0\.3\)\] { box-shadow: 0 0 20px hsl(var(--primary) / 0.3); }
.group:hover .group-hover\:shadow-\[0_0_15px_hsl\(var\(--primary\)\/0\.3\)\] { box-shadow: 0 0 15px hsl(var(--primary) / 0.3); }

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Space utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Max width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* Animation fill mode */
[style*="animation-fill-mode: forwards"] {
    animation-fill-mode: forwards;
}

/* Additional animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bottom positioning */
.bottom-8 {
    bottom: 2rem;
}

/* Left/Right positioning */
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.left-1\/4 { left: 25%; }
.right-0 { right: 0; }
.right-1\/4 { right: 25%; }

/* Top positioning */
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-1\/3 { top: 33.333333%; }
.top-1\/4 { top: 25%; }
.top-4 { top: 1rem; }

/* Resize */
.resize-none { resize: none; }

/* Additional shadow utilities */
.shadow-\[0_0_30px_hsl\(var\(--primary\)\/0\.5\)\] {
    box-shadow: 0 0 30px hsl(var(--primary) / 0.5);
}

/* Additional responsive text sizes */
@media (min-width: 1024px) {
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* Additional responsive spacing */
@media (min-width: 768px) {
    .md\:h-20 { height: 5rem; }
}

/* Additional utilities */
.h-full { height: 100%; }
.flex-1 { flex: 1 1 0%; }
.mt-auto { margin-top: auto; }
.space-y-4 > * + * { margin-top: 1rem; }
.w-1\/2 { width: 50%; }
.bg-background\/95 { background-color: hsl(var(--background) / 0.95); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

