/* Services Page Styles */

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

  
  .services-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);
  }
  
  /* Services Section */
  .services-section {
    padding: 80px 0;
    background: #fff;
  }
  
  .section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #1a1a1a;
    font-weight: 700;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
  }
  
  .service-card {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  }
  
  .service-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }

  .service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65));
  }
  
  .service-content {
    padding: 30px;
  }
  
  .service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
  }
  
  .service-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .service-list {
    list-style: none;
    padding: 0;
  }
  
  .service-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
    font-size: 15px;
  }
  
  .service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b96734;
    font-weight: bold;
    font-size: 18px;
  }
  
  /* Products Section */
  .products-section {
    padding: 80px 0;
    background: #1a1a1a;
    color: #fff;
  }
  
  .products-section .section-title {
    color: #fff;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
  
  .product-card {
    background: #2c2c2c;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .product-card:hover {
    transform: translateY(-8px);
  }
  
  .product-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }

  .product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.6));
  }
  
  .product-content {
    padding: 30px;
  }
  
  .product-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
  }
  
  .product-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .product-list {
    list-style: none;
    padding: 0;
  }
  
  .product-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #ccc;
    font-size: 15px;
  }
  
  .product-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #b96734;
    font-weight: bold;
  }
  
  /* Technical Specs Section */
  .specs-section {
    padding: 80px 0;
    background: #f8f8f8;
  }
  
  .specs-note {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: -40px;
    margin-bottom: 50px;
    font-style: italic;
  }
  
  .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }
  
  .spec-badge {
    background: #fff;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
  }
  
  .spec-badge:hover {
    transform: translateY(-5px);
  }
  
  .spec-icon {
    font-size: 48px;
    margin-bottom: 15px;
  }
  
  .spec-value {
    font-size: 24px;
    font-weight: 700;
    color: #b96734;
    margin-bottom: 8px;
  }
  
  .spec-label {
    font-size: 16px;
    color: #555;
  }
  
  /* Why Section */
  .why-section {
    padding: 80px 0;
    background: #fff;
  }
  
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
  }
  
  .why-card {
    text-align: center;
    padding: 30px;
  }
  
  .why-icon {
    font-size: 56px;
    margin-bottom: 20px;
  }
  
  .why-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
  }
  
  .why-card p {
    color: #555;
    line-height: 1.7;
  }
  
  /* Contact Section */
  .contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  
  .contact-form h2 {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
  }
  
  .form-group textarea {
    min-height: 140px;
    resize: vertical;
  }
  
  .btn-submit {
    background: #b96734;
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
  }
  
  .btn-submit:hover {
    background: #a05d33;
  }
  
  .contact-info h3 {
    font-size: 28px;
    margin-bottom: 35px;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .contact-icon {
    font-size: 32px;
    flex-shrink: 0;
  }
  
  .contact-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
  }
  
  .contact-value {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
  }
  
  .contact-value:hover {
    text-decoration: underline;
  }
  
  /* Responsive */
  @media (max-width: 968px) {
    .services-hero {
      padding: 100px 0 70px;
    }
  
    .services-hero h1 {
      font-size: 42px;
    }
  
    .hero-subtitle {
      font-size: 18px;
    }
  
    .services-grid,
    .products-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .specs-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 520px) {
    .section-title {
      font-size: 32px;
      margin-bottom: 40px;
    }
  
    .specs-grid {
      grid-template-columns: 1fr;
    }
  }
  .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;
    max-width: 520px;
    margin: 14vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 26px 22px 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  }
  
  .contact-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
  }
  
  .contact-modal__title {
    margin: 0 0 6px;
    font-size: 22px;
    color: #111;
    font-weight: 700;
  }
  
  .contact-modal__subtitle {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.4;
  }
  
  .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: 500;
    transition: transform .2s, background .25s;
  }
  
  .contact-modal__btn:hover {
    background: #b96734;
    transform: translateY(-2px);
  }
  @media (max-width: 1200px) {
    .services-grid,
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 968px) {
    .services-hero {
      padding: 100px 0 70px;
    }
  
    .services-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;
    }
  
    .services-grid,
    .products-grid {
      grid-template-columns: 1fr;
    }
  
    .service-card,
    .product-card {
      max-width: 600px;
      margin: 0 auto;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .specs-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }
  
    .why-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .services-hero {
      padding: 80px 0 60px;
    }
  
    .services-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;
    }
  
    .service-img,
    .product-img {
      height: 200px;
    }
  
    .service-content,
    .product-content {
      padding: 25px;
    }
  
    .service-content h3,
    .product-content h3 {
      font-size: 22px;
    }
  
    .service-content p,
    .product-content p {
      font-size: 15px;
    }
  
    .spec-badge {
      padding: 30px 15px;
    }
  
    .spec-icon {
      font-size: 42px;
    }
  
    .spec-value {
      font-size: 22px;
    }
  
    .spec-label {
      font-size: 15px;
    }
  
    .why-grid {
      grid-template-columns: 1fr;
    }
  
    .why-card {
      padding: 25px;
    }
  
    .why-card h3 {
      font-size: 20px;
    }
  
    .contact-form h2 {
      font-size: 30px;
    }
  
    .contact-info h3 {
      font-size: 24px;
    }
  
    .contact-item {
      gap: 15px;
    }
  
    .contact-icon {
      font-size: 28px;
    }
  
    .contact-value {
      font-size: 16px;
    }
  }
  
  @media (max-width: 520px) {
    .services-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;
    }
  
    .specs-grid {
      grid-template-columns: 1fr;
    }
  
    .spec-badge {
      padding: 25px 15px;
    }
  
    .service-img,
    .product-img {
      height: 180px;
    }
  
    .service-content,
    .product-content {
      padding: 20px;
    }
  
    .service-content h3,
    .product-content h3 {
      font-size: 20px;
    }
  
    .service-list li,
    .product-list li {
      font-size: 14px;
      padding: 6px 0 6px 25px;
    }
  
    .why-icon {
      font-size: 48px;
    }
  
    .why-card h3 {
      font-size: 19px;
    }
  
    .why-card p {
      font-size: 15px;
    }
  
    .contact-form h2 {
      font-size: 26px;
      margin-bottom: 25px;
    }
  
    .contact-info h3 {
      font-size: 22px;
      margin-bottom: 25px;
    }
  
    .contact-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  
    .contact-icon {
      font-size: 32px;
    }
  
    .specs-note {
      font-size: 13px;
      margin-top: -30px;
      margin-bottom: 40px;
    }
  }
  @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);
    }
  }