.avito-profile {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.avito-profile *,
.avito-profile *::before,
.avito-profile *::after {
  box-sizing: border-box;
}

.avito-profile__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.avito-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}

.avito-profile__avatar {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.avito-profile__logo-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(17, 24, 39, 0.18);
}

.avito-profile__logo-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.avito-profile__brand {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 10px;
  align-items: stretch;
  padding-top: 4px;
}

.avito-profile__phone {
  grid-column: 1;
  grid-row: 1;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  font-weight: 500;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.avito-profile__phone:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  text-decoration: none;
}

.avito-profile__write {
  grid-column: 1;
  grid-row: 2;
  appearance: none;
  -webkit-appearance: none;
  background: #00aaff;
  color: #fff;
  white-space: normal;
  text-wrap: balance;
}

.avito-profile__write:hover {
  background: #0096e6;
  color: #fff;
}

.avito-profile__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* UI-kit btn-secondary: border перебивается общим .avito-profile__action { border: none } */
a.avito-profile__action.avito-profile__phone {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
  box-sizing: border-box;
}

a.avito-profile__action.avito-profile__phone:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

@media (max-width: 480px) {
  .avito-profile__top {
    gap: 10px;
  }

  .avito-profile__avatar-wrap {
    width: 76px;
    height: 76px;
  }

  .avito-profile__avatar {
    width: 76px;
    height: 76px;
  }

  .avito-profile__logo-badge {
    width: 28px;
    height: 28px;
    right: -1px;
    bottom: -1px;
  }

  .avito-profile__brand {
    row-gap: 8px;
  }

  .avito-profile__logo-icon {
    width: 18px;
    height: 18px;
  }

  .avito-profile__action {
    font-size: clamp(15px, 4.2vw, 17px);
    padding: 10px 10px;
  }

  .avito-profile__phone {
    letter-spacing: -0.03em;
  }
}

@media (max-width: 340px) {
  .avito-profile {
    padding: 16px 14px 14px;
  }

  .avito-profile__avatar-wrap {
    width: 68px;
    height: 68px;
  }

  .avito-profile__avatar {
    width: 68px;
    height: 68px;
  }

  .avito-profile__action {
    font-size: 15px;
    padding: 9px 8px;
  }

}

.avito-profile__name {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
}

.avito-profile__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.avito-profile__score {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111827;
}

.avito-profile__stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #f59e0b;
}

.avito-profile__star {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.avito-profile__reviews {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #6b8fa8;
  cursor: pointer;
  text-align: left;
}

.avito-profile__reviews:hover {
  text-decoration: underline;
}

.avito-profile__since {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #374151;
}

.avito-profile__checks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avito-profile__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e8f4fc;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.avito-profile__check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #4ade80, #16a34a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.avito-profile__reliable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff8e8;
}

.avito-profile__trophy {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.avito-profile__reliable-text {
  min-width: 0;
}

.avito-profile__reliable-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.avito-profile__reliable-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
}

@media (min-width: 769px) {
  .nhead-bottomright .avito-profile {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .nhead-bottomright .avito-profile {
    max-width: 100%;
    margin: 24px 0 0;
  }
}
