body {
  margin: 0;
}
.header,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  color: inherit;
  text-decoration: none;
}
.brand__logo {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand__line {
  width: 2px;
  height: 31px;
  background: var(--orange);
}
.brand__text {
  color: #283140;
  font-size: 12px;
  line-height: 1.25;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
}
.nav a {
  position: relative;
  color: #0d1726;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease-out);
}
.nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.header__contact {
  display: grid;
  gap: 2px;
  min-width: 150px;
  font-size: 12px;
}
.header__contact strong {
  font-size: 15px;
}
.header__contact span {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 121, 0, 0.22);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 16px 30px rgba(255, 121, 0, 0.28);
  transform: translateY(-1px);
}
.btn:active,
.contact-methods label:active,
.modal-telegram:active {
  transform: scale(0.98);
}
.btn:focus-visible,
.contact-methods label:focus-within,
.modal-telegram:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.28);
  outline-offset: 3px;
}
.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(10, 24, 40, 0.06);
}
.btn--ghost:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 18px 34px rgba(10, 24, 40, 0.1);
}
.modal-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #b9dcff;
  border-radius: 10px;
  background: #eef7ff;
  color: #1574d1;
  font-size: 13px;
  font-weight: 900;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(10, 24, 40, 0.08);
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.contact-methods > span {
  flex: 0 0 100%;
  color: #4b5668;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.contact-methods label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #344154;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.contact-methods label:has(input:checked) {
  border-color: #2b76ff;
  background: #eef4ff;
  color: #1356d8;
}
.contact-methods input {
  width: auto;
  min-height: 0;
  padding: 0;
}
.form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.form input:not([type="radio"]):not([type="checkbox"]),
.form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.form .btn,
.form small {
  grid-column: 1 / -1;
}
.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.form-message:empty {
  display: none;
}
.form-message[data-type="success"] {
  color: #15803d;
}
.form small {
  color: #657184;
  text-align: center;
}
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.75fr) minmax(220px, 1fr) minmax(210px, 0.9fr);
  gap: 28px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: #4b5668;
}
.footer .brand {
  width: max-content;
  min-width: 0;
  margin-bottom: 14px;
}
.footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
}
.footer p {
  max-width: 420px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}
.footer a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.legal-site-header {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
}
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.62);
  backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: fit-content;
  max-height: min(94vh, 800px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(7, 17, 31, 0.34);
}
.modal__dialog::-webkit-scrollbar {
  display: none;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #4b5668;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.modal h2 {
  margin: 0 40px 8px 0;
  font-size: 28px;
  line-height: 1.08;
}
.modal p {
  margin: 0 0 12px;
  color: #4b5668;
  font-size: 14px;
}
.modal-form {
  display: grid;
  gap: 10px;
}
.modal .contact-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.modal .contact-methods > span {
  grid-column: 1 / -1;
}
.modal .contact-methods label {
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 6px;
  font-size: 12px;
}
.modal-form input:not([type="radio"]):not([type="checkbox"]),
.modal-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  color: #344154;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.custom-select {
  position: relative;
  z-index: 3;
}
.custom-select.is-open {
  z-index: 50;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fafb;
  color: #344154;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.custom-select__trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms var(--ease-out);
}
.custom-select.is-open .custom-select__trigger {
  border-color: rgba(255, 121, 0, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.1);
}
.custom-select.is-open .custom-select__trigger::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.custom-select__list {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  max-height: 0;
  overflow: hidden;
  padding: 0 6px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), max-height 160ms var(--ease-out);
}
.custom-select.is-open .custom-select__list {
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.custom-select__list button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344154;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.custom-select__list button:hover,
.custom-select__list button[aria-selected="true"] {
  background: #eef4ff;
  color: #1356d8;
}
.modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #536176;
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
}
.modal-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.modal-check a {
  color: #1356d8;
  font-weight: 600;
}
.modal-form .btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}
.modal-form__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding-top: 10px;
  margin-top: -2px;
  background: #fff;
}
.modal-form__footer .btn {
  margin-top: 0;
}
.modal-telegram {
  width: 100%;
  margin-top: 12px;
}
body.modal-open {
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--orange);
  }
  .nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
.modal-telegram:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 12px 24px rgba(10, 24, 40, 0.08);
  }
  .contact-methods label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }
  .modal__close:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: rotate(4deg);
  }
}
@media (max-width: 1080px) {
  .header {
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
@media (max-width: 720px) {
.header {
    width: min(100% - 28px, 1180px);
  }
  .header {
    gap: 14px;
    padding: 18px 0 14px;
  }
  .brand {
    min-width: 0;
  }
  .brand__logo {
    font-size: 32px;
  }
  .header__contact {
    display: none;
  }
.nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }
.btn {
    width: 100%;
  }
.form {
    grid-template-columns: 1fr;
  }
  .modal {
    align-items: end;
    padding: 10px;
  }
  .modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 22px;
    border-radius: 20px;
  }
  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .modal .contact-methods label {
    min-height: 40px;
    padding: 0 4px;
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  .brand__text,
  .nav {
    font-size: 11px;
  }
.form,
.modal__dialog {
    padding: 18px;
  }
  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .modal .contact-methods input {
    display: none;
  }
}
.header {
  width: min(1220px, calc(100% - 56px));
}
.header {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 225, 234, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(8, 17, 31, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}
.brand__logo {
  font-size: 34px;
}
.brand__line {
  height: 28px;
}
.nav {
  gap: clamp(14px, 2vw, 26px);
}
.nav a {
  color: rgba(248, 250, 252, 0.82);
}
.header__contact {
  min-width: 154px;
}
.btn {
  min-height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff8a1f 0%, var(--orange) 100%);
  box-shadow:
    0 14px 30px rgba(255, 122, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.btn--small {
  min-height: 44px;
  border-radius: 12px;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(8, 17, 31, 0.07);
}
.form {
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 74px rgba(8, 17, 31, 0.12);
}
.form input:not([type="radio"]):not([type="checkbox"]),
.form select,
.modal-form input:not([type="radio"]):not([type="checkbox"]),
.modal-form select {
  min-height: 56px;
  border-radius: 14px;
  background: #fbfcfd;
}
.contact-methods label {
  min-height: 40px;
  border-radius: 12px;
}
.modal__dialog {
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(8, 17, 31, 0.34);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 1080px) {
  .header {
    border-radius: 24px;
  }
}
@media (max-width: 720px) {
.header {
    width: min(100% - 28px, 1220px);
  }
  .header {
    margin-top: 8px;
    padding: 14px;
    border-radius: 22px;
  }
  .header .btn--small {
    order: 2;
  }
  .nav {
    order: 3;
  }
  .form {
    padding: 20px;
    border-radius: 22px;
  }
  .modal__dialog {
    border-radius: 26px;
  }
}
.header {
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(28px, calc((100vw - 1220px) / 2 + 28px));
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: linear-gradient(180deg, #08111f 0%, #0c1728 100%);
  color: #f8fafc;
  box-shadow: 0 8px 30px rgba(3, 8, 16, 0.35);
}
.header .brand__text {
  color: rgba(248, 250, 252, 0.82);
}
.header .header__contact span {
  color: rgba(248, 250, 252, 0.6);
}
.header strong {
  color: inherit;
}
@media (max-width: 1080px) {
  .header {
    border-radius: 0;
  }
}
@media (max-width: 720px) {
  .header {
    width: 100%;
    padding: 14px;
    border-radius: 0;
  }
}
.modal-telegram {
  gap: 8px;
  border-color: #1d9bd8;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 14px 28px rgba(34, 158, 217, 0.18);
}
.modal-telegram::before {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.8 4.4 18.6 20c-.2 1-1.1 1.2-1.9.7l-5.2-3.8-2.5 2.4c-.3.3-.5.5-1.1.5l.4-5.3 9.7-8.8c.4-.4-.1-.6-.7-.2L5.2 13.1.1 11.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.1c.9-.3 1.7.2 1.3 2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.8 4.4 18.6 20c-.2 1-1.1 1.2-1.9.7l-5.2-3.8-2.5 2.4c-.3.3-.5.5-1.1.5l.4-5.3 9.7-8.8c.4-.4-.1-.6-.7-.2L5.2 13.1.1 11.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.1c.9-.3 1.7.2 1.3 2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
.modal-telegram:hover {
    border-color: #168ac1;
    background: #168ac1;
    color: #fff;
    box-shadow: 0 18px 34px rgba(34, 158, 217, 0.24);
  }
}
@media (max-width: 720px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 14px 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand__logo {
    font-size: 28px;
  }
  .brand__line {
    height: 24px;
  }
  .brand__text {
    font-size: 10px;
  }
  .header .btn--small {
    order: 0;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 10px;
    box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
  }
  .nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
    font-size: 11px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 720px) {
  .modal {
    align-items: center;
    padding: 8px;
  }
  .modal__dialog {
    max-height: calc(100dvh - 16px);
    padding: 18px;
    border-radius: 22px;
  }
  .modal h2 {
    margin-right: 44px;
    font-size: 25px;
  }
  .modal p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.42;
  }
  .modal-form {
    gap: 8px;
  }
  .modal .contact-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .modal .contact-methods label {
    min-height: 38px;
    padding: 0 4px;
    font-size: 11px;
  }
  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 44px;
    border-radius: 12px;
  }
  .modal-check {
    font-size: 11.5px;
    line-height: 1.4;
  }
  .modal-form .btn {
    min-height: 48px;
    margin-top: 0;
  }
  .modal-telegram {
    margin-top: 8px;
    min-height: 40px;
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  .modal__dialog {
    padding: 14px;
  }
  .modal h2 {
    font-size: 24px;
  }
  .modal .contact-methods label {
    min-height: 36px;
    font-size: 10px;
  }
  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 42px;
  }
  .custom-select.is-open .custom-select__list {
    max-height: 176px;
  }
}
@media (max-width: 720px) and (max-height: 760px) {
  .modal {
    padding: 6px;
  }
  .modal__dialog {
    max-height: calc(100dvh - 12px);
    padding: 10px;
  }
  .modal h2 {
    margin-bottom: 4px;
    font-size: 20px;
  }
  .modal p {
    display: none;
  }
  .modal-form {
    gap: 5px;
  }
  .modal .contact-methods {
    gap: 5px;
  }
  .modal .contact-methods label {
    min-height: 32px;
    font-size: 9px;
  }
  .modal-form input:not([type="radio"]):not([type="checkbox"]),
  .modal-form select,
  .custom-select__trigger {
    min-height: 38px;
  }
  .custom-select__list button {
    min-height: 34px;
    font-size: 12px;
  }
  .modal-check {
    font-size: 11px;
  }
  .modal-check input {
    width: 16px;
    height: 16px;
  }
  .modal-form .btn {
    min-height: 44px;
  }
  .modal-telegram {
    min-height: 36px;
  }
}
.header .btn--small {
  max-width: 260px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .header .btn--small {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: 160px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0;
  }
  .header .btn--small::before {
    content: "Обсудить проект";
    font-size: 11px;
  }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .header {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px 18px;
    align-items: center;
    padding: 14px 28px;
  }
  .brand {
    min-width: 0;
  }
  .header__contact {
    justify-self: center;
    min-width: 150px;
  }
  .header .btn--small {
    justify-self: end;
    max-width: none;
    padding: 0 20px;
    font-size: 13px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 22px;
    width: 100%;
    padding-top: 6px;
    overflow: visible;
    font-size: 13px;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 14px;
    border-radius: 20px;
  }
  .form .contact-methods,
  .form .btn,
  .form small {
    grid-column: 1 / -1;
  }
  .form .contact-methods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .form .contact-methods > span {
    grid-column: 1 / -1;
  }
  .form .contact-methods label {
    justify-content: center;
    min-height: 34px;
    padding: 0 4px;
    font-size: 10px;
  }
  .form input:not([type="radio"]):not([type="checkbox"]),
  .form select {
    min-height: 44px;
    border-radius: 12px;
  }
  .form .btn {
    min-height: 48px;
    margin-top: 2px;
    font-size: 14px;
  }
  .form small {
    font-size: 11px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 32px);
    padding: 28px 0 34px;
  }
  .legal-site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 0;
    padding: 10px 14px;
  }
  .legal-site-header .brand__logo {
    font-size: 28px;
  }
  .legal-site-header .brand__text,
  .legal-site-header .brand__line,
  .legal-site-header .header__contact {
    display: none;
  }
  .legal-site-header .btn {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0;
  }
  .legal-site-header .btn::before {
    content: "Обсудить проект";
    font-size: 11px;
  }
  .legal-site-header .nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 7px 0 1px;
    overflow-x: auto;
  }
}
@media (max-width: 370px) {
  .form .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
