/* =============================================
   СТРАНИЦА КОНТАКТОВ
============================================= */
.contacts-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Заголовок страницы */
.contacts-page-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    text-align: center;
}

/* Блок 1: Описание */
.contacts-description-block {
    text-align: center;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    padding: 0 20px;
}
.contacts-description-block p:last-child {
    margin-bottom: 0;
}

/* Блок 2: Контактная информация */
.contacts-info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #eee;
    align-items: center;
}
.contacts-info-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.contacts-info-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
}
.contacts-info-phone,
.contacts-info-email {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}
.contacts-info-phone i,
.contacts-info-email i {
    width: 24px;
    color: black;
    margin-right: 10px;
}
.contacts-info-phone a,
.contacts-info-email a {
    color: #1a1a1a;
    text-decoration: none;
}
.contacts-info-phone a:hover,
.contacts-info-email a:hover {
    color: #818181;
}

.contacts-info-schedule {
    margin-top: 5px;
}
.schedule-title {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.schedule-weekdays {
    font-size: 15px;
    color: #333;
}
.schedule-weekend {
    font-size: 15px;
    color: #888;
    margin-top: 2px;
}

.contacts-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.contacts-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #1a1a1a;
    background: transparent;
    transition: all 0.3s ease;
}
.contacts-social-link img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    transition: filter 0.3s ease;
}
.contacts-social-link:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}
.contacts-social-link:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(200%) contrast(100%);
}

/* Блок 3: Сервисные блоки */
.contacts-service-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.service-block-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* по умолчанию центр, но переопределяется inline-стилем */
    text-align: center;
    height: 100%;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}
.service-block-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.service-title {
    font-weight: 300;
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
.service-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 18px 0;
    line-height: 1.5;
    flex-grow: 1;
}
.service-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.service-btn:hover {
    opacity: 0.85;
}

/* Блок 4: Адрес */
.contacts-address-block {
    text-align: center;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 20px 0;
    margin: 0 0 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.contacts-address-block p:last-child {
    margin-bottom: 0;
}

/* Блок 5: Карта */
.contacts-map-block {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.contacts-map-block iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}
.contacts-map-block script {
    /* скрипты будут выполняться сами */
}

/* Блок 6: Заметка под картой */
.contacts-map-note {
    background: #f5f5f5;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}
.contacts-map-note p:last-child {
    margin-bottom: 0;
}

/* Блок 7: FAQ */
.contacts-faq-block {
    margin-bottom: 40px;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-weight: 500;
    font-size: 16px;
    color: #1a1a1a;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.3s;
}
.faq-question:hover {
    color: #818181;
}
.faq-toggle {
    font-size: 22px;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 800px; /* достаточно для длинных ответов */
    padding: 0 0 20px 0;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Адаптив */
@media (max-width: 992px) {
    .contacts-info-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .contacts-info-left img {
        max-height: 300px;
        object-fit: cover;
    }
    .contacts-info-right {
        align-items: center;
        text-align: center;
    }
    .contacts-social {
        justify-content: center;
    }
    .service-block-item {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 768px) {
    .service-block-item {
        flex: 0 0 100%;
    }
    .contacts-map-block iframe {
        height: 300px;
    }
    .contacts-info-right {
        font-size: 15px;
    }
    .contacts-info-phone,
    .contacts-info-email {
        font-size: 16px;
    }
    .contacts-description-block {
        font-size: 14px;
        padding: 0 10px;
    }
    .faq-question {
        font-size: 15px;
    }
    .faq-answer {
        font-size: 14px;
    }
    .service-title {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .contacts-map-block iframe {
        height: 220px;
    }
    .contacts-info-block {
        padding: 15px;
    }
    .contacts-info-phone,
    .contacts-info-email {
        font-size: 14px;
    }
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* отступ между иконкой и текстом */
    padding: 10px 24px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.service-btn .service-btn-icon {
    max-height: 18px;
    width: auto;
    display: inline-block;
    /* Делаем иконку белой, если она SVG с заливкой */
    filter: brightness(0) invert(1);
    vertical-align: middle;
}
.service-btn:hover {
    opacity: 0.85;
}