/* ========================= PRODUCTS PAGE ========================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prod-page {
  padding-top: 40px;
}

/* Hero band (Group 127) */
.prod-hero {
  margin-bottom: 50px;
}

.prod-hero__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 243px;
  padding-left: 35px;
}

.prod-hero__inner::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  width: min(1849px, calc(100% - 35px));
  height: 243px;
  background: #f9f9f9;
  z-index: 0;
}

.prod-hero__master {
  position: relative;
  z-index: 1;
  width: 531px;
  height: 243px;
  object-fit: cover;
  margin-left: 52px;
  display: block;
}

.prod-hero__brand {
  position: absolute;
  z-index: 2;
  left: 523px;
  top: 61px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.prod-hero__tn {
  font-size: 100px;
  font-weight: 400;
  line-height: 1;
  color: #ED1C24;
  flex-shrink: 0;
}

.prod-hero__title {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 772px;
}

/* Advantages */
.prod-advantages {
  padding-bottom: 30px;
}

.prod-adv-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 62px;
  max-width: 1590px;
  margin-left: 59px;
}

.prod-adv-item {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
}

/* Description */
.prod-desc {
  padding-bottom: 59px;
}

.prod-desc__text {
  max-width: 1590px;
  margin-left: 59px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

/* Category grid (Group 209) */
.prod-catalog {
  padding-bottom: 80px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 570px);
  gap: 50px 30px;
  justify-content: start;
  margin-left: 3px;
}

/* Card */
.prod-card {
  display: grid;
  grid-template-rows: 299px 1fr 53px;
  grid-template-columns: 1fr;
  width: 570px;
  height: 544px;
}

.prod-card__link {
  display: contents;
  color: inherit;
}

.prod-card__link:hover .prod-card__title {
  color: #ED1C24;
}

/* Rectangle 35 — фото 570×299, radius 20 */
.prod-card__media {
  grid-row: 1;
  position: relative;
  width: 570px;
  height: 299px;
  border-radius: 20px;
  overflow: hidden;
}

.prod-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
  border-radius: 20px;
}

.prod-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.prod-card__title {
  grid-row: 2;
  align-self: start;
  margin: 30px 52px 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  max-width: 460px;
  transition: color 0.2s;
}

/* Group 139 — селект 500×53 */
.prod-select {
  grid-row: 3;
  align-self: end;
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0 18px 0 52px;
  width: 500px;
  height: 53px;
  box-sizing: border-box;
}

.prod-select__border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.prod-select__btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 53px;
  height: 53px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.prod-select__btn img,
.prod-select__arrow {
  display: block;
  width: 53px;
  height: 53px;
  flex-shrink: 0;
}

.prod-select__field {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
}

.prod-select__input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 39px 0 25px;
  font: 400 20px/1.2 "Proxima Nova", "Montserrat", "Segoe UI", Arial, sans-serif;
  color: #000000;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.prod-select__input:invalid,
.prod-select__input option[value=""] {
  color: #000;
}

.prod-select__chevron {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 1920px) {
  .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prod-card {
    width: 100%;
    height: 544px;
  }

  .prod-card__media {
    width: 100%;
  }

  .prod-card__img {
    width: 100%;
  }

  .prod-select {
    width: calc(100% - 70px);
    max-width: 500px;
    margin-right: 18px;
  }
}

@media (max-width: 1200px) {
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prod-card {
    height: auto;
    min-height: 544px;
    grid-template-rows: 299px 1fr auto;
  }

  .prod-adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .prod-desc__text {
    margin-left: 0;
  }

  .prod-hero__inner {
    padding-left: 0;
    min-height: 0;
    padding-bottom: 32px;
  }

  .prod-hero__inner::before {
    left: 0;
    width: 100%;
    height: 100%;
  }

  .prod-hero__master {
    margin-left: 0;
    width: 100%;
    max-width: 531px;
  }

  .prod-hero__brand {
    position: relative;
    left: auto;
    top: auto;
    padding: 24px 70px 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .prod-grid,
  .prod-adv-grid {
    grid-template-columns: 1fr;
  }

  .prod-hero__tn {
    font-size: 72px;
  }

  .prod-hero__title {
    font-size: 36px;
  }

  .prod-adv-item {
    font-size: 24px;
  }
}
