:root {
  --primary-green: #004225;
  --accent-gold: #d4af37;
  --background-light: #f4f4f4;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  margin-top: 0 !important;
  padding: 0;
  line-height: 1.6;
  background-color: var(--background-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 6rem 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-green);
  font-family: 'DM Serif Display', serif;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 48px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.hero--slider {
  position: relative;
  width: 100%;
  height: 85vh;
  padding: 0;
  margin: 0;
  max-height: 900px;
  overflow: hidden;
}

.hero-swiper,
.swiper-wrapper,
.swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.hero-overlay .container {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  width: 80%;
  padding: 2rem 0;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn--gold {
  background-color: var(--accent-gold);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn--gold:hover {
  color: #f1f1f1;
}

.swiper-button-prev,
.swiper-button-next {
  z-index: 15;
  pointer-events: auto;
  color: var(--white);
  width: 40px;
  height: 40px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 24px;
  font-weight: bold;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.about {
  background-color: #f5f5f5;
  padding: 80px 20px;
}

.about__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  justify-content: center;
}

.about__image {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.about__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.about__text {
  flex: 1 1 500px;
  max-width: 600px;
}

.section-title {
  font-size: 2.2rem;
  color: #004225;
  margin-bottom: 1em;
  border-left: 5px solid var(--accent-gold);
  padding-left: 15px;
}

.about__content {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.specializations {
  background: var(--white);
  padding: 80px 20px;
}

.section-title.center {
  text-align: center;
  color: var(--primary-green);
  font-size: 2.4rem;
  margin-bottom: 50px;
  border-left: none;
  padding-left: 0;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.specialization-box {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 2em;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.specialization-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.specialization-box .icon img {
  width: 50px;
  height: auto;
  margin-bottom: 1em;
}

.specialization-box h3 {
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 0.5em;
}

.specialization-box p {
  font-size: 1rem;
  color: #333;
}

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  width: 100%;
}

#menu-menu-glowne #menu-item-83 a {
  background-color: var(--accent-gold);
  border-radius: 20px;
  font-weight: 900;
  padding: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}

.menu-icon {
  display: block;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  text-decoration: none;
  color: var(--primary-green);
}

.site-footer {
  background: #f1f1f1;
  color: var(--primary-green);
  padding: 2em 0;
  text-align: center;
}

.site-footer a {
  color: var(--primary-green);
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-bottom: 2em;
}

.footer-column {
  min-width: 180px;
}

.footer-logo img {
  max-height: 80px;
  margin: 1rem auto;
}

.page-content {
  padding: 4em 2em;
  background: #ffffff;
}

.page-title {
  font-size: 2.2em;
  margin-bottom: 1em;
  color: var(--primary-green);
  text-align: center;
}

.page-body {
  line-height: 1.8;
  font-size: 1.1em;
}

.category-description {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}


.blog-list {
  padding: 4em 2em;
  background: #f9f9f9;
}

.blog-list h1 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 2em;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.blog-category-link {
  padding: 0.5rem 1rem;
  background-color: #f2f2f2;
  color: #123c2b;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.blog-category-link:hover {
  background-color: var(--accent-gold);
  color: white;
}

.blog-list .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.posts-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.post-box {
  display: flex;
  height: 100%;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.post-box-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.post-box-inner p {
  flex-grow: 1;
}

.post-box-inner small {
  padding-bottom: 0.5rem;
}

.post-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}


.single-post {
  background: #ffffff;
  min-height: 150vh;
}

.single-post .container {
  padding-top: 2em;
}

.single-title {
  font-size: 2.4em;
  color: var(--primary-green);
  margin-bottom: 0.2em;
}

.single-meta {
  display: block;
  font-size: 0.9em;
  margin-bottom: 2em;
  color: #555;
}

.single-content {
  line-height: 1.8;
  font-size: 1.1em;
}

.single-content p {
  padding-bottom: 2rem;
}

.latest-posts {
  background: var(--background-light);
  text-align: center;
}

.latest-posts .section-title {
  font-size: 2.2em;
  color: var(--primary-green);
  margin-bottom: 1em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.home-post-box {
  display: block;
  position: relative;
  min-height: 100%;
}

.home-post-box .read-more {
  display: inline-block;
  margin-top: 1rem;
  position: static;
}

.post-box {
  background: #fdfdfd;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.post-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-box h3 {
  font-size: 1.3em;
  color: var(--primary-green);
  margin-bottom: 0.5em;
}

.post-box h3 a {
  text-decoration: none;
  color: inherit;
}

.post-box p {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 1em;
}

.read-more {
  color: var(--accent-gold);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95em;
}

.read-more:hover {
  text-decoration: underline;
}

.specializations {
  background-color: var(--background-light);
  padding: 2em 0;
  text-align: center;
}

.specializations .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.4em;
  margin-bottom: 2em;
  color: var(--primary-green);
}

.usp-section {
  background-color: #f5f5f5;
  padding: 4em 2em;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.usp-box {
  border-top: 4px solid var(--accent-gold);
  border-radius: 8px;
  background: var(--white);
  padding: 2em;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usp-box i {
  font-size: 2.5em;
  color: var(--primary-green);
  margin-bottom: 1em;
}

.usp-box h3 {
  margin-bottom: 0.5em;
  color: var(--primary-green);
}

.usp-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.kontakt {
  padding: 2rem 0;
}

.kontakt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.kontakt-box,
.kontakt-dokumenty {
  flex: 1 1 300px;
}

.kontakt-box h2,
.kontakt-dokumenty h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #cbb26a;
  padding-bottom: 0.3rem;
}

.kontakt-pozycja {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.kontakt-box a {
  color: var(--primary-green);
  text-decoration: underline;
}

.subtitle-pozycja {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-green);
}

.kontakt-dokument {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.kontakt-dokument img {
  width: 20px;
  height: 20px;
  margin-right: 0.6rem;
}

.pliki-lista {
  list-style: none;
  padding: 0;
}

.pliki-lista li {
  margin-bottom: 0.75rem;
}

.pliki-lista a {
  display: inline-flex;
  text-decoration: none;
  color: var(--primary-green);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border 0.3s;
}

.pliki-lista a:hover {
  border-color: var(--primary-green);
}

.ikona-word {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.post-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.single-post-thumbnail img {
  width: 50%;
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.support-popup {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--white);
  border: 2px solid var(--primary-green);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #004225;
  z-index: 999;
  max-width: 280px;
  font-size: 0.95rem;
  animation: slideInUp 0.6s ease-out;
}

.support-popup p {
  margin-bottom: 10px;
}

.support-button {
  background-color: var(--accent-gold);
  color: var(--primary-green);
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.support-button:hover {
  color: var(--white);
}

.support-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary-green);
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    width: 100%;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .nav-list li a {
    text-decoration: none;
    color: var(--primary-green);
  }

  .about__text {
    flex: 0;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .specializations .container {
    width: 85%;
  }

  .site-header .logo {
    max-width: 60%;
  }

  .footer-logo {
    width: 85%;
    margin: 0 auto;
  }

  .kontakt-box {
    width: 100%;
    justify-content: center;
  }

  .kontakt-row {
    flex-direction: column;
  }

  .hero--slider {
  height: 60vh;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn--gold {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  
  #menu-menu-glowne #menu-item-83 {
    margin-top: 0.7rem;
  }

  .hero--slider {
    height: 70vh;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn--gold {
    font-size: 1rem;
    padding: 10px 24px;
  }

  .single-post-thumbnail img {
  width: 100%;
  }
}

@media (max-width: 480px) {
  .hero--slider {
    height: 60vh;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .btn--gold {
    width: 100%;
    box-sizing: border-box;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
