* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f5f5f5;
}

.contacts-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #fff;
    overflow: hidden;
}

.contacts-title {
    text-align: center;
    padding: 60px 0 40px 0;
    /* padding-top: 0px; */
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    background: #333;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

#map {
    width: 100%;
    height: 100%;
}

.contacts-info {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.contacts-info h3 {
    color: #F97316;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(102, 102, 102, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #EA580C;
    flex-shrink: 0;
}

.contact-text {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.contact-text strong {
    color: #333;
    font-weight: 500;
}

.contact-link {
    color: #F97316;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #EA580C;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-title {
        font-size: 2rem;
        padding: 40px 0 30px 0;
    }

    .map-container {
        height: 400px;
        margin: 0 10px;
    }

    .contacts-info {
        position: static;
        transform: none;
        margin: 20px;
        min-width: auto;
        width: calc(100% - 40px);
    }

    /* Перестраиваем: карта фиксированной высоты, инфоблок под ней */
    .map-container {
        height: auto;           /* контейнер подстраивается под содержимое */
        overflow: visible;      /* ничего не обрезаем снизу */
    }

    #map {
        height: 360px;          /* фиксированная высота карты на планшетах/мобилках */
    }
}

@media (max-width: 480px) {
    .contacts-title {
        font-size: 1.5rem;
    }

    .contacts-info {
        padding: 30px 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .contacts-info h3 {
        font-size: 1.3rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }

    /* Чуть ниже высота карты для совсем маленьких экранов */
    #map {
        height: 300px;
    }
}
