/* =========================================
   СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ
   ========================================= */

/* --- Хлебные крошки --- */
.breadcrumbs {
   padding: 120px 0 20px;
   position: relative;
   z-index: 2;
}

.breadcrumbs__list {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   list-style: none;
   font-size: 14px;
   color: var(--text-muted);
}

.breadcrumbs__list a {
   color: var(--gold-light);
   transition: color 0.3s;
}

.breadcrumbs__list a:hover {
   color: var(--gold);
}

.breadcrumbs__list li:not(:last-child)::after {
   content: '/';
   margin-left: 8px;
   color: var(--text-muted);
}

/* --- Мини-Hero для внутренних страниц --- */
.page-hero {
   padding: 40px 0 60px;
   position: relative;
   z-index: 2;
}

.page-hero__title {
   font-size: 48px;
   font-weight: 800;
   color: var(--text-light);
   margin-bottom: 15px;
}

.page-hero__subtitle {
   font-size: 18px;
   color: var(--text-muted);
   max-width: 700px;
}

/* --- Таблица цен --- */
.price-table {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0 10px;
   margin-bottom: 40px;
}

.price-table th {
   text-align: left;
   padding: 15px 20px;
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--gold);
   font-weight: 700;
   border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.price-table td {
   padding: 20px;
   background-color: rgba(16, 24, 40, 0.7);
   backdrop-filter: blur(8px);
   color: var(--text-light);
   font-size: 15px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-table td:first-child {
   border-left: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 12px 0 0 12px;
   font-weight: 600;
}

.price-table td:last-child {
   border-right: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 0 12px 12px 0;
   color: var(--gold-light);
   font-weight: 700;
   font-size: 18px;
}

.price-table tr:hover td {
   background-color: rgba(16, 24, 40, 0.95);
   border-color: rgba(201, 162, 39, 0.3);
}

/* --- Портфолио-галерея с фильтрами --- */
.portfolio-filters {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 40px;
   justify-content: center;
}

.filter-btn {
   padding: 10px 20px;
   background: rgba(16, 24, 40, 0.7);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 30px;
   color: var(--text-muted);
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s;
   font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
   background: var(--gold);
   color: var(--dark-bg);
   border-color: var(--gold);
}

.portfolio-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.portfolio-item {
   position: relative;
   border-radius: var(--border-radius);
   overflow: hidden;
   aspect-ratio: 4 / 3;
   background-color: var(--dark-card);
   cursor: pointer;
   transition: transform 0.3s ease;
}

.portfolio-item:hover {
   transform: translateY(-5px);
}

.portfolio-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.portfolio-item:hover img {
   transform: scale(1.08);
}

.portfolio-item__info {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   padding: 20px;
   background: linear-gradient(0deg, rgba(10, 14, 26, 0.95) 0%, transparent 100%);
   color: var(--text-light);
}

.portfolio-item__title {
   font-size: 16px;
   font-weight: 700;
   margin-bottom: 4px;
}

.portfolio-item__meta {
   font-size: 13px;
   color: var(--text-muted);
}

/* --- Отзывы (расширенная сетка) --- */
.reviews-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 20px;
}

.review-full {
   background-color: rgba(16, 24, 40, 0.75);
   backdrop-filter: blur(8px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: var(--border-radius);
   padding: 30px;
   display: flex;
   flex-direction: column;
}

.review-full__stars {
   color: var(--gold);
   font-size: 18px;
   margin-bottom: 15px;
   letter-spacing: 2px;
}

.review-full__text {
   color: var(--text-light);
   font-size: 15px;
   line-height: 1.7;
   font-style: italic;
   margin-bottom: 20px;
   flex-grow: 1;
}

.review-full__author {
   display: flex;
   align-items: center;
   gap: 15px;
   padding-top: 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-full__avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--gold-light), var(--gold));
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--dark-bg);
   font-weight: 800;
   font-size: 20px;
   flex-shrink: 0;
}

.review-full__info strong {
   color: var(--text-light);
   font-size: 16px;
   display: block;
   margin-bottom: 3px;
}

.review-full__info span {
   color: var(--text-muted);
   font-size: 13px;
}

/* --- Контакты --- */
.contacts-layout {
   display: grid;
   grid-template-columns: 1fr 1.5fr;
   gap: 40px;
   align-items: start;
}

.contacts-info {
   display: flex;
   flex-direction: column;
   gap: 25px;
}

.contact-block {
   background-color: rgba(16, 24, 40, 0.75);
   backdrop-filter: blur(8px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: var(--border-radius);
   padding: 25px;
}

.contact-block__label {
   font-size: 13px;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--gold);
   font-weight: 700;
   margin-bottom: 10px;
}

.contact-block__value {
   font-size: 18px;
   color: var(--text-light);
   font-weight: 600;
   line-height: 1.5;
}

.contact-block__value a {
   color: var(--text-light);
   transition: color 0.3s;
}

.contact-block__value a:hover {
   color: var(--gold-light);
}

.contact-block__sub {
   font-size: 14px;
   color: var(--text-muted);
   margin-top: 6px;
}

.map-wrapper {
   border-radius: var(--border-radius);
   overflow: hidden;
   border: 1px solid rgba(255, 255, 255, 0.08);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.map-wrapper iframe {
   display: block;
   width: 100%;
   height: 500px;
   border: 0;
}

/* --- CTA-блок внизу страницы --- */
.page-cta {
   text-align: center;
   padding: 60px 0;
}

.page-cta h3 {
   font-size: 32px;
   color: var(--text-light);
   margin-bottom: 15px;
}

.page-cta p {
   color: var(--text-muted);
   font-size: 16px;
   margin-bottom: 30px;
}

/* --- Адаптив для внутренних страниц --- */
@media (max-width: 992px) {
   .page-hero__title {
      font-size: 36px;
   }

   .breadcrumbs {
      padding-top: 100px;
   }

   .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .contacts-layout {
      grid-template-columns: 1fr;
   }

   .map-wrapper iframe {
      height: 400px;
   }
}

@media (max-width: 768px) {
   .page-hero__title {
      font-size: 28px;
   }

   .page-hero__subtitle {
      font-size: 16px;
   }

   .portfolio-grid {
      grid-template-columns: 1fr;
   }

   .price-table {
      font-size: 13px;
   }

   .price-table th,
   .price-table td {
      padding: 12px 10px;
   }

   .price-table td:last-child {
      font-size: 15px;
   }

   .map-wrapper iframe {
      height: 300px;
   }

   .page-cta h3 {
      font-size: 24px;
   }
}