/* services.css - Стили для страницы услуг */

/* Переменные */
:root {
    --color-primary: #0056b3;
    --color-primary-dark: #004494;
    --color-primary-light: #e3f2fd;
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-info: #0dcaf0;
    --color-secondary: #6c757d;
}

/* Герой-секция услуг */
.services-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    min-height: 60vh;
    margin-top: -80px;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.min-vh-60 {
    min-height: 60vh !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Иконка в герое */
.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Волновой разделитель */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider path {
    fill: var(--color-white);
}

/* Хлебные крошки */
.breadcrumb {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='rgba(255,255,255,0.75)'/%3E%3C/svg%3E");
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: var(--color-white) !important;
    opacity: 0.9;
}

/* Карточки услуг (пазл) */
.service-card-large,
.service-card-medium,
.service-card-small {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.service-card-large:hover,
.service-card-medium:hover,
.service-card-small:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15) !important;
    border-color: var(--color-primary);
}

.service-card-large {
    min-height: 300px;
    border-radius: 20px !important;
}

.service-card-medium {
    min-height: 200px;
}

.service-card-small {
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.service-card-small .mt-auto {
    margin-top: auto;
}

/* Аккордеон услуг */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.1) !important;
}

.accordion-button {
    background: var(--color-primary-light) !important;
    color: var(--color-dark) !important;
    font-size: 1.1rem;
    padding: 1.5rem 2rem !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary) !important;
    background: var(--color-primary-light) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 2rem !important;
    background: var(--color-white);
}

/* Бэйджи услуг */
.badge {
    font-weight: 500;
    padding: 0.35em 0.85em;
    font-size: 0.75rem;
}

.bg-primary {
    background: var(--color-primary) !important;
}

.bg-success {
    background: var(--color-success) !important;
}

.bg-info {
    background: var(--color-info) !important;
}

.bg-warning {
    background: var(--color-warning) !important;
}

/* Таблица в аккордеоне */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 86, 179, 0.02);
}

.table th {
    font-weight: 600;
    color: var(--color-dark);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.table td {
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
}

.table-sm {
    font-size: 0.875rem;
}

/* Карточка стоимости */
.card.bg-primary {
    border-radius: 12px;
    border: none;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Процесс работы */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
}

.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.step-content {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 179, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h4 {
    color: var(--color-primary);
}

/* Карточки преимуществ */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.1) !important;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ */
.accordion-flush .accordion-item {
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.accordion-flush .accordion-button {
    background: var(--color-white) !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
    font-weight: 500;
}

.accordion-flush .accordion-button:not(.collapsed) {
    background: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
}

.accordion-flush .accordion-body {
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem;
}

/* CTA секция */
.services-cta {
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

/* Модальные окна */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.15);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

/* Анимация появления элементов */
.services-puzzle .row {
    animation: fadeInUp 0.8s ease-out;
}

.service-card-large,
.service-card-medium,
.service-card-small {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.accordion-item {
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }

.process-step {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

.benefit-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* Эффект пульсации для CTA кнопок */
.services-cta .btn {
    animation: pulse 2s infinite;
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-hero {
        min-height: 50vh;
    }
    
    .min-vh-60 {
        min-height: 50vh !important;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card-large {
        min-height: auto;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .process-step {
        padding-left: 70px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 40vh;
        padding-top: 70px;
    }
    
    .min-vh-60 {
        min-height: 40vh !important;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    .accordion-button {
        padding: 1rem 1.25rem !important;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.5rem !important;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step {
        padding-left: 60px;
        margin-bottom: 2rem;
    }
    
    .services-cta .row {
        text-align: center;
    }
    
    .services-cta .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        min-height: 35vh;
    }
    
    .min-vh-60 {
        min-height: 35vh !important;
    }
    
    .services-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-icon {
        display: none;
    }
    
    .service-card-large .d-flex {
        flex-direction: column;
    }
    
    .service-card-large .display-4 {
        margin-bottom: 1rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .step-number {
        position: relative;
        margin-bottom: 1rem;
    }
    
    .process-step {
        padding-left: 0;
        text-align: center;
    }
}

/* Утилиты */
.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Эффект стекла для модалок */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}