:root {
    --rem: 10px;
}

html{
    font-size: var(--rem);
}

.contacts-hero {
    position: relative;
    background-image: url('../images/contacts.png');
    background-size: cover;
    background-position: top;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-inverse);
}

.contacts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.contacts-hero-content {
    position: relative;
    z-index: 1;
}

.contacts-hero h1 {
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
}

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

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-title {
    font-size: 4.8rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-navy);
}

.contacts-subtitle {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: var(--color-surface);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contacts-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.contacts-card h3 {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    justify-content: center;
    color: var(--color-navy);
}

.contacts-phone {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    margin-top: 0;
}

.contacts-phone a {
    color: inherit; /* Наследует цвет от родителя */
    text-decoration: none; /* Убирает подчеркивание */
}

.contacts-phone a:hover {
    text-decoration: underline; /* Добавляет подчеркивание при наведении */
}

.contacts-action {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: 0;
}

.contacts-description {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.contacts-schedule {
    font-size: 1.4rem;
    color: var(--color-text-subtle);
    margin-top: auto;
}

.contacts-schedule p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .contacts-hero h1 {
        font-size: 2rem;
    }
    
    .contacts-title {
        font-size: 2rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
} 