/* ===== Services (Telegram bot, video lessons) ===== */

.services-page { max-width: 960px; margin: 0 auto; }

.services-head {
    margin-bottom: 1.25rem;
}

.services-head__title {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--dark, #0f172a);
    margin: 0;
    letter-spacing: -0.02em;
}

.services-head__sub {
    margin: 0.35rem 0 0;
    color: var(--text-light, #64748b);
    font-size: 0.9rem;
}

/* Telegram bot */
.bot-page { max-width: 640px; }

.bot-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.bot-hero__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 12px 28px rgba(34, 158, 217, 0.35);
}

.bot-hero__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--dark);
}

.bot-hero__text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.bot-hero__text strong { color: #0088cc; }

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
    transition: transform .2s, box-shadow .2s;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.45);
    color: #fff;
}

.bot-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
}

.bot-step__num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary, #f97316);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-step__text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    padding-top: 0.25rem;
}

.bot-step__text strong { color: var(--dark); }

.bot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.btn-services-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.btn-services-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Video lessons */
.videos-page { max-width: 1280px; }

.videos-admin {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.videos-admin__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.videos-admin__head i { color: var(--primary); }

.videos-admin .form-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.videos-admin .form-control {
    border-radius: 10px;
    border: 2px solid var(--border);
}

.videos-admin .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.btn-services-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.video-item__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-item__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item__body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-item__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.35;
}

.video-item__desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.video-item__foot {
    padding-top: 0.5rem;
}

.services-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-light);
}

.services-empty i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.services-pager {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.services-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.services-pager a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.services-pager a.disabled { opacity: 0.4; pointer-events: none; }
