@font-face {
  font-family: Poppins;
  src: url(../fonts/Poppins-Regular.ttf);
}
@font-face {
  font-family: PoppinsBlack;
  src: url(../fonts/Poppins-Black.ttf);
}

/* Современная цветовая палитра для образовательной платформы */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.section-1 {
  width: 100%;
  height: 100vh;
  position: relative;
}

.home-p {
  background: url('../img/bg2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-p {
  background: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overl {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 0 20px;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: 400;
}

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

.hero-btn {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

header {
  display: flex;
  padding: 20px 40px;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

header.bgc {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 15px 40px;
}

.logo {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  margin-left: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

header.bgc .logo {
  color: var(--primary-color);
}

.logo img {
  width: 45px;
  height: 45px;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header.bgc .logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  margin-right: 0;
  display: flex;
  gap: 8px;
}

nav a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

nav a.active::after {
  width: 60%;
}

header.bgc nav a {
  color: var(--text-primary);
}

header.bgc nav a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

header.bgc nav a.active {
  background: var(--primary-color);
  color: #fff;
}

header.bgc nav a.active::after {
  display: none;
}

.section-2 {
  padding: 100px 20px 60px;
  background: var(--bg-light);
  min-height: 100vh;
}

.section-2 h1 {
  padding: 20px;
  font-size: 42px;
  font-weight: 700;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 30px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-2 h1 img {
  width: 180px;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.section-2 p {
  padding: 20px;
  line-height: 1.8;
  font-size: 18px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  text-align: justify;
}

.section-2 > h1:first-of-type {
  text-align: center;
  margin-top: 0;
}

.container-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-text {
  text-align: center;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 50px;
  padding: 30px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.highlight-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid var(--primary-light);
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

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

.goals-list li {
  padding: 15px 20px;
  margin-bottom: 12px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 16px;
}

.goals-list li:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(5px);
  border-left-color: var(--accent-color);
}

.goals-list li:last-child {
  margin-bottom: 0;
}

/* Карточки для секций */
.feature-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 40px;
  margin: 30px auto;
  max-width: 900px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding: 0;
  background: none;
}

.feature-card p {
  margin-bottom: 0;
  padding: 0;
}

.main-footer {
  margin-top: 80px;
  width: 100%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  padding: 40px 20px;
  text-align: center;
}

.main-footer h4 {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .section-2 {
    padding: 80px 20px 40px;
  }
  
  .section-2 h1 {
    font-size: 36px;
  }
  
  .feature-card {
    padding: 30px;
  }
}

@media (max-width: 769px) {
  header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  header.bgc {
    padding: 12px 20px;
  }
  
  .logo {
    font-size: 20px;
    margin-left: 0;
  }
  
  .logo img {
    width: 40px;
    height: 40px;
  }
  
  nav {
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  nav a {
    font-size: 14px;
    padding: 8px 15px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .hero-btn {
    padding: 14px 30px;
    font-size: 16px;
  }
  
  .section-2 {
    padding: 100px 15px 40px;
  }
  
  .section-2 h1 {
    font-size: 28px;
    padding: 15px;
  }
  
  .section-2 p {
    font-size: 16px;
    padding: 15px;
  }
  
  .feature-card {
    padding: 25px 20px;
    margin: 20px auto;
  }
  
  .feature-card h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 18px;
  }
  
  nav a {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .hero-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 25px;
    font-size: 15px;
  }
  
  .section-2 h1 {
    font-size: 24px;
  }
  
  .section-2 p {
    font-size: 15px;
  }
}

/* 404 страница */
.container404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-light);
  padding: 20px;
}

.container404 .error-container {
  text-align: center;
  padding: 60px 40px;
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
}

.container404 h1 {
  font-size: 120px;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-weight: 700;
}

.container404 p {
  font-size: 18px;
  margin: 20px 0 30px;
  color: var(--text-secondary);
}

.container404 .svg-container {
  max-width: 300px;
  margin: 0 auto;
}

.container404 .svg-container a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container404 .svg-container a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.container404 .rotate {
  animation: rotate 3s infinite linear;
}

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