
/* CONTACTS SECTION */

.rp-contacts {
  --rc-teal: #079c98;
  --rc-ink: #153349;
  --rc-muted: #718493;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 24px 90px;
  background: linear-gradient(180deg, #f4faf7 0%, #fafcf9 100%);
  box-sizing: border-box;
}

.rp-contacts *,
.rp-contacts *::before,
.rp-contacts *::after {
  box-sizing: border-box;
}

.rp-contacts__container {
  max-width: 1440px;
  margin: 0 auto;
}

/* HEADER */

.rp-contacts__header {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.rp-contacts__eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--rc-teal);
  font: 700 12px/1.5 Arial, sans-serif;
  letter-spacing: 2.4px;
}

.rp-contacts__header h2 {
  margin: 0 0 14px;
  color: var(--rc-ink);
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}

.rp-contacts__header h2 em {
  color: var(--rc-teal);
  font-style: normal;
}

.rp-contacts__header p {
  margin: 0;
  color: var(--rc-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* MAIN GRID */

.rp-contacts__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.rp-contacts__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 24px 20px;
  border: 1px solid #e7efeb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 35px rgba(21, 51, 73, .035);
}

/* INFO ROWS */

.rp-contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 21px 0;
  border-bottom: 1px solid #e7efeb;
}

.rp-contacts__item:nth-child(3) {
  border-bottom: 0;
}

.rp-contacts__icon {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #e9f8f4;
  color: var(--rc-teal);
}

.rp-contacts__icon svg {
  width: 22px;
  height: 22px;
}

.rp-contacts__item-content {
  min-width: 0;
}

.rp-contacts__item h3 {
  margin: 0 0 5px;
  color: var(--rc-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.rp-contacts__item address {
  margin: 0 0 5px;
  color: var(--rc-ink);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.rp-contacts__text-link {
  color: var(--rc-teal) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.rp-contacts__text-link:hover {
  text-decoration: underline !important;
}

.rp-contacts__phone {
  color: var(--rc-teal) !important;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
}

.rp-contacts__item p {
  margin: 5px 0 0;
  color: var(--rc-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* HOURS */

.rp-contacts__hours {
  display: grid;
  gap: 3px;
  margin: 0;
}

.rp-contacts__hours > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.rp-contacts__hours dt {
  color: var(--rc-ink);
}

.rp-contacts__hours dd {
  margin: 0;
  color: var(--rc-ink);
  font-weight: 700;
}

/* BUTTONS */

.rp-contacts__actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.rp-contacts__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1.5px solid var(--rc-teal);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}

.rp-contacts__button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.rp-contacts__button--primary {
  background: var(--rc-teal);
  color: #fff !important;
}

.rp-contacts__button--primary:hover {
  background: #087f7b;
  transform: translateY(-2px);
}

.rp-contacts__button--outline {
  background: #fff;
  color: var(--rc-teal) !important;
}

.rp-contacts__button--outline:hover {
  background: #eaf8f4;
}

/* MAP */

.rp-contacts__map {
  position: relative;
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid #e7efeb;
  border-radius: 20px;
  background: #edf3ef;
}

.rp-contacts__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* TABLET */

@media (max-width: 1050px) {
  .rp-contacts__layout {
    grid-template-columns: 1fr;
  }

  .rp-contacts__map {
    min-height: 440px;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .rp-contacts {
    padding: 60px 16px 70px;
  }

  .rp-contacts__header {
    margin-bottom: 30px;
  }

  .rp-contacts__header h2 {
    font-size: 34px;
  }

  .rp-contacts__header p {
    font-size: 14px;
  }

  .rp-contacts__header p br {
    display: none;
  }

  .rp-contacts__info {
    padding: 8px 17px 20px;
    border-radius: 18px;
  }

  .rp-contacts__item {
    gap: 12px;
    padding: 18px 0;
  }

  .rp-contacts__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .rp-contacts__phone {
    font-size: 21px;
  }

  .rp-contacts__actions {
    grid-template-columns: 1fr;
  }

  .rp-contacts__button {
    width: 100%;
    min-height: 48px;
  }

  .rp-contacts__map {
    min-height: 370px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-contacts__button {
    transition: none;
  }
}
