/* ZiraFest Custom Styles — Light/Dark theme support */

:root {
  /* Brand colors (стабильные для обеих тем) */
  --zira-accent: #f48118;
  --zira-accent-hover: #ff9842;
  --zira-yellow: #ffd23f;
  --zira-green: #4caf50;
  --zira-red: #e63946;

  /* DARK THEME (по умолчанию) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-elevated: #1a1a1a;
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-input-focus: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-placeholder: rgba(255, 255, 255, 0.4);

  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-soft: rgba(255, 255, 255, 0.05);
  --border-color-strong: rgba(255, 255, 255, 0.2);

  --header-bg: rgba(10, 10, 10, 0.85);
  --header-border: rgba(255, 255, 255, 0.05);

  --hero-gradient:
    radial-gradient(ellipse at 20% 30%, rgba(244, 129, 24, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 210, 63, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #1a0d05 50%, #0a0a0a 100%);

  --shadow-card: 0 20px 60px rgba(244, 129, 24, 0.15);
  --shadow-btn: 0 10px 30px rgba(244, 129, 24, 0.4);

  --grid-line: rgba(255, 255, 255, 0.03);

  --map-filter: invert(0.9) hue-rotate(180deg) saturate(0.7);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-primary: #fafaf7;
  --bg-secondary: #f4f1ea;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-elevated: #ffffff;
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-input-focus: rgba(0, 0, 0, 0.07);

  --text-primary: #1a1a1a;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-placeholder: rgba(0, 0, 0, 0.35);

  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-soft: rgba(0, 0, 0, 0.05);
  --border-color-strong: rgba(0, 0, 0, 0.18);

  --header-bg: rgba(250, 250, 247, 0.9);
  --header-border: rgba(0, 0, 0, 0.06);

  --hero-gradient:
    radial-gradient(ellipse at 20% 30%, rgba(244, 129, 24, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 210, 63, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #fff8f0 0%, #faf3e8 50%, #fafaf7 100%);

  --shadow-card: 0 20px 60px rgba(244, 129, 24, 0.18);
  --shadow-btn: 0 10px 30px rgba(244, 129, 24, 0.35);

  --grid-line: rgba(0, 0, 0, 0.04);

  --map-filter: none;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}

.font-display {
  font-family: 'Unbounded', 'Inter', sans-serif;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.font-heading {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Brand utility classes */
.bg-zira-dark { background-color: var(--bg-primary); }
.bg-zira-darker { background-color: var(--bg-secondary); }
.text-zira-accent { color: var(--zira-accent); }
.text-zira-yellow { color: var(--zira-yellow); }
.bg-zira-accent { background-color: var(--zira-accent); }
.bg-zira-yellow { background-color: var(--zira-yellow); }
.border-zira { border-color: var(--border-color); }

/* Text utilities mapped to theme */
.text-themed { color: var(--text-primary); }
.text-themed-secondary { color: var(--text-secondary); }
.text-themed-muted { color: var(--text-muted); }
.bg-themed { background: var(--bg-primary); }
.bg-themed-secondary { background: var(--bg-secondary); }
.border-themed { border-color: var(--border-color); }

/* Override Tailwind text-white when needed */
[data-theme="light"] .text-white { color: var(--text-primary) !important; }
[data-theme="light"] .text-white\/70 { color: var(--text-secondary) !important; }
[data-theme="light"] .text-white\/60 { color: var(--text-secondary) !important; }
[data-theme="light"] .text-white\/50 { color: var(--text-muted) !important; }
[data-theme="light"] .text-white\/40 { color: var(--text-muted) !important; }
[data-theme="light"] .text-white\/30 { color: var(--text-muted) !important; }

/* Marquee animation */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-slow { animation-duration: 60s; }
.marquee-fast { animation-duration: 15s; }
.marquee-reverse { animation-direction: reverse; }

/* Hero gradient background */
.hero-bg {
  background: var(--hero-gradient);
  transition: background 0.4s ease;
}

/* ===========================================
   Hero — плавающие блюда (как у zirafest.uz)
   =========================================== */
.hero-food-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  --mouse-x: 0;
  --mouse-y: 0;
}

.food-item {
  position: absolute;
  width: clamp(110px, 14vw, 230px);
  height: auto;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  will-change: transform, filter, opacity;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  /* Двухслойная анимация: enter + idle */
  opacity: 0;
  animation:
    foodEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    foodIdle 8s ease-in-out infinite;
  /* Стартовая задержка idle = после enter */
  animation-delay: var(--enter-delay, 0s), calc(var(--enter-delay, 0s) + 1.4s);
  transition: filter 0.4s ease;
  cursor: pointer;
}

[data-theme="light"] .food-item {
  filter: drop-shadow(0 18px 28px rgba(244, 129, 24, 0.28));
}

/* Hover — лёгкое увеличение + glow-ореол */
.food-item:hover {
  filter:
    drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 40px rgba(244, 129, 24, 0.7))
    drop-shadow(0 0 80px rgba(244, 129, 24, 0.4));
  --hover-scale: 1.15;
  z-index: 5;
}

/* Пульсирующее свечение под блюдом */
.food-item::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(
    circle at center,
    rgba(244, 129, 24, 0.35) 0%,
    rgba(244, 129, 24, 0.15) 35%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  animation: foodGlow 6s ease-in-out infinite;
  animation-delay: var(--enter-delay, 0s);
  filter: blur(20px);
  pointer-events: none;
}

/* === Позиционирование каждого блюда === */
.food-plov {
  top: 10%;
  left: 3%;
  width: clamp(140px, 17vw, 280px);
  z-index: 3;
  --enter-delay: 0.1s;
  --idle-x1: 22px; --idle-y1: -28px; --idle-r1: 4deg;
  --idle-x2: -16px; --idle-y2: -12px; --idle-r2: -3deg;
  --idle-x3: 12px; --idle-y3: 18px; --idle-r3: -8deg;
  --start-rot: -45deg;
  --start-scale: 0.3;
  --parallax-x: -20px;
  --parallax-y: -15px;
}

.food-shashlik {
  top: 16%;
  right: 5%;
  width: clamp(150px, 19vw, 320px);
  z-index: 3;
  --enter-delay: 0.3s;
  --idle-x1: -26px; --idle-y1: 20px; --idle-r1: -4deg;
  --idle-x2: 18px; --idle-y2: -28px; --idle-r2: 12deg;
  --idle-x3: -10px; --idle-y3: -14px; --idle-r3: 5deg;
  --start-rot: 60deg;
  --start-scale: 0.3;
  --parallax-x: 20px;
  --parallax-y: -15px;
}

.food-non {
  bottom: 16%;
  left: 7%;
  width: clamp(120px, 14vw, 220px);
  z-index: 3;
  --enter-delay: 0.5s;
  --idle-x1: 30px; --idle-y1: -22px; --idle-r1: 16deg;
  --idle-x2: -18px; --idle-y2: 24px; --idle-r2: -10deg;
  --idle-x3: 8px; --idle-y3: 6px; --idle-r3: 0deg;
  --start-rot: -180deg;
  --start-scale: 0.2;
  --parallax-x: -15px;
  --parallax-y: 10px;
}

.food-manti {
  bottom: 12%;
  right: 4%;
  width: clamp(120px, 14vw, 230px);
  z-index: 3;
  --enter-delay: 0.7s;
  --idle-x1: -22px; --idle-y1: -26px; --idle-r1: 7deg;
  --idle-x2: 16px; --idle-y2: -10px; --idle-r2: -8deg;
  --idle-x3: -10px; --idle-y3: 16px; --idle-r3: 3deg;
  --start-rot: 90deg;
  --start-scale: 0.3;
  --parallax-x: 15px;
  --parallax-y: 10px;
}

.food-tea {
  top: 50%;
  left: -1%;
  width: clamp(90px, 11vw, 170px);
  z-index: 2;
  --enter-delay: 0.9s;
  --idle-x1: 18px; --idle-y1: -32px; --idle-r1: 10deg;
  --idle-x2: -6px; --idle-y2: -18px; --idle-r2: -4deg;
  --idle-x3: 12px; --idle-y3: 14px; --idle-r3: 6deg;
  --start-rot: -120deg;
  --start-scale: 0.2;
  --parallax-x: -25px;
  --parallax-y: 5px;
}

.food-pomegranate {
  top: 48%;
  right: -1%;
  width: clamp(90px, 11vw, 180px);
  z-index: 2;
  --enter-delay: 1.1s;
  --idle-x1: -18px; --idle-y1: -30px; --idle-r1: -8deg;
  --idle-x2: 8px; --idle-y2: 16px; --idle-r2: 6deg;
  --idle-x3: -14px; --idle-y3: -8px; --idle-r3: 12deg;
  --start-rot: 150deg;
  --start-scale: 0.2;
  --parallax-x: 25px;
  --parallax-y: 5px;
}

/* === Единая enter-анимация: эффектный вылет из глубины === */
@keyframes foodEnter {
  0% {
    opacity: 0;
    transform:
      translate3d(0, 80px, -200px)
      scale(var(--start-scale, 0.3))
      rotate(var(--start-rot, -45deg));
    filter: blur(12px) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  }
  60% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  }
}

/* === Единая idle-анимация: лёгкое орбитальное плавание + parallax от мыши === */
@keyframes foodIdle {
  0%, 100% {
    transform:
      translate(calc(var(--mouse-x, 0) * var(--parallax-x, 0px)), calc(var(--mouse-y, 0) * var(--parallax-y, 0px)))
      rotate(0deg)
      scale(var(--hover-scale, 1));
  }
  25% {
    transform:
      translate(calc(var(--idle-x1, 20px) + var(--mouse-x, 0) * var(--parallax-x, 0px)), calc(var(--idle-y1, -25px) + var(--mouse-y, 0) * var(--parallax-y, 0px)))
      rotate(var(--idle-r1, 5deg))
      scale(var(--hover-scale, 1));
  }
  50% {
    transform:
      translate(calc(var(--idle-x2, -15px) + var(--mouse-x, 0) * var(--parallax-x, 0px)), calc(var(--idle-y2, -10px) + var(--mouse-y, 0) * var(--parallax-y, 0px)))
      rotate(var(--idle-r2, -3deg))
      scale(var(--hover-scale, 1));
  }
  75% {
    transform:
      translate(calc(var(--idle-x3, 10px) + var(--mouse-x, 0) * var(--parallax-x, 0px)), calc(var(--idle-y3, 20px) + var(--mouse-y, 0) * var(--parallax-y, 0px)))
      rotate(var(--idle-r3, -8deg))
      scale(var(--hover-scale, 1));
  }
}

/* Пульсирующее свечение под блюдом */
@keyframes foodGlow {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 0.7;  transform: scale(1.15); }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .food-item {
    animation: none;
    opacity: 1;
  }
  .food-item::before { animation: none; opacity: 0.4; }
}

/* Скрываем некоторые блюда на маленьких экранах для производительности */
@media (max-width: 640px) {
  .food-tea,
  .food-pomegranate,
  .food-manti {
    display: none;
  }
  .food-item {
    width: clamp(70px, 22vw, 110px) !important;
    height: clamp(70px, 22vw, 110px) !important;
  }
  .food-item::before { display: none; }
  .food-plov {
    top: 4%;
    left: -10%;
    opacity: 0.55;
  }
  .food-shashlik {
    top: 6%;
    right: -12%;
    opacity: 0.55;
  }
  .food-non {
    bottom: 12%;
    left: -12%;
    opacity: 0.55;
  }
}

/* Burst-эффект при клике по блюду */
.food-burst {
  animation:
    foodIdle 8s ease-in-out infinite,
    foodBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes foodBurst {
  0%   {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 0 rgba(244, 129, 24, 0));
  }
  40%  {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 60px rgba(244, 129, 24, 1))
            drop-shadow(0 0 120px rgba(244, 129, 24, 0.7));
  }
  100% {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  }
}

/* Glowing text */
.text-glow {
  text-shadow: 0 0 30px rgba(244, 129, 24, 0.5);
}

/* Stroke text — теперь залитые (по запросу пользователя) */
.text-stroke {
  color: var(--zira-accent);
  -webkit-text-stroke: 0;
}

.text-stroke-yellow {
  color: var(--zira-yellow);
  -webkit-text-stroke: 0;
}

/* Третья строка hero — "в Узбекистане": плотный жёлтый, с лёгким наклоном */
.hero-line-uz {
  color: var(--zira-yellow);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 24px rgba(255, 209, 0, 0.25);
}

/* Card hover effects */
.card-glow {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--zira-accent), transparent, var(--zira-yellow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card-glow:hover::before { opacity: 1; }

.card-glow:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

/* ===== Photo cards for /expo and /conference categories ===== */
.category-photo-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.category-photo-card .card-glow,
.category-photo-card.card-glow {
  padding: 0;
}

.category-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.06));
}

.category-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.5s ease;
  filter: saturate(1.05) contrast(1.02);
}

.category-photo-card:hover .category-photo-img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.category-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

[data-theme='light'] .category-photo-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(15, 15, 30, 0.35) 100%
  );
}

.category-photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.category-photo-card:hover .category-photo-badge {
  transform: scale(1.08) rotate(-4deg);
}

/* Animated button */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--zira-accent);
  color: white !important;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--zira-yellow), var(--zira-accent));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover::before { opacity: 0; }

/* Outlined button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 9999px;
  border: 2px solid var(--border-color-strong);
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

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

/* Countdown */
.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* Fade-in animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Gallery image */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

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

/* Direction card with background image */
.direction-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  border-radius: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-color-soft);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s;
  cursor: pointer;
  background: var(--bg-card);
}

.direction-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
  filter: brightness(0.75) saturate(1.1);
}

.direction-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  transition: background 0.4s;
  pointer-events: none;
}

.direction-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.direction-card-number {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.direction-card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #fff;
  transition: all 0.3s;
  transform: rotate(-45deg);
}

.direction-card-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.direction-card-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.375rem;
  font-weight: 400;
  line-height: 1.4;
}

.direction-card:hover {
  transform: translateY(-6px);
  border-color: var(--zira-accent);
}

.direction-card:hover .direction-card-img {
  transform: scale(1.08);
  filter: brightness(0.85) saturate(1.2);
}

.direction-card:hover .direction-card-arrow {
  background: var(--zira-accent);
  transform: rotate(0deg);
}

/* Header navigation */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

.nav-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
}

/* Lang switcher */
.lang-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
  color: var(--text-muted);
}

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

.lang-btn.active {
  background: var(--zira-accent);
  color: white;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: var(--zira-accent);
  color: white;
  border-color: var(--zira-accent);
  transform: rotate(15deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu burger button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s;
}
.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: var(--zira-accent);
  color: white;
  border-color: var(--zira-accent);
}

/* Form input */
.card-glow > * { position: relative; z-index: 1; }

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.form-input:focus {
  outline: none;
  border-color: var(--zira-accent);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 4px rgba(244, 129, 24, 0.1);
}

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

.form-input.error {
  border-color: var(--zira-red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-error-text {
  display: block;
  font-size: 0.8125rem;
  color: var(--zira-red);
  margin-top: 0.375rem;
  min-height: 1.125rem;
}

/* Toast notification */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 1000;
  min-width: 320px;
  max-width: calc(100vw - 48px);
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateX(0); }

.toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.toast-success .toast-icon { background: var(--zira-green); }
.toast-error .toast-icon { background: var(--zira-red); }
.toast-info .toast-icon { background: var(--zira-accent); }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.125rem; color: var(--text-primary); }
.toast-message { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; }
.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
}
.toast-close:hover { color: var(--text-primary); }

/* Pulse animation */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(244, 129, 24, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(244, 129, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 129, 24, 0); }
}

.pulse-ring { animation: pulse-ring 2s infinite; }

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

.float { animation: float 6s ease-in-out infinite; }
.float-delay { animation-delay: 2s; }

/* Spinning */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow { animation: spin-slow 20s linear infinite; }

/* Inline spinner for buttons */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  vertical-align: middle;
}

/* Grid texture */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Section dividers */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active { transform: translateX(0); }

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--zira-accent);
  border-radius: 50%;
  animation: spin-slow 1s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--zira-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--zira-yellow); }

/* Big hero text — в стиле zirafest.uz */
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.hero-title .hero-line {
  display: block;
}

.hero-title .hero-italic {
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
  display: inline-block;
  transform: skewX(-4deg);
}

/* Marquee text wrapper */
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  white-space: nowrap;
}

/* Yandex Map theme filter */
.yandex-map-wrapper { filter: var(--map-filter); transition: filter 0.4s ease; }

/* Section padding helpers */
.section-y { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); }

/* Section eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--zira-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--zira-accent);
  animation: pulse-ring 2s infinite;
}

/* Admin specific */
.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-color-soft);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.admin-nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: var(--zira-accent);
  color: white;
}

.admin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color-soft);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ===========================================
   Языковые табы (страница Настройки сайта)
   =========================================== */
.lang-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color-soft);
  border-radius: 9999px;
  flex-wrap: wrap;
}

.lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-tab:hover {
  background: rgba(244, 129, 24, 0.08);
  color: var(--text-color);
}
.lang-tab.active {
  background: var(--zira-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(244, 129, 24, 0.35);
}
.lang-tab .lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}
.lang-tab .lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
  padding: 0.125rem 0.375rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
}
.lang-tab.active .lang-code {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* На узких экранах скрываем имя языка, оставляем флаг + код */
@media (max-width: 640px) {
  .lang-tab .lang-name { display: none; }
  .lang-tab { padding: 0.5rem 0.75rem; }
  .lang-tabs { width: 100%; justify-content: stretch; }
  .lang-tab { flex: 1; justify-content: center; }
}

/* Sticky-панель сохранения внизу формы настроек */
.settings-sticky-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 10;
  background: var(--bg-elevated);
  border: 1px solid var(--zira-accent);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(244, 129, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .settings-sticky-bar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(244, 129, 24, 0.15), 0 0 0 4px rgba(244, 129, 24, 0.08);
}

/* Multilang-поле — лёгкая подсветка фоновой "ленты" слева */
.multilang-field {
  position: relative;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(244, 129, 24, 0.25);
  transition: border-color 0.2s ease;
}
.multilang-field:focus-within {
  border-left-color: var(--zira-accent);
}

/* Плавное появление input при смене языка */
.lang-input {
  animation: langFadeIn 0.25s ease;
}
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 1rem;
  border-top: 1px solid var(--border-color-soft);
}

.admin-table tr:hover { background: var(--bg-card); }

/* Подсветка новых заявок */
.admin-table tr.row-new {
  background: rgba(244, 129, 24, 0.05);
}
.admin-table tr.row-new td:nth-child(2)::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zira-accent);
  margin-right: 0.375rem;
  vertical-align: middle;
  animation: pulse-ring 2s infinite;
}

/* ===========================================
   Admin Layout (sidebar + main)
   =========================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-color-soft);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color-soft);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.admin-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.admin-burger:hover { background: var(--zira-accent); color: white; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 39;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.active { opacity: 1; }

/* Бейдж счётчика в навигации */
.nav-badge {
  background: var(--zira-accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.admin-nav-item.active .nav-badge {
  background: white;
  color: var(--zira-accent);
}

/* Admin toast (отдельный стиль, не пересекается с .toast главного сайта) */
.admin-toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: calc(100vw - 3rem);
}
.admin-toast.show { transform: translateX(0); }
.admin-toast i {
  font-size: 1.125rem;
  flex-shrink: 0;
}
.admin-toast-success {
  border-left: 3px solid #22c55e;
}
.admin-toast-success i { color: #22c55e; }
.admin-toast-error {
  border-left: 3px solid #ef4444;
}
.admin-toast-error i { color: #ef4444; }

/* Mobile sidebar */
@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }
  .sidebar-overlay.active {
    pointer-events: auto;
  }
  .admin-burger {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .admin-sidebar { width: 84%; max-width: 320px; }
  .admin-toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new { background: rgba(76, 175, 80, 0.2); color: #2e7d32; }
.badge-in-progress { background: rgba(255, 210, 63, 0.25); color: #b8860b; }
.badge-processed { background: rgba(76, 175, 80, 0.3); color: #1b5e20; }
.badge-rejected { background: rgba(230, 57, 70, 0.2); color: #c62828; }

[data-theme="dark"] .badge-new,
:root:not([data-theme="light"]) .badge-new { color: #81c784; }
[data-theme="dark"] .badge-in-progress,
:root:not([data-theme="light"]) .badge-in-progress { color: #ffd23f; }
[data-theme="dark"] .badge-processed,
:root:not([data-theme="light"]) .badge-processed { color: #4caf50; }
[data-theme="dark"] .badge-rejected,
:root:not([data-theme="light"]) .badge-rejected { color: #e63946; }

/* ===========================================
   MOBILE — комплексные улучшения
   =========================================== */

/* === Tablet (≤ 768px) === */
@media (max-width: 768px) {
  .toast {
    right: 12px;
    left: 12px;
    min-width: auto;
    top: 80px;
  }

  /* Нормальные touch-targets */
  .btn-primary,
  .btn-outline {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Карточки — меньший padding */
  .card-glow {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
  }

  /* Marquee — меньше по высоте */
  .marquee-item {
    gap: 1.25rem;
    padding: 0 1.25rem;
  }

  /* Form — тембр 16px чтобы iOS не зумил */
  .form-input {
    font-size: 16px;
    padding: 0.875rem 1rem;
  }

  /* Карта — ниже */
  .yandex-map-wrapper {
    height: 320px !important;
  }

  /* Eyebrow — компактнее */
  .eyebrow {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }
}

/* === Mobile (≤ 640px) === */
@media (max-width: 640px) {
  /* Hero заголовок */
  .hero-title {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
  }

  /* Блок hero — меньше отступы */
  .hero-bg {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 3rem !important;
  }

  /* CTA-кнопки — full-width на узких экранах */
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
  }

  /* Countdown — компактный */
  .countdown-box {
    padding: 0.875rem 0.5rem !important;
    border-radius: 0.875rem !important;
  }

  /* Direction cards — чуть выше */
  .direction-card {
    aspect-ratio: 1 / 1.25;
    border-radius: 1.125rem;
  }
  .direction-card-content {
    padding: 0.875rem 1rem 1.125rem;
  }
  .direction-card-number {
    top: 0.875rem;
    left: 0.875rem;
    font-size: 0.6875rem;
  }
  .direction-card-arrow {
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .direction-card-title {
    font-size: 1rem;
  }
  .direction-card-subtitle {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    /* Обрезаем длинный текст на мобиле */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Gallery — меньше gap */
  .gallery-item {
    border-radius: 0.75rem;
  }

  /* Section padding — меньше на мобиле */
  section.py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Mobile menu — красивый фон */
  .mobile-menu {
    background:
      radial-gradient(circle at 20% 0%, rgba(244, 129, 24, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 100%, rgba(255, 209, 0, 0.08) 0%, transparent 50%),
      var(--bg-secondary);
    padding: 5rem 1.5rem 2rem;
    justify-content: flex-start;
  }
  .mobile-menu nav {
    margin-top: 1rem;
    width: 100%;
  }
  .mobile-menu nav > a {
    font-size: 1.5rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color-soft);
  }
  .mobile-menu nav > a:last-of-type {
    border-bottom: none;
  }

  /* Form card — меньше padding */
  #applicationForm {
    padding: 1.25rem !important;
  }

  /* Stats в hero — меньше размер */
  .hero-bg .grid-cols-2 > div .font-display {
    font-size: 1.75rem;
  }
  .hero-bg .grid-cols-2 > div .text-sm {
    font-size: 0.6875rem;
  }

  /* Marquee текст — меньше на мобиле */
  .marquee-item .font-display {
    font-size: 1.75rem !important;
  }

  /* Nav header padding */
  .nav-header > div {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  /* Three pillars — иконки меньше */
  .card-glow .w-16.h-16 {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
  .card-glow .text-3xl {
    font-size: 1.25rem;
  }

  /* Контакт-блоки слева от формы — компактнее */
  #apply .w-12.h-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* === Very small phones (≤ 380px) === */
@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }
  .marquee-item .font-display {
    font-size: 1.5rem !important;
  }
  .direction-card-title {
    font-size: 0.9375rem;
  }
}

/* ===========================================
   Brand logo (GIF) — header / marquee / footer
   =========================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.3s, filter 0.3s;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

/* В светлой теме у GIF может быть тёмный фон — смягчаем */
[data-theme="light"] .brand-logo-img,
[data-theme="light"] .marquee-logo,
[data-theme="light"] .footer-logo-img {
  /* GIF имеет прозрачность — оставляем без фильтра, но добавим тонкое свечение */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.marquee-logo {
  height: clamp(32px, 4.5vw, 56px);
  width: auto;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-logo-img {
  height: clamp(72px, 13vw, 140px);
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 8px 32px rgba(244, 129, 24, 0.25));
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 32px;
  }
}

/* ===========================================
   Footer — в стиле zirafest.uz
   =========================================== */
.site-footer {
  position: relative;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-section);
  border-top: 1px solid var(--border-color-soft);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 129, 24, 0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 209, 102, 0.05), transparent 50%);
  pointer-events: none;
}

.footer-brand-row {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  display: inline-block;
}

.footer-logo-fest {
  color: var(--text-primary);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color-soft);
  border-bottom: 1px solid var(--border-color-soft);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0.7;
}

.footer-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.footer-link {
  color: var(--text-primary);
  transition: color 0.25s;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--zira-accent);
}

.footer-sep {
  color: var(--text-secondary);
  opacity: 0.5;
}

.footer-social-row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s;
}

.footer-social-link:hover {
  background: var(--zira-accent);
  border-color: var(--zira-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color-soft);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-copy {
  opacity: 0.7;
}

.footer-admin-link {
  color: var(--text-secondary);
  opacity: 0.6;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s;
}

.footer-admin-link:hover {
  color: var(--zira-accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .footer-col {
    text-align: center;
    align-items: center;
  }
  .footer-value {
    justify-content: center;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
