html {
  scroll-behavior: smooth;
}

body {
  max-width: 1440px;
  margin: 0 auto;
}

.button-primary:hover {
  border-radius: 2px !important;
  border: 1px solid #bb945f !important;
  background-color: #bb945f !important;
  cursor: pointer !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Modal Login*/
.modal.login,
.modal.register {
  width: 250px;
  height: 262px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  z-index: 2;
}

.modal.login__content,
.modal.register__content {
  display: flex;
  flex-direction: column;
  margin: 20px 0 20px 25px;

  .modal.login__title,
  .modal.register__title {
    text-align: center;
    color: #000;
    text-align: center;
    font-family: Forum;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .modal.login__closebutton,
  .modal.register__closebutton {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
  }

  .modal.login__form-textcontainer,
  .modal.register__form-textcontainer {
    display: flex;
    gap: 10px;

    .modal.login__form-text,
    .modal.register__form-text {
      color: #000;
      text-shadow: 0px 2px 3px rgba(255, 255, 255, 0.16);
      font-family: Inter;
      font-size: 10px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
    .modal.login__form-textbutton,
    .modal.register__form-textbutton {
      color: #0c0c0e;
      text-align: center;
      font-family: Inter;
      font-size: 10px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      letter-spacing: 1px;
      text-decoration-line: underline;
      cursor: pointer;
    }
  }
}

.modal.login__form,
.modal.register__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal.login__form-label,
.modal.register__form-label {
  color: #000;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.3px;
}
.modal.login__form-input,
.modal.register__form-input {
  border: 1px solid #bb945f;
  width: 200px;
  height: 20px;
  flex-shrink: 0;
}
.modal.login__form-button,
.modal.register__form-button {
  width: 75px;
  height: 30px;
  margin: 10px 0px 10px 0px;
  border-radius: 2px;
  border: 1px solid #0c0c0e;
  background-color: #fff;
  color: #0c0c0e;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
}

/* Modal Register*/
.modal.register {
  width: 250px;
  height: 382px;
}

/* Header */

.header {
  background-color: black;
  display: flex;
  height: 90px;
  align-items: center;
  justify-content: space-between;
}

h1 {
  color: #fff;
  font-family: Forum;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 0.6px;
  margin-left: 20px;
}

.nav__list,
.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-container {
  gap: 40px;
  position: relative;
}

.nav__list {
  gap: 30px;
}

.nav__link {
  color: #fff;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  text-decoration: none;
}

.icon-profile {
  margin-right: 20px;
  cursor: pointer;
}

.burger-icon,
.burger-menu {
  display: none;
}

/* Dropmenu */

.dropmenuprofile {
  background: #fff;
  width: 80px;
  height: 115px;
  position: absolute;
  right: 20px;
  z-index: 10;
  top: 40px;
  display: none;
}

.dropmenuprofile__title {
  color: #000;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  margin-top: 5px;
}
.dropmenuprofile__title::after {
  display: block;
  content: "";
  width: 40px;
  height: 1px;
  margin: 5px auto 0px auto;
  background-color: #bb945f;
}

.dropmenuprofile__list {
  margin-top: 15px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dropmenuprofile__list-item {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

/* Section Welcome */

.welcome {
  height: 600px;
  background-image: url("assets/Welcome.png");
}

.welcome__text {
  color: #fff;
  text-align: center;
  font-family: Forum;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background-color: black;

  width: 520px;
  height: 150px;
  padding: 35px 40px;

  position: relative;
  top: 220px;
}

/* Section About */

.about h2 {
  margin-top: 20px;
}

h2 {
  margin-top: 60px;
  color: #0c0c0e;
  font-family: Forum;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  text-align: center;
  position: relative;
}

h2::after {
  display: block;
  content: "";
  width: 50px;
  height: 1px;
  margin: 18px auto 47px auto;
  background-color: #0c0c0e;
}

.about__text {
  margin-top: 61px;
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
}

.slider {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.slider-carousel {
  display: flex;
  align-items: center;
  margin: auto;
  gap: 67px;
}

.slider-wrapper {
  width: 1400px;
  overflow: hidden;
}

.slider-line {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  left: 0;
  margin: auto;
  transition: transform 0.3s ease-in-out;
}

.slider-image {
  width: 450px;
}

.slider-controls {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-buttonwrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  cursor: pointer;
  border-radius: 50%;
}

.slider-button {
  background-color: #0c0c0e;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.slider-button--active {
  background: #bb945f;
}

/* Section Favorites */

.favorites {
  margin-top: 40px;
}

.favorites__text {
  color: #000;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 61px 0 0 20px;
}

.favorites__seasons {
  display: flex;
  margin: 40px 0 0 20px;
  gap: 90px;
  flex-wrap: wrap;
}

.favorites__seasons-input {
  accent-color: black;
  margin-right: 20px;
  width: 17px;
  height: 17px;
}

.favorites__seasons-input:checked ~ .favorites__seasons-label {
  font-weight: 700;
}

.favorites__seasons label {
  color: #000;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.favorites__seasons-input,
.favorites__seasons label:hover {
  cursor: pointer;
}
.seasons {
  position: relative;
  margin-top: 40px;
  height: 1140px;
}

.books__season {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.books__season.visible {
  opacity: 1;
}

.books {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px 260px;
  overflow: hidden;
}

.books__card {
  width: 550px;
  height: 555px;
  flex-shrink: 0;
  border: 1px solid #000;
  position: relative;
}

.books__card-wrapper {
  margin-left: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Равномерное распределение контента внутри обертки */
}

.books__card-bookname {
  color: #000;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 20px;
}

.books__card-tag {
  color: #000;
  font-family: Forum;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  position: relative;
  margin-top: 15px;
}

.books__card-tag::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -2px;
  width: 60px;
  height: 1px;
  background-color: #bb945f;
}

h3 {
  color: #000;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  margin-top: 20px;
}

.books__card-description {
  color: #000;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  width: 355px;
  margin-top: 20px;
}

.books__card-button {
  color: #0c0c0e;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  width: 75px;
  height: 30px;
  border-radius: 2px;
  border: 1px solid #0c0c0e;
  background-color: white;
  margin-bottom: 15px;
}

.books__card-button--disabled {
  color: #bb945f;
  background: white;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1px solid #bb945f;
}

.books__card-button--disabled:hover {
  color: #bb945f;
  background: white;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1px solid #bb945f;
}

.books__card-img {
  position: absolute;
  top: 256px;
  left: 390px;
  width: 200px;
  height: 300px;
}

/* Section Cofeeshop */

.coffeeshop {
  margin-top: 40px;
}

.coffeeshop__text {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  margin-top: 40px;
}

.menu {
  margin-top: 40px;
  display: flex;
  gap: 428px;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}

.menu__desserts,
.menu__drinks {
  display: flex;
  flex-direction: column;
}

.menu__desserts .menu__title {
  text-align: right;
}
.menu__title {
  color: #bb945f;
  font-family: Forum;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
}

.menu__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu__list-item {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
.menu__drinks .menu__list-item {
  justify-content: start;
}
.menu__desserts .menu__list-item {
  justify-content: end;
}

.menu__list-line {
  width: 100px;
  height: 1px;
}
.menu__drinks .menu__list-product {
  width: 199px;
}

.menu__list-product {
  color: #000;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
}

.menu__list-price {
  color: #000;
  font-family: Forum;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
}

/* Section Contacts */
.contacts {
  margin-top: 40px;
}

.contacts__container {
  display: flex;
  justify-content: space-between;
  gap: 201px;
  margin-top: 61px;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts__info-text span {
  color: #000;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
  text-decoration: none;
}

.contacts__info-text {
  color: #000;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: capitalize;
}

.contacts__info-phonenumber {
  text-decoration: none;
  color: #000;
}

.contacts__info-mail {
  text-decoration: none;
  color: #000;
}

.contacts__info-text:nth-child(1),
.contacts__info-text:nth-child(4) {
  margin-bottom: 20px;
}

.contacts__map {
  width: 696px;
  height: 414px;
}

/* Section Library Cards */

.librarycards-container {
  display: flex;
  justify-content: space-between;
  margin-top: 61px;
  margin-bottom: 40px;
}

.findcard__title {
  color: #000;
  font-family: Inter;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  text-align: center;
}

.findcard__border {
  width: 600px;
  height: 386px;
  flex-shrink: 0;
  border: 3px solid #bb945f;
  background: #fff;
  margin-top: 30px;
}

.findcard__container {
  width: 560px;
  height: 272px;
  flex-shrink: 0;
  background: #bb945f;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 0 20px;
}

.findcard__text {
  color: #000;
  font-family: Forum;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 0.6px;
  margin: 20px 0 0 20px;
}

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

.findcard__form-input {
  color: #bb945f;
  font-family: Forum;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 0.6px;

  border-radius: 10px;
  background: #fff;
  width: 500px;
  height: 66px;
  flex-shrink: 0;
  margin-left: 20px;
  padding-left: 20px;
}

.findcard__form-input::placeholder {
  color: #8e8e8e;
  font-family: Forum;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: 0.6px;
}

.findcard__form-button {
  border-radius: 2px;
  border: 1px solid #0c0c0e;

  color: #0c0c0e;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  background-color: white;
  width: 242px;
  height: 44px;

  margin: 0 auto;
  margin-top: 20px;
}

.login {
  width: 456px;
}

.login__title {
  color: #000;
  text-align: right;
  font-family: Forum;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
}

.login__text {
  color: #000;
  text-align: right;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0.4px;
  margin-top: 35px;
}

.login__buttons {
  margin-top: 35px;
  display: flex;
  justify-content: end;
  gap: 20px;
}

.login__signupbutton,
.login__loginbutton {
  display: flex;
  width: 75px;
  height: 30px;
  padding: 10px 0px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background-color: white;

  border-radius: 2px;
  border: 1px solid #0c0c0e;

  color: #0c0c0e;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
}

/* Footer */

.footer {
  background-color: #0c0c0e;
}

.footer__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer__top-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 0 20px;
}
.footer__address {
  color: #fff;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  width: 229px;
  flex-shrink: 0;
  text-decoration: none;
}
.sociallinks {
  display: flex;
  gap: 15px;
}

.footer__top-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 20px 0 0;
}
.footer__top-timetable {
  color: #fff;
  text-align: right;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.footer__line {
  display: block;
  height: 1px;
  width: 95%;
  margin: 20px auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 44px 20px 0 20px;
  padding-bottom: 44px;
}

.footer__bottom-year,
.footer__bottom-logo,
.footer__bottom-username,
.footer__bottom-link {
  color: #fff;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 2px;
  text-decoration: none;
}

.hidden {
  display: none;
}

/* Media queries */

@media (max-width: 1024px) {
  .media-hidden {
    display: none;
  }
  .media-shown {
    display: block;
  }

  /* Header */

  .nav {
    display: none;
  }

  /* Modal Login*/
  .modal.login,
  .modal.register {
    top: 15%;
  }

  /* Dropmenu */
  .dropmenuprofile {
    right: 125px;
    top: 30px;
  }

  /* Burger */
  .burger-icon {
    display: block;
    margin-right: 20px;
  }
  .burger-icon:hover {
    cursor: pointer;
  }
  .burger-menu {
    display: block;
    position: absolute;
    right: 0;
    z-index: 10;
    top: 0;
    width: 332px;
    height: 570px;
    background-color: black;
  }
  .burger-buttons {
    display: flex;
    gap: 20px;
    margin: 31px 20px 0 212px;
    align-items: center;
  }
  .burger-buttons.icon-profile {
    width: 28px;
    height: 28px;
  }
  .burger-close {
    width: 32px;
    height: 32px;
  }
  .burger-close:hover {
    cursor: pointer;
  }
  .burger-nav {
    margin-top: 41px;
  }
  .burger-nav__list {
    flex-direction: column;
    gap: 30px;
  }

  .roll-down-animation {
    animation-name: rollDown;
    animation-duration: 1s;
    animation-fill-mode: forwards;
  }
  .roll-up-animation {
    animation-name: rollUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
  }
  @keyframes rollDown {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes rollUp {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-100%);
    }
  }

  /* Welcome */
  .welcome {
    background-image: url("assets/Welcome768.png");
  }

  /* About */
  .about__text {
    margin: 0 20px;
  }
  .slider-wrapper {
    width: 450px;
    overflow: hidden;
  }
  .slider-line {
    flex-wrap: nowrap;
    gap: 0px;
  }
  .slider-leftbutton,
  .slider-rightbutton {
    display: block;
  }
  .slider-leftbutton:hover,
  .slider-rightbutton:hover {
    cursor: pointer;
  }
  .slider-buttonwrapper {
    display: flex;
  }
  .active {
    display: block;
  }

  @keyframes move-left {
    from {
    }
  }

  .transition-right {
  }

  /* Favorites */

  .seasons {
    height: 2340px;
  }

  .favorites__seasons {
    gap: 40px;
  }
  .favorites__seasons-label {
    display: flex;
    align-items: center;
  }

  /* Coffeeshop */

  .coffeeshop__text {
    margin: 0 20px;
  }
  .menu {
    margin-left: 20px;
    margin-right: 20px;
    gap: 40px;
    flex-direction: column;
  }

  /* Contacts */

  .contacts__container {
    flex-wrap: wrap;
    gap: 100px;
  }
  .contacts__info {
    margin-left: 20px;
  }
  .contacts__map {
    margin: 0 auto;
  }

  /* Library Cards */
  .librarycards-container {
    flex-direction: column;
    align-items: center;
    gap: 21px;
    margin-bottom: 40px;
  }
  .login {
    width: 600px;
  }
  .login__title,
  .login__text {
    text-align: center;
  }
  .login__buttons {
    justify-content: center;
  }
}
