/* Reset and base styles restricted to contact-page */
.contact-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #242323;
    background-color: #ffffff;
}

/* Header Section */
.contact-page .header-section {
    text-align: center;
    padding: 64px 16px;
    font-family: 'Forum', serif;
    /*background-color: #ebebeb;*/
}

.contact-page .header-title {
    font-size: 2rem;
    font-weight: 300;
    color: #242323;
    font-family: 'Forum', serif;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Hero Image Section */
.contact-page .hero-section {
    width: 100%;
}

.contact-page .hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* About Section - НОВЫЙ БЛОК */
.contact-page .about-section {
    padding: 64px 16px;
    background-color: #ffffff;
}

.contact-page .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-page .about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #242323;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Address Section */
.contact-page .address-section {
    /*background-color: #ebebeb;*/
    padding: 64px 16px;
}

.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page .address-title {
    font-size: 1.875rem;
    font-weight: 300;
    color: #242323;
    font-family: 'Forum', serif;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.1em;
}

.contact-page .address-grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

.contact-page .section-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 12px;
    display: block;
}

.contact-page .address-info,
.contact-page .schedule,
.contact-page .phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-page .address-content,
.contact-page .schedule-content-wrapper,
.contact-page .phone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-page .address-text {
    color: #242323;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.contact-page .schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-page .schedule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-page .schedule-content {
    display: flex;
    flex-direction: row; /* Изменено на row для горизонтального расположения */
    justify-content: space-between; /* Распределяем элементы по ширине */
    align-items: center;
    width: 100%;
    max-width: 200px; /* Ограничиваем ширину для аккуратного отображения */
}

.contact-page .schedule-day,
.contact-page .schedule-time {
    color: #242323;
    font-size: 0.875rem;
    text-align: center;
}

.contact-page .phone-text {
    color: #242323;
    font-size: 0.875rem;
    text-align: center;
   font-family: Arial !important;

}

/* Bottom Section */
.contact-page .bottom-section {
    display: grid;
    min-height: 400px;
}

.contact-page .brand-section {
    background-color: #242323;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page .brand-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.contact-page .brand-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.contact-page .brand-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.contact-page .brand-subtitle {
    color: #ebebeb;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.contact-page .brand-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 128px;
    background: linear-gradient(to top, rgba(36, 35, 35, 0.8), transparent);
    z-index: 1;
}

.contact-page .map-section {
    background-color: #ebebeb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page .map-content {
    text-align: center;
}

.contact-page .map-icon {
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    border-radius: 8px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page .map-icon-inner {
    width: 32px;
    height: 32px;
    background-color: #242323;
    border-radius: 4px;
}

.contact-page .map-text {
    color: #242323;
    font-size: 0.875rem;
}

.contact-page .map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    height: 100%;
}

.contact-page .map-grid-item {
    border: 1px solid #242323;
    opacity: 0.1;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .contact-page .header-section {
        padding: 48px 16px;
        font-family: 'Forum', serif;
    }

    .contact-page .header-title {
        font-size: 1.5rem;
        font-family: 'Forum', serif;
    }

    .contact-page .hero-image {
        height: 300px;
    }

    /* About Section - мобильные стили */
    .contact-page .about-section {
        padding: 48px 16px;
    }

    .contact-page .about-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .contact-page .address-section {
        padding: 48px 16px;
    }

    .contact-page .address-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .contact-page .address-grid {
        grid-template-columns: 1fr; /* Одна колонка для мобильных */
        gap: 24px;
    }

    .contact-page .address-info,
    .contact-page .schedule,
    .contact-page .phone-info {
        margin-bottom: 24px; /* Восстанавливаем отступы для последовательного отображения */
        align-items: center; /* Центрирование на мобильных */
    }

    .contact-page .address-content,
    .contact-page .schedule-content-wrapper,
    .contact-page .phone-content {
        align-items: center; /* Центрирование контента на мобильных */
    }

    .contact-page .schedule-content {
        flex-direction: row; /* Горизонтальное расположение на мобильных */
        justify-content: space-between;
        align-items: center;
        max-width: 200px; /* Ограничиваем ширину для аккуратного отображения */
    }

    .contact-page .bottom-section {
        grid-template-columns: 1fr;
    }

    .contact-page .brand-section,
    .contact-page .map-section {
        min-height: 300px;
    }

    .contact-page .brand-title {
        font-size: 1.25rem;
    }

    .contact-page #map {
        height: 300px;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .contact-page .header-title {
        font-size: 2.25rem;
        font-family: 'Forum', serif;
    }

    .contact-page .hero-image {
        height: 1300px;
        object-fit: cover;
        object-position: 0 -228px;
    }

    /* About Section - десктопные стили */
    .contact-page .about-section {
        padding: 80px 16px;
    }

    .contact-page .about-text {
        font-size: 1.1rem;
        line-height: 1.9;
    }

    .contact-page .address-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Три колонки для десктопов */
        gap: 32px;
    }

    .contact-page .address-info,
    .contact-page .schedule,
    .contact-page .phone-info {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрирование содержимого в колонках */
    }

    .contact-page .address-content,
    .contact-page .schedule-content-wrapper,
    .contact-page .phone-content {
        align-items: center; /* Центрирование контента в колонках */
    }

    .contact-page .bottom-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .contact-page .header-section {
        padding: 80px 16px;
        font-family: 'Forum', serif;
    }

    .contact-page .address-section {
        padding: 80px 16px;
    }
}

.contact-page #map {
    width: 100%;
    height: 400px;
}