/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ============================================================
   STILEGANT — SHARED DESIGN SYSTEM CSS
   Migrated from Customize → Additional CSS on 2026-07-01.
   GeneratePress automatically enqueues this file (handle:
   generate-child) whenever a child theme is active — no manual
   enqueue needed in functions.php.
   Corrected 2026-07-01 — fixed three issues from the old
   Additional CSS version:
     1. @font-face declared 'Playfair' but every usage referenced
        'Playfair Display' — headings were silently falling back
        to a system serif font, Bulgarian locl letterforms not
        rendering. Font-family name corrected to match usage.
     2. Font src paths were relative ('../fonts/...'), which
        resolves against the current page URL when injected
        inline — breaks depending on page depth. Corrected to
        absolute paths (/wp-content/fonts/).
     3. Fonts were static, single-weight (400) files — every
        font-weight:600+ rule (h1, h2, h3, buttons, both
        wordmarks) was rendering via browser-synthesized faux
        bold, not a true bold face. Replaced with true variable
        fonts (Playfair Display 400–900, Manrope 200–800),
        subsetted to Cyrillic+Latin via fonttools, preserving
        the locl OpenType feature (--layout-features='*' at
        subset time). See IMPLEMENTATION-LOG → Phase I/J.
   ============================================================ */

/* ============================================================
   1. FONTS
   ============================================================ */
/* Manrope — cyrillic + latin, TRUE variable font (weight 200–800) */
@font-face {
  font-display: swap;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  src: url('/wp-content/fonts/manrope-variable-subset.woff') format('woff');
}

/* Playfair Display — cyrillic + latin, TRUE variable font (weight 400–900) */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  src: url('/wp-content/fonts/playfair-display-variable-subset.woff') format('woff');
}

/* ============================================================
   2. PALETTE — custom properties
   ============================================================ */

:root {
  /* Core */
  --c-bg:        #FBF9F6;
  --c-ink:       #2B2825;
  --c-gold:      #9A7D4A;
  --c-secondary: #6B6258;
  --c-divider:   #DCD5C9;

  /* Functional */
  --c-gold-deep:       #7E6536;
  --c-error:           #A23A2C;
  --c-error-surface:   #F6E7E3;
  --c-success:         #4F6B43;
  --c-success-surface: #E9EFE4;
  --c-warning:         #8F5A14;
  --c-warning-surface: #F6ECDA;
  --c-info:            #4C6173;
  --c-disabled:        #B8B0A4;
}


/* ============================================================
   3. TYPE SCALE
   ============================================================ */

body {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-ink);
  background-color: var(--c-bg);
}

h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h3, .h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6;
}

.caption {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-secondary);
}

.overline {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-secondary);
}

.overline--gold {
  color: var(--c-gold);
}

@media (max-width: 700px) {
  body { font-size: 17px; }
}


/* ============================================================
   4. COMPONENTS
   ============================================================ */

/* --- Links --- */
a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, border-color 0.2s ease;
}
a:hover {
  color: var(--c-gold-deep);
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* --- Buttons --- */
/* .btn is an alias for .btn-primary — page bodies use the shorter class name;
   header.html uses .btn-primary directly. Both need to resolve to the same style. */
.btn-primary,
.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-bg);
  background-color: var(--c-ink);
  padding: 0.85em 1.75em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-primary:active,
.btn:active {
  transform: translateY(1px);
}
.btn-primary:hover,
.btn:hover {
  background-color: var(--c-gold-deep);
  color: var(--c-bg);
}

.btn-text {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--c-gold);
}
.btn-text:hover {
  color: var(--c-gold-deep);
  border-bottom-width: 2px;
}

/* --- Gold hairline --- */
.hairline {
  border: none;
  border-top: 1.5px solid var(--c-gold);
  margin: 0;
}

/* --- Pull-quote --- */
.pull-quote {
  border-left: 1.5px solid var(--c-gold);
  padding-left: 1.75rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: var(--c-secondary);
}
.pull-quote__attribution {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--c-secondary);
}

/* --- Dark section --- */
.section--dark {
  background-color: var(--c-ink);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4rem);
}
.section--dark .overline { color: var(--c-gold); }
.section--dark h2        { color: var(--c-bg); }
.section--dark p         { color: rgba(251,249,246,0.7); }
.section--dark .pull-quote {
  color: rgba(251,249,246,0.7);
}

/* --- Left-rail layout --- */
.left-rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 700px) {
  .left-rail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Diff-grid (Защо Stilegant cards) --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.diff-grid__card {
  border-top: 1.5px solid var(--c-gold);
  padding-top: 1.25rem;
}
@media (max-width: 700px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* --- Pillar grid --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--c-gold);
}
.pillar-grid__item {
  padding: 1.5rem;
  border-right: 1px solid var(--c-divider);
}
.pillar-grid__item:last-child {
  border-right: none;
}
@media (max-width: 700px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-grid__item {
    border-right: none;
    border-bottom: 1px solid var(--c-divider);
  }
  .pillar-grid__item:last-child { border-bottom: none; }
}

/* --- Hero two-column split --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 700px) {
  .hero-split { grid-template-columns: 1fr; }
}

/* --- Status / feedback --- */
.msg--error   { color: var(--c-error);   background: var(--c-error-surface);   padding: 0.75em 1em; }
.msg--success { color: var(--c-success); background: var(--c-success-surface); padding: 0.75em 1em; }
.msg--warning { color: var(--c-warning); background: var(--c-warning-surface); padding: 0.75em 1em; }

/* --- Site header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background-color: var(--c-bg);
}

.site-header__wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__nav a:not(.btn-primary) {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}

.site-header__nav a:not(.btn-primary):hover {
  border-bottom-color: var(--c-gold);
}

/* GeneratePress's own Customizer output (#generate-style-inline-css) sets
   `.site-header a { color: #2B2825; }` at specificity (0,1,1), which beats the
   plain `.btn-primary` rule (0,1,0) above and made the header CTA text invisible
   (dark text on its own dark background). Re-assert here at (0,2,1). */
.site-header a.btn-primary,
.site-header a.btn-primary:hover {
  color: var(--c-bg);
}

/* Mobile: wordmark + „Нашият подход" on row one, full-width CTA below.
   display:contents lifts the nav's children into the header's wrapping
   flex row — no markup change to the Block Element needed. */
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; row-gap: 0.9rem; padding: 1rem 1.5rem; }
  .site-header__nav { display: contents; }
  .site-header__nav .btn-primary { flex-basis: 100%; text-align: center; }
}

/* --- Site footer ---
   Scoped to footer.site-footer, not .site-footer, because GeneratePress's own
   Site Footer block element wraps output in <div class="site-footer">
   — an unscoped selector doubles the border-top/padding onto both. */
footer.site-footer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background-color: var(--c-bg);
  border-top: 1.5px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.site-footer__wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--c-ink);
  display: block;
}

.site-footer__hairline {
  width: 3rem;
  margin: 0.75rem auto;
}

.site-footer__descriptor {
  display: block;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.site-footer__legal a,
.site-footer__secondary a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-secondary);
  text-decoration: none;
  border-bottom: none;
}

.site-footer__legal a:hover,
.site-footer__secondary a:hover {
  color: var(--c-gold-deep);
}

.site-footer__secondary {
  display: flex;
  gap: 2rem;
}


/* ============================================================
   5. RESET & CONTAINER
   Added 2026-07-01 — this whole layer (containers, page sections,
   grids) was missing entirely. Only shared tokens/components above
   existed; nothing styled the actual page structure. See
   IMPLEMENTATION-LOG → Phase K.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Generic vertical rhythm for sections carrying class="section" */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

hr.rule {
  border: none;
  border-top: 1.5px solid var(--c-gold);
  margin: clamp(2rem, 4vw, 3rem) 0;
}


/* ============================================================
   6. HOMEPAGE — HERO
   ============================================================ */

.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2rem;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.hero-pull {
  border-left: 1.5px solid var(--c-gold);
  padding-left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
  color: var(--c-secondary);
}
.hero-pull footer {
  margin-top: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--c-secondary);
}

.hero-rule {
  display: block;
  height: 1.5px;
  background: var(--c-gold);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 700px) {
  .hero-layout,
  .hero-bottom { grid-template-columns: 1fr; }
}


/* ============================================================
   7. HOMEPAGE — ЗА КОГО (dark section)
   ============================================================ */

.who {
  background-color: var(--c-ink);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.who .overline { color: var(--c-gold); }
.who h2 { color: var(--c-bg); max-width: 24ch; }
.who-body p { color: rgba(251,249,246,0.7); max-width: 65ch; }


/* ============================================================
   8. LEFT-RAIL SECTIONS (Какво правим / Подходът)
   ============================================================ */

.rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 700px) {
  .rail { grid-template-columns: 1fr; gap: 1rem; }
}

.rail-subhead {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 1rem;
}

.approach-head { margin-bottom: 1rem; }
.approach-intro {
  color: var(--c-ink);
  margin-bottom: 2rem;
  max-width: 60ch;
}


/* ============================================================
   9. ЗАЩО STILEGANT (diff grid)
   ============================================================ */

.diff-grid > .diff-item {
  border-top: 1.5px solid var(--c-gold);
  padding-top: 1.25rem;
}


/* ============================================================
   10. ПОДХОДЪТ pillars
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--c-gold);
  margin-top: 2rem;
}
.pillar {
  padding: 1.5rem;
  border-right: 1px solid var(--c-divider);
}
.pillar:last-child { border-right: none; }
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--c-divider); }
  .pillar:last-child { border-bottom: none; }
}


/* ============================================================
   11. TESTIMONIALS (both pages)
   ============================================================ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testi-card {
  border-left: 1.5px solid var(--c-gold);
  padding-left: 1.5rem;
  position: relative;
}
.testi-gold { display: none; } /* accent already carried by testi-card border-left */
.testi-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
}
.testi-attr {
  font-size: 13px;
  color: var(--c-secondary);
  font-weight: 500;
}


/* ============================================================
   12. CTA BAND (both pages)
   ============================================================ */

.cta-band {
  background-color: var(--c-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  border-top: 1.5px solid var(--c-divider);
}
.cta-band-inner h2 { margin-bottom: 1.5rem; }
.cta-band-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-secondary {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--c-gold);
}
.cta-secondary:hover { color: var(--c-gold-deep); }


/* ============================================================
   13. НАШИЯТ ПОДХОД — ИНТРО
   ============================================================ */

.intro {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .intro-layout { grid-template-columns: 1fr; }
}
.intro-lead {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--c-ink);
}


/* ============================================================
   14. ПЕТТЕ ИЗМЕРЕНИЯ (dim-list)
   ============================================================ */

.dimensions { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.dim-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.dim-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--c-divider);
}
.dim-item:first-child { border-top: none; padding-top: 0; }
@media (max-width: 700px) {
  .dim-item { grid-template-columns: 1fr; gap: 1rem; }
}
.dim-label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.dim-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-gold);
}
.dim-content h3 { margin-bottom: 0.75rem; }
.dim-content p { margin-bottom: 1rem; max-width: 65ch; }
.dim-content p:last-of-type { margin-bottom: 0; }
.dim-proof {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background-color: var(--c-bg);
  border: 1px solid var(--c-divider);
}
.dim-proof-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  margin-bottom: 0.5rem;
}


/* ============================================================
   15. ПРИМЕР ОТ РАБОТАТА (proof block)
   ============================================================ */

.proof-block {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background-color: var(--c-bg);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .proof-grid { grid-template-columns: 1fr; }
}
.proof-card figcaption {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--c-secondary);
}


/* ============================================================
   16. ЦЕНИ (pricing)
   ============================================================ */

.pricing { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--c-gold);
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-tier {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--c-divider);
  display: flex;
  flex-direction: column;
}
.pricing-tier:last-child { border-right: none; }
.pricing-tier.is-flagship {
  background-color: var(--c-bg);
  border: 1.5px solid var(--c-gold);
}
@media (max-width: 900px) {
  .pricing-tier { border-right: none; border-bottom: 1px solid var(--c-divider); }
  .pricing-tier:last-child { border-bottom: none; }
}
.tier-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  font-weight: 600;
}
.tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}
.tier-price { font-size: 1.75rem; font-weight: 600; }
.tier-price-bgn {
  font-size: 13px;
  color: var(--c-secondary);
  margin-bottom: 1rem;
}
.tier-divider {
  display: block;
  height: 1px;
  background-color: var(--c-divider);
  margin: 1rem 0;
}
.tier-includes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 14px;
  margin-bottom: 1rem;
}
.tier-desc {
  font-size: 14px;
  color: var(--c-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.tier-cta { margin-top: auto; }
.tier-cta .btn { display: block; text-align: center; }


/* ============================================================
   17. КЛУБ (dark section)
   ============================================================ */

.klub {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background-color: var(--c-ink);
}
.klub .overline { color: var(--c-gold); }
.klub h2 { color: var(--c-bg); }
.klub-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .klub-body { grid-template-columns: 1fr; }
}
.klub-text p {
  color: rgba(251,249,246,0.7);
  margin-bottom: 1rem;
}
.klub-text p:last-child { margin-bottom: 0; }
.klub-pull .pull-quote { color: rgba(251,249,246,0.7); }


/* ============================================================
   18. ЧЕСТИ ВЪПРОСИ (FAQ accordion)
   NOTE: expects existing JS to toggle aria-expanded on .faq-btn
   (see scripts/nashiat-podhod.footer.html) — CSS only responds
   to that attribute, does not itself add click behaviour.
   ============================================================ */

.objections { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--c-divider); }
.faq-item { border-bottom: 1px solid var(--c-divider); }
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.faq-icon {
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--c-gold);
}
.faq-icon::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.faq-icon::after {
  width: 1.5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}
.faq-btn[aria-expanded="true"] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-btn[aria-expanded="true"] + .faq-body {
  grid-template-rows: 1fr;
}
.faq-answer {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 1.25rem; /* hidden while collapsed; animates in with the row */
  color: var(--c-secondary);
  font-size: 15px;
  line-height: 1.6;
}


/* ============================================================
   19. LEGAL PAGES (.stl-legal)
   Shared layout for the four legal pages (pravo-na-otkaz,
   obshti-usloviya, politika-za-poveritelnost,
   politika-za-biskvitki). Added 2026-07-04 — migrated from
   inline <style> blocks in the two policy pages; pravo/obshti
   previously used undefined .legal-page classes.
   ============================================================ */

.stl-legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.1rem, 4vw, 1.5rem);
  font-size: 18px;
  line-height: 1.7;
}
.stl-legal h1 {
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.12;
  margin-bottom: 0.4rem;
}
.stl-legal .stl-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin: 0 0 1.4rem;
}
.stl-legal .stl-rule {
  height: 0;
  border: 0;
  border-top: 1.5px solid var(--c-gold);
  margin: 1.6rem 0 2rem;
}
.stl-legal .stl-lead {
  font-size: 21px;
  line-height: 1.6;
  margin: 0 0 2rem;
}
.stl-legal h2 {
  font-size: clamp(23px, 3.4vw, 28px);
  line-height: 1.2;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--c-divider);
}
.stl-legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.stl-legal h2 .stl-num {
  color: var(--c-gold-deep);
  font-size: 0.8em;
  margin-right: 0.5rem;
}
.stl-legal h3 {
  font-size: 18px;
  margin: 1.6rem 0 0.4rem;
}
.stl-legal p {
  margin: 0 0 1rem;
}
.stl-legal ul,
.stl-legal ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
.stl-legal ul { list-style: disc; } /* global reset strips ul list-style */
.stl-legal li { margin: 0 0 0.55rem; }

/* Section-wrapped pages (pravo-na-otkaz, obshti-usloviya):
   dividers live on the <section>, not the h2, because every
   section's h2 is :first-of-type within its parent. */
.stl-legal section {
  border-top: 1px solid var(--c-divider);
  padding-top: 1.6rem;
  margin-top: 2.6rem;
}
.stl-legal .legal-toc + section {
  border-top: 0;
  padding-top: 0;
}
.stl-legal section h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.stl-legal .legal-toc {
  margin-bottom: 1rem;
}
.stl-legal .legal-toc ol {
  font-size: 15px;
}

