/* HardNation - Основные стили */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Teko:wght@400;500;600;700&display=swap');

/* Druk Text Wide Cyr Medium */
@font-face {
  font-family: 'Druk Text Wide Cyr';
  src: url('../fonts/druktextwidecyr-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* CSS переменные */
:root {
  --hn-black: #0B0B0F;
  --hn-dark: #111216;
  --hn-gray: #1B1C22;
  --hn-text: #FFFFFF;
  --hn-text-secondary: #C6C7CC;
  --hn-red: #FF2B2B;
  --hn-lime: #A3FF12;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--hn-black);
  color: var(--hn-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--hn-black);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hn-red) 0%, #ff6b35 50%, var(--hn-lime) 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e02424 0%, #e55a2b 50%, #8fcc0f 100%);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.3);
}

::-webkit-scrollbar-corner {
  background: var(--hn-black);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--hn-red) var(--hn-black);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.1rem); }
h6 { font-size: clamp(0.9rem, 1.2vw, 1rem); }

/* Специальные стили для заголовков */
.hero-title {
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
}

.section-title {
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--hn-red) 0%, #ff6b35 30%, #ffa500 60%, var(--hn-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  filter: drop-shadow(0 0 10px rgba(255, 43, 43, 0.3));
  text-shadow: 0 0 20px rgba(163, 255, 18, 0.2);
}

/* Кнопки */
.btn-primary {
  display: inline-block;
  background-color: var(--hn-red);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-primary:hover {
  background-color: #e02424;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 43, 43, 0.3);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--hn-red);
  padding: 12px 24px;
  border: 2px solid var(--hn-red);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-secondary:hover {
  background-color: var(--hn-red);
  color: white;
  transform: translateY(-2px);
}

.btn-lime {
  display: inline-block;
  background-color: var(--hn-lime);
  color: var(--hn-black);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-lime:hover {
  background-color: #8fcc0f;
  transform: translateY(-2px);
}

/* Карточки */
.card {
  background-color: var(--hn-dark);
  border: 1px solid var(--hn-gray);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 43, 43, 0.5);
  box-shadow: 0 8px 25px rgba(255, 43, 43, 0.1);
  transform: translateY(-4px);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-dark {
  background-color: var(--hn-dark);
}

.section-black {
  background-color: var(--hn-black);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(11, 11, 15, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 43, 43, 0.2);
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 20px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--hn-text);
  transition: transform 0.2s ease;
  animation: fadeInLeft 0.6s ease-out 0.2s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.logo-image {
  width: 100px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.2s ease;
}

.logo-image:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 43, 43, 0.6));
}

.footer .logo-image {
  width: 250px;
  height: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.2s ease;
  margin: 0 auto 15px;
  display: block;
}

.footer .logo-image:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 43, 43, 0.8));
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInRight 0.6s ease-out 0.4s both;
}

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

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: var(--hn-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  color: var(--hn-text);
  background-color: rgba(255, 43, 43, 0.1);
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hn-red), var(--hn-lime));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link::before {
  content: '';
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
  position: relative;
}

.nav-dropdown:hover > .nav-link::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--hn-dark);
  border: 1px solid var(--hn-gray);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 16px;
  color: var(--hn-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 0 8px;
}

.dropdown-link:hover {
  color: var(--hn-text);
  background-color: rgba(255, 43, 43, 0.1);
  transform: translateX(4px);
}

.nav .btn-primary {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 43, 43, 0.3);
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 43, 43, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--hn-text);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.nav.mobile-open {
  display: block !important;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 11, 15, 0.98);
  backdrop-filter: blur(15px);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 20px;
}

.mobile-nav-links a {
  color: var(--hn-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 43, 43, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--hn-red);
}

.mobile-nav-links .nav-link {
  font-size: 22px;
}

.mobile-dropdown-menu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
  max-height: 500px;
}

.mobile-dropdown-menu li {
  margin-bottom: 12px;
}

.mobile-dropdown-menu a {
  font-size: 16px;
  color: var(--hn-text-secondary);
}

.mobile-nav-btn {
  margin-top: 30px;
  width: 100%;
}

/* Mobile Social Networks */
.mobile-social {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 43, 43, 0.2);
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-social-link:nth-child(1) {
  background-color: #FF2B2B;
}

.mobile-social-link:nth-child(2) {
  background-color: rgba(52, 169, 221, 1);
}

.mobile-social-link:nth-child(3) {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.mobile-social-link:nth-child(4) {
  background-color: #0077FF;
}

.mobile-social-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 43, 43, 0.3);
}

.mobile-social-link:active {
  transform: translateY(0) scale(0.95);
}

/* Event Cards */
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 43, 43, 0.2);
}

.event-card:active {
  transform: translateY(-2px);
}

/* Event Modal */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}

.event-modal-content {
  background: linear-gradient(135deg, var(--hn-dark) 0%, var(--hn-black) 100%);
  border-radius: 16px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 43, 43, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

/* Custom scrollbar for modal */
.event-modal-content::-webkit-scrollbar {
  width: 6px;
}

.event-modal-content::-webkit-scrollbar-track {
  background: rgba(27, 28, 34, 0.5);
  border-radius: 3px;
}

.event-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hn-red) 0%, var(--hn-lime) 100%);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.event-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e02424 0%, #8fcc0f 100%);
  box-shadow: 0 0 8px rgba(255, 43, 43, 0.4);
}

.event-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--hn-text);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.7;
  line-height: 1;
}

.event-modal-close:hover {
  opacity: 1;
  background-color: rgba(255, 43, 43, 0.2);
  transform: rotate(90deg);
}

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

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

/* Hero секция */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--hn-black), var(--hn-dark), var(--hn-gray));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 6s ease-in-out infinite;
}

.hero-bg::before {
  width: 300px;
  height: 300px;
  background-color: rgba(255, 43, 43, 0.1);
  top: 20%;
  left: 20%;
}

.hero-bg::after {
  width: 400px;
  height: 400px;
  background-color: rgba(163, 255, 18, 0.1);
  bottom: 20%;
  right: 20%;
  animation-delay: 2s;
}

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

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  line-height: 1.2;
  text-align: center;
}

.hero-title .text-gradient {
  display: block;
  margin-bottom: 0.02em;
  text-transform: none;
}

.hero-title span:not(.text-gradient) {
  color: var(--hn-text);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  display: block;
  text-transform: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--hn-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  text-transform: none;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Сетки */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Секция заголовков */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--hn-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--hn-text-secondary);
  font-size: 1rem;
}

/* Формы */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--hn-text-secondary);
  font-size: 0.85rem;
}

.form-hint {
  font-weight: 400;
  color: var(--hn-text-secondary);
  font-size: 0.7rem;
  opacity: 0.8;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--hn-gray);
  border: 1px solid var(--hn-gray);
  border-radius: 8px;
  color: var(--hn-text);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--hn-red);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.1);
}

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

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

/* Footer */
.footer {
  background-color: var(--hn-gray);
  border-top: 1px solid var(--hn-dark);
  padding: 20px 0 10px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--hn-text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--hn-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--hn-dark);
  color: var(--hn-text-secondary);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

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

/* Адаптивность */
@media (max-width: 768px) {
  .header-content {
    height: 70px;
    padding: 0 16px;
  }
  
  .logo-image {
    width: 85px;
    height: 50px;
  }
  
  .footer .logo-image {
    width: 200px;
    height: 120px;
  }
  
  .footer-content {
    max-width: 100%;
    padding: 0 16px;
  }
  
  .nav {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 5px 8px;
  }
  
  .nav .btn-primary {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-overlay {
    top: 70px;
  }
  
  /* Dropdown menu mobile styles */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
  }
  
  .dropdown-link {
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .hero-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    height: 60px;
    padding: 0 12px;
  }
  
  .logo-image {
    width: 70px;
    height: 42px;
  }
  
  .footer .logo-image {
    width: 160px;
    height: 95px;
  }
  
  .nav {
    gap: 16px;
  }
  
  .mobile-menu-overlay {
    top: 60px;
  }
  
  .nav .btn-primary {
    padding: 5px 10px;
    font-size: 10px;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .hero-subtitle {
    font-size: 0.75rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

/* Скролл вверх */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--hn-red);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: #e02424;
  transform: translateY(-2px);
}

.scroll-to-top.visible {
  display: flex;
}

/* Join Form Modal Styles */
.join-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.join-form-modal.active {
  display: flex;
}

.join-form-modal-content {
  background-color: var(--hn-black);
  border: 1px solid var(--hn-gray);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.join-form-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--hn-text-secondary);
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.join-form-modal-close:hover {
  color: var(--hn-text);
}

.join-form-modal-close::before {
  content: '×';
}

/* Join Form Styles */
.join-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-progress {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--hn-gray);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hn-red), var(--hn-lime));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 33.33%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step {
  font-size: 14px;
  color: var(--hn-text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.step.active {
  color: var(--hn-text);
}

.step.completed {
  color: var(--hn-lime);
}

.join-form {
  background-color: var(--hn-dark);
  border: 1px solid var(--hn-gray);
  border-radius: 12px;
  padding: 40px;
  position: relative;
}

.form-step {
  display: none !important;
  animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Prevent focus on hidden form elements */
.form-step:not(.active) input,
.form-step:not(.active) select,
.form-step:not(.active) textarea {
  visibility: hidden;
  pointer-events: none;
}

/* Hide checkmarks and radio circles in sections 2-4 */
.form-step[data-step="2"] .radio-custom,
.form-step[data-step="2"] .checkbox-custom,
.form-step[data-step="3"] .radio-custom,
.form-step[data-step="3"] .checkbox-custom,
.form-step[data-step="4"] .radio-custom,
.form-step[data-step="4"] .checkbox-custom {
    display: none;
}

/* Adjust spacing when custom elements are hidden */
.form-step[data-step="2"] .radio-item,
.form-step[data-step="2"] .checkbox-item,
.form-step[data-step="3"] .radio-item,
.form-step[data-step="3"] .checkbox-item,
.form-step[data-step="4"] .radio-item,
.form-step[data-step="4"] .checkbox-item {
    gap: 0;
    padding-left: 16px;
}

.step-title {
  font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--hn-text);
  text-align: center;
  font-weight: 500;
}

.step-description {
  color: var(--hn-text-secondary);
  margin-bottom: 30px;
  text-align: center;
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group,
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item,
.radio-item,
.toggle-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  position: relative;
}

.checkbox-item:hover,
.radio-item:hover,
.toggle-item:hover {
  background-color: rgba(255, 43, 43, 0.05);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"],
.toggle-item input[type="radio"],
.toggle-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark,
.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--hn-gray);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark,
.radio-item input[type="radio"]:checked + .radio-mark {
  background-color: var(--hn-red);
  border-color: var(--hn-red);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.radio-item input[type="radio"]:checked + .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Toggle Styles */
.toggle-item {
  justify-content: center;
  cursor: pointer;
}

.toggle-slider {
  width: 50px;
  height: 24px;
  background-color: var(--hn-gray);
  border-radius: 12px;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-item input[type="radio"]:checked + .toggle-slider,
.toggle-item input[type="checkbox"]:checked + .toggle-slider {
  background-color: var(--hn-red);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-item input[type="radio"]:checked + .toggle-slider::after,
.toggle-item input[type="checkbox"]:checked + .toggle-slider::after {
  transform: translateX(26px);
}

/* Character Count */
.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--hn-text-secondary);
  margin-top: 5px;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hn-gray);
}

.form-navigation button {
  min-width: 120px;
}

/* Success Message */
.success-message {
  padding: 0;
  background: none;
  border: none;
  margin-top: 0;
}

.success-message .section-subtitle {
  display: none;
}

.success-content {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--hn-black);
  border-radius: 16px;
  border: 1px solid var(--hn-gray);
}

.success-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--hn-text);
  font-weight: 700;
  line-height: 1.2;
}

.success-text {
  color: var(--hn-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* QR Section */
.qr-section {
  margin-top: 30px;
  text-align: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-text {
  color: var(--hn-text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Form Validation */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 5px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--hn-text-secondary);
  margin-top: 5px;
  line-height: 1.4;
}


/* Responsive Form */
@media (max-width: 768px) {
  .join-form {
    padding: 30px 20px;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .qr-code {
    width: 150px;
    height: 150px;
  }
  
  .success-text {
    font-size: 1rem;
  }
  
  .success-title {
    font-size: 1.8rem;
  }
  
  .form-navigation button {
    width: 100%;
  }
  
  .checkbox-group,
  .radio-group {
    gap: 8px;
  }
  
  .checkbox-item,
  .radio-item {
    padding: 10px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .step-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  
  .form-hint {
    font-size: 0.6rem;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .join-form {
    padding: 16px 12px;
    margin: 16px 12px;
  }
  
  .progress-steps {
    gap: 6px;
  }
  
  .step {
    padding: 6px 10px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-label {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .step-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .form-hint {
    font-size: 0.55rem;
  }
  
  .checkbox-group,
  .radio-group {
    gap: 6px;
  }
  
  .checkbox-item,
  .radio-item {
    padding: 8px;
  }
  
  .qr-code {
    width: 100px;
    height: 100px;
  }
  
  .success-text {
    font-size: 0.9rem;
  }
  
  .success-title {
    font-size: 1.5rem;
  }
}

/* Стили для больших экранов */
@media (min-width: 1200px) {
  .join-form {
    max-width: 800px;
    margin: 40px auto;
  }
  
  .form-group {
    margin-bottom: 28px;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 16px 32px;
    font-size: 1rem;
  }
  
  .step-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }
  
  .form-hint {
    font-size: 0.75rem;
  }
  
  .join-page .join-form {
    max-width: 900px;
    margin: 50px auto;
    padding: 50px 40px;
  }
  
  .join-page .form-group {
    margin-bottom: 32px;
  }
  
  .join-page .form-label {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .join-page .form-input,
  .join-page .form-select,
  .join-page .form-textarea {
    padding: 18px 24px;
    font-size: 1.1rem;
  }
  
  .join-page .btn-primary {
    padding: 18px 36px;
    font-size: 1.1rem;
  }
  
  .join-page .step-title {
    font-size: 1.8rem;
    margin-bottom: 28px;
  }
  
  .join-page .form-hint {
    font-size: 0.8rem;
  }
}

/* Стили для очень больших экранов */
@media (min-width: 1600px) {
  .join-page .join-form {
    max-width: 1000px;
    margin: 60px auto;
    padding: 60px 50px;
  }
  
  .join-page .form-group {
    margin-bottom: 36px;
  }
  
  .join-page .form-label {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  
  .join-page .form-input,
  .join-page .form-select,
  .join-page .form-textarea {
    padding: 20px 28px;
    font-size: 1.2rem;
  }
  
  .join-page .btn-primary {
    padding: 20px 40px;
    font-size: 1.2rem;
  }
  
  .join-page .step-title {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .join-page .form-hint {
    font-size: 0.9rem;
  }
}

/* Скрыть шапку на странице join */
.join-page .header {
    display: none;
}

/* Адаптивные стили для страницы join */
@media (max-width: 1024px) {
  .join-page .join-form {
    margin: 30px 20px;
    padding: 30px 24px;
  }
  
  .join-page .form-group {
    margin-bottom: 24px;
  }
  
  .join-page .form-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .join-page .form-input,
  .join-page .form-select,
  .join-page .form-textarea {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .join-page .btn-primary {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
  
  .join-page .step-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .join-page .form-hint {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .join-page .header-content {
    height: 70px;
    padding: 0 16px;
  }
  
  .join-page .logo-image {
    width: 85px;
    height: 50px;
  }
  
  .join-page .nav {
    gap: 20px;
  }
  
  .join-page .nav-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .join-page .nav .btn-primary {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .join-page .footer {
    padding: 20px 0 10px;
  }
  
  .join-page .footer-content {
    padding: 0 16px;
  }
  
  .join-page .footer .logo-image {
    width: 180px;
    height: 108px;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .join-page .header-content {
    height: 60px;
    padding: 0 12px;
  }
  
  .join-page .logo-image {
    width: 70px;
    height: 42px;
  }
  
  .join-page .nav {
    gap: 16px;
  }
  
  .join-page .nav-link {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .join-page .nav .btn-primary {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .join-page .footer {
    padding: 16px 0 8px;
  }
  
  .join-page .footer-content {
    padding: 0 12px;
  }
  
  .join-page .footer .logo-image {
    width: 150px;
    height: 90px;
    margin-bottom: 10px;
  }
}

/* Горизонтальная ориентация на мобильных устройствах */
@media (max-width: 768px) and (orientation: landscape) {
  .join-page .join-form {
    margin: 10px 16px;
    padding: 20px 16px;
  }
  
  .join-page .form-group {
    margin-bottom: 16px;
  }
  
  .join-page .step-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .join-page .form-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  
  .join-page .form-input,
  .join-page .form-select,
  .join-page .form-textarea {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .join-page .btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .join-page .form-hint {
    font-size: 0.5rem;
  }
  
  .join-page .progress-steps {
    gap: 4px;
  }
  
  .join-page .step {
    padding: 4px 8px;
  }
  
  .join-page .step-label {
    font-size: 0.6rem;
  }
}

/* Очень маленькие экраны (менее 360px) */
@media (max-width: 360px) {
  .join-page .join-form {
    padding: 12px 8px;
    margin: 12px 8px;
  }
  
  .join-page .form-group {
    margin-bottom: 12px;
  }
  
  .join-page .form-label {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }
  
  .join-page .form-input,
  .join-page .form-select,
  .join-page .form-textarea {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .join-page .btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .join-page .step-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .join-page .form-hint {
    font-size: 0.5rem;
  }
  
  .join-page .progress-steps {
    gap: 4px;
  }
  
  .join-page .step {
    padding: 4px 6px;
  }
  
  .join-page .step-label {
    font-size: 0.65rem;
  }
  
  .join-page .header-content {
    height: 55px;
    padding: 0 8px;
  }
  
  .join-page .logo-image {
    width: 60px;
    height: 36px;
  }
  
  .join-page .nav {
    gap: 12px;
  }
  
  .join-page .nav-link {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .join-page .nav .btn-primary {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

/* Загрузка */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--hn-gray);
  border-top: 4px solid var(--hn-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Radio and Checkbox Styles */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--hn-gray);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
}

.radio-item:hover, .checkbox-item:hover {
    background: #2a2b32;
    border-color: var(--hn-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.radio-item input[type="radio"], .checkbox-item input[type="checkbox"] {
    display: none;
}

.radio-custom, .checkbox-custom {
    width: 12px;
    height: 12px;
    border: 2px solid var(--hn-text-secondary);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-custom::after, .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-custom::after {
    width: 4px;
    height: 4px;
    background: var(--hn-red);
    border-radius: 50%;
}

.checkbox-custom::after {
    width: 3px;
    height: 6px;
    border: 1px solid var(--hn-red);
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

.radio-item input[type="radio"]:checked + .radio-custom,
.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--hn-red);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.radio-item input[type="radio"]:checked + .radio-custom::after,
.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.radio-item input[type="radio"]:checked ~ .radio-text,
.checkbox-item input[type="checkbox"]:checked ~ .checkbox-text {
    color: var(--hn-red);
    font-weight: 400;
}

.radio-text, .checkbox-text {
    font-family: 'Druk Text Wide Cyr', 'Teko', 'Inter', system-ui, sans-serif;
    color: var(--hn-text);
    font-size: 0.7rem;
    font-weight: 400;
    transition: all 0.3s ease;
    flex: 1;
}

/* Selected state with glow effect */
.radio-item:has(input[type="radio"]:checked),
.checkbox-item:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: var(--hn-red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Animation for selection */
@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.radio-item input[type="radio"]:checked + .radio-custom,
.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    animation: selectPulse 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .radio-item, .checkbox-item {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .radio-text, .checkbox-text {
        font-size: 0.6rem;
    }
    
    .radio-custom, .checkbox-custom {
        width: 10px;
        height: 10px;
    }
}

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

/* ========================================
   СТРАНИЦА ПРОВЕРКИ УЧАСТНИКОВ
   ======================================== */

/* Основные стили для страницы проверки */
.check-page {
  min-height: 100vh;
  background: var(--hn-black);
  color: var(--hn-text);
  display: flex;
  flex-direction: column;
}

.check-page .main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.check-container {
  max-width: 600px;
  width: 100%;
  background: var(--hn-dark);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hn-gray);
}

/* Заголовок */
.check-header {
  text-align: center;
  margin-bottom: 3rem;
}

.check-title {
  font-family: 'Druk Text Wide Cyr', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--hn-lime), var(--hn-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Форма поиска */
.search-section {
  margin-bottom: 2rem;
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.search-input-group .form-input {
  flex: 1;
}

.search-input-group .btn-primary {
  white-space: nowrap;
  min-width: 120px;
}

/* Кнопка с анимацией загрузки */
.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Область результата */
.result-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--hn-gray);
  border-radius: 15px;
  border: 1px solid rgba(163, 255, 18, 0.2);
}

/* Результат участника */
.participant-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.participant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--hn-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hn-lime);
}

.participant-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.participant-details h3 {
  font-family: 'Druk Text Wide Cyr', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hn-text);
  margin-bottom: 0.25rem;
}

.participant-details p {
  color: var(--hn-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

/* Статусы */
.participant-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  width: fit-content;
}

.status-badge.registered {
  background: rgba(163, 255, 18, 0.1);
  color: var(--hn-lime);
  border: 1px solid var(--hn-lime);
}

.status-badge.not-registered {
  background: rgba(255, 43, 43, 0.1);
  color: var(--hn-red);
  border: 1px solid var(--hn-red);
}

.status-badge.attended {
  background: rgba(163, 255, 18, 0.2);
  color: var(--hn-lime);
  border: 1px solid var(--hn-lime);
}

.status-badge.not-attended {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hn-text-secondary);
  border: 1px solid var(--hn-text-secondary);
}

.status-icon {
  font-size: 1rem;
}

/* Кнопки действий */
.btn-success {
  background: linear-gradient(135deg, var(--hn-lime), #8FCC0A);
  color: var(--hn-black);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 255, 18, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--hn-text-secondary);
  border: 1px solid var(--hn-text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-secondary:hover {
  background: var(--hn-text-secondary);
  color: var(--hn-black);
}

/* Ошибка */
.participant-result.error {
  text-align: center;
  padding: 2rem;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-title {
  font-family: 'Druk Text Wide Cyr', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hn-red);
  margin-bottom: 0.5rem;
}

.error-message {
  color: var(--hn-text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Статистика */
.stats-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--hn-gray);
  border-radius: 15px;
  border: 1px solid rgba(163, 255, 18, 0.1);
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Druk Text Wide Cyr', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hn-lime);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--hn-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Адаптивность для страницы проверки */
@media (max-width: 768px) {
  .check-page .main-content {
    padding: 1rem 0;
  }

  .check-container {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .check-title {
    font-size: 2rem;
  }

  .search-input-group {
    flex-direction: column;
    gap: 1rem;
  }

  .search-input-group .btn-primary {
    width: 100%;
  }

  .participant-info {
    flex-direction: column;
    text-align: center;
  }

  .participant-status {
    align-items: center;
  }

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

@media (max-width: 480px) {
  .check-container {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .check-title {
    font-size: 1.8rem;
  }

  .participant-avatar {
    width: 50px;
    height: 50px;
  }

  .participant-avatar img {
    width: 30px;
    height: 30px;
  }

  .participant-details h3 {
    font-size: 1.1rem;
  }

  .status-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-success,
  .btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Стили для формы верификации */
.verification-form {
  background: var(--hn-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.verification-form h4 {
  color: var(--hn-text);
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.verification-form .form-group {
  margin-bottom: 16px;
}

.verification-form .form-group:last-of-type {
  margin-bottom: 20px;
}

.verification-form .form-label {
  display: block;
  color: var(--hn-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.verification-form .form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--hn-black);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--hn-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.verification-form .form-input:focus {
  outline: none;
  border-color: var(--hn-lime);
  box-shadow: 0 0 0 3px rgba(163, 255, 18, 0.1);
}

.verification-form .form-input:read-only {
  background: rgba(255, 255, 255, 0.05);
  color: var(--hn-text-secondary);
  cursor: not-allowed;
}

.verification-form .btn-primary {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--hn-red) 0%, #ff6b35 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verification-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 43, 43, 0.3);
}

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

.verification-form .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-form .loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}