:root {
    --brand-telegram-blue: #0088CC;
    --bg-light: #F9FAFF;
    --card-bg: #FFFFFF;
    --text-dark-primary: #111827;
    --text-dark-secondary: #6B7280;
    --border-color: #F0F1F5;
    --font-main: 'Manrope', sans-serif;
    --transition-smooth: 0.3s ease-out;
    --shadow-soft: 0 4px 15px rgba(17, 24, 39, 0.05);
    --shadow-hover: 0 8px 30px rgba(17, 24, 39, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark-primary);
    margin: 0;
    padding: 50px 16px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle 800px at var(--x, 50%) var(--y, 50%), rgba(0, 136, 204, 0.1), transparent 60%);
    z-index: -1;
    will-change: background;
    transition: background 0.1s ease-out;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header-section { margin-bottom: 50px; }

.main-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.main-title-icon {
    width: clamp(30px, 5vw, 42px);
    height: clamp(30px, 5vw, 42px);
    color: var(--brand-telegram-blue);
}

.main-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-dark-secondary);
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

@keyframes card-fade-in-up {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    animation: card-fade-in-up 0.6s ease-out both;
}

.bot-card:nth-child(1) { animation-delay: 0.10s; }
.bot-card:nth-child(2) { animation-delay: 0.15s; }
.bot-card:nth-child(3) { animation-delay: 0.20s; }
.bot-card:nth-child(4) { animation-delay: 0.25s; }
.bot-card:nth-child(5) { animation-delay: 0.30s; }
.bot-card:nth-child(6) { animation-delay: 0.35s; }
.bot-card:nth-child(7) { animation-delay: 0.40s; }
.bot-card:nth-child(8) { animation-delay: 0.45s; }
.bot-card:nth-child(9) { animation-delay: 0.50s; }
.bot-card:nth-child(10){ animation-delay: 0.55s; }

.bot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.bot-card::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-200%) skewX(-30deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bot-card:hover::after { transform: translateX(300%) skewX(-30deg); }

.card-icon {
    width: 32px; height: 32px;
    margin-bottom: 16px;
    color: var(--brand-telegram-blue);
}
.card-title {
    font-size: 1.1rem; font-weight: 700;
    margin: 0 0 8px 0;
}
.card-description {
    font-size: 0.85rem; line-height: 1.5;
    color: var(--text-dark-secondary);
    flex-grow: 1; margin-bottom: 20px;
}
.card-button {
    display: block; width: 100%; text-align: center;
    background-color: #F3F4F6;
    color: var(--text-dark-primary);
    border: none; padding: 12px; border-radius: 10px;
    text-decoration: none; font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.card-button:hover {
    background-color: var(--brand-telegram-blue);
    color: #FFFFFF;
}

.footer { margin-top: 50px; color: #9CA3AF; font-size: 0.85rem; }

@media (min-width: 640px) { .bots-grid { gap: 20px; } }
@media (min-width: 1200px) { .bots-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
/* --- Стили для плашки "Создать своего бота" --- */
.creator-plaque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 60px;
    padding: 32px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: var(--transition-smooth);
    animation: card-fade-in-up 0.6s ease-out 0.7s both; /* Появляется последним */
}

.creator-plaque:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 136, 204, 0.4);
}

.plaque-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.plaque-text p {
    color: var(--text-dark-secondary);
    margin: 0;
}

.plaque-button {
    background-color: var(--brand-telegram-blue);
    color: #FFFFFF;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap; /* Чтобы текст кнопки не переносился */
    margin-left: 20px;
}

.plaque-button:hover {
    background-color: #0077b3;
    transform: scale(1.05);
}

/* Адаптивность для плашки */
@media (max-width: 768px) {
    .creator-plaque {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }

    .plaque-button {
        width: 100%;
        margin-left: 0;
    }
}