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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Десктоп и планшеты (от 769px) - всегда две колонки для hero */
@media (min-width: 769px) {
    .hero .container {
        grid-template-columns: 1fr 1fr !important;
        gap: 4rem !important;
        display: grid !important;
    }
    
    .hero-content {
        text-align: left !important;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
        text-align: left !important;
    }
    
    .hero-subtitle {
        text-align: left !important;
    }
    
    .hero-buttons {
        justify-content: flex-start !important;
    }
    
    .hero-stats-preview {
        justify-content: flex-start !important;
        flex-direction: row !important;
    }
    
    .container {
        padding: 0 40px;
    }
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}

.nav-brand:hover .logo-wrapper {
    transform: scale(1.05);
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-menu a:hover svg {
    transform: scale(1.1);
    color: var(--primary-color);
}

.nav-menu a.router-link-active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.15);
}

.nav-menu a.router-link-active svg {
    color: var(--primary-color);
}

.nav-menu a.router-link-active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
    animation: lineExpand 0.3s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    z-index: 1;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60%;
        opacity: 1;
    }
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-auth {
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-auth span {
    position: relative;
    z-index: 1;
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    color: #60a5fa;
    transform: scale(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    backdrop-filter: blur(50px) saturate(200%);
}

.btn-login:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 
        0 0 0 2px rgba(96, 165, 250, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-register {
    background: rgba(37, 99, 235, 0.25);
    color: white;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-register:hover {
    background: rgba(37, 99, 235, 0.45);
    transform: scale(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    backdrop-filter: blur(50px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-register:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.btn-register:active {
    transform: translateY(1px);
    box-shadow: 
        0 0 0 2px rgba(37, 99, 235, 0.3),
        0 2px 8px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.user-arrow.active {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 1001;
    animation: dropdownFadeIn 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
}

.dropdown-item:hover svg {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item.admin-link {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-weight: 600;
}

.dropdown-item.admin-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.dropdown-item.admin-link:hover svg {
    color: #ef4444;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: rgba(37, 99, 235, 0.25);
    color: white;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    background: rgba(37, 99, 235, 0.45);
    transform: scale(1.05);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    color: #60a5fa;
    transform: scale(1.05);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
}

.btn-secondary:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    contain: layout style;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: auto;
    transform: translateZ(0);
    contain: layout style paint;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats-preview {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    justify-content: flex-start;
}

.stat-preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-preview-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-preview-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 600px;
    z-index: 10;
}

#cyberCanvas.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: contents;
    transform: translateZ(0);
    contain: layout style paint;
    isolation: isolate;
}

.hologram-interface {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.hologram-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 60px rgba(96, 165, 250, 0.6));
}

/* Центральный щит */
.shield-core {
    filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.8));
    animation: shieldPulse 3s ease-in-out infinite;
    will-change: transform, filter;
    transform: translateZ(0);
    contain: layout style paint;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.8));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 50px rgba(96, 165, 250, 1));
    }
}

/* Плавающие панели */
.floating-panels {
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.5));
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.panel {
    animation: panelFloat 4s ease-in-out infinite;
    transition: transform 0.3s;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.panel:hover {
    transform: scale(1.05);
}

.panel-1 {
    animation-delay: 0s;
}

.panel-2 {
    animation-delay: 0.5s;
}

.panel-3 {
    animation-delay: 1s;
}

.panel-4 {
    animation-delay: 1.5s;
}

@keyframes panelFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Частицы данных */
.data-particles-holo {
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.8));
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Защитные барьеры */
.security-barriers-holo {
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.barrier-1, .barrier-2, .barrier-3, .barrier-4 {
    animation: barrierPulse 2s ease-in-out infinite;
}

@keyframes barrierPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* Соединительные линии */
.connection-lines {
    filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.4));
}

/* Статус индикаторы */
.status-indicators {
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
}

.status-indicators text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    filter: drop-shadow(0 0 4px currentColor);
}

.data-particles.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
    isolation: isolate;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
    pointer-events: none;
    contain: strict;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 30%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    left: 20%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.particle:nth-child(6) {
    left: 15%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

.particle:nth-child(7) {
    left: 85%;
    top: 60%;
    animation-delay: 0.8s;
    animation-duration: 6.8s;
}

.particle:nth-child(8) {
    left: 40%;
    top: 90%;
    animation-delay: 1.8s;
    animation-duration: 7.8s;
}

.particle:nth-child(9) {
    left: 60%;
    top: 15%;
    animation-delay: 2.8s;
    animation-duration: 8.8s;
}

.particle:nth-child(10) {
    left: 30%;
    top: 40%;
    animation-delay: 0.3s;
    animation-duration: 6.3s;
}

.particle:nth-child(11) {
    left: 90%;
    top: 50%;
    animation-delay: 1.3s;
    animation-duration: 7.3s;
}

.particle:nth-child(12) {
    left: 5%;
    top: 60%;
    animation-delay: 2.3s;
    animation-duration: 8.3s;
}

.particle:nth-child(13) {
    left: 55%;
    top: 75%;
    animation-delay: 0.7s;
    animation-duration: 6.7s;
}

.particle:nth-child(14) {
    left: 75%;
    top: 25%;
    animation-delay: 1.7s;
    animation-duration: 7.7s;
}

.particle:nth-child(15) {
    left: 25%;
    top: 85%;
    animation-delay: 2.7s;
    animation-duration: 8.7s;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(20px, -30px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(100px, -150px) scale(1.2);
    }
    90% {
        opacity: 0.5;
        transform: translate(180px, -250px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(200px, -300px) scale(0);
    }
}

.grid-overlay.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
    isolation: isolate;
}

@keyframes gridMove {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 20px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .icon-container {
    background: rgba(96, 165, 250, 0.25);
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    font-size: 1rem;
}

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.icon-large {
    width: 48px;
    height: 48px;
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* How it works */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.5) 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.how-it-works .section-title {
    opacity: 1;
    transform: translateY(0);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.step {
    text-align: center;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.step:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    filter: blur(10px);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step:hover .step-number::after {
    opacity: 0.6;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.benefits .section-title {
    opacity: 1;
    transform: translateY(0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    color: #60a5fa;
    transition: all 0.4s;
}

.benefit-item:hover .benefit-icon {
    background: rgba(96, 165, 250, 0.25);
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.benefit-item:hover .benefit-icon svg {
    color: #3b82f6;
    transform: scale(1.1);
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
    color: var(--primary-color);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-section a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem 0;
    min-height: 80vh;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 4rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    will-change: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.badge-info {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

/* Additional form styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Auth section */
.auth-section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    will-change: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
}

/* Responsive */
/* Планшеты (769px - 1024px) - hero остается в две колонки */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero .container {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-content {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        gap: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-content.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .nav-menu a svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-auth {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-auth {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .user-info {
        flex: 1;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    /* Hero становится одноколоночным только на мобильных устройствах (до 768px) */
    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 400px;
        margin-top: 2rem;
    }
}

/* Общие стили для страниц */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close-btn,
.modal-header .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s;
}

.modal-close-btn:hover,
.modal-header .btn-icon:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Кнопки */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats-preview {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .stat-preview-item {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-preview-number {
        font-size: 1.5rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .benefits {
        padding: 4rem 0;
    }
    
    .benefit-item {
        padding: 2rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .benefit-item h3 {
        font-size: 1.25rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons a {
        width: 100%;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .icon-container {
        width: 70px;
        height: 70px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .stats {
        padding: 4rem 0;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .how-it-works {
        padding: 4rem 0;
    }
    
    .step {
        padding: 2rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .monitoring-controls {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

