/* ===== ЦВЕТА ===== */
:root {
  --red:     #E53935;
  --red-d:   #C62828;
  --blue:    #1E88E5;
  --blue-d:  #1565C0;
  --cyan:    #00BCD4;
  --cyan-d:  #0097A7;
  --yellow:  #FFC107;
  --yellow-d:#FFA000;
  --white:   #FFFFFF;
  --bg:      #0D1117;
  --bg2:     #161B22;
  --surface: #21262D;
  --text:    #F0F6FC;
  --text2:   #8B949E;
  --radius:  16px;
  --radius-sm: 10px;
}

/* ===== СБРОС ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { background: linear-gradient(135deg, var(--red), var(--yellow), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  color: var(--text2); transition: all 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: 0.3s;
}
.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(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(13,17,23,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1rem; gap: 0.25rem;
    transform: translateY(-120%); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--red);    top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--blue);   top: 20%; right: -8%; animation-delay: -4s; }
.blob-3 { width: 350px; height: 350px; background: var(--yellow); bottom: 0; left: 30%; animation-delay: -8s; }
.blob-4 { width: 300px; height: 300px; background: var(--cyan);   top: 50%; left: 10%; animation-delay: -12s; }
.blob-5 { width: 250px; height: 250px; background: var(--blue);   bottom: 10%; right: 20%; animation-delay: -16s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.05); }
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px;
  background: rgba(255,193,7,0.15); border: 1px solid rgba(255,193,7,0.3);
  color: var(--yellow); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  margin-bottom: 1.5rem; animation: fadeInUp 0.6s ease-out;
}
.hero-title {
  font-family: 'Comfortaa', 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}
.highlight-blue { color: var(--blue); }
.highlight-yellow { color: var(--yellow); }
.highlight-red { color: var(--red); }
.highlight-cyan { color: var(--cyan); }
.hero-sub {
  font-size: 1.15rem; color: var(--text2); max-width: 600px; margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.hero-buttons {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem; animation: fadeInUp 0.6s ease-out 0.45s both;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: 12px;
  font-family: inherit; font-weight: 800; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-d); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-d); }
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-d); }
.btn-yellow { background: var(--yellow); color: #1a1a1a; }
.btn-yellow:hover { background: var(--yellow-d); }
.btn-green { background: #43A047; color: var(--white); }
.btn-green:hover { background: #388E3C; }

/* ===== СТАТИСТИКА ===== */
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: 'Comfortaa', sans-serif; font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text2); font-weight: 700; }

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; text-align: center; color: var(--text2); font-size: 0.8rem; font-weight: 700;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}
.scroll-arrow {
  font-size: 1.2rem; margin-top: 0.3rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== СЕКЦИИ ===== */
.section { padding: 5rem 0; }
.section-red { background: linear-gradient(180deg, var(--red) 0%, #B71C1C 100%); }
.section-blue { background: linear-gradient(180deg, var(--blue) 0%, #0D47A1 100%); }
.section-cyan { background: linear-gradient(180deg, var(--cyan) 0%, #006064 100%); }

.section-title {
  font-family: 'Comfortaa', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900; text-align: center; margin-bottom: 0.75rem;
}
.section-title.light { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.section-desc { text-align: center; color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 3rem; font-weight: 600; }
.section-desc.light { color: rgba(255,255,255,0.85); }

/* ===== О СЕБЕ ===== */
.about { padding: 5rem 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.about-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}
.about-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.about-card.card-red:hover  { border-color: var(--red); }
.about-card.card-blue:hover { border-color: var(--blue); }
.about-card.card-cyan:hover { border-color: var(--cyan); }
.about-icon { font-size: 3rem; margin-bottom: 1rem; }
.about-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.about-card p { color: var(--text2); font-size: 0.95rem; }

/* ===== ВИДЕО КАРТОЧКИ ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.video-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.video-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 35px rgba(0,0,0,0.35); }
.video-thumb {
  position: relative; height: 180px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.thumb-red  { background: linear-gradient(135deg, rgba(229,57,53,0.4), rgba(183,28,28,0.6)); }
.thumb-blue { background: linear-gradient(135deg, rgba(30,136,229,0.4), rgba(13,71,161,0.6)); }
.thumb-cyan { background: linear-gradient(135deg, rgba(0,188,212,0.4), rgba(0,96,100,0.6)); }
.video-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}
.video-play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--bg); font-weight: 900;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: transform 0.25s;
  z-index: 1;
}
.video-card:hover .video-play { transform: scale(1.15); }
.video-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75); color: var(--white); padding: 0.2rem 0.5rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 700; z-index: 1;
}
.video-info { padding: 1rem; }
.video-info h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.4; }
.video-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); font-weight: 600; }

/* ===== ПОДПИСКА ===== */
.subscribe { padding: 4rem 0; background: var(--bg2); }
.subscribe-box {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(135deg, rgba(229,57,53,0.15), rgba(30,136,229,0.15), rgba(0,188,212,0.15));
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 2.5rem; flex-wrap: wrap;
}
.subscribe-content h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.subscribe-content p { color: var(--text2); font-weight: 600; }
.subscribe-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sub-input {
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  border: 2px solid var(--surface); background: var(--surface); color: var(--white);
  font-family: inherit; font-size: 0.95rem; min-width: 250px; outline: none;
  transition: border-color 0.3s;
}
.sub-input:focus { border-color: var(--yellow); }
.sub-input::placeholder { color: var(--text2); }

/* ===== ФУТЕР ===== */
.footer { padding: 3rem 0 1.5rem; background: var(--bg); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text2); margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text2); font-weight: 700; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform 0.25s, background 0.25s;
}
.social-link:hover { transform: translateY(-3px); background: var(--red); }
.footer-bottom { text-align: center; color: var(--text2); font-size: 0.85rem; font-weight: 600; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
  .hero { padding: 5rem 1rem 3rem; }
  .hero-title { font-size: 1.75rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .subscribe-box { flex-direction: column; text-align: center; }
  .subscribe-form { justify-content: center; }
  .sub-input { min-width: 200px; width: 100%; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
