/* ================================================
   STUDIO DETAIL PAGE — studio.css
   ================================================ */

/* ===== BREADCRUMBS ===== */
.breadcrumbs-wrap {
  background: var(--dark2);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
}
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--pink); }
.bc-sep { color: var(--text-muted); opacity: 0.5; }
.bc-current { color: var(--text-primary); font-weight: 500; }

/* ===== STUDIO HERO SECTION ===== */
.studio-hero-section {
  padding: 40px 0 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP BLOCK: gallery + info ===== */
.studio-top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
}

/* ===== GALLERY ===== */
.studio-gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 4/3;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover { border-color: rgba(233,30,140,0.5); transform: scale(1.04); }
.gallery-thumb.active { border-color: var(--pink); }

.gallery-thumb-add {
  background: var(--card-bg);
  border: 2px dashed var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 20px;
  transition: border-color 0.2s, color 0.2s;
}
.gallery-thumb-add small { font-size: 9px; line-height: 1.2; text-align: center; }
.gallery-thumb-add:hover { border-color: var(--pink); color: var(--pink); }

/* ===== STUDIO INFO ===== */
.studio-info { display: flex; flex-direction: column; gap: 20px; }

.studio-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.studio-name {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0 0 6px;
}
.studio-city { font-size: 14px; color: var(--text-muted); }

.studio-rating-block {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 20px;
  flex-shrink: 0;
}
.studio-rating-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.studio-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin: 6px 0 4px;
}
.star { font-size: 18px; color: rgba(255,255,255,0.15); }
.star.filled { color: #f5a623; }
.star.half {
  position: relative;
  color: rgba(255,255,255,0.15);
  background: linear-gradient(90deg, #f5a623 60%, transparent 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.studio-rating-count { font-size: 11px; color: var(--text-muted); }

.studio-short-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  border-left: 3px solid var(--pink);
  padding-left: 14px;
  margin: 0;
}

/* ===== TAGS GRID ===== */
.studio-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.studio-tag {
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 12px;
  background: var(--dark2);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}
.studio-tag.checked {
  color: #4ade80;
  background: rgba(74,222,128,0.07);
  border-color: rgba(74,222,128,0.2);
}

/* ===== PERCENT BAR ===== */
.studio-percent-bar {
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}
.percent-item {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
}
.percent-value {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.percent-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.percent-divider { width: 1px; background: var(--card-border); flex-shrink: 0; }

/* ===== CONTACTS BAR ===== */
.studio-contacts-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 40px;
}
.contacts-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
  flex-shrink: 0;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--dark2);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.contact-item:hover {
  color: var(--pink);
  border-color: var(--pink);
  background: rgba(233,30,140,0.07);
}
.contact-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}
.contact-item:hover svg { opacity: 1; }

/* ===== MAIN CONTENT ===== */
.sp-section { padding: 0 0 60px; overflow-x: clip; }
.sp-section-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}
.sp-main-col { display: flex; flex-direction: column; gap: 32px; min-width: 0; max-width: 100%; }

/* ===== SP BLOCK ===== */
.sp-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 28px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}
.sp-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.sp-block-title-sm {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== ABOUT TEXT ===== */
.sp-about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.sp-about-text p:last-child { margin-bottom: 0; }

.sp-about-register {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===== VACANCIES ===== */
.vacancies-grid { display: flex; flex-direction: column; gap: 16px; }

.vacancy-card {
  background: var(--dark2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.vacancy-card:hover {
  border-color: rgba(233,30,140,0.4);
  transform: translateX(4px);
}
.vacancy-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.vacancy-type {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 10px;
}
.vacancy-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.vacancy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vacancy-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.vacancy-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pink);
}
.btn-vacancy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(233,30,140,0.35);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-vacancy:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* ===== REVIEWS LIST ===== */
.reviews-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.reviews-list { display: flex; flex-direction: column; gap: 0; }
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
}
.review-item:last-of-type { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-author { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.review-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f5a623;
  font-size: 14px;
}
.review-stars span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.btn-more-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
  background: transparent;
  border: 1px solid rgba(233,30,140,0.35);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-more-reviews:hover { background: var(--pink); color: #fff; }

/* ===== SIDEBAR ===== */
.sp-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sticky-form { position: sticky; top: 90px; }

/* ===== REVIEW FORM ===== */
.rating-input-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.star-rating-input {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.ri-star {
  font-size: 26px;
  color: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}
.ri-star:hover, .ri-star.active { color: #f5a623; transform: scale(1.15); }
.ri-star-label { font-size: 13px; color: var(--text-muted); margin-left: 8px; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-field input,
.form-field textarea {
  background: var(--dark2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.char-counter { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }

.form-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--pink);
  cursor: pointer;
}
.form-check label {
  font-size: 12px !important;
  line-height: 1.5;
  cursor: pointer;
}
.form-check label a { color: var(--pink); }

.btn-submit-review {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.btn-submit-review:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-submit-review.btn-submit-review--register {
  width: 25%;
  margin-top: 0;
  padding: 14px 36px;
  text-decoration: none;
}

.review-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 14px;
}
.review-success h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.review-success p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== QUICK CONTACTS WIDGET ===== */
.sp-contacts-widget { display: flex; flex-direction: column; gap: 10px; }
.contact-btn-big {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  border: 1px solid var(--card-border);
  color: #fff;
  background: var(--dark2);
}
.contact-btn-big:hover { transform: translateY(-2px); opacity: 0.9; }
.contact-btn-tg { background: linear-gradient(135deg, #229ED9, #1a8cc2); border-color: transparent; }
.contact-btn-mail { background: linear-gradient(135deg, #7c3aed, #6d28d9); border-color: transparent; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .studio-top { grid-template-columns: 1fr; gap: 24px; }
  .sp-section-inner { grid-template-columns: 1fr; }
  .sticky-form { position: static; }
  .studio-gallery { max-width: 500px; }
}

@media (max-width: 640px) {
  .studio-name { font-size: 28px; }
  .studio-info-top { flex-direction: column; }
  .studio-percent-bar { flex-direction: column; }
  .percent-divider { width: auto; height: 1px; }
  .studio-contacts-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .studio-tags-grid { grid-template-columns: 1fr; }
  .sp-block { padding: 20px 16px; }
  .gallery-thumb { width: 64px; height: 48px; }
}

@media (max-width: 530px) {
  .sp-about-register {
    justify-content: stretch;
  }
  .btn-submit-review.btn-submit-review--register {
    width: 100%;
  }
}
