/* Страница контактов — деловая вёрстка, единые отступы и карточки */

/* Секции: единый отступ сверху/снизу */
.contacts-page .contacts-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.contacts-page .contacts-section:first-of-type {
    padding-top: 0;
}

/* Заголовки секций */
.contacts-page .contacts-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #28a745;
}

/* Карточки: единый размер, отступы, не слипаются */
.contacts-page .contact-info-card {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    min-height: 1px;
    border-radius: 10px;
    border: 1px solid #e0e6ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.contacts-page .contact-info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #28a745;
}

/* Реквизиты: одна сетка 2 колонки, карточки чередуются — без пустых дыр */
.contacts-page .contact-info-section .contacts-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}
.contacts-page .contact-info-section .contacts-cards-grid .contact-info-card {
    margin-bottom: 0;
    min-height: 0;
}
.contacts-page .contact-info-section .contacts-cards-grid .contacts-cta-fullwidth {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    margin-bottom: 0;
    justify-content: flex-start;
}
.contacts-page .contact-info-section .contacts-cards-grid .contact-social-card {
    display: flex;
    flex-direction: column;
}
.contacts-page .contact-info-section .contacts-cards-grid .contact-social-card .contact-label {
    margin-bottom: 0.5rem;
}
@media (max-width: 767px) {
    .contacts-page .contact-info-section .contacts-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Иконки в карточках (Font Awesome) */
.contacts-page .contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background-color: #28a745;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contacts-page .contact-info-icon i {
    font-size: 1.1rem;
    color: #fff;
}
.contacts-page .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contacts-page .contact-info-content {
    flex: 1;
    min-width: 0;
}
.contacts-page .contact-info-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}
.contacts-page .contact-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.contacts-page .contact-info-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Блок CTA на светлом фоне (не в hero) */
.contacts-page .contacts-cta-light .btn-contacts-cta {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #333;
}
.contacts-page .contacts-cta-light .btn-contacts-cta:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #adb5bd;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-call {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-call:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-consult {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-consult:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-map {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.contacts-page .contacts-cta-light .btn-contacts-cta.btn-map:hover {
    background: #5c636a;
    border-color: #565e64;
    color: #fff;
}

/* Кнопки CTA: базовый размер и отступы */
.contacts-page .contacts-cta-block,
.contacts-page .contacts-cta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.contacts-page .contacts-cta-inline {
    margin-top: 1rem;
}
.contacts-page .btn-contacts-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}
/* Hero: кнопки на тёмном фоне */
.contacts-page .contacts-hero-section .btn-contacts-cta {
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.contacts-page .contacts-hero-section .btn-contacts-cta:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-color: #fff;
}
.contacts-page .contacts-hero-section .btn-contacts-cta.btn-call {
    background: rgba(40,167,69,0.95);
    border-color: #28a745;
}
.contacts-page .contacts-hero-section .btn-contacts-cta.btn-consult {
    background: rgba(13,110,253,0.9);
    border-color: #0d6efd;
}
.contacts-page .contacts-hero-section .btn-contacts-cta.btn-map {
    background: rgba(108,117,125,0.9);
    border-color: #6c757d;
}

/* Hero: текст и логотип */
.contacts-page .contacts-brand {
    margin-bottom: 1rem;
}
.contacts-page .contacts-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}
.contacts-page .contacts-hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.5rem;
}
.contacts-page .contacts-hero-intro {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* Секция «Реквизиты»: фон */
.contacts-page .contact-info-section {
    background-color: #f5f7f9;
}

/* Карта: обёртка без «слипания» с карточками */
.contacts-page .contacts-map-section {
    background: #fff;
}
.contacts-page .contacts-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e6ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.contacts-page .contact-map-embed {
    min-height: 400px;
    width: 100%;
    background: #f0f2f5;
}
.contacts-page .contact-map-embed iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Trust: карточка рейтинга и равные по высоте блоки */
.contacts-page .contacts-trust-section {
    background: #f5f7f9;
}
.contacts-page .contacts-rating-card {
    padding: 1.5rem 1.25rem;
}
.contacts-page .contacts-rating-block .contacts-rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
}
.contacts-page .contacts-rating-star {
    color: #ffc107;
    margin-left: 0.25rem;
}
.contacts-page .contacts-reviews-count {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #6c757d;
}
.contacts-page .contacts-trust-section .row.g-4 {
    align-items: stretch;
}
.contacts-page .contacts-trust-section .row + .row {
    margin-top: 1.5rem;
}
.contacts-page .contacts-card-equal {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contacts-page .contacts-card-equal .contacts-list-simple,
.contacts-page .contacts-card-equal .contact-info-text {
    flex: 1;
}

/* Списки */
.contacts-page .contacts-list-simple {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.contacts-page .contacts-list-simple li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.45;
}
.contacts-page .contacts-list-simple li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}
.contacts-page .contacts-attributes-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.contacts-page .contacts-attribute-item {
    margin-bottom: 0.4rem;
    padding-left: 1.35rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.45;
}
.contacts-page .contacts-attribute-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Локальный блок: три колонки одной высоты */
.contacts-page .contacts-local-section {
    background: #f5f7f9;
}
.contacts-page .contacts-local-section .row.g-4 {
    align-items: stretch;
}
.contacts-page .contacts-local-section .contact-info-card.h-100 {
    display: flex;
    flex-direction: column;
}
.contacts-page .contacts-local-section .contact-info-card .contact-info-text {
    flex: 1;
}

/* Финальный CTA */
.contacts-page .contacts-final-cta-section {
    background: #fff;
}
.contacts-page .contacts-final-cta-card {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 0;
}
.contacts-page .contacts-final-cta-card .contacts-cta-block {
    justify-content: center;
}

/* Соцсети в карточке */
.contacts-page .contact-social-card .contacts-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.contacts-page .contacts-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contacts-page .contacts-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.contacts-page .contacts-social-vk { background: #0077ff; }
.contacts-page .contacts-social-telegram { background: #0088cc; }
.contacts-page .contacts-social-whatsapp { background: #25d366; }
.contacts-page .contacts-social-max { background: #6f42c1; }

/* Карусель отзывов внутри карточки */
.contacts-page #reviewsCarousel .carousel-inner {
    border-radius: 8px;
    overflow: hidden;
}
.contacts-page #reviewsCarousel .carousel-item img {
    border-radius: 6px;
}

/* Адаптив */
@media (max-width: 991px) {
    .contacts-page .contacts-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .contacts-page .contact-info-section .row.g-4 {
        column-gap: 0;
    }
    .contacts-page .contact-info-section [class*="col"]:first-child {
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 768px) {
    .contacts-page .contacts-section-title {
        font-size: 1.3rem;
    }
    .contacts-page .contacts-cta-block,
    .contacts-page .contacts-cta-inline {
        flex-direction: column;
        align-items: stretch;
    }
    .contacts-page .contacts-final-cta-card .contacts-cta-block {
        flex-direction: column;
        align-items: stretch;
    }
    .contacts-page .contact-info-card {
        padding: 1rem 1.25rem;
    }
    .contacts-page .contact-map-embed {
        min-height: 320px;
    }
    .contacts-page .contact-map-embed iframe {
        height: 320px;
    }
}
@media (max-width: 576px) {
    .contacts-page .contacts-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .contacts-page .contact-info-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    .contacts-page .contact-info-item {
        gap: 0.75rem;
    }
}
