/* ─── Страница анкеты ─────────────────────────────────────────────────────── */
.single-anketa { padding: 24px 0 48px; overflow-x: clip; }

/* Шапка профиля */
.anketa-profile-header { margin-bottom: 24px; }
.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.anketa-name {
  font-size: 28px;
  font-weight: 700;
}
.profile-nav { display: flex; gap: 6px; }
.profile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #eee;
  border-radius: 50%;
  font-size: 18px;
  color: var(--color-dark);
  transition: background .2s;
}
.profile-nav-btn:hover { background: var(--color-gold); color: var(--color-dark); }

.profile-activity { font-size: 13px; color: var(--color-gray); margin-bottom: 8px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profile-badge--verified { background: var(--color-green); color: #fff; }
.profile-badge--type     { background: var(--color-gold); color: var(--color-dark); }

/* 2-колоночная раскладка */
.anketa-content-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
/* min-width:0 — чтобы карусель/лента миниатюр не распирали колонку
   и не давали горизонтальный скролл страницы на мобильных */
.anketa-col-left,
.anketa-col-right { min-width: 0; }

/* ─── Галерея анкеты ─────────────────────────────────────────────────────── */
.anketa-gallery { position: relative; outline: none; min-width: 0; max-width: 100%; overflow: hidden; }

.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ededed;
}

.gallery-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: block;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Стрелки */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 0 0 3px;
  z-index: 3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, opacity .2s;
}
.gallery-nav:hover { background: rgba(0, 0, 0, .72); }
.gallery-nav--prev { left: 8px; }
.gallery-nav--next { right: 8px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }

/* Счётчик */
.gallery-counter {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}

/* Миниатюры */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) #eee;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  line-height: 0;
  opacity: .55;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, opacity .15s;
}
.gallery-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--color-gold); opacity: 1; }

/* ─── Видео ──────────────────────────────────────────────────────────────── */
.anketa-videos { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.anketa-video { width: 100%; border-radius: var(--radius); max-height: 300px; background: #000; }
.video-embed a { display: inline-block; padding: 10px 20px; background: var(--color-purple); color: #fff; border-radius: var(--radius); }

/* ─── Описание ───────────────────────────────────────────────────────────── */
.anketa-description {
  background: #f9f9f9;
  border-left: 3px solid var(--color-gold);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

/* ─── Контакты ───────────────────────────────────────────────────────────── */
.anketa-contacts { margin-bottom: 20px; }
.contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.phone-link {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  transition: color .2s;
}
.phone-link:hover { color: var(--color-gold); }
.tg-link {
  color: #229ed9;
  transition: opacity .2s;
}
.tg-link:hover { opacity: .7; }

.contact-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.btn-favorite-single {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  flex-shrink: 0;
}
.btn-favorite-single:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn-favorite-single.is-favorite { color: var(--color-gold); border-color: var(--color-gold); background: #fff8ec; }
.btn-close-tab {
  border: 2px solid var(--color-border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  border-radius: 8px;
  padding: 8px 16px;
  line-height: 1;
  white-space: nowrap;
}
.btn-close-tab:hover { border-color: #f44336; color: #f44336; }

.contact-avail,
.contact-metro { font-size: 14px; color: var(--color-gray); margin-top: 8px; }
.contact-metro { font-weight: 600; color: var(--color-dark); }

/* ─── Параметры ──────────────────────────────────────────────────────────── */
.params-table { width: 100%; border-collapse: collapse; }
.params-table tr + tr { border-top: 1px solid var(--color-border); }
.param-label {
  width: 180px;
  padding: 8px 12px 8px 0;
  color: var(--color-gray);
  font-size: 13px;
  vertical-align: top;
}
.param-value {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
}

/* ─── Цены ────────────────────────────────────────────────────────────────── */
.prices-table-wrap { overflow-x: auto; }
.prices-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px;
}
.prices-table th,
.prices-table td {
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--color-border);
  font-size: 14px;
}
.prices-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
}
.prices-table td:first-child { text-align: left; }
.prices-section-header td {
  background: #f5f5f5;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-gray);
  text-align: left;
}
.prices-table td strong { color: var(--color-gold); }
.prepayment-warning {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-gray);
  line-height: 1.6;
  background: #fff8e6;
  border-left: 3px solid var(--color-gold);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
}

/* ─── Услуги ─────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.services-col { }
.services-cat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-gray);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  flex-wrap: wrap;
}
.service-check { color: var(--color-green); font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.service-name  { flex: 1; }
a.service-name { color: inherit; text-decoration: none; cursor: pointer; }
a.service-name:hover { text-decoration: underline; }
.service-price { color: var(--color-gold); font-weight: 600; white-space: nowrap; }
.service-note  { flex-basis: 100%; margin-left: 18px; font-size: 11px; color: var(--color-gray); }

/* ─── Карта ──────────────────────────────────────────────────────────────── */
.anketa-map { margin-top: 24px; }
.map-container { height: 400px; border-radius: var(--radius); overflow: hidden; background: #eee; }
.map-buttons { display: flex; gap: 12px; margin-top: 12px; }

/* ─── Отзывы (на странице анкеты) ───────────────────────────────────────── */
.anketa-reviews { margin-top: 32px; }
.review-form-wrap { margin: 16px 0; background: #f9f9f9; border-radius: var(--radius); padding: 20px; }
.review-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--color-dark); }
.form-row input[type="text"],
.form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.star-rating { display: flex; gap: 4px; }
.star-btn {
  font-size: 28px;
  color: var(--color-gray-l);
  cursor: pointer;
  transition: color .15s;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.star-btn.active,
.star-btn:hover   { color: var(--color-gold); }
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 16px;
}
.radio-label input { accent-color: var(--color-gold); }
.review-form-msg {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: none;
}
.review-form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.review-form-msg.error   { background: #ffebee; color: #c62828; display: block; }

/* Список отзывов */
.reviews-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.review-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--color-border);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-nick  { font-weight: 700; font-size: 14px; }
.review-stars { color: var(--color-gold); font-size: 16px; }
.star--filled { color: var(--color-gold); }
.star--empty  { color: var(--color-gray-l); }
.review-date  { color: var(--color-gray); font-size: 12px; margin-left: auto; }
.review-type  { font-size: 12px; color: var(--color-gray); margin-bottom: 6px; }
.review-text  { font-size: 14px; line-height: 1.6; }
.no-reviews   { color: var(--color-gray); font-style: italic; }

/* Блок «Анкеты с таким номером» */
.same-phone-section { margin-top: 32px; }

/* ─── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .anketa-content-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .anketa-content-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .map-buttons { flex-wrap: wrap; }
  .anketa-name { font-size: 22px; }
  .prices-table { font-size: 13px; }

  /* Галерея: одно фото на экран, свайп + лента миниатюр снизу */
  .gallery-slide img { aspect-ratio: auto; height: 62vh; min-height: 320px; }
  .gallery-nav { width: 34px; height: 34px; font-size: 21px; }
  .gallery-thumbs { gap: 5px; }
  .gallery-thumb { width: 15vw; max-width: 64px; min-width: 44px; }
}
@media (hover: none) {
  /* На тач-устройствах стрелки не нужны — навигация свайпом и миниатюрами */
  .gallery-nav { display: none; }
}
