/* contacts.css - СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ (модернизировано) */

/* Шапка страницы */
.page-header {
    padding-top: 140px;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, rgba(20, 44, 36, 0.86), rgba(10, 16, 18, 0.92)), url('/images/фонконтакты.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
    min-height: 340px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--on-dark);
}

.page-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}


.contacts-section {
    padding-bottom: 4rem;
}

.ct-section {
    margin-bottom: 3rem;
}

.ct-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 1.2rem;
}

.ct-subtitle {
    font-size: 1.1rem;
    margin: 1.6rem 0 0.8rem;
}

/* Полоса с главным */
.ct-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.ct-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.ct-strip i { color: var(--accent-color); }

/* Карточки людей */
.ct-people {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ct-person {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.ct-person-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ct-person-head > div { min-width: 0; }

.ct-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-pine);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.3rem;
}

.ct-person h3 {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.ct-phone {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.ct-phone:hover { color: var(--accent-color); }

.ct-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ct-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--primary-text);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ct-btn:hover { transform: translateY(-2px); }

.ct-btn-call {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--on-accent);
}

/* Фирменные цвета мессенджеров — тёмные оттенки, чтобы белый текст читался */
.ct-btn-wa {
    background: #1A7F44;
    border-color: #1A7F44;
    color: #FFFFFF;
}

.ct-btn-max {
    background: linear-gradient(200deg, #8A2BFF 0%, #3346F5 50%, #0A9FE0 100%);
    border-color: transparent;
    color: #FFFFFF;
}

/* Адрес и карта */
.ct-where {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.ct-where-info {
    padding: 1.6rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.ct-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.ct-address strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-text);
}

.ct-route {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ct-btn-route i { color: var(--accent-color); }

.ct-btn-copy.is-done {
    background: var(--ok-bg);
    border-color: var(--ok-border);
    color: var(--ok-text);
}

.ct-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-list li {
    display: flex;
    gap: 12px;
    line-height: 1.5;
}

.ct-list i {
    flex-shrink: 0;
    width: 22px;
    margin-top: 3px;
    text-align: center;
    color: var(--accent-color);
}

.ct-map {
    min-height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--muted-bg);
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* Частые вопросы */
.ct-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.ct-faq details {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.ct-faq summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ct-faq summary::-webkit-details-marker { display: none; }

.ct-faq summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent-color);
}

.ct-faq details[open] summary::after { content: '−'; }

.ct-faq details p {
    padding: 0 1.2rem 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.ct-rules-link {
    margin-top: 1rem;
    color: var(--secondary-color);
}

.ct-rules-link a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Оценки и бронирование */
.ct-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
    margin-bottom: 0;
}

.ct-ratings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ct-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

.ct-rating:hover { border-color: var(--accent-color); }

.ct-rating strong {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 2.6rem;
    color: var(--primary-text);
}

.ct-cta {
    padding: 1.8rem 2rem;
    background: var(--brand-pine);
    border-radius: var(--radius-md);
    color: #FFFFFF;
}

.ct-cta h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.ct-cta p {
    color: #C9D8D2;
    margin-bottom: 1.2rem;
}

.ct-cta .btn-primary {
    background: #FFFFFF;
    color: var(--brand-pine);
}

/* ===========================================
   АДАПТИВНОСТЬ
   =========================================== */
@media (max-width: 992px) {
    .page-header {
        padding-top: 120px;
        min-height: 300px;
    }

    .ct-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-where,
    .ct-bottom { grid-template-columns: minmax(0, 1fr); }
    .ct-map, .ct-map iframe { min-height: 360px; }
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 110px;
        min-height: 240px;
        padding-bottom: 2.5rem;
        margin-bottom: 2rem;
    }

    .page-subtitle { padding: 0 1rem; }

    .ct-people,
    .ct-faq { grid-template-columns: minmax(0, 1fr); }

    .ct-strip span { font-size: 0.88rem; padding: 8px 12px; }
}

@media (max-width: 420px) {
    .ct-route { grid-template-columns: minmax(0, 1fr); }
    .ct-ratings { grid-template-columns: minmax(0, 1fr); }
}
