.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

section {
  width: 100%;
  flex: 3;
  background: white;
}

.event {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  padding-top: 1rem;

  .event-line {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 70%;

    .square {
      width: clamp(0.5rem, 0.438rem + 0.333vi, 0.813rem);
      height: clamp(0.5rem, 0.438rem + 0.333vi, 0.813rem);
      background-color: #333;
      display: inline-block;
    }

    .line {
      width: 100%; /* Dopasuj długość linii */
      height: 1px;
      background-color: #333;
      display: inline-block;
    }
  }

  .event-location {
    font-size: clamp(0.625rem, 0.5rem + 0.667vi, 1.25rem);
    line-height: clamp(0.688rem, 0.537rem + 0.8vi, 1.438rem);
    color: #333;
    padding-left: 1rem;
  }

  .event-date {
    display: flex;
    justify-content: center;
    flex-grow: 2;
    gap: 4px;
    font-size: clamp(0.688rem, 0.525rem + 0.867vi, 1.5rem);
    line-height: clamp(0.75rem, 0.55rem + 1.067vi, 1.75rem);
    font-weight: 600;
    color: #333;
    text-align: right;
  }
}

h1 {
  font-family: "Biryani", serif;
  font-weight: 700;
  font-style: normal;
  color: #111111;
  white-space: nowrap;

  span {
    display: block;
  }

  .h1-wama {
    font-size: clamp(1rem, 0.263rem + 3.933vw, 4.688rem);
  }

  .h1-cyfrowa {
    font-size: clamp(1.5rem, 0.2rem + 6.933vw, 8rem);
  }

  .h1-forum {
    font-size: clamp(0.875rem, 0.362rem + 2.733vw, 3.438rem);
    font-weight: 600;
    color: #5f0b70;
  }
}

.content {
  font-weight: 400;
  font-size: clamp(0.625rem, 0.55rem + 0.4vw, 1rem);
  line-height: clamp(0.688rem, 0.6rem + 0.467vw, 1.125rem);
  letter-spacing: 0%;
  text-align: justify;
  padding: 2rem 2rem;
  color: #2d2c2c;

  span {
    display: block;
  }

  .only-event {
    text-align: center;
    font-weight: 600;
    line-height: clamp(0.75rem, 0.463rem + 1.533vw, 2.188rem);
    letter-spacing: -1%;
    padding: 2rem 0;

    .oe-1 {
      font-size: clamp(0.625rem, 0.35rem + 1.467vw, 2rem);
    }

    .oe-2 {
      font-size: clamp(0.625rem, 0.412rem + 1.133vw, 1.688rem);
    }

    .oe-3 {
      font-size: clamp(0.625rem, 0.5rem + 0.667vw, 1.25rem);
      font-weight: 400;
    }
  }

  .workshops {
    position: relative;
    padding-bottom: 2rem;

    .ws-title {
      font-size: clamp(0.75rem, 0.6rem + 0.8vw, 1.5rem);
      line-height: clamp(0.75rem, 0.463rem + 1.533vw, 2.188rem);
      font-weight: 600;
      width: 100%;
    }

    .badge {
      position: absolute;
      top: 0;
      transform: translateY(-70%);
      right: 5vw;
      font-weight: 800;

      padding: 4px 10px;
      border-radius: 999px;
      width: 20%;
      color: #5f0b70;
      font-size: clamp(0.75rem, 0.55rem + 1.067vw, 1.75rem);

      .b-arrow {
        width: 80%;
        height: 80%;
        display: block;
      }

      .b-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(10%, 10%); /* wycentrowanie na ikonie */
        pointer-events: none; /* opcjonalnie */
      }
    }
  }
}

.content .novelty span {
  display: block;
}

.organizators {
  display: flex;
  align-items: center;

  & div {
    flex: 1;
  }
}

.organizator-wmcnt > img {
  width: 100%;
}

.organizator-woj {
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    width: 80%;
    padding: 1.5rem;
  }
}

h4 {
  font-size: clamp(0.625rem, 0.45rem + 0.933vi, 1.6rem);
  line-height: clamp(0.688rem, 0.475rem + 1.133vi, 1.85rem);
  color: #414141;
  margin-top: 20px;
  text-align: center;
}

.sentences {
  display: flex;
  flex-basis: 50%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: clamp(0.625rem, 0.5rem + 0.667vw, 1.25rem);
  line-height: clamp(0.688rem, 0.563rem + 0.667vw, 1.313rem);
  margin: 2rem 0;
  padding: 2rem 0 7vh;
}

.sentences > div {
  padding: 0.5rem 2rem 0.5rem 2rem;
}

.sentences > div:nth-child(1) {
  width: 100%;
}

.sentences > .highlight {
  background: #111111;
  color: #ffffff;
}

.inner-image {
  position: absolute;
  bottom: 1rem;
  right: 2rem; /* Opcjonalnie */
  height: 150%;
  width: auto;
}

.inner-image-2 {
  width: 80%;
  margin: auto;
}

.contact {
  display: flex;
  flex-direction: column;
  padding: 4rem 0;
  width: 50%;
  line-height: clamp(0.688rem, 0.6rem + 0.467vi, 1.125rem);
  font-size: clamp(0.625rem, 0.575rem + 0.267vi, 0.875rem);

  h2 {
    font-size: clamp(0.625rem, 0.55rem + 0.4vi, 1rem);
    color: #2d2c2c;
  }

  a {
    color: #6c0c80;
    text-decoration: none;
  }

  .event-line {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 100%;

    .square {
      width: clamp(0.5rem, 0.438rem + 0.333vi, 0.813rem);
      height: clamp(0.5rem, 0.438rem + 0.333vi, 0.813rem);
      background-color: #333;
      display: inline-block;
    }

    .line {
      width: 100%; /* Dopasuj długość linii */
      height: 1px;
      background-color: #333;
      display: inline-block;
    }
  }

  > :not(.event-line) {
    padding: 0 2rem;
  }
}

.bottom {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 5vh;

  div {
    position: absolute;
    background: white;
  }

  .line-1 {
    left: 20%;
    height: 80%;
    width: clamp(0.5rem, 0.425rem + 0.4vi, 0.875rem);
  }

  .line-2 {
    left: 40%;
    height: 100%;
    width: clamp(0.5rem, 0.425rem + 0.4vi, 0.875rem);
  }

  .line-3 {
    right: 25%;
    height: 55%;
    width: clamp(0.5rem, 0.425rem + 0.4vi, 0.875rem);
  }

  .line-4 {
    top: 80%;
    left: 0;
    width: 40%;
    height: clamp(0.5rem, 0.425rem + 0.4vi, 0.875rem);
  }

  .line-5 {
    top: 55%;
    right: 0;
    width: calc(60%);
    height: clamp(0.5rem, 0.425rem + 0.4vi, 0.875rem);
  }
}

@media screen and (max-width: 1400px) {
  .sentences {
    flex-direction: column;
    text-align: center;
  }

  .sentences > div {
  }

  .sentences > div:nth-child(6) {
    order: 2;
  }

  .sentences > div:nth-child(4) {
    order: 3;
  }
}

@media screen and (max-width: 1199px) {
  h1 {
    text-align: center;
  }
}

@media screen and (max-width: 991px) {
  .organizators {
    gap: 0;
  }

  .organizator-woj > img {
    width: 100%;
    padding: 0;
  }
}

@media screen and (max-width: 413px) {
  .event {
    flex-direction: column;
    padding-left: 0;
  }
  .event-location {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}
