/* Базовые стили */
:root {
    --primary-color: rgba(255, 255, 255, 0.9);
    --secondary-color: rgba(255, 255, 255, 0.7);
    --accent-color: #007AFF;
    --accent-light: rgba(0, 122, 255, 0.1);
    --background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --spacing: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px;
}

/* Навигационная панель */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    padding: 16px 24px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--accent-light);
}

.nav-brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    backdrop-filter: blur(30px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-header h3 {
    font-weight: 600;
    color: #000;
    font-size: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-content {
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.menu-item:hover {
    background-color: rgba(0, 122, 255, 0.1);
    text-decoration: none;
}

.menu-item.active {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.menu-item i {
    margin-right: 16px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-weight: 500;
    font-size: 17px;
}

.menu-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 14px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Основной контент */
.container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.main-title {
    font-size: 5.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
}

/* Анимации появления */
.animate-title {
    animation: fadeInUp 1s ease forwards 0.3s;
}

.animate-subtitle {
    animation: fadeInUp 1s ease forwards 0.6s;
}

.animate-card {
    opacity: 0;
    transform: translateY(40px);
}

.animate-card:nth-child(1) {
    animation: fadeInUp 1s ease forwards 0.9s;
}

.animate-card:nth-child(2) {
    animation: fadeInUp 1s ease forwards 1.1s;
}

.animate-card:nth-child(3) {
    animation: fadeInUp 1s ease forwards 1.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Карточки */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    cursor: pointer;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(88, 86, 214, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 32px;
    color: var(--accent-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.card-username {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.card-description {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.card-badge.coming-soon {
    background-color: rgba(142, 142, 147, 0.15);
    color: #8E8E93;
}

/* Кнопка "Назад" на странице ботов */
.back-link {
    text-align: center;
    margin-top: 60px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--accent-color);
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 24px;
    color: #666;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .side-menu {
        width: 280px;
    }
}