/* --- Ogólny CSS działa na wszystkich podstronach --- */
html {
  overflow-y: scroll;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --1: #2c295a;
  --2: #ff6b35;
  --3: #e6e6e9;
  --button-width: 140px; /* stała szerokość przycisków */
}

body {
  font-family: "Gill Sans", Calibri, sans-serif;
  background-color: var(--1);
  color: var(--3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("bg.jpg") center/cover no-repeat;
  opacity: 0.28;
}

header {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: 0.7rem 2rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner img {
  height: 70px;
  object-fit: contain;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--3);
}

nav {
  display: flex;
}

nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--3);
  font-weight: bold;
  padding: 0.4em 0;
  border-radius: 12px;
  background-color: var(--2);
  border: 1px solid var(--1);
  transition: 0.2s;
  width: var(--button-width);
  display: inline-block;
  text-align: center;
}

nav a:hover {
  background-color: #ff814d;
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  nav.show {
    display: flex;
  }

  nav ul {
    flex-direction: row;
    gap: 0.8rem;
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 901px) {
  nav {
    display: flex !important;
  }

  main {
    height: 100%;
  }
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  gap: 3rem;
}

.cta h1 {
  font-size: 2.4rem;
  max-width: 800px;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.cta a {
  margin-top: 1rem;
  display: inline-block;
  font-size: 1.3rem;
  background-color: var(--2);
  padding: 0.6em 1.4em;
  border-radius: 12px;
  border: 1px solid var(--1);
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  color: var(--3);
}

.cta a:hover {
  transform: scale(1.06);
}

.logos {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.carousel, .track {
  display: flex;
  white-space: nowrap;
}

.track {
  flex-shrink: 0;
}

.track img {
  height: 50px;
  margin: 0 40px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

footer {
    padding: 1rem;
}

footer, .site-footer {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.main.offers-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem 1rem;
  text-align: left;
}

.offers-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
}

.offers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 180px;
  align-items: center;
}

.offers-sidebar button {
  background-color: var(--2);
  color: var(--3);
  border: 1px solid var(--1);
  border-radius: 12px;
  padding: 0.6em 1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  width: var(--button-width);
}

.offers-sidebar button:hover,
.offers-sidebar button.active {
  background-color: #ff814d;
}

.offers-content {
  flex: 1;
  display: flex;
}

.offers-content iframe {
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: 1px solid var(--1);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .offers-container {
    flex-direction: column;
    align-items: center;
  }
  .offers-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .offers-sidebar button {
    width: var(--button-width);
  }
  .offers-content iframe {
    display: none;
  }
}

.main.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  gap: 3rem;
  text-align: center;
}

.contact-form,
.contact-info.unified {
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6em 1em;
  border-radius: 12px;
  border: 1px solid var(--1);
  background-color: var(--3);
  color: var(--1);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.6em 1.4em;
  border-radius: 12px;
  border: 1px solid var(--1);
  background-color: var(--2);
  color: var(--3);
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 2rem;
}

.contact-form button:hover {
  transform: scale(1.05);
  background-color: #ff814d;
}

.contact-info.unified h2 {
  color: var(--2);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contacts-row {
  display: flex;
  gap: 1rem;
}

.contact-person {
  flex: 1;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.contact-person p {
  margin: 0.3rem 0;
}

.contact-person:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .contacts-row {
    flex-direction: column;
  }
  .contact-person::after {
    display: none;
  }
}

.about-tab {
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 30%;
}

.footer-center,
.footer-right {
  text-align: center;
}

.footer-left .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-left .social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-left .social-icons img:hover {
  filter: brightness(0.8) invert(1);
}

.footer-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-center li {
  margin: 0.2rem 0;
}

@media (max-width: 900px) {
  .footer-container {
    align-items: center;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    align-items: center;
    width: 5em;
  }
  .footer-left .social-icons {
    justify-content: center;
  }
}
