/* Шрифты подключаются в HTML — без дублирования */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a0d2e 0%, #2d1b69 50%, #1e3a8a 100%);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}


/* Header — фиксированная шапка */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-header .flex.items-center.justify-between {
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
  min-height: 5rem;
  height: auto;
  align-items: center;
}
.site-header nav {
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-header .flex.items-center.space-x-4 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header #lang-select {
  display: inline-block;
  min-width: 4rem;
}
.site-header .hero-button {
  white-space: nowrap;
}

/* Hero Button */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #fbbf24, #f97316, #ef4444);
  color: #000;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.5);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.hero-button:hover {
  background: linear-gradient(45deg, #f97316, #fbbf24);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  transform: scale(1.05);
}

.hero-button:active {
  transform: scale(0.95);
}

/* Hero Card */
.hero-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease;
}

.hero-card:hover {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  transform: translateY(-0.5rem);
}

/* Hero Table */
.hero-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-table th {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #000;
  font-weight: 700;
  padding: 1.5rem;
  text-align: left;
}

.hero-table td {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.hero-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.shadow-glow-gold {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

/* Mobile nav when open */
nav.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  padding: 1.5rem;
  gap: 0.5rem;
}

/* Responsive */
@media (min-width: 320px) and (max-width: 1920px) {
  body {
    font-size: clamp(16px, 2vw, 18px);
  }
}

@media (max-width: 1280px) {
  .site-header .hero-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}
@media (max-width: 768px) {
  .site-header .hero-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  .site-header .text-3xl {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .site-header .hero-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  .site-header #lang-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Skip link — скрыт визуально, виден при фокусе (a11y) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  top: 0;
  left: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0.5rem;
  overflow: visible;
  clip-path: none;
  z-index: 100;
  background: #fbbf24;
  color: #000;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Hero Image — единая ширина по блокам, по центру */
.hero-image {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 60vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(26, 13, 46, 0.5))
          drop-shadow(0 0 25px rgba(255, 215, 0, 0.125));
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-image--wide,
.hero-image--medium,
.hero-image--mobile { max-width: 1000px; }

.hero-image:hover {
  transform: scale(1.02) translateY(-5px);
  filter: drop-shadow(0 30px 60px rgba(26, 13, 46, 0.56))
          drop-shadow(0 0 40px rgba(255, 215, 0, 0.19));
}

@media (max-width: 768px) {
  .hero-image {
    max-width: 100%;
    max-height: 50vh !important;
    border-radius: 1.5rem;
    margin: 1rem 0;
    filter: drop-shadow(0 15px 30px rgba(26, 13, 46, 0.56));
  }
}
