  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: auto;
    margin-top: 90px;
    background: #ffffff;
  }

  .catalog {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }

  .catalog-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 40px;
    max-width: 100%;
    box-sizing: border-box;
    
  }


  /* правая колонка только под картинку */
  .catalog-right {
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .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-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;
  }

  @keyframes imageDrop {
    0%   { opacity: 0; transform: translateX(-200px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .size-item {
    display: none !important;
  }

  .right-panels {
    display: block; /* обнуляем старую раскладку */
  }

  .right-panels,
  .top-row {
    /* старый флекс-ряд нам больше не нужен */
    /* display: block уже выше для .right-panels; */
  }

.params-wrapper {
  margin: 10px 40px;
  display: flex;
  flex-direction: column;   /* <<< важно */
  align-items: stretch;
  gap: 25px;                /* расстояние между таблицами */
}
  .params-table {
    border: 2px solid #2087C7; /* Внешняя синяя рамка */
    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;
  }
  .params-table td {
    border-bottom: 1px solid #ccc;
    padding: 8px 10px;
  }
.params-table tr:hover { background: rgba(32,135,199,0.08); }
.params-table td:last-child { border-right: 1px solid #ccc; }
.params-table tr:last-child td { border-bottom: 1px solid #ccc; }
.params-table td:first-child { font-weight: 600;white-space: nowrap; }
.params-table td:nth-child(2) { width: 100px; }

  #p-image {
    display: none;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
  }

  .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: 314px;
    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: 314px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px) rotateY(-180deg);
    transition: transform 0.25s ease-out;
  }

  .pumps-face {
    position: absolute;
    width: 200px;
    height: 314px;
    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;
  }

.params-blocks {
  display: flex;
  flex-direction: column;
  gap: 25px; /* расстояние между комплектами */
}


.params-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.params-block-left {
  flex: 1 1 auto;
}

.params-block-right {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  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-block-right:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  border-color: rgba(32,135,199,0.3);
}

.params-curve {
  width: 100%;
  height: auto;
}

.sizes-table {
  border-collapse: separate;
  border-spacing: 0 0;
  width: 100%;
  table-layout: fixed;
  margin: 0;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px; 
  transition: all 0.5s ease;
}

.sizes-table td {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  border: 1px solid #ccc;
  text-align: center;
  font-weight: 600;
  padding: 6px 0;
  margin:0;
  color: #888888;
  cursor: pointer;
  font-size: 12px;
  background: #f5f5f5;
  user-select: none;
    height: 24px; /* Базовая высота всех ячеек */
    vertical-align: middle;
    position: relative;
}

.sizes-table td.size-selected {
    border: 0px solid #ffffff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #2087C7;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    padding-bottom: 6px;
}

.sizes-table td.size-selected::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px; /* Вытяжка вниз на 5px */
    height: 2px;
    background: #2087C7;
    z-index: 1;
}

 .dropdown-container {
    max-width: 55%;
}

  @media (max-width: 1200px) {
    .params-table {
    font-size: 10px;
    }
  }
  @media (min-width: 900px) {
    .right-blocks {
      flex-direction: row;
      align-items: flex-start;
      gap: 20px;
    }
  }

  @media (max-width: 900px) {
    .right-blocks {
      flex-direction: column;
      gap: 16px;
    }
    .wrapper { 
      width: 100%;
    }
    .catalog {
      flex-direction: column;
    }
    .catalog-left,
    .catalog-right {
      flex: 0 0 100%;
      max-width: 100%;
    }
    .catalog-right {
     margin: auto;
    }
    .params-table {
    font-size: 13px;
    }

    .params-block {
      flex-direction: column;
    }

    .params-block-right {
      width: 90%;
      margin: auto;
    }

    .params-curve {
      max-width: 100%;
    }
    .dropdown-container {
      max-width: none;
      width: auto;
    }
  }

  #img-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  #img-overlay img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    cursor: zoom-out;
    transform: scale(0.8);
    opacity: 0;
    transition:
      transform 0.25s ease-out,
      opacity 0.25s ease-out;
  }

  #img-overlay img.zoom-in {
    transform: scale(1);
    opacity: 1;
  }

  #sizesList:focus {
    outline: none;
  }
  
  @media (max-width: 600px) {
    body {
      margin: 0;
    }
    .wrapper { 
      width: 100%;
      margin: 0;
      margin-top: 20px;
      padding: 0;
    }
    .mainCard {
      flex-direction: column-reverse;
      align-items: stretch;
    }

    .params-blocks {
      margin: 0px 20px;
      weight
    }

    .params-table {
      margin: 0;
    }

    .dropdown-container {
      margin: 0 20px;
    }

    .right-pane {
      margin: 20px;
    }

    .bottom-pane {
      margin: 20px;
      padding: 0;
    }

    .params-wrapper {
      margin: 0;
    }

    .params-table {
      margin: 0;
    }

    .params-table td:nth-child(2) {
      width: 100px;
    }

    .catalog-left {
      margin: auto;
      gap: 8px;
    }

  .left-pane {
    width: 100%;
    align-items: center;
  }
  .pumps-image {
    padding-top: 0;
    width: 340px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    overflow: visible;
    position: relative;
    perspective: 800px;
    perspective-origin: 50% 50%;
    cursor: grab;
    transform: translateX(-120%);
    transition: transform 0.8s ease-out;
  }
  }
  @media (max-width: 400px) {
    .params-table {
    font-size: 10px;
    }
  }

.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);
}