/* === ОБЩЕЕ === */
.faq-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 30px 0;
}

.faq-header {
  grid-column: 3 / span 8;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-header:hover .faq-icon {
  background-color: #e29c00;
}

/* === ЗАГОЛОВОК === */
.faq-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 300;
  padding-left: calc((100% / 12) * 1);
}

/* === ИКОНКА === */
.faq-icon {
  width: 36px;
  height: 36px;
  background-color: #AD9972;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.faq-icon .line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background-color: #fff;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.faq-icon .line2 {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-wrapper.open .line2 {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* === СОДЕРЖИМОЕ === */
.faq-content {
  display: none;
  grid-column: 4 / span 6;
  margin-top: 20px;
  text-align: left;
  padding: 0;
}

.faq-wrapper.open .faq-content {
  display: block;
}

/* === СТРОКИ УСЛУГ === */
.price-group {
  margin-bottom: 20px;
}

.price-packages {
  margin-top: 20px;
}

.price-category,
.price-section-title {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 4px 0;
  font-weight: bold;
  text-align: center;
}

.price-item {
  display: flex;
  justify-content: space-between;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 4px 0;
}

.label {
  white-space: normal;
}

.dots {
  flex-grow: 1;
  border-bottom: 1px dotted #000;
  margin: 0;
  align-self: center;
}

.price {
  white-space: nowrap;
}

/* === АДАПТИВ === */
@media (max-width: 1024px) {
  .faq-header {
    grid-column: 2 / span 10;
  }

  .faq-content {
    grid-column: 3 / span 8;
  }

  .faq-title {
    font-size: 16px;
    padding-left: calc((100% / 12) * 1);
  }
}

@media (max-width: 768px) {
  .faq-header,
  .faq-content {
    grid-column: 1 / span 12;
  }

  .faq-title {
    font-size: 15px;
    padding-left: calc((100% / 12) * 1);
  }

  .faq-icon {
    width: 30px;
    height: 30px;
    margin-right: 16px;
  }

  .faq-icon .line {
    width: 16px;
  }

  .faq-content {
    margin-top: 12px;
    padding-left: calc((100% / 12) * 1);
    padding-right: calc((100% / 12) * 1);
  }

  .price-item {
    font-size: 13px;
    font-weight: 300;
    justify-content: space-between;
    flex-wrap: wrap; /* Позволяем элементам переноситься на новую строку */
  }

  .label {
    /* Позволяем тексту занимать все необходимое место */
    flex-grow: 1;
    flex-basis: 50%; /* Начинаем с половины ширины */
    min-width: 150px;
  }

  .dots {
    /* Гарантируем, что точки всегда будут видны */
    flex-grow: 1;
    min-width: 10px;
    margin: 0 4px; /* Добавляем небольшой отступ */
  }

  .price {
    /* Не даем цене переноситься на новую строку */
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
  }
  
  .price-category,
  .price-section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
  }
}