.contact-page-shell {
  overflow: hidden;
  background: #f7fcfd;
}

.contact-hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 500px) minmax(520px, 720px);
  justify-content: center;
  gap: clamp(26px, 3vw, 44px);
  align-items: center;
  min-height: 80vh;
  padding: 34px var(--site-gutter);
}

.contact-hero-section::before {
  display: none;
}

.contact-info-panel,
.contact-form-card,
.contact-map-frame,
.contact-benefits {
  position: relative;
  z-index: 1;
}

.contact-info-panel h1 {
  max-width: 390px;
  color: #20313a;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.08;
}

.contact-info-panel h1 span {
  display: block;
  color: var(--forest);
}

.contact-info-panel > p {
  max-width: 430px;
  margin-top: 12px;
  color: #516166;
  font-size: 12px;
  line-height: 1.55;
}

.contact-detail-list {
  display: grid;
  gap: 10px;
  max-width: 500px;
  margin-top: 22px;
}

.contact-detail-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 59, 49, 0.12);
  border-left: 3px solid var(--forest);
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(20, 56, 59, 0.06);
}

.contact-detail-list article > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  background: var(--forest);
  border-radius: 6px;
  font-size: 13px;
}

.contact-detail-list h2 {
  margin: 0 0 2px;
  color: #20313a;
  font-size: 12px;
  line-height: 1.2;
}

.contact-detail-list a,
.contact-detail-list p,
.contact-detail-list span {
  color: #4d5c62;
  font-size: 12px;
  line-height: 1.45;
}

.contact-form-card {
  position: relative;
  min-width: 0;
  width: min(100%, 780px);
  min-height: 620px;
  justify-self: start;
  padding: 188px 220px 54px 138px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-form-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  transform: scale(1.02);
}

.contact-form-card > h2 {
  position: relative;
  z-index: 2;
  max-width: 340px;
  color: #20313a;
  font-size: clamp(18px, 1.35vw, 22px);
  padding: 10px;
  top: -20px;
  text-align: center;
}

.contact-message-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  max-width: 340px;
  margin-top: 10px;
  padding: 10px;
}

.contact-message-form .full-field,
.contact-form-actions,
.contact-form-message {
  grid-column: 1 / -1;
}

.contact-message-form input,
.contact-message-form textarea {
  width: 100%;
  color: #20313a;
  background: #ffffff;
  border: 1px solid rgba(44, 81, 86, 0.18);
  border-radius: 5px;
  outline: 0;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.contact-message-form input {
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.contact-message-form textarea {
  min-height: 80px;
  padding: 12px;
  font-size: 12px;
  resize: vertical;
}

.contact-message-form input:focus,
.contact-message-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(49, 174, 181, 0.13);
}

.contact-message-form ::placeholder {
  color: #7a868c;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.contact-form-actions .btn {
  min-width: 140px;
  min-height: 36px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 12px;
}

.contact-page .btn-primary {
  background: var(--forest);
  box-shadow: none;
}

.contact-form-actions p,
.contact-form-message {
  color: #6b777c;
  font-size: 12px;
}

.contact-form-actions p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-form-actions p i {
  color: var(--forest);
}

.contact-map-section {
  padding: 30px 0 0;
}

.contact-map-frame {
  min-height: 320px;
  overflow: hidden;
  background: #edf6f7;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-benefits-section {
  padding: 38px 0 0;
  background:#f7fcfd;
}

.contact-benefits-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 18px;
  text-align: center;
}

.contact-benefits-heading .section-kicker::after {
  margin-inline: auto;
}

.contact-benefits-heading h2 {
  color: #20313a;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.contact-benefits {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(520px, 760px);
  align-content: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 54px);
  min-height: 180px;
  padding: 24px var(--site-gutter);
  color: #ffffff;
  background: #31aeb5;
}

.contact-benefits-image {
  overflow: hidden;
  height: 150px;
  border-radius: 8px;
}

.contact-benefits-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-benefits-content {
  display: grid;
  align-content: center;
  grid-template-columns: minmax(350px, 1fr); 
  gap: 14px;

}

.contact-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-benefits-grid article {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 0 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-benefits-grid article:last-child {
  border-right: 0;
}

.contact-benefits-grid i {
  color: #ffffff;
  font-size: 30px;
}

.contact-benefits-grid h3 {
  max-width: 110px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

.contact-page .footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .contact-hero-section {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    width: 100%;
    justify-self: stretch;
    min-height: 600px;
    padding: 182px 188px 50px 126px;
  }

  .contact-benefits {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 720px;
    margin-inline: auto;
  }

  .contact-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .contact-benefits-grid article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .contact-hero-section,
  .contact-benefits-section {
    padding-inline: 18px;
  }

  .contact-hero-section {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .contact-hero-section::before {
    display: none;
  }

  .contact-info-panel h1 {
    font-size: 29px;
  }

  .contact-detail-list article {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
  }

  .contact-detail-list article > i {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .contact-message-form {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    width: 100%;
    min-height: 0;
    padding: 34px 18px 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(13, 59, 49, 0.10);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 56, 59, 0.08);
  }

  .contact-form-card > h2,
  .contact-message-form {
    max-width: 100%;
  }

  .contact-form-card > h2 {
    top: 0;
    padding: 0;
    text-align: center;
  }

  .contact-message-form {
    width: 100%;
    margin-top: 26px;
    padding: 0;
  }

  .contact-form-frame {
    display: none;
  }

  .contact-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-actions .btn {
    width: 100%;
  }

  .contact-map-section {
    padding-top: 24px;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 280px;
  }

  .contact-benefits {
    padding: 18px 0;
  }

  .contact-benefits-image {
    height: 150px;
  }

  .contact-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .contact-benefits-grid article,
  .contact-benefits-grid article:nth-child(2) {
    min-height: auto;
    padding: 16px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .contact-benefits-grid article:nth-child(2n) {
    border-right: 0;
  }

  .contact-benefits-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
