
:root {
  --clr-header-bg: #fff;
  --clr-accent: #3f51b5;
  --clr-header-btn: #00b050;
  --clr-header-btn-hover: #009c42;
  --clr-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --clr-header-btn-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fafafa;
  color: #1e293b;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 500;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: #2563eb;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

/* Nav */
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav a:hover {
  color: #2563eb;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: #2563eb;
  font-weight: 700;
}

/* Hero Section */
.training-hero {
  padding: 60px 20px;
  background: #eff6ff;
  text-align: center;
}

.training-hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.training-hero p {
  font-size: 1.1rem;
  color: #475569;
}

/* Playlist Embed */
.training-playlist {
  padding: 40px 0;
  background: white;
}

.playlist-embed iframe {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
}

/* Videos Grid */
.training-videos {
  padding: 60px 0;
}

.training-videos h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.video-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.video-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
}

.video-card h3 {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #1e3a8a;
}

.video-card p {
  font-size: 0.95rem;
  color: #475569;
}

/* Button */
.button {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.button:hover {
  background: #1e40af;
}

/* Animated Elements */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes underlineGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Удален конфликтующий стиль для мобильного меню */

.logo a,
.header-action .btn,
.nav-container a {
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.logo a:hover,
.header-action .btn:hover,
.nav-container a:hover {
  transform: scale(1.05);
}

.nav-container a.active {
  position: relative;
}

.nav-container a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-accent);
  animation: underlineGrow 0.3s ease forwards;
}

/* External Training Section */
.external-training {
  background: #f1f5f9;
  padding: 60px 20px;
}

.external-training h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #1e293b;
}

.external-training .subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #64748b;
}

.system-block {
  margin-bottom: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.system-title {
  font-size: 1.6rem;
  color: #2563eb;
  margin-bottom: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  margin-left: auto;
  margin-right: auto;
  animation: slideFadeIn 0.6s ease forwards;
}

@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps-grid {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center; /* Это выровняет по центру */
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.step-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.5s ease both;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.step-card h4 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: #1e3a8a;
}

.step-card p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.step-card a {
  color: #2563eb;
  text-decoration: underline;
}
