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

/* Стили заголовка используют универсальные классы .page-header-* из basic.css */

/* Цены на услуги */
.service-prices {
    margin: 60px 0;
}

.table-wrapper {
    overflow-x: auto;
}

/* Стили таблицы используют .prices-table и .prices-table-classic из basic.css */

/* Частые вопросы */
.service-faq {
    margin: 60px 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: #F5F5F5;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    gap: 20px;
}

.faq-question {
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
}

.faq-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #E01F26;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-icon {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: #383E4B;
    font-size: 16px;
    line-height: 1.6;
}

/* Одиночная страница услуги */
.service-single {
    padding: 50px 0;
}

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

.service-header {
    margin-bottom: 30px;
}

.service-excerpt {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.service-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.service-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.service-body {
    margin-bottom: 40px;
    line-height: 1.8;
}

.service-body h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.service-body h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-body p {
    margin-bottom: 15px;
}

.service-body ul,
.service-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-body li {
    margin-bottom: 10px;
}

.service-footer {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.service-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-actions .btn {
    padding: 15px 30px;
}

/**
 * Архивная страница услуг
 */

.section-services-archive {
    margin: 0 0 60px;
}

.section-services-archive .section-title {
    margin-bottom: 25px;
}

/* Поиск */
.sa-search {
    position: relative;
    margin-bottom: 15px;
}

.sa-search-input {
    width: 100%;
    padding: 8px 45px;
    border: 1px solid rgba(102, 102, 102, 0.5);
    border-radius: 1000px;
    font-family: var(--font-family);
    font-size: 17px;
    color: #383E4B;
    background: transparent;
    outline: none;
}

.sa-search-input::placeholder {
    color: rgba(56, 62, 75, 0.7);
}

.sa-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sa-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Двухколоночный макет */
.sa-layout {
    display: flex;
    gap: 20px;
}

/* Боковая колонка */
.sa-sidebar {
    width: 390px;
    flex-shrink: 0;
    background: white;
    border-radius: 5px;
    padding: 25px 0;
    align-self: flex-start;
}

.sa-sidebar-title {
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 500;
    color: #383E4B;
    padding: 0 30px 20px;
}

.sa-directions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sa-directions-list li {
    border-top: 1px solid #E0E0E0;
}

.sa-direction-link {
    display: block;
    padding: 12px 30px;
    color: #383E4B;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sa-direction-link:hover {
    color: #E01F26;
}

.sa-direction-link.active {
    color: #E01F26;
    font-weight: 500;
}

/* Контент */
.sa-content {
    flex: 1;
    min-width: 0;
}

.sa-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.sa-content-title {
    font-family: var(--font-family-heading);
    font-size: 26px;
    font-weight: 400;
    color: #383E4B;
    margin: 0;
}

.sa-btn-details {
    padding: 8px 25px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Сетка услуг */
.sa-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sa-service-card {
    background-color: rgba(224, 31, 38, 0.6);
    border-radius: 5px;
    min-height: 132px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sa-service-card:hover {
    background-color: rgba(224, 31, 38, 0.8);
}

.sa-service-card-name {
    color: white;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.sa-no-results {
    display: none;
    text-align: center;
    color: #666;
    font-size: 17px;
    padding: 40px 0;
}

/* ========================================
   Адаптив
   ======================================== */

@media (max-width: 1400px) {
    .sa-sidebar {
        width: 320px;
    }
}

@media (max-width: 1000px) {
    .service-prices {
        margin: 30px 0 35px;
    }

    .service-prices .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .service-faq {
        margin: 30px 0;
    }

    .service-faq .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .faq-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-header {
        padding: 20px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .faq-question {
        font-size: 14px;
    }

    .faq-toggle {
        width: 34px;
        height: 34px;
    }

    .faq-icon {
        font-size: 20px;
    }

    .service-single {
        padding: 30px 0;
    }

    .service-excerpt {
        font-size: 1em;
    }

    .service-actions {
        flex-direction: column;
    }

    .service-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Архив услуг - мобильная */
    .section-services-archive {
        margin-bottom: 40px;
    }

    .sa-layout {
        flex-direction: column;
    }

    .sa-sidebar {
        width: 100%;
    }

    .sa-services-grid {
        grid-template-columns: 1fr;
    }

    .sa-content-title {
        font-size: 22px;
    }

    .sa-service-card {
        min-height: 100px;
    }
}