:root {
    --primary-color: #301C50;
    --primary-hover: #9747FF;
    --text-color: #4C4C4C;
    --padding-standard: 30px;
    --max-width: 1920px;
    --card-width-1440: 360px;
    --card-width-1920: 384px;
    --card-height: 312px;
    --border-color: #E0E0E0;
    
    /* Notification colors */
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --error-color: #F44336;
    
    /* Footer colors */
    --footer-bg: #F8F8F8;
    --footer-text: #333333;
    --footer-link-hover: var(--primary-hover);
    
    /* Touch-friendly variables */
    --touch-target-size: 44px;
  }

  /* Global touch improvements */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  button, 
  a, 
  [role="button"],
  input[type="submit"],
  input[type="button"] {
    min-height: var(--touch-target-size);
    min-width: var(--touch-target-size);
    cursor: pointer;
  }

/* ===== BACK BUTTON ===== */
.back-button {
    padding: 20px 0;
  }
  
  .btn-back {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
  }
  
  .btn-back svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
  }
  
  .btn-back:hover {
    color: var(--primary-hover);
  }
  
  .btn-back:hover svg {
    transform: translateX(-5px);
  }
  
  /* ===== PRODUCT DETAIL ===== */
  .product-detail {
    padding: 20px 0 60px;
    width: 100%;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
  }
  
  .product-info-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
  }
  
  /* Удаляем линию, которая создает проблемы */
  /* .product-info-container::after {
    content: '';
    position: absolute;
    right: 600px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
  } */
  
  .product-gallery {
    flex: 1;
    max-width: 600px;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
  }
  
  .product-gallery-layout {
    display: flex;
    gap: 20px;
  }
  
  .product-thumbnails-vertical {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: flex-start;
  }
  
  .product-main-image {
    flex: 1;
    width: 100%;
    height: 300px;
    /* border: 1px solid #E0E0E0; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
  }
  
  .product-main-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
  }
  
  .thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #E0E0E0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 2px;
  }
  
  .thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-hover);
    
  }
  
  .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .thumbnail:hover img {
    transform: scale(1.05);
  }
  
  .product-details {
    flex: 1;
    max-width: 600px;
    padding-left: 20px;
  }
  
  .product-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .product-description {
    margin-bottom: 30px;
  }
  
  .product-description p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 15px;
  }
  
  /* ===== PRODUCT ACTIONS ===== */
  .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    width: 100%;
  }
  
  /* Desktop version - показывается только на десктопе */
  .product-actions.desktop-only {
    display: flex;
  }
  
  /* Mobile version - скрыта на десктопе */
  .product-actions.mobile-only {
    display: none;
  }

  .btn-request-price {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    width: 100%;
    background-color: #4285F4;
    color: white;
    border-color: #4285F4;
  }

  .btn-request-price:hover {
    background-color: #3367D6;
    border-color: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  }

  /* ===== PRODUCT FEATURES ===== */
  .product-features {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E8EAED;
  }

  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
  }

  .feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .feature-text {
    font-size: 15px;
    line-height: 1.5;
    color: #3c4043;
  }

  /* Legacy button for backward compatibility */
  .price-request-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #9747FF;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .price-request-btn:hover {
    background-color: #8035e6;
    transform: translateY(-2px);
  }
  
  /* ===== PRODUCT CONTENT SECTION ===== */
  .product-content-section {
    padding: 15px 15px 15px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    position: relative;
  }
  
  .product-content-container {
    display: block;
    position: relative;
  }
  
  .description-full-width {
    width: 100%;
    max-width: none;
  }
  
  
  .section-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
  }
  
  .description-text {
    max-width: 100%;
    width: 100%;
  }
  
  .description-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 15px;
  }
  
  .description-text ul {
    padding-left: 20px;
    margin: 15px 0;
  }
  
  .description-text li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 8px;
  }
  
  .specifications-table {
    width: 100%;
    margin-bottom: 40px;
  }
  
  .spec-row {
    display: flex;
    padding: 0;
    position: relative;
    width: 95%;
  }
  
  .spec-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
  }
  
  .spec-label {
    width: 50%;
    padding: 15px 30px 15px 0;
    font-weight: 500;
    color: var(--text-color);
  }
  
  .spec-value {
    width: 50%;
    padding: 15px 0 15px 30px;
    color: var(--text-color);
  }
  
  /* ===== DOCUMENTATION BLOCK ===== */
  .documentation-block {
    margin-top: 40px;
  }
  
  .documentation-block .section-title {
    margin-top: 20px;
  }
  
  .document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .document-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .document-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  .document-item svg {
    margin-right: 15px;
  }
  
  .document-item span {
    font-size: 16px;
  }

  /* ===== RESPONSIVE STYLES ===== */
/* Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
      padding: 0 60px;
    }
  }
  
  /* Tablet (768px - 1439px) */
  @media (min-width: 768px) and (max-width: 1439px) {
    .container {
      padding: 0 30px;
      max-width: 100%;
      width: 100%;
    }

    
    .product-info-container {
      flex-direction: column;
      align-items: center;
      gap: 40px;
    }
    
    .product-info-container::after {
      display: none;
    }
    
    .product-gallery {
      max-width: 100%;
      width: 100%;
      padding-left: 0;
      padding-right: 0;
      border-right: none;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 30px;
    }
    
    /* Product Actions Tablet - возвращаем к стандартным отступам */
    .product-actions.desktop-only {
      margin: 24px 0;
    }
    
    .product-actions.mobile-only {
      display: none;
    }
    
    .product-details {
      max-width: 100%;
      width: 100%;
      padding-left: 0;
    }
    
    .product-content-container {
      display: block;
    }
    
    .description-full-width {
      width: 100%;
      max-width: none;
    }
    
    
    .spec-row {
      max-width: 100%;
    }
    
   
  }
  
  /* Mobile (320px - 767px) */
  @media (max-width: 767px) {
    :root {
      --padding-standard: 20px;
    }
    
    .container {
      padding: 0 20px;
      max-width: 100%;
      width: 100%;
      overflow: hidden;
    }

    /* Back button improvements */
    .back-button {
      padding: 15px 0;
    }

    .btn-back {
      font-size: 14px;
      padding: 8px 0;
    }

    /* Product detail section */
    .product-detail {
      padding: 30px 0;
      border-left: none;
      border-right: none;
      margin-bottom: 20px;
    }

    .product-info-container {
      flex-direction: column;
      gap: 30px;
    }

    .product-gallery {
      max-width: 100%;
      border-right: none;
      padding-right: 0;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 30px;
    }
    
    .product-title {
      font-size: 24px;
      margin-bottom: 15px;
      line-height: 1.3;
    }
    
    .product-gallery-layout {
      flex-direction: column;
      gap: 15px;
    }

    .product-main-image {
      order: 1;
      height: 250px;
    }

    .product-main-image img {
      height: 250px;
      width: 100%;
      object-fit: cover;
    }
    
    .product-thumbnails-vertical {
      order: 2;
      flex-direction: row;
      justify-content: flex-start;
      gap: 10px;
      margin-top: 0;
      overflow-x: auto;
      padding: 10px 0;
      -webkit-overflow-scrolling: touch;
    }

    .thumbnail {
      flex-shrink: 0;
      width: 70px;
      height: 70px;
      border-radius: 8px;
    }

    .thumbnail img {
      border-radius: 6px;
    }
    
    .product-details {
      padding-left: 0;
      max-width: 100%;
    }

    .product-description p {
      font-size: 15px;
      line-height: 1.5;
      margin-bottom: 12px;
    }

    /* Product Actions Mobile */
    .product-actions.desktop-only {
      display: none; /* Скрываем десктопную версию на мобильных */
    }
    
    .product-actions.mobile-only {
      display: flex; /* Показываем мобильную версию */
      margin-top: 15px;
      margin-bottom: 0;
      gap: 10px;
    }

    .btn-request-price {
      width: 100%;
      padding: 18px 20px;
      font-size: 15px;
      border-radius: 5px;
      min-height: 56px;
    }

    /* Product Features Mobile */
    .product-features {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #E8EAED;
    }

    .feature-item {
      margin-bottom: 14px;
      padding: 6px 0;
    }

    .feature-text {
      font-size: 14px;
      line-height: 1.4;
    }

    .feature-icon svg {
      width: 18px;
      height: 18px;
    }

    /* Legacy button mobile */
    .price-request-btn {
      width: 100%;
      text-align: center;
      padding: 16px 20px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 12px;
      margin-top: 20px;
    }

    /* Content section improvements */
    .product-content-section {
      padding: 25px 0;
      border-left: none;
      border-right: none;
    }
    
    .section-title {
      font-size: 22px;
      margin-bottom: 20px;
    }

    .description-text p {
      font-size: 15px;
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .description-text ul {
      padding-left: 18px;
    }

    .description-text li {
      font-size: 15px;
      margin-bottom: 6px;
    }
    
    .spec-row {
      flex-direction: column;
      padding: 15px 0;
      max-width: 100%;
      border-radius: 8px;
      background-color: #fafafa;
      margin-bottom: 10px;
      padding-left: 15px;
      padding-right: 15px;
    }

    .spec-row:not(:last-child)::after {
      display: none;
    }
    
    .spec-label, 
    .spec-value {
      width: 100%;
      padding: 3px 0;
    }

    .spec-label {
      font-weight: 600;
      color: var(--primary-color);
      font-size: 14px;
    }

    .spec-value {
      font-size: 14px;
      color: var(--text-color);
    }

    /* Documentation block */
    .documentation-block {
      margin-top: 30px;
    }

    .document-item {
      padding: 12px 15px;
      border-radius: 8px;
    }

    .document-item span {
      font-size: 14px;
    }
  }
  
  /* Mobile Small (320px - 480px) */
  @media (max-width: 480px) {
    .container {
      padding: 0 16px;
      max-width: 100%;
      width: 100%;
    }

    .product-title {
      font-size: 22px;
      line-height: 1.2;
    }
    
    .product-main-image {
      height: 220px;
    }

    .product-main-image img {
      height: 220px;
    }
    
    .thumbnail {
      width: 60px;
      height: 60px;
    }
    
    .price-request-btn {
      padding: 14px 20px;
      font-size: 15px;
    }

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

    .description-text p,
    .description-text li {
      font-size: 14px;
    }
    
  }
  
  /* ===== MODAL STYLES ===== */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    overflow: auto;
  }
  
  .modal.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes scaleIn {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    opacity: 0;
    animation: scaleIn 0.4s ease forwards 0.1s;
  }
  
  .modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
  }
  
  .close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close-modal:hover {
    color: var(--primary-hover);
  }
  
  .modal-body {
    padding: 20px 25px 25px;
  }
  
  .modal-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
  }
  
  /* Form styles */
  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
  }
  
  .form-group {
    flex: 1;
    margin-bottom: 15px;
  }
  
  .form-group.full-width {
    width: 100%;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
  }
  
  .input-container {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .input-icon {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    z-index: 1;
  }
  
  .input-container input {
    width: 100%;
    padding: 12px 15px 12px 60px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.3s;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.3s;
  }
  
  input[type="text"]:focus,
  input[type="tel"]:focus,
  input[type="email"]:focus,
  textarea:focus {
    border-color: var(--primary-hover);
    outline: none;
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-hover);
  }
  
  .checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
  }
  
  .submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-hover);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .submit-btn:hover {
    background-color: #8035e6;
    transform: translateY(-2px);
  }
  
  /* Mobile responsive styles */
  @media (max-width: 767px) {
    .modal {
      padding: 20px 0;
    }

    .modal-content {
      width: calc(100% - 40px);
      margin: 5% auto;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
    }

    .modal-header {
      padding: 20px 20px 15px;
    }

    .modal-header h3 {
      font-size: 20px;
    }

    .modal-body {
      padding: 15px 20px 25px;
    }

    .form-row {
      flex-direction: column;
      gap: 0;
      margin-bottom: 10px;
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-group label {
      font-size: 15px;
      margin-bottom: 6px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea {
      padding: 14px 15px;
      font-size: 16px; /* Prevent zoom on iOS */
      border-radius: 8px;
    }

    textarea {
      min-height: 80px;
    }

    .checkbox-group {
      margin-bottom: 25px;
      align-items: flex-start;
    }

    .checkbox-group input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin-top: 2px;
      flex-shrink: 0;
    }

    .checkbox-group label {
      font-size: 13px;
      line-height: 1.4;
    }

    .submit-btn {
      padding: 16px;
      font-size: 17px;
      border-radius: 8px;
      font-weight: 600;
    }
  }

  @media (max-width: 480px) {
    .modal-content {
      width: calc(100% - 20px);
      margin: 3% auto;
    }

    .modal-header,
    .modal-body {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  
  /* ===== NOTIFICATION SYSTEM ===== */
  
  /* Notification Styles */
  .notification {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    min-width: 280px;
    max-width: 100%;
    animation: slideIn 0.3s ease forwards;
    position: relative;
  }
  
  .notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(50px);
    }
  }
  
  /* Notification Type Bar */
  .notification-bar {
    width: 4px;
    margin: 5px 0 5px 5px;
    border-radius: 2px;
  }
  
  .notification-bar.success {
    background-color: var(--success-color);
  }
  
  .notification-bar.info {
    background-color: var(--info-color);
  }
  
  .notification-bar.warning {
    background-color: var(--warning-color);
  }
  
  .notification-bar.error {
    background-color: var(--error-color);
  }
  
  /* Notification Content */
  .notification-content {
    padding: 5px 15px 5px 10px;
    flex: 1;
  }
  
  .notification-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
    margin-bottom: 5px;
  }
  
  .notification-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    margin-bottom: 5px;
    line-height: 1.4;
  }
  
  /* Mobile responsive styles for notifications */
  @media (max-width: 767px) {
    #notification-container {
      right: 10px;
      left: 10px;
      top: 10px;
      max-width: calc(100% - 20px);
    }
  
    .notification {
      width: 100%;
      min-width: auto;
    }
  }
  
  