/* ============================================================
   Promo Landing Pages — Shared Styles (акции)

   Signature concept: "наряд-заказ" — the work order a guild
   («артель») issues for a job — a price stub with a wax-seal
   mark, a numbered ledger of what's actually done and in what
   order, a printed hairline grid instead of soft app cards.
   Tighter corners than the main site on purpose: paper, not app.
   ============================================================ */

:root {
  --promo-r: 3px;
  --promo-paper: #FBF8F2;
  --promo-rule: rgba(29, 29, 31, 0.14);
  --promo-rule-light: rgba(255, 255, 255, 0.18);
}

/* ── Hero ── */

.promo-hero {
  background-color: var(--c-bg-dark);
  color: var(--c-text-light);
  padding-block: var(--s-4xl);
  position: relative;
  overflow: hidden;
}

.promo-hero__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-2xl);
}

@media (min-width: 900px) {
  .promo-hero__container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s-3xl);
    align-items: stretch;
  }
}

/* Ticket-stub badge: dashed border + rotated wax-seal mark */

.promo-stub {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-xs) var(--s-md);
  border: 1px dashed var(--promo-rule-light);
  border-radius: var(--radius-full-2);
  margin-bottom: var(--s-xl);
}

.promo-stub__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-plum-light);
  border-radius: 50%;
  color: var(--color-plum-light);
  font-family: var(--f-heading);
  font-weight: var(--fw-extrabold);
  font-size: 15px;
  transform: rotate(-9deg);
}

.promo-stub__text {
  font-family: var(--f-body);
  font-size: var(--f-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}

.promo-hero__title {
  font-family: var(--f-heading);
  font-size: var(--f-xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  letter-spacing: normal;
  color: var(--c-text-light);
  margin-bottom: var(--s-md);
}

@media (min-width: 768px) {
  .promo-hero__title { font-size: var(--f-2xl); }
}

.promo-hero__subtitle {
  font-family: var(--f-body);
  font-size: var(--f-base);
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-xl);
}

/* Price: set like a stamped ledger line, not a floating stat */

.promo-hero__price-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-2xs);
  padding-top: var(--s-lg);
  margin-bottom: var(--s-lg);
  border-top: 1px solid var(--promo-rule-light);
}

.promo-hero__price {
  font-family: var(--f-heading);
  font-size: var(--f-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--c-text-light);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.promo-hero__price-note {
  font-size: var(--f-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.promo-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  margin-bottom: var(--s-xl);
}

.promo-hero__stat {
  font-size: var(--f-xs);
  color: rgba(255, 255, 255, 0.55);
}

.promo-hero__stat strong {
  display: block;
  font-family: var(--f-heading);
  font-size: var(--f-base);
  font-weight: var(--fw-bold);
  color: var(--c-text-light);
}

.promo-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md);
}

.promo-hero__phone {
  font-family: var(--f-body);
  font-size: var(--f-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.promo-hero__phone:hover {
  color: var(--c-accent-light);
  border-color: var(--c-accent-light);
}

/* Photo: flush print edge, not a floating glassy card */

.promo-hero__photo-wrap {
  position: relative;
  border: 1px solid var(--promo-rule-light);
  overflow: hidden;
}

.promo-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  aspect-ratio: 4 / 5;
}

/* ── Ledger: "наряд-заказ" — the real 4-step sequence ── */

.promo-ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-sm);
  max-width: 640px;
  margin-bottom: var(--s-lg);
}

.promo-ledger-head__id {
  font-family: var(--f-body);
  font-size: var(--f-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}

.promo-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid var(--c-border);
}

.promo-ledger__row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-md);
  padding: var(--s-lg) var(--s-md);
  margin-inline: calc(-1 * var(--s-md));
  border-bottom: 1px solid var(--c-border);
  border-left: 2px solid transparent;
  transition: border-left-color var(--t-fast), background-color var(--t-fast);
}

@media (hover: hover) {
  .promo-ledger__row:hover {
    border-left-color: var(--c-accent);
    background-color: var(--c-bg-alt);
  }
}

.promo-ledger__num {
  font-family: var(--f-heading);
  font-size: var(--f-md);
  font-weight: var(--fw-extrabold);
  color: var(--c-accent-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.promo-ledger__title {
  display: block;
  font-family: var(--f-heading);
  font-size: var(--f-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--s-2xs);
}

.promo-ledger__desc {
  display: block;
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

.promo-ledger__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 640px;
  padding-top: var(--s-lg);
  margin-top: var(--s-2xs);
}

.promo-ledger__total-label {
  font-family: var(--f-body);
  font-size: var(--f-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.promo-ledger__total-price {
  font-family: var(--f-heading);
  font-size: var(--f-lg);
  font-weight: var(--fw-extrabold);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

/* ── Doctor split ── */

.promo-doctor {
  display: grid;
  gap: var(--s-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .promo-doctor { grid-template-columns: 220px 1fr; }
}

.promo-doctor__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--c-border);
  margin-inline: auto;
}

.promo-doctor__name {
  font-family: var(--f-heading);
  font-size: var(--f-md);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--s-2xs);
}

.promo-doctor__role {
  font-size: var(--f-sm);
  color: var(--c-accent);
  font-weight: var(--fw-medium);
  margin-bottom: var(--s-sm);
}

.promo-doctor__text {
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}

/* ── Pull-quote: full-bleed photo with an overlaid statement ── */

.promo-pullquote {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-bg-dark);
}

.promo-pullquote__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: promo-pullquote-breathe 24s ease-in-out infinite alternate;
}

@keyframes promo-pullquote-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-pullquote__photo { animation: none; }
}

.promo-pullquote__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(29, 29, 31, 0.92) 0%, rgba(29, 29, 31, 0.55) 45%, rgba(29, 29, 31, 0.15) 100%);
}

.promo-pullquote__content {
  position: relative;
  z-index: 1;
  padding-block: var(--s-3xl) var(--s-2xl);
}

.promo-pullquote__quote {
  font-family: var(--f-heading);
  font-weight: var(--fw-extrabold);
  font-size: var(--f-lg);
  line-height: 1.22;
  letter-spacing: normal;
  color: var(--c-text-light);
  max-width: 20ch;
  margin-bottom: var(--s-lg);
}

@media (min-width: 768px) {
  .promo-pullquote__quote { font-size: var(--f-xl); }
}

.promo-pullquote__text {
  font-size: var(--f-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  max-width: 62ch;
}

/* ── Gallery: asymmetric — one tall frame, two stacked ── */

.promo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-sm);
}

@media (min-width: 768px) {
  .promo-gallery {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  .promo-gallery > :first-child {
    grid-row: 1 / 3;
  }
}

.promo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-border);
}

@media (min-width: 768px) {
  .promo-gallery img { aspect-ratio: auto; }
}

/* ── Review cards ── */

.promo-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
  margin-bottom: var(--s-2xl);
}

@media (min-width: 768px) {
  .promo-review-grid { grid-template-columns: repeat(2, 1fr); }
}

.promo-review-card {
  padding: var(--s-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-accent);
}

.promo-review-card .reviews__stars {
  margin-bottom: var(--s-sm);
}

.promo-review-card__text {
  font-size: var(--f-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--s-md);
}

.promo-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2xs) var(--s-sm);
  padding-top: var(--s-sm);
  border-top: 1px solid var(--c-border);
}

.promo-review-card__author {
  font-family: var(--f-heading);
  font-size: var(--f-sm);
  font-weight: var(--fw-semibold);
  font-style: normal;
  color: var(--c-text);
}

.promo-review-card__date {
  font-size: var(--f-xs);
  color: var(--c-text-muted);
}

/* ── Reviews links ── */

.promo-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2xs);
  font-size: var(--f-sm);
  color: var(--c-text-muted);
}

@media (min-width: 640px) {
  .promo-reviews { flex-direction: row; justify-content: center; gap: var(--s-md); }
}

.promo-reviews a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── FAQ: reuse services.css accordion, but flush with the section divider ── */

.promo-faq {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  max-width: 720px;
}

/* ── Order form: printed voucher, not a glass card ── */

.promo-page .appointment::before,
.promo-page .appointment::after,
.promo-page .form-shell::before {
  display: none;
}

.promo-page .form-shell {
  background: var(--promo-paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: var(--s-xl);
  border-radius: 0;
  border: 1px solid var(--c-border);
  border-top: 3px double var(--promo-rule);
  box-shadow: none;
}

.promo-page .form-core {
  background: transparent;
  border-radius: 0;
}

/* ── Sticky mobile CTA bar ── */

.promo-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: var(--s-sm);
  padding: var(--s-sm) var(--s-md);
  background: var(--c-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.promo-sticky-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-buttons);
  color: var(--c-text-light);
}

.promo-sticky-cta__phone svg {
  width: 20px;
  height: 20px;
}

.promo-sticky-cta .btn {
  flex: 1;
  justify-content: center;
}

@media (min-width: 900px) {
  .promo-sticky-cta { display: none; }
}

/* Reserve space at the bottom on mobile so the sticky bar never covers content */
@media (max-width: 899px) {
  body.promo-page { padding-bottom: 76px; }
}
