@import url('variables.css');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Mtg1";
  src: url("/static/fonts/ConthraxSb-Regular/conthrax-sb.ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Mtg2";
  src: url("/static/fonts/ubuntu/Ubuntu-R.ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "MtgBold";
  src: url("/static/fonts/ubuntu/Ubuntu-B.ttf");
  font-weight: 400;
  font-style: normal;
}


body {
  font-family: "Mtg2", Arial, sans-serif;
}

.cms-strong {
  font-family: "MtgBold", Arial, sans-serif;
  letter-spacing: 0.3px;
}

.text-brand {
    color: #990000;
    font-family: "Mtg1", Arial, sans-serif;
}

.main-shadow {
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px!important;
}

.mbc-text {
  margin-bottom: 20px;
  text-align: center;
}

.mr-20 {
  margin-right: 20px;
}

.mt-20 {
  margin-top: 20px !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 5000;         /* było 1000 — BELKA ponad overlay menu */
}


.navbar-container {
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;              /* flexbox */
  align-items: center;        /* wyśrodkowanie w pionie */
  gap: 40px;                  /* równy odstęp zamiast margin-left */
  margin-right: 0;            /* usuwamy margin-right */
}

.nav-links a {
  position: relative;
  font-family: "Mtg2", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  text-decoration: none;
  color: #090A27;
  transition: color 0.3s;
}


.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px; /* odstęp linii od tekstu */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #990000; /* kolor brandu */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Dropdown w navbarze */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  border: 0;
  padding: 5px;
  border-radius: 10px;
}



/* Reset dla dropdowna */
.dropdown-menu a {
  display: block;                   /* pełna szerokość */
  width: 100%;
  padding: 15px 0 20px;                  /* pionowy odstęp */
  margin: 10px 0 10px;
  color: #090A27;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;               /* tekst centralnie */
  white-space: nowrap;              /* brak łamania */
  box-sizing: border-box;
}
/* Styl dropdowna */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 6px;
  flex-direction: column;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 1s; /* opóźnienie ukrycia */
}

#lang-switch-desktop .dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  width: auto;
  min-width: 100px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  z-index: 5002;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* natychmiast pokazuje */
}


/* Pokazanie menu na hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}


/* ===== MOBILE NAVBAR ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5000; /* ponad menu */
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #090A27;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== MOBILE NAVBAR ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001; /* zawsze nad menu */
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #990000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animacja hamburgera w X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 100%; /* startowo poza ekranem */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: left 0.4s ease;
    z-index: 2000;
  }

  .nav-links.active {
    left: 0; /* wysuwa się */
  }

  .nav-links.active a {
  opacity: 1;
  transform: translateY(0);
}

  .nav-links a {
    font-family: "Mtg2", Arial, sans-serif;
    font-size: 1.2rem;
    color: #090A27;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links a:hover {
    color: #990000;
  }

.nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
.nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
.nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
.nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
.nav-links.active a:nth-child(6) { transition-delay: 0.6s; }

  /* Dropdown w mobilnym */
  .dropdown-menu {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  border-radius: 6px;
  margin-top: 10px;
  display: none; /* ukryte */
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: fadeDropdown 0.3s ease forwards;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

  .dropdown-menu a {
    font-size: 1.2rem;
    color: #ddd;
  }

  @keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .hero-slide-text {
    padding: 0 5px;
    width: 90%;
}
.hero .hero-slide-text h2 {
    font-size: 2rem!important;
}
.hero .hero-slide-text h1 {
    font-size: 1rem;
}
.hero .hero-slide-text p {
    font-size: 1rem;
}
}

/* Domyślnie desktop */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Mobile – ukrywamy dropdown i pokazujemy zwykłe linki */
@media (max-width: 992px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; flex-direction: column; gap: 15px; }

  .mobile-only a {
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .mobile-only a:hover {
    color: #b00;
  }
}

/* Mobile menu - jednolity wygląd linków */
@media (max-width: 992px) {
  .nav-links a {
    font-size: 1.2rem !important;   /* większa czcionka */
    text-transform: uppercase;      /* wszystkie wielkie litery */
    letter-spacing: 2px;
    display: block;
    padding: 12px 0;
    text-align: center;
    color: #090A27;
  }
}

/* Hero */
.hero {
  margin-top: 80px;
  font-family: "Mtg1", Arial, sans-serif;
  height: 84vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: white;

  opacity: 0;
  filter: blur(2px);
  animation: bgFadeIn 2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Gradient overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #090A27;
background: linear-gradient(127deg, rgba(9, 10, 39, 0.5) 0%, rgba(6, 7, 27, 0.6) 50%);
  z-index: 1;
}

/* Pulsujące koło */
.pulse-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.pulse-circle.animate {
  animation: circleFade 3s ease-out forwards;
}

@keyframes circleFade {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
  }
}

/* Hero slider - tła */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, filter 2s ease-in-out;
  filter: blur(3px);
  z-index: 0;
  overflow: hidden;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 3s ease-in-out;
  z-index: 1;
}

.hero-slide.active::after {
  opacity: 0;
}


.hero-slide.active {
  opacity: 1;
  filter: blur(0);
}

/* Teksty hero */
.hero-texts {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  width: 100%;
}

.hero-slide-text {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
  transform: translateY(30px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
}
.hero-slide-text h1 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-slide-text h2 {
    color: #ffffff;
    font-size: 5rem;
    margin-bottom: 3rem;
}
.hero-slide-text h2 span {
    letter-spacing: 12px;
}
.hero-line {
  display: block;
  width: 80%;
  margin: 0 auto 15px;
  height: 3px;
  background-color: #990000; /* kolor brandu */
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
}
.hero-slide-text.active .hero-line {
  animation: lineExpand 3s ease-out forwards;
  animation-delay: 2s; /* po H1 i H2 */
}
@keyframes lineExpand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-slide-text p {
    color: #fff;
    font-size: 1.5rem ;
    margin-bottom: 8rem;
    letter-spacing: 1.5px;
}

.hero-slide-text a {
  padding: 18px 36px;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 20px;
  border: 0.5px solid #ffffff6c;
  transition: background 0.3s;
}


.hero-slide-text.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* Animacje tekstów (działają przy każdym przełączeniu slajdu) */
/* Reset startowy */
.hero-slide-text h1,
.hero-slide-text h2,
.hero-slide-text p,
.hero-slide-text a {
  opacity: 0;
  transform: translateY(60px);
}

/* Animacje przy active */
.hero-slide-text.active h1 {
  animation: fadeSlideUp 2s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-slide-text.active h2 {
  animation: fadeSlideUp 2s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-slide-text.active p {
  animation: fadeSlideUp 2s ease-out forwards;
  animation-delay: 1.3s;
}

.hero-slide-text.active a {
  animation: fadeSlideUp 2s ease-out forwards;
  animation-delay: 3s;
}

/* Keyframes */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Sekcja O nas */
.about {
  padding: 80px 0;
  background: #fff;
  color: #090A27;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.about-text,
.about-image {
  flex: 1;
}

.about-text h2 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #990000;
}

.about-text h3 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin:10px 0 20px;
  color: #990000;
}

.about-text .text-line {
    display: block;
    width: 90%;
    height: 1px;
    margin: 0 auto;
    background-color: #090a27;
}
.about-text p {
  font-family: "Mtg2", Arial, sans-serif;
  color: #090A27;
  font-size: 1rem;
  line-height: 2rem;
  margin-bottom: 15px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  display: block;
}

.about-image .img-small {
    max-width: 100%;
    height: auto;
}

/* Boksy w prawej kolumnie */
.about-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.about-box {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  text-align: center;
}

.about-box h4 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #990000;
}

.about-box p {
  font-family: "Mtg2", Arial, sans-serif;
  font-size: 0.9rem;
  color: #090A27;
  line-height: 1.5;
}

/* Desktop – boksy obok siebie */
@media (min-width: 992px) {
  .about-boxes {
    flex-direction: row;       /* obok siebie */
    justify-content: space-between;
  }

  .about-box {
    flex: 1;
  }
}


/* Sekcja zalet */
.features {
  padding: 80px 20px;
  background: #f8f8f8;
}

.features-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Karta aside */
.card-aside {
  display: flex;
  flex-direction: row; /* obrazek po lewej, tekst po prawej */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-aside:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.card-image {
  flex: 0 0 100px; /* szerokość kolumny z obrazkiem */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-body h3 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #990000;
}

.card-body p {
  font-family: "Mtg2", Arial, sans-serif;
  font-size: 0.8rem;
  color: #090a27;
  line-height: 1.5;
}





/* Responsywność */
@media (min-width: 992px) {
  .features-container {
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny obok siebie */
  }
}


/* Sekcja projektów */
.projects {
  padding: 80px 20px;
  background: #fff;
  color: #333;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.projects-container h2 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #990000;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  text-align: left;
}

.project-content h3 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #990000;
}

.project-content p {
  font-family: "Mtg2", Arial, sans-serif;
  font-size: 0.9rem;
  color: #090A27;
  line-height: 1.5;
}

.latest-news {
  padding: 40px 20px;
  
}

.latest-news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-news h2 {
  color: #990000;
  font-family: "Mtg1", Arial, sans-serif;
  margin-bottom: 10px;
  text-align: center;
}

.latest-news-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  max-width: 1000px;
  margin: 0 auto;
}

.latest-news-card img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
}

.latest-news-content {
  padding: 20px;
  flex: 1;
}

.latest-news-content h3 {
  font-family: "Mtg1", Arial, sans-serif;
  margin-top: 0;
  font-size: 1rem;
  text-align: center;
}

.latest-news-content p {
  font-size: 0.8rem;
  margin: 10px 0;
}

.btn-readmore {
  display: inline-block;
  margin-top: 10px;
  margin-left: 40%;
  padding: 8px 16px;
  background: #990000;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-readmore:hover {
  background: #900;
  padding: 10px 18px;
}

.news-next,
.news-prev {
  color: #990000;
}

.news-pagination {
  bottom: 0;
}


/* Responsywność */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}




/* Footer */
/* Footer */
.footer {
  position: relative;
  background: url("/static/img/footer-bg.jpg") no-repeat center center/cover;
  color: #ffffff;
  padding: 60px 20px 20px;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090A27;
background: linear-gradient(127deg, rgba(9, 10, 39, 0.6) 0%, rgba(6, 7, 27, 0.7) 50%);
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

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

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer h3 {
  font-family: "Mtg1", Arial, sans-serif;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #fff;
}

.footer p, 
.footer ul, 
.footer li {
  font-family: "Mtg2", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 2rem;
  margin: 0;
  list-style: none;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  margin-left: 10px;
}

.footer-socials i {
  color: #fff;
  font-size: 34px;
  transition: transform 0.3s ease;
}

.footer-socials i:hover {
  transform: scale(1.2);
}

.footer-socials img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-socials img:hover {
  transform: scale(1.2);
}

/* Dolna belka */
.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  color: #ddd;
}

.footer-hours li:last-child {
  border-bottom: none;
}

.footer-hours .day-label {
  font-weight: 600;
}

.footer-hours .day-hours {
  font-weight: 400;
  color: #fff;
}

/* Wyróżnienie dzisiejszego dnia */
.footer-hours li.today {
  background-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.footer-hours li.today .day-label {
  color: #990000;
  font-weight: 600;
}


/* Sekcja multimediów */
.media-videos, .media-carousel, .media-gallery {
  margin-bottom: 60px;
  text-align: center;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.media-caption {
  font-size: 1rem;
  color: #fff;
  margin-top: 10px;
  font-family: "Mtg1", Arial, sans-serif;
}

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

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.no-media {
  color: #aaa;
  font-style: italic;
  margin-top: 20px;
}

.admin-media-thumb {
  max-width: 100px;
  max-height: 80px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.admin-media-thumb:hover {
  transform: scale(1.05);
}

.media-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
}

.video-link {
  display: inline-block;
  color: #a00;
  text-decoration: none;
  font-weight: 500;
}

.video-link:hover {
  text-decoration: underline;
}

.media-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.media-card {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  
}

.media-card img,
.media-card iframe {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.media-card p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
  word-break: break-word;
}

.btn-delete {
  background: #b71c1c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-delete:hover {
  background: #a11313;
}




/* Responsywność */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* zmiana na pionowy układ */
  }

  .about-text {
    margin-bottom: 30px;
  }

  .about-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about-text p {
    font-size: 1rem;
  }
  .latest-news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .latest-news-card img {
    width: 100%;
    height: 220px;
    border-radius: 10px 10px 0 0;
  }

  .latest-news-content {
    padding: 15px;
  }
  .btn-readmore {
    margin-left: auto;
  }

}


/* Hero mniejszy (dla podstron) */
.hero-small {
  margin-top: 80px;
  position: relative;
  width: 100%;
  height: 450px; /* domyślnie desktop */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.hero-small .hero-overlay {
  position: absolute;
  inset: 0;
  background: #090A27;
background: linear-gradient(127deg, rgba(9, 10, 39, 0.6) 0%, rgba(6, 7, 27, 0.7) 50%);
}

.hero-small .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-small h1 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 2.5rem;
  margin: 0;
}

/* Mobile wysokość */
@media (max-width: 768px) {
  .hero-small {
    height: 420px;
  }
  .hero-small h1 {
    font-size: 2rem;
  }
}


/* Multimedia sekcja */
.media-videos, .media-gallery {
  margin: 60px 0;
}

.media-videos h2, .media-gallery h2 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: #990000;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.media-item iframe, 
.media-item blockquote {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Wrapper dla responsywnego video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* proporcje 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px; /* opcjonalnie zaokrąglenia rogów */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Galeria zdjęć */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* domyślnie 2 kolumny */
  gap: 10px;
  padding: 40px 20px;
  background: #f8f8f8;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* Na większych ekranach — więcej kolumn */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Lightbox container */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* Lightbox image */
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}

.lightbox-img.fade-out {
  opacity: 0.5;
  transform: translateX(-20px);
}

.lightbox-img.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #990000;
}

/* Navigation arrows */
.lightbox-nav .prev,
.lightbox-nav .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox-nav .prev { left: 20px; }
.lightbox-nav .next { right: 20px; }

.lightbox-nav .prev:hover,
.lightbox-nav .next:hover {
  color: #990000;
}

/* Animacja fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.media-carousel {
  margin: 60px 0;
  text-align: center;
}

.media-carousel h2 {
  font-family: "Mtg1", Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #990000;
}

.mySwiper {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Strzałki Swipera */
.swiper-button-next,
.swiper-button-prev {
  color: #990000 !important;  /* nadpisanie domyślnego */
  transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #ff1a1a !important;
}

/* Kropki Swipera */
.swiper-pagination-bullet {
  background: #666 !important;   /* szare w stanie normalnym */
  opacity: 0.7 !important;
  transition: background 0.3s, transform 0.3s;
}

.swiper-pagination-bullet-active {
  background: #990000 !important;  /* aktywna na czerwono */
  transform: scale(1.2) !important;
  opacity: 1 !important;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
}

.news-body h2 {
    margin-bottom: 20px;
    text-align: center;
}

.news-body a {
    color: #990000;
}
.news-body .btn {
    margin-left: 50%;
    background: #f8f8f8;
    border: 1px solid #990000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card {
  display: flex;
  flex-direction: column; /* domyślnie pionowo (mobile) */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  transition: transform 0.3s;
  margin-bottom: 20px;
}

.news-card:hover {
  transform: translateY(-5px);
}


.news-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;   /* skalowanie bez rozciągania */
}

.news-body {
  flex: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-body h2 a {
  font-family: "Mtg1", Arial, sans-serif;
  text-decoration: none;
  text-align: center;
  margin: 0 auto;
  font-size: 1.4rem;
  color: #990000;
}

.news-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 15px 0;
}


.news-body time {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.news-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.news-detail {
    padding-bottom: 30px;
}
.news-detail img {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
}
.news-detail .content {
    padding-bottom: 60px;
}


.news-detail .btn {
    position: relative;
    bottom: -30px;
    margin-left: 40%;
    background: #f8f8f8;
    border: 1px solid #990000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Na desktopie: obrazek po lewej, treść po prawej */
@media (min-width: 768px) {
  .news-card {
    flex-direction: row;
    min-height: 250px;
  }

  .news-image {
    flex: 1 1 40%;
    max-height: 300px;
  }

  .news-image img {
    height: 100%;
    object-fit: cover;
  }

  .news-body {
    flex: 1 1 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ===== Pojedynczy wpis aktualności ===== */
.news-detail {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.news-detail time {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
  text-align: right;
}

.news-detail h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #090A27;
  border-bottom: 3px solid #990000;
  display: inline-block;
  padding-bottom: 5px;
}

.news-detail .content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.news-detail .content p {
  margin-bottom: 20px;
}

.news-detail .content h2,
.news-detail .content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #090A27;
}

.news-detail .content a {
  color: #990000;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.news-detail .content a:hover {
  color: #cc0000;
  text-decoration: none;
}

.news-detail time {
    padding: 10px;
}
.news-detail img {
  max-width: 100%;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-dashboard {
  max-width: 1200px;
  margin: 120px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  text-align: center;
}

.admin-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.admin-subtitle {
  font-family: "Mtg2", Arial, sans-serif;
  color: #666;
  margin-bottom: 40px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px 20px;
  text-decoration: none;
  color: #090A27;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.admin-card:hover {
  transform: translateY(-5px);
  border-color: #990000;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.admin-card i {
  font-size: 2rem;
  color: #990000;
  margin-bottom: 15px;
}

.admin-card h3 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.admin-card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.admin-stats {
  margin-top: 60px;
  text-align: left;
}

.admin-stats h2 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 25px;
  text-align: center;
}

.stats-reset-form {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.stats-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.summary-item {
  background: #f8f8f8;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}

.summary-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #990000;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.stats-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stats-card h3 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

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

.stats-table tr:nth-child(even) td {
  background: rgba(153, 0, 0, 0.04);
}

.stats-empty {
  color: #666;
  font-style: italic;
  margin: 0;
}

.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 80px 20px;
}

.login-card {
  background: #ffffff;
  padding: 40px 60px;
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-card h1 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #990000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.12);
}

.btn-admin-primary {
  background: #990000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: "Mtg1", Arial, sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-admin-primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.login-flash {
  margin-top: 20px;
  font-weight: 600;
}

.login-flash.error {
  color: #c62828;
}

.login-flash.success {
  color: #2e7d32;
}

.login-description {
  margin: 0 0 20px;
  color: #555;
  font-size: 0.95rem;
}

.login-links {
  margin-top: 18px;
}

.login-links a {
  color: #990000;
  font-weight: 600;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .login-card {
    padding: 30px 25px;
  }

  .login-card h1 {
    font-size: 1.5rem;
  }
}

.admin-footer {
  margin-top: 40px;
}

/* --- Pasek powrotny w panelu admina --- */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 20px 40px;
  margin-top: 90px;
  border-bottom: 2px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar h1 {
  font-size: 1.4rem;
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin: 0;
}

.admin-topbar .back-link {
  font-family: "Mtg2", Arial, sans-serif;
  color: #990000;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.admin-topbar .back-link:hover {
  color: #700000;
  transform: translateX(-3px);
}

.admin-topbar .back-link i {
  margin-right: 8px;
}

.section-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.opening-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.opening-hours-row {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.opening-hours-row:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.opening-hours-row label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #990000;
}

.opening-hours-row input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.2s ease;
}

.opening-hours-row input[type="text"]:focus {
  border-color: #990000;
  outline: none;
}



.opening-hours-box {
  background: #f8f8f8;
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  max-width: 350px;
}

.contact-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.contact-hours td {
  padding: 6px 8px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-hours tr:last-child td {
  border-bottom: none;
}

.day-name {
  font-weight: 600;
  text-align: left;
  width: 45%;
  color: #990000;
}

.day-hours {
  text-align: right;
  width: 55%;
  color: #333;
}

.contact-hours .today .day-name {
  color: #fff;
  background-color: #990000;
  border-radius: 6px;
  padding: 5px 8px;
}

.contact-hours .today .day-hours {
  font-weight: 600;
}



.btn-logout {
  display: inline-block;
  background: #990000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Mtg1", Arial, sans-serif;
}

.btn-logout:hover {
  background: #700000;
  transform: translateY(-3px);
}


.admin-dash {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-top: 100px;
    min-height: 50vh;
}

.admin-dash form {
  width: 100%;
}

.admin-dash h1 {
    margin-bottom: 30px;
    text-align: center;
}

.admin-dash ul li {
    list-style: none;
    margin: 10px;
}

.admin-dash a {
    text-decoration: none;
    color: #fff;
}


.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
}

.btn-primary {
    color: #990000;
    font-family: "Mtg1", Arial, sans-serif;
}

.btn-admin {
  align-items: center;
  margin: 10px;
  width: auto;
  padding: 10px 20px;
  border-radius: 20px;
  background-color: #990000;
  color: #fff !important;
  font-family: "Mtg1", Arial, sans-serif;
  transition: transform 0.3s ease;
}

.btn-admin:hover {
  transform: scale(1.2);
  color: #fff;
}

.admin-table a {
    color: #990000;
}

.admin-table th, .admin-table td {
  
  border: 1px solid #ddd;
  padding: 10px;
}

.admin-table th {
  background: #f8f8f8;
  text-align: left;
  font-family: "Mtg1", Arial, sans-serif;
}

/* --- Sekcja listy projektów --- */
.admin-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.admin-header {
  background: #fff;
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  margin-bottom: 30px;
}

.admin-header p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

.admin-header .admin-note {
  color: #666;
  font-size: 0.9rem;
  margin-top: 4px;
}

.btn-add {
  display: inline-block;
  background-color: #990000;
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: 15px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-add:hover {
  background-color: #b30000;
  transform: scale(1.03);
}

/* --- Tabela projektów --- */
.table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.admin-table.enhanced {
  width: 100%;
  border-collapse: collapse;
  font-family: "Mtg2", Arial, sans-serif;
}

.admin-table.enhanced th {
  background-color: #f8f8f8;
  color: #990000;
  font-weight: 700;
  text-align: left;
  padding: 14px;
  border-bottom: 2px solid #ddd;
}

.admin-table.enhanced td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.admin-table.enhanced tr:hover {
  background-color: #fdf6f6;
}

/* --- Miniatury i statusy --- */
.table-thumb {
  height: 60px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-image {
  color: #aaa;
  font-style: italic;
}

/* --- Akcje --- */
.actions {
  display: flex;
  gap: 10px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}

.actions .btn-edit {
  background: #f3f3f3;
  color: #444;
}

.actions .btn-edit:hover {
  background: #e9e9e9;
  color: #990000;
}

.actions .btn-delete {
  background: #fff2f2;
  color: #990000;
}

.actions .btn-delete:hover {
  background: #ffe0e0;
  color: #700000;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.inline-form button {
  font-family: inherit;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9,10,39,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 18px;
  text-align: center;
}

.modal-box h3 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 10px;
}

.modal-box p {
  color: #333;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: "Mtg1", Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-actions .confirm {
  background: #990000;
  color: #fff;
}

.modal-actions .confirm:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.modal-actions .cancel {
  background: #f3f3f3;
  color: #333;
}

.modal-actions .cancel:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}


form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

form input[type="text"], form textarea {
  width: auto;
  padding: 8px;
  margin-top: 5px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}


.admin-dash form input[type="email"] {
  width: 60%;
  padding: 8px;
  margin-top: 5px;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

form button {
  margin-top: 20px;
}

.form-group {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.form-group h2 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 25px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 6px;
  font-size: 1.3rem;
}
.admin-form-section {
  margin-top: 200px;
}

.form input [type="password"] {
  width: auto;
  padding: 8px;
  margin-top: 5px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

.admin-form-header {
  text-align: center;
  margin-bottom: 20px;
}

/* ✅ Siatka języków — 3 równe kolumny, responsywne */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  align-items: start;
  margin-bottom: 10px;
}

.form-grid > div {
  background: #fff;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ✅ Teksty i pola */
.form-group label {
  font-weight: bold;
  color: #222;
  margin-bottom: 6px;
  text-align: left;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: "Mtg2", Arial, sans-serif;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: #990000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(153,0,0,0.15);
}

/* ✅ Tekst w textarea */
textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.6;
  overflow: auto;
}

.wysiwyg-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn-wysiwyg {
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-family: "Mtg2", Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-wysiwyg:hover,
.btn-wysiwyg:focus {
  background: #990000;
  border-color: #990000;
  color: #fff;
  outline: none;
}

.btn-wysiwyg:active {
  transform: translateY(1px);
}

/* ✅ Zapobiega ściskaniu / nakładaniu */
.form-grid > div {
  align-self: start;
}




.hero,
.hero-slide,
.hero-small {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* zamiast fixed dla mobile */
}

/* Sekcja kontakt */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 100px 0;
  justify-content: center;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
}


.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

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

.contact-form {
  background: #f8f8f8;
  padding: 40px 45px;
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form form {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #990000;
  border-radius: 6px;
  color: #090A27;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #990000;
  outline: none;
}

.contact-form .form-group {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 10px;
  border-left: none;
}

.contact-form .form-group label {
  text-align: left;
}

.contact-form .btn {
  background: #990000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: "Mtg1", Arial, sans-serif;
}

.contact-form .btn:hover {
  background: #700000;
}

.flash-messages {
  margin: 100px 0;
}

.flash {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 500;
  text-align: center;
}

.flash.success {
  background: #e6f9ed;
  color: #2e7d32;
  border: 1px solid #b3e6c1;
}

.flash.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c2c7;
}

#map {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.contact-map {
  margin-top: 100px;
  margin-bottom: 60px;
}

.contact-map h2 {
  margin-bottom: 30px;
  text-align: center;
  color: #990000;
  font-family: "Mtg1", Arial, sans-serif;
}


/* Mobile */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}



/* Mobile – poprawka skalowania */
@media (max-width: 768px) {
  .hero {
    height: 75vh; /* trochę niższa wysokość */
  }

  .pulse-circle {
    width: 300px;
    height: 300px;
    border: 4px solid rgba(255, 255, 255, 0.6);
  }
  .hero-slide-text h2 span {
    letter-spacing: 6px;
  }
  .hero-small {
    height: 280px; /* zmniejszona wysokość dla podstron */
    background-attachment: scroll;
  }
  .hero-small .hero-content h1 {
    font-size: 1.5rem;
  }
  .about-container {
    padding: 0 10px;
  }
  .about-text h2 {
    font-size: 1.5rem;
  }
  .about-text p {
    font-size: 1rem;
    text-align: justify;
    margin-top: 30px;
  }
  .features {
    padding: 30px 0;
  }
  .container {
    padding: 3rem 0.3rem;
  }
  .card-aside {
    width: 90%;
    margin: 0 auto;
    min-height: 200px;
  }
  .card-body p {
    font-size: 0.9rem;
  }
  .projects-container h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .project-content p {
    font-size: 1rem;
    text-align: justify;
  }
  .media-videos h2 {
    font-size: 1.5rem;
    color: #990000;
  }
  .media-carousel h2 {
    font-size: 1.5rem;
    color: #990000;
  }
  .news-body a {
    margin-right: 0;
  }

  .contact-info {
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #990000;
    margin: 50px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  .contact-form {
    
    background: #f8f8f8;
    padding: 30px 5px;
  }
  .contact-section h2 {
    text-align: center;
  }
  .contact-section form {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .form-group select {
    height: 40px;
  }
}



@media screen and (max-width: 1799px) and (min-width: 992px) {
    .hero-slide-text h2 {
        font-size: 2.5rem;
    }
    .hero-slide-text h1 {
        font-size: 1.5rem;
    }
}


/* Ustawiamy rząd: logo | (mobile: język + hamburger) */
.navbar .navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#lang-switch-mobile {
  display: none;
}

@media (max-width: 992px) {
  .navbar-actions {
    gap: 18px;
  }

  #lang-switch-mobile {
    display: block;
    position: relative;
    width: auto;
    z-index: 5001;  /* nad overlayem */
  }

  #lang-switch-mobile .dropdown-toggle {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #090A27;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* to menu MUSI być absolutne i nad overlayem */
  #lang-switch-mobile .dropdown-menu {
    position: absolute !important;
    min-width: 80px;
    width: auto;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    background: rgb(255, 255, 255);
    border: 0.5px solid #a9a9a9;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    z-index: 5002;
    overflow: hidden;
  }

  #lang-switch-mobile .dropdown-menu a {
    width: 100%;
    right: 8px;
    margin: 0;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #090A27;
    text-align: left;
    letter-spacing: 1px;
  }

  #lang-switch-mobile .dropdown-menu a + a {
    border-top: 1px solid rgba(0,0,0,.08);
  }

  #lang-switch-mobile.open .dropdown-menu { display: block; }
}

/* --- PANEL SOCIAL MEDIA (sticky po lewej stronie) --- */

.social-panel {
  position: fixed;
  left: 0;
  top: 72vh;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #990000a0;
  padding: 10px 10px;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(6px);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  animation: slideInLeft 4s ease-out forwards;
  opacity: 0;
}

/* Animacja wjazdu */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate(-50px, -50%);
  }
  to {
    opacity: .7;
    transform: translate(0, -50%);
  }
}

/* Ikony */
.social-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;

  text-decoration: none;
  transition: all 0.3s ease;
}

.social-panel a i {
  font-size: 25px;
  color: #fff; /* ciemnoczerwony Porsche */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Efekt hover */


.social-panel a:hover i {
  color: #fff;
  transform: scale(1.2);
}

/* --- PANEL SOCIAL MEDIA – mobile poprawka (w obrębie hero) --- */
@media (max-width: 768px) {
  .hero {
    position: relative;
    overflow: visible;
  }

  .social-panel {
    position: absolute !important;   /* 🔥 wymusza odpięcie od viewportu */
    left: 0 !important;
    top: 65vh !important;         /* 20 px nad dolną krawędzią hero */
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    background: rgba(144, 0, 0, 0.85);
    border-radius: 0 12px 12px 0;
    padding: 10px 10px;
    transform: translateY(-50%);
  }

  .social-panel a {
    width: 24px;
    height: 30px;
  }

  .hero-slides,
  .hero-slide {
    z-index: 1;
  }

  .social-panel {
    z-index: 10;
  }
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 10, 39, 0.95);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-width: 420px;
  width: calc(100% - 40px);
  z-index: 5000;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cookie-actions .cookie-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions .cookie-accept-btn {
  background: #990000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Mtg1", Arial, sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-actions .cookie-accept-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 15px;
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .cookie-accept-btn {
    width: 100%;
  }
}

.privacy-page {
  margin-top: 120px;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.privacy-container h1 {
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
  margin-bottom: 20px;
}

.privacy-container h2 {
  margin-top: 30px;
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
}

.privacy-container h3 {
  margin-top: 20px;
  font-family: "Mtg1", Arial, sans-serif;
  color: #990000;
}

.privacy-container p,
.privacy-container li {
  line-height: 1.7;
  color: #222;
}

.privacy-container ul {
  padding-left: 20px;
}
