/* ===== 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);
  cursor: crosshair;
}

.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);
}

/* ===== 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; }

/* ===== 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: 10px;
  padding-left: 40px;
  text-align: left;
}

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

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

/* ===== BADGES ===== */
.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: 6px 18px;
  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);
}



/* NAV */
.tabs-nav {
  position: relative;
  display: flex;
  gap: 6px;

  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
  padding-bottom: 2px;
}

/* INDICATOR (MOVING LINE) */
.tabs-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;

  height: 2px;
  width: 0;

  background: linear-gradient(90deg, #4da3ff, #7c5cff);
  border-radius: 2px;

  transform: translateX(0);

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  pointer-events: none;
  z-index: 10;
}

/*  BUTTONS */
.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;

  border-radius: 10px 10px 0 0;

  backdrop-filter: blur(10px);
  cursor: pointer;

  transition: all 0.25s ease;
}

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

.tab-btn.active {
  color: #fff;

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

  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);

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

/* ===== TABS WRAPPER ===== */
.tabs-content {
  position: relative;
  width: 100%;
}

/* ===== TAB PANEL (SAFE VERSION) ===== */
.tab-content {
  display: none;
  width: 100%;
  padding: 20px 0;
  animation: tabIn 0.25s ease;
}

/* ACTIVE TAB */
.tab-content.active {
  display: block;
}

/* animation */
@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OPTIONAL GLOW */
.tab-content::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.04),
    transparent 65%
  );

  pointer-events: none;
  opacity: 0.5;
}

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

.desc-left {
  flex: 0 0 420px;
  min-width: 300px;
  max-width: 420px;
  word-wrap: break-word;
}

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

/* ===== SPEC TABLE ===== */
.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:first-child {
  width: 40%;
  font-weight: 600;
  color: #004080;
  background: #fff;
  text-align: left;
}

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

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

/* ===== DOCS GRID ===== */
.docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.doc-card {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 250px;
  padding: 8px 14px 8px 30px;
  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);
  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;
}

.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);
}

/* ===== MODAL PDF ===== */
#pdfModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  justify-content: center;
  align-items: center;
}

/* BACKDROP (клик вне — закрытие) */
.pdf-bg {
  position: absolute;
  inset: 0;

  background: rgba(15, 20, 30, 0.35);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0.6)
  );
}

/* CONTENT WRAPPER */
#pdfModal .pdf-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* PDF CANVAS */
#pdfCanvas {
  display: block;
  margin: 0 auto;

  max-width: 95vw;
  max-height: 85vh;
}

/* CONTROLS */
.pdf-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  color: #fff;

  /* 🔥 ВАЖНО: поднимаем над blur */
  position: relative;
  z-index: 10;
}

/* BUTTONS */
.pdf-controls button {
  width: 42px;
  height: 42px;

  border-radius: 10px;
  border: none;

  background: linear-gradient(135deg, #0b1626, #13233a);
  color: #fff;

  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pdf-controls button:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0,115,198,0.7) inset,
              0 0 12px rgba(0,115,198,0.5);
}

/* CLOSE BUTTON */
.pdf-close {
  position: absolute;
  top: 20px;
  right: 20px;

  z-index: 9999;

  color: #fff;
  font-size: 30px;
  cursor: pointer;

  background: transparent;
  border: none;
}

/* PAGE INFO */
#pageInfo {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #pdfCanvas {
    max-height: calc(85vh - 80px);
  }
}

@media (max-width: 768px) {
  #pdfCanvas {
    max-height: calc(90vh - 80px);
  }

  .pdf-controls button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .pdf-close {
    top: 15px;
    right: 15px;
    font-size: 26px;
  }
}

/* ===== MODAL IMAGE ===== */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 20000;
  justify-content: center;
  align-items: center;
}

/* ФОН (ловит клик) */
.image-modal .modal-bg {
  position: absolute;
  inset: 0;
}

/* КОНТЕЙНЕР (НЕ блокирует фон) */
.image-modal .modal-content {
  position: relative;
  z-index: 20001;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px;
  box-sizing: border-box;

  pointer-events: none; /* ВАЖНО */
}

/* сама картинка снова активная */
.image-modal img {
  max-height: calc(100vh - 80px);
  max-width: calc(100vw - 80px);

  pointer-events: auto; /* чтобы можно было кликать/зумить при желании */
}

/* крестик */
.image-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 20005;
}

/* ===== DRAWINGS MODAL ===== */
/* Модалка-фон */
#drawingsModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6); /* мягкое затемнение */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer; /* клик по фону */
}

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

/* Крестик закрытия */
#drawingsClose {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
}

#drawingsClose:hover {
  color: #ff5555;
}

/* Картинка */
#drawingsImage {
  max-width: 90%;
  max-height: 90vh; /* не больше 90% высоты экрана */
  object-fit: contain; /* чтобы сохранялись пропорции */
  transition: transform 0.2s ease;
}

#drawingsImage:hover {
  transform: scale(1.02);
}

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

/* Кнопки скролла */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.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);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #drawingsImage {
    max-width: 95%;
    max-height: 60vh;
  }
  .drawing-buttons .drawing-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===== 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;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-wrapper {
  width: 100%;
  margin: 6px 0 10px; /* минимальные вертикальные отступы */
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* элементы */
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

/* бейдж */
.breadcrumb-badge {
  display: inline-block;

  padding: 5px 10px; /* чуть компактнее */
  border-radius: 10px;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;

  color: #fff;
  text-decoration: none;

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

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

  transition: all 0.2s ease;
}

/* hover */
.breadcrumb-badge:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 12px rgba(0,115,198,0.7),
    0 0 18px rgba(0,115,198,0.5),
    0 12px 30px rgba(0,0,0,0.4);
}

/* текущая крошка */
.breadcrumb-badge.current {
  opacity: 0.7;
  pointer-events: none;
  transform: none;
}

/* разделитель */
.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 6px;
  color: #7f93a8;
  font-size: 12px;
}

/* ===== LAZY LOAD IMAGES ===== */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.lazy-loaded {
  opacity: 1;
}

#stickyBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;

  /* Наследуем полностью стили .btn.primary */
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg,#0b1626,#13233a);
  color: #e6edf5;
  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;
}

/* Hover эффект */
#stickyBtn: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);
}

/* Адаптив для мобильных */
@media(max-width: 600px){
  #stickyBtn {
    bottom: 15px;
    right: 15px;
    padding: 12px 18px;
    font-size: 13px;
  }
}

/* ===== DOC-CARD HOVER ENHANCEMENTS ===== */
.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);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* ===== MODAL IMPROVEMENTS ===== */
.pdf-inner, .image-modal img, #drawingsImage {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pdf-inner.show, .image-modal.show, #drawingsModal.show {
  display: flex !important;
  opacity: 1;
  transform: scale(1);
}

.pdf-inner.hide, .image-modal.hide, #drawingsModal.hide {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media(max-width: 600px){
  .sticky-cta {
    bottom: 15px;
    right: 15px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .drawing-buttons .drawing-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .pdf-controls button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===== PDF BUTTON ICON HOVER ===== */
.pdf-controls button:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0,115,198,0.7) inset,
              0 0 12px rgba(0,115,198,0.5);
}

/* ===== DRAWINGS BUTTON ICON HOVER ===== */
.drawing-buttons .drawing-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0,115,198,0.7) inset,
              0 0 12px rgba(0,115,198,0.5);
}

/* Sticky таблица */
.specs.sticky thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

/* Lazy load для миниатюр (если нужны стили) */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy.loaded {
  opacity: 1;
}
/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

    /* Фокус для клавиатуры */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;

  box-shadow:
    0 0 0 2px rgba(0, 115, 198, 0.35),
    0 0 12px rgba(0, 115, 198, 0.25);

  border-radius: 8px;
}

    /* Таб-структура */
.tabs-nav .tab-btn:focus {
  outline: none;

  box-shadow:
    0 0 0 2px rgba(0, 115, 198, 0.4),
    0 0 18px rgba(0, 115, 198, 0.25);
}

    /* Контраст текста на кнопках, бейджах, документах */
    .btn.primary,
    .product-short span,
    .breadcrumb-badge,
    .doc-card,
    .pdf-controls button,
    .drawing-buttons .drawing-btn,
    .modal-buttons .btn-submit,
    .modal-buttons .close-btn {
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Скрытые для скринридеров элементы */
    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0,0,0,0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }
