/* Стили для страниц услуг MD CARS */

/* Hero секция */
.service-hero {
    padding: 200px 0 100px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.service-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    color: var(--white-color);
}

.service-hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.service-hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.service-hero-image {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.service-hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.service-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.service-hero-image:hover img {
    transform: scale(1.05);
}

.service-hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--light-color);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* Секция с услугами */
.service-features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-bottom: 3px solid transparent;
}

.service-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white-color);
    font-size: 28px;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: var(--secondary-color);
    transform: rotate(10deg);
}

/* Сбрасываем стили выделенной карточки */
.highlight-card {
    background-color: #fff;
    border-bottom: 3px solid transparent;
}

.highlight-card .service-card-title,
.highlight-card .service-card-desc,
.highlight-card .service-card-link {
    color: inherit;
}

.highlight-card .service-card-icon {
    background: var(--primary-color);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.highlight-card:hover .service-card-title,
.highlight-card:hover .service-card-desc,
.highlight-card:hover .service-card-link {
    color: var(--white-color);
}

.highlight-card:hover .service-card-icon {
    background: var(--secondary-color);
    transform: rotate(10deg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card:hover .service-card-title,
.service-card:hover .service-card-desc {
    color: var(--white-color);
}

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

/* Эффект при наведении на карточку */
.service-card-link:hover {
    color: var(--secondary-color);
}

/* Детальное описание услуг */
.service-detail {
    padding: 100px 0;
    position: relative;
}

.service-detail.bg-light {
    background-color: var(--light-color);
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

.service-detail-content {
    padding: 30px 0;
}

.service-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.service-detail-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.service-detail-features {
    margin-top: 30px;
}

/* Фичи сервиса */
.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    margin-bottom: 15px;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    overflow: hidden;
}

/* Додаємо специфічні відступи для service-feature-icon, якщо він всередині service-feature */
.service-feature .service-feature-icon {
    margin-right: 15px;
    margin-bottom: 0;
}

.service-feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

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

/* Методы полировки */
.service-methods-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-methods {
    margin-top: 15px;
}

.service-method {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.service-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-left-color: var(--secondary-color);
}

.service-method h5 {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding-left: 30px;
}

.service-method h5:before {
    content: '\f192';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-method:hover h5:before {
    color: var(--secondary-color);
}

.service-method:hover h5 {
    color: var(--secondary-color);
}

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

/* Опции услуг */
.service-options-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-options {
    margin-top: 15px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-option {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(47, 95, 130, 0.03);
}

.service-option-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    padding: 0;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    overflow: hidden;
}

.service-option:hover .service-option-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.service-option-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* Преимущества */
.service-advantages {
    margin-top: 20px;
}

.service-advantage {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-advantage-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    padding: 0;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    overflow: hidden;
}

.service-advantage:hover .service-advantage-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

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

/* Этапы ремонта */
.service-steps {
    margin-top: 20px;
}

.service-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.service-step-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    position: relative;
}

.service-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 25px;
    width: 1px;
    height: calc(100% - 20px);
    background-color: var(--color-border);
}

.service-step-content {
    padding-left: 15px;
    padding-bottom: 20px;
}

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

/* Блоки с фичами для тонировки */
.service-feature-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.service-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-feature-box i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.service-feature-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

/* CTA секция */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
}

.cta-desc {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-buttons .btn-outline {
    color: var(--white-color);
    border-color: var(--white-color);
    transition: all 0.3s ease;
}

.cta-buttons .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-red {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-red:hover {
    background-color: #d31a20;
    color: var(--white-color);
}

.btn-outline-light {
    color: var(--white-color);
    border-color: var(--white-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn {
    padding: 12px 25px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* FAQ секция */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--white-color);
    padding: 20px;
    border: none;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(47, 95, 130, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(47, 95, 130, 0.05);
    color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%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-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='%23e61e25'%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: 20px 25px;
    background-color: #fff;
}

.accordion-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Сервисные секции с красным акцентом */
.service-feature:hover .service-feature-icon {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .service-hero {
        padding: 190px 0 80px;
    }
    
    .service-hero-title {
        font-size: 40px;
    }
    
    .service-hero-image {
        margin-top: 40px;
    }
    
    .service-detail {
        padding: 80px 0;
    }
    
    .service-detail-image {
        margin-bottom: 40px;
    }
    
    .service-detail.bg-light .service-detail-image {
        margin-top: 40px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 180px 0 70px;
    }
    
    .service-hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-detail-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .service-hero {
        padding: 170px 0 60px;
    }
    
    .service-hero-title {
        font-size: 28px;
    }
    
    .service-hero-desc {
        font-size: 16px;
    }
    
    .service-hero-buttons {
        flex-direction: column;
    }
    
    .service-hero-buttons .btn {
        width: 100%;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-detail-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .accordion-button {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .accordion-body {
        padding: 15px 20px;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
}

.service-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary-color);
}

/* Іконки для блоків з інформацією про захисні покриття */
.protection-type {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 60px;
}

.protection-type:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 22px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.protection-type:hover:before {
    background-color: var(--secondary-color);
}

.protection-type h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.protection-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.protection-type:hover h4 {
    color: var(--secondary-color);
}

/* Відновлюємо стилі карточок сервісів */
.service-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card-desc {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card-link:after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.service-card-link:hover:after {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.testimonials-section .testimonials-items {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.testimonials-section .testimonial-item {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* --- CUSTOM PATCHES FOR SERVICES PAGE --- */
.service-detail-blue {
    background: var(--primary-color);
    color: #fff;
}
.service-detail-blue .service-detail-title,
.service-detail-blue .service-detail-desc,
.service-detail-blue .service-feature-content h4,
.service-detail-blue .service-feature-content p {
    color: #fff;
}

/* Сетка 2x2 для детейлинга */
.service-detail-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}
@media (max-width: 991.98px) {
    .service-detail-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Уменьшенные иконки */
.small-icon {
    font-size: 28px !important;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.small-icon i {
    font-size: 24px !important;
}

.service-methods-title-white {
    color: #fff !important;
}
.service-method-custom {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-method-custom h5 {
    color: var(--primary-color) !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.service-method-custom p {
    color: #333 !important;
    font-size: 15px;
    margin-bottom: 0;
}

.service-advantages-inline {
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-bottom: 24px;
    justify-content: flex-start;
}
@media (max-width: 991.98px) {
    .service-advantages-inline {
        flex-direction: column;
        gap: 12px;
    }
}
.service-advantage-nobg {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.service-advantage-nobg h4,
.service-advantage-nobg p {
    color: #fff !important;
}

.service-advantages-vertical {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.service-advantage-nobg .service-advantage-icon {
    margin-left: 8px;
}
@media (max-width: 576px) {
    .service-advantage-nobg .service-advantage-icon {
        margin-left: 0;
    }
} 