/* Страница «Контакты» — карточка в общем pdf-hero (шапка как на главной) */

.gle-body--contacts {
  background: #1a1410;
}

.pdf-hero-shell--contacts-page .pdf-hero-shell__bg {
  background-position: center center;
}

.pdf-hero-shell--contacts-page .pdf-hero-shell__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.gle-body--contacts .pdf-hero-shell__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.35rem 0 0;
}

.gle-body--contacts .pdf-hero__top.contacts-topbar--hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: min(var(--gle-canvas-max, 1920px), calc(100vw - 1.5rem));
  margin: 0 auto;
  padding: 0.55rem 1rem 0.25rem;
}

.contacts-topbar--hero {
  width: 100%;
}

.contacts-logo {
  color: #1a1613;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  margin: 0;
  line-height: 0;
}

.contacts-logo--tl {
  flex-shrink: 0;
}

.contacts-logo__img {
  display: block;
  width: auto;
  max-width: min(87px, 22vw);
  height: auto;
  max-height: 8.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.4));
}

.contacts-topbar__burger {
  display: none;
}

@media (max-width: 900px) {
  .contacts-topbar__burger {
    display: flex;
  }
}

.contacts-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(4.5rem, 10vh, 6.5rem);
  min-height: 0;
}

.contacts-card {
  width: 100%;
  max-width: min(1040px, calc(100vw - 3rem));
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.18);
  padding: clamp(2rem, 3.5vw, 2.85rem) clamp(2rem, 4vw, 2.85rem) clamp(2.1rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contacts-card__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr) minmax(0, 0.82fr);
  gap: clamp(1.5rem, 3.2vw, 2.6rem);
  align-items: start;
}

/* Планшет: адреса+контакты в ряд, бейджи переносятся под них */
@media (max-width: 900px) {
  .contacts-card__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .contacts-card__acc-col {
    grid-column: 1 / -1;
  }
  .contacts-card__acc {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .contacts-card {
    max-width: 100%;
  }

  .contacts-card__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contacts-card h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #1a1613;
}

.contacts-card h3.gold {
  color: #b8a066;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  letter-spacing: 0.05em;
}

.contacts-card p {
  margin: 0;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 1.45;
  font-weight: 400;
  color: #1a1613;
}

.contacts-card a {
  color: #1a1613;
  text-decoration: none;
}

.contacts-card a:hover {
  color: #6b5a32;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-card .block--phones a {
  color: #1a1613;
  text-decoration: none;
}

.contacts-card .block--phones a:hover {
  color: #6b5a32;
  text-decoration: underline;
}

.contacts-card .block {
  margin-bottom: clamp(2rem, 3.8vw, 2.85rem);
}

.contacts-card .block:last-child {
  margin-bottom: 0;
}

.contacts-card .block--phones p + p {
  margin-top: 0.12rem;
}

.contacts-card .block--social {
  width: fit-content;
  max-width: 100%;
}

/* Бейджи АДД (аккредитовано + рекомендовано) — тёмный текст на белой карточке,
   отдельной колонкой справа, сверху (на уровне телефонов). Кликабельны → реестр НПАДД. */
.contacts-card__acc-col {
  min-width: 0;
}

/* Колонку контактов (телефоны/почта/соцсети) — чуть правее */
@media (min-width: 721px) {
  .contacts-card__mid {
    padding-left: clamp(0.75rem, 2vw, 1.9rem);
  }
}

.contacts-card__acc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 15rem;
  text-decoration: none;
}

.contacts-card__acc-badge {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .contacts-card__acc {
    max-width: none;
    gap: 1rem 1.5rem;
    align-items: center;
  }
  .contacts-card__acc-badge {
    width: auto;
    max-width: min(15rem, 46%);
  }
}

.contacts-card .block--social h3 {
  margin-bottom: 0.55rem;
}

.contacts-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.32rem;
  margin-top: 0;
}

.contacts-social a {
  display: block;
  flex: 1 1 0;
  width: auto;
  max-width: 1.85rem;
  aspect-ratio: 1;
  border: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none !important;
  background: transparent;
  overflow: hidden;
  line-height: 0;
}

.contacts-social__svg,
.contacts-social__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.contacts-social a:hover {
  opacity: 0.72;
}
