.site-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.site-modal[hidden],
.site-hub[hidden] {
  display: none;
}

.site-modal,
.site-hub {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(20, 23, 21, 0.82);
  backdrop-filter: blur(16px);
}

.site-modal__card,
.site-hub__inner {
  position: relative;
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  color: #231f20;
  background: #fffdfb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.site-hub__inner {
  width: min(100%, 560px);
}

.site-modal__close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e5ddd5;
  border-radius: 50%;
  color: #77716e;
  background: transparent;
  font: 24px/1 Georgia, serif;
  cursor: pointer;
}

.site-modal__brand {
  width: fit-content;
  margin-bottom: 20px;
  font-size: 34px;
  line-height: 1;
}

.site-modal__badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #315f4d;
  background: #dce9e2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-modal__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.site-modal__lead {
  margin: 12px 0 22px;
  color: #77716e;
  font-size: 14px;
  line-height: 1.6;
}

.site-modal__terms {
  max-height: 190px;
  margin-bottom: 18px;
  padding: 17px;
  overflow-y: auto;
  border: 1px solid #e5ddd5;
  border-radius: 15px;
  color: #5e5956;
  background: #f8f4ef;
  font-size: 12px;
  line-height: 1.55;
}

.site-modal__terms p + p {
  margin-top: 10px;
}

.site-modal__agree {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  color: #4e4947;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.site-modal__agree input {
  margin-top: 2px;
  accent-color: #508770;
}

.site-modal__field {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.site-modal__field span {
  color: #77716e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-modal__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e5ddd5;
  border-radius: 12px;
  color: #231f20;
  background: #fff;
  font: inherit;
}

.site-modal__field input:focus {
  border-color: #508770;
  outline: 3px solid rgba(80, 135, 112, 0.14);
}

.site-modal__error {
  min-height: 20px;
  margin: 10px 0 4px;
  color: #a85c44;
  font-size: 12px;
}

.site-modal__primary,
.site-modal__secondary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.site-modal__primary {
  color: #fffdfb;
  background: #231f20;
}

.site-modal__primary:disabled {
  cursor: default;
  opacity: 0.42;
}

.site-modal__link {
  display: inline-block;
  margin: 12px 0 2px;
  color: #315f4d;
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.site-modal__link:hover {
  text-decoration: underline;
}

.site-modal__secondary {
  margin-top: 18px;
  color: #315f4d;
  background: #dce9e2;
}

.site-hub__links {
  display: grid;
  gap: 11px;
}

.site-hub__links a {
  min-height: 78px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  border: 1px solid #e5ddd5;
  border-radius: 16px;
  color: #231f20;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-hub__links a:hover,
.site-hub__links a:focus-visible {
  transform: translateY(-2px);
  border-color: #8eb2a4;
  background: #f8f4ef;
  outline: none;
}

.site-hub__links strong,
.site-hub__links span {
  grid-column: 1;
}

.site-hub__links strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.site-hub__links span {
  color: #77716e;
  font-size: 12px;
}

.site-hub__links b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #a85c44;
  font: 30px/1 Georgia, serif;
}

body.site-dialog-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .site-modal,
  .site-hub {
    padding: 12px;
    align-items: end;
  }

  .site-modal__card,
  .site-hub__inner {
    padding: 27px 22px;
    border-radius: 24px;
  }

  .site-modal__title {
    font-size: 32px;
  }
}
