/* ============================================
   КОНТАКТЫ - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================ */

/* Основные переменные через CSS-переменные */
:root {
    --contacts-primary-color: #000000;
    --contacts-accent-color: #ffcc00;
    --contacts-text-color: #000000;
    --contacts-light-bg: #f8f9fa;
    --contacts-border-color: #e0e0e0;
    --contacts-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --contacts-shadow-hover: 0 4px 25px rgba(0, 0, 0, 0.12);
    --contacts-transition: all 0.3s ease;
}

/* ============================================
   ГЕРОИЧЕСКИЙ БАННЕР
   ============================================ */

.contacts-hero-banner {
    position: relative;
    background-image: url('/image/cntbg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 50px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89, 36, 34, 0.7) 0%, rgba(131, 77, 77, 0.7) 100%);
    z-index: 1;
}

.contacts-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}

.contacts-hero-banner h1 {
    font-family: 'LatoWebHeavy', 'Arial', sans-serif;
    color: #fff;
    font-size: 48px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.contacts-hero-subtitle {
    font-family: 'LatoWebBold', 'Arial', sans-serif;
    color: #fff;
    font-size: 24px;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */

.contacts-page-wrapper {
    background: #fff;
}

.contacts-main-container {
    padding-top: 30px;
    padding-bottom: 40px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.contacts-breadcrumb-margin {
    margin-top: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   ЗАГОЛОВОК СТРАНИЦЫ (без баннера)
   ============================================ */

.contacts-page-header {
    text-align: center;
    padding: 20px 5px 30px;
}

.contacts-page-header h1 {
    font-family: 'LatoWebHeavy', 'Arial', sans-serif;
    color: var(--contacts-text-color);
    font-size: 36px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.contacts-delivery-note {
    font-family: 'LatoWebBold', 'Arial', sans-serif;
    color: var(--contacts-primary-color);
    font-size: 20px;
    margin: 10px 0 20px 0;
}

.contacts-divider {
    width: 100px;
    height: 3px;
    background: var(--contacts-primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* ============================================
   ПРЕДУПРЕЖДЕНИЕ
   ============================================ */

.contacts-warning-box {
    margin-bottom: 40px;
}

.contacts-warning-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid var(--contacts-accent-color);
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--contacts-shadow);
}

.contacts-warning-badge {
    color: var(--contacts-accent-color);
    font-weight: bold;
    font-size: 15px;
    margin-right: 5px;
}

/* ============================================
   СЕТКА КОНТАКТНОЙ ИНФОРМАЦИИ
   ============================================ */

.contacts-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contacts-info-card {
    background: #fff;
    border: 1px solid var(--contacts-border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--contacts-transition);
    box-shadow: var(--contacts-shadow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contacts-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--contacts-shadow-hover);
    border-color: var(--contacts-primary-color);
}

.contacts-info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-info-icon img {
    max-width: 100%;
    max-height: 100%;
}

.contacts-info-title {
    font-family: 'LatoWebHeavy', 'Arial', sans-serif;
    color: var(--contacts-primary-color);
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 15px;
}

.contacts-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--contacts-primary-color);
}

.contacts-info-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--contacts-text-color);
}

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

.contacts-info-content strong {
    font-family: 'LatoWebBold', 'Arial', sans-serif;
    color: var(--contacts-text-color);
}

.contacts-phone-link,
.contacts-email-link {
    color: var(--contacts-primary-color);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--contacts-transition);
}

.contacts-phone-link:hover,
.contacts-email-link:hover {
    color: var(--contacts-accent-color);
    text-decoration: underline;
}

.contacts-phone-number {
    white-space: nowrap;
    font-weight: 600;
    color: var(--contacts-primary-color);
}

/* ============================================
   ФОТО ОФИСА
   ============================================ */

.contacts-office-image {
    margin: 30px 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--contacts-shadow);
}

.contacts-office-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   КАРТА
   ============================================ */

.contacts-map-section {
    background: var(--contacts-light-bg);
    padding: 60px 0;
    margin: 50px 0;
}

.contacts-map-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--contacts-shadow);
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-section-title {
    font-family: 'LatoWebHeavy', 'Arial', sans-serif;
    color: var(--contacts-primary-color);
    font-size: 24px;
    margin: 0 0 25px 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.contacts-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--contacts-primary-color);
}

.contacts-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacts-yandex-map {
    width: 100%;
    height: 500px;
    border: none;
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ============================================ */

.content-top-box,
.content-bottom-box {
    margin: 20px 0;
}

.menu-top-box,
.mobile-advantage-line {
    margin-bottom: 0;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Большие экраны (1600px+) */
@media (min-width: 1600px) {
    .contacts-hero-banner h1 {
        font-size: 52px;
    }
    
    .contacts-info-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .contacts-yandex-map {
        height: 500px;
    }
}

/* Средние экраны (1200px - 1599px) */
@media (max-width: 1599px) {
    .contacts-hero-banner h1 {
        font-size: 46px;
    }
    
    .contacts-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Средние экраны (992px - 1199px) */
@media (max-width: 1199px) {
    .contacts-hero-content {
        padding: 60px 20px;
    }
    
    .contacts-hero-banner h1 {
        font-size: 42px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contacts-hero-subtitle {
        font-size: 22px;
    }
    
    .contacts-page-header h1 {
        font-size: 32px;
    }
    
    .contacts-delivery-note {
        font-size: 18px;
    }
    
    .contacts-map-section {
        padding: 50px 0;
    }
    
    .contacts-map-wrapper {
        padding: 25px;
    }
    
    .contacts-yandex-map {
        height: 450px;
    }
}

/* Планшеты (768px - 991px) */
@media (max-width: 991px) {
    .contacts-hero-content {
        padding: 50px 20px;
    }
    
    .contacts-hero-banner h1 {
        font-size: 38px;
    }
    
    .contacts-hero-subtitle {
        font-size: 20px;
    }
    
    .contacts-page-header h1 {
        font-size: 28px;
    }
    
    .contacts-delivery-note {
        font-size: 17px;
    }
    
    .contacts-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contacts-map-section {
        padding: 40px 0;
    }
    
    .contacts-yandex-map {
        height: 400px;
    }
}

/* Малые планшеты и большие телефоны (576px - 767px) */
@media (max-width: 767px) {
    .contacts-hero-banner {
        min-height: 250px;
    }
    
    .contacts-hero-content {
        padding: 40px 15px;
    }
    
    .contacts-hero-banner h1 {
        font-size: 32px;
    }
    
    .contacts-hero-subtitle {
        font-size: 18px;
    }
    
    .contacts-page-header h1 {
        font-size: 26px;
    }
    
    .contacts-delivery-note {
        font-size: 16px;
    }
    
    .contacts-main-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }
    
    .contacts-warning-content {
        padding: 15px 20px;
        font-size: 13px;
    }
    
    .contacts-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contacts-info-card {
        min-height: auto;
        padding: 25px 15px;
    }
    
    .contacts-map-section {
        padding: 30px 0;
    }
    
    .contacts-map-wrapper {
        padding: 20px;
    }
    
    .contacts-section-title {
        font-size: 20px;
    }
    
    .contacts-yandex-map {
        height: 350px;
    }
}

/* Телефоны (до 575px) */
@media (max-width: 575px) {
    .contacts-hero-banner {
        min-height: 200px;
    }
    
    .contacts-hero-content {
        padding: 30px 10px;
    }
    
    .contacts-hero-banner h1 {
        font-size: 26px;
    }
    
    .contacts-hero-subtitle {
        font-size: 16px;
    }
    
    .contacts-page-header h1 {
        font-size: 24px;
    }
    
    .contacts-delivery-note {
        font-size: 15px;
    }
    
    .contacts-warning-content {
        padding: 15px;
        font-size: 12px;
    }
    
    .contacts-info-card {
        padding: 20px 15px;
    }
    
    .contacts-info-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .contacts-info-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .contacts-info-content {
        font-size: 13px;
    }
    
    .contacts-map-wrapper {
        padding: 15px;
    }
    
    .contacts-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contacts-yandex-map {
        height: 300px;
    }
}

/* Очень маленькие телефоны (до 375px) */
@media (max-width: 375px) {
    .contacts-hero-banner h1 {
        font-size: 22px;
    }
    
    .contacts-hero-subtitle {
        font-size: 14px;
    }
    
    .contacts-page-header h1 {
        font-size: 20px;
    }
    
    .contacts-delivery-note {
        font-size: 14px;
    }
    
    .contacts-section-title {
        font-size: 16px;
    }
    
    .contacts-yandex-map {
        height: 280px;
    }
}
