/* =========================================================
   Iryna Cosmos Psychology — design tokens
   ========================================================= */
:root{
  /* palette — warm ivory / marble + rose-gold + deep charcoal, from the brand mark */
  --ink:            #211b15;
  --ink-soft:       #6b5f52;
  --ink-faint:      #93887a;

  --bg:             #faf6ef;
  --bg-alt:         #f3ead9;
  --surface:        #ffffff;

  --line:           #e6d9c4;
  --line-soft:      #efe6d5;

  --gold:           #b1854f;
  --gold-light:     #d9b686;
  --gold-deep:      #8a6432;
  --gold-wash:      #f6ecdc;

  --dark:           #1a140f;
  --dark-soft:      #2a2119;
  --cream-on-dark:  #f3e9d8;
  --cream-on-dark-soft: #cdbfa9;

  --danger:         #a4432c;

  /* type scale */
  --fs-eyebrow:     0.8rem;
  --fs-body:        1.0625rem;
  --fs-lead:        1.25rem;
  --fs-h4:          1.375rem;
  --fs-h3:          1.9rem;
  --fs-h2:          2.6rem;
  --fs-h1:          clamp(2.6rem, 5vw + 1rem, 4.6rem);

  /* spacing (8pt rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  --section-pad: clamp(4rem, 8vw, 8rem);
  --container: 1180px;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px -30px rgba(26, 20, 15, 0.35);
  --shadow-card: 0 18px 40px -24px rgba(26, 20, 15, 0.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-s: 220ms;
  --dur-m: 420ms;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:             #16110d;
    --bg-alt:         #1d1610;
    --surface:        #201911;
    --ink:            #f3e9d8;
    --ink-soft:       #cdbfa9;
    --ink-faint:      #9c8f7c;
    --line:           #3a2f22;
    --line-soft:      #2c2419;
    --gold-wash:      #2a2013;
    --dark:           #0f0b08;
    --dark-soft:      #1a140f;
  }
}
:root[data-theme="dark"]{
  --bg:             #16110d;
  --bg-alt:         #1d1610;
  --surface:        #201911;
  --ink:            #f3e9d8;
  --ink-soft:       #cdbfa9;
  --ink-faint:      #9c8f7c;
  --line:           #3a2f22;
  --line-soft:      #2c2419;
  --gold-wash:      #2a2013;
  --dark:           #0f0b08;
  --dark-soft:      #1a140f;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; }

h1, h2, h3, h4{
  font-family: "Cormorant", "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.005em;
}
h1{ font-size: var(--fs-h1); line-height: 1.06; font-weight: 500; }
h2{ font-size: var(--fs-h2); line-height: 1.15; }
h3{ font-size: var(--fs-h3); line-height: 1.25; }
h4{ font-size: var(--fs-h4); line-height: 1.35; }

p{ margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child{ margin-bottom: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section{ position: relative; scroll-margin-top: var(--header-h, 96px); }
:root{ --header-h: 96px; }
@media (max-width: 900px){ :root{ --header-h: 76px; } }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
:root[data-theme="dark"] .eyebrow,
.on-dark .eyebrow{ color: var(--gold-light); }

.eyebrow::before{
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead{ font-size: var(--fs-lead); color: var(--ink); font-weight: 400; }

.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  --btn-fg: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2em;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: "Montserrat", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible{ outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn svg{ width: 1.05em; height: 1.05em; flex: none; }

.btn-primary{
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold-light) 18%,
    var(--gold) 32%,
    #1c150e 50%,
    var(--gold) 68%,
    var(--gold-light) 82%,
    var(--gold-deep) 100%
  );
  background-size: 260% 100%;
  animation: btn-shimmer 7s linear infinite;
  color: #fbf3e6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  box-shadow: 0 16px 30px -14px rgba(138, 100, 50, 0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 22px 38px -14px rgba(138, 100, 50, 0.62); animation-play-state: paused; }
.btn-primary:active{ transform: translateY(0); }
@keyframes btn-shimmer{
  0%{ background-position: 0% 50%; }
  100%{ background-position: -260% 50%; }
}
@media (prefers-reduced-motion: reduce){ .btn-primary{ animation: none; } }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-deep); }

.on-dark .btn-ghost{ color: var(--cream-on-dark); border-color: rgba(243, 233, 216, 0.28); }
.on-dark .btn-ghost:hover{ border-color: var(--gold-light); color: var(--gold-light); }

.btn-block{ width: 100%; }

@media (max-width: 480px){
  .btn{ white-space: normal; text-align: center; padding: 0.85em 1.4em; font-size: 0.72rem; letter-spacing: 0.1em; }
  .final-cta .btn{ width: 100%; }
}

/* =========================================================
   Header
   ========================================================= */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  z-index: 200;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce){ .scroll-progress{ display: none; } }

.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  color: #fbf5ea;
  background: transparent;
  transition: padding-top var(--dur-m) var(--ease), padding-bottom var(--dur-m) var(--ease);
  border-bottom: 1px solid transparent;
}
/* Always transparent, over video or over light sections alike — text carries
   a shadow instead of leaning on an opaque bar for contrast. */
.site-header,
.site-header .main-nav a,
.site-header .brand-word strong{ text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.site-header .main-nav a{ color: rgba(251,245,234,0.88); }
.site-header .main-nav a:hover{ color: #fbf5ea; }
.site-header .nav-toggle{ color: #fbf5ea; border-color: rgba(251,245,234,0.5); background: rgba(20,16,12,0.25); }
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-scrolled{ padding-top: 0.7rem; padding-bottom: 0.7rem; }

.brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img{ width: 42px; height: 42px; border-radius: 50%; transition: transform var(--dur-m) var(--ease); }
.brand:hover img{ transform: rotate(8deg) scale(1.06); }
.brand-word{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-word strong{
  font-family: "Cormorant", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-word span{
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}

.main-nav{ display: flex; align-items: center; gap: 2.1rem; }
.main-nav a{
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: color var(--dur-s) var(--ease);
  position: relative;
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-s) var(--ease);
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
}
.nav-toggle svg{ width: 18px; height: 18px; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
  }
  .main-nav a{ font-size: 1.15rem; }
  body.nav-open .main-nav{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle{ display: inline-flex; }
  .header-actions .btn-primary{ display: none; }
  body.nav-open .header-actions .btn-primary{
    display: inline-flex; position: fixed; z-index: 101; bottom: 2rem; left: 50%; transform: translateX(-50%);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0806;
}
.hero-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(6,5,4,0.62) 0%, rgba(6,5,4,0.5) 55%, transparent 100%),
    linear-gradient(180deg, rgba(8,6,5,0.72) 0%, rgba(8,6,5,0.58) 32%, rgba(8,6,5,0.66) 68%, rgba(8,6,5,0.92) 100%);
}
.hero-inner{
  position: relative; z-index: 2;
  text-align: center;
  padding-block: clamp(7rem, 14vw, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow{ color: var(--gold-light); justify-content: center; margin-bottom: var(--sp-5); }
.hero-title{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  color: #fbf5ea;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-sub{
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--cream-on-dark-soft);
  max-width: 34ch;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero-actions{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: var(--sp-5); width: 100%; }
@media (max-width: 560px){
  .hero-actions{ flex-direction: column; }
  .hero-actions .btn{ width: 100%; white-space: normal; text-align: center; padding: 0.85em 1.4em; font-size: 0.72rem; letter-spacing: 0.1em; }
}
.btn-on-video{ color: #fbf5ea; border-color: rgba(251,245,234,0.4); }
.btn-on-video:hover{ border-color: var(--gold-light); color: var(--gold-light); }
.hero-note{ font-size: 0.8rem; color: rgba(251,245,234,0.65); display: flex; align-items: center; gap: 0.5em; justify-content: center; }
.hero-note svg{ width: 1.1em; height: 1.1em; color: var(--gold-light); flex: none; }

.hero-scroll{
  position: absolute; z-index: 2; bottom: clamp(1.2rem, 3vw, 2.2rem); left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(251,245,234,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fbf5ea;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll svg{ width: 16px; height: 16px; }
@keyframes bob{ 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,6px); } }
@media (prefers-reduced-motion: reduce){ .hero-scroll{ animation: none; } }

/* =========================================================
   Section shells
   ========================================================= */
.section{ padding-block: var(--section-pad); }
.section-alt{ background: var(--bg-alt); }
.section-dark{
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--cream-on-dark);
}
.section-dark p{ color: var(--cream-on-dark-soft); }
.section-dark h2, .section-dark h3, .section-dark h4{ color: var(--cream-on-dark); }

.section-head{ max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head .eyebrow{ margin-bottom: var(--sp-3); }
.section-head h2{ margin-bottom: var(--sp-3); }

.divider-orbit{
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}
.divider-orbit::before, .divider-orbit::after{ content:""; width: 44px; height: 1px; background: currentColor; opacity: 0.5; }
.divider-orbit svg{ width: 16px; height: 16px; }

/* =========================================================
   Long-form editorial column (pain / why / about)
   ========================================================= */
.container.narrow{ max-width: 760px; }
.container.narrow > .eyebrow{ margin-bottom: var(--sp-3); }
.container.narrow > h2{ margin-bottom: var(--sp-5); max-width: 20ch; }
.prose p{ font-size: 1.06rem; }
.prose p strong{ color: var(--ink); font-weight: 600; }
.prose .lead{ font-size: 1.2rem; }
.on-dark .prose p strong{ color: var(--cream-on-dark); }
.prose-callout{
  margin-top: var(--sp-6);
  font-family: "Cormorant", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}
.signature{ margin-top: var(--sp-5); font-family: "Cormorant", serif; font-style: italic; font-size: 1.3rem; color: var(--gold-deep); }

/* =========================================================
   Reframe / quote band
   ========================================================= */
.twinkle-star{
  position: absolute;
  color: var(--gold-light);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.twinkle-star svg{ width: 100%; height: 100%; display: block; }

.quote-band{
  position: relative;
  text-align: center;
  padding: var(--sp-7) 0 0;
}
.quote-band blockquote{
  margin: 0 auto;
  max-width: 820px;
  font-family: "Cormorant", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream-on-dark);
}
.quote-band cite{ display: block; margin-top: var(--sp-5); font-style: normal; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }

/* =========================================================
   Method / ЭСД card
   ========================================================= */
.method-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.method-visual{ position: relative; }
.esd-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--dur-m) var(--ease);
}
.esd-card:hover{ transform: translateY(-4px); }
.esd-scale span{ transform-origin: bottom; opacity: 0; transform: scaleY(0.3); }
@media (prefers-reduced-motion: reduce){ .esd-scale span{ opacity: 1; transform: none; } }
.esd-card .esd-label{ font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--sp-2); }
.esd-card h3{ margin-bottom: var(--sp-4); }
.esd-scale{ display: flex; gap: 6px; margin-bottom: var(--sp-4); }
.esd-scale span{
  flex: 1; height: 34px; border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-wash), var(--line-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--ink-faint); font-weight: 600;
}
.esd-scale span.active{ background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #241b0f; }
.esd-card .esd-q{ font-family: "Cormorant", serif; font-size: 1.25rem; font-style: italic; color: var(--ink); }

.method-copy ul{ display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-5); }
.method-copy li{ display: flex; gap: 0.9rem; }
.method-copy li svg{ width: 20px; height: 20px; flex: none; margin-top: 0.2em; color: var(--gold); }
.method-copy li p{ margin: 0; }
.method-copy li strong{ color: var(--ink); }

@media (max-width: 900px){ .method-grid{ grid-template-columns: 1fr; } .method-visual{ order: -1; } }

/* =========================================================
   Steps ("as it works")
   ========================================================= */
.steps{ counter-reset: step; display: flex; flex-direction: column; position: relative; }
.steps-line{
  position: absolute;
  left: 44px; top: 0; bottom: 0; width: 2px;
  background: var(--line);
  z-index: 0;
}
.steps-line-fill{
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
}
@media (max-width: 640px){ .steps-line{ left: 27px; } }
.step{
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  z-index: 1;
}
.step:last-child{ border-bottom: 1px solid var(--line); }
.step::before{
  content: counter(step, decimal-leading-zero);
  font-family: "Cormorant", serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.step-body h4{ margin-bottom: var(--sp-2); }
.step-body p{ max-width: 62ch; }
.step-tag{
  display: inline-block; margin-top: var(--sp-3);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-wash);
  padding: 0.35em 0.9em; border-radius: var(--radius-pill);
}

@media (max-width: 640px){
  .step{ grid-template-columns: 56px 1fr; }
  .step::before{ font-size: 1.7rem; }
}


/* =========================================================
   ЭСД Planner cover
   ========================================================= */
.planner-cover{
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.8deg);
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.planner-cover:hover{ transform: rotate(0deg) scale(1.03); box-shadow: 0 30px 70px -30px rgba(26,20,15,0.45); }
.planner-cover img{ display: block; width: 100%; height: auto; }

/* =========================================================
   ЭСД Planner actions
   ========================================================= */
.planner-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--sp-5); }
@media (max-width: 480px){
  .planner-actions{ flex-direction: column; }
  .planner-actions .btn{ width: 100%; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{ max-width: 820px; margin-inline: auto; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: var(--sp-5);
  background: none; border: none; text-align: left; cursor: pointer;
  font-family: "Cormorant", serif; font-size: 1.3rem; color: var(--ink);
}
.faq-q .faq-index{ font-size: 0.75rem; font-family: "Montserrat", sans-serif; color: var(--gold-deep); letter-spacing: 0.1em; margin-right: 0.9rem; }
.faq-icon{ width: 26px; height: 26px; flex: none; position: relative; }
.faq-icon::before, .faq-icon::after{
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold-deep);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}
.faq-icon::before{ width: 16px; height: 1.5px; }
.faq-icon::after{ width: 1.5px; height: 16px; }
.faq-item.is-open .faq-icon::after{ transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a{
  overflow: hidden;
  height: 0;
}
.faq-a-inner{ padding-bottom: var(--sp-5); max-width: 68ch; }

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta{
  text-align: center;
  /* Equal, modest padding top/bottom — a small extra sliver on top clears
     the fixed header without turning this into a mostly-empty full-screen
     slide. Flat constant on purpose, not var(--header-h): that depends on
     JS having measured the header at the right moment, which is one more
     thing that can race depending on where this page is embedded. */
  padding-top: calc(var(--sp-7) + 5rem);
  padding-bottom: var(--sp-7);
  position: relative;
}
.final-cta .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.final-cta h2{
  max-width: 720px;
  text-align: center;
  background: linear-gradient(100deg, var(--cream-on-dark) 20%, var(--gold-light) 42%, var(--cream-on-dark) 64%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heading-shine 8s linear infinite;
}
@media (prefers-reduced-motion: reduce){ .final-cta h2{ animation: none; background: none; color: var(--cream-on-dark); } }
@keyframes heading-shine{
  0%{ background-position: 0% 50%; }
  100%{ background-position: -240% 50%; }
}

/* soft breathing aura behind the whole block */
.cta-aura{
  position: absolute;
  left: 50%; top: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217,182,134,0.16) 0%, transparent 68%);
  z-index: 0;
  animation: aura-breathe 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aura-breathe{
  0%, 100%{ opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50%{ opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* slow-turning orbit rings, echoing the logo's Psi/orbit motif */
.cta-ring{
  position: absolute;
  left: 50%; top: 50%;
  border: 1px solid rgba(217,182,134,0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.cta-ring-1{ width: min(56vw, 520px); aspect-ratio: 1; animation: ring-spin 44s linear infinite; }
.cta-ring-2{ width: min(38vw, 360px); aspect-ratio: 1; border-style: dashed; border-color: rgba(217,182,134,0.16); animation: ring-spin 60s linear infinite reverse; }
@keyframes ring-spin{ to{ transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .cta-aura, .cta-ring{ animation: none; }
}

.final-cta .btn-primary{ position: relative; }
.final-cta .btn-primary::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-pill);
  background: radial-gradient(ellipse at center, rgba(217,182,134,0.55), transparent 70%);
  z-index: -1;
  animation: cta-pulse 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){ .final-cta .btn-primary::after{ animation: none; } }
@keyframes cta-pulse{
  0%, 100%{ opacity: 0.35; transform: scale(0.92); }
  50%{ opacity: 0.9; transform: scale(1.12); }
}
.final-cta .btn{ margin-top: var(--sp-2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ padding-block: var(--sp-7) var(--sp-6); border-top: 1px solid rgba(243,233,216,0.12); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.footer-brand{ display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--sp-3); }
.footer-brand img{ width: 36px; height: 36px; border-radius: 50%; }
.footer-brand strong{ font-family: "Cormorant", serif; font-size: 1.15rem; }
.footer-col h5{ font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--sp-3); }
.footer-col ul{ display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a{ color: var(--cream-on-dark-soft); font-size: 0.92rem; transition: color var(--dur-s) var(--ease); }
.footer-col a:hover{ color: var(--gold-light); }
.footer-disclaimer{ font-size: 0.82rem; color: var(--cream-on-dark-soft); opacity: 0.85; max-width: 70ch; padding-top: var(--sp-5); border-top: 1px solid rgba(243,233,216,0.12); }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: var(--sp-5); font-size: 0.8rem; color: var(--cream-on-dark-soft); }
.footer-bottom a{ color: var(--cream-on-dark-soft); text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur-s) var(--ease); }
.footer-bottom a:hover{ color: var(--gold-light); }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   Reveal-on-scroll
   Visible by default — content must never depend on JS/CDN
   succeeding to be readable. animate() (called from main.js only
   once an element scrolls into view) briefly takes over opacity/
   transform via WAAPI for the entrance flourish; if that script
   never runs (blocked CDN, slow network, JS error), the element
   was never hidden in the first place.
   ========================================================= */
.reveal{ opacity: 1; transform: none; }

/* =========================================================
   Misc
   ========================================================= */
.skip-link{
  position: absolute; left: 1rem; top: -60px;
  background: var(--ink); color: var(--bg);
  padding: 0.8em 1.2em; border-radius: var(--radius-s);
  z-index: 200; transition: top var(--dur-s) var(--ease);
}
.skip-link:focus{ top: 1rem; }

::selection{ background: var(--gold-light); color: #241b0f; }

.badge-row{ display:flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-4); }
.mini-badge{
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.4em 0.9em; display: inline-flex; align-items: center; gap: 0.4em;
}
.mini-badge svg{ width: 14px; height: 14px; color: var(--gold); }

/* =========================================================
   Legal page (Договір оферти)
   ========================================================= */
.legal-page{ padding-top: calc(var(--section-pad) + 2rem); }
.legal-page .eyebrow{ margin-bottom: var(--sp-3); }
.legal-page h1{ font-size: clamp(2rem, 3vw + 1rem, 2.8rem); line-height: 1.15; margin-bottom: var(--sp-6); }
.legal-prose{ max-width: 72ch; }
.legal-prose h3{
  font-size: 1.35rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--gold-deep);
}
.legal-prose h3:first-of-type{ margin-top: var(--sp-6); }
.legal-prose p{ font-size: 0.98rem; }
.legal-prose a{ color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal-prose a:hover{ color: var(--gold); }
.legal-requisites{
  margin-top: var(--sp-6);
  max-width: 72ch;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.legal-requisites p{ margin-bottom: 0.4em; color: var(--ink-soft); font-size: 0.95rem; }
.legal-requisites p:first-child{ color: var(--gold-deep); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: var(--sp-2); }
.legal-requisites-sign{ margin-top: var(--sp-3) !important; padding-top: var(--sp-3); border-top: 1px solid var(--line); font-family: "Cormorant", serif; font-style: italic; font-size: 1.15rem; color: var(--ink) !important; }
