.training-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('training1.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
}

.training-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-hero {
    background: #b96734;
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background: #a05d33;
    transform: translateY(-2px);
}

.training-videos {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #1a1a1a;
    font-weight: 700;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.video-card {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container {
    padding-bottom: 177.78%;
}

.video-card h3 {
    padding: 25px;
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
}

.training-materials {
    padding: 80px 0;
    background: #1a1a1a;
    color: #fff;
}

.training-materials .section-title {
    color: #fff;
}

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

.material-card {
    background: #2c2c2c;
    border-radius: 12px;
    padding: 35px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.material-icon {
    font-size: 56px;
    flex-shrink: 0;
}

.material-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.material-content p {
    color: #ccc;
    line-height: 1.7;
    font-size: 16px;
}

@media (max-width: 968px) {
    .training-hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .videos-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .training-hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .material-card {
        flex-direction: column;
        text-align: center;
    }

    .material-icon {
        font-size: 48px;
    }
}
.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
  }
  
  .contact-modal.is-open { display: block; }
  
  .contact-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
  }
  
  .contact-modal__box {
    position: relative;
    width: 520px;
    max-width: 92vw;
    margin: 18vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  }
  
  .contact-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
    cursor: pointer;
    font-size: 22px;
    line-height: 38px;
  }
  
  .contact-modal__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
  }
  
  .contact-modal__subtitle {
    margin: 0 0 18px;
    color: #555;
  }
  
  .contact-modal__actions {
    display: grid;
    gap: 12px;
  }
  
  .contact-modal__btn {
    display: block;
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: transform .2s, background .25s;
  }
  
  .contact-modal__btn:hover {
    background: #b96734;
    transform: translateY(-2px);
  }
  
  @media (max-width: 560px) {
    .contact-modal__box {
      width: calc(100% - 26px);
      margin-top: 10vh;
    }
  }
  @media (max-width: 1200px) {
    .videos-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .materials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 968px) {
    .training-hero {
      padding: 100px 0 70px;
    }
  
    .training-hero h1 {
      font-size: 42px;
    }
  
    .hero-subtitle {
      font-size: 18px;
      max-width: 600px;
    }
  
    .btn-hero {
      padding: 14px 35px;
      font-size: 16px;
    }
  
    .section-title {
      font-size: 36px;
      margin-bottom: 50px;
    }
  
    .videos-grid,
    .materials-grid {
      grid-template-columns: 1fr;
    }
  
    .video-card,
    .material-card {
      max-width: 600px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 768px) {
    .training-hero {
      padding: 80px 0 60px;
    }
  
    .training-hero h1 {
      font-size: 36px;
    }
  
    .hero-subtitle {
      font-size: 17px;
      max-width: 500px;
    }
  
    .btn-hero {
      padding: 12px 30px;
      font-size: 15px;
    }
  
    .section-title {
      font-size: 32px;
      margin-bottom: 40px;
    }
  
    .video-card h3 {
      padding: 20px;
      font-size: 20px;
    }
  
    .material-card {
      padding: 30px;
      gap: 20px;
    }
  
    .material-icon {
      font-size: 52px;
    }
  
    .material-content h3 {
      font-size: 20px;
    }
  
    .material-content p {
      font-size: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .training-hero h1 {
      font-size: 28px;
    }
  
    .hero-subtitle {
      font-size: 16px;
      padding: 0 10px;
    }
  
    .btn-hero {
      padding: 10px 25px;
      font-size: 14px;
    }
  
    .section-title {
      font-size: 26px;
      margin-bottom: 35px;
    }
  
    .video-card h3 {
      padding: 18px;
      font-size: 18px;
    }
  
    .material-card {
      flex-direction: column;
      text-align: center;
      padding: 25px 20px;
      gap: 15px;
    }
  
    .material-icon {
      font-size: 48px;
    }
  
    .material-content h3 {
      font-size: 19px;
      margin-bottom: 10px;
    }
  
    .material-content p {
      font-size: 14px;
      line-height: 1.6;
    }
  
    .training-videos {
      padding: 60px 0;
    }
  
    .training-materials {
      padding: 60px 0;
    }
  }
  @media (max-width: 480px) {
    /* Улучшенная типографика для мобильных */
    body {
      font-size: 14px;
    }
  
    h1 {
      line-height: 1.3;
    }
  
    h2 {
      line-height: 1.4;
    }
  
    h3 {
      line-height: 1.4;
    }
  
    p {
      line-height: 1.6;
    }
  
    /* Улучшенные отступы для мобильных */
    .section {
      padding: 40px 0;
    }
  
    .about-stats,
    .about-why,
    .about-process,
    .about-faq {
      padding: 50px 0;
    }
  
    .services-section,
    .products-section,
    .specs-section,
    .why-section {
      padding: 50px 0;
    }
  
    .training-videos,
    .training-materials {
      padding: 50px 0;
    }
  
    /* Улучшенные карточки для мобильных */
    .service-card,
    .product-card,
    .why-card,
    .material-card,
    .stat-card {
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
  
    /* Улучшенные кнопки для мобильных (больше область нажатия) */
    button,
    .btn-primary,
    .btn-hero,
    .btn-submit,
    .btn-cta {
      min-height: 44px;
      min-width: 44px;
    }
  
    /* Улучшенная навигация для мобильных */
    .nav-link {
      min-height: 44px;
      display: flex;
      align-items: center;
    }
  
    /* Улучшенные формы для мобильных */
    .form-group input,
    .form-group textarea {
      font-size: 16px; /* Предотвращает зум на iOS */
    }
  }
  
  /* Ландшафтная ориентация для телефонов */
  @media (max-width: 968px) and (max-height: 500px) {
    .hero,
    .services-hero,
    .training-hero,
    .about-hero {
      height: auto;
      min-height: 400px;
      padding: 60px 0 50px;
    }
  
    .hero h1,
    .services-hero h1,
    .training-hero h1,
    .about-hero h1 {
      margin-bottom: 20px;
    }
  }
  
  /* Планшеты в портретной ориентации */
  @media (min-width: 768px) and (max-width: 1024px) {
    .container {
      max-width: 95%;
    }
  
    .services-grid,
    .products-grid,
    .videos-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .materials-grid,
    .why-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Очень маленькие экраны (320px) */
  @media (max-width: 360px) {
    .container {
      padding: 0 12px;
    }
  
    .logo {
      font-size: 20px;
    }
  
    .hero h1,
    .services-hero h1,
    .training-hero h1,
    .about-hero h1 {
      font-size: 22px;
    }
  
    .hero-subtitle {
      font-size: 14px;
    }
  
    .section-title {
      font-size: 24px;
    }
  
    .btn-primary,
    .btn-hero,
    .btn-cta {
      font-size: 13px;
      padding: 8px 20px;
    }
  }
  
  /* Улучшение производительности анимаций на мобильных */
  @media (max-width: 768px) {
    .service-card:hover,
    .product-card:hover,
    .video-card:hover,
    .material-card:hover,
    .why-card:hover,
    .stat-card:hover,
    .spec-badge:hover {
      transform: none; /* Убираем анимацию подъёма на мобильных для лучшей производительности */
    }
  
    /* Сохраняем только тень при hover */
    .service-card:active,
    .product-card:active,
    .video-card:active {
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
  }