/* telegram-bots.css — стили специально для страницы про Telegram-ботов */

/* Сбрасываем/переопределяем базовые стили секций, чтобы не зависеть от анимации */
.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    margin: 32px 0;
    padding: 40px 32px;
}

/* Заголовки */
.section-title {
    color: #FF6B35;
    font-size: 2.4rem;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #FFA726);
    border-radius: 2px;
}

/* Сетка карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 8px;
}

.card {
    background: #fffaf5;
    border: 1px solid #ffe8d1;
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.18);
    border-color: #FF6B35;
}

.card h3 {
    color: #FF6B35;
    font-size: 1.55rem;
    margin-bottom: 14px;
}

.card p {
    color: #444;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Список преимуществ */
.skills-list {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 0 auto 32px;
}

.skills-list li {
    background: #fffaf5;
    margin: 16px 0;
    padding: 18px 24px 18px 60px;
    border-radius: 10px;
    border-left: 5px solid #FFA726;
    position: relative;
    font-size: 1.08rem;
    line-height: 1.55;
}

.skills-list li::before {
    content: "⚙️";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
}

/* CTA блок */
.cta-section {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA726 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 16px;
    margin: 48px 0;
}

.cta-section .section-title {
    color: white;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;  /* зелёный градиент */
    color: white !important;
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    margin-top: 16px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 24px rgba(40, 167, 69, 0.35);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 32px 20px;
    }
    .section-title {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Принудительно делаем секции видимыми на этой странице */
.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* На всякий случай — карточки тоже видимые */
.services-grid,
.card {
    opacity: 1 !important;
    display: block !important; /* или grid для .services-grid */
    visibility: visible !important;
}

/* Увеличиваем высоту белого фона в блоке задач, чтобы карточки не вылезали */
#use-cases {
    padding-bottom: 60px !important;   /* было 40px или меньше — теперь больше запаса снизу */
    min-height: 600px !important;      /* минимальная высота секции — подстраховка */
}
