.contacts-page {
    padding-bottom: 60px;
    background-color: #fff;
}

/* Заголовок сторінки */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
    color: var(--primary-color);
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Сітка карток */
.contacts-grid {
    display: grid;
    /* Автоматично розміщує картки: мінімум 350px ширини, або на весь екран */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Стиль однієї картки */
.contact-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(40, 75, 89, 0.15);
}

.card-header h3 {
    color: var(--primary-color);
    margin: 0 0 5px;
    font-size: 1.4rem;
}

.role {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    display: block;
    font-style: italic;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Рядки контактів */
.contact-row {
    display: flex;
    align-items: center; /* Центрування по вертикалі */
    gap: 15px;
    font-size: 1.05rem;
}

.icon-main {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 25px; /* Фіксована ширина для вирівнювання */
    text-align: center;
}
.phones-group {
    display: flex;
    flex-direction: column; 
    gap: 5px; 
}

.phones-group a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.2s;
}
.phones-group a:hover {
    color: var(--primary-color);
}

.email-link {
    text-decoration: none;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
}
.email-link:hover {
    border-bottom-style: solid;
}
.prominent {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Месенджери (Viber/Telegram) */
.messengers {
    margin-left: 40px; /* Відступ під іконкою телефону */
    display: flex;
    gap: 15px;
}

.ms-link {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}
.ms-link:hover {
    opacity: 0.9;
}
.viber { background-color: #7360f2; }
.telegram { background-color: #0088cc; }


/* Картка з графіком */
.info-card {
    background-color: #fcfcfc;
    border-left: 5px solid var(--primary-color);
}
.card-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* Адаптивність */
@media (max-width: 768px) {
    .phones-group {
        display: flex;
        flex-direction: column;
    }
    .divider {
        display: none;
    }
    .messengers {
        margin-left: 0;
        justify-content: flex-start;
    }
}