/**
 * SERVICES COMMON CSS
 * Универсальные стили для всех страниц услуг Genesis One
 * Версия: 1.0.0
 * 
 * Цвета бренда:
 * - Фон: #f3f3f3
 * - Текст: #373435
 * - Акцент: #2c292a (синий)
 */

/* ============================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --color-background: #f3f3f3;
    --color-white: #ffffff;
    --color-text-primary: #373435;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-accent-primary: #373435;
    --color-accent-secondary: #2c292a;
    --color-accent-light: #60a5fa;
    --color-border: #e8e8e8;
    --color-border-light: #f0f0f0;
    --color-success: #10b981;
    --color-card-bg: #f9f9f9;
    
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ОБЩИЙ КОНТЕЙНЕР ДЛЯ СТРАНИЦ УСЛУГ
   ============================================ */
.service-page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HERO СЕКЦИЯ (Главный блок)
   ============================================ */
.service-hero {
    padding: 60px 20px;
    background: var(--color-background);
    text-align: center;
}

.service-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-badge:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-small);
}

.service-badge svg,
.service-badge .badge-icon {
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.service-hero-title,
.service-title-h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.service-hero-description,
.service-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   СЕКЦИИ (Общие блоки контента)
   ============================================ */
.service-section {
    padding: 80px 20px;
}

.service-section-white {
    background: var(--color-white);
}

.service-section-gray {
    background: var(--color-background);
}

.service-section-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-section-blue {
    background: linear-gradient(135deg, #838383 0%, #000000 100%);
}

/* Заголовки секций */
.service-section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.service-section-title,
.service-title-h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Для синей секции */
.service-section-blue .service-section-title,
.service-section-blue h2,
.service-section-blue h3 {
    color: var(--color-white);
}

.service-section-blue .service-section-subtitle,
.service-section-blue p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   СЕТКИ (Grid Layouts)
   ============================================ */
.service-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   КАРТОЧКИ (Cards)
   ============================================ */
.service-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--color-white);
    border-color: var(--color-accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.service-card-white {
    background: var(--color-white);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-white);
    border: 2px solid var(--color-accent-primary);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.service-card-icon svg {
    width: 32px;
    height: 32px;
}

.service-card-title,
.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card-text,
.service-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   СПИСКИ С НУМЕРАЦИЕЙ
   ============================================ */
.service-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-list-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-list-item:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-medium);
    transform: translateX(8px);
}

.service-list-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
}

.service-list-content h3,
.service-list-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-list-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   СПИСКИ С ГАЛОЧКАМИ (Checklist)
   ============================================ */
.service-checklist {
    max-width: 900px;
    margin: 0 auto;
}

.service-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.service-checklist-item:last-child {
    border-bottom: none;
}

.service-checklist-item:hover {
    padding-left: 12px;
    transition: padding-left 0.3s ease;
}

.service-checklist-icon {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-checklist-icon::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 600;
    font-size: 14px;
}

.service-checklist-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.service-checklist-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   МАРКИРОВАННЫЕ СПИСКИ (Bullet Lists)
   ============================================ */
.service-bullet-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    max-width: 800px;
}

.service-bullet-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-text-primary);
    line-height: 1.6;
}

.service-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: 50%;
}

/* Вариант с галочками */
.service-bullet-list.list-check li::before {
    content: '✓';
    width: auto;
    height: auto;
    background: none;
    color: var(--color-success);
    font-weight: 700;
    font-size: 18px;
    top: 0;
}

/* ============================================
   БЕЙДЖИ И ТЕГИ
   ============================================ */
.service-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--color-white);
    border: 3px solid var(--color-accent-primary);
    border-radius: var(--radius-full);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin: 24px auto;
}

.service-badge-large svg {
    color: var(--color-accent-primary);
}

.service-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-accent-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 4px;
}

/* ============================================
   КНОПКИ (Buttons)
   ============================================ */
.service-button,
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--color-accent-primary);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-button:hover,
.service-btn:hover {
    background: var(--color-accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    color: var(--color-white);
    text-decoration: none;
}

.service-button svg {
    flex-shrink: 0;
}

/* Вариант белой кнопки */
.service-button-white {
    background: var(--color-white);
    color: var(--color-accent-primary);
}

.service-button-white:hover {
    background: #f0f9ff;
    color: var(--color-accent-primary);
}

/* Вариант кнопки с обводкой */
.service-button-outline {
    background: transparent;
    border: 2px solid var(--color-accent-primary);
    color: var(--color-accent-primary);
}

.service-button-outline:hover {
    background: var(--color-accent-primary);
    color: var(--color-white);
}

/* ============================================
   ИНФОРМАЦИОННЫЕ БЛОКИ
   ============================================ */
.service-info-box {
    background: var(--color-white);
    border-left: 4px solid var(--color-accent-primary);
    padding: 24px;
    border-radius: var(--radius-medium);
    margin: 24px 0;
}

.service-info-box h4 {
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-info-box p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Варианты цветов */
.service-info-box.info-success {
    border-left-color: var(--color-success);
}

.service-info-box.info-warning {
    border-left-color: #f59e0b;
}

/* ============================================
   ЦЕНТРИРОВАННЫЕ КОНТЕЙНЕРЫ
   ============================================ */
.service-container-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-container-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.service-container-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   РАЗДЕЛИТЕЛИ
   ============================================ */
.service-divider {
    height: 1px;
    background: var(--color-border);
    margin: 60px auto;
    max-width: 800px;
}

.service-divider-thick {
    height: 2px;
    background: var(--color-accent-primary);
    margin: 60px auto;
    max-width: 200px;
}

/* ============================================
   СТАТИСТИКА / СЧЕТЧИКИ
   ============================================ */
.service-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.service-stat-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-stat-card:hover {
    background: var(--color-card-bg);
    border-color: var(--color-accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.service-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.service-stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   АККОРДЕОНЫ / FAQ
   ============================================ */
.service-faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    margin-bottom: 16px;
    overflow: hidden;
}

.service-faq-question {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-faq-question:hover {
    background: var(--color-card-bg);
}

.service-faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   ИКОНКИ
   ============================================ */
.service-icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-primary);
    margin-bottom: 16px;
}

.service-icon-square {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-primary);
    margin-bottom: 16px;
}

/* ============================================
   ТЕКСТОВЫЕ УТИЛИТЫ
   ============================================ */
.service-text-center {
    text-align: center;
}

.service-text-left {
    text-align: left;
}

.service-text-large {
    font-size: 20px;
    line-height: 1.6;
}

.service-text-small {
    font-size: 14px;
}

.service-text-bold {
    font-weight: 700;
}

.service-text-medium {
    font-weight: 500;
}

.service-text-muted {
    color: var(--color-text-light);
}

/* ============================================
   ОТСТУПЫ
   ============================================ */
.service-mt-1 { margin-top: 16px; }
.service-mt-2 { margin-top: 24px; }
.service-mt-3 { margin-top: 32px; }
.service-mt-4 { margin-top: 48px; }
.service-mt-5 { margin-top: 64px; }

.service-mb-1 { margin-bottom: 16px; }
.service-mb-2 { margin-bottom: 24px; }
.service-mb-3 { margin-bottom: 32px; }
.service-mb-4 { margin-bottom: 48px; }
.service-mb-5 { margin-bottom: 64px; }

.service-pt-1 { padding-top: 16px; }
.service-pt-2 { padding-top: 24px; }
.service-pt-3 { padding-top: 32px; }
.service-pt-4 { padding-top: 48px; }
.service-pt-5 { padding-top: 64px; }

.service-pb-1 { padding-bottom: 16px; }
.service-pb-2 { padding-bottom: 24px; }
.service-pb-3 { padding-bottom: 32px; }
.service-pb-4 { padding-bottom: 48px; }
.service-pb-5 { padding-bottom: 64px; }

/* ============================================
   АДАПТИВНОСТЬ (Mobile)
   ============================================ */
@media (max-width: 768px) {
    .service-hero-title,
    .service-title-h1 {
        font-size: 32px;
    }

    .service-hero-description,
    .service-description {
        font-size: 16px;
    }

    .service-section-title,
    .service-title-h2 {
        font-size: 32px;
    }

    .service-section {
        padding: 60px 20px;
    }

    .service-grid-2,
    .service-grid-3,
    .service-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-list-item {
        flex-direction: column;
        padding: 24px;
    }

    .service-list-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .service-button,
    .service-btn {
        font-size: 16px;
        padding: 14px 28px;
    }

    .service-badge-large {
        font-size: 20px;
        padding: 16px 32px;
    }

    .service-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-hero-title,
    .service-title-h1 {
        font-size: 28px;
    }

    .service-hero,
    .service-section {
        padding: 40px 16px;
    }

    .service-card,
    .service-list-item {
        padding: 20px;
    }

    .service-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ПЕЧАТЬ
   ============================================ */
@media print {
    .service-button,
    .service-btn {
        display: none;
    }
}