/* ============================================
   СТИЛИ СТРАНИЦЫ КОНТАКТОВ — DARK THEME
   ============================================ */

.contacts-header { min-height: 280px; }
.contacts-page { padding-bottom: 60px; background: var(--cosmic-deep); }

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ===== БЛОКИ КОНТАКТОВ ===== */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-block {
    display: flex;
    gap: 20px;
    padding: 30px;
    margin-bottom: 2px;
    background: var(--cosmic-card);
    border: 1px solid var(--cosmic-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    color: var(--text-light);
}

.contact-block:hover {
    transform: translateY(-3px);
    border-color: hsla(38, 90%, 55%, 0.3);
    box-shadow: 0 8px 40px hsla(38, 90%, 55%, 0.1);
}

.contact-block.highlight {
    border-left: 4px solid var(--gold);
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    color: var(--cosmic-deep);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-details { flex: 1; min-width: 0; }

.contact-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

.address-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.map-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--transition-fast);
}

.map-link:hover { color: var(--gold-light); }

/* Телефоны */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--cosmic-surface);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.phone-item:hover {
    background: hsla(38, 90%, 55%, 0.1);
}

.phone-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.phone-action {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
}

.fax-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

/* Email */
.email-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.email-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--transition-fast);
}

.email-link:hover { color: var(--gold-light); }

/* Режим работы */
.work-hours-block {
    background: var(--gradient-gold);
    color: var(--cosmic-deep) !important;
    border: none;
}

.work-hours-block:hover {
    box-shadow: 0 8px 25px hsla(38, 90%, 55%, 0.3);
}

.work-hours-block .contact-icon {
    background: hsla(222, 47%, 6%, 0.2);
    color: hsl(38, 90%, 55%);
}

/* work-hours h2 цвет наследуется от .contact-details h2 */
.work-hours-block .contact-note { color: hsla(222, 47%, 6%, 0.6); }

.work-hours-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--cosmic-deep);
}

.work-hours-note {
    font-size: 0.9rem;
    color: hsla(222, 47%, 6%, 0.7);
}

/* Координаты */
.coords-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.coord-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--cosmic-surface);
    border-radius: var(--radius);
}

.coord-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.coord-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.coord-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== КАРТА ===== */
.contacts-map {
    position: relative;
    min-height: 500px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cosmic-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
}

.map-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: hsla(222, 40%, 12%, 0.85);
    backdrop-filter: blur(20px);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid hsla(38, 90%, 55%, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-overlay-info svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
    flex-shrink: 0;
}

.map-overlay-info p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.map-overlay-info .sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CTA ===== */
.contacts-cta {
    text-align: center;
    padding: 50px 40px;
    background: var(--cosmic-card);
    border: 1px solid var(--cosmic-border);
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

.contacts-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contacts-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ===== АНИМАЦИИ ===== */
.contact-block {
    opacity: 0;
    transform: translateY(20px);
    animation: contactFadeIn 0.5s ease forwards;
}

.contact-block:nth-child(1) { animation-delay: 0.1s; }
.contact-block:nth-child(2) { animation-delay: 0.2s; }
.contact-block:nth-child(3) { animation-delay: 0.3s; }
.contact-block:nth-child(4) { animation-delay: 0.4s; }
.contact-block:nth-child(5) { animation-delay: 0.5s; }
.contact-block:nth-child(6) { animation-delay: 0.6s; }
.contact-block:nth-child(7) { animation-delay: 0.7s; }

@keyframes contactFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacts-map { min-height: 350px; order: -1; }
    .map-container { min-height: 350px; }
    .map-container iframe { min-height: 350px; }
}

@media (max-width: 768px) {
    .contact-block { padding: 25px 20px; gap: 15px; }
    .contact-icon { width: 44px; height: 44px; }
    .contact-icon svg { width: 20px; height: 20px; }
    .phone-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .phone-action { font-size: 0.8rem; }
    .coords-grid { grid-template-columns: 1fr; }
    .work-hours-value { font-size: 1.5rem; }
    .contacts-cta { padding: 40px 25px; }
    .contacts-cta h3 { font-size: 1.4rem; }
    .cta-actions { flex-direction: column; }
    .btn-cta { justify-content: center; }
}

@media (max-width: 480px) {
    .contact-details h2 { font-size: 1rem; }
    .phone-number { font-size: 1rem; }
    .map-overlay-info { bottom: 10px; left: 10px; right: 10px; padding: 14px 18px; }
}

/* Аккредитация на странице контактов */
.contacts-accreditation {
    margin-top: 30px;
}
.accreditation-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}
.accreditation-qr-link img {
    border-radius: 8px;
    border: 2px solid var(--cosmic-border);
}

/* Режим работы на всю ширину */
.work-hours-full {
    margin-top: 30px;
    padding: 30px;
    background: var(--cosmic-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cosmic-border);
}
.work-hours-full .contact-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    background: transparent;
    border: none;
}
.work-hours-full .contact-icon {
    background: var(--gradient-gold);
    color: var(--cosmic-deep);
}
.work-hours-full .contact-details h2 {
    color: var(--gold);
}
.work-hours-full .work-hours-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}
.work-hours-full .work-hours-note {
    color: var(--text-muted);
    margin-top: 4px;
}
