.container-fluid.no-gutter {
  --bs-gutter-x: 0;
}

.btn-lg {
  border-radius: 0 !important;
}

a.btn {
  transition: background-color 0.4s, color 0.4s;
  padding: 1.25rem 2.5rem;
}

hr {
  max-width: 50px;
  height: 2px;
  background: #fff;
  border: none !important;
  opacity: 1;
}

a.btn i {
  left: -5px;
  position: relative;
}

.helper-logo {
  width:168px;height:auto;
}

.btn-primary {
  color: var(--bs-white);
}

.btn-primary:hover {
  color: var(--bs-primary);
  background-color: var(--bs-white);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  color: var(--bs-white);
}

#owl-hero h1 {
  text-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

#owl-hero .btn {
  background-color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1400px) {
  .container {
    max-width: 1420px;
  }

  .helper-logo {
    max-width: 100px;
  }
}

body {
  overflow-x: hidden;
  /*background: url(../temp-apayo/test02.jpg) no-repeat top center;*/
  font-family: "playfair-display", serfi;
  color: #434142;

  background: pink;
}

body>section:first-of-type {
  min-height: 720px !important;
}

body>section:first-of-type #owl-hero,
body>section:first-of-type .owl-stage-outer,
body>section:first-of-type .owl-stage,
body>section:first-of-type .owl-carousel .owl-item,
body>section:first-of-type .item,
body>section:first-of-type .item video {
  min-height: 720px !important;
}

.special-font {
  font-family: "p22-marcel-script-pro", sans-serif;
  font-weight: 400;
  /* normal */
}

.special-dot {
  position: relative;
}

.special-dot::before {
  content: "";
  border-left: 2px solid rgb(var(--bs-primary-rgb));
  position: absolute;
  left: 0px;
  top: 50%;
  margin-top: -10px;
  width: 2px;
  display: block;
  height: 20px;
}

span.hr {
  width: 100%;
  height: 2px;
  display: block;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(199, 191, 172, 1) 10%, rgba(135, 118, 76, 1) 50%, rgba(240, 238, 233, 1) 90%, rgba(255, 255, 255, 0) 100%);
}

.container.no-gutter {
  --bs-gutter-x: 0;
}

.row.no-gutter {
  --bs-gutter-x: 0;
}

.lh-135 {
  line-height: 1.35em !important;
}

/* paddings */
@media (min-width: 1200px) {
  .homepage-block-01 {
    padding-top: 160px !important;
  }

  .homepage-block-01 {
    background: url(/assets/gfx/bg_01.jpg) no-repeat left center;
    background-attachment: fixed;
  }

  .homepage-block-01 h1 {
    font-size: 8.5em;
    letter-spacing: -8px;
  }

  .homepage-block-01 p {
    font-size: 24px;
    max-width: 880px;
    line-height: 38px;
    margin-bottom: 100px !important;
  }

  .homepage-block-02 {
    padding-top: 110px !important;
  }

  .homepage-block-02 {
    background: url(/assets/gfx/bg_02.jpg) no-repeat right center;
    background-attachment: fixed;
  }

  .homepage-block-02 h2 {
    font-size: 58px;
  }

  .homepage-block-02 .special-font {
    font-size: 72px;
    margin-bottom: 120px !important;
  }

  .homepage-block-02>div>div:nth-child(3) {
    margin-top: 65px;
  }

  .homepage-block-02>div>div:nth-child(3) p {
    margin-bottom: 70px !important;
  }

  .container-semi {
    max-width: 1600px;
    z-index: 2;
  }

  .homepage-block-03 {
    min-height: 1294px;
    /* potem 950px gdy już będzie ready*/
  }

  .homepage-block-03::before {
    content: "";
    background: #f4f3ef;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 960px;
    display: block;
    position: absolute;
    z-index: 0;
  }

  .homepage-block-03 .row>div:nth-child(2) {
    transform: translateY(70px);
  }

  .homepage-block-04 {
    margin-top: 155px !important;
  }

  .homepage-block-04 h3 {
    font-size: 64px;
  }

  .homepage-block-05 {
    margin-top: 50px !important;
  }

  .homepage-block-05 p.special-font {
    font-size: 52px;
  }

  .homepage-block-06 {
    margin-top: 120px !important;
  }

  .homepage-block-06 h3 {
    font-size: 74px;
  }

  .homepage-block-07 {
    margin-top: 0px !important;
    padding-top: 30px !important;
  }

  .homepage-block-07 p.special-font {
    font-size: 52px;
  }

  .homepage-block-07>div>div:last-of-type {
    margin-top: 120px !important;
  }

  .homepage-block-menu h3 {
    font-size: 82px;
  }

  .homepage-block-menu {
    background: url(/assets/gfx/bg_03.jpg) no-repeat right top;
    background-attachment: fixed;
  }

  .homepage-block-menu h2 {
    font-size: 84px;
  }

  .homepage-block-menu>div:last-of-type {
    margin-top: 150px;
  }

  .homepage-block-menu img:first-of-type {
    max-height: 358px;
  }

  .homepage-block-menu img:nth-of-type(2) {
    max-height: 358px;
  }

  .homepage-block-chief {
    position: relative;
    min-height: 1406px;
  }

  .homepage-block-chief>div>div:nth-child(2) {
    position: relative;
  }

  .homepage-block-chief>div>div:nth-child(2):after {
    position: absolute;
    right: 0px;
    bottom: 0px;
    content: "";
    display: block;
    width: 160px;
    height: 424px;
    background: url(../temp-apayo/chief-before.webp) no-repeat center/cover;
  }

  .homepage-block-chief::before {
    content: "";
    background: #f4f3ef;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 576px;
    display: block;
    position: absolute;
    z-index: 0;
  }

  .homepage-block-chief h2 {
    font-size: 54px;
  }

  .homepage-block-chief .container.position-relative .row.mt-5  {
    max-height: 524px;
  }

  .homepage-block-08 {
    margin-top: 30px;
    padding-bottom: 340px !important;
  }

  .homepage-block-08 {
    background: url(/assets/gfx/bg_04.jpg) no-repeat center bottom;
    background-attachment: fixed;
  }

  .homepage-block-bar {
    margin-top: -84px;
  }

  .homepage-block-bar h3 {
    font-size: 84px;
  }

  .homepage-block-bar h2 {
    font-size: 48px;
  }

  .homepage-block-sepparator {
    margin: 80px auto 60px auto;
  }

  .homepage-block-apartament {
    background: url(/assets/gfx/bg_05.jpg) no-repeat right center;
    background-attachment: fixed;
  }

  .homepage-block-apartament h2 {
    font-size: 78px;
  }

  .homepage-block-apartament h3 {
    font-size: 104px;
  }

  .homepage-block-apartament>div:last-of-type {
    margin-top: 100px;
  }

  .homepage-block-key {
    margin-top: 150px;
  }

  .homepage-block-key p.text-primary {
    line-height: 1.2em;
    letter-spacing: 0.2em;
  }

  .homepage-block-gallery {
    margin-top: 110px;
  }

  .homepage-block-gallery h2 {
    letter-spacing: 0.6em;
  }

  .homepage-block-gallery-pre h2 {
    letter-spacing: 0.6em;
  }

  .homepage-block-gallery>div:nth-child(2) {
    margin-top: 20px;
  }

  .homepage-block-gallery-pre>div:nth-child(2) {
    margin-top: 20px;
  }

  .homepage-block-gallery>div:last-of-type {
    margin-top: 130px;
  }

  .homepage-block-gallery>div:last-of-type>div:last-of-type {
    margin: 100px auto;
    font-size: 5.8em;
  }

  .homepage-block-advisory>div:last-of-type {
    margin-top: 70px;
  }

  .homepage-block-form>div>.row>div:first-of-type>div {
    min-height: 580px;
  }

  .homepage-block-prev-kontakt {
    min-height: 500px;
    background: url(/assets/gfx/bg_06.jpg) no-repeat center bottom;
    background-attachment: fixed;
  }

  /*
  .homepage-block-advisory {
    padding-bottom: 500px !important;
  }

  .homepage-block-advisory {
    background: url(/assets/gfx/bg_06.jpg) no-repeat center bottom;
    background-attachment: fixed;
  }
  */

  .homepage-block-kontakt .h1 {
    font-size: 108px;
    letter-spacing: 0.2em;
  }

  /* podstrony */
  .homepage-lead-image h3,
  .homepage-image-lead h3 {
    font-size: 84px;
  }

  .homepage-lead-image h2,
  .homepage-image-lead h2 {
    font-size: 48px;
  }

  .homepage-lead-image .d-none img,
  .homepage-image-lead .d-none img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .homepage-lead-image a.btn,
  .homepage-image-lead a.btn {
    width: 64px;
    height: 82px;
    font-size: 18px;
    line-height: 41px;
  }


  .homepage-block-pakiety {
    padding-top: 260px !important;
  }

  .homepage-block-pakiety {
    background-color: #f4f3ef;
  }

  .homepage-block-pakiety h2 {
    font-size: 58px;
  }

  .homepage-block-pakiety>div>div>div>p:first-of-type {
    font-size: 72px;
  }



  .homepage-block-standards {
    padding-top: 180px !important;
    padding-bottom: 120px !important;
  }

  .homepage-block-standards h2 {
    font-size: 58px;
  }

  .homepage-block-standards>div>div>div>p:first-of-type {
    font-size: 72px;
    cursor: pointer;
  }



  .homepage-block-opinie {
    padding-top: 260px !important;
  }

  .homepage-block-opinie {
    background-color: #f4f3ef;
  }

  .homepage-block-opinie h2 {
    font-size: 58px;
  }

  .homepage-block-opinie>div>div>div>p:first-of-type {
    font-size: 72px;
  }

  .homepage-block-fullhd {
    padding-top: 160px !important;
  }

  .homepage-block-fullhd h2 {
    font-size: 58px;
  }

  .homepage-block-fullhd p {
    font-size: 72px;
  }

  .homepage-block-atuty {
    padding-top: 80px !important;
  }

  .homepage-block-atuty h2 {
    font-size: 58px;
  }

  .homepage-block-atuty p {
    font-size: 72px;
  }

  body.page-100 .homepage-block-04>div>div>div.col-xl-5::before {
    left: -1000px;
    right: 0px;
  }

  body.page-101 .homepage-block-04>div>div>div.col-xl-5::before {
    left: -1000px;
    right: 0px;
  }

  body.page-102 .homepage-block-04>div>div>div.col-xl-5::before {
    left: -1000px;
    right: 0px;
  }

}

h1,
h2,
h3 {
  overflow: hidden;
}

h1 span,
h2 span,
h3 span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s ease-out;
  /* szybkie wysunięcie */
}

h1.visible span,
h2.visible span,
h3.visible span {
  transform: translateY(0);
}

.homepage-block-04>div>div>div {
  height: 560px;
}

.homepage-block-04>div>div>div.col-xl-5::before {
  display: block;
  position: absolute;
  left: 0px;
  top: -65px;
  bottom: -65px;
  background: rgb(var(--bs-primary-rgb));
  content: "";
  right: -1000px;
}

.homepage-block-06>div>div>div {
  height: 918px;
}

.owl-carousel.owl-small .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.owl-carousel.owl-small .owl-nav button.owl-custom-nav {
  background: rgba(255, 255, 255, 1);
  border: none;
  border-radius: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bs-primary);
  pointer-events: all;
  transition: background 0.2s;
  margin: 0px;
}

.owl-carousel.owl-small .owl-nav button {
  margin: 0;
}

.owl-carousel.owl-small .owl-nav button.owl-custom-nav:hover {
  background: var(--bs-primary);
  color: #fff;
}

#owl-small,
#owl-bigger {
  height: 610px;
  position: relative;
}

#owl-small .owl-stage-outer,
#owl-bigger .owl-stage-outer,
#owl-small .owl-stage-outer *,
#owl-bigger .owl-stage-outer * {
  height: 610px;
}

#owl-small .owl-item img,
#owl-bigger .owl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.homepage-block-apartament>div:last-of-type>.row {
  height: 710px;
}

#owl-apartament {
  height: 710px;
  position: relative;
}

#owl-apartament .owl-stage-outer,
#owl-apartament .owl-stage-outer * {
  height: 710px;
}

#owl-apartament .owl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Układ dots w poziomie, pełna szerokość */
#owl-apartament .owl-dots {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  /* odstęp między paskami */
  width: 100%;
  margin-top: 10x;
  /* trochę odstępu od karuzeli */
}

/* Każdy dot jako pasek */
#owl-apartament .owl-dot {
  flex: 1;
  /* równo dzielą szerokość */
  height: 7px;
  background-color: #ebe8e1;
  border-radius: 0;
  /* żeby były prostokątne */
  padding: 0;
  margin: 0;
  transition: background-color 0.3s;
}

/* Usuwamy zbędny span w środku */
#owl-apartament .owl-dot span {
  display: none;
}

/* Aktywny pasek */
#owl-apartament .owl-dot.active {
  background-color: var(--bs-primary);
  /* kolor aktywnego paska */
}




.homepage-block-menu .helper-left>div {
  max-width: 710px;
}

.homepage-block-menu .helper-left div a {
  width: 94px;
  height: 94px;
  line-height: 49px;
  font-size: 30px;
}

.homepage-block-menu .helper-left>div>div:first-of-type {
  border-right: 1px solid var(--bs-primary);
}

.homepage-block-menu .helper-right::before {
  content: "";
  display: block;
  height: 420px;
  left: 15px;
  top: 50%;
  margin-top: -210px;
  right: 0px;
  position: absolute;
  background: #323232;
}

.homepage-block-menu .helper-right>div {
  z-index: 2;
}

.homepage-block-menu .helper-right>div>div {
  border-left: 1px solid var(--bs-primary);
}

.homepage-block-bar a.btn {
  width: 64px;
  height: 82px;
  font-size: 18px;
  line-height: 41px;
}

.homepage-block-bar>div>div>div:last-of-type span::before {
  content: "";
  border: 2px solid var(--bs-primary);
  display: block;
  left: 0px;
  right: 0px;
  position: absolute;
  bottom: 0px;
  top: 0px;
  transform: translate(-20px, -20px);
}

.homepage-block-form h3 {
  font-size: 104px;
  line-height: 70px;
  overflow: initial;
}

.homepage-block-form p {
  max-width: 400px
}

.homepage-block-form>div>div>div:first-of-type:before {
  display: block;
  position: absolute;
  right: 0px;
  top: -100px;
  bottom: -108px;
  background: rgb(var(--bs-primary-rgb));
  content: "";
  left: -1000px;
}

.homepage-block-kontakt>div:first-of-type>div:first-of-type>div {
  min-height: 390px;
}

.homepage-block-kontakt>div:nth-child(2) {
  margin-top: 30px;
}

.homepage-block-kontakt>div:last-of-type a {
  background-color: var(--bs-white);
  color: var(--bs-primary);
  width: 70px;
}

/* MENU */
/* Overlay container */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Active state */
#fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
#fullscreen-menu .menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Menu list */
#fullscreen-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#fullscreen-menu nav ul li {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.5s forwards;
}

/* Animacja pojawiania się linków */
#fullscreen-menu.active nav ul li {
  animation-delay: var(--delay);
}

#fullscreen-menu nav ul li:nth-child(1) {
  --delay: 0.1s;
}

#fullscreen-menu nav ul li:nth-child(2) {
  --delay: 0.2s;
}

#fullscreen-menu nav ul li:nth-child(3) {
  --delay: 0.3s;
}

#fullscreen-menu nav ul li:nth-child(4) {
  --delay: 0.4s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#fullscreen-menu nav ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s;
}

#fullscreen-menu nav ul li a:hover {
  color: #f39c12;
  /* podświetlenie np. na pomarańczowo */
}

/* FORM */
.form-section {
  max-width: 540px;
}

.select-wrapper label {
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.form-label {
  letter-spacing: 1px;
}

.form-control,
.form-select {
  border: none;
  border-radius: 0;
  font-size: 1rem;
  padding: 0.25rem 0;
  color: #3a3a3a;
}

.form-control:focus,
.form-select:focus {
  box-shadow: none;
  border-color: #b1976b;
}

.form-select.bg-dark {
  color: #fff !important;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  text-transform: lowercase;
}

.submit-btn {
  background-color: #b1976b;
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #9d845d;
}

/* ✅ Responsywność — label nad polem na małych ekranach */
@media (max-width: 576px) {
  .form-label {
    display: block;
    margin-bottom: 0.3rem;
  }

  .row.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .row.align-items-center .col-4,
  .row.align-items-center .col-8 {
    width: 100%;
  }

  textarea.form-control {
    min-height: 120px;
  }
}



@media (max-width: 1199px) {
  .row.no-gutter-xl {
    --bs-gutter-x: 0;
  }

  .container-fluid.no-gutter-xl {
    --bs-gutter-x: 0;
  }

  .special-font {
    font-size: 44px;
    line-height: 44px;
  }

  .homepage-block-04>div>div>div.col-xl-5::before {
    left: 0px;
    top: 0;
    bottom: 0;
    right: 0;
  }

  .homepage-block-menu .helper-right::before {
    left: 0px;
    height: 280px;
    margin-top: -140px;
  }

  .homepage-block-menu img:first-of-type {
    max-height: 168px;
  }

  .homepage-block-menu img:nth-of-type(2) {
    max-height: 168px;
  }

  .homepage-block-form > div > div > div:first-of-type::before {
    right: 0px;
    top: -60px;
    bottom: -68px;
    left: -1000px;
  }

  .photo-column img {
    max-width: 100%;
  }

  .homepage-block-kontakt > div:first-of-type > div:first-of-type > div {
    min-height: 190px;
  }

}


/* Warstwa nakĹadki do formularza */
.form-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Spinner loadera */
.form-loader-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

/* Animacja obracania */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* animacje bazowe */
.helper-zoomer {
  transition: ease transform 0.4s;
}

.helper-zoomer:hover {
  transform: scale(1.03);
}

.helper-menu > *:nth-child(1) {
  transition: padding 0.3s ease, margin-bottom 0.3s ease;
}

.helper-menu > *:nth-child(2), 
.helper-menu > *:nth-child(4) {
  transition: opacity 0.3s ease, visibility 0.3s ease, display 0.3 ease;
}

.helper-menu > *:nth-child(3) {
  transition: padding 0.3s ease;
}

.helper-is-scrolling .helper-menu > *:nth-child(2), 
.helper-is-scrolling .helper-menu > *:nth-child(4) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.helper-is-scrolling .helper-menu > *:nth-child(1) {
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}

.helper-is-scrolling .helper-menu > *:nth-child(3) {
  padding: 1.5rem 1rem !important;
}