/* ===========================
   СТРАНИЦА ОТДЕЛЬНОГО ТОВАРА
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Основные стили для блока товара */
.product {
  background: #fff;
  padding: 40px 0;
  min-height: calc(100vh - 300px);
}

.product .h2 {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.product .h2 h2 {
  color: #375faf;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.icon_right {
  width: 30px;
  height: auto;
}

/* ===== ОСНОВНОЕ СОДЕРЖИМОЕ ТОВАРА ===== */
.product_detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 50px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f9fbff 0%, #f0f5ff 100%);
  border-radius: 15px;
  border: 1px solid #e0ecff;
  box-shadow: 0 10px 30px rgba(55, 95, 175, 0.08);
}

/* Блок с изображением */
.product_detail_img {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product_detail_img a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product_detail_main_img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.product_detail_img:hover .product_detail_main_img {
  transform: scale(1.08) rotateZ(1deg);
  filter: drop-shadow(0 20px 40px rgba(55, 95, 175, 0.25));
}

/* Информация о товаре */
.product_detail_info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #404155;
  font-size: 16px;
  line-height: 1.8;
}

.product_detail_info h3 {
  color: #375faf;
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #f9a400;
  display: inline-block;
}

.product_detail_info h3:first-child {
  margin-top: 0;
}

.product_detail_info p {
  margin: 15px 0;
  color: #555;
  text-align: justify;
  line-height: 1.9;
}

/* ===== СПИСОК СПЕЦИФИКАЦИЙ ===== */
.product_specs {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product_specs li {
  padding: 15px 20px;
  background: white;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product_specs li:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(249, 164, 0, 0.15);
  background: #fffbf0;
}

.product_specs strong {
  color: #375faf;
  font-weight: 700;
  font-size: 17px;
}

/* ===== СПИСОК ПРЕИМУЩЕСТВ ===== */
.product_benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product_benefits li {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f0f7ff;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #d4e8ff;
}

.product_benefits li:hover {
  background: #e2f0ff;
  border-color: #375faf;
  padding-left: 20px;
}

.product_benefits li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== КНОПКА ===== */
.product_detail_btn {
  background: linear-gradient(135deg, #375faf 0%, #1e4d99 100%);
  color: white;
  border: none;
  padding: 16px 45px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(55, 95, 175, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.product_detail_btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.product_detail_btn:hover {
  background: linear-gradient(135deg, #1e4d99 0%, #0d3a7a 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(55, 95, 175, 0.45);
}

.product_detail_btn:hover::before {
  left: 100%;
}

.product_detail_btn:active {
  transform: translateY(-2px);
}

/* ===== ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ ===== */
.product_additional {
  background: linear-gradient(135deg, #e2f3ff 0%, #f0f8ff 100%);
  padding: 40px;
  border-radius: 12px;
  margin: 50px 0;
  box-shadow: 0 5px 20px rgba(55, 95, 175, 0.1);
}

.product_additional h3 {
  color: #375faf;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f9a400;
}

.product_additional p {
  color: #444;
  font-size: 16px;
  line-height: 1.9;
  margin: 18px 0;
  text-align: justify;
}

.product_additional p strong {
  color: #375faf;
  font-weight: 700;
}

/* ===== НАВИГАЦИЯ ===== */
.product_nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.product_nav a {
  text-decoration: none;
  padding: 12px 25px;
  background: white;
  color: #375faf;
  border: 2px solid #375faf;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product_nav a:hover {
  background: #375faf;
  color: white;
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(55, 95, 175, 0.3);
}

/* ===== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ===== */
@media (max-width: 1024px) {
  .product_detail {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }

  .product_detail_img {
    position: static;
    max-width: 100%;
  }

  .product .h2 h2 {
    font-size: 28px;
  }

  .product_detail_info h3 {
    font-size: 22px;
  }
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
  .product {
    padding: 20px 0;
  }

  .product .h2 {
    margin-bottom: 25px;
    flex-wrap: wrap;
  }

  .product .h2 h2 {
    font-size: 24px;
  }

  .product_detail {
    padding: 20px;
    border-radius: 10px;
    background: #f9fbff;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(55, 95, 175, 0.05);
  }

  .product_detail_info h3 {
    font-size: 20px;
    margin: 25px 0 15px 0;
  }

  .product_detail_info p {
    font-size: 15px;
    text-align: left;
  }

  .product_specs {
    gap: 10px;
  }

  .product_specs li {
    padding: 12px 15px;
    font-size: 14px;
  }

  .product_specs li:hover {
    transform: translateX(5px);
  }

  .product_benefits {
    grid-template-columns: 1fr;
  }

  .product_benefits li {
    padding: 10px 12px;
    font-size: 14px;
  }

  .product_detail_btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    margin-top: 25px;
    align-self: stretch;
  }

  .product_additional {
    padding: 25px;
    margin: 35px 0;
  }

  .product_additional h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .product_additional p {
    font-size: 14px;
    line-height: 1.7;
    margin: 15px 0;
    text-align: left;
  }

  .product_nav {
    flex-direction: column;
    gap: 15px;
  }

  .product_nav a {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* ===== ОЧЕНЬ МОБИЛЬНЫЕ (< 480px) ===== */
@media (max-width: 480px) {
  .product {
    padding: 15px 0;
  }

  .product .h2 h2 {
    font-size: 20px;
  }

  .product_detail {
    padding: 15px;
    gap: 20px;
  }

  .product_detail_img {
    padding: 15px;
  }

  .product_detail_info h3 {
    font-size: 18px;
    margin: 20px 0 12px 0;
  }

  .product_detail_info p {
    font-size: 14px;
    margin: 12px 0;
  }

  .product_specs li {
    padding: 10px 12px;
    font-size: 13px;
  }

  .product_benefits li {
    padding: 9px 10px;
    font-size: 13px;
  }

  .product_benefits li::before {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    font-size: 12px;
  }

  .product_detail_btn {
    padding: 12px 15px;
    font-size: 14px;
  }

  .product_additional {
    padding: 20px;
    margin: 25px 0;
  }

  .product_additional h3 {
    font-size: 18px;
  }

  .product_additional p {
    font-size: 13px;
  }

  .product_nav a {
    padding: 12px 15px;
    font-size: 13px;
  }
}

/* ===== АНИМАЦИИ ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product_detail,
.product_additional {
  animation: slideInUp 0.6s ease-out;
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
  .product_detail_main_img,
  .product_specs li,
  .product_benefits li,
  .product_detail_btn,
  .product_nav a,
  .product_detail,
  .product_additional {
    transition: none;
    animation: none;
  }
}

/* ===== PRINT ===== */
@media print {
  .product_nav,
  .product_detail_btn,
  .modalw {
    display: none;
  }

  .product_detail {
    background: white;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
