/*кнопка*/
.materials-calc-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #dab672;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.materials-calc-btn:hover {
    background: transparent;
    color: #dab672;
    border-color: #dab672;
    transform: translateY(-3px);
}

/*Цена*/
.materials-info {
    display: none;
}
.materials-info.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.materials-info-grid {
    background: rgba(50,50,50,0.3);
    padding: 20px;
    border-radius: 10px;
}
.materials-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.materials-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.materials-name {
    font-weight: 600;
    color: #dab672;
}
.materials-unit {
    color: #aaa;
    font-size: 0.9rem;
}
.materials-price-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dab672;
    text-align: right;
}
.materials-total-label {
    font-size: 1.2rem;
    color: #aaa;
    margin-right: 15px;
}
.materials-total-value {
    font-size: 1.8rem;
    color: #dab672;
    font-weight: bold;
}
.materials-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}
.switch-btn.highlight-tab {
    animation: softTextGlow 2s ease-out forwards;
}

/* ====================== */
/* Увеличение изображений (финальная версия) */
/* ====================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lightboxAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid #dab672;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(218, 182, 114, 0.3);
}

/* Кнопка закрытия — исправлен hover (без rotate, только scale) */
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 44px;
    height: 44px;
    background: #dab672;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1;
    padding: 0;
    transform-origin: center; /* явно указываем центр вращения/масштабирования */
}

.lightbox-close:hover {
    background: #c9a45e;
    transform: scale(1.1); /* только увеличение, без поворота — не съезжает */
}

/* Стрелки навигации (исправлены) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(218, 182, 114, 0.5);
    border-radius: 50%;
    font-size: 32px;          /* увеличен для лучшей центровки */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    line-height: 1;
    padding: 0;
    will-change: transform;   /* оптимизация для плавности */
}

.lightbox-nav:hover {
    background: rgba(218, 182, 114, 0.8);
    border-color: #dab672;
    transform: translateY(-50%) scale(1.1);
    color: #000;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.6);
        color: #dab672;
        border: 1px solid #dab672;
    }

    .lightbox-close:hover {
        background: #dab672;
        color: #000;
        transform: scale(1.1); /* согласовано с десктопом */
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
        background: rgba(0, 0, 0, 0.6);
        border-width: 1px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-image {
        border-width: 1px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .lightbox-nav.prev {
        left: 5px;
    }

    .lightbox-nav.next {
        right: 5px;
    }
}
/* ====================== */
/* БАЗОВЫЕ СТИЛИ И РЕСЕТ ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #141414;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  padding-right: 15px;
}

/* ====================== */
/* МОДАЛЬНОЕ ОКНО (для условий и корзины) */
/* ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a, #222);
  margin: 8% auto;
  padding: 40px;
  border-radius: 12px;
  width: 85%;
  max-width: 750px;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  color: #f0f0f0;
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(218, 182, 114, 0.2);
}

.modal-header h2 {
  color: #dab672;
  font-size: 1.8rem;
  text-align: left;
  margin: 0;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.close-modal:hover {
  color: #dab672;
  transform: rotate(180deg);
  background: rgba(218, 182, 114, 0.1);
}

.terms-text {
  max-height: 55vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  line-height: 1.7;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid #333;
  font-size: 1.05rem;
}

/* Стилизация скроллбара */
.terms-text::-webkit-scrollbar {
  width: 8px;
}

.terms-text::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.3);
  border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb {
  background: #dab672;
  border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
  background: #c9a45e;
}

/* Для Firefox */
.terms-text {
  scrollbar-width: thin;
  scrollbar-color: #dab672 rgba(30, 30, 30, 0.3);
}

.modal-footer {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-modal {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.05rem;
}

.btn-accept {
  background: #dab672;
  color: #000;
  border: 2px solid transparent;
}

.btn-accept:hover {
  background: #c9a45e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 182, 114, 0.3);
}

.btn-cancel {
  background: transparent;
  color: #aaa;
  border: 2px solid #333;
}

.btn-cancel:hover {
  color: #dab672;
  border-color: #dab672;
}

/* ====================== */
/* ШАПКА САЙТА ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
/* ШАПКА САЙТА - Перенесено в header.css */

/* ====================== */
/* КОРЗИНА ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
/* КОРЗИНА - Перенесено в header.css */

/* ====================== */
/* БУРГЕР-МЕНЮ ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
/* БУРГЕР-МЕНЮ - Перенесено в header.css */

/* ====================== */
/* БОКОВОЕ МЕНЮ ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
/* БОКОВОЕ МЕНЮ - Перенесено в header.css */

/* ====================== */
/* КНОПКИ (общие стили) */
/* ====================== */
.btn-order {
  width: 100%;
  padding: 15px;
  background: #dab672;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  display: block;
}

.options-summary .btn-order {
  font-size: 1.1rem;
  padding: 15px;
  font-weight: bold;
  /* Более жирный */
}

.btn-order:disabled {
  background: #555;
  cursor: not-allowed;

}

.btn-order:not(:disabled):hover {
  background: #c9a45e;
}

.btn-order.in-cart {
  background: transparent !important;
  border: 1px solid #dab672 !important;
  color: #dab672 !important;
}

.btn-order.in-cart:hover {
  background: #444 !important;
}

/* ====================== */
/* ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
.project-page {
  padding-top: 60px;
}

.project-detail {
  padding: 0px 20px;
  margin-top: 80px;
  background-color: #141414;
  color: #fff;
}

.project-detail-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.project-top-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto 10px;
}

.project-info-column,
.project-gallery-column {
  flex: 1;
  min-width: 300px;
}

.project-header {
  text-align: left;
  margin-bottom: 30px;
  position: relative;
}

.title-wrapper {
  position: relative;
  padding-left: 20px;
  margin-top: 20px;
}

.project-title-main {
  font-size: 3rem;
  font-weight: 700;
  color: #dab672;
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title-main::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 15px;
  height: 60%;
  width: 4px;
  background: #dab672;
  border-radius: 2px;
}

.project-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  font-style: italic;
  position: relative;
  padding-left: 10px;
}

.project-subtitle::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #dab672;
}

.btn-back {
  color: #dab672;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.btn-back:hover {
  opacity: 0.8;
}

.info-switcher {
  position: relative;
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%; 
}

.switch-btn {
   flex: 1;              /* каждая кнопка занимает равную долю */
    min-width: 0;
  background: none;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  color: #aaa;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
  min-width: 220px;
  text-align: center;
  font-weight: 600;
}

.switch-btn.active {
  color: #dab672;
}

.switch-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #dab672;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.switch-btn.active::after {
  transform: scaleX(1);
}

.switch-btn:hover:not(.active) {
  color: #fff;
}

.switch-btn:hover::after {
  transform: scaleX(1);
  background: rgba(218, 182, 114, 0.5);
}

.info-container {
  margin-bottom: 40px;
}

.specifications-info,
.additional-info {
  display: none;
}

.specifications-info.active,
.additional-info.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.specifications-grid,
.additional-info-grid {
  display: grid;
  gap: 15px;
  background: rgba(50, 50, 50, 0.3);
  padding: 20px;
  border-radius: 10px;
}

.specifications-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.additional-info-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.spec-item,
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-name,
.info-name {
  font-weight: 600;
  color: #dab672;
}

.info-name {
  min-width: 45%;
}

.spec-value,
.info-value {
  text-align: right;
}

.info-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.color-preview {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.color-preview:hover {
  transform: scale(1.2);
}

.color-preview::after {
  content: attr(data-color);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  margin-bottom: 10px;
}

.color-preview:hover::after {
  opacity: 1;
}

.project-gallery {
  max-width: 1200px;
  margin: 0 auto 50px;
}

.main-image {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

.fade-out {
  opacity: 0 !important;
}

.fade-in {
  opacity: 1 !important;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.thumbnail {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  aspect-ratio: 4/3;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====================== */
/* КОМПАКТНЫЙ БЛОК ДОПОЛНИТЕЛЬНЫХ ОПЦИЙ */
/* ====================== */
.additional-options-section {
  margin: 40px 20px 30px;
  padding: 30px;
  background: linear-gradient(135deg, #1a1a1a, #222);
  border-radius: 16px;
  border: 1px solid #333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-header h2 {
  font-size: 2rem;
  color: #dab672;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: #aaa;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* КОМПАКТНАЯ СЕТКА КАРТОЧЕК */
.options-grid-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.option-visual-card {
  background: linear-gradient(145deg, #252525, #1e1e1e);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  height: 100%;
}

.option-visual-card:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 12px 25px rgba(218, 182, 114, 0.15);
}

.option-visual-card.option-active {
  border-color: #dab672;
  background: linear-gradient(145deg, #2a2a2a, #232323);
  box-shadow: 0 10px 20px rgba(218, 182, 114, 0.1);
}

.option-visual-card.option-active::before {
  content: '✓ ВЫБРАНО';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dab672;
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
}

/* КОМПАКТНОЕ ИЗОБРАЖЕНИЕ ОПЦИИ */
.visual-option-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.visual-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.option-visual-card:hover .visual-option-image img {
  transform: scale(1.05);
}

.visual-option-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-visual-card:hover .visual-option-overlay {
  opacity: 1;
}

/* КНОПКА ПРОСМОТРА СТАТЬИ */
.visual-view-article-btn {
  background: rgba(218, 182, 114, 0.9);
  color: #1a1a1a;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.visual-view-article-btn:hover {
  background: #dab672;
  transform: translateY(-2px);
  text-decoration: none;
  color: #1a1a1a;
}

/* КОМПАКТНЫЙ КОНТЕНТ КАРТОЧКИ */
.visual-option-content {
  padding: 20px;
}

.visual-option-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.visual-option-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.visual-option-price {
  color: #dab672;
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 12px;
}

.visual-option-description {
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* КОМПАКТНЫЙ ИНДИКАТОР ВЫБОРА */
.visual-option-select-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #333;
}

.visual-select-text {
  color: #dab672;
  font-size: 0.85rem;
  font-weight: 500;
}

.visual-toggle {
  position: relative;
  width: 45px;
  height: 24px;
}

.visual-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.visual-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  border: 2px solid #444;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.visual-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #666;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.visual-toggle input:checked+.visual-slider {
  background: rgba(218, 182, 114, 0.2);
  border-color: #dab672;
}

.visual-toggle input:checked+.visual-slider:before {
  transform: translateX(21px);
  background: #dab672;
}

/* ====================== */
/* СТИЛИ ДЛЯ ОПЦИЙ И ИТОГОВ */
/* ====================== */
.options-summary {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: #222;
  border-radius: 10px;
  padding: 25px;
  margin: 40px 20px;
  border: 1px solid #333;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.summary-left {
  flex: 1;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.summary-content h3 {
  color: #aaa;
  font-size: 1.2rem;
  margin: 0;
}

.total-price {
  color: #dab672;
  font-size: 1.8rem;
  white-space: nowrap;
}

.summary-right {
  margin-left: auto;
  padding-left: 20px;
}

.summary-bottom {
  width: 100%;
  background: rgba(50, 50, 50, 0.3);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #333;
}

.options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.options-section {
  flex: 1;
  min-width: 300px;
}

.options-list-title {
  font-weight: 600;
  color: #dab672;
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 15px;
}

.options-list-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #dab672;
  border-radius: 50%;
}

.included-options,
#selected-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-options li,
#selected-options li {
  display: grid;
  grid-template-columns: 100px 30px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 10px;
}

.option-label {
  grid-column: 1;
}

.hint-icon {
  grid-column: 2;
  justify-self: start;
}

.option-status,
.option-price {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  margin-left: 0;
}

.option-status {
  color: #4caf50;
  font-weight: 500;
}

.option-price {
  color: #dab672;
  font-weight: bold;
}

.no-options {
  color: #aaa;
  font-style: italic;
}

.hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #aaa;
  color: #222;
  font-size: 14px;
  font-weight: bold;
  cursor: help;
  transition: all 0.3s ease;
  position: relative;
}

.hint-icon:hover {
  background: #dab672;
}

.hint-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: max-content;
  max-width: 280px;
  min-width: 100px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

.hint-icon::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 15px;
  background: #333;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.hint-icon:hover::after,
.hint-icon:hover::before {
  opacity: 1;
}

/* ====================== */
/* ИНДИВИДУАЛЬНЫЙ ПРОЕКТ */
/* ====================== */
.custom-project-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.custom-project-cta {
  background: #222;
  border-radius: 10px;
  padding: 25px;
  margin: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  gap: 40px;
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  color: #dab672;
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: #ccc;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-custom {
  display: inline-block;
  background: #dab672;
  color: #000;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-custom:hover {
  background: transparent;
  color: #dab672;
  border-color: #dab672;
  transform: translateY(-3px);
}

.cta-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.custom-project-cta:hover .cta-image img {
  transform: scale(1.05);
}

/* ====================== */
/* КАРУСЕЛЬ И СТРЕЛКИ */
/* ====================== */
.carousel-wrapper {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1);
}

.carousel-arrow-left {
  left: -100px;
}

.carousel-arrow-right {
  right: -100px;
}

.carousel-arrows-bottom {
  display: none;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-arrows-bottom .carousel-arrow {
  position: static;
  transform: none;
  width: 45px;
  height: 45px;
  margin: 0;
}

.carousel-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.carousel-arrow.disabled:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ====================== */
/* ПОДВАЛ (FOOTER) ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
footer {
  background: #0f0f0f;
  color: #aaa;
  padding: 60px 20px 0;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: #dab672;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #dab672;
}

.footer-column p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.footer-column ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #dab672;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #dab672;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #dab672;
  transform: translateY(-3px);
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: invert(0.8);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ====================== */
/* ВИДЖЕТ МЕССЕНДЖЕРОВ ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
.messenger-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  transition: opacity 0s ease;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.messenger-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s ease;
}

.messenger-widget.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.widget-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #424242;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  overflow: hidden;
  position: relative;
}

.widget-button:hover {
  transform: scale(1.1);
  background: #dab672;
  box-shadow: 0 6px 25px rgba(109, 91, 57, 0.5);
}

.icon-message,
.icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 35px;
  height: 35px;
}

.icon-message {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(360deg);
}

.messenger-widget.active .icon-message {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-360deg);
}

.messenger-widget.active .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.icons-container {
  position: absolute;
  bottom: 70px;
  right: 2.5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.messenger-widget.active .icons-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.messenger-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0.8);
  opacity: 0;
}

.messenger-widget.active .messenger-icon {
  opacity: 1;
}

.messenger-icon:nth-child(1) {
  transition-delay: 0.3s;
}

.messenger-icon:nth-child(2) {
  transition-delay: 0.2s;
}

.messenger-icon:nth-child(3) {
  transition-delay: 0.1s;
}

.messenger-icon img {
  width: 55px;
  height: 55px;
  transition: transform 0.3s ease;
}

.messenger-icon:hover img {
  transform: scale(1.2);
}

/* ====================== */
/* ОШИБКИ И ЗАГРУЗКА */
/* ====================== */
.project-error {
  text-align: center;
  padding: 50px 20px;
  color: white;
}

.project-error h1 {
  color: #e74c3c;
  margin: 20px 0;
}

.loading {
  text-align: center;
  padding: 100px 20px;
  color: white;
  font-size: 1.5rem;
}

/* ====================== */
/* АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ ПРОЕКТА */
/* ====================== */
@media (max-width: 1480px) {
  .carousel-wrapper>.carousel-arrow {
    display: none;
  }

  .carousel-arrows-bottom {
    display: flex;
  }
}

@media (max-width: 768px) {

  .project-detail-wrapper,
  .project-top-columns {
    flex-direction: column;
  }

  .specifications-grid {
    grid-template-columns: 1fr;
  }

  .spec-item {
    flex-direction: column;
  }

  .spec-value {
    text-align: left;
    margin-top: 5px;
  }

  .thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .additional-options-section {
    margin: 30px 15px 25px;
    padding: 25px 15px;
  }

  .options-grid-visual {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .visual-option-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .visual-option-price {
    margin-left: 0;
    margin-top: 5px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .visual-option-image {
    height: 120px;
  }

  .visual-option-content {
    padding: 15px;
  }

  .custom-project-cta {
    flex-direction: column;
    text-align: center;
  }

  .btn-custom {
    padding: 12px 30px;
    font-size: 1rem;
  }



  .burger-icon {
    font-size: 24px;
  }

  .side-menu {
    width: 280px;
    right: -280px;
    padding: 25px 15px;
  }


}

@media (max-width: 480px) {
  .project-detail {
    padding: 60px 15px;
  }

  .thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .project-title-main {
    font-size: 2rem;
  }

  .switch-btn {
    min-width: 150px;
    padding: 10px 15px;
  }

  .carousel-arrows-bottom .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .materials-calc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ====================== */
/* ОБНОВЛЕННЫЕ ПОХОЖИЕ ПРОЕКТЫ */
/* ====================== */
.similar-projects-updated {
  padding: 60px 20px;
  background: #141414;
}

.similar-projects-updated h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #dab672;
  font-size: 2.2rem;
  font-weight: 600;
  position: relative;
}

.similar-projects-updated h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #dab672;
  margin: 15px auto 0;
}

.similar-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.similar-project-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #333;
  height: 100%;
}

.similar-project-card:hover {
  transform: translateY(-8px);
  border-color: #dab672;
  box-shadow: 0 15px 30px rgba(218, 182, 114, 0.2);
}

.similar-project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.similar-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.similar-project-card:hover .similar-project-image img {
  transform: scale(1.08);
}

.similar-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.similar-project-card:hover .similar-project-overlay {
  opacity: 1;
}

.similar-project-info {
  padding: 15px;
}

.similar-project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
  text-align: center;
}

.similar-project-meta {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding-bottom: 12px;
}

.similar-project-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.similar-project-meta-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.similar-project-meta-value {
  font-weight: 600;
  color: #fff;
}

.similar-project-area {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(2px);
  z-index: 10;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .similar-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .similar-projects-updated {
    padding: 50px 20px;
  }

  .similar-projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Space for scrollbar */
    gap: 20px;
    grid-template-columns: none;
    /* Reset grid */
  }

  .similar-project-card {
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .similar-project-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .similar-projects-updated h2 {
    font-size: 1.8rem;
  }

  .similar-project-info h3 {
    font-size: 1.2rem;
  }

  .similar-project-meta {
    flex-direction: row;
    /* Keep horizontal */
    justify-content: space-between;
    gap: 5px;
  }

  .similar-project-meta-item {
    font-size: 0.8rem;
  }
  .materials-price-block {
        text-align: left;
    }
    .materials-total-label {
        display: block;
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .materials-total-value {
        font-size: 1.5rem;
        display: block;
    }
}

@media (min-width: 901px) and (max-width: 1400px) {
    .info-switcher {
        width: 100%;
    }
    .switch-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;        /* уменьшаем отступы */
        font-size: 0.9rem;         /* уменьшаем шрифт */
        white-space: nowrap;        /* текст не переносится */
    }
}

/* ====================== */
/* RESPONSIVE LAYOUT FIXES (ADDED) */
/* ====================== */
@media (max-width: 900px) {
  .project-top-columns {
    flex-direction: column;
    gap: 30px;
  }

  .project-info-column,
  .project-gallery-column {
    min-width: 0;
    width: 100%;
  }

  .project-header {
    text-align: center;
  }

  .project-title-main::before {
    display: none;
  }

  .title-wrapper {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .project-detail {
    margin-top: 20px;
    padding: 0 15px;
  }

  .project-title-main {
    font-size: 2rem;
  }

  .info-switcher {
    flex-direction: column;
    /* Stack tabs on mobile */
    border-bottom: none;
  }

  .switch-btn {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .specifications-grid,
  .additional-info-grid {
    grid-template-columns: 1fr;
  }

  .options-grid-visual {
    grid-template-columns: 1fr;
  }

  /* Compact visual options on mobile */
  .option-visual-card {
    margin-bottom: 15px;
  }

  /* Fix Option Summary Squeezing */
  .options-summary {
    margin: 20px 0;
    padding: 15px;
  }

  .summary-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-content {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .summary-right {
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    margin-top: 15px;
  }

  .btn-order {
    width: 100%;
  }

  .options-list {
    flex-direction: column;
    gap: 20px;
  }

  .options-section {
    min-width: 100%;
  }

  .hint-icon {
    margin-left: 10px;
    /* Reset negative margin */
  }
}

@media (max-width: 768px) {

  .project-detail,
  .project-detail-wrapper,
  .section-header {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }
}