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;
}

.catalog {
  width: 100%;
  margin-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.catalog-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

.params-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 40px;
}

.params-left {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.params-wrapper {
  margin: 0;
}

.params-table {
  border-collapse: collapse;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border-spacing: 0;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  margin-top: 15px;
}

.params-table td {
  border-bottom: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
}
.params-table tr:hover {
  background: rgba(32,135,199,0.08);
}

.params-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.params-table td:nth-child(2) {
  width: 100px;
}

.params-image-box {
  display: flex;
  flex: 0 0 50%;
  min-width: 400px;
  max-width: 560px;
  align-items: center;
  text-align: center;
  background: #FFF;
  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;
}
.params-image-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  border-color: rgba(32,135,199,0.3);
}
#p-image {
  display: none;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.mainCard {
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  padding-top: 50px;
}

.left-pane {
  width: 320px;
  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-family: "Montserrat", sans-serif;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 700;
  color: #2087C7;
  padding-left: 20px;
}

h3 {
  margin-bottom: 0;
}

.p-spisok {
  position: relative;
  padding-left: 3em;
  margin: 0.3em 0;
}

.p-spisok::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -18px;
  font-size: 3em;
  line-height: 1;
  padding-left: 20px;
}

.pumps-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pumps-face-front { transform: rotateY(0deg) translateZ(100px)}
.pumps-face-right {transform: rotateY(90deg) translateZ(100px)}
.pumps-face-back { transform: rotateY(180deg) translateZ(100px)}
.pumps-face-left { transform: rotateY(-90deg) translateZ(100px)}
.pumps-image.grabbing { cursor: grabbing;}
.pumps-image.pumps-entered { transform: translateX(0);}

.pumps-image {
  margin: auto;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
  perspective: 800px;
  perspective-origin: 50% 50%;
  cursor: grab;
  transform: translateX(-120%);
  transition: transform 0.8s ease-out;
  touch-action: pan-y;
}

.pumps-cube {
  width: 200px;
  height: 560px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-100px) rotateY(-180deg);
  transition: transform 0.25s ease-out;
}

.pumps-face {
  position: absolute;
  width: 200px;
  height: 560px;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(16,67,99,0.1);
  background: #ffffff;
  transition: background-color 0.2s ease-out;
}

@media (max-width: 1200px) {
  .params-row {
    flex-direction: column;
    margin: 10px 40px;
    width: auto;
  }

  .params-left {
    width: 100%;
  }

  .params-image-box {
    margin: auto;
    margin-top: 8px;
    width: 100%;
  }

  .params-table {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .wrapper {width: 100%;}

  .params-image-box {
    min-width: 0;
    max-width: none;
    width: 90%;
    margin: auto;
  }
}

@media (max-width: 600px) {
  body {margin: 0;}

  .wrapper { 
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
  }

  .mainCard {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pumps-image {
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }

  .right-pane {
    margin: 20px;
  }

  .bottom-pane {
    margin: 20px;
    padding: 0;
  }

  .params-row {
    width: 95%;
    margin: auto;
  }

  .params-table {
    font-size: 10px;
    margin: 20px 0;
  }

  .catalog-left {
    gap: 8px;
  }

  .left-pane {
    width: 100%;
    align-items: center;
  }

  .pumps-image {
    width: 340px;
    height: 560px;
  }
}

.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);
}
.p-image-wrap{
  position:relative;
  overflow:hidden;
}
#p-image{
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity .35s ease;
  display: block;
  z-index: 1;
}

#p-image.is-loading{
  opacity: 0;
}

#p-image-label{
  position:absolute;
  top:20px;
  right:28px;
  color:#2087C7;
  font-weight:600;
  font-size:18px;
  opacity:0;
  background: #ffffff;
  transition:opacity .35s ease;
  border: 2px solid #cccccc;
  padding: 10px;
}

#p-image-label.visible{
  opacity:1;
}
@media (max-width: 600px) { #p-image-label{font-size:12px; padding:6px; top:12px; right:18px;} }

.p-image-wrap::before {
  width: 2px;
  height: 0;
  left: var(--line-x, 0);
  top: var(--line-y, 0);
  height: calc(100% - 4% - var(--line-y, 0));
}

.p-image-wrap::after {
  height: 2px;
  width: 0;
  left: 4%;
  top: var(--line-y, 0);
  width: calc(var(--line-x, 0) - 4%);
}

