@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

*:focus {
  outline: none;
}

a,
a:focus,
a:hover,
a:visited {
  text-decoration: none;
}

:root {
  --primary-color: #000000;
  --secondary-color: rgb(88, 110, 219);
  --tertiary-color: rgb(186, 45, 92);
  --footer-bg: #fff;
  --footer-text: #222;
}

body {
  font-family: 'Poppins', sans-serif;
}

#navbar {
  width: 100%;
  height: 100px;
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  z-index: 1000;
  /* aby navbar był nad innymi elementami */
  background-color: white;
  /* warto dodać tło, żeby był czytelny */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#navbar_left img {
  height: 60px;
  /* dostosuj w razie potrzeby */
}

#navbar_right {
  display: flex;
  align-items: center;
  gap: 32px;
  /* odstęp między linkami, jeśli dodasz więcej */
}

.navbar_right_link {
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.navbar_right_link:hover {
  color: var(--tertiary-color);
}

.navbar_right_link_current {
  color: var(--tertiary-color);
}

#hero_img {
  height: 565px;
  width: 100%;
  aspect-ratio: 2048 / 565;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* pionowo na środku */
  align-items: center;
  /* poziomo na środku */
  text-align: center;
  /* tekst w wierszach wyśrodkowany */

  background-image: url('img/oryginal_L.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  font-size: 40px;
  padding: 0;
  /* 20px; /* dla marginesu wewnętrznego na telefonach */
  box-sizing: border-box;
}

@media (max-width: 860px) {
  #hero_img {
    height: 320px;
  }
}

#hero_img h1 {
  color: white;
  font-weight: 700;
  text-shadow: black 0px 0px 12px;
  font-size: 70px;
}

#hero_img p {
  color: white;
  font-weight: 700;
  font-size: 30px;
  text-shadow: black 0px 0px 12px;
}

@media (max-width: 860px) {
  #hero_img h1 {
    font-size: 50px;
  }

  #hero_img p {
    font-size: 20px;
  }
}

#hero_header {
  margin: 100px;
  justify-content: center;
  /* pionowo na środku */
  align-items: center;
  /* poziomo na środku */
  text-align: center;
  /* tekst w wierszach wyśrodkowany */
  display: flex;
  flex-direction: column;
}

@media (max-width: 780px) {
  #hero_header {
    margin: 5%;
  }
}

#hero_header h1 {
  color: rgb(88, 110, 219);
  font-weight: 700;
  font-size: 40px;
  padding-bottom: 30px;
}

#hero_header p {
  font-weight: 100;
  align-items: left;
}

.section {
  /* display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  padding: 0 3%;
  gap: 40px; */

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 kolumny */
  gap: 40px;
  padding: 0 3%;
}

@media (max-width: 1440px) {
  .section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 835px) {
  .section {
    grid-template-columns: 1fr;
  }
}

.section-reverse {
  width: 100%;
  max-width: 1780px;
  display: flex;
  margin-bottom: 60px;
  align-items: center;
  justify-content: center;
}

.section-reverse-2 {
  width: 100%;
  max-width: 1780px;
  display: flex;
  margin-bottom: 60px;
  align-items: center;
  justify-content: center;
  /* background-color: rgb(241, 240, 240); */
}

.section_left {
  display: grid;
  flex: left;
  width: 50%;
  margin-right: 100px;
}

@media (max-width: 1400px){
  .section_left{
    margin-right: 20px;
  }
}

@media (max-width: 1000px){
  .section-reverse{
    flex-direction: column; /* obrazek nad tekstem */
    text-align: center; /* wyśrodkowanie tekstów */
  }

  .section-reverse-2 {
    flex-direction: column; /* obrazek nad tekstem */
    text-align: center; /* wyśrodkowanie tekstów */
  }

  .section_left {
    width: 100%;
    margin-right: 5%; /* usuwamy margines */
    margin-left: 5%;
    padding-right: 5%;
    padding-left: 5%;
  }

  .section_left p{
    text-align: justify;
  }

  .section_right {
    width: 90%;
    margin: auto;
    margin-bottom: 20px; /* odstęp między obrazkiem a tekstem */
  }

  #slideshow, #slideshow2, #slideshow3{
    max-width: 90%;
    max-height: 400px;
  }
}

.section_left h2 {
  margin-bottom: 16px;
}

.section_left p {
  font-size: 18px;
  margin-bottom: 24px;
}

.section_left button {
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.section_left button:hover {
  background-color: var(--tertiary-color);
}

.section_right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: auto;
}

.section_right img {
  /* width: 100%; */
  max-width: 450px;
  height: auto;
  border-radius: 100px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.section img {
  width: 500px;
  height: auto;
  border-radius: 100px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1300px) {
  #counters {
    padding: 60px 2%;
  }
}

.flip-container {
  /* perspective: 1000px; */
  /* width: 500px; */
  width: 100%;
  aspect-ratio: 16 / 9;
  text-align: center;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front .hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: brightness(0.8);
}

.hero-cont-img {
  background-color: blue;
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

.hero-text {
  position: relative;
  color: white;
  font-size: 1.7em;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.front {
  z-index: 2;
}

.back {
  z-index: 1;
  background-color: var(--secondary-color);
  transform: rotateY(180deg);
  border-radius: 100px;

  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.back-text {
  color: white;
}


#counters {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 80px 10%;
  text-align: center;
  align-items: stretch;
}

@media (max-width: 664px) {
  #counters {
    padding: 60px 2%;
  }
}

.counter-box {
  flex: 1;
}

.counter {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

#counters p {
  font-size: 16px;
  font-weight: 500;
}

#why-us {
  padding: 80px 10%;
  text-align: center;
  background-color: #f9f9f9;
}

#why-us h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--tertiary-color);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.reason {
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.icon-boxx img.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  /* filter: invert(40%) sepia(95%) saturate(3000%) hue-rotate(210deg) brightness(90%) contrast(85%); */
  filter: invert(29%) sepia(77%) saturate(3627%) hue-rotate(322deg) brightness(89%) contrast(88%);
}

.reason:hover {
  transform: translateY(-5px);
}

.icon-boxx {
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex; 
}

.icon-boxx img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.reason h3 {
  font-size: 18px;
  color: var(--tertiary-color);
  margin-bottom: 10px;
}

.reason p {
  font-size: 14px;
  /* color: var(--tertiary-color); */
  line-height: 1.5;
}

#testimonials_section {
  padding: 60px 10%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#testimonials_section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.testimonials_wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonials_container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-align: center;
  align-items: center;
}

.testimonials_container::-webkit-scrollbar {
  display: none;
}

.testimonial {
  background-color: white;
  padding: 25px 30px;
  border: 1px solid var(--secondary-color);
  border-radius: 0;
  color: var(--primary-color);
  max-width: 300px;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 300;
}

.testimonial strong {
  font-weight: 700;
  margin-bottom: 15px;
}

.testimonial p {
  font-style: italic;
  line-height: 1.5;
}

.arrow-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  transition: 0.3s;
}

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

.arrow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#footer {
  background-color: #fff;
  color: #000;
  padding: 30px 10% 40px 10%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
}

.footer-container {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-container a {
  text-decoration: none;
  color: black;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-img {
  max-width: 200px;
}

.footer-logo .logo-placeholder {
  display: inline-block;
  border: 1px dashed #bbb;
  padding: 8px 16px;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-column h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.footer-column p {
  margin: 0;
  color: #000;
  font-weight: 500;
  line-height: 1.6;
}

.footer-column address {
  font-style: normal;
}

/* .contact-item,
.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-weight: 500;
}

.contact-item i,
.social-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
*/
.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  font-size: 18px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  /* odstęp między ikoną a nickiem */
  font-weight: 600;
  color: var(--primary-color);
}

.social-item i {
  font-size: 20px;
  width: 20px;
  /* gwarantuje równe wyrównanie ikon */
}

.social-item:hover {
  color: var(--secondary-color);
}

.social-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.social-item a:hover {
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-column {
    padding-top: 10px;
    flex: auto;
  }

  .hero-text {
    font-size: 1.2em;
  }

  .arrow-btn {
    font-size: 20px;
    padding: 6px 14px;
  }

  .testimonial {
    max-width: 100%;
  }
}

.footer_hover_tertiary:hover {
  color: var(--tertiary-color);
  transition: 0.2s;
}


#o_nas_top {
  margin: 100px;
  justify-content: center;
  /* pionowo na środku */
  align-items: center;
  /* poziomo na środku */
  text-align: center;
  /* tekst w wierszach wyśrodkowany */
  display: flex;
  flex-direction: column;
}

#o_nas_top h1 {
  color: var(--secondary-color);
  font-size: 72px;
}

#o_nas_firma {
  padding: 80px 20%;
  background-color: #f9f9f9;
}

.o_nas_firma_container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.o_nas_firma_left {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 1%;
}

.o_nas_firma_left img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.o_nas_firma_right {
  flex: 1;
  margin: 1%;
  text-align: center;
}

.o_nas_firma_right h2 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.o_nas_firma_right p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--primary-color);
}

.o_nas_firma_container.reverse {
  flex-direction: row-reverse;
}

#o_nas_nasz_zespol {
  margin: 100px;
  justify-content: center;
  /* pionowo na środku */
  align-items: center;
  /* poziomo na środku */
  text-align: center;
  /* tekst w wierszach wyśrodkowany */
  display: flex;
  flex-direction: column;
}

#o_nas_nasz_zespol_top h2 {
  color: var(--secondary-color);
  font-size: 36px;
  margin-bottom: 60px;
}

.zdjecia_zarzadu {
  max-height: 300px;
  border-radius: 100%;
}

.prezesi_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 33.33%;
  box-sizing: border-box;
  gap: 20px;
  text-align: center;
}

.prezesi_container p {
  /* text-align: justify; */
  margin-top: 10px;
}

.o_nas_zespol_opisy_img {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: flex-start; /* <--- najważniejsza zmiana */
  gap: 30px;
}

.nasze_zdjecia_o_nas {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.prezes-name {
  color: var(--secondary-color);
  margin-top: -10px;
}


.o_nas_firma_opisy {
  flex: 1;
  margin: 1%;

}

@media (max-width: 1240px) and (min-width: 801px) {
  .o_nas_zespol_opisy_img {
    flex-direction: column;
    align-items: center;
  }

  .prezesi_container {
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    text-align: left;
    margin-bottom: 40px; /* zwiększony odstęp */
  }

  .nasze_zdjecia_o_nas {
    flex: 0 0 30%;
    text-align: center;
  }

  .o_nas_firma_opisy {
    flex: 1;
    margin: 0;
  }
}

@media (max-width: 800px) {
  .o_nas_zespol_opisy_img {
    flex-direction: column;
    align-items: center;
  }

  .prezesi_container {
    flex-direction: column;
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 40px; /* zwiększony odstęp */
  }

  .nasze_zdjecia_o_nas {
    text-align: center;
  }

  .o_nas_firma_opisy {
    margin-top: 10px;
  }
}


#o_nas_formularz {
  padding: 80px 20%;
  background-color: #f9f9f9;
  text-align: center;
}

#o_nas_formularz h1 {
  color: var(--secondary-color);
  margin: 40px auto;
}

.o_nas_form_button {
  background-color: white;
  border-radius: 24px;
  padding: 16px 48px;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  outline: none;
  cursor: pointer;
  font-family: Poppins;
}

.o_nas_form_button:hover {
  background-color: var(--secondary-color);
  color: white;
  transition: 0.4s;
}

#flaga {
  width: 30px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 0%;
}

.flaga_zdj {
  width: 30px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 0%;
}

#kontakt_hero_header {
  margin: 40px auto 10px auto;
  padding: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
}


#kontakt_hero_header h1 {
  color: rgb(88, 110, 219);
  font-weight: 700;
  font-size: 40px;
  padding-bottom: 30px;
}

#kontakt_hero_header p {
  font-weight: 100;
  align-items: left;
}

.kontakt_section {
  margin: 10px auto 10px auto;
  padding: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
}

.kontakt_section h1 {
  color: rgb(88, 110, 219);
  font-weight: 700;
  font-size: 40px;
  padding-bottom: 30px;
}

.kontakt_section p {
  font-weight: 100;
  align-items: left;
}


.kontakt_section h2 {
  color: rgb(88, 110, 219);
  font-weight: 700;
  font-size: 24px;
}

.kontakt_both_container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* pozwala zawijać */
  gap: 30px;
  margin-bottom: 40px;
}

.kontakt_left {
  flex: 1 1 45%;
  border: 2px solid var(--secondary-color);
  border-radius: 32px;
  min-width: 300px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
}


.kontakt_left_top {
  width: 100%;
  height: 50px;
  text-align: center;
  padding: 20px;
  font-size: 24px;
}

.kontakt_left_content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.kontakt_icon_container {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.kontakt_icon {
  width: 24px;
  vertical-align: middle;
}


.kontakt_right_content {
  margin: 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.kontakt_button {
  background-color: white;
  border-radius: 24px;
  padding: 16px 48px;
  color: var(--tertiary-color);
  border: 2px solid var(--tertiary-color);
  outline: none;
  cursor: pointer;
  font-family: Poppins;
}

.kontakt_button:hover {
  background-color: var(--tertiary-color);
  color: white;
  transition: 0.4s;
}


/* TABLETY: max 1000px */
@media (max-width: 1000px) {
  .kontakt_both_container {
    flex-direction: column;
    align-items: center;
    padding: 0 20px; /* dodaje margines od krawędzi ekranu */
    gap: 20px;
  }

  .kontakt_left {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* TELEFONY: max 600px */
@media (max-width: 600px) {
  .kontakt_button {
    width: 90%;         /* zamiast 100% */
    max-width: 300px;   /* ograniczamy max szerokość */
    padding: 14px 24px;
    margin: 0 auto;     /* wyśrodkowanie */
    display: block;
    font-size: 16px;
  }

  .kontakt_left_content,
  .kontakt_right_content {
    padding: 20px;
  }

  .kontakt_left_top {
    font-size: 20px;
    padding: 15px;
  }
}



#formMessage {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  display: none;
}

#formMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#formMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#hamburger {
  display: none;
  font-family: "Font Awesome 5 Free";
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
}

#mobile_menu {
  display: none;
  position: fixed;
  top: 100px;
  /* dokładnie pod spodem navbara */
  right: 0;
  left: 0;
  background: #fff;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  z-index: 9;
  animation: slideDown 0.3s ease forwards;
}

.mobile_menu_link {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  text-align: center;

}

.mobile_menu_link_active {
  color: var(--tertiary-color);
}

.mobile_menu_link:hover {
  background: #f0f0f0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@media (max-width: 1000px) {
  #navbar_right {
    display: none;
  }

  #hamburger {
    display: block;
  }
}

@media (max-width: 1200px) {
  #navbar {
    padding: 0 5%;
  }

  .navbar_right_link {
    font-size: 12px;
  }
}

#jak_przebiega_wspolpraca_container{
  max-width: 50%;
  margin: auto;
}

.jak_przebiega_wspolpraca_header{
  text-align: center;
  font-size: 36px;
}

.jak_przebiega_wspolpraca_section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px;
}

.jak_przebiega_wspolpraca_left {
  width: 50px;   /* średnica kółka */
  height: 50px;  /* równa szerokości = idealny okrąg */
  background-color: var(--tertiary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
  font-size: 1.4rem; /* ~65-70% średnicy */
}

.jak_przebiega_wspolpraca_left span {
  font-size: 1.8rem; /* 65% średnicy kółka */
}

.jak_przebiega_wspolpraca_right {
  flex: 1;
}

#counters{
  background-color: rgb(249, 249, 249);
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1400px){
  #jak_przebiega_wspolpraca_container {
    width: 90%;
    /* margin: 0 10% 0 10%; */
  }
}