/* ========================================
   СТИЛИ ДЛЯ СТРАНИЦ СЕРВИСОВ
   ======================================== */

/* Хлебные крошки */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Заголовок сервиса */
.service-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 2rem;
}

.service-icon {
    max-width: 120px;
    max-height: 120px;
    margin: 0 auto 1.5rem;
    display: block;
}

.service-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.service-header .lead {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
}

/* Контент сервиса */
.service-content {
    padding: 1rem 0;
}

.service-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.service-content h2:first-child {
    margin-top: 0;
}

.service-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.service-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.service-content ul,
.service-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.service-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.5rem;
}

.service-content ul li {
    list-style-type: disc;
}

.service-content ol li {
    list-style-type: decimal;
}

/* Сетка компонентов */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.component-card {
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
}

.component-card h4 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.component-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

/* Боковая панель (если нужна) */
.service-sidebar {
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.service-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
}

.service-sidebar li {
    margin-bottom: 0.75rem;
}

.service-sidebar a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-sidebar a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Таблицы на странице сервиса */
.service-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-content th {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.service-content td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.service-content tr:hover {
    background: #f8f9fa;
}

.service-content tr:last-child td {
    border-bottom: none;
}

/* Блоки с предупреждениями/советами */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.info-box.success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.info-box.danger {
    background: #ffebee;
    border-left-color: #f44336;
}

.info-box p {
    margin-bottom: 0;
}

/* Адаптивность для страниц сервисов */
@media (max-width: 768px) {
    .service-header h1 {
        font-size: 2rem;
    }

    .service-header .lead {
        font-size: 1.1rem;
    }

    .service-icon {
        max-width: 100px;
        max-height: 100px;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }

    .components-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .service-header {
        padding: 1.5rem 0;
    }

    .service-header h1 {
        font-size: 1.75rem;
    }

    .service-icon {
        max-width: 80px;
        max-height: 80px;
    }

    .service-content h2 {
        font-size: 1.35rem;
    }

    .component-card {
        padding: 1.25rem;
    }
}