/* css/services.css - стили для услуг */

/* Герой для страниц */
.page-hero {
    background: linear-gradient(135deg, #1e3a5c 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.page-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.page-hero__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.page-hero__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 25px;
}

.page-hero__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent, #7747D4);
}

.service-card--popular {
    border-color: var(--accent, #7747D4);
}

.service-card__badge {
    position: absolute;
    top: 5px;
    right: 20px;
    background:  var(--accent, #7747D4);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.service-card__title a {
    color: #333;
    text-decoration: none;
}

.service-card__title a:hover {
    color: #4CAF50;
}

.service-card__excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 25px;
}

.service-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Страница услуги */
.service-single {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin: 50px 0;
}

.service-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-content h2,
.service-content h3,
.service-content h4 {
    margin: 30px 0 15px;
    color: #333;
}

.service-features,
.service-advantages {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.features-list,
.advantages-list {
    list-style: none;
    padding: 0;
}

.features-list__item,
.advantages-list__item {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.features-list__item::before,
.advantages-list__item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Боковая панель */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-order,
.service-contacts,
.related-services {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-order h4,
.service-contacts h4,
.related-services h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-contacts__phone,
.service-contacts__email {
    display: block;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
}

.service-contacts__phone:hover,
.service-contacts__email:hover {
    color: #4CAF50;
}

.related-services__list {
    list-style: none;
    padding: 0;
}

.related-services__list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.related-services__list a {
    color: #333;
    text-decoration: none;
}

.related-services__list a:hover {
    color: #4CAF50;
}

/* Пагинация */
.pagination {
    margin: 50px 0;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .service-single {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }

    .page-hero__title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card__actions {
        flex-direction: column;
    }

    .page-hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Фильтр по категориям */
.services-filter {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.services-filter h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Категории в карточках */
.service-card__categories {
    margin-bottom: 15px;
}

.service-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e8;
    color: #2e7d32;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 5px;
}