/* ============================================================
   Страница услуги
   ============================================================ */

/* Hero услуги */
.service-hero {
    padding: 2rem 1rem 4rem;
    background: var(--c-muted);
    border-bottom: 1px solid var(--c-border);
}

.service-hero__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}
.breadcrumbs a { color: #888; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs span { margin: 0 0.3rem; }

.service-hero__title {
    font-family: Comfortaa, system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
}

.service-hero__subtitle {
    font-size: 1.15rem;
    color: #444;
    max-width: 60ch;
    margin-bottom: 2rem;
}

.service-hero__price {
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #FFF;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    display: inline-flex;
}
.service-hero__price-label { color: #888; font-size: 0.9rem; }
.service-hero__price-value { font-family: Comfortaa, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--c-accent); }
.service-hero__price-note { color: #888; font-size: 0.85rem; margin-left: 0.5rem; }

.service-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Общие стили секций */
.service-section-title {
    font-family: Comfortaa, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 2rem;
}

/* Сетка "Что входит" */
.service-features { padding: 5rem 1rem; }
.service-features__inner { max-width: 1080px; margin: 0 auto; }

.service-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.service-works__list, .service-benefits__list {
    list-style: none;
    padding: 0;
}

.service-works__list li, .service-benefits__list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.service-works__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-weight: bold;
}

.service-benefits__list li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--c-accent);
}

/* ============================================================
   TIMELINE ГАЛЕРЕЯ (ДО / В ПРОЦЕССЕ / ПОСЛЕ)
   ============================================================ */

.service-timeline {
    padding: 5rem 1rem;
    background: #FAFAFA;
    border-top: 1px solid var(--c-border);
}

.service-timeline__inner {
    max-width: 1080px;
    margin: 0 auto;
}

/* Контейнер для картинок */
.timeline-gallery {
    display: flex;
    gap: 0.5rem;
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

/* Элемент галереи (полоска) */
.timeline-gallery__item {
    flex: 1; /* По умолчанию все равны (но первая активная) */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
    opacity: 0.7;
}

/* Активный элемент (первая картинка или выбранная) */
.timeline-gallery__item.is-active {
    flex: 5; /* Расширяется */
    opacity: 1;
    cursor: default;
}

.timeline-gallery__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgb(0 0 0 / 90%), transparent);
    color: #FFF;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.timeline-gallery__item.is-active .timeline-gallery__content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Картинка внутри элемента */
.timeline-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.timeline-gallery__item:hover:not(.is-active) .timeline-gallery__img {
    transform: scale(1.05); /* Легкий зум при наведении на полоску */
}

.timeline-gallery__placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Контент (заголовок и описание) */
.timeline-gallery__title {
    font-family: Comfortaa, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-gallery__desc {
    font-size: 1rem;
    color: #D1D1D1;
    line-height: 1.5;
    max-width: 80%;
}

/* Точки-индикаторы */
.timeline-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D1D1D1;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.timeline-dot:hover {
    background: #A8A8A8;
}

/* Активная точка (капсула) */
.timeline-dot.is-active {
    width: 80px;
    height: 16px;
    border-radius: 16px;
    background: var(--c-accent, #C8963E);
    box-shadow: 0 2px 8px rgb(200 150 62 / 40%);
}

/* Мерцающая точка */
.timeline-dot.is-blinking {
    background: #C8963E;
    animation: pulse-dot 3s infinite;
}

/* Сама анимация пульсации */
@keyframes pulse-dot {
    0% { 
        box-shadow: 0 0 0 0 rgb(200 150 62 / 60%); 
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    70% { 
        box-shadow: 0 0 0 12px rgb(200 150 62 / 0%); 
        transform: scale(1);
    }

    100% { 
        box-shadow: 0 0 0 0 rgb(200 150 62 / 0%); 
        transform: scale(1);
    }
}

/* Адаптив */
@media (width <= 768px) {
    .timeline-gallery {
        height: 300px;
    }

    .timeline-gallery__content {
        padding: 1rem;
    }

    .timeline-gallery__title {
        font-size: 1.2rem;
    }

    .timeline-gallery__desc {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

/* FAQ */
.service-faq { padding: 5rem 1rem; background: #FAFAFA; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.service-faq__inner { max-width: 800px; margin: 0 auto; }

.service-faq__item {
    border-bottom: 1px solid var(--c-border);
    padding: 1.5rem 0;
}

.service-faq__question {
    font-family: Comfortaa, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.service-faq__answer {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* CTA */
.service-cta { padding: 5rem 1rem; text-align: center; }
.service-cta__inner { max-width: 600px; margin: 0 auto; }
.service-cta__title { font-family: Comfortaa, sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.service-cta__subtitle { color: #666; margin-bottom: 2rem; }

/* Адаптив */
@media (width <= 768px) {
    .service-features__grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-hero { padding: 4rem 1rem 3rem; }
}

.service-faq__answer a {
    color: var(--c-primary, #1E1E1E);
    text-decoration: none;
    border-bottom: 2px solid var(--c-accent, #C8963E);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.service-faq__answer a:hover {
    color: var(--c-accent, #C8963E);
    border-bottom-color: var(--c-accent, #C8963E);
}