/* ============================================================
   СТОРІНКА «КОНТАКТИ»
   ============================================================ */

.contacts-crumbs {
  padding-bottom: 0;
}

/* --- Hero: 3 компактні скляні картки --- */
.contacts-hero {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(12px, 2.2vw, 20px) var(--gap-page) 0;
}

.contacts-hero__title {
  margin: 0 0 clamp(12px, 1.8vw, 18px);
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-announce) 72%, #a8b89e);
  text-wrap: balance;
}

.contacts-hero__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.8vw, 28px);
  margin: 0;
  width: 100%;
}

.contacts-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  flex: 1 1 160px;
  max-width: 240px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, #1c1c1c 52%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
  color: #ffffff;
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 20%, transparent),
    0 6px 20px color-mix(in srgb, #000000 10%, transparent);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.contacts-hero__card dd {
  margin: 0;
}

.contacts-hero__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ffffff 62%, transparent);
}

.contacts-hero__value {
  font-family: var(--f-ui);
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.contacts-hero__value:hover,
a.contacts-hero__value:focus-visible {
  color: var(--c-gold);
  outline: none;
}

/* --- Контент під баннером --- */
.contacts-body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gap-page) clamp(48px, 8vw, 80px);
}

.contacts-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.contacts-form-block__title {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
}

.contacts-form .field {
  margin-bottom: 14px;
}

.contacts-form .field input,
.contacts-form .field textarea {
  border-radius: var(--radius-sm);
  border-color: color-mix(in srgb, var(--c-border) 85%, var(--c-muted));
  background: var(--c-surface);
}

.contacts-form .field textarea {
  min-height: 140px;
}

.contacts-form__submit {
  margin-top: 8px;
  min-height: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.contacts-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contacts-map__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-oat) 55%, var(--c-surface));
}

.contacts-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* --- Планшет --- */
@media (max-width: 899px) {
  .contacts-hero__title {
    margin-bottom: 12px;
    font-size: clamp(20px, 4.5vw, 26px);
  }

  .contacts-hero__cards {
    gap: 18px;
  }

  .contacts-hero__card {
    flex: 1 1 140px;
    max-width: 220px;
    min-height: 58px;
    padding: 10px 14px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-map__frame,
  .contacts-map__iframe {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 639px) {
  .contacts-hero__cards {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .contacts-hero__card {
    flex: 0 1 auto;
    width: min(100%, 280px);
    max-width: 280px;
    min-height: 56px;
    padding: 10px 14px;
  }
}

@media (min-width: 900px) {
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 64px);
  }

  .contacts-map__frame {
    min-height: 100%;
  }

  .contacts-map__iframe {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
}

/* --- Мобільний / iOS Safari --- */
@media (max-width: 479px) {
  .contacts-hero {
    padding-top: 10px;
  }

  .contacts-hero__title {
    font-size: clamp(18px, 6vw, 22px);
    letter-spacing: 0.05em;
  }

  .contacts-hero__cards {
    gap: 12px;
  }

  .contacts-hero__card {
    border-radius: 12px;
    width: min(100%, 260px);
    min-height: 52px;
    padding: 10px 12px;
  }

  .contacts-hero__value {
    font-size: 13.5px;
  }

  .contacts-body {
    padding-top: 24px;
  }

  .contacts-form .field textarea {
    min-height: 120px;
  }

  .contacts-map__frame,
  .contacts-map__iframe {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }
}

@supports (-webkit-touch-callout: none) {
  .contacts-hero__card {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .contacts-hero__card {
    background: color-mix(in srgb, #2a2a2a 88%, transparent);
  }
}
