/*
 * Открытый мозг человека — Конференции
 * Academic Scientific Design
 */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== CSS Variables ===== */
:root {
  /* Научная палитра — тёплый светлый */
  --color-primary: #1e3a5f;          /* Глубокий индиго — основной */
  --color-primary-dark: #152a45;     /* Тёмный индиго */
  --color-primary-light: #2d5a8a;    /* Светлый индиго */
  --color-accent: #c9a227;           /* Янтарь/золото — акцент */
  --color-accent-light: #e8c547;     /* Светлый янтарь */
  --color-secondary: #5a6a7a;        /* Серо-синий */
  --color-success: #2d7d5a;          /* Тёмно-изумрудный */
  --color-warning: #b8860b;          /* Тёмно-золотой */
  --color-danger: #a63d40;           /* Бордо */

  /* Текст и фоны */
  --color-text: #1a2332;             /* Почти чёрный с синим */
  --color-text-light: #5a6a7a;       /* Серо-синий */
  --color-text-muted: #8a96a3;       /* Приглушённый */
  --color-bg: #fdfcfa;               /* Тёплый белый / слоновая кость */
  --color-bg-secondary: #f7f5f0;     /* Кремовый */
  --color-bg-tertiary: #efeae2;      /* Бежевый */
  --color-border: #e5dfd5;           /* Тёплая граница */
  --color-border-dark: #d5cfc5;      /* Тёмная граница */

  /* Типографика — академический стиль */
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Тени — мягкие, тёплые */
  --shadow-sm: 0 1px 3px 0 rgb(26 35 50 / 0.04), 0 1px 2px -1px rgb(26 35 50 / 0.03);
  --shadow: 0 4px 12px -2px rgb(26 35 50 / 0.08), 0 2px 4px -2px rgb(26 35 50 / 0.04);
  --shadow-lg: 0 12px 32px -8px rgb(26 35 50 / 0.12), 0 4px 12px -4px rgb(26 35 50 / 0.06);
  --shadow-xl: 0 24px 48px -12px rgb(26 35 50 / 0.15);

  /* Геометрия */
  --radius: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Переходы */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  letter-spacing: 0.01em;
}

/* Академическая типографика — serif для заголовков */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.25rem;
}

/* Стилизованные ссылки */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Подчёркивание при необходимости */
.link-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

/* Декоративная линия — научный стиль */
.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
  margin: 1rem 0;
}

/* Выделение текста */
::selection {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Скобки с инверсией при наведении */
.logo-bracket {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.35rem;
  display: inline-block;
  position: relative;
  transition: color 0.4s ease;
}

.logo-bracket-left {
  margin-right: 3px;
}

.logo-bracket-right {
  margin-left: 3px;
}

/* Переключение скобок [ ↔ ] */
.bracket-normal {
  display: inline;
  transition: opacity 0.3s ease;
}

.bracket-hover {
  display: none;
}

/* При наведении скобки меняются */
.logo:hover .bracket-normal {
  display: none;
}

.logo:hover .bracket-hover {
  display: inline;
  color: var(--color-primary);
}

/* Стиль скобок при наведении перенесён ниже */

/* Короткая версия — видна по умолчанию */
.logo-short {
  display: inline-block;
  overflow: hidden;
  max-width: 30px;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Полная версия — скрыта по умолчанию */
.logo-full {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* При наведении: короткая скрывается, полная появляется */
.logo:hover .logo-short {
  max-width: 0;
  opacity: 0;
}

.logo:hover .logo-full {
  max-width: 250px;
  opacity: 1;
}

/* Свечение под логотипом — только под текстом, не под скобками */
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.logo:hover::after {
  transform: scaleX(1);
  animation: logoGlow 2s linear infinite;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-copyright {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin: 0;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ===== Buttons — Академический стиль ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow);
}

/* Кнопка с акцентом — золотая */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow);
}

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

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

/* Outline с акцентом */
.btn-outline-accent {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline-accent:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-text {
  background: transparent;
  color: var(--color-text-light);
  padding: 0.5rem;
  border: none;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

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

.btn-success:hover {
  background: #256b4a;
  border-color: #256b4a;
}

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

.btn-danger:hover {
  background: #8b3033;
  border-color: #8b3033;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Simple Form integration */
.input.string input,
.input.email input,
.input.password input,
.input.tel input,
.input.text textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.input.string input:focus,
.input.email input:focus,
.input.password input:focus,
.input.tel input:focus,
.input.text textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.input label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.input .hint {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.input.field_with_errors input,
.input.field_with_errors textarea {
  border-color: var(--color-danger);
}

.input .error {
  color: var(--color-danger);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ===== Flash Messages ===== */
.flash {
  padding: 1rem 1.5rem;
  margin: 0 auto 1.5rem;
  max-width: 1200px;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.flash-notice {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Auth Pages ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.auth-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-card-wide {
  max-width: 560px;
}

.auth-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.auth-links p {
  margin: 0.5rem 0;
}

/* ===== Cards ===== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

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

.card-text {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

/* Card image container for overflow hidden */
.card-image-container {
  overflow: hidden;
}

/* ===== Conference Cards ===== */
.conference-card {
  display: flex;
  flex-direction: column;
}

.conference-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.conference-date {
  font-weight: 500;
  color: var(--color-primary);
}

.conference-venue {
  color: var(--color-text-light);
}

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero Section — Светлый научный стиль ===== */
.hero {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
  color: var(--color-text);
  padding: 5rem 0 6rem;
  margin: -2rem 0 0;
  position: relative;
  overflow: hidden;
}

/* Анимированная сетка — научный паттерн */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; background-size: 60px 60px; }
  50% { opacity: 0.55; background-size: 62px 62px; }
}

/* Декоративные частицы — научные точки */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-particles-1,
.hero-particles-2,
.hero-particles-3 {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.3;
}

.hero-particles-1 {
  top: 15%;
  left: 20%;
  animation: particleFloat1 6s ease-in-out infinite;
}

.hero-particles-2 {
  top: 40%;
  right: 25%;
  width: 8px;
  height: 8px;
  background: var(--color-primary-light);
  animation: particleFloat2 8s ease-in-out infinite;
}

.hero-particles-3 {
  bottom: 30%;
  left: 35%;
  width: 4px;
  height: 4px;
  animation: particleFloat3 7s ease-in-out infinite;
}

@keyframes particleFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -15px) scale(1.2); opacity: 0.5; }
  50% { transform: translate(10px, -30px) scale(1); opacity: 0.3; }
  75% { transform: translate(-10px, -15px) scale(0.8); opacity: 0.4; }
}

@keyframes particleFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.25; }
  33% { transform: translate(-25px, 20px) rotate(120deg); opacity: 0.45; }
  66% { transform: translate(-15px, -10px) rotate(240deg); opacity: 0.3; }
}

@keyframes particleFloat3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(15px, -25px); opacity: 0.5; }
}

/* ===== Нейронная сеть ===== */
.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.neural-svg {
  width: 100%;
  height: 100%;
}

/* Связи между нейронами */
.neural-line {
  stroke: var(--color-primary-light);
  stroke-width: 1;
  opacity: 0.2;
  stroke-dasharray: 5, 5;
  animation: neuralLineFlow 4s linear infinite;
}

.nl-1 { animation-delay: 0s; }
.nl-2 { animation-delay: 0.3s; }
.nl-3 { animation-delay: 0.6s; }
.nl-4 { animation-delay: 0.9s; }
.nl-5 { animation-delay: 1.2s; }
.nl-6 { animation-delay: 1.5s; }
.nl-7 { animation-delay: 1.8s; }
.nl-8 { animation-delay: 2.1s; }
.nl-9 { animation-delay: 2.4s; }
.nl-10 { animation-delay: 2.7s; }
.nl-11 { animation-delay: 3s; }
.nl-12 { animation-delay: 3.3s; }
.nl-13 { animation-delay: 3.6s; }

@keyframes neuralLineFlow {
  0% { stroke-dashoffset: 0; opacity: 0.15; }
  50% { opacity: 0.35; }
  100% { stroke-dashoffset: -20; opacity: 0.15; }
}

/* Нейроны (узлы) */
.neural-node {
  fill: var(--color-accent);
  opacity: 0.4;
  filter: drop-shadow(0 0 3px var(--color-accent));
}

.nn-1 { animation: neuralPulse 3s ease-in-out infinite 0s; }
.nn-2 { animation: neuralPulse 3.5s ease-in-out infinite 0.3s; }
.nn-3 { animation: neuralPulse 2.8s ease-in-out infinite 0.6s; }
.nn-4 { animation: neuralPulse 3.2s ease-in-out infinite 0.9s; }
.nn-5 { animation: neuralPulse 4s ease-in-out infinite 1.2s; }
.nn-6 { animation: neuralPulse 3.3s ease-in-out infinite 1.5s; }
.nn-7 { animation: neuralPulse 2.9s ease-in-out infinite 1.8s; }
.nn-8 { animation: neuralPulse 3.6s ease-in-out infinite 2.1s; }
.nn-9 { animation: neuralPulse 3.1s ease-in-out infinite 2.4s; }
.nn-10 { animation: neuralPulse 3.8s ease-in-out infinite 2.7s; }

@keyframes neuralPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
    filter: drop-shadow(0 0 3px var(--color-accent));
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--color-accent));
  }
}

/* Импульсы, бегущие по связям */
.neural-pulse {
  fill: var(--color-accent);
  opacity: 0;
}

.np-1 {
  animation: pulseMove1 4s ease-in-out infinite;
}

.np-2 {
  animation: pulseMove2 5s ease-in-out infinite 1s;
}

.np-3 {
  animation: pulseMove3 4.5s ease-in-out infinite 2s;
}

.np-4 {
  animation: pulseMove4 5.5s ease-in-out infinite 0.5s;
}

.np-5 {
  animation: pulseMove5 4s ease-in-out infinite 1.5s;
}

/* Анимации движения импульсов по путям */
@keyframes pulseMove1 {
  0% { cx: 150; cy: 100; opacity: 0; }
  10% { opacity: 0.9; }
  25% { cx: 350; cy: 200; }
  50% { cx: 550; cy: 150; opacity: 0.9; }
  75% { cx: 750; cy: 250; }
  90% { opacity: 0.9; }
  100% { cx: 950; cy: 180; opacity: 0; }
}

@keyframes pulseMove2 {
  0% { cx: 150; cy: 100; opacity: 0; }
  10% { opacity: 0.8; }
  33% { cx: 300; cy: 350; }
  66% { cx: 500; cy: 320; opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { cx: 700; cy: 450; opacity: 0; }
}

@keyframes pulseMove3 {
  0% { cx: 350; cy: 200; opacity: 0; }
  15% { opacity: 0.9; }
  40% { cx: 500; cy: 320; }
  70% { cx: 750; cy: 250; opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { cx: 1100; cy: 280; opacity: 0; }
}

@keyframes pulseMove4 {
  0% { cx: 550; cy: 150; opacity: 0; }
  20% { opacity: 0.85; }
  50% { cx: 750; cy: 250; }
  80% { cx: 900; cy: 380; opacity: 0.85; }
  100% { cx: 1100; cy: 280; opacity: 0; }
}

@keyframes pulseMove5 {
  0% { cx: 500; cy: 320; opacity: 0; }
  15% { opacity: 0.9; }
  50% { cx: 700; cy: 450; }
  85% { cx: 900; cy: 380; opacity: 0.9; }
  100% { cx: 1100; cy: 280; opacity: 0; }
}

/* Геометрические элементы — тонкие линии и точки */
.hero-float-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-float-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0.2;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
}

.hero-float-circle-1 {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -80px;
  animation: circleFloat1 20s ease-in-out infinite;
}

.hero-float-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation: circleFloat2 18s ease-in-out infinite;
}

.hero-float-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--color-primary-light);
  opacity: 0.18;
}

.hero-float-ring-1 {
  width: 220px;
  height: 220px;
  top: 15%;
  right: 12%;
  animation: ringSpin 40s linear infinite, ringPulse 8s ease-in-out infinite;
}

.hero-float-ring-2 {
  width: 140px;
  height: 140px;
  bottom: 20%;
  left: 18%;
  animation: ringSpin 35s linear infinite reverse, ringPulse 6s ease-in-out infinite 2s;
}

@keyframes circleFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  25% { transform: translate(-30px, 20px) scale(1.05); opacity: 0.25; }
  50% { transform: translate(-20px, 40px) scale(1); opacity: 0.18; }
  75% { transform: translate(10px, 20px) scale(0.98); opacity: 0.22; }
}

@keyframes circleFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(25px, -20px) scale(1.03); opacity: 0.25; }
  66% { transform: translate(15px, -35px) scale(0.97); opacity: 0.18; }
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.15; border-width: 1px; }
  50% { opacity: 0.25; border-width: 2px; }
}

/* Дополнительные декоративные элементы */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
  animation: glowPulseHero 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulseHero {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* SVG волна внизу */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
}

.hero-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.hero-wave-path {
  fill: var(--color-bg);
  animation: waveMorph 12s ease-in-out infinite;
}

@keyframes waveMorph {
  0%, 100% {
    d: path("M0,60 C360,120 720,0 1080,60 C1260,90 1380,75 1440,60 L1440,120 L0,120 Z");
  }
  25% {
    d: path("M0,80 C300,40 600,100 900,50 C1200,0 1350,80 1440,70 L1440,120 L0,120 Z");
  }
  50% {
    d: path("M0,50 C400,90 800,30 1100,70 C1280,100 1400,50 1440,60 L1440,120 L0,120 Z");
  }
  75% {
    d: path("M0,70 C350,20 700,90 1000,40 C1220,70 1380,90 1440,55 L1440,120 L0,120 Z");
  }
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 3;
}

/* Blur появление текста */
.hero-fade-blur {
  animation: fadeInBlur 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInBlur {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* Hero типографика — светлый фон */
.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Бейдж с датой — академический стиль */
.hero .conference-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border-dark);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn {
  position: relative;
}

/* Основная кнопка — глубокий индиго */
.hero .btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.hero .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Акцентный glow для CTA кнопки */
.hero-btn-glow {
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.25);
  animation: none;
}

.hero-btn-glow:hover {
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.35);
}

.hero-btn-glow::before {
  display: none;
}

/* Outline кнопка для светлого фона */
.hero .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

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

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

/* ===== Section Titles ===== */
.section-title {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
  border-radius: 2px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header .section-title::after {
  display: none;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid items */
.grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ===== Dashboard ===== */
.dashboard-body {
  background: var(--color-bg-secondary);
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
  width: 250px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  padding: 1.5rem;
}

.dashboard-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-nav li {
  margin-bottom: 0.25rem;
}

.dashboard-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-radius: var(--radius);
  text-decoration: none;
}

.dashboard-nav a:hover {
  background: var(--color-bg-secondary);
}

.dashboard-nav a.active {
  background: var(--color-primary);
  color: white;
}

.dashboard-main {
  flex: 1;
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== Speaker Cards ===== */
.speaker-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.speaker-card::before {
  display: none;
}

.speaker-photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.speaker-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.speaker-card:hover .speaker-photo {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(30, 58, 95, 0.2);
}

.speaker-photo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  border: 4px solid var(--color-bg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.speaker-card:hover .speaker-photo-placeholder {
  transform: scale(1.08);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--color-primary);
}

/* Animated ring around photo on hover */
.speaker-photo-wrapper::after,
.speaker-photo-placeholder::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.speaker-card:hover .speaker-photo-wrapper::after {
  opacity: 1;
  animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.speaker-name {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.speaker-name a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.speaker-card:hover .speaker-name a {
  color: var(--color-primary);
}

.speaker-title {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ===== Program Schedule ===== */
.schedule {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.schedule-item {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  width: 120px;
  padding: 1rem;
  background: var(--color-bg-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.schedule-content {
  flex: 1;
  padding: 1rem;
}

.schedule-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.schedule-speaker {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.schedule-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-secondary {
  background: #f1f5f9;
  color: #475569;
}

/* ===== Tables ===== */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 500;
  background: var(--color-bg-secondary);
}

.table tbody tr:hover {
  background: var(--color-bg-secondary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.empty-state p {
  margin-bottom: 1rem;
}

/* ===== Pagination ===== */
.pagination,
.pagy.nav,
.pagy-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pagy.nav a,
.pagy.nav span,
.pagy-nav a,
.pagy-nav span {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination a:hover,
.pagy.nav a:hover,
.pagy-nav a:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.pagination .current,
.pagy.nav .current,
.pagy-nav .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  font-weight: 500;
}

.pagination .disabled,
.pagy.nav .disabled,
.pagy-nav .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .gap,
.pagy.nav .gap,
.pagy-nav .gap {
  border: none;
  background: transparent;
  padding: 0.5rem 0.25rem;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .dashboard-nav ul {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .dashboard-nav a {
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Video Player ===== */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-platform-switcher {
  display: flex;
  gap: 0.5rem;
}

.video-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: var(--color-bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* Continue Watching Card */
.continue-watching-card .continue-watching-progress {
  margin-bottom: 0.75rem;
}

.continue-watching-card .progress-bar-container {
  height: 4px;
}

/* Attachments List */
.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
}

.attachment-icon {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.attachment-title {
  flex: 1;
  font-weight: 500;
}

/* Info List */
.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.info-list dt {
  font-weight: 500;
  color: var(--color-text-light);
}

.info-list dd {
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

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

/* Material Badges */
.material-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ===== Additional Animations ===== */

/* Header animation */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Logo hover effect — градиент только для текста, не для скобок */
.logo:hover .logo-short,
.logo:hover .logo-full {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Скобки остаются видимыми при наведении */
.logo:hover .logo-bracket {
  -webkit-text-fill-color: var(--color-primary);
}

/* Nav link hover underline animation */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Conference card date badge */
.conference-card .conference-date {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: var(--color-primary-dark);
}

/* Glowing badge effect */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.05);
}

.badge-primary:hover {
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.badge-success:hover {
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.badge-danger:hover {
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Schedule item hover */
.schedule-item {
  transition: background 0.2s ease;
}

.schedule-item:hover {
  background: var(--color-bg-secondary);
}

.schedule-item:hover .schedule-time {
  background: var(--color-primary);
  color: white;
}

/* Smooth image loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded,
img[src] {
  opacity: 1;
}

/* Focus states for accessibility */
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(30, 58, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, 0); }
}

.btn-cta {
  animation: pulse 2s infinite;
}

/* Page transition */
.main-content {
  animation: pageIn 0.4s ease-out;
}

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Dark mode preference support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Partners ===== */
.partners-section {
  margin-bottom: 3rem;
}

.partners-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.partners-grid-lg {
  grid-template-columns: repeat(3, 1fr);
}

.partners-grid-sm {
  grid-template-columns: repeat(5, 1fr);
}

.partner-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.partner-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.partner-logo-wrapper {
  margin-bottom: 1rem;
}

.partner-logo {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.partner-name {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.partner-description {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

/* Partners on homepage */
.partners-grid-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.partner-logo-home {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo-link:hover .partner-logo-home {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.partner-logo-placeholder-home {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.partner-logo-link:hover .partner-logo-placeholder-home {
  color: var(--color-primary);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .partners-grid,
  .partners-grid-lg,
  .partners-grid-sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Articles / Blog ===== */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .card-image-container {
  position: relative;
}

.article-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-badge-external {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.article-meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

.article-date,
.article-reading-time {
  display: inline-flex;
  align-items: center;
}

.article-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
}

.article-author,
.article-source {
  font-weight: 500;
}

/* Full Article */
.container-narrow {
  max-width: 800px;
}

.article-full {
  padding: 2rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-conference-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--color-bg-secondary);
  border-radius: 2rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.article-conference-badge a {
  color: var(--color-primary);
}

.article-meta-full {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.article-meta-full > span {
  display: inline-flex;
  align-items: center;
}

.article-meta-full svg {
  margin-right: 6px;
}

.article-cover {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-cover-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

.related-articles {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.article-card-sm .card-body {
  padding: 1rem;
}

.article-card-sm .card-title {
  font-size: 1rem;
}

.article-date-sm {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ===== Materials ===== */
.materials-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filter {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 2rem;
}

.btn-filter:hover {
  background: var(--color-bg-secondary);
  transform: none;
}

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

.material-card {
  display: flex;
  flex-direction: column;
}

.material-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1rem 0;
}

.material-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 2rem;
  text-transform: capitalize;
}

.material-type-video {
  background: #fee2e2;
  color: #991b1b;
}

.material-type-presentation {
  background: #dbeafe;
  color: #1e40af;
}

.material-type-document {
  background: #dcfce7;
  color: #166534;
}

.material-type-audio {
  background: #fef3c7;
  color: #92400e;
}

.material-platform-badge {
  display: flex;
  gap: 0.25rem;
}

.platform-youtube,
.platform-rutube {
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.platform-youtube {
  background: #ff0000;
  color: white;
}

.platform-rutube {
  background: #000;
  color: white;
}

.material-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.material-card .card-title {
  font-size: 1rem;
}

.material-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.material-conference {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.material-conference svg {
  flex-shrink: 0;
}

.conference-link {
  color: inherit;
}

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

.material-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ===== Newsletter CTA — Светлый научный стиль ===== */
.newsletter-cta {
  margin: 3rem 0 2rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Тонкая декоративная сетка */
.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

.newsletter-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.newsletter-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.newsletter-cta-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  color: var(--color-primary);
  border: 1px solid var(--color-border-dark);
  box-shadow: var(--shadow);
}

.newsletter-cta-text h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.newsletter-cta-text p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 1rem;
}

.newsletter-form {
  width: 100%;
  max-width: 500px;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  background: var(--color-bg);
  border-radius: 50px;
  padding: 0.375rem;
  border: 1px solid var(--color-border-dark);
  box-shadow: var(--shadow-sm);
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  white-space: nowrap;
  background: var(--color-primary);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.newsletter-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.newsletter-success {
  text-align: center;
  color: var(--color-text);
  padding: 1rem;
}

.newsletter-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  border-radius: 50%;
  color: var(--color-success);
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.newsletter-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.newsletter-success p {
  color: var(--color-text-light);
  margin: 0;
}

/* Error state */
.newsletter-error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .newsletter-cta {
    padding: 2rem 1.5rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 0.5rem;
  }

  .newsletter-input {
    text-align: center;
  }

  .newsletter-btn {
    width: 100%;
    border-radius: var(--radius);
  }
}

/* ===== Комплексная адаптивность ===== */

/* === Планшет (1024px и меньше) === */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Сетки для планшета */
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Hero на планшете */
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .hero-content {
    max-width: 600px;
  }

  /* Уменьшаем декоративные элементы */
  .hero-float-circle-1 {
    width: 350px;
    height: 350px;
  }

  .hero-float-circle-2 {
    width: 220px;
    height: 220px;
  }

  /* Навигация на планшете */
  .main-nav ul {
    gap: 1.25rem;
  }

  .main-nav a {
    font-size: 0.9375rem;
  }

  /* Карточки спикеров */
  .speaker-photo,
  .speaker-photo-placeholder {
    width: 110px;
    height: 110px;
  }

  /* Секции */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* === Мобильные устройства (768px и меньше) === */
@media (max-width: 768px) {
  /* Базовая типографика */
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Шапка — мобильное меню */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    position: relative;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* Навигация — горизонтальный скролл */
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    gap: 1rem;
    padding-bottom: 0.25rem;
  }

  .main-nav a {
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 0.25rem 0;
  }

  .main-nav a::after {
    bottom: 0;
  }

  /* Действия в шапке */
  .header-actions {
    gap: 0.5rem;
  }

  .user-name {
    display: none;
  }

  .btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  /* Hero — мобильная версия */
  .hero {
    padding: 3rem 0 4rem;
    margin: -1rem 0 0;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero .btn {
    width: 100%;
    justify-content: center;
  }

  .hero .conference-date {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }

  /* Скрываем декоративные элементы на мобильных */
  .hero-float-circle-1,
  .hero-float-circle-2 {
    display: none;
  }

  .hero-float-ring-1 {
    width: 150px;
    height: 150px;
    right: -30px;
    top: 10%;
  }

  .hero-float-ring-2 {
    width: 100px;
    height: 100px;
    left: -20px;
  }

  .hero-particles-1,
  .hero-particles-2,
  .hero-particles-3 {
    opacity: 0.2;
  }

  .hero-wave {
    height: 60px;
  }

  /* Сетки — одна колонка */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Карточки */
  .card {
    border-radius: var(--radius);
  }

  .card-body {
    padding: 1.25rem;
  }

  .card:hover {
    transform: none;
  }

  /* Карточки спикеров */
  .speaker-card {
    padding: 1.5rem 1rem;
  }

  .speaker-photo,
  .speaker-photo-placeholder {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  .speaker-photo-placeholder {
    font-size: 1.75rem;
  }

  .speaker-name {
    font-size: 1rem;
  }

  .speaker-title {
    font-size: 0.75rem;
  }

  /* Feature карточки */
  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  /* Секции */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .section-title::after {
    width: 40px;
    height: 2px;
    bottom: -4px;
  }

  /* Отступы */
  .mt-4 {
    margin-top: 2rem;
  }

  .mb-4 {
    margin-bottom: 1.5rem;
  }

  /* Партнёры */
  .partners-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partner-logo-home {
    max-height: 50px;
  }

  /* Футер */
  .site-footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Формы */
  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }

  /* Dashboard */
  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
  }

  .dashboard-nav ul {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .dashboard-nav a {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .dashboard-main {
    padding: 1.5rem 0;
  }

  .dashboard-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Таблицы */
  .table th,
  .table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Пагинация */
  .pagination a,
  .pagination span,
  .pagy.nav a,
  .pagy.nav span,
  .pagy-nav a,
  .pagy-nav span {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  /* Newsletter CTA */
  .newsletter-cta {
    padding: 2rem 1.25rem;
    margin: 2rem 0 1.5rem;
  }

  .newsletter-cta-icon {
    width: 60px;
    height: 60px;
  }

  .newsletter-cta-text h3 {
    font-size: 1.25rem;
  }

  .newsletter-cta-text p {
    font-size: 0.9375rem;
  }
}

/* === Маленькие мобильные (480px и меньше) === */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .hero .btn {
    padding: 0.75rem 1.25rem;
  }

  /* Партнёры — одна колонка */
  .partners-grid-home {
    grid-template-columns: 1fr;
  }

  /* Карточки спикеров — две колонки */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .speaker-photo,
  .speaker-photo-placeholder {
    width: 80px;
    height: 80px;
  }

  .speaker-photo-placeholder {
    font-size: 1.5rem;
  }

  .speaker-card {
    padding: 1rem 0.75rem;
  }

  .speaker-name {
    font-size: 0.9375rem;
  }

  .speaker-title {
    font-size: 0.6875rem;
  }

  /* Кнопки */
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Feature cards */
  .feature-card {
    padding: 1.25rem 1rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* === Ландшафтная ориентация на мобильных === */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero .btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
}

/* === Уменьшение анимаций для экономии батареи === */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-float-circle,
  .hero-float-ring,
  .hero-particles-1,
  .hero-particles-2,
  .hero-particles-3,
  .hero-wave-path,
  .logo-text::before,
  .logo-text::after,
  .logo::after {
    animation: none !important;
  }

  .card:hover,
  .feature-card:hover,
  .speaker-card:hover {
    transform: none;
  }
}

/* === Тёмная тема (опционально) === */
@media (prefers-color-scheme: dark) {
  /* Пока оставляем светлую тему, но можно добавить тёмную */
}
