/* Профиль мастера */
.mp-page { padding: 0 0 100px; }
.mp-hero {
  margin: 0 14px 16px; border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 30px rgba(20,30,60,.06);
}
.mp-hero-cover {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.mp-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.mp-hero-bg.bg-green { background: linear-gradient(135deg,#34d399,#22d3ee); }
.mp-hero-bg.bg-orange { background: linear-gradient(135deg,#f59e0b,#ff5d8f); }
.mp-hero-bg.bg-pink { background: linear-gradient(135deg,#ff9ec4,#c58bff); }
.mp-hero-bg.bg-blue { background: linear-gradient(135deg,#60a5fa,#7aa2ff); }
.mp-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20,24,36,.45) 100%);
  pointer-events: none;
}
.mp-hero-body {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 0 18px 18px;
  background: #fff;
}
.mp-avatar-wrap {
  position: relative; flex-shrink: 0;
  margin-top: -36px;
  z-index: 2;
}
.mp-avatar {
  width: 80px; height: 80px; border-radius: 22px;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 500; color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(20,30,60,.18);
  background-clip: padding-box;
}
.mp-avatar.green { background: linear-gradient(135deg,#34d399,#22d3ee); }
.mp-avatar.orange { background: linear-gradient(135deg,#f59e0b,#ff5d8f); }
.mp-avatar.pink { background: linear-gradient(135deg,#ff9ec4,#c58bff); }
.mp-avatar.blue { background: linear-gradient(135deg,#60a5fa,#7aa2ff); }
.mp-avatar.has-img,
.mp-avatar.user-avatar.has-img { padding: 0; overflow: hidden; }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mp-online {
  position: absolute; bottom: -2px; right: -2px;
  padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600;
  background: #10b981; color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.35);
  z-index: 3;
}
.mp-title {
  flex: 1; min-width: 0;
  padding-top: 12px;
}
.mp-title h1 {
  font-size: 22px; font-weight: 500; letter-spacing: -.02em;
  margin: 0 0 6px; color: #1a1d24;
}
.mp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.mp-badge.verified { background: rgba(59,130,246,.12); color: #2563eb; }
.mp-badge.pro { background: linear-gradient(135deg,#f59e0b,#ff5d8f); color: #fff; }
.mp-spec { font-size: 13px; color: #6b7280; margin: 0 0 8px; }
.mp-rating-row { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #7a8294; flex-wrap: wrap; }
.mp-stars { display: inline-flex; align-items: center; gap: 4px; color: #f59e0b; font-weight: 500; }

@media (min-width: 768px) {
  .mp-hero { margin: 0 24px 20px; }
  .mp-hero-cover { height: 180px; }
  .mp-hero-body { padding: 0 24px 22px; gap: 18px; }
  .mp-avatar-wrap { margin-top: -44px; }
  .mp-avatar { width: 96px; height: 96px; border-radius: 26px; font-size: 32px; border-width: 4px; }
  .mp-title { padding-top: 16px; }
  .mp-title h1 { font-size: 26px; }
  .mp-actions-bar, .mp-stats, .mp-section { padding-left: 24px; padding-right: 24px; }
}

.mp-actions-bar {
  display: flex; gap: 8px; padding: 0 14px 16px; flex-wrap: wrap;
}
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 500;
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9);
  transition: .2s;
}
.mp-btn.primary {
  flex: 1; min-width: 160px;
  background: linear-gradient(135deg,#1a1d24,#333846); color: #fff; border: none;
  box-shadow: 0 8px 22px rgba(26,29,36,.22);
}
.mp-btn.fav { width: 46px; padding: 12px; color: #c8cdd8; }
.mp-btn.fav.on { color: #ff5d8f; background: rgba(255,93,143,.1); }

.mp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 0 14px 20px;
}
.mp-stat {
  text-align: center; padding: 14px 8px; border-radius: 16px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9);
}
.mp-stat strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.mp-stat span { font-size: 10px; color: #97a0b0; text-transform: uppercase; letter-spacing: .04em; }

.mp-section { padding: 0 14px 20px; }
.mp-section h2 {
  font-size: 16px; font-weight: 500; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.mp-section h2 .count {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: rgba(122,162,255,.15); color: #4a5a8a;
}
.mp-about {
  padding: 16px 18px; border-radius: 18px; font-size: 14px; line-height: 1.65; color: #404652;
}

.mp-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9);
  font-size: 13px; transition: .2s;
}
.mp-cat-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,30,60,.06); }
.mp-cat-chip .ic { display: flex; color: #4a5a8a; }

.mp-services { display: flex; flex-direction: column; gap: 8px; }
.mp-service {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9);
}
.mp-service-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(122,162,255,.15), rgba(197,139,255,.15));
  display: grid; place-items: center; color: #4a5a8a;
}
.mp-service-info strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.mp-service-info span { font-size: 11.5px; color: #7a8294; }
.mp-service-price { font-size: 15px; font-weight: 500; white-space: nowrap; }
.mp-service-order {
  font-size: 12px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  background: rgba(26,29,36,.08); color: #1a1d24;
}

.mp-portfolio {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 768px) { .mp-portfolio { grid-template-columns: repeat(3, 1fr); } }
.mp-portfolio-item {
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.9);
  margin: 0;
}
.mp-portfolio-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.mp-portfolio-item figcaption {
  padding: 8px 10px; font-size: 11px; color: #7a8294;
}

.mp-reviews { display: flex; flex-direction: column; gap: 10px; }
.mp-review {
  padding: 16px; border-radius: 18px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9);
}
.mp-review-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 10px; }
.mp-review-user { display: flex; gap: 10px; align-items: center; }
.mp-review-av {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg,#7aa2ff,#c58bff);
  color: #fff; display: grid; place-items: center; font-weight: 500;
}
.mp-review-user time { font-size: 11px; color: #97a0b0; display: block; }
.mp-review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.mp-review p { font-size: 13.5px; line-height: 1.55; color: #404652; }
.mp-reply {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.05);
  font-size: 12.5px; color: #4a5a8a; line-height: 1.5;
}

@media (max-width: 480px) {
  .mp-service { grid-template-columns: auto 1fr; }
  .mp-service-price, .mp-service-order { grid-column: 2; }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
}
