:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
  --font-lunasima: 'Lunasima', sans-serif;
  --primary-bg: #f5f7fa;
  --primary-bg2: #e9ecef;
  --secondary-bg: #ffffff;
  --accent: #007bff;
  --accent-text: #004085;
  --accent2: rgba(0, 123, 255, 0.7);
  --text: #212529;
  --muted-text: #6c757d;
  --card-bg: #ffffff;
  --footer-bg: #e9ecef;
  --border: #dee2e6;
}

h1 {
  font-size: 2em;
  font-weight: bold;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
}

body {
  margin: 0;
  font-family: var(--default-font-family);
  background-color: var(--primary-bg);
  color: var(--text);
  scroll-behavior: smooth;
  user-select: none;
  overflow-x: hidden;
}

.section:first-of-type {
  padding-top: 80px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  header nav {
    padding: 0.5rem 1rem;
    top: 1vh;
    max-width: 95%;
  }

  .logo-fancy {
    overflow-x: hidden;
    display: none;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links li a {
    font-size: 0.9rem;
    margin-top: 0;
  }

  #wl-button {
    padding: 0.2rem 0.8rem;
    font-size: 0.9rem;
    height: 32px;
  }

  .section:first-of-type {
    padding: 15vh 1rem 5rem;
    flex-direction: column;
    background-position: 60% center;
  }

  .section:first-of-type .content {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .section:first-of-type .content-title {
    font-size: 2rem !important;
    text-align: center;
  }

  .section:first-of-type .content-subtitle {
    font-size: 1.1rem !important;
    text-align: center;
  }

  .section:first-of-type .buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .section:first-of-type .buttons a {
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 0.8rem;
  }

  .section:first-of-type .content-tag {
    margin: 0 auto 1.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .why-card {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
  }

  .why-card .buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .why-card .buttons a {
    width: 100%;
    max-width: 100px;
    text-align: center;
    padding: 0.8rem;
  }

  .why-card .buttons {
    width: 100%;
    padding: 0 0.4rem;
  }

  .partners-card {
    width: 100%;
    max-width: 100%;
  }

  .footer-outer {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .footer-column {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section:first-of-type .content-title {
    font-size: 2rem;
  }

  .section:first-of-type .content-subtitle {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links li a {
    font-size: 0.8rem;
  }

  .logo span {
    font-size: 1rem;
  }

  .logo img {
    width: 30px;
    height: 20px;
  }
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 0.25%;
  padding: 1rem 2rem;
  border-radius: 60rem;
  position: fixed;
  top: 2vh;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.5s ease, top 0.5s ease;
  color: rgba(255, 255, 255, 1);
}

header nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text);
  top: 1vh;
}

.section:first-of-type {
  padding: 13rem 2rem;
  padding-top: 30vh;
  margin-top: 0;
  background: url('bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section:first-of-type .content {
  max-width: 60%;
  margin-left: 8%;
  text-align: left;
  color: var(--text);
}

.section:first-of-type .content-tag {
  background-color: var(--accent2);
  box-shadow: 0 0 3.75rem rgba(0, 123, 255, 0.3);
  border: 1px solid var(--accent);
  color: var(--secondary-bg);
  padding: 0.4rem 1.6rem;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin: 1rem 0 1.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.section:first-of-type .content-title {
  font-size: 4.5rem;
  font-weight: 900;
  text-align: left;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 0 #000;
  margin: 0 0 0.3em 0;
  line-height: 1.1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section:first-of-type .content-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: left;
  color: rgb(214, 214, 214);
  text-shadow: 1px 1px 0 #000;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.05em;
}

.section:first-of-type .buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.section:first-of-type .buttons a {
  background-color: var(--accent);
  box-shadow: 0 0 3.75rem rgba(0, 123, 255, 0.3);
  color: var(--secondary-bg);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.section:first-of-type .buttons a:hover {
  background-color: rgba(29, 140, 225, 0.9);
  box-shadow: 0 0 60px rgba(29, 173, 225, 0.45);
  transform: scale(1.05);
}

.logo-fancy {
  overflow-x: hidden;
  max-width: 400px;
}

.slide-in-left {
  animation: slideFromLeft 1s ease-out forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideFromRight 1s ease-out forwards;
  opacity: 0;
}


@keyframes slideFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.section:nth-of-type(even) {
  background-color: var(--primary-bg2);
}

#info {
  padding: 3rem 1rem;
  /* zmniejszono padding boczny */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

#info h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.info-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(234, 234, 234, 0.95);
  border: 1px solid rgba(187, 187, 187, 0.95);
  box-shadow: 0 0 50rem rgba(0, 0, 0, 0.3);
  color: var(--text);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  /* więcej przestrzeni bocznej */
  gap: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 120px;
}

.info-item-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0.2rem;
}

.info-item-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  user-select: text;
  white-space: nowrap;
  text-align: center;
}

.info-item-label span {
  display: inline-block;
  margin: 0 0.5rem;
}

.info-item-label small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted-text);
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .info-box {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .info-item-label {
    font-size: 1rem;
  }

  .info-item-label small {
    font-size: 0.7rem;
  }
}

.where-section {
  padding: 60px 20px;
  background: #f4f4f4;
  text-align: center;
}

.map-heading {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #111;
  letter-spacing: 1px;
}

.map-wrapper {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 480px) {
  .info-box {
    padding: 1rem 1rem;
    margin: 0 0.5rem;
  }

  .info-item-label {
    font-size: 0.7rem;
  }

  .info-item {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .info-item-label {
    font-size: 0.5rem;
  }
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  transition: transform 1s;
}

.logo:hover img {
  transform: scale(1.1);
  animation: shake-with-tilt 1.2s ease infinite;
  animation-delay: 5s;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 600;
  transition: font-size 1s ease;
  white-space: nowrap;
}

.logo span:hover {
  font-size: 1.8rem;
}

@keyframes shake-with-tilt {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  20% {
    transform: translateX(-5px) rotate(-5deg);
  }

  40% {
    transform: translateX(5px) rotate(5deg);
  }

  60% {
    transform: translateX(-5px) rotate(-5deg);
  }

  80% {
    transform: translateX(5px) rotate(5deg);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-top: 5%;
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

#wl-button {
  background-color: var(--accent);
  box-shadow: 0 0 3.75rem rgba(0, 123, 255, 0.3);
  border: 1px solid var(--accent);
  color: var(--secondary-bg);
  padding: 0.2rem 1.2rem;
  border-radius: 32px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  height: 36px;
}

#wl-button:hover {
  background-color: rgba(29, 140, 225, 0.9);
  box-shadow: 0 0 60px rgba(29, 173, 225, 0.45);
  transform: scale(1.05);
}

.section {
  padding: 10rem 2rem;
  text-align: center;
}

.invisible {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background-color: var(--card-bg);
  box-shadow: 0 0 3.75rem rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  width: 280px;
}

.card h3 {
  margin-top: 0;
}

.btn {
  background-color: var(--accent);
  box-shadow: 0 0 3.75rem rgba(0, 123, 255, 0.3);
  color: var(--secondary-bg);
  border: 0.5px solid var(--accent);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: rgba(29, 140, 225, 0.9);
  box-shadow: 0 0 60px rgba(29, 173, 225, 0.45);
  transform: scale(1.05);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.why-section {
  display: flex;
  padding: 40px 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.why-section h2 {
  font-size: 2.5rem;
  color: var(--text);
}

.why-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.why-card .buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.why-card .buttons a {
  background-color: var(--accent);
  box-shadow: 0 0 3.75rem rgba(0, 123, 255, 0.3);
  color: var(--secondary-bg);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.why-card .buttons a:hover {
  background-color: rgba(29, 140, 225, 0.9);
  box-shadow: 0 0 60px rgba(29, 173, 225, 0.45);
  transform: scale(1.05);
}

.why-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 20px 20px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.15);
}

.why-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.icon-circle {
  background-color: var(--accent2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0.625rem rgba(0, 123, 255, 0.6);
  font-size: 24px;
  color: var(--secondary-bg);
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
  max-width: 200px;
  white-space: nowrap;
}

.why-card h3:where(:not([style*="white-space: nowrap"])) {
  font-size: 1.1rem;
}

.why-card p {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .why-container {
    flex-direction: column;
    align-items: center;
  }

  .why-card {
    width: 80%;
    max-width: 300px;
  }
}

.partners-section {
  padding: 40px 20px;
  text-align: center;
}

.partners-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text);
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.partners-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.15);
}

.partners-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.partners-card h3 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--text);
}

.partners-card p {
  color: var(--muted-text);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .partners-container {
    flex-direction: column;
    align-items: center;
  }

  .partners-card {
    width: 80%;
    max-width: 300px;
  }
}

footer {
  background-color: var(--footer-bg);
  color: var(--muted-text);
  padding: 2rem;
  margin-top: 3rem;
}

.footer-outer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-logo h3,
.footer-logo a {
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-logo h3:hover,
.footer-logo a:hover {
  color: var(--accent-text);
}

#xd,
a {
  color: var(--muted-text);
  user-select: text;
}

.footer-logo p {
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex: 1;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-column h4 {
  color: var(--text);
  margin-bottom: 1rem;
}

.text {
  font-family: var(--default-font-family);
  color: var(--text);
  font-size: 22px;
  text-align: center;
  font-weight: 500;
  margin-top: 80px;
}

.text span {
  color: var(--accent);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--muted-text);
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .logo img {
    width: 40px;
    height: 27px;
  }

  .logo span {
    font-size: 1.2rem;
  }
}

h2,
p {
  text-shadow: none;
}

.icon-container {
  display: flex;
  justify-content: space-around;
  gap: 25px;
  align-items: center;
  color: var(--muted-text);
  margin-top: 20px;
  font-size: 36px;
}

.icon-container a {
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  transform: scale(1);
}

.icon-container a:hover {
  transform: scale(1.2);
}

.yt:hover {
  color: #ff0000;
}

.dc {
  animation: none;
}

.dc:hover {
  color: #5865f2;
  animation: shake-with-tilt 0.6s ease infinite;
  animation-delay: 1s;
}

.tt:hover {
  color: #000000;
}

@keyframes shake-with-tilt {

  0%,
  100% {
    transform: translateX(0) rotate(0);
  }

  25% {
    transform: translateX(-5px) rotate(-5deg);
  }

  50% {
    transform: translateX(5px) rotate(5deg);
  }

  75% {
    transform: translateX(-5px) rotate(-5deg);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 2rem 1rem;
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .card-container {
    gap: 1rem;
  }

  .h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .two-columns {
    flex-direction: column;
    gap: 1rem;
  }
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--secondary-bg);
  color: var(--text);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 2000;
  font-family: var(--default-font-family);
}

#cookie-banner a {
  color: var(--accent);
}

#accept-cookies {
  margin-left: 10px;
  outline: none;
  border: none;
  background-color: var(--accent);
  box-shadow: 0 0 0.625rem rgba(0, 123, 255, 0.3);
  color: var(--secondary-bg);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

#accept-cookies:hover {
  background-color: rgba(29, 140, 225, 0.9);
  box-shadow: 0 0 60px rgba(29, 173, 225, 0.45);
  transform: scale(1.05);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 9999px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent2) transparent;
}

@media (max-width: 600px) {
  .logo span {
    display: none;
  }

  .logo img {
    width: 40px;
    height: 27px;
    margin-right: 0;
  }
}