* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  scroll-behavior: smooth;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.top-links {
  margin-bottom: 1.1rem;
  text-align: center;
}

.top-link {
  display: inline-block;
  margin: 0 0.2rem;
  color: #aaa;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.top-link:hover {
  color: #fff;
}

.accordion {
  width: 100%;
  max-width: 600px;
}

.item {
  margin-bottom: 1px;
}

.title {
  cursor: pointer;
  padding: 1rem;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #eee;
  transition: color 0.5s ease-in-out, filter 0.4s ease;
}

.title.active {
  color: #FFD700;
}

.title.blur {
  filter: blur(3px);
}

.plus {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.plus.rotate {
  transform: rotate(45deg);
}

.content {
  max-height: 0;
  overflow: hidden;
  will-change: max-height;
  box-sizing: border-box;
  transition: max-height 0.4s ease, padding 0.4s ease, filter 0.4s ease;
  padding: 0 1rem;
  font-size: 16px;
}

.content.open {
  padding: 1rem;
  overflow: hidden;
}

.content.blur {
  filter: blur(3px);
}

.more-link {
  display: block;
  text-align: center;
  margin: 2rem auto 1rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.overlay {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  position: fixed;
  inset: 0;
  background-color: #000;
  color: #eee;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.close-btn {
  position: sticky;
  top: 0;
  margin: 20px 0 0 auto;
  font-size: 3rem;
  cursor: pointer;
  color: #eee;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  z-index: 1001;
}

.close-btn.rotate {
  transform: rotate(360deg);
  opacity: 0;
}

.text-block {
  width: 100%;
  max-width: 800px;
  font-size: 18px;
  line-height: 1.6;
  padding: 1rem;
}

.text-block ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.text-block li {
  opacity: 0;
  transform: translateY(10px);
  animation: none;
}

.text-block.animate li {
  animation: fadeInUp 0.5s ease forwards;
}

.text-block.animate li:nth-child(1) { animation-delay: 0.2s; }
.text-block.animate li:nth-child(2) { animation-delay: 0.4s; }
.text-block.animate li:nth-child(3) { animation-delay: 0.6s; }
.text-block.animate li:nth-child(4) { animation-delay: 0.8s; }
.text-block.animate li:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form {
  width: 70vw;
  max-width: 800px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  background: transparent;
  color: #eee;
  border: none;
  border-bottom: 1px dashed #555;
  padding: 0.6rem 0;
  resize: none;
  line-height: 1.5;
  outline: none;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 7.5rem;
  overflow-y: hidden;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form button {
  margin-top: 1rem;
  font-size: 16px;
  background-color: #222;
  color: #eee;
  border: 1px solid #444;
  cursor: pointer;
  padding: 0.6rem 1.4rem;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #333;
}

/* Responsywność: smartfony */
@media (max-width: 640px) {
  .contact-form {
    width: 80vw;
    max-width: 100vw;
    padding: 0 1.2rem;
  }
}

.text-block li {
  position: relative;
  padding-left: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.text-block li:hover,
.text-block li:active {
  color: #FFD700;
  background-color: #111;
}
