:root {
  --blue-color: #009fe3;
  --red-color: #e40046;
}

.products-section {
  min-height: 820px;
  padding: 112px 0 108px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  width: min(1528px, calc(100% - 80px));
  margin: 0 auto;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 60px;
  min-width: 0;
  max-width: 100%;
}

.product-info {
  min-width: 0;
  margin-bottom: 32px;
  transform: translateY(20px);
}

.product-blue .product-info {
  flex: 0 0 410px;
}

.product-red .product-info {
  flex: 0 0 460px;
}

.product-image {
  flex: 0 0 280px;
}

.product-image img {
  display: block;
  width: 280px;
  height: 600px;
  object-fit: contain;
}

.product-blue .product-info {
  color: var(--blue-color);
}

.product-red .product-info {
  color: var(--red-color);
}

.product-line {
  position: relative;
  width: 365px;
  max-width: 100%;
  height: 28px;
  border: 0;
  border-top: 3px solid currentColor;
  margin: 12px 0 0;
}

.product-line::before {
  content: "";
  position: absolute;
  left: -43px;
  top: -3px;
  width: 44px;
  border-top: 3px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.product-title {
  font-size: 50px;
  font-weight: normal;
  font-family: 'Panton';
  margin: 16px 0;
}

.product-subtitle,
.product-description {
  font-size: 40px;
  font-weight: normal;
}

.product-description {
  line-height: 36px;
}

.product-subtitle {
  font-weight: 600;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .products-section {
    min-height: 0;
    height: 311px;
    padding: 0;
    overflow: hidden;
  }

  .products-container {
    position: relative;
    display: block;
    height: 311px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .product-card {
    position: absolute;
    left: 50%;
    width: 290px;
    height: 148px;
    flex-direction: row;
    align-items: center;
    gap: 0;
    text-align: left;
    transform: translateX(-50%);
  }

  .product-card.product-blue {
    top: 20px;
  }

  .product-card.product-red {
    top: 143px;
    flex-direction: row-reverse;
    text-align: right;
  }

  .product-blue .product-info {
    left: 145px;
    top: 29px;
  }

  .product-red .product-info {
    left: 19px;
    top: 55px;
  }

  .product-red .product-image {
    position: absolute;
    top: 0;
    left: 159px;
  }

  .product-image {
    flex: 0 0 132px;
    width: 132px;
    max-width: 132px;
    display: flex;
    justify-content: center;
  }

  .product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    height: auto;
    max-height: 148px;
  }

  .product-title {
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
  }

  .product-info {
    position: absolute;
    width: 140px;
    max-width: 140px;
    margin-bottom: 0;
    transform: none;
  }

  .product-blue .product-info,
  .product-red .product-info {
    flex: 0 0 140px;
  }

  .product-subtitle,
  .product-description {
    font-size: 13px;
    line-height: 1.16;
  }

  .product-description {
    font-size: 12px;
    line-height: 1.16;
  }

  .product-subtitle {
    margin-bottom: 4px;
  }

  .product-line {
    position: relative;
    width: 115px;
    max-width: 100%;
    height: 10px;
    border: 0;
    border-top: 2px solid currentColor;
    margin: 4px 0 0;
  }

  .product-red .product-line {
    margin-left: auto;
  }

  .product-blue .product-line::before {
    content: "";
    position: absolute;
    left: -13px;
    top: -2px;
    width: 14px;
    border-top: 2px solid currentColor;
    transform: rotate(-45deg);
    transform-origin: right center;
  }

  .product-red .product-line::before {
    content: "";
    position: absolute;
    left: 115px;
    top: -2px;
    width: 14px;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  .product-a .product__container {
    padding-left: initial !important;
    overflow: initial !important;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .products-section {
    min-height: 0;
    padding: 64px 0;
  }

  .products-container {
    grid-template-columns: 1fr;
    row-gap: 48px;
    width: min(900px, calc(100% - 80px));
  }

  .product-card {
    justify-content: center;
  }

  .product-image {
    flex-basis: 240px;
  }

  .product-image img {
    width: 240px;
    height: 480px;
  }

  .product-blue .product-info,
  .product-red .product-info {
    flex: 0 1 460px;
  }
}

@media (min-width: 481px) and (max-width: 599px) {
  .products-section {
    height: auto;
    min-height: 0;
    padding: 28px 0;
    overflow: visible;
  }

  .products-container {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 22px;
    width: calc(100% - 48px);
    height: auto;
    margin: 0 auto;
  }

  .product-card,
  .product-card.product-blue,
  .product-card.product-red {
    position: static;
    width: 100%;
    height: auto;
    min-height: 190px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-align: left;
    transform: none;
    justify-content: center;
  }

  .product-info,
  .product-blue .product-info,
  .product-red .product-info {
    position: static;
    flex: 1 1 auto;
    width: auto;
    max-width: fit-content;
    margin: 0;
    transform: none;
  }

  .product-red .product-image {
    position: static;
  }

  .product-image {
    flex: 0 0 125px;
    width: 125px;
    max-width: 125px;
  }

  .product-image img {
    width: 125px;
    height: 190px;
    max-width: none;
    max-height: none;
  }

  .product-title {
    margin: 7px 0;
    font-size: 24px;
  }

  .product-subtitle {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .product-description {
    font-size: 17px;
    line-height: 1.14;
  }

  .product-line {
    width: min(250px, 100%);
    height: 18px;
    margin-top: 6px;
    border-top-width: 2px;
  }

  .product-red .product-line {
    margin-left: 0;
  }

  .product-red .product-line::before,
  .product-blue .product-line::before {
    left: -24px;
    top: -2px;
    width: 26px;
    border-top-width: 2px;
    transform: rotate(-45deg);
    transform-origin: right center;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .products-section {
    height: auto;
    min-height: 0;
    padding: 42px 0;
    overflow: visible;
  }

  .products-container {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    row-gap: 28px;
    width: min(700px, calc(100% - 64px));
    margin: 0 auto;
  }

  .product-card {
    position: static;
    width: 100%;
    height: auto;
    min-height: clamp(210px, 33.85vw, 260px);
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 36px;
    transform: none;
  }

  .product-card.product-blue,
  .product-card.product-red {
    position: static;
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .product-info,
  .product-blue .product-info,
  .product-red .product-info {
    position: static;
    width: auto;
    max-width: fit-content;
    margin-bottom: 0;
    transform: none;
  }

  .product-red .product-image {
    position: static;
  }

  .product-image {
    flex-basis: clamp(140px, 22.15vw, 170px);
    width: clamp(140px, 22.15vw, 170px);
    max-width: 170px;
  }

  .product-image img {
    width: clamp(140px, 22.15vw, 170px);
    height: clamp(210px, 33.85vw, 260px);
    max-width: none;
    max-height: none;
  }

  .product-blue .product-info,
  .product-red .product-info {
    flex: 0 1 360px;
  }

  .product-title {
    font-size: clamp(25px, 4.17vw, 32px);
    margin: 10px 0;
  }

  .product-subtitle {
    font-size: clamp(20px, 3.25vw, 25px);
  }

  .product-description {
    font-size: clamp(18px, 3vw, 23px);
    line-height: 1.12;
  }

  .product-line {
    width: min(300px, 100%);
    height: 22px;
    border-top-width: 3px;
    margin-top: 8px;
  }

  .product-red .product-line {
    margin-left: 0;
  }

  .product-red .product-line::before,
  .product-blue .product-line::before {
    left: -32px;
    top: -3px;
    width: 34px;
    border-top-width: 3px;
    transform: rotate(-45deg);
    transform-origin: right center;
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .products-section {
    padding: 72px 0;
  }

  .products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 0;
    width: min(1360px, calc(100% - 80px));
  }

  .product-card {
    justify-content: flex-start;
    gap: clamp(24px, 2.5vw, 42px);
  }

  .product-image {
    flex-basis: clamp(170px, 15vw, 220px);
  }

  .product-image img {
    width: clamp(170px, 15vw, 220px);
    height: 440px;
  }

  .product-blue .product-info,
  .product-red .product-info {
    flex: 1 1 0;
  }

  .product-title {
    font-size: clamp(30px, 3vw, 42px);
  }

  .product-subtitle {
    font-size: clamp(24px, 2.5vw, 34px);
  }

  .product-description {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.12;
  }
}
