/* contacts.css — полный файл стилей для страницы контактов */

/* ========== ОБЩИЕ ЭЛЕМЕНТЫ ========== */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 70px;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6a6a6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #1a1a1a;
}

.separator {
    color: #a0a0a0;
}

.current {
    color: #1a1a1a;
    font-weight: 500;
}

/* ========== ЗАГОЛОВОК ========== */
.contacts-header {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.contacts-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.contacts-header p {
    font-size: 1.125rem;
    color: #6a6a6a;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.contacts-content {
    padding: 2rem 0 4rem;
    background: #fafafa;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

/* Левая и правая колонки */
.contacts-left, .contacts-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

/* ========== КАРТОЧКИ ========== */
.contact-card,
.map-card {
    background: white;
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card:hover,
.map-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.contact-card h2,
.contact-card h3,
.map-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ========== СТАТУС (ОТКРЫТО/ЗАКРЫТО) ========== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #e5e5e5;
    background: #f8f9fa;
    color: #4a4a4a;
    white-space: nowrap;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a0a0a0;
}

.status-pill.open {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.status-pill.open .dot {
    background: #22c55e;
}

.status-pill.closed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.status-pill.closed .dot {
    background: #ef4444;
}

/* ========== СТРОКИ С КОНТАКТАМИ ========== */
.contact-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.row-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid #eaeaea;
}

.row-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.row-text {
    color: #2d2d2d;
    font-size: 1rem;
}

.row-hint {
    margin-top: 0.35rem;
    color: #6a6a6a;
    font-size: 0.9rem;
}

/* ========== ЧАСЫ РАБОТЫ ========== */
.hours-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    font-size: 0.95rem;
}

/* ========== ТЕЛЕФОНЫ ========== */
.phones {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.phone-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.phone-link:hover {
    text-decoration: underline;
    color: #000;
}

.row-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.small-btn {
    padding: 0.4rem 0.8rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.small-btn:hover {
    background: #eaeaea;
    border-color: #ccc;
}

/* ========== КНОПКИ ДЕЙСТВИЙ ========== */
.contact-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #1a1a1a;
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* ========== СПИСОК ВОЗМОЖНОСТЕЙ ========== */
.bullets {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    color: #4a4a4a;
}

.bullets li {
    margin: 0.7rem 0;
    line-height: 1.5;
}

.divider {
    margin: 1.25rem 0;
    border-top: 1px solid #f0f0f0;
}

.mini-cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

/* ========== КАРТА ========== */
.map-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.map-sub {
    color: #6a6a6a;
    font-size: 0.9rem;
}

.map-embed-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f8f9fa;
    flex: 1;
    min-height: 350px;
}

.map-embed {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

.map-footer {
    margin-top: 1.25rem;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-note {
    margin-top: 0.75rem;
    color: #6a6a6a;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

/* ========== ФОРМА ========== */
.form-card {
    margin-top: 0;
}

.badge-soft {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 0.8rem;
}

.form-intro {
    color: #4a4a4a;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field span {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.9rem;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.form-hint {
    margin-top: 0.75rem;
    color: #8a8a8a;
    font-size: 0.8rem;
}

/* ========== TOAST УВЕДОМЛЕНИЯ ========== */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 240px;
    max-width: 380px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: #1a1a1a;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 2500;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }

    .map-embed {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .contacts-header h1 {
        font-size: 2rem;
    }

    .contacts-header p {
        font-size: 1rem;
    }

    .map-embed {
        min-height: 350px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .map-card {
        padding: 1.25rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .map-actions {
        flex-direction: column;
    }

    .status-pill {
        white-space: normal;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .row-icon {
        margin-bottom: 0.25rem;
    }

    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .contacts-header h1 {
        font-size: 1.6rem;
    }

    .map-embed {
        min-height: 280px;
    }
}