/* Глобальный фон с технологичным свечением */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Радиальные градиенты для свечения по углам */
    background-image: radial-gradient(circle at 15% 50%, rgba(88, 166, 255, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Навигационная панель сверху */
.top-nav {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
}

/* Карточки в блоке "Что умеет бот" */
.card {
    background-color: #161b22;
    border: 1px solid #30363d;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-5px);
        border-color: #58a6ff;
        box-shadow: 0 0 15px rgba(88, 166, 255, 0.2); /* Легкое свечение при наведении */
    }

/* Акцентные кнопки мессенджеров */
.btn-tg {
    background-color: #229ED9;
    color: white;
    border: none;
}

    .btn-tg:hover {
        background-color: #1a7aad;
        color: white;
    }

.btn-max {
    background-color: #8b5cf6;
    color: white;
    border: none;
}

    .btn-max:hover {
        background-color: #7c3aed;
        color: white;
    }

/* Ледяной технологичный градиент (Синий -> Голубой -> Белый) */
.gradient-text-full {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* Легкая тень для объема */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Стили для Hero-блока (эффект матового стекла) */
.hero-card {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Кружочки шагов в блоке "Как подключить" */
.step-circle {
    width: 50px;
    height: 50px;
    background-color: #21262d;
    border: 1px solid #58a6ff;
    color: #58a6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- Стили для модального окна --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background-color: #161b22;
    border: 1px solid #58a6ff;
    border-radius: 12px;
    width: 90%;
    max-width: 900px; /* Увеличили максимальную ширину */
    max-height: 90vh; /* Ограничили высоту, чтобы не вылезало за экран */
    display: flex; /* Чтобы картинка центрировалась */
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    overflow: hidden; /* Скрываем лишнее */
}
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Стили для логотипа в шапке */
.logo-img {
    width: 50px; /* Ширина круга */
    height: 50px; /* Высота круга (должна совпадать с шириной) */
    object-fit: cover; /* Заполняет круг, обрезая лишнее по краям */
    border-radius: 50%; /* Делает картинку круглой */
    border: 2px solid #58a6ff; /* Синяя рамка, чтобы выделялась на темном фоне */
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5); /* Легкое свечение */
}

/* Стили для иконок внутри кнопок */
.btn-icon {
    width: 20px; /* Размер иконки */
    height: 20px; /* Размер иконки */
    object-fit: contain;
    margin-right: 8px; /* Отступ от текста */
    vertical-align: middle;
    margin-top: -3px; /* Легкий подъем, чтобы иконка стояла ровно с текстом */
}
/* Эффект для ссылок в футере */
.hover-link {
    transition: color 0.2s ease-in-out;
}

.hover-link:hover {
    color: #58a6ff !important; /* Синий цвет при наведении */
    text-decoration: underline !important;
}

.example-img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Картинка вписывается целиком, не обрезаясь */
    background-color: #161b22; /* Темный фон для пустых полей */
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 10px; /* Небольшой отступ внутри рамки */
}

.example-img:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3); /* Легкое свечение */
}