html:has(.contact-page) {
  font-size: 16px;
}

.contact-page {
  background: #f7fafc;
  color: #4a5568;
  font-size: 16px;
  line-height: 1.5;
}

.contact-page .contact-hero > .container,
.contact-page .contact-band > .container,
.contact-page .contact-footer > .container {
  width: min(1400px, 92%);
}

.contact-page .top-nav .container {
  width: min(1400px, 96%);
}

.contact-hero {
  background: #f7fafc;
  padding: 80px 0 80px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: start;
}

.contact-hero__copy h1 {
  margin: 0 0 18px;
  color: #2d3748;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.contact-hero__lead {
  margin: 0 0 9px;
  color: #2d3748;
  font-size: 18px;
  font-weight: 500;
}

.contact-hero__copy p {
  margin: 0 0 32px;
  max-width: 36em;
  color: #4a5568;
  font-size: 16px;
  line-height: 29px;
}

.contact-hero__copy p:last-child {
  margin-bottom: 0;
}

.contact-hero__copy a {
  color: #005140;
  font-weight: 500;
}

.contact-form {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 81, 64, 0.08);
}

.contact-form__head {
  margin-bottom: 20px;
}

.contact-form__kicker {
  margin: 0 0 4px;
  color: #005140;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form__title {
  margin: 0 0 6px;
  color: #1a202c;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-form__hint,
.contact-form__privacy,
.contact-field__help {
  margin: 0;
  color: #718096;
  font-size: 13px;
  line-height: 1.5;
}

.contact-form__ok,
.contact-form__err {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form__ok {
  background: #e7f8ec;
  border-color: #b7e4c7;
  color: #005140;
}

.contact-form__err {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #8a1f11;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
}

.required {
  margin-left: 3px;
  color: #c53030;
  font-weight: 700;
  text-decoration: none;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #fff;
  color: #1a202c;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.contact-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a0aec0;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(43, 183, 86, 0.35);
  outline-offset: 1px;
  border-color: #2bb756;
}

.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: #e53e3e;
}

.contact-field__help {
  margin-top: 6px;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
}

.contact-form__privacy {
  max-width: 34em;
}

.contact-form__submit {
  flex: 0 0 auto;
  min-width: 168px;
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: #005140;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: #003d30;
}

.contact-form__submit:focus-visible {
  outline: 2px solid #2bb756;
  outline-offset: 2px;
}

.contact-band {
  position: relative;
  background-color: #005140;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='480' viewBox='0 0 720 480' fill='none'%3E%3Cpath d='M-20 40C40 10 90 70 160 40C230 10 280 80 360 45C440 10 500 70 580 40C640 20 700 50 760 30' stroke='%232bb756' stroke-opacity='0.22' stroke-width='1.2'/%3E%3Cpath d='M-20 80C50 50 110 110 180 78C250 46 310 115 390 80C470 45 530 110 610 78C670 56 730 90 790 70' stroke='%232bb756' stroke-opacity='0.18' stroke-width='1.2'/%3E%3Cpath d='M-20 120C45 90 105 150 175 118C245 86 305 155 385 120C465 85 525 150 605 118C665 96 725 130 785 110' stroke='%232bb756' stroke-opacity='0.16' stroke-width='1.2'/%3E%3Cpath d='M-20 160C55 128 115 190 185 158C255 126 320 195 400 160C480 125 540 190 620 158C680 136 740 170 800 150' stroke='%232bb756' stroke-opacity='0.14' stroke-width='1.2'/%3E%3Cpath d='M-20 200C40 175 100 230 175 200C250 170 310 235 390 202C470 169 535 232 615 200C675 180 735 210 795 190' stroke='%232bb756' stroke-opacity='0.13' stroke-width='1.2'/%3E%3Cpath d='M-20 240C50 210 115 270 190 240C265 210 330 275 410 242C490 209 555 272 635 240C695 220 755 250 815 230' stroke='%232bb756' stroke-opacity='0.12' stroke-width='1.2'/%3E%3Cpath d='M-20 280C45 255 110 315 185 282C260 249 325 318 405 285C485 252 550 315 630 282C690 262 750 292 810 272' stroke='%232bb756' stroke-opacity='0.11' stroke-width='1.2'/%3E%3Cpath d='M-20 320C55 290 120 350 195 318C270 286 340 355 420 322C500 289 565 352 645 320C705 300 765 330 825 310' stroke='%232bb756' stroke-opacity='0.1' stroke-width='1.2'/%3E%3Cpath d='M-20 360C40 340 105 395 185 362C265 329 330 398 415 365C500 332 560 392 640 362C700 342 760 372 820 352' stroke='%232bb756' stroke-opacity='0.09' stroke-width='1.2'/%3E%3Cpath d='M-20 400C50 375 115 435 195 402C275 369 345 438 425 405C505 372 570 432 650 402C710 382 770 412 830 392' stroke='%232bb756' stroke-opacity='0.08' stroke-width='1.2'/%3E%3Cpath d='M-20 440C45 420 110 475 190 442C270 409 340 478 420 445C500 412 565 472 645 442C705 422 765 452 825 432' stroke='%232bb756' stroke-opacity='0.07' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
}

.contact-band__notch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  overflow: hidden;
  pointer-events: none;
}

.contact-band__notch svg {
  display: block;
  width: 100%;
  height: 50px;
}

.contact-band__notch path {
  fill: #f7fafc;
}

.contact-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.contact-info-card {
  background: #fff;
  border-radius: 5px;
  padding: 20px 20px 40px;
  text-align: center;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
}

.contact-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  margin: 0 auto 20px;
  padding: 10px 15px;
  background: #4fab58;
}

.contact-info-card h2 {
  margin: 0 0 8px;
  color: #2d3748;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-info-card p {
  margin: 0;
  color: #4a5568;
  font-size: 16px;
  line-height: 1.55;
}

.contact-info-card a {
  color: #4a5568;
}

.contact-info-card a:hover {
  color: #005140;
}

.contact-social {
  background: #fff;
  padding: 79px 0 80px;
  text-align: center;
}

.contact-social h2 {
  margin: 0 0 10px;
  color: #2d3748;
  font-size: 45px;
  font-weight: 500;
}

.contact-social p {
  margin: 0 auto 8px;
  max-width: 36em;
  color: #4a5568;
  font-size: 16px;
}

.contact-social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 56px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact-social__list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2d3748;
  font-size: 23px;
  font-weight: 500;
}

.contact-social__list a:hover {
  color: #005140;
}

.contact-social__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: #4fab58;
}

.contact-footer {
  background: #005140;
  padding: 64px 0 48px;
  color: #f2f3f4;
}

.contact-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px 28px;
  align-items: start;
}

.contact-footer__mail {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.contact-footer__mail:hover {
  color: #b7e4c7;
}

.contact-footer__copy-inline {
  margin: 16px 0 0;
  color: rgba(242, 243, 244, 0.7);
  font-size: 14px;
}

.contact-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.contact-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.contact-footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-footer__col h2,
.contact-footer__news h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.contact-footer__news h2 {
  font-size: 23px;
  line-height: 1.35;
}

.contact-footer__col a {
  display: block;
  margin-bottom: 10px;
  color: rgba(242, 243, 244, 0.82);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-footer__col a:hover {
  color: #fff;
}

.contact-footer__news {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contact-footer__news input {
  height: 41px;
  padding: 0 12px;
  border: none;
  border-radius: 3px;
  background: #fff;
  color: #2d3748;
  font: inherit;
  font-size: 14px;
}

.contact-footer__news button {
  height: 37px;
  border: none;
  border-radius: 3px;
  background: #2bb756;
  color: #005140;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
}

.contact-footer__news button:hover {
  background: #24a34c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .contact-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    padding: 48px 0 56px;
  }

  .contact-hero__grid,
  .contact-band__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-info-card h2 {
    font-size: 20px;
  }

  .contact-form {
    padding: 22px 18px 18px;
  }

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

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

  .contact-form__submit {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-hero > .container,
  .contact-page .contact-band > .container,
  .contact-page .contact-footer > .container {
    width: min(1400px, calc(100% - 32px));
  }

  .contact-hero {
    padding: 36px 0 40px;
  }

  .contact-hero__copy h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .contact-hero__copy p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 16px;
  }

  .contact-footer {
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
  }

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

  .contact-footer__col a {
    min-height: 36px;
  }
}
