/* styles.css - адаптивная верстка, приближенная к макету */
:root {
  --primary: #3e89d0;
  --primary-dark: #4388cc;
  --accent: #fe8915;
  --accent-light: #e5c348;
  --danger: #ff5959;
  --danger-dark: #a72323;
  --dark: #213745;
  --light: #5e5e5e;
  --disabled-light: #c0c0c0;
  --disabled-dark: #6f6f6f;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--dark);
  margin: 1rem 2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--primary-dark);
  padding: 0;
}

header,
main,
footer {
  background-color: #fff;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--primary);
}

p {
  font-size: 1.5rem;
  color: var(--light);
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--disabled-light);
  background-color: #fff;
  cursor: pointer;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"] {
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin: 0;
}

input[type="checkbox"]:checked {

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

input[type="radio"] {
  border-radius: 50%;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inline-image {
  max-width: 40rem;
}

.logo img {
  width: 295px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contacts {
  display: flex;
  align-items: center;
}

.contacts-column {
  margin: 1rem;
}

.contacts-column>div {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  gap: 0.5rem;
  white-space: nowrap;
  margin: 0.5rem 0;
}

.contacts-icon {
  width: 1rem;
}

.button-accent {
  border: 0;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  background-color: var(--accent);
  color: #fff;
}

#contact-button {
  padding: 0.5rem 0.75rem;
}

/* Description */
.description {
  gap: 1.5rem;
  padding: 2rem;
}

.description-wrap {
  display: flex;
  flex-direction: row;
}

.description-right {
  display: flex;
  flex-direction: column;
}

.description-right>p {
  text-indent: 1rem;
}

.modes {
  list-style: disc;
  line-height: 2rem;
}

.description-right>a {
  text-indent: 1rem;
  font-weight: bold;
}

.link-accent {
  color: var(--accent);
}

.section-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--dark);
  margin-bottom: 1rem;
}

.title-image {
  width: 7.5rem;
}

.try {
  margin: 0 2rem;
  font-size: 1.5rem;
  color: var(--light);
}

.try ol {
  padding-left: 1.5rem;
}

#try-image {
  margin-left: 0;
  width: 6rem;
}

.try-steps>li {
  line-height: 2rem;
}

/* Formats */
.formats>h4 {
  margin: 0.5rem 0 0.5rem -2rem;
}

.dropdown-link-icon {
  width: 2rem;
  vertical-align: middle;
  cursor: pointer;
}

#formats-block {
  line-height: 2rem;
  margin: 1rem 0 1rem -1.5rem;
  font-size: 1rem;
  border: 1px solid var(--disabled-dark);
}

.formats-list {
  counter-reset: main-counter;
  list-style-type: none;
  padding: 1rem 0.5rem 0 0.5rem;
}

.formats-list>li {
  counter-increment: main-counter;
}

.formats-list>li::before {
  content: counter(main-counter) ". ";
  font-weight: bold;
}

.format-recommendations {
  margin-left: 2.5rem;
}

.format-recommendations,
.multilevel-list {
  font-size: 1rem;
}

.checkbox-icon {
  width: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.multilevel-list {
  counter-reset: main-counter;
  list-style-type: none;
}

.multilevel-list>li {
  counter-increment: main-counter;
  margin-left: 0;
}

.multilevel-list>li::before {
  content: counter(main-counter) ". ";
  font-weight: bold;
}

.multilevel-list>li>ol {
  counter-reset: sub-counter;
  list-style-type: none;
  padding-left: 0;
}

.multilevel-list>li>ol>li {
  counter-increment: sub-counter;
}

.multilevel-list>li>ol>li::before {
  content: counter(main-counter) "." counter(sub-counter) " ";
  font-weight: bold;
}

.example {
  font-size: 1rem;
}

/* Uploader */
.section-block {
  margin: 1rem 2rem;
}

#spinner {
  width: 100%;
  height: 48px;
  padding: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite
}

.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid var(--primary-dark);
  animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg)
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
  }

  20% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
  }

  40% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
  }

  60% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
  }

  80% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
  }

  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
  }
}

.dropzone {
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#geocode-dropzone {
  border: 0.2rem dashed var(--primary);
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#attach-dropzone {
  border: 0.2rem dashed white;
}

#attach-dropzone p {
  color: white;
}

.dropzone.dragover {
  background: var(--disabled-light);
}

.drop-inner {
  text-align: center;
}

.upload-icon {
  width: 3rem;
}

.inline-icon {
  width: 1.5rem;
  vertical-align: bottom;
}

.disabled {
  opacity: 0.5;
}

.status-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  position: relative;
}

.status-upload {
  display: flex;
  align-items: center;
  /* max-width: 40rem; */
}

.status-controls {
  margin: 0.5rem auto;
}

#geocode-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#captcha-container-geocode {
  margin-bottom: 1rem;
}

#clear-results {
  cursor: pointer;
  margin-right: 0.5rem;
}

.file-names {
  max-width: 40rem;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#error-icon {
  margin-right: 0.5rem;
}

#status-error {
  color: var(--danger);
  margin-bottom: 0.5rem;
  align-items: center;
}

#status-success {
  margin-left: 0.5rem;
}

#download-geojson-wrap {
  margin: 1rem;
}

#uploaded-file {
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  border: 1px solid var(--disabled-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 0.2rem;
}

/* Map */
.map {
  height: 420px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  overflow: hidden;
}

#map-container {
  position: relative;
}

#custom-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.2rem;
  background-color: #fff;
}

.goto-feedback {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Form */
.form {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 2rem;
}

.form h3 {
  margin: 0 0 1rem 0;
}

#form {
  width: 100%;
}

.column-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.row-wrap {
  max-width: 60rem;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0.5rem 0;
  max-width: 40rem;
}

.row-first {
  max-width: 50rem;
}

.form-type-wrap {
  justify-content: flex-start;
  width: 100%;
}

.form-type-label {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.radios {
  margin-bottom: 1rem;
}

.radios,
.checks {
  justify-content: flex-start;
}

.form-control-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.form-control-inline {
  display: flex;
  flex-flow: row nowrap;
  position: relative;
  box-sizing: border-box;
}

.asterix {
  position: absolute;
  right: -0.5rem;
}

.asterix-0 {
  right: 0;
}


.form-error {
  color: var(--accent-light);
  margin: 0.5rem;
}

.radios,
.checks {
  justify-content: flex-start;
}

.input-inline {
  justify-content: space-between;
}

.row input[type=text],
.row input[type=tel],
.row input[type=email] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 0;
  width: 100%;
}

#name {
  margin-right: 0.5rem;
}

#phone {
  margin: 0 0.5rem;
}

#email {
  margin-left: 0.5rem;
}

.radios label,
.checks label {
  margin-right: 1rem;
}

#message {
  border: 0;
  border-radius: 0.5rem;
  width: 100%;
}

#attach-files-list {
  justify-content: flex-start;
  align-items: center;
}

#clear-attach {
  cursor: pointer;
}

#attach-file-names {
  margin-left: 0.5rem;
}

#agreement-block {
  margin: 1rem 0;
  max-width: 40rem;
  line-height: 1.5rem;
}

#agreement-link {
  color: white;
}

#submit-message {
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

#submit-error a {
  color: var(--accent-light);
}

.submit {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);

  color: var(--disabled-light);
}

.copyright {
  text-align: right;
  margin-right: 2rem;
}

.copyright a {
  color: var(--disabled-light);
}

#tooltip {
  position: absolute;
  background-color: #fff;
  border: 1px solid var(--disabled-light);
  color: var(--light);
  padding: 0.5rem;
  border-radius: 0.25rem;
  visibility: hidden;
  pointer-events: none;
}

/* Cookie notification */
#cookie_notification {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  background-color: #fff;
  color: var(--dark);
  padding: 10px 20px;
  z-index: 9999;
  border-radius: 3px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie_notification_hidden_yes {
  display: none !important;
}

.cookie_notification_title {
  margin: 0;
  font-size: 1rem;
}

.cookie_notification_title a {
  color: var(--dark);
  text-decoration: underline !important;
}

.cookie_notification_buttons button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
}

.cookie_notification_buttons button:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width:900px) {
  .description {
    flex-direction: column;
    padding: 18px;
  }

  .description-right {
    width: 100%;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .map {
    height: 320px;
  }
}

@media (max-width: 568px) {
  html {
    font-size: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .title-image {
    width: 5rem !important;
  }

  .inline-image {
    max-width: 30rem;
    height: auto;
  }

  .logo,
  .description-title,
  .status-wrap {
    flex-direction: column;
    text-align: center;
  }

  .file-names {
    max-width: 20rem;
  }
}

@media (max-width: 1024px) {

  .contacts,
  .description-wrap {
    flex-direction: column;
    align-items: center;
  }

  .row {
    flex-wrap: wrap;
    flex-grow: 1;
    max-width: 1000%;
  }

  #name,
  #phone,
  #email {
    margin: 0;
  }
}

@media (max-width: 1465px) {
  .site-header {
    flex-direction: column;
    align-items: center;
  }

  .status-controls {
    margin: 0.5rem auto;
  }

  .logo,
  .status-wrap,
  .status-upload,
  .column-wrap {
    flex-direction: column;
    align-items: center;
  }

  #status-success {
    margin-top: 1rem;
  }

  .access-form {
    align-items: center;
  }

  .logo2 {
    display: none;
  }
}