body {
  background-color: #f5f5f5;
}

.contact-page {
  padding-top: 16px;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
/*   padding: 0 20px; */
}

.contact-item a:hover {
    color: rgba(11, 83, 238, 1);
}

/* ==============================================
 ХЛЕБНЫЕ КРОШКИ
 ============================================== */
.breadcrumbs {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
}
.breadcrumbs a {
  color: #888;
  text-decoration: none;
  margin-right: 5px;
}

/* ==============================================
 СЕКЦИЯ КОНТАКТОВ И ФОРМА
 ============================================== */
.contact-info-section {
  display: flex;
  justify-content: space-between;
}

.contact-details {
  flex: 1 1 50%;
  padding-right: 20px;
}

.contact-form-block {
  max-width: 500px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 16px;
}

.contact-item img {
  padding-right: 5px;
}

.contact-details h1,
.contact-form-block h2 {
  font-family: Golos Text;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 42px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -3%;
  margin-bottom: 32px;
}
.contact-form-block h2 {
  font-size: 20px;
  font-family: Golos Text;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 28px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -3%;
}

.form-description {
  font-family: Golos Text;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: -3%;
  color: #282a31;
  margin-bottom: 25px;
}

/* Элементы контактов (Адрес, время, телефон) */
.contact-item {
  display: flex;
  align-items: center;
  font-family: Golos Text;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 160%;
  letter-spacing: -3%;
  margin-bottom: 12px;
}
.contact-item--phone,
.contact-item--email {
  font-size: 20px;
  font-weight: 500;
}
.contact-item--phone {
  margin-bottom: 20px;
  font-family: Space Grotesk;
  font-weight: 500;
  font-style: Medium;
  font-size: 28px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
  margin-top: 0;
}

.contact-item--daily-hours {
  font-family: Golos Text;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -3%;
  text-align: right;
  color: #282a31;
  margin-top: 32px;
}

.contact-item a {
  color: var(--color-dark);
  font-family: Golos Text;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 160%;
  letter-spacing: -3%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-offset: 0%;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
}

.contact-item--phone a {
  text-decoration: none !important;
  font-family: Space Grotesk;
  font-weight: 500;
  font-style: Medium;
  font-size: 28px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
}

.contact-item .icon {
  margin-right: 10px;
  font-size: 20px;
  color: var(--color-blue-main); /* Используем цвет акцента для иконок */
}
.contact-item--email .icon,
.contact-item--phone .icon {
  font-size: 24px;
}
.contact-item--email a,
.contact-item--phone a {
  color: var(--color-dark); /* Телефоны и email жирные и темные */
}

/* Соцсети */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 32px;
}
.social-links a {
  /* Стили для иконок соцсетей */
  display: block;
  width: 32px;
  height: 32px;
  background-color: #eee; /* Замените на реальные иконки */
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  color: var(--color-dark);
  font-size: 0; /* Скрываем текст */
}

/* ==============================================
 ФОРМА ОБРАТНОЙ СВЯЗИ
 ============================================== */
.callback-form input,
.callback-form textarea {
  width: 100%;
  padding: 12px 24px;
  margin-bottom: 15px;
  border: 1px solid #1a25451a;
  border-radius: 40px;
  background-color: #1a25450f;
  font-size: 15px;
  box-sizing: border-box;
}

.callback-form textarea {
  resize: none;
  height: 100px;
}

.submit-button {
  width: 100%;
  padding: 18px 210px;
  border: none;
  border-radius: 60px;
  background: linear-gradient(213.87deg, #2ea8b6 23.58%, #1e5ee8 63.37%);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  font-family: Golos Text;
  font-weight: 500;
  font-size: 17px;
  line-height: 140%;
  color: white;
}

.submit-button:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ==============================================
 КАРТА
 ============================================== */
.map-section {
  padding: 60px 0;
  padding-bottom: 0px;
}

.map-placeholder {
  width: 100%;
  height: 500px; /* Высота, как на скриншоте */
  background-color: #e0e0e0;
  /* Убедитесь, что карта растягивается на всю ширину */
}


.locations-section {
    padding-bottom: 60px;
/*     background-color: #f5f5f5; Цвет фона всей секции
 */}

.section-title {
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 30px;
    color: #000;
}

/* Панель управления (Табы + Кнопка справа) */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background-color: #EBEBEB; /* Серый фон неактивного таба */
    color: #888;
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn img {
    filter: grayscale(1);
}

.ask-btn.mobile {
    display: none;
}

.tab-btn .pin-icon {
    color: var(--color-blue-main, #1e5ee8); /* Синяя иконка */
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: #fff;
    color: #0B53EE;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Кнопка "Задать вопрос" */
.ask-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    /* Градиент из вашего файла */
    background: linear-gradient(213.87deg, #2ea8b6 23.58%, #1e5ee8 63.37%);
    color: white;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 94, 232, 0.3);
    transition: transform 0.2s;
}
.ask-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 94, 232, 0.4);
}

/* Контент табов */
.tab-pane {
    display: none; /* Скрываем неактивные */
    animation: fadeIn 0.4s ease;
}
.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Карточка локации (Белый блок) */
.location-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Сетка верхней части карточки */
.card-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Пропорции колонок */
    gap: 30px;
    margin-bottom: 22px;
}

/* Колонка 1: Адрес */
.label-title {
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    font-size: 24px; /* "Адрес" крупно */
    margin-bottom: 12px;
    color: #000;
}
.address-text {
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}
.schedule-text {
    font-family: 'Golos Text', sans-serif;
    font-size: 15px;
    color: #888;
}

/* Колонка 2: Email и Соцсети */
.col-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Golos Text', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: underline;
    color: #000;
    margin-bottom: 20px;
}
.social-links-row {
    display: flex;
    gap: 12px;
}
.social-links-row img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s;
}
.social-links-row a:hover img {
    transform: scale(1.1);
}

/* Колонка 3: Телефоны */
.col-phones {
    text-align: right;
    padding-top: 5px;
}
.daily-hours {
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}
.phone-link {
    display: block;
    font-family: 'Space Grotesk', sans-serif; /* Шрифт цифр из вашего CSS */
    font-weight: 500;
    font-size: 28px;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 5px;
}
.phone-link:hover {
    color: var(--color-blue-main, #1e5ee8);
}

/* Нижняя часть (Карта и Фото) */
.card-body {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Карта занимает 2/3, фото 1/3 */
    gap: 20px;
    height: 400px; /* Фиксированная высота блока */
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background-color: #eee;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.gallery-img {
    flex: 1; /* Растянуть на половину высоты каждый */
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    max-height: 214px;
}
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (под ваши breakpoints) --- */
@media (max-width: 991px) {
    .card-header {
        grid-template-columns: 1fr; /* В одну колонку */
        gap: 20px;
    }
    .col-phones {
        text-align: left; /* Выровнять телефоны влево */
    }
    .card-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    .map-container {
        height: 300px;
    }
    .gallery-container {
        flex-direction: row; /* Фото рядом на планшете */
        height: 200px;
    }
}

@media (max-width: 575px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        padding-left: 16px;
    }
    .tabs-nav {
        justify-content: space-between;
        overflow-x: auto; /* Скролл если не влезают */
    }
    .ask-btn {
        width: 100%;
    }
    .location-card {
        padding: 20px;
    }
    .gallery-container {
        flex-direction: column; /* Фото друг под другом на телефоне */
        height: auto;
    }
    .gallery-img {
        height: 180px;
    }
    
    .ask-btn.mobile {
                display: flex;
        align-items: center;
        justify-content: center;
        max-width: 94%;
        margin: 0 auto;
                padding: 16px 27.5px 16px 27.5px;
    }
}
/* --- ПАНЕЛЬ УПРАВЛЕНИЯ (ТАБЫ + КНОПКА) --- */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Прижимаем элементы к низу ряда */
    margin-bottom: 0; /* Убираем отступ до самой карточки */
    padding-left: 20px; /* Небольшой отступ слева, если нужно выровнять с контентом */
}

/* --- СТИЛИ ТАБОВ --- */
.tabs-nav {
    display: flex;
    gap: 5px; /* Расстояние между вкладками */
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    /* Скругляем ТОЛЬКО верхние углы */
    border-radius: 30px 30px 0 0; 
    background-color: #EBEBEB; /* Серый фон неактивных */
    color: #888;
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0; /* Прижаты к низу */
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1; /* Чтобы быть ниже активного */
    opacity: 0.8;
}

.tab-btn .pin-icon {
    color: var(--color-blue-main, #1e5ee8);
}

.tab-btn:hover {
    background-color: #dcdcdc;
}

/* Активный таб */
.tab-btn.active {
    background-color: #fff; /* Белый, как карточка */
    color: #0B53EE;
    z-index: 3; /* Поверх карточки */
    /* Небольшая тень сверху, чтобы выделить */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03); 
    /* Перекрываем стык с карточкой */
    padding-bottom: 16px; 
    margin-bottom: -2px; 
}

.tab-btn.active img {
            filter: grayscale(0);
}

/* --- КНОПКА "ЗАДАТЬ ВОПРОС" --- */
.ask-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(213.87deg, #2ea8b6 23.58%, #1e5ee8 63.37%);
    color: white;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 94, 232, 0.3);
    
    /* ВОТ ВАЖНЫЙ ОТСТУП: Кнопка висит выше на 16px */
    margin-bottom: 16px; 
}

.ask-btn:hover {
    box-shadow: 0 6px 15px rgba(30, 94, 232, 0.4);
}

/* --- КАРТОЧКА ЛОКАЦИИ --- */
.location-card {
    background: #fff;
    /* Левый верхний угол прямой (0), чтобы первый таб сливался идеально. 
       Остальные углы скруглены */
    border-radius: 16px; 
    padding: 40px;
        padding-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

/* Адаптация для мобильных, чтобы не ломалось */
@media (max-width: 575px) {
    .controls-row {
        align-items: stretch; /* На мобильном возвращаем как было или делаем колонку */
        gap: 10px;
    }
    .ask-btn {
        margin-bottom: 0; /* На мобильном отступ может мешать */
        order: -1; /* Кнопку можно поднять наверх, если нужно */
    }
    .tab-btn {
        flex: 1;
        justify-content: center;
        border-radius: 12px; /* На мобильном лучше вернуть обычные кнопки */
        margin-bottom: 10px;
    }
    .tab-btn img {
         filter: grayscale(100%)
    }
    .location-card {
        border-radius: 24px; /* Возвращаем скругление на мобильном */
    }
}
/* ==============================================
   АДАПТАЦИЯ (МОБИЛЬНЫЙ: ШИРИНА ДО 575PX)
   ============================================== */
@media (max-width: 575px) {
    /* --- ОБЩИЕ СБРОСЫ И КОНТЕЙНЕРЫ --- */

    .locations-section {
        padding-bottom: 40px;
    }
    
    /* --- ЗАГОЛОВОК --- */
    .section-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 16px; 
    }

    /* --- УПРАВЛЕНИЕ: Табы --- */
    .controls-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 0; 
        margin-bottom: 0;
        padding-left: 12px;
    }

    /* Скрываем кнопку "Задать вопрос", так как ее нет на мобильном скриншоте */
    .ask-btn { 
        display: none ;
    }

    .tabs-nav {
        gap: 8px;
        justify-content: flex-start; 
        width: 100%;
    }

    /* Неактивный таб: серый фон, темный текст */
    .tab-btn {
        flex: 0 1 auto; 
        justify-content: center;
        border-radius: 12px 12px 0 0; 
        padding: 6px 10px; 
        margin-bottom: 0;
        background-color: #f0f0f0;
        color: var(--color-dark, #282a31); /* Темный текст для неактивных */
    }
    .tab-btn .pin-icon {
        color: var(--color-blue-main); 
    }
    
    /* Активный таб: белый фон, синий текст/иконка */
    .tab-btn.active {
        background-color: #fff;
        
        color: #0B53EE;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
        padding-bottom: 8px; 
        margin-bottom: 0;
        opacity: 1;
    }
    .tab-btn.active .pin-icon {
        color: var(--color-blue-main); 
    }

    /* --- КАРТОЧКА ЛОКАЦИИ (Белый блок) --- */
    .location-card {
        padding: 24px 16px; 
        border-radius: 16px; 
        box-shadow: none; 
        border: none; 
    }

    /* --- СЕТКА КОНТЕНТА (ВЕРТИКАЛЬНЫЙ СТЕК) --- */
    .card-header {
        grid-template-columns: 1fr;
        gap: 0; 
        margin-bottom: 24px;
    }

    /* АДРЕС И РАСПИСАНИЕ */
    .col-address {
        margin-bottom: 16px; 
    }
    .col-address .address-text {
        font-size: 16px; 
        color: #000;
        margin-bottom: 4px;
    }
    .col-address .schedule-text {
        font-size: 14px;
        color: #555;
    }

    /* ПОЧТА И СОЦСЕТИ */
    .col-socials {
        align-items: flex-start;
        padding-top: 0;
        margin-bottom: 16px;
    }
    .col-socials .email-link {
        font-size: 16px;
        font-weight: 400; 
        text-decoration: none; 
        color: var(--color-blue-main); /* Синий цвет */
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }
    .col-socials .email-link img {
        width: 18px; 
        margin-right: 8px;
    }
    .social-links-row {
        gap: 8px; 
    }
    .social-links-row a img {
        width: 32px;
        height: 32px;
    }
    
    /* ТЕЛЕФОНЫ */
    .col-phones {
        text-align: left; 
        order: 2;
        padding-top: 0;
        padding-top: 16px;
    }
    .col-phones .daily-hours {
        /* Ежедневно с 8:00 - 20:00 */
        color: #282A31;
        opacity: 0.6;
        font-family: Golos Text;
font-weight: 400;
font-style: Regular;
font-size: 12px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: -3%;
        margin-bottom: 8px;
    }
    .col-phones .phone-link {
        font-size: 26px; 
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 500;
        color: #000;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
    }
    .col-phones .phone-link img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    /* --- КАРТА И ФОТО (НИЗ КАРТОЧКИ) --- */
    .card-body {
        display: flex; 
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .map-container {
        height: 280px; 
        order: 2; 
        border-radius: 16px;
    }

    /* Скрываем фотографии, так как их нет на мобильном скриншоте */
    .gallery-container {
order: 2;    }
}

@media (max-width: 575px) {
  /* --- ОБЩИЙ КОНТЕЙНЕР --- */
  .contact-page {
    padding-top: 0; /* Убираем отступ сверху */
  }

  .contact-wrapper {
    padding: 0; /* Меньший горизонтальный паддинг */
  }
  
  .breadcrumb {
      padding-left: 16px;
  }
  
  .section-title {
      padding-left: 16px;
  }

  /* --- СЕКЦИЯ КОНТАКТОВ И ФОРМА --- */
  .contact-info-section {
    flex-direction: column; /* Элементы в один столбец */
    gap: 40px;
  }

  .breadcrumbs {
    padding-top: 12px;
  }

  /* Переключаем порядок: Форма идет первой, как на скриншоте */
  .contact-form-block {
    order: 2;
    max-width: 100%;
    padding: 12px 6px; /* Меньший внутренний паддинг формы */
  }

  .contact-details {
    order: 1;
    padding-right: 0;
    width: 100%;
  }

  /* --- ЗАГОЛОВКИ --- */
  .contact-details h1 {
    font-family: Golos Text;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
    margin-bottom: 20px;
  }
  .contact-form-block h2 {
    font-family: Golos Text;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;

    margin-bottom: 8px; /* Чуть меньше отступ, как на скриншоте */
  }
  .form-description {
    font-family: Golos Text;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -3%;
    margin-bottom: 20px;
  }

  .map-placeholder iframe {
    height: 100%;
    /* width: 100% уже задан в HTML */
  }

  /* --- ЭЛЕМЕНТЫ КОНТАКТОВ --- */
  .contact-item {
    font-family: Golos Text;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: -3%;
    margin-bottom: 10px;
    color: #282a31;
  }

  /* Иконки */
  .contact-item img {
    width: 20px;
    height: 20px;
    padding-right: 10px;
  }

  /* Ссылки (email) */
  .contact-item a {
    font-size: 16px;
  }

  /* Режим работы */
  .contact-item--schedule {
    margin-bottom: 20px;
  }

  /* Ежедневные часы работы */
  .contact-item--daily-hours {
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
  }

  /* Телефоны */
  .contact-item--phone {
    font-size: 24px; /* Чуть меньше, чем на десктопе */
    margin-bottom: 10px;
  }
  .contact-item--phone a {
    font-size: 24px;
  }

  /* Соцсети */
  .social-links {
    margin-top: 20px;
  }
  .social-links a img {
    width: 30px;
    height: 30px;
  }

  /* --- ФОРМА --- */
  .submit-button {
    padding: 15px 0; /* Убираем горизонтальный паддинг, делаем его на 100% ширины */
    font-size: 16px;
    border-radius: 40px; /* Чуть меньше радиус */
  }

  /* --- КАРТА --- */
  .map-section {
    padding-top: 24px;
  }
  .map-placeholder {
    height: 280px; /* Уменьшаем высоту для мобильного просмотра */
  }
}
