.page-contact .container { max-width: none; }

.contact-hero {
  position: relative;
  height: 500px;
  margin-top: 120px;
  overflow: hidden;
  color: #fff;
  background: #8d989e;
}

.contact-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.contact-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.contact-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 60px min(5.2vw, 100px);
}

.contact-hero-content h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-hero-content p {
  width: min(482px, 46vw);
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
}

.contact-details {
  padding: 80px 0;
}

.contact-details h2,
.message-section h2 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}

.contact-card {
  position: relative;
  padding-top: 23px;
}

.contact-card h3 {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 218px;
  height: 46px;
  margin: 0;
  color: #fff;
  background: var(--green);
  transform: translateX(-50%);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
}

.contact-card h3 img {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  padding: 42px 20px 16px;
  color: var(--muted);
  background: #f5f5f5;
  text-align: center;
  font-size: 17px;
  line-height: 1.84;
}

.contact-card-body a:hover { color: var(--green); }
.contact-card-body address { margin: 0; color: var(--green); font-style: normal; line-height: 1.4; }

.message-section {
  padding: 0 0 80px;
}

.message-form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: none;
  margin: 40px 0 0;
}

.message-form.contact-form input,
.message-form.contact-form textarea {
  border-radius: 0;
  color: #333;
  background: #f5f5f5;
}

.message-form.contact-form input {
  height: 70px;
  padding: 0 30px;
}

.message-form.contact-form textarea {
  height: 229px;
  padding: 17px 30px;
}

.message-form.contact-form input::placeholder,
.message-form.contact-form textarea::placeholder { color: var(--muted); opacity: 1; }

.message-form.contact-form button {
  justify-self: center;
  width: 146px;
  height: 38px;
  margin-top: 10px;
  color: #fff;
  background: var(--green);
  font-weight: 400;
}

.message-form.contact-form .form-message {
  min-height: 0;
  margin: -12px 0 0;
  color: var(--green);
  text-align: center;
}

.message-form.contact-form .form-message.is-success { color: var(--green); }
.message-form.contact-form .form-message.is-error { color: #a51f1f; }

@media (max-width: 1500px) {
  .contact-hero { height: 390px; margin-top: 92px; }
  .contact-hero-content { padding-left: 4vw; }
}

@media (max-width: 900px) {
  .contact-card-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-card { padding-top: 23px; }
  .message-form.contact-form { grid-template-columns: 1fr; }
  .message-form.contact-form .full { grid-column: auto; }
}

@media (max-width: 760px) {
  .contact-hero { height: 360px; margin-top: 72px; }
  .contact-hero > img { object-position: 66% center; }
  .contact-hero-content { padding: 0 0 40px; }
  .contact-hero-content h1 { font-size: 27px; }
  .contact-hero-content p { width: min(360px, 90%); font-size: 16px; }
  .contact-details { padding: 56px 0; }
  .contact-details h2, .message-section h2 { font-size: 26px; }
  .contact-card h3 { font-size: 22px; }
  .message-section { padding-bottom: 60px; }
  .message-form.contact-form input { height: 60px; padding-inline: 20px; }
  .message-form.contact-form textarea { height: 190px; padding-inline: 20px; }
}
