* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-family: 'Playfair Display';
  font-size: 2rem;
  font-weight: 900;
  color: #2c3e50;
}

.nav-links a {
  font-family: 'Open Sans';
  font-size: 1rem;
  text-decoration: none;
  margin-left: 20px;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff6600;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero-info h1 {
  font-family: 'Playfair Display';
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: left;
  color: #2c3e50;
}

.hero-info p {
  font-family: 'Roboto';
  font-size: 0.9rem;
  text-align: justify;
  color: #515960;
}

.hero-button {
  align-self: flex-end;
  background-color: #ff6600;
  color: white;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  font-family: 'Playfair Display';
  font-size: 1.2rem;
  font-weight: 900;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.hero-button:hover {
  background-color: #ff3700;
  transform: translateY(-1px);
}

.data-section,
.history-section {
  width: 90%;
  padding: 2rem;
  background: #fff;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-section{
  font-family: 'Playfair Display';
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: left;
  color: #2c3e50;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.data-section-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  margin-bottom: 15px;
}

.data-section-header h2 {
  margin: 0; 
}

.history-btn {
  font-family: 'Open Sans';
  background-color: #f2f2f2;
  color: #727272;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.history-btn:hover {
  background-color: #e8e8e8;
}

.data-section h2 {
  font-family: 'Open Sans';
  font-size: 1.2rem;
  color: #2c3e50;
  padding-bottom: 0.5rem;
}

.data-section p {
  font-family: 'Roboto';
  font-size: 0.8rem;
  color: #727272;
  padding-top: 0.7rem;
}

.data-section table {
  font-family: 'Roboto';
  font-size: 1rem;
  color: #2c3e50;
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  table-layout: auto;
}

.data-section th {
  font-family: 'Roboto';
  font-size: 0.8rem;
  color: #2c3e50;
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

.data-section td {
  font-family: 'Roboto';
  font-size: 0.8rem;
  color: #535557;
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

.links {
  text-align: center;
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.links a {
  font-family: 'Open Sans';
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.links a:hover {
  background-color: #e65500;
}

.contact-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 400px;
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h1 {
  font-family: 'Playfair Display';
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.contact-info p,
.contact-info ul {
  font-family: 'Roboto';
  font-size: 0.95rem;
  color: #515960;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin-bottom: 0.5rem;
}

.contact-image {
  flex: 1 1 400px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #2c3e50;
  color: #fff;
  margin-top: 2rem;
}

#lista-plikow li {
  margin: 10px 40px;
  font-family: 'Roboto';
  font-size: 1rem;
  font-weight: 400;
  color: #535557;
}

#lista-plikow a {
  font-family: 'Open Sans';
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero-info h1 {
    font-size: 1.5rem;
  }

  .hero-info p {
    font-size: 0.9rem;
  }

  .hero-info {
    padding: 1.5rem;
  }

  .hero-button {
    padding: 0.4rem 0.9rem;
    font-size: 1rem;
  }

  .links a {
    font-size: 0.9rem;
    margin: 0.4rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero-info h1 {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .hero-info p {
    font-size: 0.8rem;
  }

  .hero-info {
    padding: 1rem;
  }

  .hero-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .links a {
    font-size: 0.8rem;
    margin: 0.3rem;
    padding: 0.5rem 0.9rem;
  }

  .history-section {
    font-size: 1rem;
  }
  .history-btn {
    font-size: 0.6rem;
    padding: 5px 10px;
  }
}
