/* Product Pages — Glass Pavilion by Quartz
   Стили для 4 продуктовых страниц с галереями
   ================================================ */

/* ========== HERO БЛОК С ВИДЕО ========== */
.prod-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  background: #0f1a14;
  margin-bottom: 0;
}
.prod-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.prod-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,26,20,.35) 0%, rgba(15,26,20,.55) 70%, rgba(15,26,20,.85) 100%);
  z-index: 2;
}
.prod-hero__content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 56px;
  color: #fff;
}
.prod-hero__tag {
  display: inline-block;
  color: #d4af6a;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.prod-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.prod-hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  max-width: 720px;
  color: rgba(255,255,255,.92);
  margin: 0 0 28px;
}
.prod-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.prod-hero__btn {
  display: inline-block;
  padding: 16px 32px;
  background: #d4af6a;
  color: #14241b;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background .2s, transform .2s;
}
.prod-hero__btn:hover {
  background: #e3c084;
  transform: translateY(-1px);
}
.prod-hero__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.prod-hero__btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ========== СЕКЦИИ ========== */
.prod-section {
  padding: 72px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.prod-section--narrow { max-width: 920px; }
.prod-section--wide { max-width: 1320px; }
.prod-section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
  color: #14241b;
}
.prod-section__lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: #4a5550;
  font-size: 17px;
  line-height: 1.55;
}

/* ========== ГАЛЕРЕЯ ФОТО ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.gallery-grid--lg {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  background: #f5f3ee;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  display: block;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ВИДЕОГАЛЕРЕЯ ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.video-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  background: #0f1a14;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.video-card--vertical {
  aspect-ratio: 9/16;
  max-width: 360px;
  margin: 0 auto;
}
.video-card--square {
  aspect-ratio: 1/1;
}
.video-card video,
.video-card img.video-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transition: transform .25s, background .25s;
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #d4af6a;
}
.video-card__play::after {
  content: "";
  border-left: 22px solid #14241b;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-card:hover .video-card__play::after {
  border-left-color: #fff;
}
.video-card__label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,.5);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ========== БЕНЕФИТЫ / ОСОБЕННОСТИ ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.benefit {
  text-align: center;
  padding: 24px 16px;
}
.benefit__num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: #d4af6a;
  line-height: 1;
  margin-bottom: 12px;
}
.benefit__title {
  font-weight: 600;
  font-size: 17px;
  color: #14241b;
  margin-bottom: 8px;
}
.benefit__text {
  font-size: 14px;
  color: #5a6560;
  line-height: 1.5;
}

/* ========== CTA-БЛОК ========== */
.prod-cta {
  background: linear-gradient(135deg, #14241b 0%, #1f3a2c 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.prod-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.prod-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  margin: 0 0 16px;
}
.prod-cta__text {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin: 0 0 28px;
  line-height: 1.55;
}
.prod-cta__btn {
  display: inline-block;
  padding: 18px 40px;
  background: #d4af6a;
  color: #14241b;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background .2s;
}
.prod-cta__btn:hover { background: #e3c084; }
.prod-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.prod-cta__btn--ghost {
  background: transparent;
  color: #d4af6a;
  border: 1.5px solid #d4af6a;
  padding: 16.5px 32px;
  transition: background .2s, color .2s;
}
.prod-cta__btn--ghost:hover { background: #d4af6a; color: #14241b; }

/* ========== ФОРМА ЗАЯВКИ ========== */
.prod-form {
  background: #f8f6f1;
  padding: 64px 24px;
}
.prod-form__inner {
  max-width: 640px;
  margin: 0 auto;
}
.prod-form__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 12px;
  color: #14241b;
}
.prod-form__lead {
  text-align: center;
  color: #5a6560;
  margin: 0 0 28px;
  font-size: 16px;
}
.prod-form form {
  display: grid;
  gap: 14px;
}
.prod-form input,
.prod-form textarea,
.prod-form select {
  padding: 14px 16px;
  border: 1px solid #d0cdc4;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: #14241b;
  transition: border-color .2s;
}
.prod-form input:focus,
.prod-form textarea:focus,
.prod-form select:focus {
  outline: none;
  border-color: #d4af6a;
}
.prod-form textarea { resize: vertical; min-height: 90px; }
.prod-form button {
  padding: 16px;
  background: #14241b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s;
}
.prod-form button:hover { background: #1f3a2c; }
.prod-form__consent {
  font-size: 12px;
  color: #7a8580;
  line-height: 1.5;
  text-align: center;
  margin-top: 8px;
}
.prod-form__consent a { color: #14241b; text-decoration: underline; }
.prod-form__status {
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}
.prod-form__status--ok {
  background: #e9f5ec; color: #285a36; display: block;
}
.prod-form__status--err {
  background: #fdebec; color: #8a2828; display: block;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,20,18,.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox__media {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 50px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,.5);
  padding: 8px 18px;
  border-radius: 4px;
}

/* ========== ПОДВАЛ ========== */
.prod-footer {
  background: #14241b;
  color: rgba(255,255,255,.75);
  padding: 48px 24px 32px;
  text-align: center;
  font-size: 14px;
}
.prod-footer a { color: #d4af6a; text-decoration: none; }
.prod-footer a:hover { text-decoration: underline; }

/* ========== ТАБЛИЦА ЦЕН ========== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.price-table th,
.price-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid #e8e5dd;
  vertical-align: top;
}
.price-table th {
  background: #14241b;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-table td strong { color: #14241b; }
.price-table tr:hover td { background: #fafaf6; }

/* ========== HEADER С НАВИГАЦИЕЙ ========== */
.prod-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e5dd;
}
.prod-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.prod-header__logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #14241b;
  text-decoration: none;
  white-space: nowrap;
}
.prod-header__logo em { font-style: italic; color: #d4af6a; font-size: 14px; }
.prod-header__nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.prod-header__nav a {
  color: #14241b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.prod-header__nav a:hover,
.prod-header__nav a.active {
  color: #d4af6a;
}
.prod-header__nav a.btn-mini {
  background: #14241b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
}
.prod-header__nav a.btn-mini:hover { background: #1f3a2c; color: #fff; }

@media (max-width: 800px) {
  .prod-header__nav { display: none; }
  .prod-header__nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 18px; border-bottom: 1px solid #e8e5dd; gap: 14px; }
  .prod-header__toggle { display: block; }
  .prod-hero { height: auto; min-height: 540px; max-height: none; }
  .prod-hero__content { justify-content: flex-end; padding-top: 32px; padding-bottom: 40px; }
  .prod-section { padding: 48px 16px; }
  .gallery-grid, .gallery-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-grid { grid-template-columns: 1fr; }
  .prod-cta { padding: 48px 20px; }
}
.prod-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #14241b;
  cursor: pointer;
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs {
  font-size: 13px;
  color: #7a8580;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.breadcrumbs a { color: #7a8580; text-decoration: none; }
.breadcrumbs a:hover { color: #14241b; }
.breadcrumbs span { margin: 0 8px; }

/* ========== ТЕКСТОВЫЕ БЛОКИ ========== */
.prod-content {
  max-width: 820px;
  margin: 0 auto;
}
.prod-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3.3vw, 36px);
  font-weight: 500;
  color: #14241b;
  margin: 40px 0 16px;
}
.prod-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #14241b;
  margin: 28px 0 10px;
}
.prod-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #2d3833;
  margin: 0 0 16px;
}
.prod-content ul {
  font-size: 16px;
  line-height: 1.7;
  color: #2d3833;
  padding-left: 22px;
  margin: 0 0 18px;
}
.prod-content ul li { margin-bottom: 8px; }
.prod-content strong { color: #14241b; }

/* === Дропдаун продуктов (для продуктовых страниц, светлая шапка) === */
.prod-nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.prod-nav-dropdown__trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #14241b; font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.prod-nav-dropdown__trigger:hover,
.prod-nav-dropdown__trigger.active { color: #d4af6a; }
.prod-nav-dropdown__caret { font-size: 10px; opacity: .7; transition: transform .25s; display: inline-block; }
.prod-nav-dropdown:hover .prod-nav-dropdown__caret,
.prod-nav-dropdown:focus-within .prod-nav-dropdown__caret { transform: rotate(180deg); opacity: 1; }
.prod-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -16px;
  min-width: 300px;
  background: #14241b;
  border: 1px solid rgba(212, 175, 106, .25);
  border-radius: 14px;
  padding: 22px 8px 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 1000;
}
.prod-nav-dropdown:hover .prod-nav-dropdown__menu,
.prod-nav-dropdown:focus-within .prod-nav-dropdown__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}
.prod-nav-dropdown__menu::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.prod-nav-dropdown__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4af6a;
  padding: 4px 22px 14px;
  border-bottom: 1px solid rgba(212, 175, 106, .15);
  margin-bottom: 6px;
}
.prod-nav-dropdown__item {
  display: block !important;
  padding: 12px 22px !important;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .18s, color .18s, padding-left .18s;
}
.prod-nav-dropdown__item:hover {
  background: rgba(212, 175, 106, .12);
  color: #d4af6a !important;
  padding-left: 28px !important;
}
.prod-nav-dropdown__item.active { color: #d4af6a !important; }
@media (max-width: 800px) { .prod-nav-dropdown { display: none; } }
