/* ============================================================
   EventDesign — Soft Minimalism
   Эстетика: тёплый минимализм с экстремальным контрастом типографики
   Вдохновение: Nordic minimalism + современная издательская типографика
   ============================================================ */

/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&family=Inter:wght@200;300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,400&display=swap');

/* ============================================================
   Дизайн-токены
   ============================================================ */
:root {
  /* ─── Типография ─── */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', 'Georgia', serif;

  /* Экстремальный контраст веса */
  --weight-thin: 200;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ─── Цветовая палитра (тёплый минимализм) ─── */
  /* Основной акцент — тёплая терракотта */
  --primary: #C9623F;
  --primary-dark: #A84E2F;
  --primary-light: #E9A088;
  --primary-soft: rgba(201, 98, 63, 0.08);

  /* Вторичный — тёплый песочный */
  --secondary: #8B7968;
  --secondary-dark: #6B5D50;
  --secondary-soft: rgba(139, 121, 104, 0.08);

  /* Акцент — приглушённый шалфей для успеха/органики */
  --accent: #7A8B6F;
  --accent-dark: #5D6D54;
  --accent-soft: rgba(122, 139, 111, 0.1);

  /* Фоны — тёплые оттенки белого */
  --bg: #FAF8F4;
  --bg-card: #FFFFFF;
  --bg-section: #F4F1EB;
  --bg-warm: #F0EBE0;
  --bg-dark: #1A1814;

  /* Текст — глубокий уголь, без чистого чёрного */
  --text-primary: #1A1814;
  --text-secondary: #6B6862;
  --text-light: #A29E97;
  --text-white: #FFFFFF;

  /* Границы — еле заметные */
  --border: #E8E3D9;
  --border-light: #F0ECE3;
  --border-focus: #1A1814;

  /* Тени — мягкие, тёплые */
  --shadow-xs: 0 1px 2px rgba(26, 24, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 24, 20, 0.05);
  --shadow-md: 0 6px 24px rgba(26, 24, 20, 0.07);
  --shadow-lg: 0 16px 48px rgba(26, 24, 20, 0.1);
  --shadow-card: 0 1px 3px rgba(26, 24, 20, 0.04), 0 4px 16px rgba(26, 24, 20, 0.03);

  /* Радиусы — мягкие, но не скруглённые излишне */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Анимации — плавные, cinematic easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.3s;
  --duration-base: 0.6s;
  --duration-slow: 0.9s;

  /* Пространство — воздушные отступы */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --header-height: 78px;
}

/* ============================================================
   Сброс стилей
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Тонкая грейн-текстура для глубины */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================================
   Типография — экстремальный контраст веса
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.1rem;
  font-weight: var(--weight-medium);
}

p {
  color: var(--text-secondary);
  font-weight: var(--weight-light);
  line-height: 1.75;
}

/* Утилиты для типографики */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Контейнер
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Шапка — минималистичная, тонкая
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Логотип — строгий, с контрастом */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  transition: all var(--duration-base) var(--ease);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg);
  transition: transform var(--duration-base) var(--ease);
}

.logo:hover .logo-icon {
  background: var(--primary);
}

.logo:hover .logo-icon::after {
  background: var(--text-primary);
  transform: scale(1.2);
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Мобильное меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease);
}

/* ============================================================
   Кнопки — минималистичные, без градиентов
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: var(--weight-medium);
  transition: all var(--duration-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--text-primary);
  color: var(--bg);
}

.btn-outline-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-secondary:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-section);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-danger {
  background: #B4453A;
  color: white;
  border-color: #B4453A;
}

.btn-danger:hover:not(:disabled) {
  background: #963428;
  border-color: #963428;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 0.95rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================================
   Формы — чистые, с тонкими границами
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--primary);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all var(--duration-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(26, 24, 20, 0.06);
}

.form-control::placeholder {
  color: var(--text-light);
  font-weight: var(--weight-light);
}

.form-control.error {
  border-color: #B4453A;
  box-shadow: 0 0 0 3px rgba(180, 69, 58, 0.08);
}

.form-error {
  font-size: 0.8rem;
  color: #B4453A;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6862' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Поиск */
.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 1rem;
}

.search-wrap .form-control {
  padding-left: 44px;
}

/* Toggle */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
  background: var(--text-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ============================================================
   Карточки мероприятий — плоские, элегантные
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.event-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-warm);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.event-card:hover .event-card-image img {
  transform: scale(1.06);
}

.event-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3.5rem;
  opacity: 0.3;
  filter: grayscale(1);
}

/* Монохромный плейсхолдер категории вместо эмодзи */
.category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background:
    linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-section) 100%);
  position: relative;
  overflow: hidden;
}

.category-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 24, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 24, 20, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.category-placeholder span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.3em;
  color: var(--text-primary);
  opacity: 0.35;
  position: relative;
  z-index: 1;
}

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border: 1px solid rgba(26, 24, 20, 0.08);
}

.badge-category {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
}

.badge-online {
  background: rgba(26, 24, 20, 0.88);
  color: white;
  top: 14px;
  right: 14px;
  left: auto;
  border-color: transparent;
}

.badge-free {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.event-card-body {
  padding: 22px;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
}

.event-meta-item svg, .event-meta-item .icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

.event-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.event-price.free {
  color: var(--accent-dark);
}

.event-spots {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: var(--weight-regular);
}

.event-spots.low {
  color: var(--primary);
  font-weight: var(--weight-medium);
}

/* Звёзды рейтинга */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--primary);
  font-size: 0.88rem;
}

.star.empty {
  color: var(--border);
}

/* ============================================================
   Hero — воздушный, с издательской типографикой
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Очень мягкий тёплый градиент */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 98, 63, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(122, 139, 111, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  animation: dotPulse 2s ease-in-out infinite;
}

.hero-tag-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: dotRing 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes dotRing {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}

/* Steps grid (шаги "как работает") */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--bg-card);
  padding: 40px 32px;
  transition: background var(--duration-base) var(--ease);
  position: relative;
}

.step-card:hover {
  background: var(--bg-warm);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 28px;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--primary);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: var(--weight-light);
}

/* Platform stats — большая издательская типографика */
.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-stat {
  padding: 48px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.platform-stat:last-child {
  border-right: none;
}

.platform-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.platform-stat-value span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  font-size: 0.7em;
  margin-left: 4px;
}

.platform-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--weight-medium);
}

@media (max-width: 768px) {
  .platform-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-stat {
    padding: 32px 20px;
  }
  .platform-stat:nth-child(2) {
    border-right: none;
  }
  .platform-stat:nth-child(1), .platform-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: var(--weight-light);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* Hero поиск */
.hero-search {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 8px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease);
}

.hero-search:focus-within {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  outline: none;
}

.hero-search input::placeholder {
  color: var(--text-light);
  font-weight: var(--weight-light);
}

/* ============================================================
   Секции
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

/* Pill категории */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pill {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: var(--weight-medium);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.pill:hover, .pill.active {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg);
}

/* ============================================================
   Боковая панель
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range .form-control {
  padding: 10px 12px;
}

.price-range span {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ============================================================
   Пагинация
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.page-btn:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--text-primary);
  color: var(--bg);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   Модалки
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.96) translateY(16px);
  transition: transform var(--duration-base) var(--ease);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  color: var(--text-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--text-primary);
  color: var(--bg);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   Тосты
   ============================================================ */
.toast-container {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.5s var(--ease) forwards;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-primary);
  font-size: 0.88rem;
  font-weight: var(--weight-regular);
}

.toast.success { border-left-color: var(--accent); }
.toast.error { border-left-color: #B4453A; }
.toast.warning { border-left-color: #C9913F; }
.toast.info { border-left-color: var(--text-primary); }

.toast-icon { font-size: 1.1rem; }
.toast.success .toast-icon { color: var(--accent); }
.toast.error .toast-icon { color: #B4453A; }
.toast.warning .toast-icon { color: #C9913F; }
.toast.info .toast-icon { color: var(--text-primary); }

.toast-close {
  margin-left: auto;
  background: none;
  color: var(--text-light);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
}

.toast-close:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ============================================================
   Спиннер
   ============================================================ */
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: var(--weight-light);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Скелетон */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-section) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   Карточки статистики
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
}

.stat-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: var(--bg-section);
  color: var(--text-primary);
}

.stat-icon.purple { background: var(--primary-soft); color: var(--primary); }
.stat-icon.pink { background: var(--primary-soft); color: var(--primary); }
.stat-icon.teal { background: var(--accent-soft); color: var(--accent-dark); }
.stat-icon.green { background: var(--accent-soft); color: var(--accent-dark); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: var(--weight-regular);
}

/* ============================================================
   Таблицы
   ============================================================ */
.table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: var(--bg-section);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-primary);
  font-weight: var(--weight-regular);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-section);
}

/* ============================================================
   Табы
   ============================================================ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================================
   Аватар
   ============================================================ */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--text-primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Детальная страница мероприятия
   ============================================================ */
.event-hero {
  position: relative;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--bg-warm);
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 20, 0.7) 0%, transparent 55%);
}

.event-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  color: white;
}

.event-hero-info h1 {
  color: white;
  margin-bottom: 8px;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.event-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.event-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.event-info-row:last-child {
  border-bottom: none;
}

.event-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--bg-section);
  color: var(--text-primary);
}

.event-info-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  font-weight: var(--weight-medium);
}

.event-info-value {
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

/* ============================================================
   Звёзды отзывов
   ============================================================ */
.star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.star-btn {
  font-size: 1.9rem;
  color: var(--border);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  line-height: 1;
}

.star-btn:hover, .star-btn.active {
  color: var(--primary);
  transform: scale(1.12);
}

/* ============================================================
   Задачи
   ============================================================ */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease);
}

.task-item:hover {
  border-color: var(--text-primary);
}

.task-item.done {
  opacity: 0.55;
}

.task-item.done .task-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.task-check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.7rem;
}

.task-item.done .task-check {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg);
}

.task-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: var(--weight-regular);
}

/* ============================================================
   Бейджи
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
}

.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--accent-soft); color: var(--accent-dark); }
.badge-danger { background: rgba(180, 69, 58, 0.1); color: #963428; }
.badge-warning { background: rgba(201, 145, 63, 0.1); color: #8B6221; }
.badge-secondary { background: var(--secondary-soft); color: var(--secondary-dark); }

/* ============================================================
   Пустое состояние
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: var(--weight-medium);
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 340px;
  font-weight: var(--weight-light);
}

/* ============================================================
   Авторизация
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 98, 63, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(122, 139, 111, 0.07) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  text-align: center;
}

.auth-logo .logo-icon {
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
}

.auth-logo h1 {
  font-size: 1.7rem;
}

.auth-logo p {
  font-size: 0.9rem;
  font-weight: var(--weight-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.auth-divider span {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: var(--weight-light);
}

.auth-footer a {
  color: var(--primary);
  font-weight: var(--weight-medium);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  transition: color var(--duration-fast) var(--ease);
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* ============================================================
   Футер — минималистичный, светлый
   ============================================================ */
.footer {
  background: var(--bg-section);
  color: var(--text-secondary);
  padding: 80px 0 32px;
  margin-top: 100px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: var(--weight-light);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: var(--weight-light);
  transition: color var(--duration-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: var(--weight-light);
}

/* ============================================================
   Утилиты
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary-color { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.85rem; }
.font-bold { font-weight: var(--weight-bold); }
.font-light { font-weight: var(--weight-light); }
.font-thin { font-weight: var(--weight-thin); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-2 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================================
   Анимации входа — оркестрованные page-load reveals
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered reveals — применяй классы .fade-in и .stagger-N */
.fade-in {
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.15s; }
.stagger-3 { animation-delay: 0.25s; }
.stagger-4 { animation-delay: 0.35s; }
.stagger-5 { animation-delay: 0.45s; }
.stagger-6 { animation-delay: 0.55s; }

/* Авто-анимация для heroи контента при загрузке */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Карточки мероприятий — плавный вход */
.events-grid .event-card {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) forwards;
}

.events-grid .event-card:nth-child(1) { animation-delay: 0.05s; }
.events-grid .event-card:nth-child(2) { animation-delay: 0.1s; }
.events-grid .event-card:nth-child(3) { animation-delay: 0.15s; }
.events-grid .event-card:nth-child(4) { animation-delay: 0.2s; }
.events-grid .event-card:nth-child(5) { animation-delay: 0.25s; }
.events-grid .event-card:nth-child(6) { animation-delay: 0.3s; }
.events-grid .event-card:nth-child(7) { animation-delay: 0.35s; }
.events-grid .event-card:nth-child(8) { animation-delay: 0.4s; }
.events-grid .event-card:nth-child(9) { animation-delay: 0.45s; }

/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in, .hero-content > *, .events-grid .event-card {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal {
    padding: 28px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 12px 16px;
    font-size: 0.84rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .event-hero {
    height: 280px;
  }

  .event-hero-info {
    padding: 20px 22px;
  }
}
