/**
 * single.css — страница отдельной анкеты (single-anketa.php)
 * 3 блока: Hero (фото+имя+цены+кнопки), Детали (параметры/допы/программы), CTA
 */

/* ==================== HERO ==================== */

.vph *, .vph *::before, .vph *::after { box-sizing: border-box; margin: 0; padding: 0; }

.vph {
  background: #F5F0EA;
  padding: 56px 40px 64px;
  font-family: 'Raleway', sans-serif;
  color: #1A1A1A;
}

.vph__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}

/* Плашка New / Premier / VIP — рендерится через versal_render_badge() в functions.php */
.v-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.v-badge--new {
  background: rgba(245, 240, 234, 0.95);
  color: #1A1A1A;
}

.v-badge--premier {
  background: #8B7355;
  color: #F5F0EA;
}

.v-badge--vip {
  background: #1A1A1A;
  color: #8B7355;
  border: 1px solid #8B7355;
  padding: 5px 11px;
}

.vph__main-photo {
  position: relative;
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  background: rgba(139, 115, 85, 0.07);
}

.vph__main-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.vph__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.vph__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s;
  background: rgba(139, 115, 85, 0.07);
  border: none;
  padding: 0;
}

.vph__thumb:hover, .vph__thumb--active { opacity: 1; }

.vph__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.vph__thumb:hover img { transform: scale(1.05); }

.vph__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 600; /* ИЗМЕНЕНО по запросу заказчика: было 300 — просили жирнее */
  letter-spacing: 3px;
  line-height: 1;
  color: #1A1A1A;
  margin-bottom: 6px;
}

.vph__meta {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 24px;
}

.vph__divider {
  width: 30px;
  height: 1px;
  background: #8B7355;
  margin-bottom: 24px;
}

.vph__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: #555;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}

/* ИЗМЕНЕНО: 3 колонки → 2, третьей цены («с доставкой») больше нет */
.vph__prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(139, 115, 85, 0.2);
  border: 1px solid rgba(139, 115, 85, 0.2);
  margin-bottom: 28px;
}

.vph__price-item {
  background: #F5F0EA;
  padding: 16px 14px;
  text-align: center;
}

.vph__price-label {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 8px;
}

.vph__price-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #1A1A1A;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.vph__price-unit {
  display: block;
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
}

.vph__buttons { display: flex; flex-direction: column; gap: 10px; }

.vph__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.vph__btn--tg { background: #1A1A1A; color: #F5F0EA !important; border: 1px solid #1A1A1A; }
.vph__btn--tg:hover { background: transparent; color: #1A1A1A !important; }
.vph__btn--tg svg path { stroke: #F5F0EA !important; transition: stroke 0.3s; }
.vph__btn--tg:hover svg path { stroke: #1A1A1A !important; }
.vph__btn--phone { background: transparent; color: #1A1A1A !important; border: 1px solid rgba(139, 115, 85, 0.3); }
.vph__btn--phone:hover { border-color: #1A1A1A; }

@media (max-width: 900px) {
  .vph__inner { grid-template-columns: 1fr; gap: 36px; }
  .vph__main-photo { max-height: none; }
  .vph__main-photo img { height: auto; aspect-ratio: 3 / 4; }
  .vph__name { font-size: 42px; }
  .vph { padding: 40px 24px 48px; }
}

@media (max-width: 480px) {
  .vph { padding: 32px 20px 40px; }
  .vph__name { font-size: 34px; }
  .vph__price-val { font-size: 17px; }
}

/* ==================== ДЕТАЛИ ==================== */

.vpd *, .vpd *::before, .vpd *::after { box-sizing: border-box; margin: 0; padding: 0; }

.vpd {
  background: #F5F0EA;
  padding: 0 40px 72px;
  font-family: 'Raleway', sans-serif;
  color: #1A1A1A;
  border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.vpd__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(139, 115, 85, 0.2);
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.vpd__col { background: #F5F0EA; padding: 40px 36px; }

.vpd__col-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 24px;
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.vpd__params { display: flex; flex-direction: column; gap: 12px; }

.vpd__param { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.vpd__param-key {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.vpd__param-dots {
  flex: 1;
  height: 1px;
  background: rgba(139, 115, 85, 0.15);
  margin-bottom: 2px;
}

.vpd__param-val {
  font-family: 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Используется и для списка допов, и для списка программ — одинаковый паттерн строки */
.vpd__services, .vpd__programs { display: flex; flex-direction: column; gap: 10px; }

.vpd__service, .vpd__program {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #444;
  line-height: 1.4;
  justify-content: space-between;
}

.vpd__service-name, .vpd__program-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vpd__service-icon, .vpd__program-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(139, 115, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vpd__service-price, .vpd__program-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: #8B7355;
  white-space: nowrap;
  flex-shrink: 0;
}

.vpd__empty {
  font-size: 12px;
  font-style: italic;
  color: #aaa;
  font-family: 'Cormorant Garamond', serif;
}

@media (max-width: 900px) {
  .vpd { padding: 0 24px 56px; }
  .vpd__inner { grid-template-columns: 1fr 1fr; }
  .vpd__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .vpd { padding: 0 20px 48px; }
  .vpd__inner { grid-template-columns: 1fr; }
  .vpd__col:last-child { grid-column: auto; }
  .vpd__col { padding: 28px 24px; }
}

/* ==================== CTA ==================== */

.vpcta *, .vpcta *::before, .vpcta *::after { box-sizing: border-box; margin: 0; padding: 0; }

.vpcta {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
}

.vpcta__bg { position: absolute; inset: 0; z-index: 0; }
.vpcta__bg::before { content: ''; position: absolute; inset: 0; background: #141210; }

.vpcta__bg img {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%; /* ИЗМЕНЕНО: было center top — обрезало голову, показывало потолок сверху кадра */
  display: block;
}

.vpcta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,18,16,1) 0%, rgba(20,18,16,1) 35%, rgba(20,18,16,0.5) 50%, rgba(20,18,16,0) 65%);
}

.vpcta__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 52px 40px;
}

.vpcta__content { max-width: 400px; }

.vpcta__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 14px;
  display: block;
}

.vpcta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #F5F0EA;
  line-height: 1.15;
  margin-bottom: 16px;
}

.vpcta__divider { width: 30px; height: 1px; background: #8B7355; margin-bottom: 16px; }

.vpcta__text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: rgba(245, 240, 234, 0.6);
  margin-bottom: 32px;
}

.vpcta__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.vpcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.vpcta__btn--primary { background: #F5F0EA !important; color: #1A1A1A !important; border: 1px solid #F5F0EA !important; }
.vpcta__btn--primary:hover { background: transparent !important; color: #F5F0EA !important; }
.vpcta__btn--primary svg path { stroke: #1A1A1A !important; transition: stroke 0.3s; }
.vpcta__btn--primary:hover svg path { stroke: #F5F0EA !important; }
.vpcta__btn--outline { background: transparent !important; color: #F5F0EA !important; border: 1px solid rgba(245,240,234,0.35) !important; }
.vpcta__btn--outline:hover { border-color: #F5F0EA !important; background: rgba(245,240,234,0.08) !important; color: #F5F0EA !important; }

@media (max-width: 768px) {
  .vpcta { min-height: 260px; }
  .vpcta__bg img { width: 100%; }
  .vpcta__bg::after { background: rgba(20, 18, 16, 0.82); }
  .vpcta__inner { padding: 40px 24px; }
  .vpcta__content { max-width: 100%; }
  .vpcta__title { font-size: 30px; }
  .vpcta__buttons { flex-direction: column; }
  .vpcta__btn { justify-content: center; }
}
