/* === style.css === */
/* НАЗНАЧЕНИЕ: Основные стили, цвета, типографика, сетка */

:root {
  --bg-primary: hsl(10, 10%, 4%);
  --text-primary: hsl(0, 0%, 98%);
  --color-primary: hsl(217, 91%, 60%);
  --color-secondary: hsl(262, 65%, 65%);
  --ai-dark: #0a0a0a;
  --ai-gray: #1a1a1a;
  --ai-blue: #3b82f6;
  --ai-purple: #8b5cf6;
  --ai-green: #10b981;
  --card-bg: hsl(10, 10%, 6%);
  --border-color: hsl(10, 10%, 15%);
  --text-muted: hsl(0, 0%, 65%);
  --color-danger: hsl(0, 84.2%, 60.2%);
  --gradient-primary: linear-gradient(to right, var(--ai-blue), var(--ai-purple));
  --gradient-card: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

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

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

a {
  color: var(--ai-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--ai-purple);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Emoji */
.emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-style: normal;
  font-weight: normal;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sections */
.section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.bg-dark {
  background: var(--ai-gray);
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav-logo {
    flex-shrink: 1;
    font-size: 0.85rem !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
  }

  .nav-formats {
    flex-shrink: 0;
    gap: 0.25rem;
    order: 2;
  }

  .format-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .nav-toggle {
    order: 3;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .nav-logo .gradient-text {
    font-size: 0;
  }

  .nav-logo .gradient-text::before {
    content: "AI";
    font-size: 0.85rem;
  }
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--ai-blue);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

/* Format Badges in Nav */
.nav-formats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.format-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: badgePulse 2s ease-in-out infinite;
  white-space: nowrap;
}

.format-offline {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.format-online {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }
}

.btn-nav {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-nav:after {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
@media (max-width: 767px) {
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
  }
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 3rem;
  position: relative;
  background: linear-gradient(to bottom, var(--ai-dark), var(--ai-gray));
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--ai-blue);
  color: var(--ai-blue);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: fadeIn 0.6s ease;
}

.hero-badge-online {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--ai-purple);
  color: var(--ai-purple);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeIn 0.8s ease;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  animation: fadeIn 1s ease;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
  animation: fadeIn 1.2s ease;
}

@media (min-width: 768px) {
  .hero-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.info-item .emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: var(--ai-blue);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 1.4s ease;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Lists */
.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
  display: block;
}

.list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--ai-green);
  font-weight: 700;
  font-size: 1rem;
}

.list.timeline li:before {
  content: "→";
  color: var(--ai-blue);
}

/* Speaker */
.speaker-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .speaker-header {
    grid-template-columns: 200px 1fr;
  }
}

.speaker-photo {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.speaker-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  object-fit: cover;
  aspect-ratio: 1/1;
}

.speaker-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.speaker-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.speaker-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .speaker-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stat strong {
  display: block;
  color: var(--ai-blue);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.program-block {
  margin-bottom: 3rem;
}

/* Venue */
.venue-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .venue-card {
    grid-template-columns: 1fr 1fr;
  }
}

.venue-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .venue-image {
    height: 100%;
  }
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-info {
  padding: 2rem;
}

.venue-info h3 {
  margin-bottom: 1rem;
}

.venue-address {
  color: var(--ai-blue);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.venue-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.venue-info h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--ai-purple);
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.pricing-card-featured {
  border-color: var(--ai-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, var(--card-bg) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.pricing-header h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.pricing-price {
  margin: 1rem 0;
}

.price-old {
  display: block;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price-current {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--ai-green);
}

.price-current small {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--ai-green);
  font-weight: 700;
  font-size: 1.2rem;
}

.payment-options {
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.payment-options h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ai-blue);
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-list li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

/* Registration */
.registration-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.registration-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .registration-wrapper {
    grid-template-columns: 1fr 1.5fr;
  }
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ai-blue);
  margin: 1rem 0;
}

.price span {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.payment-method .emoji {
  font-size: 1.5rem;
}

.payment-method strong {
  display: block;
  margin-bottom: 0.25rem;
}

.payment-method p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contacts */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: var(--ai-dark);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

/* Venue Map */
.venue-map {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.venue-map-link {
  color: var(--ai-blue);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.venue-map-link:hover {
  color: var(--ai-purple);
}

/* After Party */
.after-party-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .after-party-card {
    grid-template-columns: 1fr 1fr;
  }
}

.after-party-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .after-party-image {
    height: 100%;
  }
}

.after-party-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-party-info {
  padding: 2rem;
}

.after-party-note {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--ai-green);
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile styles for scroll button */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.3rem;
  }
}
