/* Variables */
:root {
    --primary-color: #2A4B8C;       /* Основной синий цвет */
    --secondary-color: #F5B335;     /* Акцентный желтый */
    --dark-bg: #1A2332;            /* Темный фон */
    --light-bg: #F9FAFC;           /* Светлый фон */
    --text-dark: #2D3748;          /* Основной текст */
    --text-light: #FFFFFF;         /* Текст на темном фоне */
    --transition-base: 0.3s ease;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --radius-md: 12px;
  }
  
  /* Base Styles */
  .product-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-bg);
  }
  
  /* Hero Section - Research-based parallax effect */
  .product-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    isolation: isolate;
  }
  
  .hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    transition: transform 0.8s var(--transition-base);
    will-change: transform;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    color: var(--text-light);
    text-align: center;
    background: none;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-shadow: var(--shadow-md);
  }
  .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
  }
  .hero-subtitle {
    color: var(--text-dark); /* или color: #000; */
  }
  
  
  /* Section Headings */
  .section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin: 4rem auto;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
  }
  
  
  /* Product Description */
  .product-description {
    max-width: 900px;
    font-size: 1.15rem;
    line-height: 1.75;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    
  }
  
  .product-description p {
    margin-bottom: 1.5rem;
  }
  
  /* Image Gallery - CSS Grid with aspect ratio */
  .product-gallery {
    display: flex;
    flex-wrap: nowrap;                /* Отключает перенос */
    gap: 2rem;                        /* Отступ между картинками */
    overflow-x: auto;                 /* Горизонтальный скролл при переполнении */
    padding: 2rem 0;
    scroll-snap-type: x mandatory;   /* (опционально) прокрутка по карточкам */
  }
  
  .gallery-item {
    flex: 0 0 auto;                   /* Запрет растягивания */
    width: 300px;                     /* Фиксированная ширина */
    aspect-ratio: 4 / 3;              /* Соотношение сторон */
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-base);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* Technical Features Grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-base);
  }
  
  .feature-card:hover {
    transform: translateY(-3px);
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    fill: var(--secondary-color);
    flex-shrink: 0;
  }
  
  .feature-text {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
  }
  /* lightGallery custom styles */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
    transition: opacity 0.5s ease;
  }
  
  .lg-outer {
    transition: transform 0.4s ease;
    will-change: transform;
  }
  
  .lg-show-in .lg-inner {
    animation: lg-fade-in 0.5s ease forwards;
  }
  
  @keyframes lg-fade-in {
    from {
      transform: scale(0.92);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .lg-thumb-outer {
    background-color: #f1f1f1;
  }
  
  .lg-thumb-item {
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
  }
  
  .lg-current .lg-object {
    max-width: 800px;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
  }
  
  

  
  .lg-toolbar .lg-icon {
    color: var(--text-light);
    transition: color 0.2s ease;
  }
  
  .lg-toolbar .lg-icon:hover {
    color: var(--secondary-color);
  }
  
  .lg-sub-html {
    display: none !important;
  }
  
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .product-hero {
      height: 60vh;
      min-height: 400px;
    }
  
    .hero-content {
      padding: 2rem 1rem;
    }
  
    .features-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Accessibility */
  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
      animation: none !important;
    }
  }
  
  /* Print Styles */
  @media print {
    .product-hero {
      height: auto;
      color: black;
      background: white !important;
    }
    
    .hero-image {
      display: none;
    }
    
    .product-description,
    .feature-card {
      box-shadow: none;
      border: 1px solid #ddd;
    }
  }