/* Основные стили из CSS файла szn24.ru */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Irma Text Round Pro', sans-serif;
}

body {
    background: #fff;
    color: #6f6f6f;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    font-weight: 300;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.grid-container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-right: .625rem;
    padding-left: .625rem;
}

@media (min-width: 768px) {
    .grid-container {
        padding-right: .9375rem;
        padding-left: .9375rem;
    }
}

/* Стили для header */
.header-1 {
    border-bottom: 1px solid #ccc;
}

.header-1-grid {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Стили для заголовков */
.page-title {
    font-size: 26px;
    line-height: 34px;
    color: #000;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .page-title {
        font-size: 26px;
        line-height: 34px;
    }
}

.subtitle {
    font-size: 14px;
    color: #6f6f6f;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Сетка для контактов - 3 в ряд */
.contacts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .contacts-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Карточка контакта - вертикальная компоновка */
.contact-card {
    background: white;
    border: 1px solid #dfdfdf;
    padding: 25px 20px;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: none;
}

/* Убрана подсветка при наведении */
.contact-card:hover {
    box-shadow: none;
    background: white;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 25px 20px;
    }
}

/* Фото контакта */
.contact-card__photo {
    width: 140px;
    height: 180px;
    border: 1px solid #dfdfdf;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

/* Контейнер для текстовой информации */
.contact-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Имя и должность */
.contact-card__name {
    font-size: 16px;
    line-height: 20px;
    color: #000;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

/* Общий контейнер для должности */
.position-container {
    margin-bottom: 15px;
    min-height: 50px;
}

/* Основная должность */
.contact-position {
    font-size: 14px;
    line-height: 18px;
    color: #ff7b01; /* Оранжевый цвет для обычных должностей */
    font-weight: 400;
    text-align: center;
}

/* Название отделения (под основной должностью) */
.department-name {
    font-size: 13px;
    line-height: 16px;
    color: #0d47a1; /* Темно-синий/бирюзовый цвет для названия отделения */
    font-weight: 400;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

/* Специальные стили для заведующих отделением */
.position-head {
    color: #ff7b01; /* Темно-синий/бирюзовый цвет для "Заведующий отделением" */
    font-weight: 600;
}

/* Информация о контакте */
.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    color: #5391d9;
}

.contact-link {
    color: #5391d9;
    text-decoration: underline;
    font-size: 13px;
    line-height: 20px;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #ff7b01;
    text-decoration: none;
}

/* Телефон без ссылки */
.contact-phone {
    color: #6f6f6f;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

/* Утилитарные классы из CSS файла */
.text-center {
    text-align: center;
}

.text-black {
    color: #000;
}

.text-orange {
    color: #ff7b01;
}

.text-blue-dark {
    color: #1a73e8;
}

.text-blue {
    color: #5391d9;
}

.text-gray {
    color: #6f6f6f;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-normal {
    font-weight: 400;
}

.font-light {
    font-weight: 300;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-40 {
    margin-top: 40px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-card__photo {
        width: 120px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .contacts-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-card {
        padding: 25px 20px;
        flex-direction: column;
    }
    
    .contact-card__photo {
        width: 140px;
        height: 180px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
        line-height: 24px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-card__photo {
        width: 120px;
        height: 160px;
    }
    
    .contact-card__name {
        font-size: 15px;
        line-height: 18px;
    }
    
    .contact-position {
        font-size: 13px;
        line-height: 16px;
    }
    
    .department-name {
        font-size: 12px;
        line-height: 15px;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
}
