/* БАЗОВЫЕ СТИЛИ СТРАНИЦЫ */



/* стили окна фоток */
/* Активная миниатюра */
.product-thumbnails img.active {
    border-color: #667eea !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

.product-main-image {
    position: relative; /* НЕОБХОДИМО ДЛЯ ПОЗИЦИОНИРОВАНИЯ */
    height: 600px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    overflow: hidden;
}

/* Анимация переключения изображений */
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняет пропорции, не растягивает */
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Убедитесь, что все изображения имеют одинаковые стили */
.product-main-image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* При смене изображения */
.product-main-image img.fade-out {
    opacity: 0;
}

.product-main-image img.fade-in {
    opacity: 1;
}


/* ========================================
   СТРАНИЦА ТОВАРА - СТИЛИ
   ======================================== */

   .product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   СЕКЦИЯ ТОВАРА (ИЗОБРАЖЕНИЕ + ОПИСАНИЕ)
   ======================================== */

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Изображение товара */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: #007bff;
    transform: scale(1.02);
}

/* Описание товара */
.product-description-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-price {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    display: block;
}

.price-subtext {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 600;
    line-height: 1.5;
}

.product-text {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.product-text p {
    margin: 0 0 20px 0;
}

.product-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Ссылки на скачивание */
.product-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.download-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.download-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(34%) sepia(85%) saturate(2000%) hue-rotate(210deg) brightness(95%) contrast(90%);
}

.download-size {
    margin-left: auto;
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.product-price-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 10px;
}

.product-price-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px #3b7b94;
    border-radius: 10px;
}

.product-price-link:focus,
.product-price-link:active {
    outline: none;
    box-shadow: none;
}

/* ========================================
   СЕКЦИЯ ОСОБЕННОСТЕЙ
   ======================================== */

.features-section {
    padding: 20px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 40px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}


/* Форма снизу */

  .contact-form-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 700px;
    align-items: center;
  }


  .section-title-form {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
    width: 100%;
    /* min-width: 1200px; */
  }

  .form-group label {
    font-size: 14px;
    color: #555;
  }

  .form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
  }

  .form-input:focus {
    outline: none;
    border-color: #20b2aa;
  }

  .form-textarea {
    min-height: 200px;
    resize: vertical;
  }

  .form-checkbox {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 15px;
    margin-top: 10px;
    margin-left: 7px;
    font-size: 16px;
    color: #555;
  }

  .form-checkbox input {
    margin-top: 3px;
  }

  .form-link {
    color: #20b2aa;
    text-decoration: none;
    font-size: 14px;
  }

  .form-link:hover {
    text-decoration: underline;
  }

  .form-submit {
    background-color: #20b2aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
  }

  .form-submit:hover {
    background-color: #1a9a8e;
  }

  .form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  /* Стили для сообщений об успехе/ошибке */
  #formMessageDisplayG23 {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
    }

    #formMessageDisplayG23.message {
        display: block;
    }

    #formMessageDisplayG23.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    #formMessageDisplayG23.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* Стили для ошибки телефона */
    .form-error {
        color: #dc3545;
        font-size: 14px;
        margin-top: 5px;
    }

    /* Плавные переходы для инпутов */
    .form-input {
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-input:focus {
        outline: none;
        border-color: #20b2aa;
        box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
    }

/* ////////////////////////////////////////////////////// */

  .message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
  }

  .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  /* submit button */

  .button-form {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background-color: #20b2aa;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
  }

  .button-form:hover {
    background-color: #20b2aa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #20b2ab9a;
  }

  .button-form:active {
    transform: translateY(0);
  } 

  .button-form:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  /* Адаптивность */
  @media (max-width: 768px) {
    .container {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  @media (max-width: 480px) {
    .container {
      padding: 20px;
    }
    .form-submit {
      width: 100%;
    }
  }

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .navbar-contact {
        width: 100%;
        justify-content: space-between;
    }

    .navbar-menu {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-container {
        gap: 20px; 
    }
}

@media (max-width: 480px) {
    .navbar-menu a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .navbar-account {
        padding: 6px 12px;
        font-size: 12px;
    }



    .footer-column h3 {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .contact-footer {
      padding: 30px 15px;
    }
  
    .contact-footer h2 {
      font-size: 1.5rem;
    }
  
    .contact-btn {
      padding: 10px 20px;
      font-size: 1rem;
    }
}

@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-page {
        padding: 30px 15px;
    }

    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        gap: 35px;
    }

    .contact-form {  
        min-width: 600px;
    }

    .product-main-image {
        height: 400px; /* Уменьшаем высоту для планшетов */
    }
    
    .product-main-image img {
        height: 400px;
    }
    
    .price-value {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .product-main-image {
        height: 350px; /* Уменьшаем высоту для мобильных */
        padding: 15px;
    }
    
    .product-main-image img {
        height: 350px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-price {
        padding: 25px;
    }
    
    .price-value {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 20px;
    }

    .contact-form {  
        min-width: 450px;
    }
}

@media (max-width: 480px) {
    .product-main-image {
        /* Еще меньше для маленьких экранов */
        height: 300px;
        padding: 10px;
    }

    .product-main-image-img {
        object-fit: cover;
        /* Добавим небольшой отступ для лучшего вида */
        margin: 5px;
    }

    .product-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-page {
        padding: 20px 10px;
    }

    .price-value {
        font-size: 28px;
    }
    
    .product-main-image img {
        height: 300px;
    }
    
    .product-thumbnails { 
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-value {
        font-size: 32px;
    }
    
    .price-subtext {
        font-size: 14px;
    }
    
    .download-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .download-size {
        margin-left: 0;
        font-size: 13px;
    }

    .contact-form {  
        min-width: 250px;
        max-width: 300px;
    }

    .form-group {
        max-width: 300px;
        margin: 0px 0px;
    }

    .contact-form-privacy-label {
        max-width: 300px;
    }
}