.service-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #ffffff;
  border-bottom: 4px solid transparent;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.service-nav a[aria-current="page"],
.service-nav a:hover {
  border-color: #ffdd00;
}

.header-export {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #ffffff;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 0;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.header-export:hover {
  background: #2b2c2c;
}

.header-export svg {
  width: 1.08em;
  height: 1.08em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.legipro-user-menu {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: #ffffff;
}

.legipro-user-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.legipro-user-menu__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.legipro-user-menu__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.legipro-user-menu summary::-webkit-details-marker {
  display: none;
}

.legipro-user-menu summary::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid #ffffff;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.legipro-user-menu[open] summary,
.legipro-user-menu summary:hover {
  color: #0b0c0c;
  background: #ffdd00;
  border-color: #ffdd00;
}

.legipro-user-menu[open] summary::after,
.legipro-user-menu summary:hover::after {
  border-top-color: #0b0c0c;
}

.legipro-user-menu__label {
  display: grid;
  gap: 2px;
}

.legipro-user-menu__label small {
  color: inherit;
  font-size: 12px;
  font-weight: 400;
}

.legipro-user-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  color: #0b0c0c;
  background: #ffffff;
  border: 3px solid #0b0c0c;
  box-shadow: 0 4px 0 #b1b4b6;
}

.legipro-user-menu__meta {
  margin: 0 0 10px;
  color: #505a5f;
  font-size: 16px;
}

.legipro-user-menu__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legipro-user-menu__list a,
.legipro-user-menu__list button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: #1d70b8;
  background: transparent;
  border: 0;
  border-top: 1px solid #b1b4b6;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.legipro-user-menu__list a::after {
  content: "›";
  color: #0b0c0c;
  font-size: 20px;
  line-height: 1;
}

.legipro-user-menu__list button {
  color: #505a5f;
  cursor: default;
}

.export-modal {
  width: min(calc(100% - 32px), 860px);
  max-height: min(88vh, 860px);
  padding: 0;
  overflow: auto;
  color: #0b0c0c;
  background: #ffffff;
  border: 3px solid #0b0c0c;
  border-radius: 0;
}

.export-modal::backdrop {
  background: rgba(11, 12, 12, 0.72);
}

.export-modal__header {
  padding: 20px 24px 16px;
  border-top: 7px solid #0b0c0c;
  border-bottom: 1px solid #b1b4b6;
}

.export-modal__header h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1111111111;
}

.export-modal__header p,
.export-modal__hint,
.export-status {
  color: #505a5f;
  font-size: 16px;
}

.export-modal__header p {
  margin: 8px 0 0;
}

.export-modal__body {
  padding: 20px 24px 24px;
}

.export-modal__section + .export-modal__section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #b1b4b6;
}

.export-modal__section h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.export-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.export-checkbox {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
}

.export-checkbox input {
  width: 36px;
  height: 36px;
  margin: 0;
  accent-color: #0b0c0c;
}

.export-checkbox label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.export-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 170px));
  gap: 12px;
  margin-top: 14px;
}

.export-range label {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.export-range input {
  min-height: 42px;
  padding: 8px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  font: inherit;
}

.export-format-list {
  display: grid;
  gap: 10px;
}

.export-format {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px;
  color: #0b0c0c;
  background: #ffffff;
  border: 1px solid #b1b4b6;
  border-radius: 0;
  text-align: left;
}

.export-format:hover {
  background: #f3f2f1;
}

.export-format__icon {
  display: inline-flex;
  width: 44px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b0c0c;
  font-size: 13px;
  font-weight: 700;
}

.export-format strong {
  display: block;
  margin-bottom: 3px;
  font-size: 19px;
}

.export-format span {
  display: block;
  color: #505a5f;
  font-size: 16px;
  line-height: 1.25;
}

.export-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.export-cancel {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 7px;
  color: #0b0c0c;
  background: #f3f2f1;
  border: 2px solid transparent;
  border-radius: 0;
  box-shadow: 0 2px 0 #929191;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  .service-header__inner {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .service-nav {
    flex-wrap: wrap;
  }

  .service-nav__api-item,
  .header-export {
    display: none;
  }

  .service-header__inner .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .service-header__inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .legipro-user-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .service-nav__api-item {
    display: none;
  }

  .service-nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 16px;
  }

  .header-export {
    min-height: 34px;
    padding: 0 8px;
    font-size: 16px;
  }

  .legipro-user-menu summary {
    min-height: 34px;
    padding: 0 8px;
    font-size: 16px;
  }

  .legipro-user-menu__label small {
    display: none;
  }

  .legipro-user-menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .header-export span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .export-modal__header h2 {
    font-size: 32px;
    line-height: 1.09375;
  }

  .export-scope-list,
  .export-range {
    grid-template-columns: 1fr;
  }

  .export-modal__body,
  .export-modal__header {
    padding-right: 18px;
    padding-left: 18px;
  }
}
