.parent {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-family: "Open Sans", "Arial", sans-serif;
}

.mhead {
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  padding: 20px;
  gap: 40px;
}

.mhead__img {
  border-radius: 5px;
  object-position: center;
  object-fit: cover;
}

.mhead__content {
  display: flex;
  gap: 40px;
  flex-grow: 1;
}

.mhead__left {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 50px 0 0;
  justify-content: space-between;
}

.mhead__title {
  color: #3A444E;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
}

.mhead__bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mhead__text {
  color: #3A444E;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-transform: lowercase;
}

.mhead__info {
  color: #3A444E;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.mhead__right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.mhead__sum {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mhead__number {
  padding: 5px;
  color: #3A444E;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(162, 188, 255, 0.30);
}

.mhead__unite {
  color: #3A444E;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.mhead__buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button {
  width: 192px;
  color: #FFFFFF;
  font-family: "Inter", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  background: #1657FF;
  transition: 0.3s;
  cursor: pointer;
}

.button:hover {
  background: #1246CC;
  color: #FFFFFF;
  transition: 0.3s;
}

.button--opacity {
  border: 1px solid #1657FF;
  background-color: transparent;
  color: #1657FF;
}

.parts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.parts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.parts__text {
  color: #3A444E;

  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.parts__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.parts__item {
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 15px 20px;
}

.parts__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.parts__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.parts__number {
  width: 40px;
  height: 40px;
  color: #3A444E;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  border-radius: 4px;
  background: rgba(162, 188, 255, 0.30);
  flex-shrink: 0;
}

.parts__item--checked .parts__number {
  background-color: #1657FF;
  color: #FFFFFF;
}

.parts__name {
  color: #3A444E;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.parts__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.parts__wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.parts__price {
  font-size: 20px;
  line-height: 27px;
  font-weight: 600;
  color: #3A444E;
}

.check {
  position: relative;
  cursor: pointer;
}

.check__input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.check__indicator {
  border: 1px solid #E2E2E2;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  transition: 0.3s;
}

.check__input:checked ~ .check__indicator {
  border-color: transparent;
  transition: 0.3s;
}

.check__icon {
  display: none;
  transition: 0.3s;
}

.check__input:checked ~ .check__indicator .check__icon {
  display: flex;
  transition: 0.3s;
}

.parts__button {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.parts__info {
  color: #3A444E;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  transition: 0.3s;
  flex-shrink: 0;
}

.parts__info--close {
  display: none;
  transition: 0.3s;
}

.parts__button.collapse-active .parts__info--open {
  display: none;
  transition: 0.3s;
}

.parts__button.collapse-active .parts__info--close {
  display: flex;
  transition: 0.3s;
}

.parts__arrow {
  flex-shrink: 0;
  transition: 0.3s;
}

.parts__button.collapse-active .parts__arrow {
  transition: 0.3s;
  transform: rotate(180deg);
}

.parts__content {
  padding: 0 60px 15px;
}

.mhead__wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mhead__basket {
  display: flex;
  gap: 5px;
}

.mhead__digits {
  color: #3A444E;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0.8;
  background: #3A444E;
}

.popup {
  position: fixed;
  max-width: 425px;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100vh - 115px);
  z-index: 100000;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-radius: 30px;
  background: #FFFFFF;
  padding: 30px;
  font-family: "Inter", "Arial", sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.popup.fade {
  display: none;
}

.popup.fade.in {
  display: flex !important;
}

.popup__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup__title {
  color: #3A444E;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.popup__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.popup__text {
  color: #3A444E;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  max-width: 365px;
}

.content__columns {
  display: grid;
  grid-template-columns: 55% auto;
  gap: 10px;
}

.content__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content {
  color: #3A444E;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.content__img {
  width: 100%;
  height: auto;
}

.content__ul {
  padding: 0 0 0 20px;
}

.content__li {
  list-style: initial;
}

@media (max-width: 1580px) {
  .mhead__buttons {
    flex-direction: column;
  }
}

@media (max-width: 1380px) {
  .mhead__title {
    font-size: 28px;
    line-height: 36px;
  }

  .mhead__info {
    font-size: 18px;
    line-height: 22px;
  }

  .mhead__number {
    font-size: 24px;
    line-height: 28px;
  }

  .popup {
    border-radius: 25px;
    padding: 25px;
  }
}

@media (max-width: 1280px) {
  .parent {
    gap: 35px;
  }

  .mhead {
    gap: 35px;
  }

  .mhead__content {
    gap: 35px;
  }

  .mhead__left {
    padding: 40px 0 0;
  }

  .mhead__number {
    font-size: 22px;
    line-height: 26px;
  }

  .mhead__img {
    width: 300px;
  }

  .content {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 1180px) {
  .mhead {
    gap: 30px;
  }

  .mhead__img {
    width: 350px;
  }

  .mhead__content {
    gap: 30px;
    flex-direction: column;
  }

  .mhead__left {
    padding: 30px 0 0;
  }

  .mhead__title {
    font-size: 26px;
    line-height: 34px;
  }

  .mhead__right {
    justify-content: space-between;
    flex-direction: row;
  }

  .parts__text {
    font-size: 14px;
    line-height: 18px;
  }

  .parts__name {
    font-size: 18px;
    line-height: 24px;
  }

  .popup__title {
    font-size: 28px;
    line-height: 32px;
  }

  .parts__content {
    padding: 0 0 15px;
  }

  .parts__price {
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width: 1080px) {
  .mhead__right {
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
  }

  .popup {
    border-radius: 20px;
    padding: 20px;
  }
}

@media (max-width: 880px) {
  .mhead {
    flex-direction: column;
  }

  .mhead__img {
    width: 100%;
    height: auto;
  }

  .mhead__left {
    padding: 0;
    gap: 10px;
  }

  .mhead__title {
    text-align: center;
  }

  .mhead__right {
    flex-direction: row;
    justify-content: space-between;
  }

  .content__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .parent {
    gap: 30px;
  }

  .mhead {
    gap: 25px;
  }

  .mhead__content {
    gap: 25px;
  }

  .mhead__title {
    font-size: 24px;
    line-height: 32px;
  }

  .mhead__text {
    font-size: 16px;
    line-height: 20px;
  }

  .mhead__info {
    font-size: 16px;
    line-height: 20px;
  }

  .mhead__number {
    font-size: 20px;
    line-height: 24px;
  }

  .parts__text {
    font-size: 12px;
    line-height: 16px;
  }

  .parts__item {
    padding: 15px;
    gap: 25px;
  }

  .parts__left {
    gap: 15px;
  }

  .parts__number {
    width: 35px;
    height: 35px;
    font-size: 18px;
    line-height: 24px;
  }

  .parts__name {
    font-size: 16px;
    line-height: 22px;
  }

  .parent {
    padding: 20px;
  }

  .parts__content {
    padding: 0 0 10px;
  }

  .popup {
    border-radius: 15px;
    padding: 15px;
  }

  .popup__title {
    font-size: 26px;
    line-height: 30px;
  }

  .content {
    font-size: 14px;
    line-height: 18px;
  }

  .parts__price {
    font-size: 16px;
    line-height: 21px;
  }
}

@media (max-width: 680px) {
  .parts__top {
    flex-direction: column;
    align-items: stretch;
  }

  .parts__right {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
  }

  .parts__content {
    padding: 0 0 5px;
  }
}

@media (max-width: 480px) {
  .parent {
    gap: 25px;
  }

  .mhead {
    padding: 15px;
    gap: 20px;
  }

  .mhead__content {
    gap: 20px;
  }

  .mhead__title {
    font-size: 22px;
    line-height: 30px;
  }

  .mhead__text {
    font-size: 14px;
    line-height: 18px;
  }

  .mhead__info {
    font-size: 14px;
    line-height: 18px;
  }

  .mhead__sum {
    gap: 5px;
  }

  .mhead__number {
    font-size: 18px;
    line-height: 22px;
  }

  .mhead__unite {
    font-size: 16px;
    line-height: 20px;
  }

  .button {
    width: 100%;
  }

  .mhead__right {
    flex-direction: column;
    align-items: flex-start;
  }

  .parts {
    gap: 10px;
  }

  .parts__text {
    font-size: 10px;
    line-height: 14px;
  }

  .parts__list {
    gap: 10px;
  }

  .parts__item {
    padding: 10px;
    gap: 20px;
  }

  .parts__left {
    gap: 10px;
  }

  .parts__number {
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 20px;
  }

  .parts__name {
    font-size: 14px;
    line-height: 18px;
  }

  .mhead__buttons {
    width: 100%;
  }

  .mhead__wrap {
    width: 100%;
    flex-direction: row-reverse;
  }

  .mhead__digits {
    font-size: 18px;
    line-height: 28px;
  }

  .parts__content {
    padding: 0;
  }

  .popup {
    border-radius: 10px;
    padding: 10px;
  }

  .popup__title {
    font-size: 24px;
    line-height: 28px;
  }

  .parts__wrapper {
    gap: 10px;
  }

  .parts__price {
    font-size: 14px;
    line-height: 19px;
  }
}

@media (max-width: 400px) {
  .parts__price {
    font-size: 12px;
    line-height: 16px;
  }

  .parts__info {
    font-size: 12px;
    line-height: 20px;
  }

  .parts__arrow {
    width: 25px;
    height: 25px;
  }

  .check__indicator {
    width: 25px;
    height: 25px;
  }

  .check__icon {
    width: 25px;
    height: 25px;
  }
}
