html {
  scroll-behavior: smooth;
}

* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

p,
span,
li,
a,
button,
label,
input,
fieldset,
legend,
td {
  font-family: "PT Sans Caption", sans-serif;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h6 {
  font-family: "Gothic60", sans-serif;
}

h1 {
  font-size: 100px;
  margin-bottom: 100px;
  text-align: center;
}

h2 {
  font-size: 50px;
  margin-bottom: 50px;
}

h3 {
  font-size: 30px;
  margin-bottom: 30px;
}

h4,
h5 {
  font-size: 25px;
}

.wrapper,
main {
  max-width: 1200px;
  margin: 0 auto;
}


/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  width: 165px;
  height: 41px;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.header__burger {
  display: none;
}

nav {
  ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;

    li {
      width: fit-content;
    }
  }

  .nav-item {
    text-decoration: none;
    color: #000;
  }

  .nav-item::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.2s ease;
  }

  .nav-item:hover::after {
    width: 100%;
  }
}

.button-transparent {
  border: 1px solid #000;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  transition: background-color 0.2s ease;

  a {
    text-decoration: none;
    color: #000;
  }
}

.button-transparent:hover {
  background-color: #000;
  color: #fff;

  a {
    color: #fff;
  }
}

/* MAIN */

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 100px;

  h1 {
    margin-top: 60px;
  }

  .filters-form {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 20px;

    @media (max-width: 600px) {
      gap: 5px;
    }

    .box {
      background-color: #101010;
      color: #fff;
      padding: 5px 10px;
      border-radius: 10px;
      display: flex;
      gap: 10px;
      align-items: center;
      min-height: 47.6px;

      span {
        padding: 5px 0;
        display: block;
      }

      .input-box {
        display: flex;
        gap: 5px;
        height: 100%;

        input[type="checkbox"] {
          display: none;
        }

        .gender-btn {
          display: inline-block;
          padding: 10px;
          border-radius: 5px;
          cursor: pointer;
          border: 1px solid #fff;
          transition: 0.2s;
          user-select: none;
        }

        @media (min-width: 1000px) {
          .gender-btn:hover {
            background-color: #fff;
            color: #000;
            border: 1px solid #fff;
          }
        }

        @media (max-width: 1000px) {
          .gender-btn:active {
            background-color: #fff;
            color: #000;
            border: 1px solid #fff;
          }
        }

        input[type="checkbox"]:checked+.gender-btn {
          background: #fff;
          color: #000;
          border: 1px solid #fff;
        }

        input[type="text"] {
          background-color: #fff;
          border-radius: 5px;
          color: #000;
          width: 100px;
          height: 100%;
          outline: none;
          border: none;
        }

        input[type="text"]::placeholder {
          color: rgba(0, 0, 0, 0.5);
        }

        input[type="text"]:focus {
          outline: none;
        }
      }
    }

    .box.options-box {
      padding: 5px 5px 5px 10px;
    }

    .buttons-box {
      display: flex;
      align-items: center;
      gap: 5px;

      button.box {
        border: 1px solid #000;
        cursor: pointer;
        transition: 0.2s;
        background: transparent;
        color: #000;
      }

      @media (min-width: 1000px) {
        button.box:hover {
          background-color: #000;
          color: #fff;
        }
      }

      @media (max-width: 1000px) {
        button.box:active {
          background-color: #000;
          color: #fff;
        }
      }
    }
  }

  .actors-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .actor-card {
    width: 100%;
    aspect-ratio: 2/3;
    text-decoration: none;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
    }

    .actor-card__hover {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      opacity: 0;
      transition: opacity 0.2s ease;
      border-radius: 10px;


      .actor-card__info {
        display: flex;
        flex-direction: column;
        gap: 5px;
        color: #fff;
        transition: opacity 0.2s ease;
        position: absolute;
        bottom: 30px;
        left: 15px;
        max-width: 80%;
      }
    }
  }

  .actor-card:hover {
    .actor-card__hover {
      opacity: 1;
    }
  }
}

/* FOOTER */

footer {
  background-color: #101010;
  color: #fff;
  padding: 40px 20px 0 20px;
  position: relative;
  padding-bottom: 180px;

  .contacts-table {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: min-content min-content;
    gap: 20px;
  }

  .contacts-table__cell {
    padding: 0 20px 50px 0;

    .link {
      text-decoration: none;
      color: #fff;
    }

    .contact__img-container {
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }

    .footer__content-panel {
      display: flex;
      gap: 10px;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid #fff;
      width: fit-content;
      align-items: center;
      text-wrap: nowrap;
    }

    .links-block {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      max-width: 400px;
    }

    .panels-block {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
  }

  .contacts-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-stroke {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.footer-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-color: #000;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* COMPONENTS */

.button {
  background-color: #101010;
  color: #fff;
  padding: 10px 0;
  border-radius: 10px;
  width: 100%;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  outline: none;
  border: 1px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button:hover {
  background-color: #fff;
  color: #000;
}

.privacy-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;

  h1 {
    font-size: 50px;
  }

  h3 {
    margin-top: 30px;
    text-align: left;
  }
}

/* ADAPTIVE */

@media (max-width: 810px) {

  .privacy-page {
    h1 {
      font-size: 30px;
    }
  }

  h4 {
    font-size: 20px;
  }

  footer {
    .contacts-table {
      grid-template-columns: 1fr;
    }
  }

  nav {
    position: fixed;
    top: -100%;
    right: 10px;
    background-color: #fafafa;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 20px;
    padding-bottom: 30px;
    z-index: 100;
    transition: top 0.5s ease;

    ul {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 20px;

    }
  }

  .header__burger {
    display: block;
  }

  main {
    padding: 0 10px;

    .actors-list {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .actor-card {
      .actor-card__hover {
        display: none;
      }
    }
  }
}

@media (max-width: 600px) {

  .privacy-page {
    h1 {
      font-size: 20px;
    }
  }

  main {
    h1 {
      font-size: 70px;
      margin-bottom: 50px;
      margin-top: 30px;
    }
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 24px;
  }

  footer {
    .contact-stroke {
      flex-direction: column-reverse;
      align-items: flex-start;

      .contact-splitter {
        display: none;
      }
    }

    .contacts-box {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  }
}

@media (max-width: 400px) {
  main {
    h1 {
      font-size: 50px;
    }

    .actors-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}