/* Shared accordion + price styles for direction pages */

img[data-cms-img]:not(.cms-loaded) {
  opacity: 0;
}

img[data-cms-img].cms-loaded {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(212, 169, 106, 0.2);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(59, 42, 42, 0.04);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-btn:hover,
.faq-item.open > .faq-btn {
  background: rgba(201, 123, 110, 0.03);
}

.faq-btn__title {
  flex: 1;
  line-height: 1.4;
  color: #3b2a2a;
}

.faq-item--qa .faq-btn__title {
  font-size: 15px;
  font-weight: 700;
}

.price-group .faq-btn__title,
.promo-fold .faq-btn__title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-icon {
  display: inline-block;
  width: 24px;
  text-align: center;
  font-size: 24px;
  color: #c97b6e;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  border-top: 1px solid rgba(212, 169, 106, 0.12);
}

.faq-item.open .faq-body {
  display: block;
}

.faq-body--qa {
  padding: 0 24px 22px;
}

.faq-body--qa p {
  font-size: 15px;
  color: #6b5050;
  line-height: 1.78;
  padding-top: 16px;
}

.price-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-group .faq-body {
  padding: 0;
}

.promo-fold .faq-body {
  padding: 0 20px 24px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prices-block {
  max-width: 800px;
  margin: 0 auto;
}

.prices-hint {
  font-size: 14px;
  color: #9b8070;
  margin-top: 10px;
  line-height: 1.5;
}

.prices-subhead {
  text-align: center;
  margin-bottom: 32px;
}

.prices-subhead__label {
  font-size: 11px;
  font-weight: 700;
  color: #d4a96a;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.prices-subhead__title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #3b2a2a;
  line-height: 1.25;
}

.price-footnote {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(212, 169, 106, 0.08);
  border-radius: 10px;
  border-left: 3px solid #d4a96a;
}

.price-footnote p {
  font-size: 13.5px;
  color: #7a5c3c;
  font-weight: 600;
  line-height: 1.55;
}

.price-table-wrap--inner {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

@media (min-width: 769px) {
  .price-table--wide {
    min-width: 520px;
  }
}

.price-table th {
  text-align: left;
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  color: #9b8070;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1.5px solid rgba(212, 169, 106, 0.2);
  background: #fdfaf7;
}

.price-table th.price-table__price {
  text-align: right;
}

.price-table td {
  padding: 14px 24px;
  font-size: 15px;
  color: #3b2a2a;
  line-height: 1.5;
  border-bottom: 1px solid rgba(212, 169, 106, 0.1);
  vertical-align: middle;
}

.price-table td.price-table__price {
  font-weight: 700;
  color: #c97b6e;
  text-align: right;
  white-space: nowrap;
}

.price-table td.price-table__price--stack {
  vertical-align: top;
}

.price-table td.price-table__name--stack {
  vertical-align: top;
}

.price-table__promo-price {
  font-size: 15px;
  font-weight: 700;
  color: #c97b6e;
}

.price-table__promo-first {
  font-size: 12px;
  color: #c97b6e;
  font-weight: 600;
  margin-top: 4px;
}

.price-table__desc {
  font-size: 13px;
  color: #6b5050;
  margin-top: 6px;
  line-height: 1.55;
}

.price-table__note {
  color: #9b8070;
  font-size: 13px;
}

@media (max-width: 768px) {
  .price-group .faq-body,
  .promo-fold .faq-body {
    padding: 0 12px 12px;
  }

  .faq-body--qa {
    padding: 0 20px 20px;
  }

  .price-table-wrap--inner {
    overflow: visible !important;
  }

  .price-table--wide {
    min-width: 0 !important;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: block;
    border-bottom: 1px solid rgba(212, 169, 106, 0.12);
  }

  .price-table tbody td {
    display: block;
    width: 100% !important;
    border: none !important;
  }

  .price-table tbody td.price-table__name {
    padding: 14px 16px 6px;
    font-size: 14px;
  }

  .price-table tbody td.price-table__price {
    text-align: left !important;
    padding: 0 16px 14px;
    white-space: normal !important;
    font-size: 16px !important;
  }

  .price-table tbody td.price-table__price::before {
    content: 'Цена: ';
    font-size: 13px;
    font-weight: 600;
    color: #9b8070;
  }
}
