* {
  box-sizing: border-box;
}
body {
  background-color: #621402;
  font-family: "Roboto", sans-serif;
  color: #fff;
}
.container {
  max-width: 1170px;
  margin: auto;
  width: 90%;
}
.header {
  padding-bottom: 60px;
  background:
    linear-gradient(180deg, rgba(98, 20, 2, 0.31) 0%, #621402 85.62%),
    url(../img/bg.jpg) no-repeat center top / cover;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
}
.nav {
  position: relative;
}
.m-menu {
  display: none;
}
.menu {
  list-style-type: none;
  display: flex;
  margin: 0;
  margin-left: 17px;
}
.menu-item {
  margin-right: 25px;
}
.menu-link {
  color: #fff;
  text-decoration: none;
}
.user {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.avatar {
  background-color: #fff;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  margin-left: 11px;
}
.film {
  display: flex;
  align-items: center;
  margin-top: 60px;
}
.film-title-small {
  opacity: 0.5;
  font-size: 24px;
  line-height: 1.5;
}
.film-title {
  font-style: 36px;
  line-height: 42px;
  margin-top: 11px;
  margin-bottom: 23px;
}
.film-description {
  font-size: 16px;
  line-height: 1.5;
  max-width: 560px;
}
.film-trailer {
  margin: auto;
}
.film-details {
  margin-top: 50px;
  display: flex;
  align-items: center;
}
.time {
  display: flex;
  align-items: center;
}
.time-icon {
  margin-right: 14px;
}
.rating {
  display: flex;
  align-items: center;
  margin-left: 34px;
}
.rating-icon {
  margin-right: 14px;
}
.rating-current {
  font-size: 24px;
  line-height: 150%;
}
.session {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 62px;
  padding-top: 46px;
  padding-bottom: 63px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.session-label {
  display: block;
  margin-bottom: 20px;
}
.session-date-block {
  display: flex;
}
.session-date-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  text-align: center;
  width: 90px;
  height: 90px;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: background-color 0.2s;
}
.session-date-item:hover {
  background-color: #fe8e05;
  color: #621402;
}
.session-month {
  font-size: 16px;
  line-height: 19px;
}
.session-day {
  font-weight: 900;
  font-size: 30px;
  line-height: 35px;
}
.session-week {
  font-size: 19px;
  line-height: 22px;
}
.select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  color: #fff;
  padding: 18px;
  cursor: pointer;
  margin-top: 15px;
}
.select option {
  background-color: #621402;
}
.select-cinema {
  width: 470px;
}
.scheme {
  background: rgba(36, 36, 36, 0.18);
  border-radius: 10px;
  margin-bottom: 40px;
}
.scheme-svg {
  max-width: 1170px;
}
.scheme path:not(.light) {
  fill: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.scheme path:not(.light):hover {
  fill: rgba(255, 255, 255, 0.5);
}
.scheme path.booked,
.scheme path.booked:hover {
  fill: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}
.scheme path.active,
.scheme path.active:hover {
  fill: #fe8e05;
}
.legend {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  max-width: 1024px;
  width: 90%;
  margin: auto;
  padding-top: 22px;
  padding-bottom: 38px;
}
.legend-label {
  display: flex;
  align-items: center;
  margin-right: 30px;
  color: rgba(255, 255, 255, 0.5);
}
.legend svg {
  margin-right: 7px;
}
.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 40px;
}
.price-label {
  display: block;
  font-size: 18px;
  line-height: 21px;
}
.price-tag {
  font-size: 52px;
  line-height: 61px;
}
.button {
  display: block;
  background: #fe8e05;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  line-height: 21px;
  padding: 24px 52px;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  .select-cinema {
    width: 100%;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 750px;
  }
  .session {
    flex-wrap: wrap;
  }
  .session-date {
    flex-basis: 70%;
    margin-bottom: 40px;
  }
  .session-time {
    order: 2;
  }
  .session-cinema {
    order: 3;
  }
  .menu-item {
    margin-right: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 560px;
  }
  .menu {
    position: absolute;
    padding: 20px;
    margin-left: 20px;
    flex-direction: column;
    background-color: #621402;
    z-index: 9;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20%);
    transition: opacity 0.5s, transform 0.5s;
  }
  .menu-item:not(:last-child) {
    margin-bottom: 10px;
  }
  .m-menu {
    display: block;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
  }
  .is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .film-description {
    margin-right: 30px;
  }
  .film {
    flex-direction: column;
  }
  .film-trailer {
    margin-right: auto;
    margin-left: 0;
    margin-top: 40px;
  }
}
@media (max-width: 430px) {
  .film-details {
    margin-top: 30px;
  }
  .session {
    margin-top: 40px;
  }
  .session-date-item {
    width: 76px;
  }
  .session-cinema {
    width: 70%;
  }
  .legend {
    display: block;
  }
  .button {
    font-size: 16px;
    padding: 20px 40px;
  }
  .price-tag {
    font-size: 36px;
  }
}