/* Стили для страницы контактов (единый стиль сайта) */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    color: rgb(153, 128, 0);
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    padding-bottom: 15px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: rgb(139, 107, 0);
}

.page-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 60px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Карточка контакта */
.contact-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #eee;
    border-top: 4px solid rgb(153, 128, 0);
}

.contact-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgb(153, 128, 0);
}

/* Аватар контакта */
.contact-avatar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о контакте */
.contact-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Имя и должность */
.contact-name {
    font-size: 1.5rem;
    color: rgb(153, 128, 0);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-position {
    color: rgb(153, 128, 0);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Контактные данные */
.contact-details {
    margin-bottom: 25px;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
}

.contact-item i {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    color: rgb(153, 128, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.contact-item a {
    color: rgb(153, 128, 0);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: rgb(139, 107, 0);
    text-decoration: underline;
}

/* Рабочие часы */
.contact-hours {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid rgb(153, 128, 0);
}

.hours-title {
    font-weight: 600;
    color: rgb(153, 128, 0);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.hours-title i {
    margin-right: 12px;
    color: rgb(153, 128, 0);
    font-size: 1.2rem;
}

.hours-days {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 10px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .container {
        padding: 10px;
    }
    
    .contact-avatar {
        height: 200px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        max-width: 700px;
    }
}

/* Ноутбуки (1025px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .container {
        max-width: 1300px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-name {
        font-size: 1.4rem;
    }
}

/* Мониторы 4:3 (до 1600px) */
@media (max-width: 1600px) and (min-aspect-ratio: 4/3) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .container {
        padding: 20px 30px;
    }
}

/* Старые ноутбуки (до 1280px) */
@media (max-width: 1280px) {
    .contacts-grid {
        padding: 15px;
    }
    
    .contact-info {
        padding: 20px;
    }
}