/* ===================================================
   VARIANT H — «Тёмная студия» / Dark Studio
   Rubaeva МОПП wellness landing page
   =================================================== */

/* --- Design tokens scoped to .variant-h --- */
.variant-h {
  --bg: #141210;
  --surface: #1E1A16;
  --border: rgba(192, 160, 112, 0.16);
  --gold: #C0A070;
  --gold-light: #D4B896;
  --text: rgba(245, 240, 232, 0.90);
  --text-dim: rgba(245, 240, 232, 0.52);
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans: 'Onest', system-ui, sans-serif;
  --max: 760px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

/* Disable scroll-snap from base styles */
html:has(.variant-h) { scroll-snap-type: none !important; }

/* --- Header overrides for dark page --- */
.variant-h #site-header {
  background: rgba(20, 18, 16, 0.96);
  border-bottom-color: var(--border);
}
.variant-h .header-logo { color: var(--gold-light); }
.variant-h .header-nav a { color: var(--text-dim); }
.variant-h .header-nav a:hover { color: var(--gold); }
.variant-h .header-phone { color: var(--text); }
.variant-h .mobile-nav { background: var(--bg); }
.variant-h .mobile-nav nav a { color: var(--text); }
.variant-h .burger span { background: var(--text); }

/* --- Container --- */
.h-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px;
}

/* --- Section dividers --- */
.h-section + .h-section { border-top: 1px solid var(--border); }

/* --- Hero --- */
.h-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 66px;
}
.h-hero .h-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 80px;
  padding-bottom: 80px;
  /* Prevent flex children from escaping the container width */
  overflow: hidden;
  width: 100%;
}
/* All direct flex children must stay within container width */
.h-hero .h-container > * {
  max-width: 100%;
  min-width: 0;
}
.h-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  width: 100%;
}
.h-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  width: 100%;
  hyphens: none;
}
.h-gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.h-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 52ch;
  text-align: center;
}
.h-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.h-pill {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  padding: 7px 16px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* --- Buttons --- */
.btn-h-gold {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: #141210;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-h-gold:hover { background: var(--gold-light); }
.btn-h-gold:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
.btn-h-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-h-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-h-outline:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- Headings inside containers --- */
.h-container h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}
.h-container h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.h-container p {
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1em;
}
.h-container p:last-child { margin-bottom: 0; }

/* --- Section label (small gold uppercase) --- */
.h-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- Pain section checklist --- */
.h-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 36px;
  padding: 0;
}
.h-checklist li {
  display: flex;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.h-checklist li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}
.h-pivot {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-top: 8px;
  line-height: 1.5;
}

/* --- Method pillars --- */
.h-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}
.h-pillar {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}
.h-pillar h3 { margin-bottom: 6px; }
.h-pillar p { margin-bottom: 0; font-size: 0.98rem; }

/* --- Comparison table --- */
.h-table-wrap {
  overflow-x: auto;
  margin: 36px 0;
}
.h-table-caption {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.h-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.h-table th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
.h-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.h-table tr.h-highlight td {
  background: rgba(192, 160, 112, 0.08);
  color: var(--text);
  font-weight: 500;
}

/* --- Problems grid --- */
.h-problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.h-problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-problem-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.h-problem-card h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.h-problem-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* --- Session steps timeline --- */
.h-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
  position: relative;
}
.h-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.h-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.h-step:last-child { border-bottom: none; }
.h-step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.h-step-time {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.h-step h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.h-step p { font-size: 0.96rem; margin-bottom: 0; }

/* --- Pricing --- */
.h-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 16px;
}
.h-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-price-card.h-featured {
  border-color: var(--gold);
  position: relative;
}
.h-price-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.h-price-card h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.h-price-amount {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1.1;
}
.h-price-subdesc {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.h-price-duration {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.h-price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  margin: 8px 0 16px;
  padding: 0;
}
.h-price-card ul li {
  font-size: 0.86rem;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.h-price-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.h-price-online {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.h-price-online-info { display: flex; flex-direction: column; gap: 4px; }
.h-price-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* --- About --- */
.h-about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin: 32px 0;
}
.h-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.h-portrait {
  width: 100%;
  max-width: 260px;
  display: block;
  filter: sepia(10%) contrast(1.02);
  border-radius: 2px;
}
.h-about-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.h-about-contact-mode {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.h-about-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.h-about-contact a:hover { color: var(--gold); }
.h-about-contact .h-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.6;
}
.h-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.h-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
}
.h-stat span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Booking form --- */
.h-form-wrap {
  max-width: 520px;
  margin: 32px auto 0;
}
.h-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-form label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}
.h-form input:not([type="checkbox"]),
.h-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.h-form input:not([type="checkbox"])::placeholder,
.h-form textarea::placeholder { color: rgba(245, 240, 232, 0.28); }
.h-form input:not([type="checkbox"]):focus,
.h-form textarea:focus { border-color: var(--gold); }
.h-consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.h-consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.h-consent-row span {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.h-consent-row a { color: var(--gold); text-decoration: underline; }
.h-field-error {
  font-size: 0.75rem;
  color: #e05555;
  display: block;
  min-height: 1em;
}
.h-thankyou {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.h-thankyou h3 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.h-thankyou p { font-size: 0.95rem; margin-bottom: 0.5em; }
.h-contact-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin: 20px auto 0;
}
.h-direct-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

/* --- FAQ --- */
.h-faq-list { margin: 0; }
.h-faq-item { border-bottom: 1px solid var(--border); }
.h-faq-item summary {
  padding: 18px 0;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  line-height: 1.5;
}
.h-faq-item summary::-webkit-details-marker { display: none; }
.h-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
}
.h-faq-item[open] summary::after { content: '−'; }
.h-faq-answer { padding: 0 0 18px; }
.h-faq-answer p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

/* --- Testimonials --- */
.h-testimonials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}
.h-testimonials figure {
  padding: 20px 0 20px 20px;
  border-left: 2px solid var(--border);
  margin: 0;
}
.h-testimonials blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 8px;
}
.h-testimonials cite {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: normal;
}

/* --- Locations --- */
.h-locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.h-location {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}
.h-location-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.h-location p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* --- Footer overrides for dark page --- */
.variant-h #footer { background: #0E0C0A; }
.variant-h .footer-grid {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}
.variant-h .footer-brand .footer-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}
.variant-h .footer-brand .footer-spec,
.variant-h .footer-brand .footer-geo {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.7;
  display: block;
}
.variant-h .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
}
.variant-h .footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.variant-h .footer-links a:hover { color: var(--gold); }
.variant-h .footer-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
}
.variant-h .footer-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.variant-h .footer-socials a:hover { color: var(--gold); }
.variant-h .fs-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}
.variant-h .footer-bottom {
  border-top: 1px solid rgba(192, 160, 112, 0.1);
  padding: 16px 32px;
}
.variant-h .footer-bottom-line {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.25);
  align-items: center;
}
.variant-h .footer-bottom-line a {
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
}
.variant-h .footer-bottom-line a:hover { color: var(--gold); }

/* --- Anchor helper --- */
.anchor-only {
  display: block;
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* --- Responsive breakpoints --- */
/* FAQ focus */
.h-faq-item summary:focus-visible {
  outline: none;
  color: var(--gold);
}
/* Form focus */
.h-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .h-container { padding: 64px 24px; }
  .h-problems-grid { grid-template-columns: repeat(2, 1fr); }
  .h-pricing-grid { grid-template-columns: 1fr; }
  .h-about-grid { grid-template-columns: 1fr; }
  .h-locations { grid-template-columns: 1fr; }
  .h-price-online { grid-template-columns: 1fr; }
  .variant-h .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }
  .variant-h .footer-bottom { padding: 16px 24px; }
}
@media (max-width: 480px) {
  /* Tighter padding on small phones */
  .h-container { padding: 52px 20px; }
  .h-hero .h-container { padding-top: 60px; padding-bottom: 60px; }
  /* Reduce hero label letter-spacing so it fits without overflow */
  .h-label { letter-spacing: 0.08em; }
  /* Smaller h1 so "Безоперационная подтяжка" wraps cleanly at word boundary */
  .h-hero h1 { font-size: 1.9rem; }
  /* Full-width CTA in hero for easy tapping */
  .h-hero .btn-h-gold {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  /* Pill wrap tightening */
  .h-pill { font-size: 0.7rem; padding: 6px 12px; }
  /* Problems — keep 2-col but smaller cards */
  .h-problems-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .h-problem-card { padding: 14px 12px; }
  /* Stats wrap tighter */
  .h-stats { gap: 20px; }
  /* Session step numbers smaller */
  .h-step-num { font-size: 1.6rem; }
  /* Section label line shorter */
  .h-section-label::before { width: 20px; }
}
