body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body, input {
  font-family: Circe, sans-serif;
}

#app { width: 100%; height: 100vh; display: flex}

.wrapper {
  width: 100%; height: 100vh; display: flex;
}

svg {
  width: 20px;
  height: 20px;
  fill: #A9B5BD;
}

.subhead {
  width: 100%;
  margin: 0 auto;
  max-width: 928px;
  padding: 40px 16px 0 16px;

  .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 0;

    .home-link {
      display: flex;
      align-self: baseline;

      svg.home {
        fill: #37ABFF;
        width: 16px;
        height: 16px;
      }
    }

    a {
      color: #37ABFF;
    }
  }

  .AIButton {
    height: 26px;
    font-size: 14px;

    .bg-fff {
      padding: 0 8px;
    }
  }

  h2 {
    margin-bottom: 8px;
  }
}

.frame-wrap {
  width: fit-content;
}

.frame {
  width: 795px;
  height: 1123px;
  border: none;
  transform: scale(.6642);
  transform-origin: 0 0;
}

.top-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #A8C5D4;
  margin: 16px 0;

  .post-info {
    height: 100%;
    display: flex;
    align-self: end;
  }
}

.bottom-frame {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #A8C5D4;
}

.saveState {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;

  svg {
    width: 13px;
    height: 13px;
  }

  .saved {
  }

  .saving {
    @keyframes rotating {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
    animation: rotating 1s linear infinite;

    fill: transparent;
    stroke: #37ABFF;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 0;

  svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  .caret-right {
    transform: rotate(-180deg);
    margin-left: 0;
  }
}

button.download-btn {
  color: #fff;
  font-size: 18px;
  line-height: 156%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 46px;
  transition: box-shadow .2s linear;
  vertical-align: top;
  text-decoration: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #50c5ff 0, #37abff 100%);

  svg {
    fill: #fff;
  }
}

.autocomplete {
  position: relative;
  width: 100%;
  font-size: 20px;

  .search-input-label {
    border: 1px solid #E9EFF3;
    border-radius: 4px;
    padding: 8px 16px;
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .search-input {
      border: none;
      width: 100%;
      font-size: 20px;
    }

    .lens {
      fill: #37ABFF;
      width: 24px;
      height: 24px;
    }
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px; /* запас */
    overflow-y: auto;
    z-index: 5;
    border-radius: 4px;
    box-shadow: 0 12px 32px #0000001F;
  }

  .dropdown li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
  }

  .dropdown li a:hover {
    background: #f0f0f0;
  }
}


.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px 0;

  .choose-skills {
    font-size: 14px;
  }

  .filter-btns {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    > div {
      border: 1px solid #E9EFF3;
      border-radius: 4px;
      padding: 4px;
      color: #909FA9;
      font-size: 14px;
      line-height: 14px;
      text-align: center;

      &.active {
        color: #37ABFF;
        border-color: #37ABFF;
      }
    }

    .all {

    }

    .my {
      border-color: #E9EFF3;

      &.disabled {
        pointer-events: none;
        opacity: 0.6;
      }
    }
  }
}

.skill-item {
  padding: 16px;
  background: #fff;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid #E9EFF3;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  overflow: hidden;

  &:hover {
    .left {
      .icon-div {
        opacity: 1;
      }
    }
  }

  &.fade-up {
    animation: fadeUp 0.35s ease forwards;
  }

  .name {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #27353F;

    &.active {
      color: #34A857;
    }
  }

  .left {
    display: flex;
    gap: 8px;
    max-width: calc(100% - 28px);

    .icon-div {
      cursor: pointer;
      display: flex;
      align-items: center;
      opacity: 0;
      transition: opacity .2s linear;

      &:hover {
        svg {
          fill: #37ABFF;
        }
      }
    }

    .drag-div {
      cursor: grab;
    }
  }

  .checkbox-label {
    display: flex;

    &:hover {
      .plus {
        fill: #34A857;
      }
    }

    > span {
      cursor: pointer;
      display: flex;
    }

    .check {
      fill: #34A857;
    }

    .remove {
      display: none;
    }

    .added {
      &:hover {
        .check {
          display: none;
        }

        .remove {
          display: inline;
        }
      }
    }
  }
}

.content {
  min-height: 100%;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  transition-property: width, opacity, visibility;
  transition-duration: .2s;
  transition-timing-function: ease;

  &.hide {
    visibility: hidden;
    opacity: 0;
    max-width: 360px;
  }

  .header {
    z-index: 3000;
    .sub_menu {
      width: 100%;
      .cover_letter .thumb+* {
        width: 50%;
        margin-left: auto;
      }
      .resume_templates {
        .row {
          max-height: 246px;
          overflow: hidden;
        }
      }
      .links {
        >* {
          width: calc(50% - 16px);
        }
        .title {
          white-space: nowrap;
          flex-wrap: nowrap;
          .icon.big {
            min-width: 32px;
          }
        }
      }

    }
    .choose_plan_link { display: none; }
  }
}

.skills-container {
  width: 100%;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  .skills {
    width: 100%;
    max-width: 928px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

.gradientButton, .analyzing {
  border-radius: 4px;
  padding: 1px; /* толщина рамки */
  background: linear-gradient(to bottom, #7797FF, #A676FF);
  /*margin: 16px;*/
  height: 40px;

  .bg-fff {
    background: #fff;
    padding: 0 16px;
    border-radius: 4px;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      gap: 8px;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      background-image: linear-gradient(to bottom, #0C8AE6, #D951FF);
    }
  }
}

.gradientButton.disabled {
  opacity: 0.4;
}

.show-more {
  width: 100%;
  margin: 16px 0 32px 0;
}

.analyzing {
  height: 240px;
  background: linear-gradient(to top, #696EFF, #F8ACFF);
  margin: 16px 0 0 0;

  .bg-fff {
    height: 238px;

    .container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .text {
        font-size: 14px;
        -webkit-background-clip: text;
        background-clip: text;
        background-image: linear-gradient(to top, #6F9DFF, #D951FF);
      }

      svg {
        width: 64px;
        height: 64px;
      }
    }
  }
}

.copy-all-and-rel {
  display: inline-block;
  justify-content: center;
  align-items: center;

  * {
    vertical-align: middle;
  }

  .copy-all-btn {
    display: inline;
    text-decoration: underline;
    text-decoration-style: dotted;

    .copy {
      display: inline;
      margin-right: 8px;
      fill: #37ABFF;
    }
  }

  .vacancy-rel {
    display: inline;

    .rel {
      text-decoration: underline;
      color: #37ABFF;
    }
  }
}

.document-container {
  width: 648px;
  background: #041721;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition-property: width, opacity, visibility;
  transition-duration: .2s;
  transition-timing-function: ease;

  &.hide {
    width: 0 !important;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    /*z-index: -1;*/
  }

  .mobile-resume-header-wrap {
    width: 100%;
    height: 56px;
    border-bottom: 1px solid #FFFFFF0D;
    padding: 0 16px;
    display: flex;
    align-items: center;

    .mobile-resume-header {
      margin: auto;

      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      &.hide {
        width: 0 !important;
        visibility: hidden;
        opacity: 0;
        overflow: hidden;
      }
      .icon-close, #logo-white {
        fill: #fff;
        cursor: pointer;
      }

      #logo-white {
        width: 100px;
        height: 32px;
      }

    }
  }

  .resume-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
}

div.document li {
  line-height: initial;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 8px));
  gap: 16px;
}

.modal-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex; justify-content: center; align-items: center;
  z-index: 102;

  .modal-wrapper {
    background: white;
    padding: 32px 0;
    border: 1px solid #d5e1e9;
    border-radius: 6px;
    box-shadow: 0 48px 24px -9px rgba(79, 128, 157, .12);
    max-width: calc(100% - 32px);

    .modal {
      padding: 0 32px; border-radius: 0; width: 570px; max-width: 100%; display: block;
      box-shadow: none;
      border: none;

      &:before {
        position: absolute;
        z-index: 9;
        top: -1px;
        left: -1px;
        display: block;
        width: 3px;
        height: calc(100% + 2px);
        content: '';
        border-radius: 0 6px 6px 0;
        background: #37abff;
      }

      h2 {
        margin-bottom: 16px;
      }

      label {
        font-size: 13px;
        color: #567B9D;
        margin-bottom: 8px;
        display: block;
      }

      input {
        width: 100%;
        height: 48px;
        border: 1px solid #CFDBE6;
        border-radius: 6px;
        background: #EEF5F9;
        padding: 12px 16px;
        font-size: 17px;
        margin-bottom: 24px;
      }

      .level-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
        height: 52px;
        border-radius: 6px;
        border: 1px solid #CFDBE6;
        background: #EEF5F9;
        padding: 6px;

        .level-btn {
          width: 100%;
          height: 40px;
          border-radius: 6px;
          background: #D5E1E9;
          cursor: pointer;
          font-size: 18px;
          transition: 0.15s;

          &:hover, &.active, &.hover {
            &:nth-child(1) {
              background: #D5E1E9;
            }

            &:nth-child(2) {
              background: #bfddfd;
            }

            &:nth-child(3) {
              background: #a0cbfb;
            }

            &:nth-child(4) {
              background: #80bafa;
            }

            &:nth-child(5) {
              background: #60a9f9;
            }
          }

          /*&:hover {*/
          /*  !*background: #ddd;*!*/
          /*}*/

          /*&.active {*/
          /*  background: #4381ff;*/
          /*  border-color: #3b77ef;*/
          /*  color: white;*/
          /*}*/
        }
      }

      .flex {
        display: flex;
        justify-content: space-between;
        gap: 16px;

        .btn {
          height: 50px;
          width: 100%;
          border-radius: 6px;

          &.cancel {
            border: 1px solid #ecc1be;
            color: #E25959;
          }

          &.add {
            background: #0C8AE5;
            color: #fff;
          }
        }
      }
    }


  }
}


.modal-anim-enter-from,
.modal-anim-leave-to {
  opacity: 0;
}

.modal-anim-enter-active,
.modal-anim-leave-active {
  transition: opacity .25s ease;
}

.skill-fly {
  position: fixed;
  pointer-events: none;
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform 1s cubic-bezier(.4, .15, .3, 1), opacity 1s;
  z-index: 9999;
}

.rubric-wrapper {
  width: 100%;
  max-width: 928px;
  margin: 0 auto;
  /*padding-top: 40px;*/
  padding: 40px 16px 0 16px;

  .rubric-block {
    margin-bottom: 32px;

    .rubric-title {
      color: #A9B5BD;
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .vacancies-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px 18px;

      a {
        text-decoration: none;
        color: #4D5357;
      }
    }
  }

}

.homepage {
  .document-container {
    display: none;
  }
}

.show-resume {
  display: none;
  transition: all 1.3s ease;

  .text {
    transition: max-width 1.2s ease;
  }
}

@keyframes fadeUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.smallScreen {
  .skill-item {
    height: 48px;
  }

  button.download-btn {
    width: 100%;
  }
}

.menuContainer.dropdown ul span {
  font-size: 18px;
}

#accountMenu .serv>.locked .svg-span-icon {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin: auto;
  &.svg-span-lock {
    margin: 0;
    width: auto;
  }
}

#accountMenu .serv .s {
  display: flex;
  white-space: nowrap;
}

@media print,(max-width: 1700px) {


  .skills-grid {
    grid-template-columns: repeat(1, 100%);
    gap: 16px;
    /*padding: 0 16px;*/
  }
}

@media print,(max-width: 1620px) {
  header {
    .mob_scroll>.cont {
      padding: 0 12px;
    }
    .menu {
      margin-left: 16px;
    }
    .menu_item {
      &:not(:last-child) {
        padding-right: 8px;
      }
      a {
        .icon {
          margin-left: 4px;
        }
        span {
          font-size: 14px;
        }
      }
      .cover_letter {
        .name {
          padding-top: 16px;
        }
        .thumb + * {
          width: auto !important;
          min-width: 200px !important;
        }
      }
    }
  }

  header .sub_menu .create_banner3, header .sub_menu .create_banner2, header .sub_menu .create_banner {
    padding: 16px;
    width: 314px;
    margin-left: 0;
  }

  header .sub_menu .sep {
    margin-left: 0;
    background: none;
    display: none;
  }

  header .links .title {
    font-size: 14px;
  }

  header .sub_menu .data {
    width: calc(100% - 340px);
  }

  header .links .desc {
    padding-left: 0;
  }
}

@media print,(max-width: 1366px) {

  header .sub_menu .data {
    width: calc(100% - 344px);
  }

  header .sub_menu .create_banner3 {
    padding: 16px;
    width: 314px;
  }

  .skills-grid {
    gap: 8px;
  }

  .document-container {
    width: 320px;
  }

  .frame {
    transform: scale(.3642);
    transform-origin: 0 0;
  }

}

@media print,(max-width: 1279px) {

  header {
    height: auto;
    position: absolute;
    &.show {
      .mob_close_btn {
        display: none;
      }
    }
    .menu_item {
      & > a {
        .icon {
          cursor: pointer;
        }
      }

      &.show {
        .icon {
          transform: rotate(0deg);
        }
        .mob_sub_menu {
          display: block;
          visibility: visible;
        }
      }
    }
  }
}

@media print,(max-width: 1000px) {
  .subhead {
    .row {
      .AIButton {
        display: none;
      }

      > * {
        width: 100%;
      }
    }
  }

  .rubric-wrapper {
    .rubric-block {
      .vacancies-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}

@media print,(max-width: 767px) {
  .filter-row {
    > * {
      width: 100%;
    }

    .choose-skills {
      display: none;
    }

    .filter-btns {
      margin-top: 8px;

      > * {
        width: 100%;
        cursor: pointer;
      }
    }
  }

  .wrapper {
    background: #041721;
    .content {
      background: #fff;
    }
  }

  .document-container {
    position: absolute;
    width: 100%;
    min-height: 100%;
    right: 0;
    padding-bottom: 16px;
    display: flex;
    justify-content: start;
  }

  .show-resume {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 12px 16px;
    height: 64px;
    border-radius: 32px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: linear-gradient(180deg, #50C5FF 0%, #37ABFF 100%);
    color: #fff;
    overflow: hidden;

    .text {
      white-space: nowrap;
      max-width: 200px;
      overflow: hidden;
    }

    .document {
      width: 40px;
      height: 40px;
      fill: #fff;
    }

    &.collapsed {
      padding: 12px;
      gap: 0;
      .text {
        max-width: 0;
        pointer-events: none;
      }
    }
  }

  .skill-item {
    height: 42px;

    .name {
      font-size: 16px;
    }

    .left {
      .icon-div {
        opacity: 1;
      }
    }
  }

  .rubric-wrapper {
    .rubric-block {
      .vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }

  .modal-backdrop {
    align-items: end;

    .modal-wrapper {
      position: relative;
      width: 100%;
      border-radius: 3px;
      border: none;
      max-width: 100%;

      &:before {
        position: absolute;
        z-index: 9;
        top: 0;
        display: block;
        height: 3px;
        width: calc(100%);
        content: '';
        border-radius: 6px 6px 0 0;
        background: #37abff;
      }

      .modal {
        width: 100%;

        &:before {
          content: none;
        }
      }
    }
  }
}

@media print,(max-width: 400px) {
  .rubric-wrapper {
    .rubric-block {
      .vacancies-grid {
        grid-template-columns: repeat(1, 1fr);
      }
    }
  }
}