:root {
    --bg-primary: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent-ai: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
    --radius-main: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* AI Glow Effects & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-main);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.ai-gradient-text {
    background: var(--accent-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Модальные окна */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Кнопки оплаты */
.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.patreon-btn { background: #ff424d; color: #fff; }
.patreon-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.boosty-btn { background: #f15f2c; color: #fff; }
.boosty-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Ползунок языка EN/RU */
.lang-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.active-lang { color: #fff; }
.switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-card); border: 1px solid var(--border-card);
    transition: .4s; border-radius: 20px;
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: rgba(255,255,255,0.2); }
input:checked + .slider:before { transform: translateX(18px); }

/* Форма обратной связи */
.feedback-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: #fff;
    border-radius: 10px;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* ==========================================
   📱 АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (iPhone)
   ========================================== */

@media (max-width: 768px) {
    /* Контейнер и отступы по бокам */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Шапка сайта */
    header {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    
    header nav {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
        text-align: center;
    }

    /* Главный заголовок (Hero section) */
    h1 {
        font-size: 28px !important; /* Уменьшаем гигантский заголовок */
        line-height: 1.3 !important;
    }

    /* Подзаголовки */
    h2 {
        font-size: 22px !important;
    }

    /* Описание и параграфы */
    p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* Карточки (glass-card) */
    .glass-card {
        padding: 24px 18px !important; /* Уменьшаем огромные паддинги */
        border-radius: 18px !important;
    }

    /* Блок "Обо мне" */
    #about .glass-card {
        padding: 28px 20px !important;
    }

    /* Соцсети (Telegram / Instagram) */
    #about div[style*="display: flex"] {
        flex-direction: column !important; /* Кнопки встают друг под друга */
        width: 100%;
    }

    #about a {
        width: 100%;
        justify-content: center;
    }

    /* Подвал (Footer) */
    footer {
        margin-top: 60px !important;
        padding-top: 24px !important;
    }

    footer div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important; /* Сетка контактов и документов в 1 колонку */
        gap: 24px !important;
    }
}

