@font-face {
  font-family: "Museo Sans";
  src: url("../fonts/MuseoSansCyrl-500.eot");
  src:
    local("MuseoSansCyrl-500"),
    url("../fonts/MuseoSansCyrl-500.eot?#iefix") format("embedded-opentype"),
    url("../fonts/MuseoSansCyrl-500.woff") format("woff"),
    url("../fonts/MuseoSansCyrl-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Museo Sans";
  src: url("../fonts/MuseoSansCyrl-700.eot");
  src:
    local("MuseoSansCyrl-700"),
    url("../fonts/MuseoSansCyrl-700.eot?#iefix") format("embedded-opentype"),
    url("../fonts/MuseoSansCyrl-700.woff") format("woff"),
    url("../fonts/MuseoSansCyrl-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Museo Sans";
  src: url("../fonts/MuseoSansCyrl-300.eot");
  src:
    local("MuseoSansCyrl-300"),
    url("../fonts/MuseoSansCyrl-300.eot?#iefix") format("embedded-opentype"),
    url("../fonts/MuseoSansCyrl-300.woff") format("woff"),
    url("../fonts/MuseoSansCyrl-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Museo Sans", sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #34404c;
}

html.lock {
  overflow: hidden;
}

html.lock body {
  overflow: hidden;
  position: fixed;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  min-height: 100dvh;
}

body.hide-overflow {
  position: fixed;
  width: 100%;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

textarea,
input,
select,
button,
label {
  font: inherit;
  user-select: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

button[disabled] {
  cursor: initial;
}

input,
button,
textarea,
select,
textarea:focus,
textarea:active,
input:active,
input:focus,
button:active,
button:focus,
select:active,
select:focus {
  outline: 0;
}

a {
  color: #34404c;
}

/*  */

.map-button,
.submit-apply {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border: none;
  -webkit-transition:
    color 0.2s linear,
    background-color 0.2s linear,
    opacity 0.2s linear;
  transition:
    color 0.2s linear,
    background-color 0.2s linear,
    opacity 0.2s linear;
  font-size: max(1.2vmax, 1.7rem);
  height: 36px;
  padding: 0 1.5rem;
  user-select: none;
}

.map-button.disabled,
.map-button[disabled],
.submit-apply.disabled,
.submit-apply[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.map-button {
  color: #ffffff;
  background-color: #18a763;
}

.submit-apply {
  color: #ffffff;
  width: 250px;
  margin: 0 auto;
  background-color: #48c5df;
}

.map-button:not(.disabled):not([disabled]):hover {
  background-color: #11854e;
}

.submit-apply:not(.disabled):not([disabled]):hover {
  background-color: #47b4cb;
}

input:not([type="checkbox"]):not([type="radio"]):not(ymaps input),
.object-description {
  padding: 12px;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.4rem;
  color: #34404c;
  border: 1px solid rgba(52, 64, 76, 0.6);
  color: #34404c;
  border-radius: 4px;
}

input:not([type="checkbox"]):not([type="radio"]):not(ymaps input) {
  height: 42px;
}

input:not([type="checkbox"]):not(ymaps input)::placeholder {
  color: rgba(52, 64, 76, 0.5);
}

.object-description {
  min-height: 95px;
  resize: none;
}

.object-description::placeholder {
  color: rgba(52, 64, 76, 0.5);
}

input:not([type="checkbox"]):not([type="radio"])[disabled],
.object-description[disabled] {
  opacity: 0.4;
}

/* custom-checkbox */

.custom-checkbox {
  display: flex;
  font-size: 1.4rem;
  gap: 8px;
  align-items: center;
}

.custom-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 2.3rem;
  min-width: 2.3rem;
  height: 2.2rem;
  border: 0.2rem solid currentColor;
  border-radius: 0.7rem;
  transform: translateY(-0.15rem);
  display: grid;
  place-content: center;
}

.custom-checkbox input[type="checkbox"]::before {
  content: "";
  width: 1.3rem;
  height: 1.3rem;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1rem 1rem #11854e;
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

.custom-checkbox input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.custom-checkbox .input-title::before {
    display: none;
}

.custom-checkbox .input-title {
    padding-left: 0.5rem;
}

/* --- */

.proposals {
  padding: 20px 20px 40px;
  max-width: 720px;
}

.proposals-heading {
  font-size: 4rem;
  line-height: 5rem;
  margin-top: 20px;
  margin-bottom: 48px;
}

.proposals-subheading {
  max-width: 730px;
  font-size: 1.9rem;
  line-height: 3rem;
  margin-top: 20px;
  margin-bottom: 48px;
}

.proposals_form {
  position: relative;
  margin-bottom: 0;

  display: flex;
  flex-direction: column;
  gap: 30px;

  max-width: 720px;
}

.proposals_form__block {
  position: relative;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proposals_form .row {
  margin-bottom: 0;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.row .proposals_form__block {
  flex: 1;
  margin-bottom: 0;
}

.proposals_form .form-block-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1.7rem;
  line-height: 2.4rem;
  font-weight: 600;
}

/* tooltips */

.proposals_form .form-info-button {
  border: 0;
  display: flex;
  align-items: center;
  background: transparent;
  border-color: transparent;
  cursor: pointer;
}

.proposals_form .form-info-icon {
  height: 14px;
  filter: opacity(0.8);
}

.proposals_form .form-info-tooltip {
  display: none;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px;
  border-radius: 4px;
  background: rgb(139, 223, 184);
}

.proposals_form .form-info-text {
  font-size: 1.4rem;
  font-weight: bold;
}

/* --- */

.fw-600 {
  font-weight: 600;
}

.project-map-inputs {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.project-select {
  flex: 1;
}

.map-button {
  height: 42px;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.proposals_form .form-select {
  padding: 0 12px;
  height: 42px;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.4rem;
  color: #34404c;
  border: 1px solid rgba(52, 64, 76, 0.6);
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2334404c" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
}

.proposals_form .form-select:focus {
  outline: none;
  border-color: #18a763;
}

.proposals_form .form-select option {
  padding: 8px 12px;
  font-size: 1.6rem;
  font-weight: 500;
  color: #34404c;
  background-color: #fff;
}

.proposals_form .form-select:disabled {
  opacity: 0.4;
  cursor: default;
}

.proposals_form__error {
  visibility: hidden;
  color: #d82335;
  font-weight: 600;
  font-size: 1.1rem;
  margin-left: auto;
}

.proposals_form__block:has(textarea:user-invalid) .proposals_form__error,
.proposals_form__block:has(input:user-invalid) .proposals_form__error,
.proposals_form__block:has(select:user-invalid) .proposals_form__error,
.proposals_form__block:has(image-uploader:invalid) .proposals_form__error,
.proposals_form__block:has(phone-input:invalid) .proposals_form__error {
  visibility: visible;
}

.proposals_form__block:has([required]) .form-block-title::after {
  content: "*";
  color: #18a763;
}

.proposals_form__block:has(textarea:user-invalid) .form-block-title::after,
.proposals_form__block:has(input:user-invalid) .form-block-title::after,
.proposals_form__block:has(select:user-invalid) .form-block-title::after,
.proposals_form__block:has(image-uploader:invalid) .form-block-title::after,
.proposals_form__block:has(phone-input:invalid) .proposals_form__error {
  color: #d82335;
}

/* alert */

.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background-color: #dc3545;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
  min-width: 300px;
}

.custom-alert.success {
  background-color: #18a763;
  box-shadow: 0 4px 12px rgba(24, 167, 99, 0.3);
}

.custom-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

.alert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 500;
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.alert-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* issues-counter {
  margin-left: auto;
} */

.relative {
  position: relative;
}

.proposals_form:has(:invalid:required) button[type="submit"],
.proposals_form:has(image-uploader:invalid) button[type="submit"] {
  opacity: 0.4;
  user-select: none;
}

.map-popup,
.table-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-popup.show,
.table-popup.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.map-popup.show {
  z-index: 10000;
}

.table-popup.show {
  z-index: 10010;
}

.map-popup-overlay,
::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.map-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-popup-content,
.table-popup-content {
  background-color: #ffffff;
  border-radius: 12px;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  width: 1000px;
  height: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.map-popup-content {
  z-index: 2;
  position: absolute;
  overscroll-behavior: contain;
}

.map-popup-header,
.table-popup-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.table-popup-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #34404c;
}

.map-popup-apply,
.map-popup-close,
.table-popup-close {
  border: none;
  font-size: max(1.2vmax, 1.6rem);
  text-align: center;
  color: white;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  transition:
    color 0.2s linear,
    background-color 0.2s linear,
    opacity 0.2s linear;
  cursor: pointer;
}

.map-popup-apply {
  background-color: #18a763;
  margin-left: auto;
}

.map-popup-close,
.table-popup-close {
  background: #444;
  padding: 0;
}

.map-popup-apply.disabled,
.map-popup-apply[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.map-popup-close:hover,
.table-popup-close:hover,
.map-popup-close:active,
.table-popup-close:active {
  background-color: #333;
}

.map-popup-body,
.table-popup-table-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
}

.table-popup-table {
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.table-popup-table-header-cell,
.table-popup-table-body-cell {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgb(193, 193, 193);
}

.table-popup-table-body-cell:nth-of-type(1) {
  /* padding: 0.5rem; */
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
  width: auto;
}

.table-popup-table-body-cell:nth-of-type(2),
.table-popup-table-body-cell:nth-of-type(3) {
  width: 160px;
}

.yandex-map {
  flex: 1;
  min-height: 400px;
  border: none;
}

.map-selection-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-popup .row {
  margin-bottom: 0;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.selected-city {
  font-size: 1.7rem;
  color: #34404c;
  font-weight: 600;
}

.selected-project {
  font-size: 1.2rem;
  color: #34404c;
  /* font-weight: 600; */
}

.ymaps-2-1-79-gototech,
.ymaps-2-1-79-gotoymaps {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .map-popup-content,
  .table-popup-content {
    max-width: 100dvw;
    max-height: 100dvh;
    width: 100dvw;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
  }

  .map-popup-header,
  .table-popup-header {
    padding: 15px 15px;
    min-height: 100px;
  }

  .map-popup-apply,
  .table-popup-close,
  .map-popup-close {
    font-size: 1.8rem;
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 2px;
  }

  .selected-city {
    font-size: 1.6rem;
  }

  .selected-project {
    font-size: 1.2rem;
  }

  .yandex-map {
    min-height: 300px;
  }

  .table-popup-table-body-cell {
    display: flex;
    padding: 0.75rem !important;
    align-items: flex-start;
    text-align: left;
    border: 0;
    width: 100% !important;
  }

  .table-popup-table-body-cell::before {
    content: attr(label);
    font-weight: bold;
    width: 100px !important;
    min-width: 100px !important;
    text-align: left;
  }

  .table-popup-table-body-cell:first-of-type {
    padding-top: 24px !important;
  }

  .table-popup-table-body-cell:last-of-type {
    padding-bottom: 24px !important;
    border-bottom: 2px solid rgb(193, 193, 193);
  }

  .table-popup-table-body-row:last-of-type > .table-popup-table-body-cell:last-of-type {
    border-bottom: 0;
  }

  .table-popup-table-header {
    display: none;
  }
}

@media screen and (max-width: 460px) {
  .map-popup-header,
  .table-popup-header {
    padding: 12px 15px;
  }

  .table-popup-header h3 {
    font-size: 1.4rem;
  }

  .selected-city {
    font-size: 1.7rem;
  }

  .selected-project {
    font-size: 1.4rem;
  }

  .yandex-map {
    min-height: 250px;
  }
}

@media screen and (max-width: 768px) {
  .proposals {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .proposals_form {
    margin: 0 auto;
    padding: 0;
    gap: 30px;
  }

  .proposals_form .form-block-title {
    font-size: 1.6rem;
    line-height: 2rem;
  }

  .proposals_form .form-select {
    font-size: 1.5rem;
  }

  .proposals_form .form-select option {
    font-size: 1.5rem;
  }

  .proposals-heading {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3.4rem;
    line-height: 4.4rem;
  }

  .proposals-subheading {
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 2.4rem;
  }

  .proposals_form .row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .proposals_form .project-map-inputs {
    gap: 15px;
  }

  .project-select {
    width: 100%;
  }

  .custom-alert {
    top: 30px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }

  .custom-alert.show {
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .proposals {
    padding: 20px 0;
  }

  .proposals-heading {
    margin-bottom: 20px;
  }

  .proposals_form {
    padding: 0;
  }
}

@media screen and (max-width: 575px) {
  .proposals {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    width: 100%;
  }

  .proposals_form {
    gap: 20px;
  }

  .row .proposals_form__block {
    width: 100%;
  }

  .proposals_form > .row {
    flex-direction: column;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 20px;
  }

  .proposals-heading {
    font-size: 3rem;
    line-height: 4rem;
  }

  .form-block-title {
    font-size: 1.6rem;
    line-height: 2.2rem;
  }
}

@media screen and (max-width: 460px) {
  :root {
    font-size: 9px;
  }

  .proposals_form .map-button,
  .proposals_form .submit-apply {
    font-size: 1.4rem;
    padding: 12px 20px;
    max-width: 100%;
  }

  .proposals_form .project-map-inputs {
    flex-direction: column;
    gap: 15px;
  }

  .proposals_form .submit-apply,
  .proposals_form .map-button {
    width: 100%;
    max-width: 100%;
  }
}