.cards-list--profile {
  margin-top: 0;
}

.similar-works--profile {
  margin-bottom: 0;
}

.modal-profile {
  display: flex;
}

.modal-profile .modal-content {
  background-color: #f1f5f9;
  max-width: 440px;
  width: 100%;
}

.modal-profile .modal-content__title {
  margin-bottom: 8px;
}

.modal-profile__sub {
  font-size: 14px;
}

@media (min-width: 768px) {
  .modal-profile .modal-content {
    padding: 30px;
  }

  .modal-profile .modal-content__title {
    margin-bottom: 12px;
  }

  .modal-profile__sub {
    font-size: 16px;
  }
}



/* Profile */
.profile {
  margin-bottom: 70px;
  margin-top: 26px;

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

.profile__user {
  display: flex;
}

.profile__user > .profile-user__avatar {
  display: none;
}

.profile-user__avatar {
  border-radius: 50%;
  width: 85px;
  height: 85px;
}

.profile__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile__head {
  display: flex;
  gap: 22px;
}

.profile__head > .profile-user__avatar {
  display: block;
}

.profile__name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile__name h1 {
  font-family: 'Golos Text';
  font-weight: 700;
  font-size: 26px;
}

.profile__name img {
  order: -1;
  max-width: 84px;
  width: 100%;
}

.profile__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.profile__status img {
  width: 30px;
  height: 30px;
}

.profile__status + .profile__tags {
  margin-top: 0;
}

.profile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;

  margin-top: 20px;
}

.profile__tag {
  display: flex;
  gap: 6px;
  align-items: center;

  border-radius: 5px;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  padding: 6px 12px;
}

.profile__tag.primary {
  background-color: #299b1a;
}

.profile__tag.secondary {
  background-color: #164c9e;
}

.profile__tag img {
  width: 18px;
  height: 18px;
}

.profile-divider {
  height: 1px;
  background-color: rgba(103, 103, 103, 0.2);
}

.profile__verify {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.profile-verify__head {
  background-color: rgba(237, 0, 0, 0.08);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  padding: 24px 26px 20px 20px;

  display: flex;
  gap: 16px;
}

.profile-verify__head img {
  width: 36px;
  height: 36px;
}

.profile-verify__head h4 {
  font-family: 'Golos Text';
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.profile-verify__head p {
  font-size: 14px;
}

.profile-verify__content {
  padding: 26px 26px 28px 72px;
}

.profile-verify__item {
  display: flex;
  gap: 13px;
  align-items: center;
}

.profile-verify__item img {
  width: 20px;
  height: 20px;
}

.profile-verify__item p {
  font-size: 14px;
  font-weight: 500;
}

.profile-verify__item---last {
  margin-top: 10px;
  margin-bottom: 24px;
}

.profile-verify__btn {
  padding: 0 50px;
}

.profile-verify__sub {
  font-size: 12px;
  margin-top: 12px;
}

.profile-contact {
  margin-top: 0;
}

.profile-contact > .contact-row {
  padding: 0;
  margin-bottom: 10px;
}

.profile-contact .messenger-row {
  padding-top: 0;
}

.profile-contact .contact-sep {
  margin-bottom: 16px;
}

.profile__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile__desc p {
  font-size: 16px;
  line-height: normal;
}

.profile-stats__card {
  margin-top: 0;
}

.profile-stats__card .stat-card {
  background-color: #f9f9f9;
  min-height: 88px;
  padding: 14px 20px;

  gap: 10px;
}

@media (min-width: 768px) {
  .profile__user {
    gap: 30px;
  }

  .profile__user > .profile-user__avatar {
    display: block;
  }

  .profile__head > .profile-user__avatar {
    display: none;
  }

  .profile-user__avatar {
    width: 150px;
    height: 150px;
  }

  .profile__info {
    gap: 32px;
  }

  .profile__name {
    flex-direction: row;
    align-items: center;
    gap: 13px;
  }

  .profile__name h1 {
    font-size: 36px;
  }

  .profile__name img {
    max-width: 103px;
    order: 0;
  }

  .profile__status {
    gap: 6px;
    margin: 11px 0;
  }

  .profile__status img {
    width: 36px;
    height: 36px;
  }

  .profile__tags {
    margin-top: 24px;
    gap: 12px;
  }

  .profile__tag {
    padding: 8px 12px;
    font-size: 16px;
  }

  .profile-verify__head {
    padding: 24px 30px 20px 30px;
    gap: 26px;
  }

  .profile-verify__head img {
    width: 50px;
    height: 50px;
  }

  .profile-verify__head h4 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .profile-verify__head p {
    font-size: 16px;
  }

  .profile-verify__content {
    padding: 30px 30px 26px 106px;
  }

  .profile-verify__item--last {
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 30px;
  }

  .profile-verify__item p {
    font-size: 16px;
  }

  .profile-verify__btn {
    padding: 0 57px;
  }

  .profile-verify__sub {
    margin-top: 14px;
    font-size: 14px;
  }

  .profile__desc p {
    font-size: 18px;
  }

  .profile-stats__card .stat-card {
    min-height: 93px;
    padding: 20px 25px;
  }
}

@media (min-width: 992px) {
  .profile {
    flex-direction: row;
    gap: 45px;
    margin-bottom: 100px;
    margin-top: 50px;
  }

  .profile__user {
    gap: 46px;
  }

  .profile-user__avatar {
    width: 201px;
    height: 201px;
  }

  .profile__stats {
    max-width: 440px;
    width: 100%;
  }
}

/* Profile Cards */
.profile-cards {
  margin-bottom: 70px;
}

.profile-cards__title {
  font-size: 26px;
  font-weight: 600;
  font-family: 'Golos Text';
  margin-bottom: 30px;
}

.profile-cards__list {
  margin-top: 20px;
}

@media (min-width: 992px) {
  .profile-cards {
    margin-bottom: 100px;
  }
}

@media (min-width: 768px) {
  .profile-cards__title {
    font-size: 30px;
  }

  .profile-cards__list {
    margin-top: 27px;
  }
}


/* Ошибка валидации поля */
.cta-input.alert {
  border-color: #ef4444;
  background-color: #fef2f2;
  animation: shake 0.3s ease-in-out;
}

/* Блок алерта */
.modal-alert {
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

.modal-alert.success {
  background: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

/* Анимация ошибки */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Состояние кнопки */
.btn-cta-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}
.btn-cta-submit:disabled::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}