/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Более насыщенные синие оттенки */
    --blue-primary: #0066ff;
    --blue-secondary: #0052cc;
    --blue-accent: #3385ff;
    --blue-light: #66b3ff;
    --blue-bright: #99ccff;
    --blue-dark: #003d99;
    --blue-darker: #002966;
    --blue-deep: #001a33;
    
    /* Цвета для glassmorphism - более синие и насыщенные */
    --glass-bg: rgba(0, 102, 255, 0.2);
    --glass-border: rgba(102, 179, 255, 0.4);
    --glass-shadow: rgba(0, 51, 204, 0.3);
    
    /* Градиенты - более яркие синие */
    --gradient-1: linear-gradient(135deg, #0066ff 0%, #003d99 100%);
    --gradient-2: linear-gradient(135deg, #3385ff 0%, #0066ff 100%);
    --gradient-3: linear-gradient(135deg, #66b3ff 0%, #3385ff 100%);
    --gradient-4: linear-gradient(135deg, #99ccff 0%, #66b3ff 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #001a33 0%, #002966 30%, #003d99 70%, #001a33 100%);
    color: #fff;
    position: relative;
    /* Учитываем выступающие зоны на iOS/Android */
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

/* Анимированный фон с жидкими формами */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -250px;
    right: -250px;
    animation-delay: 7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: var(--gradient-4);
    bottom: 20%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism эффект - базовая карточка */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 51, 204, 0.4);
    border-color: rgba(102, 179, 255, 0.6);
}

/* Навигация */
.glass-nav {
    position: sticky;
    top: 20px;
    margin: 20px auto;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-content > .login-btn {
    margin-left: auto;
    order: 10;
}

/* Переключатель языков */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(102, 179, 255, 0.1);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 12px;
    color: var(--blue-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(102, 179, 255, 0.2);
    border-color: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 179, 255, 0.3);
}

.lang-btn.active {
    background: var(--gradient-2);
    border-color: var(--blue-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.lang-code {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lang-name {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn.active .lang-name {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-light);
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo svg {
    color: var(--blue-accent);
    filter: drop-shadow(0 0 15px rgba(51, 133, 255, 0.7));
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(51, 133, 255, 0.7));
}

/* Базовая адаптивность изображений/видео */
img, svg, video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(102, 179, 255, 0.05);
    border: 1px solid transparent;
}

.nav-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(102, 179, 255, 0.3));
}

.nav-text {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    font-size: 14px;
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    opacity: 1;
    max-width: 200px;
    transform: translateX(0);
    margin-left: 0;
    transition-delay: 0.1s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-bright);
    background: rgba(102, 179, 255, 0.15);
    border-color: rgba(102, 179, 255, 0.3);
    box-shadow: 0 4px 20px rgba(102, 179, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link:hover svg,
.nav-link.active svg {
    color: var(--blue-accent);
    filter: drop-shadow(0 0 12px rgba(51, 133, 255, 0.6));
    transform: scale(1.1);
}

.nav-link.active {
    background: rgba(102, 179, 255, 0.2);
    border-color: var(--blue-accent);
    box-shadow: 0 4px 25px rgba(102, 179, 255, 0.3);
}

/* Анимация для активной ссылки */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.8);
    }
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--blue-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Hero секция */
.hero {
    margin: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-card {
    padding: 80px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #66b3ff 0%, #3385ff 30%, #0066ff 60%, #99ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 20px rgba(102, 179, 255, 0.5));
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 20px;
    background: rgba(102, 179, 255, 0.15);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(102, 179, 255, 0.2);
    border-bottom: 1px solid rgba(102, 179, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 35px rgba(0, 102, 255, 0.7);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(102, 179, 255, 0.2);
    color: var(--blue-bright);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(102, 179, 255, 0.3);
    border-color: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 179, 255, 0.3);
}

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

/* Сетка контента */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.content-card {
    padding: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out both;
}

.content-card:nth-child(1) {
    animation-delay: 0.3s;
}

.content-card:nth-child(2) {
    animation-delay: 0.4s;
}

.content-card:nth-child(3) {
    animation-delay: 0.5s;
}

.card-icon {
    margin-bottom: 24px;
    color: var(--blue-accent);
    filter: drop-shadow(0 0 20px rgba(51, 133, 255, 0.6));
    transition: transform 0.3s ease;
}

.content-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(51, 133, 255, 0.8));
}

.content-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--blue-bright);
}

.content-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.tag {
    padding: 6px 14px;
    background: rgba(102, 179, 255, 0.15);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Секция технологий */
.technologies-section {
    margin: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tech-card {
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out both;
}

.tech-card:nth-child(1) {
    animation-delay: 0.5s;
}

.tech-card:nth-child(2) {
    animation-delay: 0.6s;
}

.tech-card:nth-child(3) {
    animation-delay: 0.7s;
}

.tech-card:nth-child(4) {
    animation-delay: 0.8s;
}

.tech-card:nth-child(5) {
    animation-delay: 0.9s;
}

.tech-card:nth-child(6) {
    animation-delay: 1s;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(102, 179, 255, 0.5));
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.2) rotate(10deg);
}

.tech-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue-bright);
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 15px;
}

.game-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 179, 255, 0.5);
}

.game-card button {
    pointer-events: none;
}

/* Футер */
.glass-footer {
    margin-top: 100px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-content {
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--blue-accent);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(102, 179, 255, 0.25);
    border-color: var(--blue-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(102, 179, 255, 0.4);
    filter: brightness(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 15px;
    }
    
    #loginProfileBtn {
        order: 3;
        width: auto;
        margin-left: 10px;
        margin-right: 0;
    }
    
    .language-switcher {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .lang-code {
        font-size: 12px;
    }
    
    .lang-name {
        font-size: 9px;
    }
    
    .logo {
        order: 2;
        font-size: 18px;
        gap: 8px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .founder-badge {
        font-size: 10px;
        padding: 4px 8px;
        margin-left: 6px;
    }
    
    .menu-toggle {
        order: 3;
        display: flex;
        z-index: 100;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(0, 26, 51, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 20px 20px;
        gap: 15px;
        order: 4;
        z-index: 99;
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }
    
    /* Предотвращаем прокрутку body при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .nav-link svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-text {
        opacity: 1 !important;
        max-width: none !important;
        transform: none !important;
        font-size: 16px;
        margin-left: 12px;
    }

    .hero {
        margin: 40px 0;
    }

    .hero-card {
        padding: 40px 25px;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 48px);
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 30px;
    }
    
    .hero-badge {
        padding: 6px 16px;
        margin-bottom: 20px;
    }
    
    .badge-text {
        font-size: 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin: 30px 0;
        padding: 30px 0;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 50px 0;
    }
    
    .content-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    
    .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .section-title {
        font-size: clamp(28px, 6vw, 42px);
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: clamp(14px, 3vw, 18px);
        margin-bottom: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .technologies-section {
        margin: 50px 0;
        padding: 0 20px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-card {
        padding: 30px 20px;
    }
    
    .tech-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .tech-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .tech-card p {
        font-size: 14px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .link-card {
        padding: 25px 20px;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .link-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .link-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .profile-section {
        padding: 40px 20px;
    }
    
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h3 {
        font-size: 24px;
    }
    
    .profile-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 12px 15px;
    }
    
    .language-switcher {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        min-width: 60px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }

    .hero-card {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: clamp(24px, 10vw, 36px);
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: clamp(13px, 4vw, 16px);
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 25px;
        margin: 25px 0;
        padding: 25px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 11px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .content-card {
        padding: 25px 18px;
    }
    
    .section-title {
        font-size: clamp(24px, 8vw, 32px);
    }
    
    .section-subtitle {
        font-size: clamp(13px, 4vw, 16px);
    }
    
    .tech-card {
        padding: 25px 18px;
    }
    
    .tech-icon {
        font-size: 36px;
    }
    
    .tech-card h4 {
        font-size: 16px;
    }
    
    .tech-card p {
        font-size: 13px;
    }
    
    .link-card {
        padding: 20px 18px;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
    }
    
    .link-card h4 {
        font-size: 16px;
    }
    
    .link-card p {
        font-size: 13px;
    }
    
    .profile-card {
        padding: 25px 18px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-info h3 {
        font-size: 20px;
    }
    
    .profile-info p {
        font-size: 13px;
    }

    /* Уменьшаем нагрузку фона на мобильных */
    .blob {
        filter: blur(40px);
        opacity: 0.2;
    }
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 280px; height: 280px; }
    .blob-3 { width: 250px; height: 250px; }
    .blob-4 { width: 270px; height: 270px; }
    
    .glass-nav {
        padding: 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Отключаем hover-анимации на тач-устройствах */
@media (hover: none) {
    .nav-link:hover,
    .nav-link.active { transform: none; box-shadow: none; }
    .nav-link:hover svg { transform: none; filter: none; }
    .glass-card:hover { transform: none; box-shadow: 0 8px 32px var(--glass-shadow); }
    .content-card:hover .card-icon,
    .tech-card:hover .tech-icon { transform: none; filter: none; }
}

/* Предпочтение сниженной анимации */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Дополнительные эффекты */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.glass-card::after {
    display: none;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.7);
}

/* Профиль и авторизация */
.profile-auth-container {
    position: relative;
}

/* Кнопка входа использует стили nav-link */
#loginProfileBtn {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* .login-btn {
    background: rgba(102, 179, 255, 0.15) !important;
    border: 1px solid rgba(102, 179, 255, 0.3) !important;
} */

/* .login-btn:hover {
    background: rgba(102, 179, 255, 0.25) !important;
    border-color: var(--blue-accent) !important;
    transform: translateY(-2px);
} */

#loginProfileBtn:focus-visible {
    outline: 2px solid var(--blue-accent);
    outline-offset: 4px;
}

.profile-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-btn:hover {
    background: rgba(102, 179, 255, 0.15);
    transform: translateY(-2px);
}

.profile-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-btn:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(51, 133, 255, 0.6));
}

.profile-menu {
    display: flex;
    align-items: center;
    position: relative;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(102, 179, 255, 0.15);
    color: var(--blue-bright);
    transform: translateX(5px);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-item {
    color: #51cf66;
}

.admin-item:hover {
    background: rgba(40, 167, 69, 0.15);
    color: #51cf66;
}

.logout-item {
    color: #ff6b6b;
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

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

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-bright);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue-bright);
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.telegram-link {
    color: var(--blue-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: var(--blue-bright);
    text-decoration: underline;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--blue-light);
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    padding: 14px 18px;
    background: rgba(102, 179, 255, 0.1);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: rgba(102, 179, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 179, 255, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: normal;
}

.input-group small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.form-error {
    padding: 12px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 6px 30px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
}

/* Админ панель */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    overflow-y: auto;
    padding: 40px 20px;
}

.admin-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 30px;
    text-align: center;
}

.admin-header h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-section {
    padding: 30px;
}

.admin-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--blue-bright);
}

.edit-buttons,
.content-controls,
.upload-section,
.ids-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.editable-content {
    padding: 20px;
    background: rgba(102, 179, 255, 0.05);
    border: 1px dashed rgba(102, 179, 255, 0.3);
    border-radius: 12px;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.8);
}

.editable-content[contenteditable="true"] {
    background: rgba(102, 179, 255, 0.1);
    border-style: solid;
    outline: none;
}

#uploadStatus {
    padding: 12px;
    background: rgba(102, 179, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    min-height: 40px;
}

.ids-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(102, 179, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.ids-table thead {
    background: rgba(102, 179, 255, 0.15);
}

.ids-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--blue-bright);
    border-bottom: 2px solid rgba(102, 179, 255, 0.3);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ids-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(102, 179, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.ids-table tbody tr:hover {
    background: rgba(102, 179, 255, 0.1);
    transition: background 0.2s ease;
}

.ids-table tbody tr:last-child td {
    border-bottom: none;
}

.ids-table td:first-child {
    width: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.ids-table td:nth-child(2) {
    font-weight: 600;
    color: var(--blue-light);
    letter-spacing: 1px;
}

.ids-table td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.status-active {
    color: #51cf66;
    font-weight: 600;
}

.status-inactive {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .profile-auth-container {
        width: 100%;
        margin-top: 10px;
    }
    
    .profile-menu {
        width: 100%;
        justify-content: center;
    }
    
    .profile-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-header p {
        font-size: 13px;
    }
    
    .input-group input {
        padding: 12px 16px;
        font-size: 18px; /* Увеличиваем для мобильных, чтобы не показывалась клавиатура */
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    .admin-panel {
        padding: 20px 15px;
    }
    
    .admin-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .admin-header h3 {
        font-size: 24px;
    }
    
    .admin-header p {
        font-size: 14px;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-section {
        padding: 20px 15px;
    }
    
    .admin-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .editable-content {
        padding: 15px;
        min-height: 150px;
        font-size: 14px;
    }
    
    .edit-buttons,
    .content-controls,
    .upload-section,
    .ids-controls {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .ids-table {
        font-size: 12px;
    }
    
    .ids-table th,
    .ids-table td {
        padding: 10px 12px;
    }
    
    .ids-table td:nth-child(2) {
        font-size: 12px;
        word-break: break-all;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

.founder-badge {
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(102, 179, 255, 0.15);
    border: 1px solid rgba(102, 179, 255, 0.35);
    color: var(--blue-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* Стили для подписок Vlees */
.vlees-subscriptions {
    margin-top: 40px;
}

.vlees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.vlees-subscription-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.vlees-subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--glass-shadow);
    border-color: var(--blue-accent);
}

.vlees-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102, 179, 255, 0.2);
}

.vlees-subscription-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-light);
    margin: 0;
}

.vlees-subscription-expires {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(102, 179, 255, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(102, 179, 255, 0.2);
}

.vlees-configs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vlees-config-item {
    background: rgba(0, 51, 153, 0.2);
    border: 1px solid rgba(102, 179, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.vlees-config-item:hover {
    background: rgba(0, 51, 153, 0.3);
    border-color: var(--blue-accent);
}

.vlees-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vlees-config-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-bright);
    margin: 0;
}

.vlees-config-actions {
    display: flex;
    gap: 8px;
}

.vlees-config-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(102, 179, 255, 0.15);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 8px;
    color: var(--blue-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.vlees-config-btn:hover {
    background: rgba(102, 179, 255, 0.25);
    border-color: var(--blue-accent);
    transform: scale(1.05);
}

.vlees-config-btn:active {
    transform: scale(0.95);
}

.vlees-config-content {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    max-height: 100px;
    overflow-y: auto;
    line-height: 1.6;
}

.profile-message {
    margin-top: 40px;
}

.profile-message .glass-card {
    text-align: center;
    padding: 40px 30px;
}

.profile-message .tech-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.profile-message h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.profile-message p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Адаптивность для подписок Vlees */
@media (max-width: 768px) {
    .vlees-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vlees-subscription-card {
        padding: 20px;
    }
    
    .vlees-subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .vlees-config-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .vlees-config-btn {
        width: 100%;
    }
}

