body.lively-site {
  --lively-header-height: 64px;
  --navigation-font-size: 15px;
}

body.lively-site .contact-us {
  padding: 80px 0;
  background-color: var(--lively-paper, #faf9f3);
}

body.lively-site .contact-us .contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: 56px;
}

body.lively-site .contact-us .contact-us_info {
  position: static;
  min-width: 0;
  width: auto;
  padding: 0;
  background: transparent;
  color: var(--lively-ink, #202b2b);
  text-align: left;
  overflow-wrap: anywhere;
}

body.lively-site .contact-us .contact-us_info h2 {
  margin: 0 0 28px;
  color: var(--lively-ink, #202b2b);
}

body.lively-site .contact-us .contact-us_info p {
  margin: 0;
  color: #53645d;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

body.lively-site .contact-us .contact-us_info .contact-company {
  margin-bottom: 12px;
  color: var(--lively-ink, #202b2b);
  font-size: 18px;
  font-weight: 700;
}

body.lively-site .contact-us .contact-us_info .contact-phone {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
}

body.lively-site .contact-us .contact-phone a {
  display: inline-block;
  color: var(--lively-ink, #202b2b);
  text-decoration: none;
}

body.lively-site .contact-us .contact-phone a:hover {
  color: var(--lively-accent, #ed4e1c);
}

body.lively-site .contact-us .send-mail-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  margin: 26px 0 0;
  padding: 14px 20px;
  border: 1px solid #cd4117;
  border-radius: 4px;
  background-color: #cd4117;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.lively-site .contact-us .send-mail-link:hover {
  border-color: #b73710;
  background-color: #b73710;
}

body.lively-site .contact-us a:focus-visible,
body.lively-site .contact-us button:focus-visible {
  outline: 2px solid var(--lively-ink, #202b2b);
  outline-offset: 4px;
}

body.lively-site .contact-us #map {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 460px;
  overflow: hidden;
  border: 1px solid #d9dfd4;
  border-radius: 4px;
  background-color: #e5ece3;
}

body.lively-site .page-footer {
  padding: 28px 0;
  border-top: 1px solid #d9dfd4;
  background-color: var(--lively-paper, #faf9f3);
}

body.lively-site .page-footer .footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.lively-site .page-footer .footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

body.lively-site .page-footer .page-footer_copyright {
  color: #53645d;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  text-transform: none;
}

body.lively-site .page-footer .page-footer_copyright-year {
  padding-right: 14px;
  border-color: #cdd6cc;
  font-weight: 600;
}

body.lively-site .page-footer .page-footer_copyright-text {
  padding-left: 14px;
}

body.lively-site .page-footer .footer-links {
  font-size: var(--navigation-font-size);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

body.lively-site .page-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #53645d;
  font-size: var(--navigation-font-size);
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
}

body.lively-site .page-footer .footer-links a:hover {
  color: var(--lively-accent, #ed4e1c);
}

body.lively-site .page-footer a:focus-visible {
  outline: 2px solid var(--lively-accent, #ed4e1c);
  outline-offset: 4px;
}

body.lively-site .modal-overlay {
  z-index: 20;
  background-color: rgba(13, 22, 24, 0.72);
}

body.lively-site .modal {
  z-index: 30;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9dfd4;
  border-radius: 4px;
  background-color: #fffefa;
  color: var(--lively-ink, #202b2b);
  font-size: 16px;
  line-height: 1.7;
}

body.lively-site .modal h2 {
  margin-bottom: 32px;
  color: var(--lively-ink, #202b2b);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: none;
}

body.lively-site .thanks-modal h2,
body.lively-site .modal .step-3 h2 {
  color: var(--lively-accent, #ed4e1c);
}

body.lively-site .modal .modal-form div {
  max-width: 100%;
}

body.lively-site .modal .modal-form label {
  font-size: 14px;
  font-weight: 600;
}

body.lively-site .modal .modal-form input,
body.lively-site .modal .modal-form textarea {
  max-width: 100%;
  color: var(--lively-ink, #202b2b);
  font-family: inherit;
}

body.lively-site .modal .btn {
  max-width: 100%;
  border-color: #cd4117;
  border-radius: 4px;
  background-color: #cd4117;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.lively-site .modal .btn:hover {
  border-color: #b73710;
  background-color: #b73710;
}

body.lively-site .modal .modal-content-close {
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 32px;
  height: 32px;
}

body.lively-site .modal .modal-content-close::before,
body.lively-site .modal .modal-content-close::after {
  top: 15px;
  left: 5px;
  width: 22px;
  background-color: var(--lively-ink, #202b2b);
}

body.lively-site .modal button:focus-visible,
body.lively-site .modal input:focus-visible,
body.lively-site .modal textarea:focus-visible {
  outline: 2px solid var(--lively-accent, #ed4e1c);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  body.lively-site .modal {
    top: 20px;
    right: 24px;
    left: 24px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin-left: 0;
    padding: 52px 32px 32px;
  }

  body.lively-site .modal .modal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  body.lively-site .modal .modal-form div {
    display: block;
    width: auto;
    max-width: none;
    margin: 0 0 24px;
  }

  body.lively-site .modal .modal-form div:nth-child(odd) {
    margin-right: 0;
  }

  body.lively-site .modal .modal-form input {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  body.lively-site .send-mail-modal .modal-form > p,
  body.lively-site .send-mail-modal .modal-form > textarea {
    grid-column: 1 / -1;
  }

  body.lively-site .modal .modal-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 120px;
  }

  body.lively-site .modal .modal-form button {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 24px 0 0;
  }
}

@media (max-width: 900px) {
  body.lively-site {
    --lively-header-height: 108px;
  }

  body.lively-site .page-footer .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 800px) {
  body.lively-site .contact-us {
    padding: 56px 0;
  }

  body.lively-site .contact-us .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body.lively-site .contact-us #map {
    height: 340px;
  }
}

@media (max-width: 620px) {
  body.lively-site {
    --navigation-font-size: 13px;
  }

  body.lively-site .contact-us {
    padding: 44px 0;
  }

  body.lively-site .page-footer .footer-copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.lively-site .page-footer .page-footer_copyright-year {
    padding-right: 0;
    border-right: 0;
  }

  body.lively-site .page-footer .page-footer_copyright-text {
    padding-left: 0;
  }

  body.lively-site .page-footer .footer-links {
    gap: 8px 20px;
  }

  body.lively-site .modal .modal-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body.lively-site .modal h2 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  body.lively-site .modal {
    right: 12px;
    left: 12px;
    padding: 52px 20px 28px;
  }
}

@media (max-height: 540px) {
  body.lively-site .modal {
    top: 12px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lively-site .modal {
    animation: none;
  }
}
