/* contacts.css — контакты без карты, формы и блока адреса */

/* Используем переменные из base.css, если они определены.
   В противном случае задаём локальные значения. */
:root {
    --text-main: #1a1a1a;
    --text-muted: #555;
    --accent: #c97d2e;
    --border: #eaeaea;
    --transition: 0.2s;
}

.contacts-page {
    padding: 2rem 0 3rem;
}

/* Заголовок */
.contacts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contacts-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.contacts-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка из трёх колонок */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Каждая карточка */
.contact-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.2rem;
}

.contact-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #d6d6d6;
    padding-bottom: 0.35rem;
    display: inline-block;
}

.contact-card p {
    margin: 0.4rem 0;
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
}

.contact-card a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Адаптив */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
    }

    .contacts-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contacts-header h1 {
        font-size: 1.5rem;
    }

    .contacts-header p {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.95rem;
    }
}

/* Улучшения для устройств с вырезом */
@supports (padding: max(0px)) {
    .contacts-page {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
}

/* Уважение к настройкам уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}