/* Системы звукоизоляции — desktop layout по Figma */

section.sound {
  margin-bottom: 60px;
}

section.sound .sound-title {
  margin-top: 60px;
  margin-bottom: 40px;
  font-size: 64px;
  line-height: 64px;
  font-weight: 500;
  color: #1c1c1c;
}

section.sound .sound-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

section.sound .sound-header .sound-title {
  flex: 1;
  min-width: 0;
}

section.sound .sound-slider-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: static;
  bottom: auto;
  right: auto;
}

section.sound .sound-board {
  display: flex;
  flex-direction: column;
}

section.sound .sound-cards-viewport {
  width: 100%;
}

section.sound .sound-ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

section.sound .sound-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  position: relative;
  min-height: 258px;
  height: 258px;
  margin: 0 -2px -2px 0;
  padding: 8px;
  border: 2px solid #ffe6cd;
  border-radius: 0;
  background: #fff;
  transition: background-color 0.25s ease;
}

section.sound .sound-list:nth-child(1) {
  border-top-left-radius: 16px;
}

section.sound .sound-list:nth-child(2) {
  border-top-right-radius: 16px;
}

section.sound .sound-list:hover {
  background: #ffe6cd;
}

/*
  Карточка-ссылка: оверлей ПОД контентом (z-index: 0).
  Body выше (z-index: 1) с pointer-events: none — клики «проваливаются» в оверлей,
  кроме кнопок с pointer-events: auto.
*/
section.sound .main-card-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Фото слева */
section.sound .sound-list__photo {
  flex: 0 0 242px !important;
  width: 242px !important;
  min-width: 242px !important;
  max-width: 242px !important;
  height: 242px !important;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: rgba(28, 28, 28, 0.05);
  pointer-events: none;
}

section.sound .sound-list__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контент справа от фото */
section.sound .sound-list__body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: auto !important;
  min-width: 0;
  height: 242px;
  padding: 20px 24px 12px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Без кнопок — заголовок сверху, цена снизу */
section.sound .sound-list__body--alone {
  justify-content: space-between;
  gap: 0;
}

section.sound .sound-title--group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  width: 100%;
}

section.sound .sound-svg {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

section.sound .sound-text1 {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  color: #1c1c1c;
}

section.sound .sound-blok--group {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  pointer-events: auto !important;
}

section.sound .sound-block--list {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 20px;
  border: 2px solid #ffe6cd;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease;
  pointer-events: auto !important;
}

section.sound .sound-block--list:hover {
  border-color: #fd1f2d;
}

section.sound .sound-text3 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: #1c1c1c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

section.sound .sound-text3::after {
  content: "";
  display: block;
  min-width: 12px;
  height: 12px;
  background: url("../../svg/arrow3.svg") no-repeat center / contain;
}

section.sound .sound-text-summ {
  margin: 0;
  padding: 0;
  font-size: 30px;
  line-height: 34px;
  color: #b40555;
}

section.sound .sound-text-summ span {
  font-size: 18px;
  line-height: 24px;
  color: #1c1c1c;
}

/* Коммерческая полоса */
section.sound .sound-list1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px;
  border: 2px solid #ffe6cd;
  border-radius: 0 0 16px 16px;
  background: #fff;
  transition: background-color 0.25s ease;
  box-sizing: border-box;
}

section.sound .sound-list1:hover {
  background: #ffe6cd;
}

section.sound .sound-list1__title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

section.sound .sound-span1 {
  margin: 0;
  font-size: 42px;
  line-height: 44px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fd1f2d;
}

section.sound .sound-text24 {
  display: none;
}

section.sound .sound-blok--group-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

section.sound .sound-blok--group-1 > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

section.sound .sound-blok--group-1 .sound-block--list {
  gap: 8px;
}

section.sound .sound-blok--group-1 .sound-text33 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #1c1c1c;
  text-align: left;
}

section.sound .sound-blok--group-1 .sound-block--list svg {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 1600px) {
  section.sound .sound-title {
    font-size: 48px;
    line-height: 52px;
    margin-bottom: 32px;
  }

  section.sound .sound-list {
    height: auto;
    min-height: 220px;
  }

  section.sound .sound-list__photo {
    flex-basis: 180px !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 180px !important;
  }

  section.sound .sound-list__body {
    height: auto;
    min-height: 180px;
    padding: 12px 14px 8px;
    gap: 8px;
  }

  section.sound .sound-title--group {
    gap: 10px;
  }

  section.sound .sound-svg {
    width: 44px;
    height: 44px;
  }

  section.sound .sound-text1 {
    font-size: 16px;
    line-height: 20px;
  }

  section.sound .sound-text1 .sound-span,
  section.sound .sound-span {
    font-size: 22px;
    line-height: 26px;
  }

  section.sound .sound-blok--group {
    gap: 4px;
  }

  section.sound .sound-block--list {
    padding: 8px 12px;
    gap: 4px;
  }

  section.sound .sound-text3 {
    font-size: 16px;
    line-height: 16px;
    white-space: nowrap;
  }

  section.sound .sound-text3::after {
    min-width: 10px;
    height: 10px;
  }

  section.sound .sound-text-summ {
    font-size: 22px;
    line-height: 26px;
  }

  section.sound .sound-text-summ span {
    font-size: 14px;
    line-height: 18px;
  }

  section.sound .sound-span1 {
    font-size: 32px;
    line-height: 36px;
  }

  section.sound .sound-blok--group-1 .sound-text33 {
    font-size: 13px;
    line-height: 16px;
    white-space: nowrap;
  }

  section.sound .sound-list1 {
    padding: 20px;
  }
}

@media (max-width: 1360px) {
  section.sound .sound-list__photo {
    flex-basis: 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
  }

  section.sound .sound-list__body {
    min-height: 150px;
    padding: 10px 12px 8px;
    gap: 6px;
  }

  section.sound .sound-svg {
    width: 36px;
    height: 36px;
  }

  section.sound .sound-text1 {
    font-size: 14px;
    line-height: 18px;
  }

  section.sound .sound-text1 .sound-span,
  section.sound .sound-span {
    font-size: 18px;
    line-height: 22px;
  }

  section.sound .sound-block--list {
    padding: 6px 10px;
  }

  section.sound .sound-text3,
  section.sound .sound-blok--group-1 .sound-text33 {
    font-size: 12px;
    line-height: 15px;
  }

  section.sound .sound-text-summ {
    font-size: 18px;
    line-height: 22px;
  }

  section.sound .sound-text-summ span {
    font-size: 12px;
  }

  section.sound .sound-span1 {
    font-size: 28px;
    line-height: 32px;
  }
}

@media (max-width: 992px) {
  section.sound .sound-ul {
    grid-template-columns: 1fr;
  }

  section.sound .sound-list {
    margin-right: 0;
  }

  section.sound .sound-list:nth-child(1),
  section.sound .sound-list:nth-child(2) {
    border-radius: 0;
  }

  section.sound .sound-list:first-child {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  section.sound .sound-text3,
  section.sound .sound-blok--group-1 .sound-text33 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  section.sound {
    overflow-x: visible;
  }

  section.sound .container {
    overflow: visible;
  }

  section.sound .sound-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  section.sound .sound-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 60px;
    box-sizing: border-box;
  }

  section.sound .sound-header .sound-title {
    font-size: 28px !important;
    line-height: 32px !important;
    margin: 0 !important;
    max-width: none;
  }

  section.sound .sound-slider-nav {
    display: flex;
    margin: 0;
  }

  section.sound .sound-slider-nav .nav-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background-color: #ffe6cd;
    box-shadow: none;
  }

  section.sound .sound-slider-nav .nav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  /* Вытягиваем слайдер до правого края body */
  section.sound .sound-board {
    width: calc(100% + 40px);
    max-width: none;
    min-width: 0;
    margin-right: -40px;
    overflow: hidden;
    box-sizing: border-box;
  }

  section.sound .sound-cards-viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  section.sound .sound-ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  section.sound .sound-ul::-webkit-scrollbar {
    display: none;
  }

  /* Слайд = ширина трека минус peek 80px; min-width:0 чтобы контент не раздувал */
  section.sound li.sound-list {
    flex: 0 0 calc(100% - 80px) !important;
    width: calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    overflow: hidden;
  }

  section.sound li.sound-list + li.sound-list {
    margin-left: -2px !important;
  }

  section.sound li.sound-list:first-child {
    border-top-left-radius: 12px !important;
  }

  /* Последний слайд на всю ширину с отступом 20px справа */
  section.sound li.sound-list:last-child {
    flex: 0 0 calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-right: 20px !important;
    border-top-right-radius: 12px !important;
  }

  section.sound .sound-list__photo {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 180px !important;
    aspect-ratio: auto;
  }

  section.sound .sound-list__body {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 16px 16px 12px !important;
    gap: 12px;
    box-sizing: border-box;
  }

  section.sound .sound-list__body--alone {
    min-height: 140px;
  }

  section.sound .sound-title--group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  section.sound .sound-svg {
    width: 44px;
    height: 44px;
  }

  section.sound .sound-text1 {
    font-size: 16px;
    line-height: 18px;
    min-width: 0;
  }

  section.sound .sound-text1 .sound-span,
  section.sound .sound-span {
    font-size: 20px;
    line-height: 24px;
  }

  section.sound .sound-blok--group,
  section.sound .sound-blok--group-1 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  section.sound .sound-blok--group-1 {
    justify-content: center;
  }
  section.sound .sound-block--list {
    display: inline-flex !important;
    width: auto !important;
    max-width: 171px !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
  }

  section.sound .sound-text3,
  section.sound .sound-blok--group-1 .sound-text33 {
    font-size: 14px !important;
    line-height: 17px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: start;
  }

  section.sound .sound-text-summ {
    font-size: 20px;
    line-height: 24px;
  }

  /* Коммерческий блок: всегда 20px от правого края body */
  section.sound div.sound-list1 {
    position: relative;
    z-index: 1;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: -2px 20px 0 0 !important;
    padding: 16px !important;
    border-radius: 0 0 12px 12px !important;
    gap: 8px;
    box-sizing: border-box;
  }

  section.sound .sound-span1 {
    font-size: 28px !important;
    line-height: 32px !important;
  }
  section.sound .sound-list1__title-link{
    text-align: center;
  }
}

@media (max-width: 480px) {
  section.sound .sound-board {
    width: calc(100% + 20px);
    margin-right: -20px;
  }
}
