:root {
  --primary-color: #000000;
  --secondary-color: #1a1a1a;
  --accent-color: #00ffff;
  --text-color: #ffffff;
  --neon-pink: #ff2a6d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-mobile .main-nav,
body.is-tablet .main-nav {
    display: none; /* Скрываем основное меню на мобильных и планшетах */
}

body.is-mobile .burger-menu,
body.is-tablet .burger-menu {
    display: block; /* Показываем бургер-меню на мобильных и планшетах */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ============================================
   HEADER & НАВИГАЦИЯ
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.5px;
}

/* ============================================
   ДЕСКТОПНОЕ МЕНЮ — ВЫПАДАЮЩЕЕ
   ============================================ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.dropbtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.dropbtn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.dropbtn::after {
  content: "▼";
  font-size: 0.7em;
  vertical-align: middle;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s;
  margin-top: -2px;
}

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

.dropdown-content a {
  color: white;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background: var(--secondary-color);
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-color);
}

.dropdown-content a::before {
  content: "# ";
  color: var(--neon-pink);
  font-weight: bold;
  margin-right: 0.5ch;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent-color);
}

.main-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::before {
  width: 100%;
}

/* ============================================
   БУРГЕР МЕНЮ
   ============================================ */

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-menu canvas {
  display: block;
}

/* базовое состояние – закрытое меню */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--primary-color);
  z-index: 1001;
  transition: right 0.4s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

/* открытое меню */
.mobile-menu.open {
  right: 0;
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header span {
  font-size: 1.2rem;
  font-weight: 600;
}

#closeMobileMenu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.close-canvas {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.mobile-menu ul li {
  padding: 0.5rem 0;
}

.mobile-menu ul a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-menu ul a:hover {
  background: var(--secondary-color);
  padding-left: 2rem;
  border-left: 3px solid var(--accent-color);
}

/* ============================================
   HERO — ЕДИНАЯ ПОДЛОЖКА ПОД ВЕСЬ ТЕКСТ
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameOfLifeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  color: white;
  max-width: 850px;
  padding: 3rem 2rem;
  position: relative;
}

/* ОДНА НЕОНОВАЯ ПОДЛОЖКА ПОД ВЕСЬ ТЕКСТ */
.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  z-index: -1;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
  pointer-events: none;
}

/* АДАПТИВНЫЙ ТЕКСТ */

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  color: white;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ФИЧИ — ОДНА РОЗОВАЯ ПОДЛОЖКА */

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.5rem auto;
  max-width: 800px;
  position: relative;
}

.hero-features::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 65px;
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid rgba(255, 42, 109, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  z-index: -1;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.2);
  pointer-events: none;
}

.hero-features .feature {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.3s ease;
  min-width: 220px;
}

.hero-features .feature:hover {
  background: rgba(255, 42, 109, 0.2);
  border-color: rgba(255, 42, 109, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 42, 109, 0.2);
}

/* КНОПКИ */

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: black;
  padding: 0.95rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
  margin: 0.6rem 0.8rem;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ============================================
   ОБЩИЕ СЕКЦИИ
   ============================================ */

.section {
  padding: clamp(4rem, 10vh, 8rem) 2rem;
  background: var(--primary-color);
}

.section.bg-light {
  background: var(--secondary-color);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: white;
}

/* ============================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================ */

.will-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   КАРТОЧКИ И СТАТИСТИКА — СЕТКИ
   ============================================ */

.philosophy-grid,
.benefits-grid,
.course-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
  max-width: 1200px;
  width: 100%;
}

.philosophy-card,
.benefit-card,
.stat {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  color: white;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  max-width: 320px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.philosophy-card:hover,
.benefit-card:hover,
.stat:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 30px rgba(0, 255, 255, 0.15),
    0 0 20px rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
  background: rgba(30, 30, 30, 0.9);
}

.philosophy-card h3,
.benefit-card h3,
.stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.philosophy-card p,
.benefit-card p,
.stat p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex: 1;
}

/* ============================================
   КОНТАКТЫ (общие отступы)
   ============================================ */

#contact .container {
  padding: 3rem 1.5rem;
}

.contact-info {
  max-width: 520px;
  margin: 2.2rem auto 0;
  padding: 0 1.2rem;
}

.contact-info p {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  margin-bottom: 1.8rem;
}

/* ============================================
   КОНТАКТЫ — НЕОНОВЫЕ КАРТОЧКИ
   ============================================ */

#contact {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 42, 109, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-subtitle {
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  width: 250px;
  color: white;
  text-decoration: none;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(45deg, #00ffff, #ff2a6d);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 30px rgba(0, 255, 255, 0.15),
    0 0 25px rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.contact-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   СЕКЦИЯ "МЕТОДЫ" — НЕОНОВАЯ ТРАНСФОРМАЦИЯ С AI
   ============================================ */

#methods {
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

#methods::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 42, 109, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-title {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.6rem;
  line-height: 1.2;
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.4),
    0 0 20px rgba(0, 255, 255, 0.2);
  position: relative;
  display: inline-block;
}

.quote-title::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
  border-radius: 2px;
}

.quote-subtitle {
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* AI АВАТАР */

.ai-avatar {
  width: 70px;
  height: 70px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  margin: 1.8rem auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  animation: ai-pulse 3s infinite alternate;
  transition: transform 0.3s ease;
}

.ai-avatar:hover {
  transform: scale(1.05);
}

.ai-eye {
  width: 18px;
  height: 9px;
  background: #00ffff;
  border-radius: 9px;
  box-shadow: 0 0 12px #00ffff;
  animation: blink 4s infinite;
}

.ai-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.3);
  animation: glow 2s infinite alternate;
  z-index: -1;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes ai-pulse {
  0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }
  100% { box-shadow: 0 0 35px rgba(0, 255, 255, 0.7); }
}

@keyframes glow {
  0% { opacity: 0.5; }
  100% { opacity: 0.9; }
}

/* ЦИТАТА — НЕОНОВАЯ */

.neon-quote {
  font-style: normal;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.7;
  color: #ffffff;
  padding: 2.2rem 2.5rem;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
  max-width: 720px;
  margin: 0 auto 3rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.1);
  visibility: hidden;
}

.neon-quote::before,
.neon-quote::after {
  position: absolute;
  font-size: 3.2rem;
  color: rgba(0, 255, 255, 0.2);
  line-height: 1;
}

.neon-quote::before {
  content: "»";
  top: 12px;
  right: 24px;
}

.neon-quote::after {
  content: "«";
  bottom: 12px;
  left: 24px;
}

/* КНОПКИ В МЕТОДАХ */

.cta-section {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.cta-section .cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: black;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
  min-width: 200px;
}

.cta-section .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.6);
}

/* ============================================
   ФУТЕР — ТЕРМИНАЛ / КОНСОЛЬ
   ============================================ */

.terminal-footer {
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.terminal-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  pointer-events: none;
}

.terminal-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.terminal-line {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  white-space: pre;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  line-height: 1.6;
  padding: 0.8rem 1rem;
  border-left: 3px solid #00ffff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.terminal-prompt {
  color: #ff2a6d;
  font-weight: bold;
  flex-shrink: 0;
}

#terminal-text {
  color: #00ff00;
  letter-spacing: 0.5px;
  display: inline-block;
}

.cursor {
  color: #00ffff;
  font-weight: bold;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   ЛОАДЕР — КОНСОЛЬ С ПРОГРЕССОМ
   ============================================ */

.terminal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.terminal-loader.active {
  opacity: 1;
}

.terminal-loader:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.terminal-window {
  width: 90%;
  max-width: 600px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #222;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-title {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.terminal-body {
  padding: 1.2rem;
  line-height: 1.8;
}

.terminal-body .terminal-line {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.terminal-body .terminal-prompt {
  color: #ff2a6d;
  font-weight: bold;
  flex-shrink: 0;
}

#loader-text,
#progress-text {
  color: #00ff00;
  letter-spacing: 0.5px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.8rem;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00ffff, #00ff88);
  border-radius: 3px;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.skip-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  justify-content: center;
}

.skip-hint .terminal-prompt {
  color: #ff2a6d;
  font-weight: bold;
}

.hint-text {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Courier New', monospace;
}

.hint-text strong {
  color: #00ffff;
  font-weight: 600;
}

/* ============================================
   ХАКЕРСКАЯ КОНСОЛЬ (Ctrl + Alt + T)
   ============================================ */

.hacker-console {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-width: 90vw;
  background: #000;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  color: #00ff00;
  font-family: 'Courier New', monospace;
  z-index: 9998;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 50vh;
}

.hacker-console.hidden {
  display: none;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #222;
  font-size: 0.8rem;
  cursor: move;
  user-select: none;
}

.console-header .title {
  color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
}

.console-output {
  flex: 1;
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  height: 200px;
  overflow-y: auto;
  color: #00ff00;
}

.console-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt {
  color: #ff2a6d;
  font-weight: bold;
}

#console-input {
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  flex: 1;
  padding: 4px 0;
}

#console-input::placeholder {
  color: rgba(0, 255, 255, 0.5);
}

.hacker-console *,
.hacker-console *::selection {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}



/* ============================================
   МЕДИА-ЗАПРОСЫ: ОТ БОЛЬШЕГО К МЕНЬШЕМУ
   ============================================ */

/* 1. Вертикальный макет для планшетов и небольших десктопов (до 1070px) */
@media (min-width: 1070px) {
  .main-nav {
    display: none;
  }

  .burger-menu {
    display: block;
  }
  /* Сетки (карточки и статистика) переходят к одному столбцу */
  .philosophy-grid,
  .benefits-grid,
  .course-stats {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 0 1rem; /* Уменьшаем горизонтальный паддинг */
  }

  /* Карточки занимают полную ширину контейнера (для одноколоночного макета) */
  .philosophy-card,
  .benefit-card,
  .stat {
      width: 99%; /* <-- Устанавливаем 99% ширины */
      max-width: none; /* <-- Снимаем все ограничения максимальной ширины */
      margin: 0.5% auto 2.2rem auto; /* 0.5% по бокам для создания видимого отступа */
      padding: 2rem 1.8rem;
      text-align: left;
  }
  
  /* Стили для контактных карточек */
  .contact-card {
      width: 99%; /* <-- Устанавливаем 99% ширины */
      max-width: none; /* <-- Снимаем ограничения, чтобы карточка заняла 99% контейнера */
      margin: 0.5% auto;
      padding: 1.7rem 1.5rem;
  }

  /* Блок фич в Hero */
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-features .feature {
    min-width: 100%;
    max-width: 320px; /* Ограничиваем ширину фич */
    padding: 0.75rem 1.3rem;
  }

  /* Кнопки в Hero и Methods */
  .cta-button {
    margin: 0.8rem auto;
    width: auto; /* Возвращаем к auto, чтобы они не были слишком широкими */
    min-width: 250px;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .cta-section .cta-button {
    width: 80%;
    max-width: 320px;
  }

  /* Отступы */
  .section {
    padding: 5rem 1.5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  /* Типографика */
  .hero-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }

  .section h2 {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
  }

  .quote-title {
    font-size: clamp(3rem, 7vw, 4rem);
  }

  .quote-title::after {
    /* Скрываем подчеркивание, если оно мешает на узких экранах */
    content: none;
  }
}

/* 2. Основной мобильный breakpoint (до 768px) */
@media (max-width: 768px) {
  /* Скрываем десктопное меню и показываем бургер */
  .main-nav {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .header-container {
    padding: 1rem 1.5rem;
  }

  .mobile-menu {
    width: 90%; /* Можно оставить 90% для узких экранов */
  }

  /* Отступы и шрифты для мобильных */
  .hero-content {
    padding: 2.5rem 1.5rem;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .neon-quote {
    font-size: 1.05rem;
  }
}

/* 3. Узкий мобильный breakpoint (до 600px) */
@media (max-width: 600px) {
  /* Терминал в футере и лоадере: вертикальный макет */
  .terminal-line {
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .terminal-prompt {
    align-self: flex-start;
  }

  /* Хакерская консоль: полная ширина внизу */
  .hacker-console {
    width: calc(100% - 20px);
    max-width: none;
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-height: 40vh;
  }
}
