* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --emerald-law: #013220; /* Oficjalna zieleń adwokacka */
  --gold-law: #c5a059; /* Złoty detal */
  --white: #ffffff;
  --off-white: #fcfcfc;
}

.main-header {
  background-color: var(--off-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky; /* Nagłówek będzie "jechał" za użytkownikiem */
  top: 0;
  z-index: 1000;
  min-height: 80px;
  align-items: center;
}

.container {
  max-width: 1600px;
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Rozpycha logo i menu na boki */
  align-items: center; /* Wyśrodkowuje w pionie */
  padding: 0 20px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px; /* Odstępy między linkami */
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 24px;
  transition: color 0.3s;
}
.logo-wrapper {
  display: flex;
  align-items: center; /* Wyśrodkowanie pionowe obrazka i tekstu */
  text-decoration: none;
  gap: 15px; /* Odstęp między obrazkiem a tekstem */
}

/* Kontener na tekst (dwie linie) */
.logo-text {
  display: flex;
  flex-direction: column; /* Ustawia linie jedna pod drugą */
  justify-content: center;
  padding-left: 15px;
}

/* Stylizacja pierwszej linii */
.line-1 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666; /* Delikatniejszy kolor dla opisu */
  font-weight: 400;
}

/* Stylizacja drugiej linii (główna nazwa) */
.line-2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--emerald-law); /* Twój Szmaragdowy kolor */
  line-height: 1.2;
  font-family: "Playfair Display", serif; /* Sugerowany elegancki font */
}

/* Responsywność - mniejszy tekst na telefonach */
@media (max-width: 480px) {
  .line-1 {
    font-size: 11px;
  }
  .line-2 {
    font-size: 16px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------------- Cookie Banner -----------------------------------------------------------------*/
.cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 20px;
  z-index: 9999;
  display: none; /* Ukryty domyślnie, JS go pokaże */
  font-family: sans-serif;
  border-top: 2px solid var(--gold-law); /* Elegancki złoty akcent dla kancelarii */
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-content a {
  color: var(--gold-law);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-accept {
  background: var(--gold-law);
  color: var(--off-white);
}
.btn-accept:hover {
  background: #a68648;
}

.btn-decline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid #444;
}
.btn-decline:hover {
  background: #333;
}

/* ---------------------------------------------------------------- OGÓLNE ------------------------------------------------------------------------- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
}
h2 {
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
main {
  width: 100%;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 80vh;
  background-color: var(--emerald-law);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--off-white);
  padding: 60px 20px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.hero-logo {
  width: 20rem;
  height: auto;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

/* --- lawyer SECTION (Szmaragdowa) --- */
.lawyers-section {
  background-color: var(--off-white);
  color: var(--off-white);
  padding: 80px 0;
}
.lawyer-cards {
  display: flex;
  width: 100%;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.lawyer-card {
  position: relative;
  width: 100%; /* Na małych ekranach zajmij całość */
  max-width: 500px; /* Ale nie bądź szerszy niż 500px */
  height: 600px; /* Możesz nieco zmniejszyć wysokość, 700px to bardzo dużo */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.lawyer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#lawyer .container {
  display: flex;
  flex-direction: column; /* Ustawia dzieci (H2 i karty) w pionie, jedno pod drugim */
  align-items: center; /* Środkuje nagłówek i grupę kart */
}

.lawyers-section h2 {
  width: 100%; /* Zapewnia, że tekst ma miejsce na całą szerokość */
  text-align: center;
  color: var(--emerald-law);
  font-size: 2.5rem;
  margin-bottom: 60px; /* Zwiększony odstęp od kart */
  position: relative;
  text-align: center;
}

.lawyer-cards {
  display: flex; /* Karty wewnątrz swojej grupy zostają obok siebie */
  flex-direction: row; /* To jest domyślne, ale warto sprawdzić */
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap; /* Na telefonach karty przeskoczą pod siebie */
}

/* Opcjonalnie: dodaj elegancką złotą linię pod napisem */
.lawyer-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold-law);
  margin: 15px auto 0;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--emerald-law) 30%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.card-overlay h3 {
  color: var(--gold-law);
  margin-bottom: 15px;
  font-size: 25px;
}
.card-overlay ul {
  list-style: none;
  padding: 0;
}
.card-overlay li {
  margin-bottom: 5px;
  font-size: 20px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding-bottom: 5px;
}
/*-----------services Section------*/
/* Kontener na usługi - ograniczenie szerokości i wyśrodkowanie */
.services-section {
  padding: 80px 20px;
  background-color: var(--emerald-law);
  display: flex;
  flex-direction: column;
  align-items: center; /* Środkuje nagłówek i akordeony */
}

.services-section h2 {
  color: var(--off-white);
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  text-align: center;
}

/* Nowy kontener na same akordeony */
.services-container {
  width: 100%;
  max-width: 900px; /* Optymalna szerokość do czytania tekstu */
  margin: 0 auto;
}

/* Stylizacja pojedynczego elementu akordeonu */
.accordion-item {
  border: none; /* Usuwamy ramkę na rzecz cienia lub koloru */
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-header {
  width: 100%;
  padding: 20px 30px;
  background: var(
    --off-white
  ); /* Zmiana na jasny dla kontrastu z tłem sekcji */
  color: var(--emerald-law); /* Napis w kolorze szmaragdowym */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  border-left: 5px solid var(--gold-law); /* Złoty akcent z boku */
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: var(--white);
  padding-left: 35px; /* Delikatny efekt wysunięcia */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out; /* Płynne przejście */
  background: #fdfdfd;
}

.accordion-content ul {
  padding: 25px 40px;
  list-style: none;
  margin: 0;
}

.accordion-content li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #444;
  position: relative;
  padding-left: 20px;
  font-size: 1.25rem;
}

.accordion-content li::before {
  content: "•";
  color: var(--gold-law);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.accordion-content li:last-child {
  border-bottom: none;
}

/* Ikona strzałki */
.arrow-icon {
  font-style: normal;
  transition: transform 0.3s ease;
  color: var(--gold-law);
}

.accordion-item.active .arrow-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 100px 20px;
  background-color: var(--white);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--emerald-law);
  position: relative;
  font-size: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Mapa nieco szersza od tekstu */
  gap: 60px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background-color: var(--emerald-law);
  color: var(--gold-law);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.contact-item h3 {
  font-family: "Playfair Display", serif;
  color: var(--emerald-law);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

/* --- NOWY UKŁAD KONTAKTU DLA ADWOKATÓW --- */
.person-contact {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  border-left: 3px solid var(--gold-law);
  transition: 0.3s ease;
  gap: 8px;
  width: 100%;
}

.person-phone {
  text-decoration: none;
  font-size: 1.4rem;
  color: var(--emerald-law);
}

.person-mail {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
}

.person-mail:hover {
  color: var(--gold-law);
}

.person-name {
  font-size: 0.95rem;
  color: #666;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.contact-map {
  border: 10px solid var(--off-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.contact-map iframe {
  display: block;
  filter: grayscale(
    0.2
  ); /* Lekko przygaszone kolory mapy pasują do elegancji */
  width: 100%;
  height: 100%;
}

/* Responsywność */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Jedna kolumna na tabletach/komórkach */
    gap: 40px;
  }

  .contact-map {
    height: 350px;
  }
}

/* --- FOOTER --- */
footer {
  background: #111;
  color: #999;
  padding: 40px 20px;
  text-align: center;
}
footer nav a {
  color: var(--gold-law);
  margin-left: 15px;
  text-decoration: none;
}

.contact-form {
  width: 100%;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  main {
    padding-top: 0px; /* Więcej miejsca na mobile, bo logo i menu są w kolumnie */
  }

  .container {
    flex-direction: column; /* Logo nad menu */
    gap: 15px;
    padding: 15px;
  }

  .main-nav ul {
    gap: 15px;
  }

  .main-nav a {
    font-size: 16px; /* Mniejsze napisy w menu na mobile */
  }

  .line-2 {
    font-size: 24px; /* Mniejsza nazwa kancelarii */
  }
  .accordion-header {
    font-size: 1.2rem;
  }
  .accordion-content li {
    font-size: 1rem;
  }
  .lawyers-section h2 {
    font-size: 1.5rem;
  }
  .services-section h2 {
    font-size: 1.5rem;
  }
  .contact-section h2 {
    font-size: 1.5rem;
  }
  .card-overlay h3 {
    font-size: 1.5rem;
  }
  .card-overlay li {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-section {
    min-height: 80vh; /* Na telefonie niech zajmie cały ekran po odjęciu navbara */
    padding-top: 10px;
    padding-bottom: 10px; /* Dodatkowa przestrzeń na dole na mobile */
  }

  .hero-logo {
    width: 12rem; /* Mniejsze logo na małych ekranach */
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
