/* ═══════════════════════════════════════════════════════════════
   CONTACTS — Страница контактов, 404, текстовые страницы
   ═══════════════════════════════════════════════════════════════ */


/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0;
  color: var(--primary-dark);
}

.breadcrumb a { color: var(--primary-dark); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  opacity: .45;
}


/* ── Text page ──────────────────────────────────────────────── */
.text-page {
  padding: 32px 0 64px;
  max-width: 800px;
}

.text-page__title {
  margin-bottom: 28px;
  color: var(--primary-font);
  line-height: 1.15;
}

.text-page__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--primary-dark);
}

.text-page__body h2,
.text-page__body h3,
.text-page__body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-font);
  margin-top: 8px;
}

.text-page__body h2 { font-size: 26px; }
.text-page__body h3 { font-size: 20px; }
.text-page__body h4 { font-size: 17px; }

.text-page__body ul,
.text-page__body ol {
  padding-left: 24px;
}
.text-page__body ul { list-style: disc; }
.text-page__body ol { list-style: decimal; }

.text-page__body li { margin-bottom: 6px; }

.text-page__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-page__body a:hover { color: #4D6766; }

.text-page__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.text-page__body td,
.text-page__body th {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.text-page__body th {
  background: var(--background-2);
  font-weight: 600;
  color: var(--primary-font);
}


/* ── 404 ────────────────────────────────────────────────────── */
.error-404 { padding: 80px 0; }

.error-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.error-404__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--background-2);
  margin-bottom: 8px;
}

.error-404__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary-font);
  line-height: 1.15;
}

.error-404__text {
  font-size: 16px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.error-404__btn {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
}
.error-404__btn:hover { background: #4D6766; }


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .text-page { padding: 24px 0 48px; }
  .text-page__title { margin-bottom: 20px; }
  .error-404 { padding: 56px 0; }
}


/* ═══════════════════════════════════════════════════════════════
   СТРАНИЦА КОНТАКТОВ
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────────────────── */

.contacts-hero {
  padding-bottom: 140px;
}

.contacts-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contacts-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts-hero__img {
 overflow: hidden;
  height: 100%;
  width: calc(100% + var(--margin));
  margin-right: calc(var(--margin) * -1);
  min-height: 447px;
}

.contacts-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Карточки контактов ─────────────────────────────────────── */

.contacts-cards {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 60px;
}

.contacts-card {
  background-color: var(--primary);
  color: var(--neutral);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding: 20px;
  text-align: center;
  width: 285px;
}

.contacts-card svg path {
  fill: var(--neutral);
}

.contacts-card .title-4 {
  color: var(--neutral);
}

.contacts-card a ,
.contacts-card p {
  color: var(--neutral);
}

.contacts-card a:hover {
  opacity: 0.75;
}

/* ─── Карта ──────────────────────────────────────────────────── */

.contacts-map {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
}

.contacts-map__embed iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ─── Адаптив ────────────────────────────────────────────────── */

@media (max-width: 1080px) {

  .contacts-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    padding: 45px 0;
    text-align: center;
  }

  .contacts-hero__content {
    position: relative;
    z-index: 2;
  }

  .contacts-hero__img {
    width: 100%;
    max-width: 100%;
    position: absolute;
    min-height: auto;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 20px 0 40px;
  }

  .contacts-cards {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .contacts-card {
    max-width: 100%;
    width: 100%;
  }

  .contacts-map__embed iframe {
    height: 280px;
  }

  .contacts-map {
    margin-bottom: 48px;
  }
}
