/* Страница «Контакты» (templates/cms/_partials/contacts.tpl) */
.drb-contacts {
  --drb-contacts-panel: #cee4f1;
  --drb-contacts-text: #1d1d1b;
  color: var(--drb-contacts-text);
  padding-bottom: 60px;
}
/* сброс стилей CMS-страниц темы (.page-content.page-cms ul — flex, text-align: justify) */
.page-content.page-cms .drb-contacts {
  text-align: left;
}
.page-content.page-cms .drb-contacts ul {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  color: inherit;
}
.page-content.page-cms .drb-contacts li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-content.page-cms .drb-contacts li::before {
  content: none;
}
.page-content.page-cms .drb-contacts p {
  margin: 0;
}
.drb-contacts a {
  color: inherit;
  text-decoration: none;
}

/* Баннер — готовая картинка (img/contacts/banner.webp), текст на ней */
.drb-contacts__hero {
  margin-bottom: 56px;
  border-radius: 32px;
  overflow: hidden;
}
.drb-contacts__hero-img {
  display: block;
  width: 100%;
  height: auto;
}
/* h1 нужен поисковикам, на экране его заменяет текст на баннере */
.drb-contacts__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Секции */
.drb-contacts__section + .drb-contacts__section {
  margin-top: 48px;
}
.drb-contacts__heading {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-transform: none;
}
.drb-contacts__panel {
  padding: 40px 48px;
  border-radius: 32px;
  background: var(--drb-contacts-panel);
}

/* Каналы */
.drb-contacts__grid {
  display: grid;
  gap: 24px 32px;
}
.drb-contacts__grid--vitamins {
  grid-template-columns: repeat(3, 1fr);
}
.drb-contacts__grid--channels {
  grid-template-columns: repeat(4, 1fr);
}
.drb-contacts__channel {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 20px;
  font-weight: 500;
  transition: opacity .2s;
}
.drb-contacts__channel:hover {
  opacity: .75;
}
.drb-contacts__channel img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.drb-contacts__channel--small {
  gap: 14px;
  font-size: 18px;
}

/* Подарок */
.drb-contacts__gift {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.drb-contacts__gift-icon {
  flex: 0 0 auto;
  width: 84px;
  height: auto;
}
.drb-contacts__gift-text {
  flex: 1 1 auto;
  margin: 0;
  padding: 16px 28px;
  border-radius: 18px;
  background: linear-gradient(78deg, #163455 0%, #078fa7 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}
.drb-contacts__gift-text b {
  display: block;
  font-weight: 700;
}

/* Кнопки связи */
.drb-contacts__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: space-between;
  gap: 24px 48px;
}
.drb-contacts__button {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 12px 28px;
  border-radius: 42px;
  background: var(--drb-contacts-panel);
  font-size: 19px;
  font-weight: 500;
  transition: background-color .2s;
}
.drb-contacts__button:hover {
  background: #bcd9ea;
}
.drb-contacts__button img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .drb-contacts__panel {
    padding: 32px;
  }
  .drb-contacts__grid--channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .drb-contacts__hero {
    margin-bottom: 40px;
    border-radius: 16px;
  }
  .drb-contacts__section + .drb-contacts__section {
    margin-top: 36px;
  }
  .drb-contacts__heading {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .drb-contacts__panel {
    padding: 24px 20px;
    border-radius: 24px;
  }
  .drb-contacts__grid {
    gap: 20px 12px;
  }
  .drb-contacts__grid--vitamins .drb-contacts__channel {
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
  }
  .drb-contacts__grid--vitamins {
    justify-items: center;
  }
  .drb-contacts__channel img,
  .drb-contacts__button img {
    width: 48px;
    height: 48px;
  }
  .drb-contacts__grid--channels {
    grid-template-columns: repeat(2, 1fr);
  }
  .drb-contacts__channel--small {
    gap: 10px;
    font-size: 15px;
  }
  .drb-contacts__gift {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }
  .drb-contacts__gift-icon {
    width: 64px;
  }
  .drb-contacts__gift-text {
    padding: 14px 18px;
    font-size: 15px;
  }
  .drb-contacts__buttons {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .drb-contacts__button {
    min-height: 68px;
    padding: 10px 20px;
    font-size: 17px;
  }
}
