@import url("https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=League+Spartan:wght@100..900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e8e3d5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.badge {
  border-radius: 8px;
  background-color: #2d531a;
  color: #e8e3d5;
  font-weight: bold;
  text-transform: uppercase;
}

button {
  margin: 0;
  padding: 8px;
  border: 0;
  font: inherit;
  font-size: 125%;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(45, 83, 26, 0.35);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

p, ul {
  line-height: 1.25;
}

p:not(:first-child) {
  margin-top: 0;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

.page {
  display: flex;
  width: 100%;
  max-width: 2000px;
  min-height: 100vh;
  margin-inline: auto;
  overflow-x: hidden;
  background: #e8e3d5;
  color: #2d531a;
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  flex-direction: column;
}

.page--home {
  background: url("/grafika/banner.jpg") fixed bottom/cover;
}

.section-padding {
  padding-inline: clamp(32px, 8vw, 112px);
}

.title {
  font-size: clamp(48px, 4vw, 72px);
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
}

.title--small {
  font-family: "Gloria Hallelujah", cursive;
  font-size: clamp(34px, 3.5vw, 52px);
  text-transform: none;
  font-weight: normal;
}

.title--medium {
  font-size: clamp(36px, 4vw, 48px);
}

.badge {
  padding: 16px 16px 8px;
  font-size: 200%;
}

.header {
  position: relative;
  z-index: 100;
  display: flex;
  width: 100%;
  height: 220px;
  padding: 20px 4% 90px;
  background: url("/grafika/pozadi_menu.png") center/100% 100% no-repeat;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  justify-content: space-between;
}

.header__logo {
  width: auto;
  height: 100px;
}

.header__nav {
  display: flex;
  max-width: 1200px;
  flex: 1;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  justify-content: space-evenly;
}

.header__nav-link {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__camp-link {
  padding: 16px 16px 12px;
  font-size: 100%;
  text-align: center;
  white-space: nowrap;
}

.banner {
  position: relative;
  z-index: 9;
  height: min(900px, 100vh - 84px);
  min-height: 600px;
  margin-top: -116px;
}

.banner__background,
.banner__content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__background {
  z-index: 8;
  background: rgba(0, 0, 0, 0.4);
}

.banner__content {
  z-index: 9;
  display: flex;
  padding: clamp(120px, 14vh, 180px) 24px 0;
  color: white;
  text-align: center;
  align-items: flex-start;
  justify-content: center;
}

.banner__title {
  color: #e8e3d5;
  line-height: 0.8;
}

.banner__title span {
  color: #e8e3d5;
  font-family: "Gloria Hallelujah", cursive;
  font-size: 75%;
  text-transform: none;
}

.about {
  position: relative;
  z-index: 10;
  display: flex;
  margin-top: -200px;
  padding-top: 240px;
  padding-bottom: 500px;
  background-image: url("grafika/pozadi_stromy.png"), url("grafika/pozadi_o_nas_top.png");
  background-position: right, left;
  background-repeat: no-repeat;
  background-size: 550px auto, 100% 100%;
  gap: clamp(32px, 5vw, 72px);
}

.about__content,
.about__media {
  min-width: 0;
  flex: 1;
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__content .badge {
  margin-bottom: 20px;
}

.about__content p {
  font-family: "Gloria Hallelujah", cursive;
  line-height: 2;
}

.about__media {
  display: flex;
  justify-content: flex-end;
}

.about__image {
  position: relative;
  aspect-ratio: 450/520;
  width: 450px;
  height: 520px;
  margin-right: 10%;
  transform: rotate(10deg);
}

.about__image-background {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("grafika/pozadi_polaroid.png") center/100% 100% no-repeat;
}

.about__image-paperclip {
  position: absolute;
  z-index: 9;
  top: -25%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: url("grafika/spona.png") top/100% auto no-repeat;
}

.about__photo {
  position: absolute;
  z-index: 9;
  top: 4.25%;
  left: 4.7%;
  width: 89%;
}

.camps {
  position: relative;
  z-index: 11;
  height: 700px;
  margin-top: -450px;
  padding-top: 100px;
  background: url("grafika/pozadi_vylety.png") center/100% 100% no-repeat;
}

.camps__title {
  margin-bottom: 40px;
  color: #e8e3d5;
}

.camps__content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: clamp(16px, 3vw, 48px);
  justify-content: space-evenly;
}

.camp {
  width: 100%;
  padding: 20px;
  background: url("grafika/ramecky.png") center/100% 100% no-repeat;
}

.camp__content {
  position: relative;
  color: #2d531a;
}

.camp__image {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: bottom;
}

.camp__info {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 140px;
  padding-top: 10px;
  background: url("/grafika/pozadi_vylet.png") center/100% 100% no-repeat;
  font-family: "Gloria Hallelujah", cursive;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camp__title {
  font-size: 160%;
  font-weight: bold;
  line-height: 1.2;
}

.camp__link {
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 70%;
}

.process {
  position: relative;
  z-index: 10;
  height: 800px;
  margin-top: -65px;
  padding-top: 100px;
  background: url("grafika/pozadi_proces.png") bottom/100% 100% no-repeat;
}

.process__header {
  display: flex;
  padding-inline: 24px;
  text-align: center;
  flex-direction: column;
  align-items: center;
}
.process__header .title--small {
  margin-bottom: 8px;
}

.process__content {
  display: flex;
  margin-top: 60px;
  align-items: center;
  justify-content: space-around;
}

.process__tree {
  width: 160px;
}

.process__item {
  position: relative;
  display: flex;
  width: 150px;
  height: 150px;
  padding: 30px;
  border-radius: 50%;
  background: url("grafika/kolecko.png") center/100% 100% no-repeat;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
}

.process__item:nth-child(2) {
  width: 160px;
  height: 160px;
  margin-top: -220px;
}

.process__item:nth-child(4) {
  width: 170px;
  height: 170px;
  margin-top: 40px;
}

.process__item:nth-child(5) {
  width: 200px;
  height: 200px;
  margin-top: -100px;
}

.process__item:nth-child(2)::before,
.process__item:nth-child(3)::before,
.process__item:nth-child(4)::before,
.process__item:nth-child(5)::before {
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.process__item:nth-child(2)::before {
  bottom: -124px;
  left: -140px;
  width: 100px;
  height: 177px;
  background-image: url("grafika/process_arrow_1.png");
  rotate: 22deg;
}

.process__item:nth-child(3)::before {
  bottom: 130px;
  left: -177px;
  width: 177px;
  height: 96px;
  background-image: url("grafika/process_arrow_2.png");
  rotate: 45deg;
}

.process__item:nth-child(4)::before {
  bottom: 65px;
  left: -198px;
  width: 177px;
  height: 100px;
  background-image: url("grafika/process_arrow_3.png");
  rotate: 45deg;
}

.process__item:nth-child(5)::before {
  bottom: 15px;
  left: -195px;
  width: 184px;
  height: 150px;
  background-image: url("grafika/process_arrow_4.png");
  rotate: 15deg;
}

.footer-content {
  position: relative;
  z-index: 9;
  display: flex;
  width: 100%;
  margin-top: -180px;
  background: #e8e3d5;
}

.footer-content__gallery,
.footer-content__contact {
  width: 50%;
  min-height: 600px;
  padding: 120px clamp(40px, 10vw, 200px) 60px 60px;
}

.footer-content__gallery {
  background: url("grafika/pozadi_galerie.png") center/100% 100% no-repeat;
}

.gallery__title {
  margin-top: 10px;
  color: white;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery__link {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 180ms ease-out;
}

@media (hover: hover) {
  .gallery__link:hover .gallery__image {
    transform: scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__image {
    transition: none;
  }
}
.contact__title {
  margin-top: 10px;
}

.camp-page {
  width: 100%;
  padding: 0 clamp(32px, 4vw, 56px) 80px;
}

.camp-page__title {
  margin-top: 0;
}

.camp-page__slogan {
  margin-bottom: 16px;
}

.camp-page__divider {
  height: 4px;
  margin: 60px 0;
  border: 0;
  background: #2d531a;
}

.camp-details {
  display: flex;
  align-items: flex-start;
  padding-top: 40px;
  gap: 40px;
}

.camp-details__fields {
  min-width: 400px;
  display: flex;
  padding: 32px;
  border-radius: 16px;
  background: #2d531a;
  color: #e8e3d5;
  flex-direction: column;
}

.camp-details__field:not(:last-child) {
  margin-bottom: 16px;
}

.camp-details__label {
  margin-right: 4px;
  font-weight: bold;
}

.camp-details__value {
  overflow-wrap: anywhere;
}

.camp-details__description > :first-child {
  margin-top: 0;
}

.registration {
  display: flex;
  min-height: 100%;
  padding: 120px 8% 80px;
  flex-direction: column;
  justify-content: center;
}

.registration--embedded {
  padding: 0;
}

.registration__form {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  gap: 18px;
}

.page--registration .registration__form {
  max-width: none;
}

.registration__field {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.registration__field label {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.registration__field input,
.registration__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #2d531a;
  border-radius: 8px;
  background: transparent;
  color: #2d531a;
  font: inherit;
  font-size: 18px;
}

.registration__field textarea {
  min-height: 96px;
  resize: vertical;
}

.registration__field input:focus,
.registration__field textarea:focus {
  outline: 3px solid rgba(45, 83, 26, 0.2);
  outline-offset: 2px;
}

.registration__form button {
  padding: 16px 24px 12px 24px;
  align-self: flex-start;
}

.registration__message {
  margin: 0 0 18px;
  font-family: "League Spartan", sans-serif;
  font-weight: bold;
}

.registration__message--error {
  color: #9f1d1d;
}

.registration__participants,
.registration__parents {
  display: flex;
  margin: 12px 0;
  flex-direction: column;
  gap: 18px;
}

.registration__participants-header,
.registration__parents-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.registration__participants-header h3,
.registration__parents-header h3,
.registration__participant h4,
.registration__parent h4 {
  margin: 0;
  text-transform: uppercase;
}

.registration__participant,
.registration__parent {
  display: flex;
  padding: 20px;
  border: 2px solid #2d531a;
  border-radius: 8px;
  flex-direction: column;
  gap: 14px;
}

.registration__participant-header,
.registration__parent-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.registration__add-participant,
.registration__remove-participant,
.registration__add-parent,
.registration__remove-parent {
  padding: 8px 14px;
  font-size: 80%;
}

.registration__remove-participant,
.registration__remove-parent {
  border: 2px solid #2d531a;
  background: transparent;
  color: #2d531a;
}

.registration__form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page--registration #participants,
.page--registration #parents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.registration__row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.registration__additional-contact {
  display: flex;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 83, 26, 0.45);
  flex-direction: column;
  gap: 12px;
}

.registration__additional-contact h5,
.registration__additional-contact p {
  margin: 0;
}

.registration__additional-contact h5 {
  font-size: 20px;
  text-transform: uppercase;
}

.registration__additional-contact p {
  font-size: 16px;
}

.registration__terms {
  margin-top: 8px;
}

.registration__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
}

.registration__checkbox input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #2d531a;
}

.registration__checkbox input[type=checkbox]:focus-visible {
  outline: 3px solid rgba(45, 83, 26, 0.2);
  outline-offset: 2px;
}

@media (max-width: 1600px) {
  .process__item:before {
    display: none;
  }
}
@media (max-width: 1300px) and (min-width: 1024px) {
  .page {
    font-size: 20px;
  }
  .about__image {
    aspect-ratio: 3/4;
    width: 360px;
    height: 420px;
  }
  .about {
    background-size: 420px auto, 200% 100%;
    background-position: right, center;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .page {
    font-size: 20px;
  }
  .header {
    height: auto;
    min-height: 210px;
    padding: 16px 5% 24px;
    flex-wrap: wrap;
    row-gap: 12px;
    background: #e8e3d5;
  }
  .header__logo {
    height: 86px;
  }
  .header__nav {
    order: 3;
    min-width: 100%;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
  }
  .header__nav-link {
    font-size: 19px;
  }
  .header__camp-link {
    font-size: 18px;
  }
  .banner {
    height: 720px;
    min-height: 0;
    margin-top: -80px;
  }
  .about {
    display: block;
    margin-top: -160px;
    padding-top: 210px;
    padding-bottom: 430px;
    background-size: 200% 100%;
    gap: 24px;
    background-image: url("grafika/pozadi_o_nas_top.png");
    background-position: center;
  }
  .about__media {
    justify-content: center;
  }
  .about__image-paperclip {
    display: none;
  }
  .about__image {
    margin-top: 60px;
    margin-right: 0;
  }
  .camps {
    height: auto;
    min-height: 680px;
    margin-top: -390px;
    padding-top: 110px;
    padding-bottom: 150px;
  }
  .camp {
    padding: 14px;
  }
  .camp__info {
    height: 115px;
  }
  .process {
    height: auto;
    min-height: 720px;
    padding: 100px 5% 60px;
    background: #e8e3d5;
  }
  .process__content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    justify-items: center;
  }
  .process__start {
    grid-column: 1/-1;
  }
  .process__tree {
    width: 110px;
  }
  .process__item,
  .process__item:nth-child(2),
  .process__item:nth-child(4),
  .process__item:nth-child(5) {
    width: min(100%, 150px);
    height: auto;
    margin-top: 0;
    padding: 24px;
    aspect-ratio: 1;
  }
  .process__item:nth-child(3),
  .process__item:nth-child(5) {
    margin-top: 100px;
  }
  .process__item:nth-child(n)::before {
    display: none;
  }
  .footer-content {
    margin-top: 0;
  }
  .footer-content__gallery {
    width: 60%;
  }
  .footer-content__contact {
    width: 40%;
  }
  .footer-content__gallery {
    padding: 100px 10% 60px 5%;
  }
  .camp-page {
    padding-inline: 5%;
  }
  .camp-details {
    flex-direction: column;
    gap: 28px;
  }
  .page--registration #participants,
  .page--registration #parents {
    grid-template-columns: 1fr;
  }
}
/* Mobile */
@media (max-width: 767px) {
  .page {
    font-size: 18px;
  }
  .page--home {
    background-attachment: fixed;
  }
  .section-padding {
    padding-inline: 6%;
  }
  .title {
    font-size: clamp(36px, 11vw, 52px);
  }
  .title--small,
  .title--medium {
    font-size: clamp(30px, 9vw, 40px);
  }
  .badge {
    padding: 12px 12px 7px;
    font-size: 100%;
  }
  .header {
    min-height: 160px;
    padding: 0 5% 0;
    gap: 8px 16px;
  }
  .header__logo {
    height: 72px;
  }
  .header__nav {
    gap: 8px 16px;
  }
  .header__nav-link {
    font-size: 16px;
  }
  .header__camp-link {
    max-width: 155px;
    padding: 10px 12px 7px;
    font-size: 15px;
    white-space: normal;
  }
  .banner {
    height: 68svh;
    min-height: 440px;
    max-height: 620px;
    margin-top: -52px;
  }
  .banner__content {
    padding-top: 100px;
  }
  .about {
    display: block;
    margin-top: -100px;
    padding-top: 160px;
    padding-bottom: 350px;
  }
  .about__content p {
    line-height: 1.65;
  }
  .about__media {
    margin-top: 80px;
    justify-content: center;
  }
  .about__image {
    width: min(80vw, 330px);
    height: 384px;
    margin: 0;
  }
  .camps {
    min-height: 0;
    margin-top: -300px;
    padding-top: 100px;
    padding-bottom: 60px;
    background-size: auto 100%;
    background: #2d531a;
  }
  .camps__title {
    margin-bottom: 28px;
    text-align: center;
  }
  .camps__content {
    grid-template-columns: minmax(0, 340px);
    gap: 22px;
    justify-content: center;
  }
  .camp {
    padding: 18px;
  }
  .camp__info {
    height: 130px;
  }
  .process {
    min-height: 780px;
    margin-top: 0;
    padding: 60px 6% 60px;
    background-size: auto 100%;
  }
  .process__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
    gap: 18px;
  }
  .process__item,
  .process__item:nth-child(2),
  .process__item:nth-child(4),
  .process__item:nth-child(5) {
    width: min(100%, 140px);
    padding: 20px;
    font-size: 105%;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-content__gallery {
    background: #2d531a;
  }
  .footer-content__gallery,
  .footer-content__contact {
    width: 100%;
    min-height: 0;
    padding: 60px 6% 60px;
  }
  .footer-content__gallery {
    min-height: 540px;
  }
  .footer-content__contact {
    padding-top: 64px;
  }
  .gallery__grid {
    gap: 8px;
  }
  .camp-page {
    padding: 28px 5% 60px;
  }
  .camp-page__divider {
    margin: 40px 0;
  }
  .camp-details {
    padding-top: 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .camp-details__fields {
    width: 100%;
    padding: 24px;
  }
  .registration__participants-header,
  .registration__parents-header,
  .registration__participant-header,
  .registration__parent-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .registration__participant,
  .registration__parent {
    padding: 16px;
  }
  .registration__row {
    flex-direction: column;
    gap: 14px;
  }
  .registration__form button {
    max-width: 100%;
  }
}
footer {
  background: #2d531a;
  color: #e8e3d5;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

a:hover {
  text-decoration: underline;
}
