@import url("fonts.css");

.the-personal {
  --Black-Squeeze: #f0f4f9;
  --Fiord: #424763;
  --red: #fa0f0c;

  --top-sticky-position: 84px;

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding-bottom: 70px;
  background-color: var(--Black-Squeeze);

  font-family: "ManropeMedium", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.the-personal-data {
  font-family: "ManropeRegular", sans-serif;
}

.the-personal__inner {
  flex-grow: 1;
  width: 100%;
  max-width: 1292px;
  margin: 0 auto;
  padding: 0 15px 32px;
}

.the-personal__side {
  position: sticky;
  position: -webkit-sticky;
  top: var(--top-sticky-position);
  z-index: 20;
  margin: 0 -15px;
}

.the-personal-navigation {
  width: 100%;
  background-color: #fff;
  transition: opacity 0.2s ease-in;
}

.the-personal-navigation__title {
  position: relative;
  z-index: 20;
  padding: 12px 20px 15px;
  color: var(--Fiord);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  background-color: #fff;
  box-shadow: 0 0 30px #f2f2f5;
  transition: box-shadow 0.2s ease-in;
}

.the-personal-navigation__title svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  transition: transform 0.2s ease-in;
}

.the-personal-navigation__title.opened svg {
  transform: translateY(-50%) rotate(90deg);
}

.the-personal-navigation__list {
  position: absolute;
  left: 0;
  right: 0;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px #d1d3e3;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in;
}

.the-personal-navigation__list.opened {
  transform: translateY(0);
}

.the-personal-navigation__item {
  position: relative;
}

.the-personal-navigation__link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  color: var(--Fiord);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-transform: none;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.the-personal-navigation__link svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: var(--Fiord);
  stroke: var(--Fiord);
  transition: fill 0.2s ease-in, stroke 0.2s ease-in;
}

.the-personal-navigation__item:last-child .the-personal-navigation__link {
  position: relative;
}

.the-personal-navigation__item:last-child
  .the-personal-navigation__link:before {
  content: "";
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 1px;
  background: #ebebf0;
}

.the-personal-navigation__link--active {
  color: #03a9f4;
  background-color: #f0f4f9;
}

.the-personal-navigation__link--active svg {
  fill: #03a9f4;
  stroke: #03a9f4;
}

.the-personal__main {
  width: 100%;
  padding-top: 10px;
}

.the-personal-user-card {
  padding: 15px;
  background-color: #fff;
  border-radius: 18px;
  border: none;
  box-shadow: 0 0 30px #f2f2f5;
}

.the-personal-user-card__header {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  border-color: #ebebf0;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-image: var(--163w2nc);
  border-image-slice: 1;
}

.the-personal-user-card__photo {
  width: 78px;
  height: 78px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
}

.the-personal-user-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #f0faff;
}

.the-personal-user-avatar__text {
  color: #03a9f4;
  font-size: 28px;
  line-height: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.the-personal-user-card__name {
  margin-bottom: 5px;
  color: var(--Fiord);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.the-personal-user-card__edit > span {
  color: #03a9f4;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
}

.the-personal-user-card__form {
  padding-top: 20px;
}

.the-personal-user-card__row {
  display: block;
  margin-bottom: 15px;
}

.the-personal-user-card__caption {
  display: block;
  margin-bottom: 2px;
  padding-left: 15px;
  color: #8f90a6;
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
}

.the-personal-input {
  display: block;
  width: 100%;
}

.the-personal-input__field {
  width: 100%;
  padding: 9px 15px;
  color: black;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  background-color: var(--Black-Squeeze);
  border: 2px solid var(--Black-Squeeze);
  border-radius: 14px;
  transition: border-color 0.2s ease-in;
}

.the-personal-input__error {
  display: none;
  margin-top: 4px;
  padding-left: 12px;
  color: var(--red);
  font-size: 12px;
  line-height: 16px;
}

.the-personal-input__field:invalid {
  border-color: var(--red);
}

.the-personal-input__field:invalid + .the-personal-input__error {
  display: block;
}

.the-personal-user-card__caption {
  display: block;
  margin-bottom: 2px;
  padding-left: 15px;
  color: #8f90a6;
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
}

.the-personal-user-card__birthday {
  position: relative;
  padding: 12px 0 12px 15px;
  color: #03a9f4;
  font-size: 14px;
  line-height: 16px;
  text-align: left;
}

.the-personal-user-card__icon {
  display: none;
}

.the-personal-user-card__tooltip {
  display: none;
}

.the-personal-tooltip--top {
  bottom: calc(100% + 12px);
}

.the-personal-tooltip--left {
  left: -10px;
}

.the-personal-user-card__notification {
  display: block;
  margin-top: 25px;
  margin-left: -15px;
  padding: 15px;
  color: var(--z2kad5);
  font-size: 12px;
  line-height: 18px;
  background-color: #e1f6ff;
  border-radius: 7px;
}

.the-personal-icon.icon-info {
  fill: #8f90a6;
}

.the-personal-select {
  width: 100%;
  position: relative;
  user-select: none;
}

.the-personal-user-card__select {
  flex-shrink: 0;
}

.the-personal-select__name {
  position: relative;
  color: black;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-color: var(--Black-Squeeze);
  border: 2px solid var(--Black-Squeeze);
  overflow: hidden;
  cursor: pointer;
}

.the-personal-select--lg .the-personal-select__name {
  padding: 9px 23px 9px 15px;
  font-size: 16px;
  border-radius: 14px;
}

.the-personal-select__dropdown {
  position: absolute;
  background: #fff;
  width: 100%;
  left: 0;
  top: calc(100% - 1px);
  border: 2px solid var(--Black-Squeeze);
  border-top: 1px;
  overflow: auto;
  max-height: 180px;
  z-index: 111;
  text-align: left;

  &.hidden {
    display: none;
  }
}

.the-personal-select--lg .the-personal-select__dropdown {
  border-radius: 0 0 14px 14px;
}

.the-personal-select__item {
  padding: 7px 10px 7px;
  cursor: pointer;
  font-size: 13px;
  line-height: normal;
  transition: background-color 0.2s ease;
  outline: none;
}

.the-personal-select__item--selected {
  background-color: rgba(23, 71, 158, 0.15);
  pointer-events: none;
}

.the-personal-select__name svg {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.the-personal-select--lg .the-personal-select__name--active {
  border-radius: 14px 14px 0 0;
}

.the-personal-select__name--active svg {
  transform: translateY(-50%) rotate(180deg);
}

.the-personal-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: background-color 0.2s ease-in, color 0.2s ease-in,
    border-color 0.2s ease-in;
  user-select: none;
}

.the-personal-button--v1 {
  background-color: #000;
}

.the-personal-button:disabled {
  color: #8f90a6;
  background-color: #e4e4eb;
  cursor: auto;
}

.the-personal-user-card__group {
  display: flex;
}

.the-personal-user-card__group
  .the-personal-user-card__select:not(:last-child) {
  margin-right: 10px;
}

.the-personal-user-card__group .the-personal-user-card__select:first-child {
  width: calc(30% - 10px);
}

.the-personal-user-card__group .the-personal-user-card__select:nth-child(2) {
  width: calc(43% - 10px);
}

.the-personal-user-card__group .the-personal-user-card__select:last-child {
  width: 27%;
}

@media only screen and (min-width: 992px) {
  .the-personal {
    --top-sticky-position: 160px;
    padding: 30px 0 90px;
  }

  .the-personal__inner {
    display: flex;
    padding: 0 16px;
  }

  .the-personal__side {
    position: static;
    display: block;
    width: 100%;
    max-width: 250px;
    margin-right: 40px;
  }

  .the-personal-navigation {
    position: sticky;
    position: -webkit-sticky;
    top: calc(var(--top-sticky-position) + 30px);
    z-index: 12;
    padding: 8px 9px;
    border: none;
    border-radius: 18px;
    box-shadow: 0 0 50px #f2f2f5;
  }

  .the-personal-navigation__title {
    display: none;
  }

  .the-personal-navigation__list {
    position: static;
    box-shadow: none;
    border-radius: 18px;
    transform: translateY(0);
  }

  .the-personal-navigation__link {
    padding: 12px;
    border-radius: 12px;
  }

  .the-personal__main {
    min-height: 450px;
    padding-top: 0;
  }

  .the-personal-user-card {
    padding: 25px;
    box-shadow: 0 0 50px #f2f2f5;
  }

  .the-personal-user-card__header {
    padding-bottom: 30px;
  }

  .the-personal-user-card__name {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 23px;
  }

  .the-personal-user-card__photo {
    width: 100px;
    height: 100px;
    margin-right: 35px;
  }

  .the-personal-user-card__edit > span {
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
  }

  .the-personal-user-card__form {
    display: flex;
    margin: 0 -20px;
    padding-top: 30px;
  }

  .the-personal-user-card__col {
    display: flex;
    flex-direction: column;
    flex-basis: 50%;
    max-width: 50%;
    padding: 0 20px;
  }

  .the-personal-user-card__input {
    max-width: 320px;
  }

  .the-personal-input__field {
    padding: 14px 15px;
  }

  .the-personal-user-card__birthday {
    display: flex;
    align-items: center;
    max-width: 320px;
    width: 100%;
    padding: 13px 0;
    font-size: 16px;
    line-height: 20px;
  }

  .the-personal-user-card__icon {
    position: relative;
    display: block;
    margin-left: 12px;
    width: 24px;
    height: 24px;
  }

  .the-personal-tooltip {
    position: absolute;
    z-index: 10;
    padding: 10px;
    color: #40404b;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-transform: none;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(199, 201, 217, 0.7);
  }

  .the-personal-user-card__notification {
    display: none;
  }

  .the-personal-user-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .the-personal-user-card__icon:hover .the-personal-user-card__tooltip {
    display: block;
  }

  .the-personal-user-card__icon:hover:before {
    content: "";
    position: absolute;
    top: -15px;
    bottom: 0;
    left: 0;
    width: 200px;
  }

  .the-personal-user-card__select {
    max-width: 320px;
  }

  .the-personal-select__name {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .the-personal-select--lg .the-personal-select__name {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .the-personal-button {
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
  }

  .the-personal-user-card__button {
    max-width: 320px;
    margin-top: auto;
    margin-left: auto;
  }

  .the-personal-user-card__group {
    width: 100%;
    max-width: 320px;
  }
}

@media only screen and (min-width: 1239px) {
  .the-personal-user-card__caption {
    flex-grow: 1;
    margin-bottom: 0;
    margin-right: 5px;
    padding-left: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: right;
  }

  .the-personal-user-card__caption {
    flex-grow: 1;
    margin-bottom: 0;
    margin-right: 5px;
    padding-left: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: right;
  }

  .the-personal-user-card__caption.centered {
    align-self: center;
  }

  .the-personal-user-card__row {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
  }
}
