@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --default: #fefefe;
  --contrast: #f48f23;
  --lighter: #13111f;
  --buffer: 60px;
  --transition: 0.4s;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", sans-serif;
  background: #090812;
  color: var(--default);
  font-size: 17px;
  line-height: 160%;
  font-style: normal;
  overflow-x: hidden;
}

main {
  overflow: hidden;
  max-width: 2560px;
  margin: auto;
}

.center {
  text-align: center;
}

section {
  padding: var(--buffer) 0;
  position: relative;
  img {
    width: 100%;
    max-width: 100%;
  }
}

.wrap {
  width: 100%;
  padding: 0 30px;
  max-width: 1440px;
  margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Anton", serif;
  font-weight: 400;
  line-height: 110%;
  margin-bottom: 0.5em;
  margin-top: 1em;
  color: var(--contrast);
  text-wrap: balance;
  letter-spacing: 1px;
  em {
    font-style: normal;
    font-weight: 400;
  }
}

h1 {
  font-size: 5.8rem;
  font-weight: 200;
  margin: 0;
}

#hero h1 {
  opacity: 0;
  transform: translateY(-80px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.hero_text {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

h2 {
  font-size: 2.6rem;
  line-height: 130%;
  margin-top: 0;
  &:after {
    content: attr(headline);
    color: #13111f;
    font-size: 8.525rem;
    position: absolute;
    z-index: -1;
    bottom: 8.525remm;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    white-space: nowrap;
  }
}
h3 {
  font-size: 1.5rem;
  margin: 1em 0;
}
h4 {
  font-size: 1.2rem;
}

p.bigger {
  font-size: 1.2rem;
  line-height: 150%;
}

.alert {
  background-color: var(--contrast);
  padding: 1rem;
  text-align: center;
  color: var(--mint);
  margin-bottom: 1rem;
}

address {
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 150%;
  margin: 1em 0;
}

a {
  color: var(--contrast);
  transition: all var(--transition);
  &:hover {
    text-decoration: none;
  }
}

p {
  margin-bottom: 1.5rem;
  &:last-child {
    margin-bottom: 0;
  }
}

.btn,
.tlacitko a,
input[type="submit"] {
  font-weight: bold;
  padding: 0.5rem 2rem;
  color: #fff;
  border: 2px solid var(--contrast);
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 50px;
  letter-spacing: 1px;
  &:hover {
    background: var(--contrast);
    color: var(--default);
  }
}

p.short,
div.short {
  max-width: 700px;
  margin: auto;
  margin-bottom: 2rem;
}

div.short {
  margin-bottom: 0;
}

.container_instructors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 4rem;
  gap: 1rem;
  img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  h3 {
    margin: 0.5rem 0 2rem 0;
    font-size: 1.4rem;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      bottom: -1rem;
      left: 0;
      width: 50px;
      height: 3px;
      background: var(--contrast);
      transition: all var(--transition);
    }
  }
  .position {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: "Anton", serif;
    letter-spacing: 2px;
  }
  .instructor:hover h3::after {
    width: 70%;
  }
}

.container_footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  div:not(:nth-child(2)) {
    width: 20%;
  }
  div:nth-child(2) {
    width: 40%;
    p {
      width: 90%;
    }
  }
  div:nth-child(1) {
    text-align: center;
  }

  div div:nth-child(1) {
    text-align: left;
  }
  h3 {
    margin-top: 0;
  }
}

.instructor {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.instructor.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kurzy */

.container_courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
  .course {
    .inner {
      background: #1c1a29;
      padding: 3rem 2rem;
      border-radius: 10px;
      overflow: hidden;
      transition: all var(--transition);
      &:hover {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
      }
      &.smaller {
        padding: 2em 2rem;
        margin-top: 1rem;
        a {
          text-decoration: none;
          transition: all var(--transition);
          :hover {
            color: var(--default);
          }
        }
        h3 {
          margin: 0;
        }
      }
      img {
        width: 100%;
        height: auto;
        display: block;
      }
      h3 {
        margin-top: 0;
        font-size: 1.7rem;
      }
      .price,
      .bigger {
        font-size: 1.4rem;
        font-weight: bold;
        margin: 1rem 0;
      }
      .bigger {
        margin-bottom: 0;
      }
      .info {
        margin-top: 2rem;
        position: relative;
        &:before {
          content: "";
          position: absolute;
          top: -1rem;
          left: 0;
          width: 50px;
          height: 4px;
          background: var(--contrast);
          transition: all var(--transition);
        }
      }
      &:hover {
        .info {
          &:before {
            width: 100%;
          }
        }
      }
    }
  }
}

.container_half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  @media (max-width: 900px) {
    grid-template-columns: 1fr;
    .block_image {
      order: -1;
    }
  }
  .block_text {
    max-width: 600px;
    margin: auto;
    ul {
      list-style: inside disc;
      margin: 1.5rem 0;
      line-height: 150%;
    }
  }
  .block_image {
    text-align: right;
    img {
      width: 100%;
    }
    @media (max-width: 900px) {
      margin-bottom: 2rem;
    }
  }
}

section img {
  border-radius: 12px;
}
img.hero_image {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  z-index: -1;
}

.hero_sub_image {
  img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    z-index: -1;
  }
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(9, 8, 18, 0.5) 0%,
      rgba(9, 8, 18, 1) 100%
    );
    z-index: 0;
  }
}

#hero_sub {
  min-height: 300px;
  padding-bottom: 0;
  h1 {
    margin: 2em 0 0;
  }
}

#hero {
  min-height: 800px;
  height: 85dvh;
  max-height: 900px;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: calc(var(--buffer) * 2);
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(9, 8, 18, 0.5) 0%,
      rgba(9, 8, 18, 1) 100%
    );
    z-index: 0;
  }
  &:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: url("../images/arr_down.svg") no-repeat center/contain;
    width: 20px;
    height: 40px;
    z-index: 0;
  }
  .wrap {
    height: 100%;
    display: flex;
    align-items: flex-end;
  }
  .container_half {
    align-items: end;
    position: relative;
    z-index: 1;
  }
}

iframe {
  border: none;
  border-radius: 12px;
}

.block_text {
  ul {
    list-style-type: none;
    padding-left: 0;
  }

  ul li {
    position: relative;
    padding-left: 2em;
    margin: 0.5rem;
    list-style-type: none;
  }

  ul li::marker {
    content: "";
  }

  ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.2em;
    height: 0.18em;
    background: var(--contrast);
    border-radius: 2px;
    display: block;
  }
}

section#gallery {
  background: url("../images/arena.jpg") no-repeat center bottom/100% 100%;
  padding-bottom: calc(2 * var(--buffer));
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}
.slider_photo {
  margin-bottom: calc(2 * var(--buffer));
  position: relative;
}
.slider__photo-item {
  padding-inline: 0.5rem;
}

.slick-dots {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 10px;
  list-style-type: none;
  button {
    width: 8px;
    height: 8px;
    background-color: var(--default);
    border-radius: 6px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0;
  }
  .slick-active button {
    background-color: var(--contrast);
    width: 2rem;
  }
  button:hover {
    background-color: var(--contrast);
  }
}

.slick-arrow {
  background: none;
  border: none;
  font-size: 0;
  width: 50px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  z-index: 1;
  top: -3rem;
  left: 50%;
  display: block;

  &.slick-prev {
    background: url("../images/arr_left.svg") no-repeat center/contain;
    transform: translateX(-105%);
  }
  &.slick-next {
    background: url("../images/arr_right.svg") no-repeat center/contain;
    transform: translateX(5%);
  }
}

a.arrow_box h3 {
  position: relative;
  background: url("../images/arr_right.svg") no-repeat right 1rem center/20px
    20px;
  transition: all var(--transition);
  &:hover {
    background-position: right 0 center;
  }
}

section#news {
  background-color: var(--default);
  padding: calc(var(--buffer) / 2) 0;
  h3 {
    color: var(--lighter);
    margin: 0;
  }
  a {
    color: var(--lighter);
    text-decoration: none;
    &:hover {
      color: var(--contrast);
    }
  }
  a.icon img {
    width: 3rem;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 0 !important;
  }
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav_trigger {
  display: none;
}

header .wrap {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  nav ul {
    list-style: none;
    display: flex;
    li a {
      text-decoration: none;
      color: var(--default);
      margin-left: 2rem;
      font-weight: 500;
      transition: all var(--transition);
      position: relative;
      font-size: 1.2rem;
      &::after {
        content: "";
        position: absolute;
        bottom: -0.5rem;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--contrast);
        transition: all var(--transition);
      }
      &:hover {
        color: var(--contrast);
        &::after {
          width: 100%;
        }
      }
    }
  }
}

footer {
  background-color: var(--lighter);
  padding: var(--buffer) 0;
  color: #6b687a;
  h3 {
    color: #6b687a;
  }
  .menu-footer-menu-container {
    width: 100% !important;
    text-align: left;
  }
  .copy,
  .copy a {
    color: #403d4f;
    margin-top: 2rem;
  }
  ul {
    list-style: none;
    padding: 0;
    li {
      margin-bottom: 0.5rem;
      a {
        text-decoration: none;
        color: #6b687a;
        transition: all var(--transition);
        &:hover {
          color: var(--contrast);
        }
      }
    }
  }
  .socials {
    display: flex;
    margin-top: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    a img {
      width: 2rem;
      height: auto;
      border-radius: none;
      opacity: 0.35;
      transition: all var(--transition);
      &:hover {
        opacity: 1;
      }
    }
  }
}

form {
  label {
    display: block;
    margin: 1rem;
    cursor: pointer;
  }
  p {
    margin: 0;
  }
  input,
  select,
  textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: #1c1a29;
    color: var(--default);
    border: 1px solid #333042;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    &:focus {
      border-color: var(--contrast);
    }
  }
  input[type="submit"] {
    padding: 1rem 2rem;
    background: none;
    display: inline-block;
    width: auto;
    font-size: 1.1rem;
    cursor: pointer;
  }
  input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    vertical-align: middle;
    float: left;
    position: relative;
    top: 7px;
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .nav_trigger {
    display: block;
    cursor: pointer;
    background: url("../images/menu.svg") no-repeat center/contain;
    width: 3rem;
    height: 3rem;
    display: block;
    margin-right: 1rem;
  }
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 2rem;
    &:after {
      font-size: 5.525rem;
      bottom: 5.525rem;
    }
  }
  #hero_sub {
    min-height: auto;
  }
  .hero_sub_image:before {
    height: 30dvh;
  }
  ul#menu-footer-menu {
    text-align: center;
  }
  .kt-inside-inner-col {
    padding: 0 !important;
  }

  .container_footer {
    & div:nth-child(2) {
      p {
        width: 100%;
      }
    }
  }

  section#news a {
    &.icon img {
      display: none;
    }
  }

  body.freeze {
    height: 100vh;
    overflow: hidden;
  }
  header .wrap nav {
    display: block;
    position: fixed;
    top: 25dvh;
    left: 0;
    width: 100%;
    height: 75dvh;
    background: var(--contrast);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 5rem;
    ul {
      flex-direction: column;
      margin: 0;
      align-items: center;
      padding: 0;
      li {
        margin: 0;
        width: 100%;
        text-align: center;
        a {
          font-size: 1.5rem;
          margin-left: 0;
          padding: 1rem 2rem;
          display: block;
          &:hover {
            color: var(--lighter);
          }
        }
      }
    }
  }

  header nav.open {
    transform: translateX(0);
  }

  header .btn {
    display: none;
  }
  footer .container_footer {
    flex-wrap: wrap;
    div {
      width: 100% !important;
      text-align: center;
      p:nth-child(2) {
        width: 100%;
      }
    }
  }
  #hero {
    padding-top: 190px;
    min-height: auto;
    max-height: none;
    height: auto;
    padding-bottom: var(--buffer);
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  footer .container_footer {
    flex-wrap: wrap;
    div {
      width: calc(50% - 2rem) !important;
    }
  }
}
