/* ── SERVICES PAGE ── */

.sh {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 5vw 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sh__inner { max-width: 900px; }

.sh__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 2rem;
  opacity: 0;
}

.sh__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: var(--tracking-tighter);
  margin-bottom: 1.5rem;
}

.sh__line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
}

.sh__sub {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
}

/* ── MAIN LAYOUT ── */
.sp {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw 6rem;
}

/* ── CATEGORY ── */
.sp__cat {
  padding: 5rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sp__cat-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sp__cat-num {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(192,124,46,0.25);
  letter-spacing: var(--tracking-tighter);
}

.sp__cat-title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

/* ── CARDS GRID ── */
.sp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sp__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: #0c0c0e;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(30px);
}

.sp__card:hover {
  border-color: rgba(192,124,46,0.3);
  background: #15110a;
  transform: translateY(-4px);
}

.sp__card--featured {
  border-color: rgba(192,124,46,0.25);
  background: #161009;
}

.sp__card--exclusive {
  border-color: rgba(255,255,255,0.12);
  background: #111113;
}

.sp__card-top { flex: 1; margin-bottom: 1.5rem; padding-top: 2.25rem; }

.sp__card-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: rgba(192,124,46,0.15);
  color: var(--accent);
  border: 1px solid rgba(192,124,46,0.3);
}

.sp__card-tag--fast {
  background: rgba(255,90,50,0.12);
  color: #ff7a5a;
  border-color: rgba(255,90,50,0.25);
}

.sp__card-tag--excl {
  background: rgba(255,255,255,0.06);
  color: var(--gray-300);
  border-color: rgba(255,255,255,0.15);
}

.sp__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin-bottom: 0.65rem;
}

.sp__card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.sp__card-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sp__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
}

.sp__unit {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── LIST (плінтуси) ── */
.sp__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateX(-20px);
  transition: background 0.3s ease;
}

.sp__row:hover {
  padding-left: 0.5rem;
}

.sp__row-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-100);
}

.sp__row-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.sp__row-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

.sp__row-price--free {
  color: #4ade80;
  font-size: 0.875rem;
}

/* ── INDIVIDUAL ── */
.sp__individual {
  margin-top: 4rem;
  padding: 3.5rem 3rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sp__individual-icon {
  font-size: 3rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.sp__individual-text { flex: 1; min-width: 260px; }

.sp__individual-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: var(--tracking-tight);
}

.sp__individual-text p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

.btn--accent-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  opacity: 1 !important;
  animation: btnPulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: 1rem;
  padding: 1rem 2.2rem;
}

.btn--accent-solid:hover {
  background: transparent;
  color: var(--accent);
  animation: none;
}

@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,124,46,0.8); }
  70%  { box-shadow: 0 0 0 18px rgba(192,124,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,124,46,0); }
}

/* ── 3D КАРУСЕЛЬ (укладка покриттів) ── */
.card-carousel {
  margin-top: 1rem;
  padding: 72px 0 56px;
  overflow: hidden;
  perspective: 1200px;
}

.card-carousel .swiper-slide {
  width: 460px;
  max-width: 88vw;
  height: auto;
  display: flex;
  overflow: visible !important;
  transition-timing-function: cubic-bezier(0.34, 0.9, 0.32, 1) !important;
}

.card-carousel .swiper-slide .sp__card { padding: 2.5rem; }

.card-carousel .swiper-slide .sp__card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;            /* у каруселі картки завжди видимі (без scroll-анімації) */
  transform: none;
  transform-origin: center center;
  will-change: transform;
}

.card-carousel .swiper-pagination {
  position: static;
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.card-carousel .swiper-pagination-bullet {
  background: var(--gray-500);
  opacity: 0.5;
  width: 8px;
  height: 8px;
  transition: all 0.3s;
}

.card-carousel .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  width: 26px;
  border-radius: 5px;
}

.card-carousel .swiper-button-prev,
.card-carousel .swiper-button-next {
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(192, 124, 46, 0.08);
  border: 1px solid rgba(192, 124, 46, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.card-carousel .swiper-button-prev:hover,
.card-carousel .swiper-button-next:hover {
  background: rgba(192, 124, 46, 0.18);
  border-color: rgba(192, 124, 46, 0.45);
}

.card-carousel .swiper-button-prev::after,
.card-carousel .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

/* Swiper scrollbar зі стрілками — тільки мобільний */
.card-carousel .swiper-scrollbar { display: none; }
.swiper-scrollbar-wrap { display: none; }

@media (max-width: 768px) {
  .sp__card p { text-align: left; }

  .card-carousel .swiper-slide { width: 320px; }
  .card-carousel .swiper-button-prev,
  .card-carousel .swiper-button-next { display: none; }

  .swiper-scrollbar-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 10px;
    row-gap: 12px;
    margin: 22px 24px 0;
  }
  .swiper-scroll-arrow {
    order: 0;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.9;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    padding: 0 6px;
  }
  .card-carousel .swiper-scrollbar {
    order: 1;
    display: block !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 100%;
    height: 16px;
    background: rgba(192, 124, 46, 0.13);
    border-radius: 10px;
    margin: 0 !important;
    cursor: grab;
    touch-action: none;
    border: 1px solid rgba(192, 124, 46, 0.22);
  }
  .card-carousel .swiper-scrollbar-drag {
    background: var(--accent);
    border-radius: 10px;
    height: 100%;
    cursor: grab;
    box-shadow: 0 0 12px rgba(192, 124, 46, 0.55);
    min-width: 48px;
  }
  .card-carousel .swiper-scrollbar-drag:active { cursor: grabbing; }
}

/* 3D-сітка (категорія 02) — нахил/підсвітка без каруселі */
.sp__grid { perspective: 1200px; }
.sp__grid .sp__card { transform-style: preserve-3d; will-change: transform; }

/* ── FOOTER (ідентично works) ── */
.works-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--black);
}

.works-footer__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.works-footer__copy {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.works-footer__socials {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .works-footer {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    text-align: center;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .sh { padding: 7rem 1.5rem 3rem; }

  .sp { padding: 0 1.5rem 4rem; }

  .sp__grid { grid-template-columns: 1fr; }

  .sp__cat { padding: 3rem 0 1.5rem; }

  .sp__individual {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
}
