/* Project detail page styles for kotlovoy.kz template 14 */
.proj-detail { padding: 18px 0 60px; font-family: inherit; color: #0d0f12; }
.proj-detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #7a7e86; font-size: 13.5px; text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  margin-bottom: 18px;
}
.proj-detail__back:hover { color: #f24c2a; background: rgba(242,76,42,0.06); text-decoration: none; }
.proj-detail__back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.proj-detail__header { margin-bottom: 22px; }
.proj-detail__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.proj-detail__badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #c23b1d;
  background: rgba(242,76,42,0.08);
  border: 1px solid rgba(242,76,42,0.2);
  padding: 3px 10px; border-radius: 100px;
}
.proj-detail__title {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900; line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0; color: #0d0f12;
}
.proj-detail__content {
  font-size: 16px; line-height: 1.65;
  color: #3c4048; max-width: 880px;
  margin-top: 26px;
}
.proj-detail__content p { margin: 0 0 1em; }
.proj-detail__content strong { color: #0d0f12; font-weight: 700; }
.proj-detail__cta {
  margin-top: 40px;
  padding: 26px 30px;
  background: linear-gradient(135deg, #0d0f12 0%, #1c2028 100%);
  color: #fff; border-radius: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  position: relative; overflow: hidden;
}
.proj-detail__cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(242,76,42,0.18), transparent 55%);
  pointer-events: none;
}
.proj-detail__cta-text { flex: 1 1 300px; position: relative; z-index: 1; }
.proj-detail__cta-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: #fff; letter-spacing: -0.01em; }
.proj-detail__cta-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.45; }
.proj-detail__cta-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: #25D366; color: #fff;
  border-radius: 100px;
  font-weight: 700; font-size: 14.5px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
  box-shadow: 0 4px 14px -4px rgba(37,211,102,0.4);
}
.proj-detail__cta-btn:hover { background: #1eb857; color: #fff; text-decoration: none; transform: translateY(-1px); }
.proj-detail__cta-btn svg { width: 17px; height: 17px; }

/* ================ Gallery ================ */
.proj-gallery { margin: 26px 0; }
.proj-gallery__main {
  position: relative;
  background: #f4f4f1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.proj-gallery__viewport {
  position: absolute; inset: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proj-gallery__viewport::-webkit-scrollbar { display: none; }
.proj-gallery__slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  scroll-snap-align: start;
  display: block; cursor: zoom-in;
  background: #f4f4f1;
}
.proj-gallery__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.proj-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border: 0; padding: 0; margin: 0;
  background: rgba(13,15,18,0.55); color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
  opacity: 0.85;
}
.proj-gallery__nav:hover { background: #f24c2a; opacity: 1; transform: translateY(-50%) scale(1.05); }
.proj-gallery__nav--prev { left: 16px; }
.proj-gallery__nav--next { right: 16px; }
.proj-gallery__nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.proj-gallery__counter {
  position: absolute; bottom: 16px; right: 16px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(13,15,18,0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  border-radius: 100px;
  font-variant-numeric: tabular-nums;
}

.proj-gallery__thumbs {
  display: flex; gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.proj-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.proj-gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(13,15,18,0.2); border-radius: 3px; }
.proj-gallery__thumb {
  flex: 0 0 96px; width: 96px; height: 72px;
  padding: 0; border: 2px solid transparent;
  background: #f4f4f1;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.proj-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-gallery__thumb:hover { transform: translateY(-2px); }
.proj-gallery__thumb.is-active { border-color: #f24c2a; }

@media (max-width: 600px) {
  .proj-gallery__nav { width: 38px; height: 38px; }
  .proj-gallery__nav svg { width: 18px; height: 18px; }
  .proj-gallery__nav--prev { left: 10px; }
  .proj-gallery__nav--next { right: 10px; }
  .proj-gallery__thumb { flex: 0 0 72px; width: 72px; height: 54px; }
}

/* Fullscreen overlay (on slide click) */
.proj-gallery__zoom {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.proj-gallery__zoom.is-open { display: flex; }
.proj-gallery__zoom img {
  max-width: 100%; max-height: 100%;
  display: block;
  border-radius: 4px;
}
.proj-gallery__zoom-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border: 0; padding: 0;
  background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.proj-gallery__zoom-close:hover { background: #f24c2a; }
.proj-gallery__zoom-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
