/* ============================================================
   style.css — спільні стилі hypoxia.kiev.ua
   Змінюй тут — оновлюється на всіх сторінках
   ============================================================ */

/* ── Змінні ── */
:root {
  --sky-deep:  #03182e;
  --sky-pale:  #60b4e8;
  --sky-glow:  #a8d8f5;
  --white:     #f0f8ff;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sky-deep);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Фіксований фон ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #0d4a7a 0%, #061e38 55%, #020d1a 100%);
}
.stars { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--d,4s) ease-in-out infinite var(--delay,0s); opacity: 0;
}
@keyframes twinkle {
  0%,100%{opacity:0;transform:scale(.8)} 50%{opacity:var(--op,.6);transform:scale(1.2)}
}
.aurora {
  position: fixed; top: 0; left: -20%; width: 140%; height: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,transparent 0%,rgba(26,111,168,.08) 30%,rgba(96,180,232,.12) 55%,transparent 100%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  filter: blur(30px);
}
@keyframes aurora-drift {
  0%{transform:translateX(0) scaleY(1);opacity:.7} 100%{transform:translateX(5%) scaleY(1.3);opacity:1}
}
.mountains { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 4; pointer-events: none; }
.mountains svg { width: 100%; height: auto; display: block; }
.mist-1 {
  position: fixed; bottom: 0; left: -10%; width: 120%; height: 100px; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg,transparent 0%,rgba(10,58,92,.3) 100%);
  filter: blur(18px); animation: mist-drift 25s ease-in-out infinite alternate;
}
@keyframes mist-drift { 0%{transform:translateX(0)} 100%{transform:translateX(4%)} }
@keyframes fade-in { from{opacity:0} to{opacity:1} }

/* ── Верхня навігація ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 60px; padding: 0 clamp(1.5rem,5vw,4rem);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(3,24,46,.75);
  border-bottom: 1px solid rgba(96,180,232,.08);
}
.top-nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; flex-shrink: 0;
}
.top-nav-logo svg { width: 28px; height: 28px; }
.top-nav-logo-text {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .05em;
  background: linear-gradient(135deg,#f0f8ff,#60b4e8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.top-nav-links {
  display: flex; align-items: center; gap: .15rem;
}
.top-nav-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .42rem .78rem; border-radius: 100px;
  text-decoration: none; font-size: .76rem; font-weight: 400; letter-spacing: .03em;
  color: rgba(160,210,245,.6); border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s; white-space: nowrap;
}
.top-nav-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.top-nav-link:hover  { color: #a8d8f5; background: rgba(96,180,232,.07); }
.top-nav-link.active { color: #a8d8f5; background: rgba(96,180,232,.11); border-color: rgba(96,180,232,.2); }

/* Іконки соцмереж у навігації */
.top-nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: rgba(160,210,245,.45);
  transition: color .2s, background .2s;
  text-decoration: none; flex-shrink: 0;
}
.top-nav-social:hover { color: var(--sky-glow); background: rgba(96,180,232,.1); }
.top-nav-social svg { display: block; }

/* Кнопка "Записатися" — виділена ── */
.top-nav-book {
  display: flex; align-items: center; gap: .45rem;
  padding: .42rem 1rem; border-radius: 100px;
  background: rgba(96,180,232,.15);
  border: 1px solid rgba(96,180,232,.4);
  color: var(--sky-glow);
  text-decoration: none; font-size: .76rem; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap;
  transition: all .2s; margin-left: .4rem;
}
.top-nav-book:hover { background: rgba(96,180,232,.28); border-color: rgba(96,180,232,.7); color: var(--white); }
.top-nav-book.active { background: rgba(96,180,232,.25); border-color: rgba(96,180,232,.6); }
.top-nav-book svg { flex-shrink: 0; }

/* Мобільна адаптація навігації */
@media (max-width: 700px) {
  .top-nav-logo-text { display: none; }
  .top-nav-link span { display: none; }
  .top-nav-link { padding: .42rem .55rem; }
  .top-nav-link svg { width: 16px; height: 16px; }
  .top-nav-book span { display: none; }
  .top-nav-book { padding: .42rem .6rem; margin-left: .2rem; }
}
@media (max-width: 400px) {
  .top-nav-social { width: 28px; height: 28px; }
}

/* ── CTA-блок ── */
.cta-block {
  background: rgba(10,40,70,.5);
  border: 1px solid rgba(96,180,232,.2);
  border-radius: 20px;
  padding: clamp(2rem,4vw,2.8rem);
  text-align: center;
  backdrop-filter: blur(14px);
}
.cta-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem,3vw,1.7rem); letter-spacing: -.01em;
  background: linear-gradient(135deg,var(--white),var(--sky-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .7rem;
}
.cta-sub {
  font-weight: 300; font-size: .95rem; line-height: 1.6;
  color: rgba(160,210,245,.65); margin-bottom: 1.6rem;
}

/* Головна CTA-кнопка запису */
.cta-book-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem; border-radius: 14px;
  background: linear-gradient(135deg,rgba(26,111,168,.7),rgba(14,60,110,.8));
  border: 1px solid rgba(96,180,232,.45);
  color: var(--sky-glow); text-decoration: none;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .03em;
  transition: all .25s; margin-bottom: 1.6rem;
}
.cta-book-btn:hover {
  background: linear-gradient(135deg,rgba(36,131,188,.8),rgba(20,80,140,.9));
  border-color: rgba(96,180,232,.7);
  color: var(--white); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,80,160,.3);
}

/* Роздільник між кнопкою і телефонами */
.cta-divider {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(96,180,232,.3); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.cta-divider::before, .cta-divider::after {
  content: ''; display: block; width: 40px; height: 1px;
  background: rgba(96,180,232,.15);
}

.contact-links { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.contact-person { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.contact-link {
  display: flex; align-items: center; gap: .55rem;
  color: rgba(160,210,245,.6); text-decoration: none;
  font-size: clamp(.88rem,1.8vw,.95rem);
  transition: color .2s, gap .2s;
}
.contact-link:hover { color: var(--sky-glow); gap: .8rem; }
.contact-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.contact-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(96,180,232,.45);
}

/* Соцмережі в CTA */
.cta-social {
  display: flex; gap: 1.2rem; justify-content: center;
  margin-bottom: 1.4rem;
}
.cta-social-link {
  display: flex; align-items: center; gap: .45rem;
  color: rgba(160,210,245,.45); text-decoration: none;
  font-size: .8rem; transition: color .2s;
}
.cta-social-link:hover { color: var(--sky-pale); }

.institute-note {
  margin-top: 1rem; font-size: .7rem; letter-spacing: .07em;
  color: rgba(96,180,232,.3);
}
.institute-note a { color: rgba(96,180,232,.4); text-decoration: none; transition: color .2s; }
.institute-note a:hover { color: var(--sky-pale); }

/* ── Нижня навігація (page-nav) ── */
.page-nav { max-width: 780px; margin: 0 auto; padding: clamp(1.5rem,4vw,3rem) clamp(1.5rem,5vw,3rem) clamp(5rem,12vw,9rem); }
.page-nav-title {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(96,180,232,.4); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.page-nav-title::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(96,180,232,.35); }
.page-nav-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.page-nav-card {
  display: flex; flex-direction: column; gap: .7rem;
  background: rgba(10,40,70,.45); border: 1px solid rgba(96,180,232,.15);
  border-radius: 18px; padding: 1.3rem 1.2rem 1.1rem;
  text-decoration: none; backdrop-filter: blur(12px);
  transition: border-color .25s, transform .25s;
}
.page-nav-card:hover { border-color: rgba(96,180,232,.35); transform: translateY(-3px); }
.page-nav-card.active { border-color: rgba(96,180,232,.3); background: rgba(96,180,232,.08); }
.page-nav-card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(26,111,168,.2); border: 1px solid rgba(96,180,232,.16);
  display: flex; align-items: center; justify-content: center;
}
.page-nav-card-icon svg { width: 18px; height: 18px; }
.page-nav-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .88rem; color: #a8d8f5; line-height: 1.3; }
.page-nav-card-sub { font-size: .75rem; font-weight: 300; color: rgba(160,210,245,.5); line-height: 1.4; flex: 1; }
.page-nav-card-arrow {
  display: flex; align-items: center; gap: .3rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(96,180,232,.4); margin-top: .3rem;
  transition: color .25s, gap .25s;
}
.page-nav-card:hover .page-nav-card-arrow { color: rgba(96,180,232,.7); gap: .5rem; }
.page-nav-card-arrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Адаптив ── */
@media (max-width: 680px) {
  .page-nav-grid { grid-template-columns: repeat(2,1fr); }
  .contact-links { gap: 1.5rem; }
}
@media (max-width: 400px) {
  .page-nav-grid { gap: .6rem; }
  .page-nav-card-sub { display: none; }
}

/* ── FAQ Section ── */
.faq-section {
  max-width: 780px; margin: 0 auto;
  padding: 6rem 1.5rem 4rem; text-align: center;
}
.faq-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  background: linear-gradient(135deg, var(--white), var(--sky-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
}
.faq-subtitle {
  color: rgba(160,210,245,.65); font-size: 0.95rem;
  margin-bottom: 3rem; line-height: 1.5;
}
.faq-list {
  text-align: left; display: flex; flex-direction: column; gap: 0.8rem;
}
.faq-item {
  background: rgba(10,40,70,.45);
  border: 1px solid rgba(96,180,232,.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: rgba(96,180,232,.3); }

/* Скидаємо стандартний маркер браузера */
.faq-question {
  list-style: none; cursor: pointer;
  padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #a8d8f5; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; } /* Chrome/Safari */
.faq-question:hover { color: var(--white); }

/* Кастомна стрілка */
.faq-question::after {
  content: '▾'; font-size: 1.1rem; color: rgba(96,180,232,.5);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1); flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg); color: var(--sky-glow);
}

/* Анімація відповіді */
.faq-answer {
  padding: 0 1.4rem; color: rgba(160,210,245,.7); font-size: 0.9rem; line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), padding 0.3s ease, opacity 0.25s ease;
}
/* Важливо: компенсуємо ваш глобальний reset */
.faq-answer p { margin-bottom: 0.6em; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-item[open] .faq-answer {
  max-height: 400px; padding-bottom: 1.2rem; opacity: 1;
}
