@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --main-color: #335574;
  --active-color: #c4d630;
  --main-bg-color: #e6e5e5;
  --text-color: #2a2a2a;
}

::selection {
  background-color: var(--main-color);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--main-bg-color);
  font-family: "Lato", sans-serif;
  background-image: url(../images/page_bg.jpg);

  background-repeat: no-repeat;
  background-size: contain; /* widać całe zdjęcie */
  background-position: center top; /* wycentrowanie w poziomie i od góry */
  min-height: 100vh; /* zajmuje przynajmniej pełny ekran */
}

@media (max-width: 768px) {
  body {
    background-image: url(../images/page_bg_res.jpg);
  }
}

/* TOP **************************************************************** TOP*/

.nav_bar {
  display: flex;
  width: 100%;
  height: 157px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .nav_bar {
    height: 100px;
  }
}

.logo {
  background-color: white;
  flex: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
  text-align: right;
  padding-right: 180px;
  /* align-items: center; */
  padding-top: 25px;
  padding-left: 20px;
}

@media (max-width: 910px) {
  .logo {
    text-align: center;
    padding-right: 25px;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .logo {
    text-align: center;
    padding-right: 50px;
    padding-left: 20px;
    padding-top: 15px;

    flex: 4;
  }
}

.logo img {
  max-width: 200px;
  height: auto; /* zachowanie proporcji */
}

@media (max-width: 768px) {
  .logo img {
    max-height: 70px;
    width: auto;
  }
}

.menu {
  flex: 3;
  background-color: var(--main-color);
  height: 115px;
  margin-left: -40px;
  clip-path: polygon(
    calc(100% - 40px) 100% 100% 0,
    calc(100% - 40px) 100%,
    0 100%
  );
  padding-left: 50px;
  display: flex;
}

@media (max-width: 768px) {
  .menu {
    flex: 1;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .menu {
    display: flex;
    align-items: center; /* 🔥 to centruje w pionie */
  }
}

/* MENU **************************************************************** MENU*/

.top_menu {
  /* background-color: var(--main-color); */
  display: flex;
  flex: 2;
  align-items: center;
  justify-content: flex-start;
  font-size: clamp(20px, 2vw, 29px);
  padding-left: 80px;
  padding-right: 20px;
  height: 100%;
}

.top_menu_separator {
  padding-left: 20px;
  padding-right: 20px;
  color: white;
  font-size: 20px;
}

@media (max-width: 768px) {
  .top_menu_separator {
    display: none;
  }
}

.top_menu a {
  cursor: pointer;
  text-decoration: none;
  position: relative;
  color: var(--main-bg-color);
}

.top_menu a:hover {
  color: var(--active-color);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--main-bg-color);
  margin-left: auto;
  margin-right: 20px;
}

/* Zmiana hamburger w X */
.hamburger.active::after {
  content: "×";
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .top_menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 0;
    background-color: var(--main-color);
    width: 100%;
    text-align: center;
    font-size: 20px;
    padding: 0;

    height: 259px;
  }

  .top_menu a {
    padding-bottom: 20px;
    width: 80%;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
  }

  .top_menu a:last-child {
    border-bottom: none;
  }

  .top_menu a:not(:last-child)::after {
    content: "";
    padding: 0;
  }

  .top_menu.active {
    display: flex;
  }
}

/* ARTICLE **************************************************************** ARTICLE*/
.article_container {
  max-width: 1440px;
  max-width: 1232px;
  margin: 0 auto;
  padding: 40px;
}

.article_box {
  height: auto;
  border-bottom: 9px solid var(--main-color);
}

.article_box_top {
  height: auto;
  border-top: 9px solid var(--main-color);
}

.box_images {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .box_images {
    flex-direction: column;
  }
}

.box_images img {
  flex: 1 1 50%; /* każde zajmuje połowę dostępnej szerokości */
  max-width: 50%; /* zapobiega "rozlewaniu się" */
  height: auto; /* zachowanie proporcji */
  object-fit: cover; /* wypełnienie kolumny bez zniekształceń */
}

@media (max-width: 768px) {
  .box_images img {
    max-width: 100%;
  }

  .box_images img:nth-child(2) {
    display: none;
  }
}

.box_header {
  background-color: white;
  padding: 50px;
}

@media (max-width: 768px) {
  .box_header {
    padding: 40px;
  }
}

.box_header h1 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: var(--main-color);
  text-align: center;
  font-size: clamp(32px, 8vw, 70px);
}

.box_header p {
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  font-size: clamp(18px, 5vw, 30px);
}

.article_text {
  padding-top: 50px;
  font-size: 25px;
  line-height: 1.6;
  color: var(--text-color);
  text-align: justify;
}

.big {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  /* padding-bottom: 30px; */
}

.article_title_big {
  font-size: 50px;

  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: var(--main-color);
  text-align: center;
  font-size: clamp(32px, 8vw, 70px);
  padding-bottom: 80px;
}

.oferta_text {
  text-align: center;
  /* padding-top: 50px; */
  font-size: 25px;
  line-height: 1.6;
  color: var(--text-color);
}

.oferta_text h5 {
  padding-top: 50px;
  font-size: 25px;
  font-weight: 800;
}

/* Pierwszy h5 w .oferta_text – padding-top 0 */
.oferta_text h5:first-child {
  padding-top: 0;
}

.kontakt {
  /* background-color: #2a2a2a; */
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tel_mail {
  font-size: 30px;
  /* border-left: solid 6px var(--main-color); */
  text-align: center;
  font-size: clamp(18px, 2vw, 30px);
}

.adres {
  background-color: var(--main-color);
  color: var(--main-bg-color);
  font-size: 30px;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  padding: 5px 20px;
  margin-top: 20px;
  letter-spacing: 2px;
  text-align: center;
}

.zaproszenie {
  font-size: 32px;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 1%;
  text-align: center;
}

/* BUTTON **************************************************************** BUTTON*/

.holny_button {
  background-color: var(--main-color);
  text-decoration: none;
  color: var(--main-bg-color);
  padding: 20px 40px;
  display: block;
  width: fit-content; /* 🔥 szerokość = tekst */
  margin: 40px auto; /* 🔥 wyśrodkowanie + odstęp od góry */
  margin-bottom: 100px;
  margin-top: 50px;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 2px;
  text-align: center;
}

@media (max-width: 768px) {
  .holny_button {
    margin-bottom: 50px;
  }
}

.holny_button:hover {
  color: var(--active-color);
}

/* FOOTER **************************************************************** FOOTER*/

.footer {
  background-color: white;
  height: 200px;
}

@media (max-width: 768px) {
  .footer {
    height: 250px;
  }
}

.footer_cointainer {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* background-color: #c4d630; */
}

@media (max-width: 768px) {
  .footer_cointainer {
    flex-direction: column;
  }
}

.footer_cointainer img {
  max-width: 190px;
  padding-right: 30px;
}

.footer_cointainer p {
  position: relative;
  color: var(--main-color);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  padding-left: 30px; /* odstęp tekstu od borderu */
}

.footer_cointainer p::before {
  content: "";
  position: absolute;
  left: 0; /* przy samej lewej krawędzi */
  top: 0;
  width: 4px; /* grubość borderu */
  height: 100%;
  background-color: var(--main-color);
}

@media (max-width: 768px) {
  .footer_cointainer p {
    text-align: center;
    padding-top: 20px;
    padding-left: 0;
  }
  .footer_cointainer p::before {
    border: none;
    width: 0;
  }
  .footer_cointainer img {
    padding-right: 0;
  }
}

/* BACK TO TOP ******************************************************** BACK TO TOP */

#backToTop {
  position: fixed;
  bottom: 30px;
  /* top: 30px; */
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--main-color);
  color: white;
  cursor: pointer;
  display: none;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
  transition: all 0.3s ease;
  font-size: 32px; /* dla Material Icons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#backToTop:hover {
  background-color: var(--active-color);
  transform: translateY(-3px);
  opacity: 1;
}

/* GALLERY ******************************************************** GALLERY */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  width: 300px;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
  /* border-radius: 20px; */
}

@media (max-width: 768px) {
  .gallery-item {
    width: calc(25% - 15px); /* 4 w rzędzie */
    width: 100px;
    height: 100px;
  }
}

.gallery-item:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none; /* domyślnie ukryty */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-controls span {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
