/* css/contacts-styles.css */

.contacts-section {
    padding: 60px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Цвета для разных должностей */
.chief-photo {
    background: linear-gradient(135deg, #2a9d8f, #21867a);
    color: white;
}

.deputy-1-photo {
    background: linear-gradient(135deg, #e9c46a, #d4b152);
    color: #333;
}

.deputy-2-photo {
    background: linear-gradient(135deg, #264653, #1a323d);
    color: white;
}

.deputy-3-photo {
    background: linear-gradient(135deg, #e76f51, #d65c3e);
    color: white;
}

.deputy-4-photo {
    background: linear-gradient(135deg, #2a9d8f, #21867a);
    color: white;
}

.deputy-5-photo {
    background: linear-gradient(135deg, #264653, #1a323d);
    color: white;
}

.deputy-6-photo {
    background: linear-gradient(135deg, #e9c46a, #d4b152);
    color: #333;
}

.deputy-7-photo {
    background: linear-gradient(135deg, #e76f51, #d65c3e);
    color: white;
}

.deputy-8-photo {
    background: linear-gradient(135deg, #2a9d8f, #21867a);
    color: white;
}

.contact-card h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(42, 157, 143, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    margin: 10px 0;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-phone:hover {
    background: var(--primary-color);
    color: white;
}

.contact-phone:hover i {
    color: white;
}

.contact-phone i {
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-bio {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.contact-bio::-webkit-scrollbar {
    width: 6px;
}

.contact-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.contact-bio::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.contact-bio ul {
    list-style-type: none;
    padding-left: 0;
}

.contact-bio li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.contact-bio li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.address-section {
    background: #f9f9f9;
    padding: 80px 0;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.address-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.address-icon {
    width: 60px;
    height: 60px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.address-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.address-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.metro-info {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.map-container {
    height: 400px; /* ВАЖНО: добавить высоту */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

/* Убедитесь, что скрипт карты растягивается на весь контейнер */
.map-container > div {
    width: 100% !important;
    height: 100% !important;
}

.transport-info {
    margin-top: 15px;
    max-width: 500px;
    text-align: center;
}

.reception-hours {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: center;
}

.reception-hours h3 {
    color: white;
    margin-bottom: 15px;
}

.reception-hours ul {
    list-style-type: none;
    padding: 0;
}

.reception-hours li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reception-hours li i {
    width: 20px;
}

.contact-action {
    text-align: center;
    margin: 40px 0;
}

.phone-btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

.contact-info-blocks {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.info-block {
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 20px;
    }
    
    .contact-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-bio {
        max-height: 150px;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .reception-hours li {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
}
