.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .modal-content {
    background-color: #0d0d0d;
    margin: 40px auto;
    padding: 40px;
    max-width: 960px;
    display: flex;
    gap: 32px;
    border-radius: 16px;
    position: relative;
    box-sizing: border-box;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
  }

  .modal .image img {
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .modal .close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
  }
  
  .modal-content .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .modal-content .image {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .text_rating {
    font-weight: 600;
    font-size: 14px;
    color: #ff4d4f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .text_rating img {
    height: 14px;
  }
  
  .title,
  .title_mobile {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d4f;
    margin: 12px 0;
  }

  .button_1 .top_row,
.button_2 .top_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

  .button_1 .text_1,
.button_2 .text_1 {
  font-size: 18px;
  font-weight: 700;
}
  
  .modal-content p {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  ul {
    margin-top: 12px;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.6;
    list-style: none;
  }
  
  ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 26px;
  }
  
  ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #ff4d4f;
    font-size: 16px;
  }
  
  .buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    width: 100%;
    height: 64px;
    flex-wrap: nowrap;
  }
  
  .button_1,
  .button_2 {
    width: 50%;
    padding: 6px 16px 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    min-width: 0; /* сбрасываем ограничение */
  }
  
  .button_1 svg,
  .button_2 svg {
    flex-shrink: 0;
  }

  .button_1,
.button_2 {
  width: 50%; /* Добавлено */
  box-sizing: border-box;
}

  .button_1 {
    background: linear-gradient(to right, #e53e3e, #d32f2f);
    color: #fff;
  }
  
  .button_2 {
    background: linear-gradient(to right, #fcd34d, #facc15);
    color: #000;
  }
  
  .button_1 svg,
  .button_2 svg {
    margin-top: 8px;
    transform: translateX(2px);
  }
  
  .text_1 {
    font-weight: 700;
    font-size: 16px;
  }
  
  .text_2 {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
  }

.modal .image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.modal .main-image {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  display: block;
  z-index: 1;
}

.modal .background-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  width: 120%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
}


.button_2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 16px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fce38a 0%, #e0b93f 100%);
  border: 2px solid #ffffff4d; /* белая полупрозрачная рамка */
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  color: #000;
  width: 100%;
  max-width: 270px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.button_1:hover,
.button_2:hover {
  transform: translateY(-2px);
}

.button_2 svg {
  position: absolute;
  top: 12px;
  right: 12px;
}

.button_2 .text_1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.button_2 .text_2 {
  font-size: 14px;
  opacity: 0.8;
}

.button_1 {
  background: linear-gradient(135deg, #E13A52 0%, #B7223F 100%);
  border: 2px solid #E86C7F;
  border-radius: 12px;
  padding: 20px 28px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1) inset;
}

.button_1 svg {
  position: absolute;
  top: 16px;
  right: 16px;
}

.button_1 .text_1 {
  font-size: 20px;
  font-weight: 600;
}

.button_1 .text_2 {
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
  opacity: 0.9;
}
