:root {
  --bg: #f4f6f8;
  --fg: #232a35;
  --accent: #0269b5;
  --muted: #667684;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.6;
}

.site-header {
  background: linear-gradient(120deg, #dee90b, #26f806);
  color: white;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
}

.logo {
  height: 130px;
  width: auto;
  box-shadow: 0 0 20px white;
  margin-right: 2rem;
}

.text-section {
  display: flex;
  flex-direction: column;
}

.site-header h1 {
  font-size: 4rem;
  margin: 0;
}

.site-header p {
  font-size: 1.5rem;
  margin: 0.5rem 0 0 0;
}

.content {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

h1,
h2 {
  margin-top: 0;
}

h2 {
  font-size: 2.5rem;
}

ul {
  padding-left: 1.4rem;
}

button {
  margin-top: 1rem;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

.nav-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  background-color: var(--bg);
  border-bottom: 1px solid #dde3ea;
}

.nav-button {
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.nav-button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  color: var(--muted);
  border-top: 1px solid #f1f1f1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery-image:hover {
  transform: scale(1.05);
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--fg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.full-post {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.full-post h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--fg);
}

.post-meta {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.full-post p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--fg);
}

@media (max-width: 767px) {
  .site-header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .logo {
    height: 80px;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .text-section {
    align-items: center;
  }

  .site-header h1 {
    font-size: 2.5rem;
  }

  .site-header p {
    font-size: 1.2rem;
  }

  .nav-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }

  .content {
    padding: 0 1rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-image {
    height: 150px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
  }

  .gallery-image {
    height: 150px;
  }

  .full-post {
    padding: 1rem;
  }

  .full-post h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .content {
    padding: 0 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet styles */
  .site-header {
    padding: 2rem 2rem;
  }

  .logo {
    height: 100px;
  }

  .site-header h1 {
    font-size: 3rem;
  }

  .site-header p {
    font-size: 1.3rem;
  }

  .nav-bar {
    gap: 0.8rem;
  }

  .nav-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .content {
    max-width: 900px;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .gallery-image {
    height: 180px;
  }
}

@media (min-width: 1025px) {
  /* Large screen styles */
  .content {
    max-width: 1200px;
    padding: 0 4rem;
  }

  .site-header {
    padding: 4rem 3rem;
  }

  .logo {
    height: 150px;
  }

  .site-header h1 {
    font-size: 5rem;
  }

  .site-header p {
    font-size: 1.8rem;
  }

  .nav-bar {
    gap: 1.5rem;
  }

  .nav-button {
    padding: 0.7rem 1.2rem;
    font-size: 1.1rem;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
  }

  .news-image {
    height: 250px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .gallery-image {
    height: 220px;
  }

  .full-post {
    padding: 2.5rem;
  }

  .full-post h3 {
    font-size: 2.5rem;
  }
}
/* Drobne poprawki dla wąskich ekranów i formularza */
#formError { font-size: .9rem; color: #495664; margin: 0; }
.contact-form button:disabled { opacity: .55; cursor: not-allowed; }
.contact-privacy { font-size: .9rem; margin: 0; }
