/* ══ contact.css — page-contact only ══ */

/* No hyphenation / clean word breaks (override mobile.css hyphens:auto) */
body.page-contact,
body.page-contact * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

body.page-contact .chd-title-line,
body.page-contact .cfd-title-line {
  display: block;
}

body.page-contact p,
body.page-contact h1,
body.page-contact h2,
body.page-contact h3,
body.page-contact h4,
body.page-contact li,
body.page-contact a,
body.page-contact label,
body.page-contact .section-label,
body.page-contact .section-title,
body.page-contact .chd-title,
body.page-contact .chd-sub,
body.page-contact .chd-ch-label,
body.page-contact .chd-ch-note,
body.page-contact .cfd-title,
body.page-contact .cfd-sub,
body.page-contact .co-title,
body.page-contact .co-sub,
body.page-contact .co-row span,
body.page-contact .co-row strong,
body.page-contact .cta-sub,
body.page-contact .btn-primary-white {
  text-wrap: pretty;
}

/* Hero background */
body.page-contact .contact-hero-dark {
  position: relative;
  overflow: hidden;
}

body.page-contact .chd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page-contact .chd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

body.page-contact .chd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 21, 48, 1) 0%,
    rgba(30, 21, 48, 0.85) 60%,
    rgba(30, 21, 48, 0.6) 100%
  );
}

body.page-contact .chd-hero-content {
  position: relative;
  z-index: 1;
}

/* Hero channels — 3 cards, horizontal icon + text */
body.page-contact .chd-channels {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.06);
}

body.page-contact .chd-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.3s;
}

body.page-contact .chd-channel:last-child {
  border-right: none;
}

body.page-contact .chd-channel:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.page-contact .chd-channel svg {
  flex-shrink: 0;
}

body.page-contact .chd-ch-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 4px;
}

body.page-contact .chd-channel-phone .chd-ch-label {
  white-space: nowrap;
  font-size: 15px;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
}

body.page-contact .chd-ch-note {
  font-size: 13px;
  color: rgba(248, 247, 244, 0.45);
  line-height: 1.4;
}

/* Form section — centered block */
body.page-contact .cfd-inner .section-label {
  text-align: center;
  display: block;
}

/* Office specs — aligned two-column rows */
body.page-contact .co-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 24px;
  align-items: baseline;
}

body.page-contact .co-row strong {
  text-align: right;
}

/* Bitrix form consent — avoid awkward breaks in legal text */
body.page-contact .cfd-inner [class*="b24"] *,
body.page-contact .cfd-inner iframe {
  hyphens: none !important;
  word-break: normal !important;
}

.cfd-field select {
  height: auto;
  min-height: 56px;
  padding: 16px 20px;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 1023px) {
  body.page-contact .chd-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.page-contact .chd-channels {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    background: transparent;
  }

  body.page-contact .chd-channel {
    width: 100%;
    border-right: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
  }

  .contact-form-dark {
    padding: 40px 0 !important;
  }

  .cfd-inner {
    padding: 32px 16px !important;
  }

  .cfd-title {
    font-size: 22px !important;
  }

  .contact-office {
    padding: 40px 0 !important;
  }

  body.page-contact .co-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.page-contact .co-row strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .chd-title {
    font-size: 28px !important;
  }

  .chd-sub {
    font-size: 14px !important;
  }
}
