.telegram-catalog {
    max-width: 1200px;
    margin: 0 auto 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.telegram-catalog h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.telegram-bots,
.telegram-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.telegram-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.telegram-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    border-color: #3b82f6;
}

.telegram-card > a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.telegram-card > a:hover {
    text-decoration: underline;
}

.telegram-card p {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4b5563;
}

.telegram-card p strong {
    font-size: 14px;
    color: #111827;
}

/* Форма */
.telegram-submit-form {
    max-width: 640px;
    margin: 0 auto 40px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.telegram-submit-form p {
    margin-bottom: 12px;
}

.telegram-submit-form label {
    font-size: 13px;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.telegram-submit-form input[type="text"],
.telegram-submit-form input[type="url"],
.telegram-submit-form textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #ffffff;
}

.telegram-submit-form input[type="text"]:focus,
.telegram-submit-form input[type="url"]:focus,
.telegram-submit-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
    outline: none;
}

.telegram-submit-form textarea {
    min-height: 80px;
    resize: vertical;
}

.telegram-submit-form input[type="radio"] {
    margin-right: 4px;
}

/* Кнопка */
.telegram-submit-form button[type="submit"],
.telegram-submit-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.telegram-submit-form button[type="submit"]:hover,
.telegram-submit-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.telegram-submit-form button[type="submit"]:active,
.telegram-submit-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.4);
}

/* Сообщения */
.telegram-submit-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.telegram-submit-message span[style*="color:red"] {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
    padding: 8px 10px;
    border-radius: 8px;
}

/* Адаптив */
@media (max-width: 640px) {
    .telegram-catalog {
        padding: 0 10px;
    }
    .telegram-submit-form {
        margin: 10px;
        padding: 14px 16px;
    }
}