/* ════════════════════════════════════════════
   ДИЗАЙН-ТОКЕНИ
════════════════════════════════════════════ */
:root {
  --bg:         #F8F5F0;
  --text:       #2D2926;
  --muted:      #8A847C;
  --gold:       #B99252;
  --gold-dim:   rgba(185,146,82,.18);
  --gold-faint: rgba(185,146,82,.07);
  --ease:       cubic-bezier(.25,.46,.45,.94);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

/* ════════════════════════════════════════════
   БАЗОВІ СТИЛІ
════════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Тонка зернистість — глибина без шуму */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ════════════════════════════════════════════
   REVEAL ON SCROLL
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.active { opacity:1; transform:translateY(0); }

/* ════════════════════════════════════════════
   ЗОЛОТИЙ РОЗДІЛЮВАЧ
════════════════════════════════════════════ */
.hr-gold {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: .42;
  margin: 0 auto;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 28px;
  position: relative;
  overflow: hidden;
}

/* Ледь помітне сяяння за текстом */
.hero::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,146,82,.042) 0%, transparent 62%);
  pointer-events: none;
}

.hero-tag {
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.6rem;
  animation: fadeUp .85s .1s both var(--ease);
  position: relative;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.4rem;
  animation: fadeUp .85s .3s both var(--ease);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  animation: fadeUp .85s .52s both var(--ease);
  position: relative;
}

/* Вертикальна лінія-запрошення */
.hero-line {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(185,146,82,.6), transparent);
  animation: fadeUp .85s .75s both var(--ease), linePulse 2.4s 1.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes linePulse {
  0%,100% { opacity:.3; }
  50%     { opacity:.7; }
}

/* ════════════════════════════════════════════
   БЛОК ТИШІ
════════════════════════════════════════════ */
.silence-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  position: relative;
}

/* Вибір тривалості */
.dur-row {
  display: flex;
  gap: 10px;
  margin-bottom: 3.5rem;
  transition: opacity .5s ease, transform .5s ease;
}
.dur-row.gone { opacity:0; pointer-events:none; transform:translateY(-8px); }

.dur-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  padding: 10px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
  border-radius: 2px;
}
.dur-btn:hover { border-color: var(--gold); color: var(--text); }
.dur-btn.on {
  border-color: var(--gold);
  color: var(--text);
  background: var(--gold-faint);
}

/* Орб */
.orb-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.8rem;
}

/* Зовнішня дихаюча аура */
.orb-aura {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,146,82,.1) 0%, transparent 66%);
  pointer-events: none;
  will-change: transform, opacity;
}

/* SVG кільце прогресу */
.orb-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  overflow: visible;
}
.ring-track { fill:none; stroke:var(--gold-dim); stroke-width:1; }
.ring-bar {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

/* Центральна точка */
.orb-dot {
  position: relative;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
  will-change: transform, opacity;
}

/* Анімації дихання: 4.5с вдих / 2.8с утримання / 3.7с видих */
.orb-wrap.breathing .orb-aura {
  animation: auraBreath 14s ease-in-out infinite;
}
.orb-wrap.breathing .orb-dot {
  animation: dotBreath 14s ease-in-out infinite;
}
@keyframes auraBreath {
  0%,100% { transform:scale(.82); opacity:.45; }
  32%     { transform:scale(1.3);  opacity:1;   }
  52%     { transform:scale(1.3);  opacity:1;   }
  78%     { transform:scale(.82);  opacity:.45; }
}
@keyframes dotBreath {
  0%,100% { transform:scale(.7);  opacity:.38; }
  32%     { transform:scale(1.65); opacity:.9;  }
  52%     { transform:scale(1.65); opacity:.9;  }
  78%     { transform:scale(.7);   opacity:.38; }
}

/* Текст фази */
.silence-phase {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  min-height: 2.2rem;
  margin-bottom: .9rem;
  transition: opacity .65s ease;
}
.silence-phase.fading { opacity:0; }

/* Зворотний відлік */
.silence-clock {
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--muted);
  min-height: 1.1rem;
  text-align: center;
  margin-bottom: 2.8rem;
  font-variant-numeric: tabular-nums;
}

/* Кнопка входу */
.btn-enter {
  background: transparent;
  border: 1px solid rgba(185,146,82,.36);
  color: var(--text);
  font-family: var(--sans);
  font-size: .84rem;
  letter-spacing: .07em;
  padding: 13px 38px;
  cursor: pointer;
  transition: border-color .4s ease, background .4s ease,
              opacity .4s ease, transform .4s ease;
}
.btn-enter:hover { border-color: var(--gold); background: var(--gold-faint); }
.btn-enter.gone  { opacity:0; pointer-events:none; transform:translateY(8px); }

/* ════════════════════════════════════════════
   СЛОВО ДНЯ
════════════════════════════════════════════ */
.word-section {
  padding: clamp(80px, 14vh, 150px) 28px;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.word-eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.word-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.72;
  margin-bottom: 2rem;
}
.word-cite {
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  font-style: normal;
}

/* ════════════════════════════════════════════
   МОЛИТОВНІ ПРОХАННЯ
════════════════════════════════════════════ */
.intentions-section {
  padding: clamp(60px, 10vh, 110px) 28px clamp(100px, 18vh, 200px);
  max-width: 600px;
  margin: 0 auto;
}
.intent-eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}
.intent-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.intent-sub {
  font-size: .87rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto 4rem;
}

/* Форма */
.intent-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--gold-dim);
}
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(45,41,38,.15);
  padding: 9px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  transition: border-bottom-color .35s ease;
  resize: none;
  outline: none;
  line-height: 1.6;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
}
.char-hint {
  position: absolute;
  right: 0;
  bottom: -18px;
  font-size: .7rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s ease;
}
.field textarea:focus ~ .char-hint { opacity: .65; }

.btn-submit {
  align-self: flex-start;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 13px 36px;
  font-family: var(--sans);
  font-size: .83rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .4s ease;
}
.btn-submit:hover { background: var(--gold); }

.submit-ok {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .55s ease;
}
.submit-ok.show { max-height: 3rem; opacity: 1; }

/* Картки прохань */
.cards-list { display: flex; flex-direction: column; }

.empty-msg {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
  padding: 1.5rem 0;
  opacity: .6;
}

.int-card {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--gold-dim);
  animation: cardSlide .5s var(--ease) both;
}
.int-card:first-child { border-top: 1px solid var(--gold-dim); }

@keyframes cardSlide {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.int-dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .62rem;
  opacity: .52;
}
.int-name {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .42rem;
}
.int-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   БЛАГОСЛОВЕННЯ
════════════════════════════════════════════ */
.closing {
  padding: clamp(60px, 12vh, 110px) 28px clamp(80px, 14vh, 140px);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.closing-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-style: italic;
  color: var(--muted);
  line-height: 1.78;
  margin-top: 2.8rem;
}
.closing-cross {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  opacity: .38;
  margin-top: 2.2rem;
}

/* ════════════════════════════════════════════
   МОБІЛЬНИЙ
════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title    { font-size: 1.9rem; }
  .hero::before  { width:320px; height:320px; }
  .orb-wrap      { width:180px; height:180px; }
  .silence-phase { font-size: 1.3rem; }
  .dur-btn       { padding:8px 16px; font-size:.74rem; }
  .word-text     { font-size: 1.25rem; }
  .intent-title  { font-size: 1.75rem; }
  .int-text      { font-size: 1.08rem; }
}
