/* Import czcionki i ikon */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Barlow', sans-serif;
  line-height: 1.7;
  background-color: #fdfdfd;
  color: #222;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  background-color: #141a26;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #273346;
  color: #ffffff;
}

section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem);
  scroll-margin-top: 60px;
}

nav {
  position: fixed;
  top: 0;
  background: #141a26;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141a26;
  padding: 1rem clamp(1rem, 5vw, 2rem); /* Dostosuj do sekcji */
  position: relative;
  flex-wrap: nowrap;
  max-width: 1280px;
  margin: 0 auto; /* Wyśrodkowanie kontenera w nawigacji */
}

.nav-logo {
  position: absolute;
  left: clamp(1rem, 5vw, 2rem); /* identyczne odsunięcie jak padding */
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  color: #ffffff;
  text-decoration: none;
}

nav ul li a:hover {
  background-color: #ffffff;
  color: #273346;
  padding: 1rem 1rem;
}

/* Media query dla wersji mobilnej (np. max-width: 768px) */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  section {
    scroll-margin-top: 100px;
  }

  .nav-logo {
    position: relative;
    left: unset;
    margin-bottom: 1rem;
  }

  nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 1rem; /* możesz dać np. 1rem lub mniej, jeśli brakuje miejsca */
    min-width: 0;
    white-space: nowrap; /* zapewnia trzymanie linków w jednej linii */
  }

  nav ul li {
    flex-shrink: 0; /* nie pozwól im się ściskać */
  }
}

/* Hero sekcja */
.hero-bg {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  z-index: -1;
  object-position: 30% 50%;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Responsywność */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem; /* Zmniejszenie czcionki na urządzeniach mobilnych */
    padding: 1rem;
  }
}

/* Animacja fadeIn */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

h1 {
  font-family: 'Barlow', serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 5px 10px 10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}

.hero-text p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 3s ease-out 1s forwards;
}

/* Styl dla sekcji specjalizacji */
.specialization-list {
  list-style: none;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: justify;
}

.spec-content {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #222222;  /* Czarny tekst */
  transition: all 0.3s ease;
  min-height: 200px;  /* Gwarantowana minimalna wysokość */
}

/* Animacja dla kafelków */
.spec-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.spec-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #273346;
}

h2 {
  color: #273346;
  margin-bottom: 20px;
}

.spec-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7); /* Szary tekst */
}

/* Styl dla "Zobacz więcej" jako podkreślony tekst */
.toggle-text {
  color: #273346; /* Granatowy kolor */
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: underline;
  font-size: 0.9rem;
}

.toggle-text:hover {
  color: #1e293b; /* Jaśniejszy granatowy na hover */
}

/* Responsywność */
@media (max-width: 768px) {
  .specialization-list {
    grid-template-columns: 1fr;
  }
}

/* Zespół */
.team-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 32px;
}

.team-container img {
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}


.spec-content img {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: middle;
}


.team-text {
  text-align: justify;
}

@media (min-width: 768px) {
  .team-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .team-container img {
    max-width: 300px;
  }

  .team-text {
    padding-left: 2rem;
  }
}

/* Wartości */
.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: #141a26;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.value-card img {
  max-width: 80px;
  margin: 0 auto 1rem;
  transition: transform 0.4s ease;
}

.value-card:hover img {
  transform: translateY(-8px) scale(1.05);
}

.value-card h3,
.value-card p {
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: #ffffff;
}

.value-card:hover h3 {
  transform: translateY(-3px);
}

.value-card:hover p {
  transform: translateY(3px);
  opacity: 0.95;
}

/* Kontakt */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.contact-person {
  background: #ffffff;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  color: #273346;
  transition: transform 0.3s ease;
}

.contact-person:hover {
  transform: translateY(-4px);
}

.contact-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}

.contact-person h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #273346;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.contact-person p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.contact-person i {
  margin-right: 0.5rem;
  color: #273346;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #ffffff;
  padding: 2rem 1rem;
  background: #141a26;
  width: 100%;
}

/* Scroll-top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1e293b;
  padding: 0.6rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-top img {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(1);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.spec-content h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.law-art-line {
  display: flex;
  align-items: baseline;
  font-family: 'Barlow', sans-serif;
  font-weight: 100;
  gap: 0.5rem;
  white-space: nowrap;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  margin-top: 60px;
}

.law-art-label {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1.5em;
  text-transform: uppercase;
}

.law-art-loop {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 100;
  display: flex;
  align-items: baseline;
  height: 2em;
  overflow: hidden;
}

.low-art-sublabel {
  font-family: 'Barlow', sans-serif;
  left: 0;
  width: 100%;
  white-space: nowrap;
  font-size: 1.25rem;
  align-items: baseline;  
  text-overflow: ellipsis;
}


.loop-item {
  font-family: 'Barlow', sans-serif;
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

  .law-art-line-mobile {
  display: none;
  margin-top: 115px;
}

/* .law-art-label-mobile {
  display: none;
} */

/* Dla mniejszych ekranów zmniejszamy czcionkę */
@media (max-width: 768px) {
  .loop-item {
    font-size: 20px; /* zmniejszenie rozmiaru czcionki */
  }

  .law-art-line {
  display: none;
}

/* MOBILE ONLY */
.law-art-line-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

/* .law-art-label-mobile {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1.5em;

} */

.law-art-items-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.law-art-item-mobile {
  color: #222;
}

/* Show only on mobile */
@media (max-width: 767px) {
  .law-art-line-mobile {
    display: flex;
  }

  .law-art-line {
    display: none !important;
  }
}

.law-art-label {
  display: none;
}

}


.loop-item.active {
  opacity: 1;
  transform: translateY(0);
}

.loop-item.exit {
  opacity: 0;
  transform: translateY(-100%);
}

@media (max-width: 767px) {

  .law-art-line-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-family: 'Barlow', sans-serif;
    font-weight: 100;
  }

/*    .law-art-label-mobile {
    display: flex;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #273346;
    line-height: 1;
  }
*/
    .law-art-loop-mobile {
    font-size: 15px;
    font-weight: 100;
    line-height: 1.4;
    height: auto;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    position: relative;
    overflow: visible;
  }

  }

    .loop-item-mobile {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(100%);
  }

    .loop-item-mobile.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }

  .loop-item-mobile.exit {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.loop-item-mobile {
  display: none;
}

.loop-item-mobile.active {
  display: block;
}

.video-below-text {
  width: 100%;
  font-family: 'Barlow', serif;
  font-size: 1.5rem;
  text-align: center;
  color: #000;
  line-height: 1.6;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem);
  font-weight: 100;
  }

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: red;
  width: 0%;
  transition: width 0.1s ease-out;
}

@media (max-width: 420px) {
  nav ul {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}


/* Popup tło */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

/* Właściwy popup */
.popup-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  margin: 10% auto;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: #273346;
}

.popup-content p {
  text-align: justify;
}
/* Krzyżyk do zamknięcia */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #000;
}

footer {
  text-align: center;
  padding: 20px;
}

.privacy-link-container {
  margin-top: 8px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

