.about .intro {
  width: 100%;
  margin-top: 256px;
  position: relative;
  height: 100vh;
}

.about .intro .intro-illustration-left {
  width: 400px;
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  z-index: -1;
}

.about .intro .intro-illustration-right {
  width: 400px;
  position: absolute;
  top: 0;
  right: 0;
  height: auto;
  z-index: -1;
}

.about .intro h1 {
  max-width: 800px;
  margin: 0 auto;
  width: 80%;
}

.about .intro p {
  max-width: 520px;
  width: 80%;
  margin: 24px auto 0;
}

@media screen and (max-width: 1000px) {

  .about .intro {
    margin: 84px 0;
    height: 100%;
  }
  
  .about .intro .illustrations {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .about .intro .intro-illustration-left, .about .intro .intro-illustration-right {
    position: relative;
    width: 40%;
  }

}

.about #small-kindergarten-huge-heart {
  display: flex;
  width: 80%;
  margin: 0 auto 256px;
  gap: 128px;
}

.about #small-kindergarten-huge-heart .left .image {
  width: 450px;
  height: 380px;
  border-radius: 30px;
  overflow: hidden;
}

.about #small-kindergarten-huge-heart .left .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about #small-kindergarten-huge-heart .left .counter {
  max-width: 450px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
}

.about #small-kindergarten-huge-heart h2 {
  text-align: left;
}

.about #small-kindergarten-huge-heart h6 {
  color: var(--midBlue);
  text-align: left;
}

.about #small-kindergarten-huge-heart .right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about #small-kindergarten-huge-heart .right h3, .about #small-kindergarten-huge-heart .right p {
  text-align: left;
}

@media screen and (max-width: 1200px) {

  .about #small-kindergarten-huge-heart {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto 128px;
    gap: 64px;
  }

}

@media screen and (max-width: 1000px) {

  .about #small-kindergarten-huge-heart .left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about #small-kindergarten-huge-heart .left .image {
    max-width: 300px;
    width: 100%;
    height: 200px;
  }

  .about #small-kindergarten-huge-heart .left .counter {
    max-width: 300px;
    width: 100%;
  }

}

.about #scherfel {
  display: flex;
  width: 80%;
  margin: 0 auto 128px;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about #scherfel .left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  max-width: 500px;
}

.about #scherfel .left p {
  text-align: left;
}

.about #scherfel .right {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  flex-grow: 0;
  flex-shrink: 0;
}

.about #scherfel .right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about #teachers {
  max-width: 80%;
  margin: 0 auto 256px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about #teachers .container {
  display: flex;
  gap: 128px;
  flex-wrap: wrap;
}

.about #teachers p {
  text-align: left;
  color: var(--midBlue);
}

.about #teachers h6 {
  text-align: left;
}

.about #teachers .image {
  width: 320px;
  height: 400px;
  border-radius: 20px;
  background-color: var(--lightGrey);
  margin: 16px 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.about #teachers .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about #teachers .image img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.2s;
}

.about #teachers .image:hover img.hover {
  opacity: 1;
}

.about #teachers .buttons {
  display: flex;
  gap: 16px;
}

.about #teachers .buttons .button:not(.active):not(:hover) {
  background-color: var(--lightGrey);
  color: var(--midGrey);
  border-color: var(--lightGrey);
}

.about #teachers .container .headmaster, .about #teachers .others, .about #teachers .teacher {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about #teachers .others #big-class, .about #teachers .others #small-class {
  display: none;
}

.about #teachers .others #big-class.active, .about #teachers .others #small-class.active {
  display: flex;
  gap: 16px;
}

@media screen and (max-width: 800px) {

  .about #teachers {
    margin: 0 auto 128px;
  }

  .about #teachers .image {
    width: calc((80vw - 16px)/2);
    height: calc((80vw - 16px)/2 + 20px);
    border-radius: 20px;
    background-color: var(--lightGrey);
    margin: 16px 0;
  }

  .about #teachers .image img {
    object-position: top;
  }

  .about #teachers .container {
    gap: 64px;
  }

  .about #teachers .buttons .button {
    width: calc((80vw - 16px)/2);
    text-align: center;
  }

}

#gallery-preview {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  user-select: none;
  z-index: 200;
  background-color: #090907c5;
  backdrop-filter: blur(10px);
}

#gallery-preview .close {
  cursor: pointer;
  width: 53px;
  height: 53px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--white);
  transition: all 0.3s;
}

#gallery-preview .close:hover {
  background-color: var(--white);
  transition: all 0.3s;
}

#gallery-preview .close:hover img {
  filter: invert(1);
}

#gallery-preview.active {
  opacity: 1;
  pointer-events: all;
}

#gallery-preview .preview {
  height: 100vh;
  width: auto;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

#gallery-preview .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#gallery-preview img.main-image {
  height: 75vh;
  max-width: 100%;
  aspect-ratio: 0.8;
  object-fit: cover;
  border-radius: 10px;
}

#gallery-preview .paginated-buttons {
  display: flex;
  gap: 16px;
}

#gallery-preview .paginated-buttons .back, #gallery-preview .paginated-buttons .next {
  background-color: var(--lightGrey);
  color: var(--darkGrey);
  transition: all 0.3s;
}

#gallery-preview .paginated-buttons .back.active:hover, #gallery-preview .paginated-buttons .next.active:hover {
  background-color: var(--buttonBlue);
  color: var(--lightBlue);
}

#gallery-preview .paginated-buttons .back.active:hover svg path, #gallery-preview .paginated-buttons .next.active:hover svg path {
  stroke: var(--lightBlue);
}

#gallery-preview .paginated-buttons .back.active, #gallery-preview .paginated-buttons .next.active {
  background-color: var(--yellow);
  color: var(--darkGrey);
  cursor: pointer;
}

#gallery-preview .paginated-buttons .back {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery-preview .paginated-buttons .next {
  width: 92px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 21px;
}

@media screen and (max-width: 1000px) {

  #gallery-preview .paginated-buttons {
    display: flex;
    width: 100%;
  }

  #gallery-preview .paginated-buttons .back, #gallery-preview .paginated-buttons .next {
    width: 50%;
  }

  #gallery-preview .paginated-buttons .back {
    justify-content: flex-start;
    padding-left: 21px;
  }

}

.about #news h2 {
  width: 80%;
  margin: 0 auto 24px;
}

.about #news p {
  max-width: 560px;
  width: 80%;
  margin: 0 auto 24px;
}

.about #news .menu {
  display: flex;
  gap: 14px;
  margin: 0 auto 48px;
  max-width: 620px;
  width: 80%;
}

.about #news .menu .button {
  align-items: center;
  display: flex;
  justify-content: center;
}

.about #news .menu .button:not(.active):not(:hover), .about #news .menu .back:not(.active), .about #news .menu .next:not(.active) {
  background-color: var(--lightGrey);
  color: var(--darkGrey);
}

.about #news .menu .back:not(.active), .about #news .menu .next:not(.active) {
  cursor: auto;
}

.about #news .menu ul {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.about #news .menu ul li {
  list-style: none;
}

.about #news .content .content-list:not(.active) {
  display: none;
}

.about #news .content {
  width: 100%;
  position: relative;
}

.about #news .content .content-list {
  display: flex;
  gap: 32px;
  width: 80vw;
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s;
}

.about #news .content .content-container {
  width: 80vw;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background-color: var(--lightYellow);
}

.about #news .content .blur {
  filter: blur(2px);
  transform: translate3d(0, 0, 0);
}

.about #news .content .item-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about #news .content .item-content p.xs {
  text-align: left;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.about #news .content .content-item .item-img {
  width: 300px;
  height: 300px;
  background-color: var(--darkGrey);
  border-radius: 8px;
  overflow: hidden;
}

.about #news .content .content-item .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#news .paginated-footer {
  width: 80vw;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 42px;
}

#news .paginated-buttons {
  display: flex;
  gap: 16px;
}

#news .paginated-buttons .back, #news .paginated-buttons .next {
  background-color: var(--lightGrey);
  color: var(--darkGrey);
  transition: all 0.3s;
}

#news .paginated-buttons .back.active:hover, #news .paginated-buttons .next.active:hover {
  background-color: var(--buttonBlue);
  color: var(--lightBlue);
}

#news .paginated-buttons .back.active:hover img path, #news .paginated-buttons .next.active:hover img path {
  stroke: var(--lightBlue);
}

#news .paginated-buttons .back.active, #news .paginated-buttons .next.active {
  background-color: var(--yellow);
  color: var(--darkGrey);
  cursor: pointer;
}

#news .paginated-buttons .back {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#news .paginated-buttons .next {
  width: 92px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 21px;
}

@media screen and ( max-width: 700px ) {
  
  .about #news .content .content-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
    width: 100%;
  }
  
  .about #news .content {
    width: 100%;
  }

  .about #news .content .item-content {
    width: 100%;
  }

  .about #news .content .content-item {
    flex-shrink: 0;
    width: 100%;
  }

  .about #news .content .content-item .item-img {
    width: 100%;
    height: 230px;
  }

  .about #news .content .content-item .item-content {
    justify-content: space-between;
    flex-grow: 1;
  }

  #news .paginated-buttons {
    display: none;
  }

  #news .paginated-footer {
    justify-content: center;
  }

  .about #news .content .blur {
    filter: none;
  }

  .about #news .content .content-list {
    display: flex;
    gap: 10vw;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 10%;
    width: 100%;
    margin: 0;
  }

}

#schedule {
  width: 100%;
  margin: 428px auto;
  padding-bottom: 128px;
  background-color: var(--yellow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#schedule .waves-top {
  position: absolute;
  width: 101vw;
  top: 0;
  transform: translate(0, calc(-100% + 5px));
  left: 0;
  z-index: -1;
}

#schedule .waves-bottom {
  position: absolute;
  bottom: 0;
  transform: translate(0, calc(100% - 5px));
  left: 0;
  width: 101vw;
  z-index: -1;
}

#schedule .waves-top img, #schedule .waves-bottom img {
  width: 100%;
  height: auto;
}

#schedule h2 {
  max-width: 750px;
  width: 80%;
  margin: 64px auto 128px;
}

#schedule .content {
  display: flex;
  flex-direction: column;
  gap: 256px;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

#schedule .content .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  z-index: 2;
}

#schedule .content .item.reversed {
  flex-direction: row-reverse;
}

#schedule .content .sleep-item, #schedule .content .games-item {
  padding-top: 150px;
}

#schedule .content .item:last-child {
  padding-top: 280px;
}

#schedule .content .item .description {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#schedule .content .item .description p {
  text-align: left;
}

#schedule .path {
  position: absolute;
  top: 324px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

#schedule .special-item {
  display: none;
  gap: 8px;
  flex-direction: column;
  color: var(--white);
}

@media screen and (max-width: 1000px) {

  #schedule {
    margin: 128px auto;
    padding-bottom: 56px;
  }

  #schedule .path {
    display: none;
  }

  #schedule .clouds {
    width: 80%;
    margin: 0 auto;
  }

  #schedule .clouds img {
    width: 100%;
    height: auto;
  }

  #schedule .content {
    gap: 64px;
    align-items: flex-start;
  }

  #schedule .content .item {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
    z-index: 1;
  }

  #schedule .content .item.reversed {
    flex-direction: column-reverse;
  }

  #schedule .content .sleep-item, #schedule .content .item:last-child, #schedule .content .games-item {
    padding-top: 0px;
  }

  #schedule .content .item .illustration {
    max-width: 300px;
    width: 100%;
  }

  #schedule .content .item .illustration img {
    width: 100%;
    height: auto;
  }

  #schedule .special-item {
    display: flex;
  }

}

#activities {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  padding: 100px 0 256px;
}

#activities .slider .slider-dot:not(.active) {
  background-color: var(--lightGrey);
}

#decent-slniecko {
  width: 80%;
  margin: 128px auto 256px;
  position: relative;
}

#decent-slniecko h6, #decent-slniecko h3 {
  text-align: center;
  max-width: 580px;
  margin: 16px auto;
}

#decent-slniecko p {
  text-align: center;
  max-width: 700px;
  margin: 20px auto 64px;
}

#decent-slniecko .clouds-left {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: -1;
}

#decent-slniecko .clouds-right {
  position: absolute;
  top: -100px;
  right: 0;
  z-index: -1;
}

.about #decent-slniecko .menu {
  display: flex;
  gap: 14px;
  margin: 0 auto 48px;
  max-width: 620px;
  width: 100%;
}

.about #decent-slniecko .menu .button {
  align-items: center;
  display: flex;
  justify-content: center;
}

.about #decent-slniecko .menu .button:not(.active):not(:hover), .about #decent-slniecko .menu .back:not(.active), .about #decent-slniecko .menu .next:not(.active) {
  background-color: var(--lightGrey);
  color: var(--darkGrey);
}

.about #decent-slniecko .menu .back:not(.active), .about #decent-slniecko .menu .next:not(.active) {
  cursor: auto;
}

.about #decent-slniecko .menu ul {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.about #decent-slniecko .menu ul li {
  list-style: none;
}

.about #decent-slniecko .rules .rule:not(.active) {
  display: none;
}

#decent-slniecko .rule {
  max-width: 80%;
  margin: 0 auto;
  max-width: 780px;
  width: 100%;
  padding: 51px 66px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  border-radius: 20px;
  background-color: var(--lightYellow);
  align-items: center;
  justify-content: center;
}

#decent-slniecko .rule h6 {
  color: var(--darkYellow);
  margin: 0;
  width: 100%;
}

#decent-slniecko .rule h5 {
  text-align: center;
  margin: 0;
  width: 100%;
}

@media screen and (max-width: 1000px) {

  #decent-slniecko {
    margin: 128px auto;
  }

  #decent-slniecko .clouds-left, #decent-slniecko .clouds-right {
    width: 50vw;
    max-width: 150px;
    top: -200px;
  }

  #decent-slniecko .clouds-left img, #decent-slniecko .clouds-right img {
    width: 100%;
    height: auto;
  }

}

#join-us {
  padding: 56px 0 256px 0;
}

#join-us h2 {
  width: 80%;
  margin: 0 auto;
}

#join-us .content {
  display: flex;
  padding: 0 10vw;
  padding-top: 64px;
  gap: 16px;
  justify-content: center;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#join-us .content::-webkit-scrollbar {
  display: none;
}

#join-us .fee-item {
  display: flex;
  flex-direction: column;
  padding: 36px 24px 24px;
  gap: 50px;
  border-radius: 32px;
  background-color: var(--lightYellow);
  width: 380px;
  align-items: center;
}

#join-us .fee-item div {
  width: 100%;
}

#join-us .fee-item .button {
  text-align: center;
  display: block;
  width: 100%;
}

#join-us .fee-item h5, h6, p {
  text-align: center;
}

#join-us .fee-item h6 {
  margin-bottom: 8px;
}

@media screen and (max-width: 1000px) {

  #join-us .content {
    justify-content: flex-start;
    padding: 64px 10vw 0;
  }

  #join-us .fee-item {
    min-width: 220px;
    width: auto;
    gap: 30px;
    padding: 14px;
    flex-shrink: 0;
    border-radius: 18px;
  }

  #join-us .fee-item .button {
    width: 100%;
  }

}

@media screen and (max-width: 750px) {
  
  #join-us {
    padding: 56px 0;
  }

}