* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: #000319;
}

html {
  scroll-padding-top: 8rem;
}

.nav {
  width: 100%;
  position: fixed;
  z-index: 100;
  background-color: rgba(0, 3, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
}

.nav-container {
  width: 100%;
  max-width: 1300px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.nav-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  z-index: 101;
}

.nav-links {
  display: none;
}

.nav-link {
  color: #e4ecff;
  text-decoration: none;
  font-size: 1.6rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 3rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: rgba(0, 3, 25, 0.98);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-link {
  font-size: 2.4rem;
  color: #fff;
  text-decoration: none;
}

/* Hamburger animation state */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-block: 8rem;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000319;
  opacity: 0.8;
  z-index: 1;
}

.hero-image {
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-text {
  max-width: 1300px;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 4rem;
}

.hero-button {
  padding: 2rem 2rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  color: #fff;
  background-color: #3d5fd0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* flex-direction: column; */
  text-align: center;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
}

.hero-icon {
  width: 2.4rem;
}

.hero-title {
  font-size: 4.8rem;
  color: #fff;
  text-align: center;
}

.hero-description {
  font-size: 1.6rem;
  color: #e4ecff;
  text-align: center;
  max-width: 1000px;
}

.hero-button-whatsapp {
  background-color: #25d366;
  width: 100%;
}

.hero-button-facebook {
  background-color: #0866ff;
  width: 100%;
}

.hero-button-download {
  width: 100%;
  background-color: #e5004d;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #fff;
}

.hero-scroll {
  position: absolute;
  text-decoration: none;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
}

.hero-indicator {
  width: 4rem;
}

.hero-scroll-text {
  font-size: 1.6rem;
}

.info-section {
  padding: 6rem 2rem;
  color: #f1f5f9;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.info-container {
  line-height: 1.8;
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.info-container h2 {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
}

.info-container p {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.info-container a,
.info-container p,
.info-container b,
.info-container strong,
.info-container li {
  font-size: 1.6rem;
}

.info-container ul {
  /* list-style: none; */
  padding-left: 2rem;
  margin-bottom: 2rem;
}



.info-container a {
  color: #3b82f6;
  text-decoration: none;
}

.info-container a:hover {
  text-decoration: underline;
}

.info-image {
  width: 100%;
  border-radius: 1rem;
}

.reasons {
  padding: 6rem 2rem;
  color: #f1f5f9;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.reasons-heading {
  font-size: 3.2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.reasons-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.reasons-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.reasons-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reasons-square {
  width: 4rem;
  height: 4rem;
  background-color: #3d5fd0;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
}

.reasons-name {
  font-size: 2.4rem;
  color: #fff;
  width: calc(100% - 5rem);
}

.reasons-list {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reasons-reason {
  font-size: 1.6rem;
  color: #e4ecff;
}

.reasons-button {
  padding: 2rem 2rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  width: fit-content;
  margin: 0 auto;
  background-color: #e5004d;
  margin-top: 2rem;
  transition: 0.2s ease-in-out;
}

/* .reasons-button:hover {
  background-color: #d3002b;
} */

.cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 6rem 2rem;
  color: #fff;
  background-color: #1c1c29;
  text-align: center;
}

.cta-heading {
  font-size: 3.2rem;
  color: #fff;
  text-align: center;
}

.cta-description {
  font-size: 1.6rem;
  color: #e4ecff;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
}

.info-text-block {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 2rem 2rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  width: fit-content;
  margin: 0 auto;
  background-color: #3d5fd0;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #fff;
}

.contact {
  padding-block: 6rem 2rem;
  padding-bottom: 6rem;
}

.contact-heading {
  font-size: 3.2rem;
  color: #fff;
  text-align: center;
}

.contact-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-block {
  padding: 2rem;
  border-radius: 1rem;
  background-color: #1c1c29;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.6rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.contact-name {
  font-size: 2.4rem;
  color: #fff;
  text-align: center;
}

.contact-description {
  font-size: 1.6rem;
  color: #e4ecff;
  text-align: center;
}

.contact-icon {
  width: 64px;
}

footer {
  background-color: #1c1c29;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  transition: 0.2s text-decoration ease-in-out;
}

.privacy .privacy-link {
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

footer a:hover {
  text-decoration: underline;
}

.privacy-container {
  max-width: 1300px;
  padding: 6rem 2rem;
  margin: 0 auto;
}

.privacy-container h2 {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.privacy-container h3 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 2rem;
  text-align: left;
}

.privacy-container p {
  font-size: 1.6rem;
  color: #e4ecff;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.privacy-container strong,
.privacy-container b {
  font-size: 1.6rem;
  color: #e4ecff;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.privacy-container a {
  color: #3b82f6;
  font-size: 1.6rem;
  text-decoration: none;
}

.privacy-container ul {
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.privacy-container li {
  font-size: 1.6rem;
  color: #e4ecff;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.faq {
  padding: 6rem 0;
  text-align: center;
}

.faq-heading {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 3rem;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 0 2rem;
}

.faq-item {
  width: 100%;
}

.faq-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1rem;
  text-align: left;
  width: 80%;
}

.faq-answer {
  font-size: 1.6rem;
  color: #e4ecff;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: left;
  display: none;
}

.faq-answer-active {
  display: block;
}

.faq-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.faq-text {
  font-size: 1.6rem;
  color: #e4ecff;
  text-align: left;
  display: none;
}

.faq-icon {
  width: 3.6rem;
  fill: #fff;
  color: #fff;
  transition: 0.2s ease-in-out;
}

.faq-icon-container-active .faq-icon {
  transform: rotate(45deg);
}

.how-to-vote {
  padding: 6rem 2rem;
  color: #f1f5f9;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.how-to-vote-heading {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.how-to-vote-description {
  font-size: 1.6rem;
  color: #e4ecff;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-inline: auto;
}

.how-to-vote-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.how-to-vote-img {
  width: 100%;
  border-radius: 1rem;
  max-width: 500px;
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 2rem;
  }

  .nav-links {
    display: flex;
    gap: 3rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .how-to-vote-heading {
    font-size: 4.8rem;
  }
  
  .how-to-vote-description {
    font-size: 1.8rem;
  }

  .how-to-vote-images {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
  }
  
  .how-to-vote-img {
    width: calc(50% - 2rem);
    /* max-width: none; */
  }

  .hero {
    padding-block: 16rem;
  }

  .hero-title {
    font-size: 7.2rem;
    max-width: 1000px;
    margin: 0 auto;
  }

  .hero-description {
    font-size: 2.4rem;
  }

  .hero-button {
    font-size: 1.8rem;
    flex-direction: row;
  }

  .hero-scroll-text {
    font-size: 1.8rem;
  }

  .hero-indicator {
    width: 5rem;
  }

  #informacje h2 {
    font-size: 4.8rem;
    text-align: left;
  }

  .info-container p,
  .info-container a,
  .info-container b,
  .info-container strong,
  .info-container li {
    font-size: 1.8rem;
  }

  .info-container {
    flex-direction: row;
    gap: 4rem;
  }

  .info-image {
    width: 50%;
    object-fit: contain;
    object-position: center;
  }

  .info-text {
    width: 50%;
  }

  .info-text-block {
    font-size: 1.8rem;
  }

  .cta-heading {
    font-size: 4.8rem;
  }

  .cta-description {
    font-size: 1.8rem;
  }

  .cta-button {
    font-size: 1.8rem;
    padding-inline: 4rem;
  }

  .contact-heading {
    font-size: 4.8rem;
  }

  .contact-name {
    font-size: 3.2rem;
  }

  .contact-description {
    font-size: 1.8rem;
  }

  .hero-button {
    width: calc(50% - 1rem);
  }

  footer a {
    font-size: 1.8rem;
  }

  .privacy-container h2 {
    font-size: 4.8rem;
  }

  .privacy-container h3 {
    font-size: 3.2rem;
  }
  .privacy-container p {
    font-size: 1.8rem;
  }
  .privacy-container strong,
  .privacy-container b {
    font-size: 1.8rem;
  }

  .privacy-container a {
    font-size: 1.8rem;
  }

  .privacy-container li {
    font-size: 1.8rem;
  }

  .privacy-link {
    font-size: 1.8rem;
  }

  .faq-heading {
    font-size: 4.8rem;
  }

  .faq-question {
    font-size: 2.4rem;
  }

  .faq-answer {
    font-size: 1.8rem;
  }

  .faq-text {
    font-size: 1.8rem;
  }

  .faq-icon-container .faq-text-expand {
    display: inline-block;
  } /* default: Rozwiń */
  .faq-icon-container .faq-text-collapse {
    display: none;
  } /* default: ukryj Zwiń */

  .faq-icon-container.faq-icon-container-active .faq-text-expand {
    display: none;
  } /* po otwarciu: ukryj Rozwiń */
  .faq-icon-container.faq-icon-container-active .faq-text-collapse {
    display: inline-block;
  } /* po otwarciu: pokaż Zwiń */

  .reasons-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .reasons-heading {
    font-size: 4.8rem;
  }

  .reasons-block {
    width: fit-content;
  }

  .reasons-square {
    font-size: 2.4rem;
    width: 5rem;
    height: 5rem;
  }

  .reasons-name {
    font-size: 3.2rem;
  }

  .reasons-reason {
    font-size: 1.8rem;
  }

  .reasons-items {
    gap: 4rem;
    justify-content: stretch;
  }

  .reasons-button {
    font-size: 1.8rem;
  }
}

/* Zmiany lokale wyborcze */

/* --- Sekcja z tabelą placówek --- */
.places-section {
  padding: 6rem 2rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  color: #f1f5f9;
}

.places-heading {
  font-size: 3.2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.places-description {
  font-size: 1.6rem;
  color: #e4ecff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Domyślny styl tabeli (Desktop) */
.places-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #10101a;
  border-radius: 1rem;
  overflow: hidden; /* Zaokrągla rogi tabeli */
}

.places-table th,
.places-table td {
  padding: 2rem;
  text-align: left;
  border-bottom: 1px solid #2d2d3f;
  font-size: 1.6rem;
  line-height: 1.5;
  vertical-align: top;
}

.places-table th {
  background-color: #1c1c29;
  color: #3d5fd0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Szerokości kolumn na desktopie */
.col-id {
  width: 8%;
  text-align: center;
}
.col-streets {
  width: 62%;
}
.col-address {
  width: 30%;
}

.places-table td:first-child {
  text-align: center;
  font-weight: bold;
  color: #3d5fd0;
  font-size: 1.8rem;
}

/* Zebra striping na desktopie */
@media (min-width: 769px) {
  .places-table tbody tr:nth-child(even) {
    background-color: #161622;
  }
}

/* Oznaczenie dostępności */
.access-badge {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 0.8rem;
  background-color: rgba(37, 211, 102, 0.15);
  color: #25d366;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0.6rem;
  border: 1px solid #25d366;
}

/* --- RESPANSYWNOŚĆ (Mobile Card View) --- */
@media (max-width: 768px) {
  /* Ukrywamy nagłówki tabeli, bo będziemy używać etykiet */
  .places-table thead {
    display: none;
  }

  /* Resetujemy zachowanie tabeli na blokowe */
  .places-table,
  .places-table tbody,
  .places-table tr,
  .places-table td {
    display: block;
    width: 100%;
  }

  /* Każdy wiersz staje się "kartą" */
  .places-table tr {
    margin-bottom: 2rem;
    background-color: #161622;
    border: 1px solid #2d2d3f;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  /* Stylizacja komórek wewnątrz karty */
  .places-table td {
    padding: 1rem 0;
    text-align: left; /* Resetujemy centrowanie ID */
    border-bottom: 1px solid #2d2d3f;
    position: relative;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .places-table td:last-child {
    border-bottom: none;
  }

  /* --- Dodawanie etykiet (Nagłówków) automatycznie przez CSS --- */

  /* 1. Komórka (Nr obwodu) */
  .places-table td:nth-of-type(1) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3d5fd0; /* Podkreślenie nagłówka karty */
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .places-table td:nth-of-type(1)::before {
    content: 'Obwód nr';
    font-weight: bold;
    color: #e4ecff;
    font-size: 1.4rem;
    text-transform: uppercase;
  }

  .places-table td:first-child {
    text-align: right; /* Numer po prawej */
    font-size: 2rem; /* Większy numer */
  }

  /* 2. Komórka (Ulice) */
  .places-table td:nth-of-type(2)::before {
    content: 'Granice obwodu (ulice):';
    font-weight: 700;
    color: #7878a3;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
  }

  /* 3. Komórka (Adres) */
  .places-table td:nth-of-type(3)::before {
    content: 'Siedziba komisji:';
    font-weight: 700;
    color: #7878a3;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
  }

  .places-table td:nth-of-type(3) {
    font-weight: 600;
    color: #fff;
  }
}

/* Poprawki dla dużych ekranów */
@media (min-width: 1024px) {
  .places-heading {
    font-size: 4.8rem;
  }
  .places-description {
    font-size: 1.8rem;
  }
}
