/* ============================================================
   ADE — БЛОК «НАШИ КОНТАКТЫ»
   Автономный файл: включает контейнер, заголовок, кнопки,
   сетку, контакты, карту и адаптив.
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  --ade-bg-dark:     #333741;
  --ade-bg-light:    #F5F7FA;
  --ade-accent-red:  #C70000;
  --ade-text-dark:   #333741;
  --ade-text-gray:   #7E8292;
  --ade-radius:      12px;
  --ade-radius-light: 4px;
  --ade-container:   1440px;
}

.ade-full-width-block {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}
/* ---------- Reset (только для контактов) ---------- */
.ade-contacts,
.ade-contacts *,
.ade-contacts *::before,
.ade-contacts *::after {
  box-sizing: border-box;
}


.ade-contacts ul { list-style: none; }

.ade-contacts {
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  padding: 96px 0 88px;
}

/* ---------- Контейнер ---------- */
.ade-container {
  max-width: var(--ade-container);
  margin: 0 auto;
  padding: 0 40px;
}
/* ---------- Контейнер ---------- */
.ade-container {
  max-width: var(--ade-container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Утилиты ---------- */
.ade-text-gray { color: var(--ade-text-gray); }


/* ---------- Заголовок ---------- */
.ade-section-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 56px;
  line-height: 120%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -2%;
  color: var(--ade-text-dark);
  margin: 0 0 48px;
}
.ade-section-title--center { text-align: center; }
.ade-section-title--light  { color: #fff; }

/* ---------- Кнопки ---------- */
.ade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 18px;
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--ade-radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-width: 322px;
  line-height: 1.2;
}

.ade-btn--outline-red {
  border: 2px solid var(--ade-accent-red);
  color: var(--ade-accent-red);
  background: transparent;
}
.ade-btn--outline-red:hover {
  background: var(--ade-accent-red);
  color: #fff;
}

/* ---------- Сетка контактов ---------- */
.ade-contacts__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 139px;
  align-items: stretch;
}

/* ---------- Левая колонка ---------- */
.ade-contacts__left {
  display: flex;
  flex-direction: column;
}

.ade-contacts__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.ade-contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.ade-contacts__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7E8292A3;
}
.ade-contacts__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ade-contacts__item-text {
  font-size: 20px;
  line-height: 120%;
  color: var(--ade-text-dark);
  font-weight: 400;
}
.ade-contacts__item-text span {
  display: block;
  color: var(--ade-text-gray);
}
.ade-contacts__item-text a,
.ade-contacts__item-text strong {
  text-decoration: none;
  color: inherit;
}

.ade-contacts .ade-btn {
  font-size: 24px;
  width: 437px;
}

/* ---------- Правая колонка: карта ---------- */
.ade-contacts__right {
  position: relative;
}

.ade-contacts__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background-image: image-set(
    url('../img/map.webp') type('image/webp'),
    url('../img/map.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #E5E7EB;
  border-radius: var(--ade-radius-light);
  overflow: hidden;
}
.ade-contacts__map iframe,
.ade-contacts__map img {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  min-height: 400px;
}

/* ============================================================
   КАРТА УХОДИТ ЗА ПРАВЫЙ КРАЙ (десктоп ≥ 1025px)
   ============================================================ */
@media (min-width: 1025px) {
  .ade-contacts {
    position: relative;
    overflow: hidden;
  }
  .ade-contacts__right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: calc(42% + 20px);
    margin: 0;
  }
  .ade-contacts__map {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: var(--ade-radius-light) 0 0 var(--ade-radius-light);
  }
  .ade-contacts__left {
    max-width: 560px;
    z-index: 2;
  }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* ---------- 1024 ---------- */
@media (max-width: 1024px) {
  .ade-container { padding: 0 32px; }

  .ade-section-title { font-size: 56px; }

  .ade-contacts { padding: 64px 0; }

  .ade-contacts__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
  }
  .ade-contacts__right {
    position: static;
    margin: -64px -40px -64px 0;
  }
  .ade-contacts__map {
    border-radius: var(--ade-radius-light);
  }
}

/* ---------- 768 ---------- */
@media (max-width: 768px) {
  .ade-container { padding: 0 24px; }

  .ade-section-title { font-size: 48px; margin-bottom: 40px; }

  .ade-contacts { padding: 64px 0 0; }

  .ade-contacts__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .ade-contacts__right {
    margin: 0 -24px;
  }
  .ade-contacts__map {
    min-height: 617px;
    border-radius: 0;
  }
  .ade-contacts .ade-btn {
    font-size: 18px;
    padding: 9px;
    width: 437px;
    max-width: 100%;
  }
}

/* ---------- 480 (мобильный) ---------- */
@media (max-width: 480px) {
  .ade-container { padding: 0 16px; }

  .ade-section-title {
    font-size: 40px;
    margin-bottom: 32px;
    text-align: left;
  }

  .ade-contacts { padding: 48px 0 0; }

  .ade-contacts__grid { gap: 40px; }

  .ade-contacts__list {
    gap: 22px;
    margin-bottom: 32px;
  }
  .ade-contacts__item { gap: 16px; }
  .ade-contacts__item-icon {
    width: 32px;
    height: 32px;
  }
  .ade-contacts__item-text {
    font-size: 16px;
  }

  .ade-contacts__right { margin: 0 -16px; }
  .ade-contacts__map {
    background-size: 190% auto;
    background-position: 60% 20%;
    min-height: 500px;
  }

  .ade-contacts .ade-btn {
    width: 100%;
    font-size: 18px;
    padding: 12px 16px;
  }
}

@media (max-width: 350px) {

  .ade-contacts__right {
    max-width: 100%;
  }
}