.header-spacer { height: 160px; width: 100%; }
        main { flex-grow: 1; padding-bottom: 80px; }

        .page-header { text-align: center; margin-bottom: 40px; }
        .page-title { font-family: 'Playfair Display', serif; font-size: 46px; font-weight: 500; color: #111; margin-bottom: 20px; }
        .promo-badge { display: inline-block; background: rgba(207, 168, 110, 0.15); color: #9c7b4c; padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(207, 168, 110, 0.3); }

        .catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
        .product-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #f0f0f0; transition: 0.3s; display: flex; flex-direction: column; }
        .product-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.06); transform: translateY(-5px); }
        .product-img { height: 280px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; } 
        .product-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; color: #999; font-size: 12px; }
        .product-card:hover .product-img img { transform: scale(1.05); }
        .product-info { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
        .product-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; line-height: 1.4; color: #111; }
        .product-price { font-size: 14px; color: #666; margin-bottom: 25px; }
        .product-price strong { color: #111; font-size: 20px; font-weight: 600; }
        .btn-catalog { display: block; width: 80%; margin: 0 auto; border: 1px solid var(--main-gold); padding: 12px 25px; border-radius: 30px; font-size: 13px; font-weight: 600; color: #111; transition: 0.3s; }
        .btn-catalog:hover { background-color: var(--main-gold); color: #fff; }

        /* Вкладки калькулятора */
        .calc-tabs-header { display: flex; gap: 15px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap; }
        .calc-tab-btn { padding: 15px 35px; border: 1px solid var(--main-gold); background: transparent; color: #111; font-weight: 600; border-radius: 30px; cursor: pointer; transition: 0.3s; font-size: 15px; font-family: inherit; }
        .calc-tab-btn.active, .calc-tab-btn:hover { background: var(--main-gold); color: #fff; box-shadow: 0 5px 15px rgba(207, 168, 110, 0.3); }
        .calc-tab-pane { display: none; animation: fadeIn 0.5s; }
        .calc-tab-pane.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* КАЛЬКУЛЯТОР */
        .calculator-wrapper { background: #fff; border-radius: 20px; border: 1px solid var(--main-gold); box-shadow: 0 15px 40px rgba(207, 168, 110, 0.1); margin-bottom: 50px; display: grid; grid-template-columns: 2fr 1fr; }
        .calc-body { padding: 40px; }
        .calc-result-sidebar { background: var(--emerald-dark); color: #fff; padding: 40px; display: flex; flex-direction: column; position: relative; border-radius: 19px; }
        .calc-section { margin-bottom: 35px; }
        .calc-section-title { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
        .calc-section-title span.step-num { background: var(--main-gold); color: #fff; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; }
        .input-row { display: flex; gap: 20px; margin-bottom: 15px; }
        .input-group { flex: 1; position: relative; }
        .input-group label { display: block; font-size: 13px; font-weight: 500; color: #666; margin-bottom: 8px; }
        .input-control { width: 100%; padding: 14px 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 15px; font-family: inherit; outline: none; background: #fafafa; }
        .input-control:focus { border-color: var(--main-gold); background: #fff; }
        /* .options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } */
        .opt-btn { padding: 12px 15px; border-radius: 10px; border: 1px solid #ddd; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.3s; color: #333; text-align: center; }
        .opt-btn:hover { border-color: var(--main-gold); }
        .opt-btn.active { background: var(--main-gold); color: #fff; border-color: var(--main-gold); box-shadow: 0 4px 15px rgba(207, 168, 110, 0.3); }
        
        .toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #fafafa; border-radius: 10px; border: 1px solid #eee; margin-bottom: 10px; }
        .toggle-row label { font-size: 14px; font-weight: 500; color: #111; cursor: pointer; display: flex; align-items: center; gap: 10px;}
        .switch { position: relative; display: inline-block; width: 50px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
        .slider-toggle:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider-toggle { background-color: var(--main-gold); }
        input:checked + .slider-toggle:before { transform: translateX(26px); }

        .result-title { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 10px; }
        .result-price { font-size: 48px; font-weight: 600; color: var(--pale-gold); margin-bottom: 10px; line-height: 1; transition: 0.3s; }
        .result-note { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 30px; }
        .result-details { margin-bottom: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
        .result-details p { display: flex; justify-content: space-between; font-size: 13px; color: #ccc; margin-bottom: 8px; }
        .result-details p span { color: #fff; font-weight: 500; }
        .btn-order { background-color: var(--main-gold); color: #fff; padding: 18px 30px; border-radius: 30px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; }
        .btn-order:hover { background-color: var(--main-gold-hover); transform: translateY(-2px); }

        /* ИСПРАВЛЕННЫЙ FAQ (Как в Душевых) */
        .faq-section { margin-bottom: 60px; }
        .faq-list { max-width: 800px; margin: 0 auto; }
        .faq-item { border-bottom: 1px solid #ddd; margin-bottom: 10px; }
        .faq-question { width: 100%; text-align: left; padding: 18px 0; background: none; border: none; font-size: 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #111; font-family: 'Montserrat', sans-serif; transition: 0.3s; }
        .faq-question:hover { color: var(--main-gold); }
        .faq-arrow { font-size: 14px; transition: transform 0.3s; }
        .faq-item.active .faq-arrow { transform: rotate(180deg); }
        .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
        .faq-answer p { padding-bottom: 20px; color: #555; line-height: 1.6; font-size: 15px; margin: 0;}

        /* МОДАЛЬНОЕ ОКНО */
        .modal-overlay-form { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s ease; padding: 20px; }
        .modal-overlay-form.active { opacity: 1; visibility: visible; }
        .modal-content { background: #fff; width: 100%; max-width: 500px; border-radius: 20px; padding: 40px; position: relative; transform: translateY(20px); transition: 0.3s ease; box-shadow: 0 15px 40px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto; }
        .modal-overlay-form.active .modal-content { transform: translateY(0); }
        .modal-close { position: absolute; top: 15px; right: 20px; font-size: 35px; color: #999; cursor: pointer; line-height: 1; transition: 0.3s; font-weight: 300; }
        .modal-content h2 { text-align: center; font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 10px; color: #111; }
        .modal-content p.subtitle { text-align: center; font-size: 14px; color: #666; margin-bottom: 25px; line-height: 1.5; }
        .form-grid { display: flex; flex-direction: column; gap: 15px; }
        .modal-input { width: 100%; padding: 15px 20px; border-radius: 15px; border: 1px solid #ddd; font-size: 14px; outline: none; background: #fdfdfd; font-family: inherit;}
        .modal-input:focus { border-color: var(--main-gold); background: #fff;}
        textarea.modal-input { resize: vertical; min-height: 80px; }
        .modal-submit { background-color: var(--emerald-dark); color: #fff; padding: 18px; border-radius: 30px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; width: 100%; margin-top: 10px; }
        
        .btn-primary { background-color: var(--main-gold); color: #fff; padding: 15px 35px; border-radius: 30px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; display: inline-block; font-family: inherit; }
        .btn-primary:hover { background-color: var(--main-gold-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(207, 168, 110, 0.3); }

        /* Кнопки карусели */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
}

.carousel-btn:hover {
  background: var(--main-gold);
  color: white;
}
        @media (max-width: 1200px) {
            #portfolio-track .gallery-card { flex: 0 0 calc(33.333% - 20px) !important; min-width: calc(33.333% - 20px) !important; width: calc(33.333% - 20px) !important; }
        }
        @media (max-width: 992px) {
            .calculator-wrapper { grid-template-columns: 1fr; }
            .header-spacer { height: 100px; }
            .catalog-grid { grid-template-columns: repeat(2, 1fr); }
            #portfolio-track .gallery-card { flex: 0 0 calc(50% - 15px) !important; min-width: calc(50% - 15px) !important; width: calc(50% - 15px) !important; }
            #reviews-track .gallery-card { flex: 0 0 100% !important; min-width: 100% !important; width: 100% !important; } 
        }
        @media (max-width: 768px) {
            #portfolio-track .gallery-card { flex: 0 0 100% !important; min-width: 100% !important; width: 100% !important; }
        }
        @media (max-width: 650px) {
            .page-title { font-size: 32px; }
            .calc-body { padding: 25px 15px; }
            .calc-result-sidebar { padding: 30px 20px; }
            .options-grid { grid-template-columns: 1fr 1fr; }
            .result-price { font-size: 38px; }
            .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
            .review-card-horizontal { flex-direction: column; height: auto; }
            .review-card-horizontal .review-img-box { width: 100%; height: 200px; }
        }
         .sticky {
            position: sticky;
            top: 50px;
            height: fit-content;
            margin-top: 5px;
        }

        .itog {
            display: block;
        }
        .opt_btn-dop {
            padding: 10px 20px;
        }
        @media (max-width: 992px) {
              .calculator-container {
    position: relative;
    overflow: hidden;
  }
@media (max-width: 992px) {
  .calculator-container {
    position: relative;
    overflow: visible; /* Разрешаем выход за границы для sticky */
  }
  
  .result-note {
    text-align: center;
    font-size: 15px;
  }

  .calc-result-sidebar {
    position: sticky; /* Остаёмся sticky, но с новым top */
    top: auto; /* Сбрасываем предыдущее top */
    bottom: 0; /* Привязываем к низу контейнера */
    margin: 0;
    z-index: 10;
    background: var(--emerald-dark);
    border-radius: 20px;
    padding: 5px 20px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
  }

  /* Скрываем заголовок и детали на мобильных для компактности */
  .calc-result-sidebar .result-title,
  .calc-result-sidebar .result-details {
    display: none;
  }

  /* .old-price {
    display: none;
  } */
  /* Увеличиваем размер цены */
  .calc-result-sidebar .result-price {
    font-size: 32px;
    text-align: center;
  }

  /* Кнопка на всю ширину */
  .calc-result-sidebar .btn-order {
    width: 100%;
  }

   .price_block {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }
  
  .price_block-right {
    flex-wrap: nowrap;
  }
}
        }