/* ==========================================================
   APT 1A.2 — Apartament wykończony
   ========================================================== */

/* ---------- RESET / HELPERS ---------- */
body.no-scroll {
  overflow: hidden;
}

/* ---------- HERO ---------- */
.apt-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.apt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.apt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 100%
  );
}

.apt-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.apt-hero__label {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0 0 18px;
  opacity: .8;
}

.apt-hero__title {
  font-family: 'Ogg', serif;
  font-weight: 400;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.apt-hero__sub {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  opacity: .7;
}

.apt-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceDown 1.8s infinite;
}

.apt-hero__scroll img {
  width: 24px;
  filter: invert(1);
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- APT CTA ---------- */
.apt-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  margin: 0;
  background-image: url('../img/nowe_wizki/salon_v1.1.webp');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.apt-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.apt-cta__content {
  position: relative;
  z-index: 1;
}

.apt-cta__title {
  font-family: 'Ogg', serif;
  font-size: clamp(22px, 4vw, 64px);
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  margin: 0 0 32px;
}

.apt-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
  border-bottom: 1px solid #fff;
  padding-bottom: 6px;
  transition: opacity 0.2s;
}

.apt-cta__btn:hover {
  opacity: 0.6;
}

/* ---------- PRICE ---------- */
.apt-info__param--price {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.apt-info__param-value--price {
  font-family: 'Ogg', serif;
  font-size: clamp(26px, 3vw, 40px) !important;
  color: #000 !important;
  line-height: 1.1;
}

.apt-info__param-sqm {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-top: 4px;
}

/* ---------- INFO ---------- */
.apt-info {
  background: #fff;
  padding: 90px 0 70px;
}

.apt-info__header,
.apt-gallery__header,
.apt-brands__header {
  display: flex;
  align-items: baseline;
  gap: 22px;
  width: 90%;
  margin: 0 auto 50px;
  border-bottom: 1px solid #000;
  padding-bottom: 14px;
}

.apt-info__number,
.apt-gallery__number,
.apt-brands__number {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .45;
}

.apt-info__title,
.apt-gallery__title,
.apt-brands__title {
  font-family: 'Ogg', serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 90px);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.apt-info__grid {
  display: flex;
  gap: 80px;
  width: 90%;
  margin: 0 auto;
  align-items: flex-start;
}

.apt-info__text {
  flex: 1 1 55%;
}

.apt-info__text p {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #222;
  margin: 0 0 22px;
}

.apt-info__params {
  flex: 0 0 320px;
  border-left: 1px solid #e0e0e0;
  padding-left: 50px;
}

.apt-info__param {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid #ebebeb;
}

.apt-info__param:first-child {
  padding-top: 0;
}

.apt-info__param-label {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}

.apt-info__param-value {
  font-family: 'Ogg', serif;
  font-size: 22px;
  font-weight: 400;
  color: #000;
}

.apt-info__param-value--ready {
  color: #2e7d32;
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

.apt-info__cta {
  width: 90%;
  margin: 60px auto 0;
}

.apt-info__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
  transition: opacity .3s;
}

.apt-info__btn img {
  width: 22px;
}

.apt-info__btn:hover {
  opacity: .5;
}

/* ---------- PARKING & KOMÓRKI ---------- */
.apt-parking {
  background: #f7f6f4;
  padding: 90px 0 70px;
}

.apt-parking__header {
  width: 90%;
  margin: 0 auto 70px;
  border-bottom: 1px solid #000;
  padding-bottom: 24px;
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.apt-parking__title {
  font-family: 'Ogg', serif;
  font-size: clamp(28px, 4vw, 60px);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  flex-shrink: 0;
}

.apt-parking__subtitle {
  font-size: 15px;
  line-height: 24px;
  color: rgba(0,0,0,0.5);
  max-width: 420px;
  margin: 0;
}

.apt-parking__grid {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.apt-parking__item {
  display: flex;
  align-items: center;
  gap: 60px;
}

.apt-parking__item--reverse {
  flex-direction: row-reverse;
}

.apt-parking__label {
  flex: 0 0 280px;
}

.apt-parking__num {
  display: block;
  font-family: 'Ogg', serif;
  font-size: 64px;
  line-height: 1;
  color: rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.apt-parking__label h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.apt-parking__label p {
  font-size: 14px;
  line-height: 22px;
  color: rgba(0,0,0,0.55);
  margin: 0;
}

.apt-parking__map {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.apt-parking__map img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 900px) {
  .apt-parking__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .apt-parking__item,
  .apt-parking__item--reverse {
    flex-direction: column;
    gap: 32px;
  }

  .apt-parking__label {
    flex: unset;
    width: 100%;
  }

  .apt-parking__map {
    width: 100%;
    padding: 20px;
  }
}

@media screen and (max-width: 600px) {
  .apt-parking {
    padding: 55px 0 45px;
  }

  .apt-parking__grid {
    gap: 50px;
  }
}

/* ---------- FEATURES ---------- */
.apt-feature {
  display: flex;
  align-items: stretch;
  width: 90%;
  margin: 80px auto 0;
  gap: 0;
}

.apt-feature--img-right {
  flex-direction: row;
}

.apt-feature__img {
  flex: 0 0 55%;
}

.apt-feature__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.apt-feature__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px;
  background: #f8f7f5;
}

.apt-feature--img-right .apt-feature__text {
  background: #f0eeeb;
}

.apt-feature__title {
  font-family: 'Ogg', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
  margin: 0 0 28px;
  line-height: 1.1;
}

.apt-feature__desc {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin: 0;
}

.apt-feature__desc strong {
  font-weight: 700;
  font-synthesis: weight;
  color: #000;
  letter-spacing: 0.3px;
}

.apt-feature__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apt-feature__list li {
  font-family: 'AvenirNextLTPRO-regular', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.apt-feature__list li:first-child {
  border-top: 1px solid #ddd;
}

@media screen and (max-width: 900px) {
  .apt-feature {
    flex-direction: column;
  }

  .apt-feature--img-right {
    flex-direction: column-reverse;
  }

  .apt-feature__img {
    flex: unset;
    width: 100%;
  }

  .apt-feature__text {
    padding: 36px 28px;
  }
}

/* ---------- GALLERY ---------- */
.apt-gallery {
  background: #0a0a0a;
  padding: 90px 0 70px;
}

.apt-gallery .apt-gallery__header {
  border-bottom-color: rgba(255,255,255,.2);
}

.apt-gallery__title {
  color: #fff;
}

.apt-gallery__number {
  color: #fff;
  opacity: .35;
}

.apt-gallery__main {
  width: 75%;
  margin: 0 auto;
  cursor: zoom-in;
}

.apt-gallery__slide {
  outline: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.apt-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Miniaturki */
.apt-gallery__thumbs {
  width: 75%;
  margin: 10px auto 0;
}

.apt-gallery__thumb {
  padding: 3px;
  outline: none;
  cursor: pointer;
  opacity: .5;
  transition: opacity .25s;
}

.apt-gallery__thumb.slick-current,
.apt-gallery__thumb:hover {
  opacity: 1;
}

.apt-gallery__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ---------- LIGHTBOX ---------- */
.apt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.93);
  align-items: center;
  justify-content: center;
}

.apt-lightbox--open {
  display: flex;
}

.apt-lightbox__img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apt-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.apt-lightbox__close,
.apt-lightbox__prev,
.apt-lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: opacity .2s;
  padding: 10px;
}

.apt-lightbox__close:hover,
.apt-lightbox__prev:hover,
.apt-lightbox__next:hover {
  opacity: .5;
}

.apt-lightbox__close { top: 20px; right: 28px; font-size: 42px; }
.apt-lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 38px; }
.apt-lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 38px; }

/* ---------- BRANDS ---------- */
.apt-brands {
  background: #f5f5f5;
  padding: 90px 0 80px;
}

.apt-brands__slider {
  width: 90%;
  margin: 0 auto;
}

.apt-brands__item {
  padding: 0 30px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  outline: none;
}

.apt-brands__item img {
  max-height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .35s, opacity .35s;
  display: block;
  margin: 0 auto;
}

.apt-brands__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 768px) {
  .apt-cta {
    min-height: 300px;
  }
}

@media screen and (max-width: 1024px) {
  .apt-info__grid {
    flex-direction: column;
    gap: 40px;
  }

  .apt-info__params {
    flex: unset;
    order: -1;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-left: 0;
    padding-top: 30px;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .apt-hero__label { font-size: 10px; letter-spacing: 4px; }

  .apt-gallery__main,
  .apt-gallery__thumbs {
    width: 90%;
  }

.apt-info,
  .apt-gallery,
  .apt-brands {
    padding: 55px 0 45px;
  }

  .apt-brands__item {
    padding: 0 15px;
  }

  .apt-lightbox__prev { left: 8px; }
  .apt-lightbox__next { right: 8px; }
}

@media screen and (max-width: 480px) {
  .apt-gallery__main .slick-arrow-custom {
    display: none !important;
  }
}
