/* ===== BASE ===== */
.product-page {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== HERO ===== */
.product-hero {
  padding: 50px 0;
}

.product-hero .container {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

/* ===== LEFT (IMAGE AREA) ===== */
.product-left {
  flex: 0 0 460px;
}

.product-image-box {
  background: #f0f5fb;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image-box img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-image-box:hover img {
  transform: scale(1.08);
}

/* ===== THUMBNAILS ===== */
.product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #e6f0ff;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  border: 1px solid #c0d0e5;
  transition: 0.2s;
}

.product-thumbs img:hover {
  border-color: #0073c6;
  box-shadow: 0 4px 12px rgba(0,115,198,0.2);
}

.product-thumbs img.active {
  border: 2px solid #0073c6;
  box-shadow: 0 6px 16px rgba(0,115,198,0.25);
}

/* ===== RIGHT (INFO) ===== */
.product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 40px;
  text-align: left;
}

.product-right h1 {
  font-size: 22px;
  font-weight: 700;
  color: #004080;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 15px;
}

/* badges */
/* ===== BADGES (GLASS MINI) ===== */
.product-short span {
  display: inline-block;

  padding: 6px 12px;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 600;
  color: #fff; /* <- заменили на белый */

  background: linear-gradient(135deg,#0b1626,#13233a);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);

  backdrop-filter: blur(6px);

  margin-right: 6px;
  margin-bottom: 6px;
}

/* advantages */
.product-advantages {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.product-advantages li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  font-weight: 500;
}

.product-advantages li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0073c6;
}

/* ===== BUTTONS ===== */
.product-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 115, 198, 0.3);
  text-align: center;
  cursor: pointer;
}

/* ===== PRIMARY BUTTON (GLASS DARK) ===== */
.btn.primary {
  background: linear-gradient(135deg,#0b1626,#13233a);
  color: #e6edf5;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

.btn.primary:hover {
  transform: translateY(-2px);
  color: #fff;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn.secondary {
  background: #f5f5f5;
  color: #0073c6;
  border: 1px solid #0073c6;
}

.btn.secondary:hover {
  background: #0073c6;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 115, 198, 0.4);
}

/* ===== TABS ===== */
.tabs-nav {
  display: flex;
  gap: 0;
}

/* ===== TABS (GLASS) ===== */
.tab-btn {
  position: relative;

  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;

  color: #7f93a8;

  background: rgba(19,35,58,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;

  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #cfd8e3;
  background: rgba(19,35,58,0.6);
  transform: translateY(-2px);
}

/* ACTIVE */
.tab-btn.active {
  color: #fff;

  background: linear-gradient(135deg,#0b1626,#13233a);
  border-color: rgba(255,255,255,0.1);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);

  transform: translateY(-3px);
  z-index: 2;
}

.tab-btn:hover:not(.active) {
  background: #d0e4ff;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* ===== DESC WRAPPER ===== */
/* DESC CONTAINER FLEX REWORK */
.desc-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: flex-start;
}

/* LEFT: сжали до нужного минимума */
.desc-left {
  flex: 0 0 420px;      /* фиксированная ширина левого блока */
  min-width: 300px;
  max-width: 420px;
  word-wrap: break-word;
}

/* ===== TABLE SPECS FINAL ===== */

.desc-right {
    overflow-x: hidden; /* убираем артефакты прокрутки */
}

/* таблица */
/* ===== SMART TABLE (MIGX) ===== */

.desc-right {
    overflow-x: hidden;
}

/* таблица */
.desc-right .specs {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* строки */
.desc-right .specs tr {
    transition: 0.2s;
}

/* ячейки */
.desc-right .specs td {
    padding: 10px 14px;
    border-bottom: 1px solid #dbe6f5;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/* убираем артефакты */
.desc-right .specs td::before,
.desc-right .specs td::after {
    content: none !important;
}

/* ===== DEFAULT (2–3 колонки) ===== */

/* name */
.desc-right .specs td:first-child {
    width: 40%;
    font-weight: 600;
    color: #004080;
    background: #fff;
    text-align: left;
}

/* values */
.desc-right .specs td:not(:first-child) {
    width: auto;
    text-align: center;
    background: #e6f0ff;
    border-left: 1px solid #dbe6f5;
}

/* hover */
.desc-right .specs tr:hover td:not(:first-child) {
    background: #d6e8ff;
}

/* ===== 🔹 1 VALUE → LIST MODE ===== */

.spec--single td {
    display: block;
    width: 100% !important;
    border-left: none !important;
    text-align: left !important;
    background: none !important;
    padding: 6px 0;
}

.spec--single td:first-child {
    font-weight: 600;
    color: #004080;
    margin-bottom: 2px;
}

.spec--single td:last-child {
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbe6f5;
}

/* ===== 🔹 2–3 VALUES → TABLE MODE ===== */

.spec--table td:first-child {
    width: 40%;
}

.spec--table td:not(:first-child) {
    text-align: center;
}

/* ===== 🔹 4+ VALUES → COMPACT MODE ===== */

.spec--grid td {
    font-size: 12px;
    padding: 6px 8px;
}

.spec--grid td:first-child {
    width: 35%;
}

.spec--grid td:not(:first-child) {
    text-align: center;
}

/* ===== COLSPAN SUPPORT ===== */

.desc-right .specs td[colspan] {
    text-align: center;
    font-weight: 500;
}

/* ===== ADAPTIVE ===== */

@media(max-width:900px){
    .desc-right {
        overflow-x: auto;
    }

    .desc-right .specs {
        min-width: 500px;
    }
}

/* ===== DOC CARD FLEXIBLE ===== */
.docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.doc-card {
  flex: 1 1 180px;       /* 1 = растягивается, 1 = сжимается, 180px = базовая ширина */
  min-width: 180px;      /* не меньше 180px */
  max-width: 250px;      /* при желании ограничить слишком широкие */

  padding: 14px 18px 14px 50px; /* место под иконку + немного больше отступа справа */

  display: flex;
  align-items: center;
  justify-content: center; /* текст по центру */

  border-radius: 12px;
  position: relative;

  font-size: 14px;
  font-weight: 600;
  color: #cfd8e3;

  background: linear-gradient(135deg,#0b1626,#13233a);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* ИКОНКА СТАНОВИТСЯ СВЕТЛОЙ */
.doc-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;
  border-radius: 8px;

  background:
    linear-gradient(135deg,#4da3ff,#0073c6);

  box-shadow:
    0 4px 12px rgba(0,115,198,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
    
      /* ИКОНКА */
  background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V9h5.5'%3E%3C/path%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;

  filter: none;
}

/* HOVER */
.doc-card:hover {
  transform: translateY(-4px) scale(1.02);
  color: #fff;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* общий стеклянный эффект согласованности */
.product-right,
.product-left {
  position: relative;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .product-hero .container, .desc-container{
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .desc-left, .desc-right{
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .desc-right{
    margin-top: 20px;
    overflow-x: auto;
  }
  
  .desc-right .specs{
    min-width: 320px;
  }
}

/* ===== ZOOM LENS ===== */
.product-image-box { position: relative; overflow: hidden; cursor: crosshair; }
.zoom-lens { position: absolute; border: 2px solid #0073c6; width: 120px; height: 120px; display: none; pointer-events: none; background-repeat: no-repeat; }

/* ===== STICKY CTA ===== */
.sticky-cta { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(135deg,#0073c6,#004080); color: #fff; padding: 14px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; z-index: 999; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.sticky-cta:hover { background: linear-gradient(135deg,#005fa3,#003366); }

/* ===== PDF ===== */
.pdf-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999; justify-content: center; align-items: center; }
.pdf-inner { width: 90%; height: 90%; position: relative; }
#pdfFrame { width: 100%; height: 100%; border: none; background: #fff; }
.pdf-close { position: absolute; top: -35px; right: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== IMAGE ===== */
.image-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; }
.image-modal img { max-width: 90%; max-height: 90%; }
.image-close { position: absolute; top: 20px; right: 30px; font-size: 28px; color: #fff; cursor: pointer; }

/* ===== GLOBAL BREATH ===== */
@keyframes softBreath {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* применяем аккуратно */
.btn.primary,
.doc-card {
  animation: softBreath 6s ease-in-out infinite;
}

/* ===== GLASS SHIMMER ===== */
@keyframes glassShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn.primary,
.doc-card {
  background-size: 200% 200%;
  animation:
    softBreath 6s ease-in-out infinite,
    glassShimmer 12s ease-in-out infinite;
}

/* ===== LIGHT REACTION ===== */
.btn.primary:hover,
.doc-card:hover {
  filter: brightness(1.1);
}

.tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

.tab-btn:hover::after {
  opacity: 1;
}

@media (hover: hover) {
  .btn.primary,
  .doc-card {
    animation-play-state: paused;
  }

  .btn.primary:hover,
  .doc-card:hover {
    animation-play-state: running;
  }
}

/* ===== MODAL GALERY ===== */
#drawingsModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  cursor: pointer; /* клик по фону */
}

/* Контейнер контента внутри модалки */
#drawingsModal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default; /* чтобы курсор не выглядел как по фону */
}

/* Крестик закрытия */
#drawingsClose {
  position: fixed; /* фиксируем сверху окна */
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}
#drawingsClose:hover {
  color: #ff5555;
}

/* Изображение */
#drawingsImage {
  max-width: 90%;
  max-height: 80%;
  margin-bottom: 10px;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s ease;
}
#drawingsImage:hover {
  transform: scale(1.02);
}

/* Контейнер стрелок */
.drawing-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  z-index: 10000;
}

/* Кнопки скролла в стиле proj-btn */
.drawing-buttons .drawing-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: linear-gradient(135deg, #0b1626, #13233a);
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawing-buttons .drawing-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,115,198,0.7) inset,
              0 0 10px rgba(0,115,198,0.5);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  #drawingsImage {
    max-width: 95%;
    max-height: 70%;
  }
  .drawing-buttons .drawing-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}