/* =============================================================
   ПГС78 — Project detail page styles
   ============================================================= */

.pd-back {
  padding: 32px 0 0;
}
.pd-back a {
  font-size: 14px;
  color: var(--ink-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pd-back a:hover { color: var(--ink-1000); text-decoration: none; }

.pd-hero { padding: 48px 0 64px; }
.pd-hero__head {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.pd-hero__title {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.pd-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-700);
}
.pd-hero__meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-100);
  padding-bottom: 12px;
}
.pd-hero__meta-row:last-child { border-bottom: 0; }
.pd-hero__meta-row span:first-child { color: var(--ink-500); }
.pd-hero__meta-row span:last-child {
  color: var(--ink-1000);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pd-hero__photo {
  height: 640px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 1023px) {
  .pd-hero__head { grid-template-columns: 1fr; gap: 24px; }
  .pd-hero__photo { height: 360px; }
}

/* Gallery */
.pd-gallery { padding: 80px 0; background: var(--surface-warm); }
.pd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pd-gallery__cell {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.pd-gallery__cell--wide { grid-column: span 2; aspect-ratio: 16 / 7; }
@media (max-width: 600px) {
  .pd-gallery__grid { grid-template-columns: 1fr; }
  .pd-gallery__cell--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* Description */
.pd-desc { padding: 120px 0; }
.pd-desc__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.pd-desc__title {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 24px 0 0;
}
.pd-desc__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  max-width: 60ch;
}
.pd-desc__body p + p { margin-top: 16px; }
@media (max-width: 1023px) { .pd-desc__inner { grid-template-columns: 1fr; gap: 32px; } }

/* Specs strip */
.pd-specs { padding: 80px 0; background: var(--surface-warm); }
.pd-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.pd-specs__item { border-top: 1px solid var(--ink-1000); padding-top: 24px; }
.pd-specs__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.pd-specs__value {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink-1000);
  font-variant-numeric: tabular-nums;
}
.pd-specs__sub { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
@media (max-width: 1023px) { .pd-specs__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .pd-specs__grid { grid-template-columns: 1fr; } }

/* Floor plans */
.pd-plans { padding: 120px 0; }
.pd-plans__head { max-width: 720px; margin-bottom: 48px; }
.pd-plans__title {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 24px 0 0;
}
.pd-plans__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pd-plans__card {
  background: var(--surface-warm);
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 32px;
}
.pd-plans__plan {
  aspect-ratio: 4 / 3;
  background: var(--surface-pure);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  font-size: 14px;
}
.pd-plans__caption { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.pd-plans__name { font-size: 17px; font-weight: 600; }
.pd-plans__area { font-size: 14px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
@media (max-width: 768px) { .pd-plans__grid { grid-template-columns: 1fr; } }

/* CTA strip */
.pd-cta { padding: 80px 0 120px; }
.pd-cta__inner {
  background: var(--surface-ink);
  color: #fff;
  border-radius: 16px;
  padding: 64px;
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 48px;
  align-items: center;
}
.pd-cta__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
.pd-cta__lead { margin-top: 16px; color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.5; max-width: 48ch; }
.pd-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pd-cta__actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.24); }
.pd-cta__actions .btn-ghost:hover { background: rgba(255,255,255,0.06); }
@media (max-width: 1023px) {
  .pd-cta__inner { grid-template-columns: 1fr; padding: 40px; }
  .pd-cta__actions { justify-content: flex-start; }
}

/* =============================================================
   What's included
   ============================================================= */
.pd-included { padding: 120px 0; background: var(--surface-warm); }
.pd-included__head { max-width: 720px; margin-bottom: 56px; }
.pd-included__title {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 24px 0 0;
}
.pd-included__lead { margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--ink-700); }

.pd-included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-included__col {
  background: var(--surface-pure);
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 32px;
}
.pd-included__col-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-1000);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-100);
}
.pd-included__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-included__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
}
.pd-included__list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23D89456' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
}
@media (max-width: 1023px) { .pd-included__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .pd-included__grid { grid-template-columns: 1fr; } }

/* Hero photo with background-position safety for full house visibility */
.pd-hero__photo--cover {
  background-position: center 40%;
}
