/* =====================================================
   БАЗОВЫЕ СТИЛИ
   ===================================================== */

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #0a0a0f;
    margin: 0;
    padding: 0;
}

.gradient-bg {
    background: radial-gradient(ellipse at 50% 50%, #14141f 0%, #0a0a0f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =====================================================
   ГЛАВНЫЙ ЗАГОЛОВОК
   ===================================================== */

.main-title {
    font-size: 72px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 80px rgba(59, 130, 246, 0.15), 0 0 150px rgba(59, 130, 246, 0.05);
    letter-spacing: -2px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 96px;
    }
}

.sub-title {
    font-size: 24px;
    font-weight: 300;
    color: rgba(147, 197, 253, 0.8);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .sub-title {
        font-size: 30px;
    }
}

.slogan-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .slogan-text {
        font-size: 24px;
    }
}

.description-text {
    color: #9ca3af;
    font-size: 18px;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .description-text {
        font-size: 20px;
    }
}

/* =====================================================
   ИКОНКА
   ===================================================== */

.icon-container {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.125), rgba(30, 64, 175, 0.125));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.05);
}

/* =====================================================
   СТЕКЛЯННЫЕ БЛОКИ (glassmorphism)
   ===================================================== */

.badge-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-glass-light {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.badge-glass-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.badge-glass-light:active {
    transform: scale(0.96);
}

/* =====================================================
   КНОПКИ
   ===================================================== */

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: all 0.3s ease;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* =====================================================
   ПОЛЯ ВВОДА
   ===================================================== */

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    text-align: left;
    display: none;
    padding-left: 4px;
}

.form-error.show {
    display: block;
}

.form-hint {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    margin-top: 2px;
    text-align: left;
    padding-left: 4px;
}

/* =====================================================
   TOAST (ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ)
   ===================================================== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

.toast.success {
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =====================================================
   АНИМАЦИИ
   ===================================================== */

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* =====================================================
   ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ
   ===================================================== */

.glow-orbe {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.grid-line {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =====================================================
   КОНТАКТНАЯ СТРОКА
   ===================================================== */

.contact-row {
    transition: all 0.4s ease;
    padding: 10px 24px;
    border-radius: 16px;
    border: 2px solid transparent;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
}

.contact-row.highlight {
    border-color: #f5e6c8;
    background: rgba(245, 230, 200, 0.06);
    box-shadow: 0 0 40px rgba(245, 230, 200, 0.04);
}

.contact-row a {
    color: #9ca3af;
    transition: color 0.3s ease;
    text-decoration: none;
}

.contact-row a:hover {
    color: #d1d5db;
}

.contact-row .sep {
    color: #374151;
}

/* =====================================================
   КНОПКА ЗАКРЫТИЯ ДЛЯ TELEGRAM
   ===================================================== */

.tg-close-btn {
    position: fixed;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.tg-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* =====================================================
   КЛАССЫ ДЛЯ РАЗНЫХ ПЛАТФОРМ
   ===================================================== */

.is-telegram .tg-padding {
    padding-top: 50px;
}

.is-telegram .tg-close-btn {
    display: flex;
}

/* =====================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ===================================================== */

@media (max-width: 640px) {
    .main-title {
        font-size: 48px;
    }
    .sub-title {
        font-size: 18px;
    }
    .slogan-text {
        font-size: 16px;
    }
    .description-text {
        font-size: 15px;
    }
    .icon-container {
        width: 80px;
        height: 80px;
    }
    .icon-container span {
        font-size: 36px;
    }
}