*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* :root {
  --navigation-color: #f1ebeb;
  --light-primary-color: #a9f8ff;
  --dark-primary-color: #6cbbc2;
  --accent-color: #ff6f61;
  --secondary-color: #000000; */
/* --secondary-color:#3A3A3A; */
/* --support-color: #5fb49c;
  --second-support-color: #2bb18b;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 10px;
} */

/* * {
  outline: 1px solid red !important;
}

body {
  overflow-x: hidden;
} */

:root {
  --light-primary-color: #c4c3c3;
  --dark-primary-color: #556b2f;
  --accent-color: #f97d2a;
  /* --text-color: #222222; */
  /* --support-color: #6b8a99; */
  --secondary-accent: #2f2f2f;
  --max-width: 100%;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--light-primary-color); /*primary-text*/
  overflow-x: hidden; /*Pozwala na uniknięcie poziomego scrolla*/
  line-height: 1.6; /*Ustawia odstępy między liniami tekstu*/
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: white;
}

.section-title-dark {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: black;
}

.section-title::after,
.section-title-dark::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

/*Navigation Section*/

.navbar {
  background-color: var(--dark-primary-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--accent-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  /* background-color: rgba(255, 111, 97, 0.8); */
  /* box-shadow: 0 10px 8px rgba(255,111,97,15); */
  box-shadow: 0 px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 100%; /*max-width:100%;*/
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 3rem;
  font-size: 1rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: black;
  position: relative;
  display: inline-block;
  transition: var(--transition); /*Sprawdzić co by było gdyby tego nie było*/
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-img {
  border-radius: 50%; /* okrągły kształt */
  overflow: hidden; /* ukrywa wystające fragmenty obrazka */
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/*Hero section*/

.container-hero {
  margin: 100px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heroLeft {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 60%; /* lub min-width: 400px; - zależnie od projektu */
  margin-right: 20px;
}

.hero-content {
  padding: 17px;
  flex: 1;
}

.accent {
  color: var(--accent-color);
  font-size: 3.5rem;
}

.hero-buttons {
  margin-left: 17px;
}

.heroBTN {
  padding: 10px 20px 15px 20px;
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
  border: 2px solid var(--accent-color);
  color: black;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.heroBtn {
  margin-left: 10px;
}

.heroBTN:hover {
  background-color: var(--navigation-color);
  transform: scale(1.2, 0.8);
  font-size: large;
  transition: var(--transition);
}

.hero-image {
  width: 300px; /* ustalasz rozmiar okręgu */
  height: 300px;
  border-radius: 50%; /* okrągły kształt */
  overflow: hidden; /* ukrywa wystające fragmenty obrazka */
  flex-shrink: 0;
}

.hero-image img {
  width: 100%; /* wypełnia kontener */
  height: 100%;
  object-fit: cover; /* zachowuje proporcje i przycina */
  display: block;
}

/*About Us section*/

.aboutUs {
  background-color: var(--dark-primary-color);
  color: white;
}

.container-about {
  padding: 40px;
  /* margin: 0 50px 0 50px; */
}

.about-description {
  margin: 0 50px 0 50px;
}

.container-card {
  display: flex;
  gap: 20px; /* odstęp między kartami */
  flex-wrap: wrap; /* pozwala przełamywać wiersz, jeśli nie mieszczą się w linii */
  width: 100%;
  justify-content: center; /* lub space-between, jeśli chcesz odstępy */
  padding: 17px;
}
.card {
  background-color: var(--light-primary-color);
  border-radius: 8px;
  padding: 20px;
  display: block;
  width: 300px !important;
  height: auto;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  box-sizing: border-box;
  transition: var(--transition);
  color: black;
  text-align: center;
}

.card:hover {
  display: flex;
  gap: 20px; /* odstęp między kartami */
  flex-wrap: wrap; /* pozwala przełamywać wiersz, jeśli nie mieszczą się w linii */
  width: 100%;
  justify-content: center; /* lub space-between, jeśli chcesz odstępy */
  padding: 17px;
  transform: translateX(10px);
  background-color: var(--secondary-accent);
  box-shadow: 0 4px 15px rgba(47, 47, 47, 0.9);
  color: white;
}

.card-title {
  text-align: center;
}

.about-img {
  width: 150px;
  height: 150px;
  display: block;
  margin: auto;
}

.strength {
  width: 200px;
  height: 200px;
  display: block;
  margin: auto;
}

/*Services section*/

.services {
  background-color: var(--light-primary-color);
}

.container-services {
  padding: 20px;
  margin: 0 50px 0 50px;
}

.section-content {
  margin: 0 50px 0 50px;
}

.service-item {
  background-color: var(--secondary-accent);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  color: white;
}

.orange:hover {
  box-shadow: 2px 6px 10px 3px rgba(249, 125, 42, 1);
}

.green:hover {
  box-shadow: 2px 6px 10px 3px rgba(85, 107, 47, 1);
}

.icons-red {
  color: var(--accent-color);
}

.icons-green {
  color: var(--dark-primary-color);
}

/*Section portfolio*/

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio {
  background-color: var(--dark-primary-color);
}
.container-portfolio {
  padding: 20px;
  margin: 0 50px 0 50px;
}

/* .filterBTN {
  padding: 10px 20px 15px 20px;
  background-color: var(--support-color);
  border-radius: var(--border-radius);
  border: 2px solid var(--support-color);
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.filterBTN:active,
.filterBTN:hover {
  background-color: var(--navigation-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
} */

/* #carouselExample {
  max-width: 600px;  
  margin: 0 auto;    
} */

.carousel-item img {
  max-width: 80%;
  height: auto; /* zachowuje proporcje */
  display: block;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.image-in-portfolio {
  width: 25%;
  height: auto;
}

/*Process section*/

.process {
  background-color: var(--light-primary-color);
}

.container-process {
  padding: 60px;
  margin: 0 50px 0 50px;
}

.timeline-container {
  max-width: auto;
  margin: 0 auto;
  background: var(--navigation-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(47, 47, 47, 0.9);
}

.timeline {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 4px;
  background: var(--accent-color);
  z-index: 1;
}
.step {
  background: var(--accent-color);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: black;
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.step.active {
  background: var(--dark-primary-color);
  color: white;
  box-shadow: 0 0 10px black;
}

.labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 6px;
  gap: 8px;
}

.labels div {
  width: 80px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: black;
}

.description {
  max-width: 700px;
  margin: 30px auto;
  font-size: 1.2rem;
  color: black;
  line-height: 2.5;
  min-height: 120px;
  text-align: center;
}
.controls {
  max-width: 700px;
  margin: 30px auto 0;
  text-align: center;
}
.btn {
  background: var(--light-primary-color);
  border: 2px solid var(--secondary-accent);
  color: black;
  font-weight: bold;
  padding: 10px 18px;
  margin: 0 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  /* transition: background 0.3s; */
}
.btn:hover {
  background: var(--secondary-accent);
  color: white;
}

/*Cooperation section*/

.cooperation {
  background-color: var(--dark-primary-color);
}

.container-cooperation {
  padding: 40px;
  margin: 0 50px 0 50px;
}

.paragraph-description {
  color: white;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/*FAQ Section*/

.faq {
  background-color: var(--light-primary-color);
}

.container-faq {
  padding: 40px;
  margin: 0 50px 0 50px;
}

.accordion-item {
  border: 2px solid var(--accent-color);
}

.accordion-button {
  background-color: var(--accent-color) !important;
  color: white !important;
  box-shadow: none !important;
}

.accordion-button.collapsed {
  background-color: var(--secondary-accent) !important;
}

.accordion-body {
  background-color: var(--light-primary-color);
  color: black;
}

.accordion-body-item {
  font-weight: bold;
}

.accordion-button::after {
  background-image: var(--bs-accordion-btn-icon);
  background-size: 1rem;
  transition: transform 0.3s ease;
  filter: invert(1);
  /*filter: black invert(1);*/
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/*Contact section*/

.contact {
  background-color: var(--dark-primary-color);
  padding: 30px 20px;
}

.section-content-contact {
  color: white;
}

.row {
  display: flex;
  width: 100%;
  padding: 0 50px 0 50px;
}

.elements-of-contact {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.contactData {
  margin-bottom: 3rem;
  position: relative;
  color: white;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  width: 80%;
  margin: 30px 0 30px 0;
  background-color: var(--light-primary-color);
}

.contact-text h5 {
  margin: 0;
  color: black;
}

.contact-text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: black;
}

.contact-icon {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 50px;
  height: 50px;
  font-size: 50px;
  color: var(--accent-color);
}

.contact-form {
  width: 45%;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  margin: 30px 0 30px 0;
  background-color: var(--light-primary-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  padding: 5px;
}

.form-group input {
  border: 1.5px solid var(--accent-color);
  border-radius: var(--border-radius);
  height: 40px;
  padding-left: 10px;
}

.form-group textarea {
  border: 1.5px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding-left: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(199, 28, 28, 0.1);
}

/*Select*/

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0.8rem;
  background: white;
  border: 1.5px solid var(--accent-color);
  border-radius: var(--border-radius);
  color: black;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  padding-right: 2.5rem; /* Space for the custom arrow */
}

/* .custom-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
} */

.custom-select-wrapper::after {
  content: "▼"; /* Unicode down arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-gray);
  pointer-events: none; /* Make sure the arrow doesn't interfere with select clicks */
  font-size: 0.8rem;
  transition: var(--transition);
}

.custom-select:focus + .custom-select-wrapper::after {
  color: var(--accent-color);
}

.sendMessage {
  padding: 10px 20px 15px 20px;
  background-color: var(--dark-primary-color);
  border-radius: var(--border-radius);
  border: 2px solid var(--support-color);
  color: black;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin: auto;
}

.sendMessage:hover {
  background-color: var(--light-primary-color);
  border: 2px solid var(--dark-primary-color);
  transform: scale(1);
  font-size: 1.05rem;
  transition: var(--transition);
}

.google-map {
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  width: 80%;
  height: 300px;
  display: block;
  margin: auto;
  margin-bottom: 20px;
}

.error-message {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
  position: relative;
}

.privacy {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 3px solid var(--accent-color);
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  bottom: 3px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-color);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.privacy:checked + .custom-checkbox::after {
  display: block;
}

.labels-privacy {
  font-size: 14px;
  padding: 0;
}

/*Footer*/

.section-footer {
  background-color: var(--navigation-color);
  padding: 10px 20px;
}

.container-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: auto;
  margin: 0 auto;
}

.footer-content {
  flex: 1 1 200px;
  margin: 20px;
}

.footer-content h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: black;
}

.footer-content p {
  font-size: 14px;
  color: black;
}

.social-link {
  margin-right: 10px;
  font-size: 16px;
  text-decoration: none;
  color: var(--secondary-accent);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-color);
}

.mediaIcon {
  font-size: 30px;
}

.footer-link {
  color: black;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-color);
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--accent-color);
  color: black;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.size-btn {
  font-size: 12px;
}

.info-btn {
  background: none;
  border: none;
  color: black;
  /* font-size: 14px; */
  cursor: pointer;
  position: relative;
  padding: 0 3px 0 3px;
}

.info-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  background-color: var(--accent-color);
  transition: transform 0.25s ease, background-color 0.25s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.info-btn:hover {
  color: var(--accent-color);
}

.info-btn:hover::after {
  transform: scaleX(1);
  height: 1px;
}

/*Cookies*/

.cookie-banner {
  position: fixed;
  left: 6rem;
  right: 1rem;
  bottom: 1.5rem;
  background-color: var(--accent-color);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0, 08);
  /* display: none;  */
  z-index: 9999;
  width: 90%;
}

.cookie-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-inner p {
  margin: 0;
  flex: 1 1 70%;
  min-width: 220px;
  color: var(--secondary-accent);
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.acceptBtn,
.btn-muted {
  border: none;
  background-color: var(--accent-color);
  color: var(--secondary-accent);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.acceptBtn::after,
.btn-muted::after {
  content: "";
  position: absolute;
  left: 0;
  background-color: white;
  bottom: -2px;
  width: 100%;
  height: 1px;
  transition: transform 0.2s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.acceptBtn:hover::after,
.btn-muted:hover::after {
  transform: scale(1);
  height: 2px;
  bottom: -4px;
}

.acceptBtn:hover,
.btn-muted:hover {
  color: white;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.cookie-modal-content {
  background: var(--dark-primary-color);
  color: black;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 80%;
}

fieldset {
  padding-bottom: 20px;
}

.visible-legend {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 1.1rem;
  padding-inline: 3px;
}

.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-left: 5px;
  margin-right: 5px;
  font-size: 15px;
  border-bottom: 1px solid var(--accent-color);
}
.pref-row small {
  display: block;
  color: black;
  font-size: 13px;
}

.modal-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  box-sizing: border-box;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  /* flex-shrink: 0; */
  vertical-align: middle;
}

.modal-checkbox:checked {
  background-color: black;
}

/* "fajka" */
.modal-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--accent-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  padding: 0;
  padding: 0 3px 0 3px;
}

.modal-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  /* height: 1px; */
  background-color: white;
  transition: transform 0.25s ease, background-color 0.25s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.modal-btn:hover {
  color: white;
}

.modal-btn:hover::after {
  transform: scaleX(1);
  height: 2px;
  color: white;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

#cookie-modal.show {
  display: flex;
  opacity: 1;
}

/*Privacy modal*/

.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* pełna szerokość ekranu */
  height: 100vh; /* pełna wysokość ekranu */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.privacy-modal-title {
  margin: 12px 0 12px 0;
  text-align: center;
}

.modal-body {
  overflow-y: auto; /* włącza pionowy scroll */
  flex: 1; /* zajmuje maksymalnie dostępną przestrzeń */
  margin-top: 1rem;
  padding-right: 1rem; /* trochę miejsca dla scrollbara */
}

.modal-body::-webkit-scrollbar,
.modal-body-cookies-scroll::-webkit-scrollbar {
  background-color: var(--secondary-accent) !important;
  border-radius: 12px;
  width: 8px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-body-cookies-scroll::-webkit-scrollbar-thumb:hover,
.modal-body.scrolling::-webkit-scrollbar-thumb,
.modal-body-cookies-scroll.scrolling::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 12px;
  transition: background-color 0.1s ease;
}

.title-point {
  font-size: 20px;
}

.policyPrivacyDescription {
  font-size: 16px;
  line-height: 2.2;
}

#privacy-modal.show {
  display: flex;
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}

/*Cookies Privacy Modal*/
.cookies-privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.privacy-modal-content {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.privacy-modal-content {
  background: var(--dark-primary-color);
  color: black;
  border-radius: 12px;
  padding: 1.1rem;
  width: 65%;
  max-width: 1200px;
  max-height: 90vh;
  box-shadow: 0 12px 48px rgba(16, 24, 40, 1);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--accent-color);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
  margin: 20px 0 20px 0;
}

.cookies-table th,
.cookies-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--secondary-accent);
  text-align: left;
  vertical-align: top;
}

.cookies-table tr {
  background-color: var(--secondary-accent);
  color: white;
}

.cookies-table th {
  background-color: var(--primary-color);
  font-weight: 600;
  color: white;
}

.overlay {
  display: none; /* domyślnie ukryte */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Efekt powiększenia tabeli */
.cookies-table.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
  z-index: 1000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  width: 80%;
  font-size: 14px;
  border: 2px solid var(--accent-color);
}

a.modal-links,
a.colorInModal {
  display: inline-block;
  background: none;
  border: none;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  padding: 0;
}

a.modal-links:hover,
a.colorInModal:hover {
  color: white;
  transition: var(--transition);
}

a.modal-links::after,
a.colorInModal::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
}

a.modal-links:hover::after,
a.colorInModal:hover::after {
  transform: scaleX(1);
  transition: var(--transition);
  height: 2px;
  bottom: -2px;
}

#cookie-modal.show {
  display: flex;
  opacity: 1;
}

.caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.caption p {
  margin: 0;
}

.footer-button {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

/*Responsiveness*/
@media (max-width: 480px) {
  .nav-menu {
    position: fixed;
    top: 67px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(241, 235, 235, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center; /* <--- WAŻNE */
    align-items: center; /* <--- WAŻNE */
    gap: 1.5rem; /* Odstęp między linkami */
    padding-top: 0;
    transition: var(--transition);
  }

  .nav-link {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-right: 30px;
  }

  .hero-image {
    display: none;
    margin: 0;
  }

  .hero-content {
    width: 100%;
    text-align: center;
  }
  .heroLeft {
    width: 100%;
    margin: 0;
  }

  .hero-title {
    width: 100%;
  }

  .hero-subtitle {
    width: 100%;
  }

  .container-hero {
    width: 100%;
    margin: 80px 0;
  }

  .accent {
    font-size: 2.2rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column; /* lub row, jeśli chcesz je obok siebie */
    align-items: center; /* WYŚRODKOWANIE poziome */
    justify-content: center; /* WYŚRODKOWANIE pionowe, jeśli potrzeba */
    gap: 10px; /* odstęp między przyciskami */
    /* margin-top: 20px;        opcjonalnie: odstęp od elementów wyżej */
  }

  .heroBTN {
    width: 80%; /* opcjonalnie: pełna szerokość z marginesami */
    text-align: center;
  }

  .heroBtn {
    margin-left: 0px;
  }

  .heroBTN:focus,
  .heroBTN:active {
    outline: none;
    box-shadow: none;
    transform: none; /* jeśli nie używasz animacji kliknięcia */
    background-color: inherit; /* albo konkretny kolor */
    color: inherit;
  }

  .container-about {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 20px;
  }

  .image-in-portfolio {
    width: 100%;
    height: auto;
  }
  .section-content-service {
    width: 90%;
    display: block;
    margin: auto;
  }

  .orange:active {
    box-shadow: 2px 6px 10px 3px rgba(249, 125, 42, 1);
  }

  .green:active {
    box-shadow: 2px 6px 10px 3px rgba(85, 107, 47, 1);
  }

  .container-portfolio {
    width: 100%;
    margin: 0;
  }

  .container-process {
    margin: 0;
    padding: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .step {
    margin: 6px;
    border-radius: 20px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: 41px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: var(--accent-color);
    z-index: 1;
  }

  .labels {
    display: none;
  }

  .container-cooperation {
    width: 100%;
    margin: 0;
  }

  .title-cooperation {
    font-size: 24.278px;
  }

  .container-faq {
    width: 100%;
    margin-left: 0;
  }

  .container-services {
    width: 100%;
    margin: 0;
  }

  .section-title-dark {
    font-size: 24px;
  }

  .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }
  .section-content-contact {
    width: 90%;
    margin: 0;
    margin-left: 20px;
  }

  .elements-of-contact {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .contactData {
    text-align: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-item {
    /* display: flex;
    flex-direction: column; 
    align-items: center;  */
    padding: 1.5rem 1rem 1.5rem 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
  }

  .contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* większa ikona */
    margin-bottom: 1.5rem; /* odstęp pod ikoną */
    width: auto;
    height: auto;
  }

  .footer-title {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sendMessage {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .google-map {
    width: 100%;
    height: 300px; /* lub dostosować */
  }

  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
  }

  .cookie-modal-content {
    width: 90%;
  }

  .small {
    width: 90%;
  }

  .privacy-modal-content {
    width: 90%;
  }

  .cookies-table.zoomed {
    transform: translate(-50%, -50%) scale(0.8);
  }
}


@media (max-width: 600px) {
  .caption {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 67px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(241, 235, 235, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center; /* <--- WAŻNE */
    align-items: center; /* <--- WAŻNE */
    gap: 1.5rem; /* Odstęp między linkami */
    padding-top: 0;
    transition: var(--transition);
  }

  .nav-link {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-right: 30px;
  }

  .nav-img {
    display: none;
  }

  .hero-content {
    width: 100%;
    text-align: center;
  }

  .hero-title {
    width: 100%;
  }

  .hero-subtitle {
    width: 100%;
  }

  .accent {
    font-size: 2.2rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column; /* lub row, jeśli chcesz je obok siebie */
    align-items: center; /* WYŚRODKOWANIE poziome */
    justify-content: center; /* WYŚRODKOWANIE pionowe, jeśli potrzeba */
    gap: 10px; /* odstęp między przyciskami */
    /* margin-top: 20px;        opcjonalnie: odstęp od elementów wyżej */
  }

  .heroBTN {
    width: 80%; /* opcjonalnie: pełna szerokość z marginesami */
    text-align: center;
  }

  .heroBtn {
    margin-left: 0px;
  }

  .container-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
    margin-top: 80px;
  }

  .heroLeft {
    order: 1;
    width: 100%;
  }

  .hero-image {
    order: 2;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 200px; /* zmniejszamy, ale utrzymujemy proporcje */
    height: 200px;
    border-radius: 50%; /* zapewnia kształt koła */
    object-fit: cover; /* zachowuje kształt bez rozciągania */
    margin-top: 20px;
  }

  .about-description {
    margin-left: 20px;
    width: 100%;
  }

  .carousel-item img {
    max-width: 120%;
    height: auto; /* zachowuje proporcje */
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .image-in-portfolio {
    width: 100%;
    height: auto;
  }

  .container-process {
    margin: 0;
    padding: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .step {
    margin: 6px;
    border-radius: 20px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: 41px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: var(--accent-color);
    z-index: 1;
  }

  .labels {
    display: none;
  }

  .container-cooperation {
    width: 100%;
    margin: 0;
  }

  .title-cooperation {
    font-size: 25.529px;
  }

  .container-faq {
    width: 100%;
    margin-left: 0;
  }

  .section-title-dark {
    font-size: 1.8rem;
  }

  .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .elements-of-contact {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .contactData {
    text-align: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-item {
    /* display: flex;
    flex-direction: column; 
    align-items: center;  */
    padding: 1.5rem 1rem 1.5rem 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
  }

  .contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* większa ikona */
    margin-bottom: 1.5rem; /* odstęp pod ikoną */
    width: auto;
    height: auto;
  }

  .btnText {
    width: 104%;
  }

  .footer-title {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sendMessage {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .google-map {
    width: 100%;
    height: 300px; /* lub dostosować */
  }

  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
  }

  .small {
    width: 90%;
  }

  .item-settings {
    margin-right: 5px;
  }

  .privacy-modal-content {
    width: 90%;
  }

  .cookies-table.zoomed {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@media (min-width: 768px) and (max-width: 1007px) {
  .nav-container {
    width: 100%;
  }

  .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* overflow-x: auto; */ /*Dodaje suwak*/
    white-space: nowrap;
    width: 100%;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-menu li {
    flex: 0 0 auto; /* nie pozwól na zmniejszanie */
  }

  .nav-link {
    display: block;
    padding: 10px 15px;
    font-size: 0.7rem;
    white-space: nowrap;
    text-decoration: none;
  }

  .hamburger {
    flex-shrink: 0; /* żeby hamburger się nie "wpychał" do menu */
  }

  .container-hero {
    width: 100%;
    margin: 0;
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .accent {
    font-size: 2.5rem;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .container-process {
    margin: 0;
    padding: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .container-faq {
    width: 100%;
    margin-left: 0;
  }

  .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .elements-of-contact {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .contactData {
    text-align: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-item {
    /* display: flex;
    flex-direction: column; 
    align-items: center;  */
    padding: 1.5rem 1rem 1.5rem 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
  }

  .contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* większa ikona */
    margin-bottom: 1.5rem; /* odstęp pod ikoną */
    width: auto;
    height: auto;
  }

  .btnText {
    width: 104%;
  }

  .footer-title {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sendMessage {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .google-map {
    width: 100%;
    height: 300px; /* lub dostosować */
  }

  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
  }

  .small {
    width: 90%;
  }

  .item-settings {
    margin-right: 5px;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 67px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(241, 235, 235, 0.8);
    color: var(--support-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    position: relative;
    color: var(--support-color);
    padding: 0.5rem 0;
    text-decoration: none;
  }

  .nav-link:hover {
    color: var(--accent-color);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
  }

  .nav-menu {
    overflow: visible;
  }

  .nav-link:hover::after,
  .nav-link:focus::after,
  .nav-link:active::after {
    width: 100%;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    margin-left: 8px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

@media (min-width: 1008px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
  }
}
