/* ============================================
   PRICE PAGE — hero-style aesthetic
   ============================================ */

/* ── Override body: warm gradient like hero ── */
body {
  background: var(--gradient-hero);
  min-height: 100vh;
  color: var(--color-dark);
}

/* ── Narrow page width (85% of max) ── */
.pcat,
.price-footer-section {
  width: 85%;
  max-width: calc(var(--max-width) * 0.85);
  margin-inline: auto;
}

/* ── Navigation: centered buttons, no background zone ── */
.price-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) 0 var(--space-4);
}

.price-nav--bottom {
  padding: var(--space-8) 0 var(--space-12);
}

/* Button size variant */
.btn--sm {
  padding: 10px 28px;
  font-size: 1rem;
}

/* ── Page title ── */
.price-page-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--color-dark);
  padding: var(--space-2) 0 var(--space-10);
  letter-spacing: -0.01em;
}

/* ── Price category card ── */
.pcat {
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(192, 132, 252, 0.1);
}

/* Surcharge: no gallery overflow needed */
.pcat--surcharge {
  overflow: visible;
}

/* ── Gallery: full card width, on top ── */
.pcat__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-6);
}

/* Portrait 2-col (Full Render, Layers) */
.pcat__gallery--portrait .art-thumb {
  aspect-ratio: 3 / 4;
}

/* Square 2-col (Chibi): equal size, no crop */
.pcat__gallery--square .art-thumb {
  aspect-ratio: 1;
}

.pcat__gallery--square .art-thumb img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.25);
}

/* Layers: single image centered, smaller */
.pcat__gallery--layers {
  display: flex;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(0, 0, 0, 0.03);
  grid-template-columns: unset;
}

/* Dakimakura: flex row, fixed equal height */
.pcat__gallery--daki {
  display: flex;
  gap: var(--space-3);
  grid-template-columns: unset;
}

/* ── Art thumb buttons ── */
.art-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  transition: transform var(--duration) var(--ease-out),
              filter var(--duration) var(--ease-out);
}

.art-thumb:hover {
  transform: scale(1.02);
  filter: brightness(1.06);
  z-index: 1;
}

.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dakimakura: equal fixed height, no crop needed if same format */
.art-thumb--daki {
  flex: 1;
  height: 460px;
}

.art-thumb--daki img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: rgba(255, 255, 255, 0.15);
}

/* Layers art: constrained width, natural aspect ratio preserved */
.art-thumb--layers {
  width: 84%;
  max-width: 720px;
}

.art-thumb--layers img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Info block below gallery ── */
.pcat__info {
  padding: var(--space-8);
}

.pcat__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: var(--space-6);
}

.pcat__desc {
  color: rgba(26, 26, 46, 0.6);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-top: var(--space-4);
}

.pcat__desc em {
  font-style: normal;
  color: var(--color-purple-dark);
  font-weight: 700;
}

/* ── Price table ── */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
  font-size: var(--text-2xl);
  color: var(--color-dark);
  vertical-align: middle;
}

.price-table td:first-child { padding-left: 0; }
.price-table tr:last-child td { border-bottom: none; }

.price-mark {
  color: var(--color-purple-dark);
  margin-right: var(--space-2);
}

.price-val {
  text-align: right;
  font-weight: 900;
  color: var(--color-purple-dark);
  white-space: nowrap;
  padding-right: var(--space-3);
}

/* Equal-width highlighted price badge — width fixed to widest value (10 000 ₽) */
.price-badge {
  display: inline-block;
  width: 155px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-purple-dark);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  padding: 5px 0;
}

.price-table tbody tr:hover td {
  background: rgba(192, 132, 252, 0.06);
}

.price-note {
  display: block;
  font-size: var(--text-lg);
  color: rgba(26, 26, 46, 0.45);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Surcharges ── */
.surcharge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.surcharge-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.surcharge-item__rate {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-purple-dark);
  min-width: 160px;
  flex-shrink: 0;
}

.surcharge-item__label {
  color: var(--color-dark);
  font-size: var(--text-base);
}

/* ── Footer grid ── */
.price-footer-section {
  padding: var(--space-4) 0 var(--space-4);
}

.price-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.pfooter-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: var(--space-8);
  box-shadow: 0 8px 32px rgba(192, 132, 252, 0.1);
}

.pfooter-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-6);
}

.pfooter-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--color-dark);
  font-size: var(--text-base);
}

.pfooter-card__note {
  color: var(--color-purple-dark);
  font-size: var(--text-base);
  font-weight: 800;
}

/* Centered contacts card */
.pfooter-card--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pfooter-socials {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.pfooter-socials a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}

.pfooter-socials a:hover {
  transform: scale(1.1) rotate(-6deg);
  opacity: 1;
}

.pfooter-socials img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Mobile ≤ 600px ── */
@media (max-width: 600px) {
  .pcat,
  .price-footer-section {
    width: 92%;
  }

  .price-page-title { font-size: 2.5rem; }

  /* Меньше внутренний отступ → больше места для таблицы */
  .pcat__info { padding: var(--space-4); }

  /* Уменьшаем шрифт таблицы и отступы ячеек */
  .price-table td {
    font-size: var(--text-lg);   /* 2rem → 1.25rem */
    padding: var(--space-2) var(--space-2);
  }

  /* Уменьшаем бейдж пропорционально */
  .price-badge {
    width: 110px;
    font-size: var(--text-lg);
    padding: 4px 0;
  }

  /* Подпись «арт по талию…» — чуть меньше чтобы не переносилась */
  .price-note {
    font-size: var(--text-sm);
  }

  /* Заголовок раздела и описание */
  .pcat__title { font-size: 1.6rem; }
  .pcat__desc  { font-size: var(--text-base); }

  .art-thumb--daki { height: 280px; }

  .art-thumb--layers { width: 100%; }

  .price-footer-grid { grid-template-columns: 1fr; }

  .surcharge-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .surcharge-item__rate {
    min-width: auto;
    font-size: var(--text-lg);
  }

  .pfooter-socials img { width: 44px; height: 44px; }
}

/* ── Tablet 601–1023px ── */
@media (min-width: 601px) and (max-width: 1023px) {
  .pcat,
  .price-footer-section {
    width: 90%;
  }

  .art-thumb--daki { height: 360px; }

  .art-thumb--layers { width: 90%; }
}
