/* ============================================================
   ЕДИНАЯ ТЕМА САЙТА — «С днём рождения, Алина»
   Подключается на всех страницах. Единая палитра, типографика,
   навигация, кнопки и праздничные акценты.
   ============================================================ */

:root {
  /* Палитра */
  --bg: #121019;
  --bg-deep: #0d0b13;
  --panel: #191521;
  --panel-soft: #1b1725;
  --lavender: #d0b2f0;
  --lilac: #a78bfa;
  --softpink: #f0b9d5;
  --text: #f6f0fa;
  --muted: #c0b6cc;
  --muted-dim: #82788f;
  --line: rgba(208, 178, 240, .16);

  /* Типографика */
  --font-body: 'Tenor Sans', 'Inter', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Tenor Sans', Georgia, 'Times New Roman', serif;

  /* Радиусы и тени */
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, .28);
}

/* Шрифт Tenor Sans подключается единым файлом css/font.css */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 12%, rgba(167, 139, 250, .16), transparent 42%),
    radial-gradient(ellipse at 85% 60%, rgba(240, 185, 213, .10), transparent 42%),
    radial-gradient(ellipse at 50% 95%, rgba(133, 94, 169, .10), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Лёгкая «праздничная» текстура из точек на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    radial-gradient(circle, #cdb4eb 1px, transparent 1.6px),
    radial-gradient(circle, #a991c7 1px, transparent 1.6px);
  background-size: 97px 113px, 151px 167px;
  background-position: 12px 20px, 62px 73px;
}

/* Контент поверх фона */
main, header, footer, nav, section {
  position: relative;
  z-index: 1;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  color: var(--text);
}

h1, h2 {
  letter-spacing: -.04em;
  line-height: 1.08;
}

p {
  color: var(--muted);
}

a {
  color: var(--softpink);
}

/* Градиентный акцент в заголовках */
.gradient-text {
  background: linear-gradient(110deg, var(--softpink), var(--lavender) 50%, var(--lilac));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--lavender);
}

/* ---------- Навигация (единая, как на главной странице) ---------- */
.site-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1024px, calc(100% - 24px));
  margin: 20px auto 0;
  padding: 12px 24px;
  border: 1px solid rgba(208, 178, 240, .13);
  border-radius: 16px;
  background: rgba(27, 23, 37, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
}

.site-nav a {
  color: #c0b6cc;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.429;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f0b9d5;
}

/* Активная ссылка на текущей странице — лишь подсвечена цветом, без плашки */
.site-nav a.active {
  color: #f0b9d5;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Сердечко в бренде крупнее текста — как на главной (text-xl) */
.site-nav__brand > span:first-child {
  font-size: 20px;
  line-height: 1.4;
}

.site-nav__brand:hover,
.site-nav__brand:focus-visible {
  color: #ffffff;
}

/* Ряд ссылок справа (на десктопе — просто flex с отступами) */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

/*
  На телефонах ссылки уходят в одну строку с горизонтальной прокруткой,
  как на главной странице.
*/
@media (max-width: 767px) {
  .site-nav {
    padding: 12px 16px;
    border-radius: 16px;
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav-links {
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-nav-links a {
    flex: 0 0 auto;
  }
}

/* ---------- Кнопки (единые) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn--primary {
  background: linear-gradient(110deg, var(--lavender), var(--softpink));
  color: #211829;
  box-shadow: 0 10px 30px rgba(208, 178, 240, .22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(208, 178, 240, .32);
}

.btn--ghost {
  border: 1px solid rgba(208, 178, 240, .28);
  background: rgba(255, 255, 255, .03);
  color: #e8d9f7;
}

.btn--ghost:hover {
  background: rgba(208, 178, 240, .10);
  border-color: rgba(208, 178, 240, .5);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.99);
}

/* ---------- Праздничный акцент: лента-плашка над заголовком ---------- */
.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(208, 178, 240, .3);
  border-radius: 999px;
  background: rgba(208, 178, 240, .07);
  color: #ead9fb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Тонкая гирлянда точек-огоньков под шапкой */
.celebration-divider {
  width: min(280px, 70%);
  height: 2px;
  margin: 22px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(240, 185, 213, .6), rgba(208, 178, 240, .6), transparent);
}

/* ---------- Фотографии: карточка + сдержанный эффект появления ---------- */
.photo-card {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(208, 178, 240, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow-soft);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
  background: #24202e;
}

.photo-card:hover {
  border-color: rgba(208, 178, 240, .38);
}

/*
  Фотографии показываются сразу, без эффекта появления при прокрутке.
  Классы оставляем на случай разметки, но визуально они ничего не скрывают.
*/
.photo-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.photo-reveal.photo-in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Если пользователь предпочитает меньше движения — просто показываем фото */
@media (prefers-reduced-motion: reduce) {
  .photo-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Доступ к закрытым страницам: затемнённая ссылка, всплывающее
   сообщение и страница-заглушка «нет доступа».
   ============================================================ */
.is-locked {
  opacity: .38 !important;
  cursor: not-allowed !important;
  filter: grayscale(.5);
  pointer-events: auto; /* клик ловим, чтобы показать сообщение */
}

.is-locked:hover,
.is-locked:focus-visible {
  opacity: .45 !important;
}

/* Всплывающее сообщение о недоступности */
.alina-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10000;
  transform: translate(-50%, 24px);
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border: 1px solid rgba(208, 178, 240, .3);
  border-radius: 16px;
  background: rgba(27, 23, 37, .96);
  color: #f6f0fa;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.alina-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Страница-заглушка «нет доступа» */
.no-access-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.no-access-card {
  width: min(520px, 100%);
  padding: 48px 32px;
  border: 1px solid rgba(208, 178, 240, .2);
  border-radius: 28px;
  background: rgba(27, 23, 37, .72);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.no-access-emoji {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 18px;
}

.no-access-card h1 {
  margin: 0 0 14px;
  font-size: 28px;
}

.no-access-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.no-access-card .back-link {
  display: inline-block;
  color: var(--softpink);
  text-decoration: none;
  font-weight: 600;
}

.no-access-card .back-link:hover {
  text-decoration: underline;
}
