.no-focus {
  outline: none;
}

.gray-block {
  opacity: 0.5;
}

.cabinet__projects-list .is-hidden-project-item {
  display: none;
}

@media (min-width: 85em) {
    .cabinet__greetings .btn { 
        margin: 0 auto;
    }
}

.cabinet__achievements-title-block {
    padding: 1em 2em;
}

.borderless-cabinet__user .cabinet__user {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.line-breaks .settings__item-value, .line-breaks .cabinet__bonuses-description {
  white-space: pre-line;
}

.career__scale-label--master.career__scale-label--expert {
    left: auto;
    -webkit-transform: none;
    transform: none;
    -webkit-align-items: inherit;
    -ms-flex-align: inherit;
    align-items: inherit;
}

.career__scale-label--passed.career__scale-label--master:before {
    background: #f5872e;
    box-shadow: 0 0 5px 0 #f5872e;
    width: 7px;
    height: 42px;
    border-radius: 30%;
    margin-top: -6px;
    margin-bottom: 16px;
}

.public-profile-settings a, .activation-result a {
  color: #3250a2;
  font-weight: 500;
  text-decoration: underline;
}

textarea.input {
    height: 120px;
    padding-top: 8px;
    text-wrap: auto;
}

.modal#faqReputation {
    width: 1000px;
}

@media (max-width: 85em) {
    .modal#faqReputation {
        width: initial;
    }
}

@media (min-width: 64em) {
    .rating-details .career__faq-column {
        -webkit-flex: calc((100% - 36px) / 2) 0 0;
        -ms-flex: calc((100% - 36px)/ 2) 0 0px;
        flex: calc((100% - 36px) / 2) 0 0;
    }
}

.cabinet__user-compass { margin-top: 1em;}
.cabinet__user-compass img { max-width: 170px;}

[data-bonus-feedback] {
    cursor: pointer;
}

li.hide-on-mobile {
    display: none;
}

.icon-size-large {
    width: 48px;
    height: 48px;
}

.body-community .cabinet__text {
    align-items: flex-start;
}

.body-community .cabinet__text-description{
    padding: 0 3em 0 1em;
    border-left: 4px solid #3250a2;
}

@media (min-width: 48em) {
    .settings-survey .settings__item-label {
        flex-basis: 200px;
    }

    .settings-bio .settings__item {
        flex-wrap: wrap;
    }  
    
    .settings-bio .settings__item-label  {
        flex-basis: 100%;
        text-align: left;
     }
}

@media (min-width: 64em) {
    .body-personal .cabinet__achievements-item {
        flex: 1;
        min-width: 9em;
    }  
    .settings-survey .settings__item-label {
        flex-basis: 350px;
    }

     .settings-bio .settings__item-label  {
        flex-basis: 250px;
     }
}

@media (min-width: 85em) {
    .cabinet__projects.cabinet__achievements {
        margin: 0 0 45px 0;
    }

    .body-personal .cabinet__achievements-link {
        margin: 0; padding: 0;
    }

    .body-personal .cabinet__achievements-list {
        margin-top: 2em;
        flex-wrap: wrap;
    }

    .body-community .cabinet__text {
        padding: 42px 68px 75px;
    }
}

.cabinet__rating-value {
    display: inline;
    justify-content: space-between;
    align-items: center;
}

.cabinet__rating-value .icon {    
    display: inline;
    width: 20px;
    opacity: 0.8;
    vertical-align: bottom;
}

/* referral block */
.referral-card {
  max-width: 520px;
  margin: 20px 0;
}

.referral-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.referral-group:focus-within {
  border-color: #3250a2;
}
.referral-group {
  display: flex;
  align-items: stretch;
  min-height: 52px; /* keeps current visual height */
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.referral-input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px; /* reduced from 14px 16px */
  border: none;
  background: #f8fafc;
  font-size: 16px;
  color: #1f2937;
  cursor: text;
  outline: none;
}

.copy-btn {
  padding: 0 24px;
  border: none;
  background: #3250a2;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #3250a2;
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: -3px;
}

.copy-btn.is-success {
  background: #10b981;
}

.copy-status {
  margin-top: 8px;
  font-size: 14px;
  color: #10b981;
  min-height: 1.2em;
}

.referral-group {
  flex-direction: column;
}

.copy-btn {
  padding: 8px 16px;
}

.has-pattern {
    background: white url(https://img.globalcio.ru/cert-pattern.svg) no-repeat top right;
}

.faded {
  opacity: 0.5;
}

/* rating details */
.rating-details {
    font-size: 14px;
}

.rating-details .section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
}

.rating-details h2,
.rating-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.rating-details .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.rating-details .row:last-child {
    border-bottom: none;
}

.rating-details .row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    font-weight: bold;
    font-size: 15px;
}

.rating-details .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
}

.rating-details .table th {
    background: #f3f4f6;
    font-weight: 600;
}

.rating-details .table th,
.rating-details .table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
}


/* =========================
   Avatar
========================= */
.img-rnd {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* =========================
   Header Layout
========================= */
.header__menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__menu-container {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content;
}

.page-header .header-row-bottom {
  display: flex;
  align-items: center;
}

.header__cabinet {
  position: relative;
  padding-left: 12px;
}

/* =========================
   Signup Button
========================= */
.header-signup .btn-rsg {
  background: #f5872e;
  border-radius: 6px;
  padding: 14px 30px 13px;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-left: 35px;
  transition: background 0.3s;
}

.header-signup .btn-rsg:hover {
  background: #fe9e26;
}

.header__menu .header-signup a:hover {
  color: #fff;
}

/* =========================
   User Section
========================= */
.header-userplace-user {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.header-userplace-user.header-segment {
  margin-left: 10px;
  display: flex;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-left {
  flex: 1;
  min-width: 0;
  margin-right: 30px;
}

.user-right {
  flex: 0 0 auto;
  display: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.user-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.header-userplace-username {
  min-width: 0;
  font-weight: 600;
}

.user-rating,
.rating-details-mobile {
  font-size: 12px;
  color: var(--grey);
}

.logout {
  margin-left: auto;
  flex-shrink: 0;
}
.header__cabinet .icon {
  display: block;
}

/* Tooltips */
.tippy-box {
  white-space: pre-line !important;
  text-transform: none !important;
}

/* =========================
   Mobile Hidden Elements
========================= */
.rating-details-mobile,
.profile-details-mobile {
  display: none;
}

/* =========================
   Responsive
========================= */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}
@media (max-width: 63.99em) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  .header-signup {
    margin-left: 16px;
  }
  .user-left {
    margin-right: 0;
  }
  .user-row, .user-info {
    gap: 0;
  }
  .header__cabinet .icon {
    display: block;
  }
  .header__menu-container {
    padding-bottom: 0;
  }
  
  .header-userplace-user {
    line-height: 60px;
  }
  
  .header__menu {
    flex-direction: column;
    justify-content: flex-start !important;
    height: 100%;
    padding: 18px 20px;
  }

  .page-header .header-row-bottom {
    display: block;
  }

  .header-signup .btn-rsg {
    margin-left: 0;
  }

  /* User block */
  .header-userplace-user {
    width: 100%;
    position: static !important;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-userplace-user.header-segment {
    margin-left: 0;
    padding-left: 0;
  }

  .header-userplace-user.header-segment.non-logged {
    margin: 0 !important;
    display: flex;
    text-align: center;
  }

  /* Text wrapping fixes */
  .header-userplace-username,
  .rating-details-mobile,
  .profile-details-mobile {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  .rating-details-mobile,
  .profile-details-mobile {
    display: block;
  }

  /* Hide tooltips on mobile */
  .header-userplace-user .tooltip {
    display: none;
  }

  /* Login links */
  .page-header .header-login a {
    display: block;
    position: relative;
    padding: 25px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.7);
  }

  .page-header .header-login a:hover {
    text-decoration: none;
  }

  .page-header .header-login a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    opacity: 0;
    transition: all 0.3s;
  }

  .page-header .header-login a:hover::after {
    opacity: 1;
  }
  .header__feedback-link:before, .header__cabinet:before {
    display: none;
  }
  .header__cabinet {
    padding-left: 0;
  }
  .header__feedback-link {
    padding-left: 0;
  }
}

.header__search-link {
  color: #9f9f9f;
}

.header__feedback-link {
  position: relative;
  padding-left: 28px;
}

.header__feedback-link:before, .header__cabinet:before {
  content: '';
  position: absolute;
  left: 0;
  height: 20px;
  width: 1px;
  top: 50%;
  transform: translateY(-50%);
  background: #9f9f9f;
}

.career__scale-label--member.career__scale-label--expert {
  left: 5px;
  -webkit-transform: initial;
  -ms-transform: initial;
  transform: initial;
  -webkit-align-items: initial;
  -ms-flex-align: initial;
  align-items: initial;
}

.career__scale-label--member.career__scale-label--expert::before {
  margin-left: 0;
}

.career__scale-label--last-passed:before {
    box-shadow: 0 0 5px 0 #f5872e;
    width: 7px;
    height: 42px;
    border-radius: 30%;
    margin-top: -6px;
}

.header .logo {
    background: url(/local/static/images/logo.svg) 50% 50% no-repeat;
}

@media (min-width: 85em) {
    .header .header__logo .logo {
        width: 170px;
    }
}
@media (max-width: 63.99em) {
    .header .header__logo .logo {
        width: 140px;
    }
}