body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  color: #222;
}

.wrapper { 
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: 85%;
  max-width: 1200px;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.25); 
  margin: 90px auto 0;
  background: #ffffff;
}

#p-image {
  display: none;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

#code {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Jura", sans-serif;
}

.decodeTxt {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  color: #2087C7;
  gap: 6px;
}

#result {
  font-size: 13px;
  color: #333;
  width: 100%;
  white-space: pre-line;
  margin-bottom: 8px;
}

.mainCard {
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  padding-top: 50px;
}

.left-pane {
  width: 380px;
  flex-shrink: 0;
}

.right-pane {
  flex: 1;
  margin-right: 40px;
  text-align: justify;
}

.bottom-pane {
  display: block;
  margin: 0 40px;
  text-align: justify;
  padding-top: 30px;
}

.textAbz {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  width: 100%;
  margin: 0;
  padding: 5px 0;
  text-align: justify;
}

h2.m-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2087C7;
  padding-left: 20px;
}

h3 {
  margin-bottom: 0;
}

.pumps-image {
  padding-top: 120px;
  margin: auto;
  height: 238px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
  perspective: 800px;
  perspective-origin: 50% 50%;
  transform: translateX(0%);
  transition: transform 0.8s ease-out;
  touch-action: pan-y;
}

  .curve-images-container {
    width: 55%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .curve-images-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.16);
    border-color: rgba(32,135,199,0.3);
  }

  .curves-image img{
  margin: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

.curves-image {
  margin: auto;
  max-width: 100%;
}

.curves-image img {
  display: block;
  width: 100%;
  height: auto;
}

.curves-wrapper {
  position: relative;
  max-width: 100%;
  container-type: inline-size;
}

.curve-area {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
  border-radius: 8px;
}
.curve-area:hover {
  background: rgba(32,135,199,0.45);
}
.curve-label {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-size: 1.2cqw;
  color: #0A67D6;
  background: rgba(255,255,255,0.8);
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
}
.curve-area:hover .curve-label {
  color: #2087C7;
}

  .curve-area.active .curve-label {
    color: #ffffff;
    background: rgba(7,76,158,0.9);
  }

  .curve-info {
    width: 100%;
    display: none;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
  }
  .curve-info.active {
    display: block;
  }

#curve-flex {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 40px;
  flex-wrap: nowrap;
}

 #curve-data {
   width: 45%;
 }

@media (max-width: 1200px) { 
  #curve-flex { flex-direction: column; } 
  #curve-data { width: 100%; }
    .curve-images-container {
      width: 90%;
      margin: auto;
    }
}

/* таблица */
.curve-table {
  border-collapse: collapse;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border-spacing: 0;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  table-wrap: none;
}

.curve-table td {
  border-bottom: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
  text-align: center;
}
.curve-table tr:hover {
  background: rgba(32,135,199,0.08);
}


.curve-table tr td:first-child {
  text-align: left;
  min-width: 250px;
  max-width: 250px;
}

.curve-table td:nth-child(n+2) {  /* ← ВСЕ остальные столбцы */
  width: calc((100% - 250px) / 4); /* где N = items.length */
}

  .curve-table-caption td {
    background: #2087C7;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
  }

.curve-image-wrap {
  position: relative;
  display: block;
  width: fit-content;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpolygon points='0,0 16,0 16,16' fill='%23000000'/%3E%3C/svg%3E") 16 0, auto;
  z-index: 10;
}

.curve-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

.curve-image-wrap::before {
  content: '';
  position: absolute;
  left: var(--line-x, 0);
  top: var(--line-y, 0);
  height: calc(100% - 7% - var(--line-y, 0));
  width: 3px;
  background: rgba(0, 150, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.curve-image-wrap::after {
  content: '';
  position: absolute;
  left: 4.5%;
  top: var(--line-y, 0);
  width: calc(var(--line-x, 0) - 4.5%);
  height: 3px;
  background: rgba(0, 150, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}

.curve-image-wrap.hover-lines::before,
.curve-image-wrap.hover-lines::after {
  opacity: 1;
}

#curve-image-wrap-2 {
  display: none;
  margin-top: 20px;
}
.page-fade {
  opacity: 0;
  transform: scale(0.97);
  transition:
  opacity 0.45s ease,
  transform 0.45s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.page-fade.page-visible {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
    .wrapper { 
      width: 100%;
    }
    .curve-table {
      margin: auto;
    }
    #curve-image-wrap img {
      width: 90%;
      margin: auto;
    }
}

@media (max-width: 600px) {
  body {
    margin: 0;
  }
  .curve-table {
    font-size: 2.0vw;
  }
  .wrapper { 
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
  }
  .mainCard {
    flex-direction: column-reverse;
    align-items: stretch;
  }
    #curve-flex {
      margin: 20px;
    }
    #curve-image-wrap img {
      width: 100%;
      margin: auto;
    }
  .pumps-image {
    width: 312px;
    height: 238px;
    justify-content: center;
    margin-top: 12px;
    padding: 0;
    width: 100%;
  }
  .curve-area {
    margin-top: -0.4cqw;
  }
  .right-pane {
    margin: 20px;
  }
  .bottom-pane {
    margin: 20px;
    padding: 0;
  }
  .left-pane {
    width: 100%;
    align-items: center;
  }
  .curve-image-wrap {
  cursor: default;
}
.curve-image-wrap::before, 
 .curve-image-wrap::after { background: rgba(0, 150, 255, 0); }
}