/* ══════════════════════════════════════════════
   contacts.css — сторінка контактів
══════════════════════════════════════════════ */
/* ── Загальний заголовок секцій ── */
.sv-section-title {
  font-weight: 900;
  font-size: 34px;
  line-height: 1.25;
  color: #124651;
  font-family: "Montserrat", sans-serif;
  margin: 0 0 32px;
  position: relative;
  padding-bottom: 14px;
}
.sv-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #42796c, #8dd9c6);
  border-radius: 2px;
}

.contacts {
  padding: 72px 0 80px;
}

.contacts__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Двоколонна сітка ── */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

/* ══════════════════════════════════════════════
   ЛІВА КОЛОНКА
══════════════════════════════════════════════ */
.contacts__section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7aa0a0;
  margin: 0 0 10px;
}

.contacts__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: #124651;
  margin: 0 0 12px;
  line-height: 1.2;
}

.contacts__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #6a8a8d;
  line-height: 1.65;
  margin: 0 0 36px;
}

/* ── Контактні елементи ── */
.contacts__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #F8FBFB;
  border: 1px solid #e2eeee;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.contacts__item:not(.contacts__item--static):hover {
  border-color: #9fd0c8;
  box-shadow: 0 4px 16px rgba(42,100,88,0.09);
  transform: translateX(3px);
}
.contacts__item--static {
  cursor: default;
}

.contacts__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacts__item-icon svg {
  width: 20px;
  height: 20px;
}
.contacts__item-icon--green {
  background: rgba(42,100,88,0.1);
  color: #2d6b5e;
}
.contacts__item-icon--blue {
  background: rgba(24,95,165,0.1);
  color: #185fa5;
}
.contacts__item-icon--teal {
  background: rgba(26,122,122,0.1);
  color: #1a7a7a;
}
.contacts__item-icon--amber {
  background: rgba(133,79,11,0.1);
  color: #854f0b;
}

.contacts__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.contacts__item-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7aa0a0;
}
.contacts__item-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #124651;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts__item-arrow {
  color: #b0c8c8;
  flex-shrink: 0;
}
.contacts__item-arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Соцмережі ── */
.contacts__socials-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7aa0a0;
  margin: 0 0 14px;
}

.contacts__socials-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contacts__social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #e2eeee;
  border-radius: 8px;
  background: #F8FBFB;
  color: #124651;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.contacts__social-btn:hover {
  border-color: #1a7a7a;
  background: rgba(26,122,122,0.06);
  color: #1a7a7a;
  transform: translateY(-2px);
}
.contacts__social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   ПРАВА КОЛОНКА
══════════════════════════════════════════════ */

/* ── Форма ── */
.contacts__form-card {
  background: #fff;
  border: 1px solid #e2eeee;
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.contacts__form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #124651;
  margin: 0 0 6px;
}
.contacts__form-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #6a8a8d;
  margin: 0 0 24px;
}

.contacts__form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contacts__field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #445;
}
.contacts__req {
  color: #c0392b;
  margin-left: 2px;
}
.contacts__field input,
.contacts__field textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  color: #1a1a2e;
  background: #f8fbfb;
  border: 1.5px solid #d8e8e8;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}
.contacts__field input:focus,
.contacts__field textarea:focus {
  border-color: #1a7a7a;
  box-shadow: 0 0 0 3px rgba(26,122,122,0.1);
  background: #fff;
}
.contacts__field input.has-error {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(224,85,85,0.1);
}
.contacts__field-error {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: #e05555;
  display: none;
}

.contacts__submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  background: #1a7a7a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.contacts__submit:hover {
  background: #145f5f;
  transform: translateY(-1px);
}
.contacts__submit:disabled {
  background: #7aadad;
  cursor: not-allowed;
  transform: none;
}

.contacts__form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 12px;
}
.contacts__form-success-icon {
  font-size: 48px;
  line-height: 1;
}
.contacts__form-success p {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #124651;
  margin: 0;
}

/* ── Карта ── */
.contacts__map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2eeee;
  line-height: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.contacts__map iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ── Телефон: стрілка прихована на десктопі ── */
.contacts__phone-arrow { display: none; }

@media (max-width: 999px) {
  .contacts__phone-arrow { display: flex; }

  /* Коли JS перетворив div на <a> — показуємо hover */
  a.contacts__item--clickable:hover {
    border-color: #9fd0c8;
    box-shadow: 0 4px 16px rgba(42,100,88,0.09);
    transform: translateX(3px);
  }
}
@media (max-width: 960px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contacts__item-value {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .contacts {
    padding: 48px 0 56px;
  }
  .contacts__wrap {
    padding: 0 20px;
  }
  .contacts__form-card {
    padding: 24px 20px 20px;
  }
  .contacts__socials-list {
    gap: 8px;
  }
  .contacts__social-btn span {
    display: none;
  }
  .contacts__social-btn {
    padding: 10px;
    border-radius: 10px;
  }
}