/* ============================================
   SERVICES PAGE — Услуги
   Синий: #1f559b | Акцент: #fd6513 (только CTA)
   ============================================ */

/* ==================== */
/* СЕТКА УСЛУГ          */
/* ==================== */
.services-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==================== */
/* КАРТОЧКА УСЛУГИ      */
/* ==================== */
.service-card-page {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
}

.service-card-page:hover {
    box-shadow: 0 12px 40px rgba(31, 85, 155, 0.1);
    transform: translateY(-4px);
    border-color: rgba(31, 85, 155, 0.2);
}

.service-card-page-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-light);
}

.service-card-page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-page:hover .service-card-page-img img {
    transform: scale(1.05);
}

.service-card-page-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.service-card-page-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card-page:hover .service-card-page-info h3 {
    color: #1f559b;
}

.service-card-page-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-card-page-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f559b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.service-card-page:hover .service-card-page-link {
    color: #fd6513;
}

.service-card-page-link svg {
    transition: transform 0.3s ease;
}

.service-card-page:hover .service-card-page-link svg {
    transform: translateX(3px);
}

/* ==================== */
/* ИЗОБРАЖЕНИЕ УСЛУГИ   */
/* ==================== */
.service-featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(10, 20, 40, 0.1);
    border: 1px solid var(--border-light);
}

.service-featured-img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* ==================== */
/* КОНТЕНТ УСЛУГИ       */
/* ==================== */
.service-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.service-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--dark);
}

.service-content h2:first-child {
    margin-top: 0;
}

.service-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--dark);
}

.service-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--dark);
}

.service-content p {
    margin-bottom: 16px;
}

.service-content ul,
.service-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.service-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.service-content strong {
    color: var(--dark);
    font-weight: 700;
}

/* ==================== */
/* CTA БЛОК             */
/* ==================== */
.service-cta {
    margin-top: 48px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(31, 85, 155, 0.03) 0%, rgba(31, 85, 155, 0.06) 100%);
    border: 1px solid rgba(31, 85, 155, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.service-cta-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-cta-info svg {
    color: #1f559b;
    flex-shrink: 0;
    opacity: 0.7;
}

.service-cta-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.service-cta-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.service-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== */
/* ПАГИНАЦИЯ            */
/* ==================== */
.pagination {
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text);
}

.pagination-item.active span {
    background: #1f559b;
    color: #FFFFFF;
    border-color: #1f559b;
}

.pagination-item a:hover {
    background: rgba(31, 85, 155, 0.04);
    border-color: #1f559b;
    color: #1f559b;
}

/* ==================== */
/* НЕТ РЕЗУЛЬТАТОВ      */
/* ==================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    margin: 20px 0 12px;
    font-size: 1.3rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ==================== */
/* АДАПТИВ              */
/* ==================== */
@media (max-width: 992px) {
    .services-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-featured-img {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .service-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .service-cta-info {
        flex-direction: column;
    }
    .service-cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .services-grid-page {
        grid-template-columns: 1fr;
    }
    .service-cta-actions {
        flex-direction: column;
    }
    .service-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .service-featured-image {
        margin-bottom: 24px;
    }
    .service-featured-img {
        aspect-ratio: 4/3;
    }
}