* {
  box-sizing: border-box;
}
body {
  background-color: #33415f;
  font-family: "Roboto", sans-serif;
  color: #fff;
}

.container {
  max-width: 1170px;
  margin: auto;
  width: 90%;
}
.header {
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(51, 65, 95, 0.31) 0%, #33415f 85.62%),
    url("../img/bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  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 {
  text-decoration: none;
  color: #fff;
}
.user {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  margin-left: 11px;
}
.film {
  margin-top: 60px;

  display: flex;
  align-items: center;
}
.film-title-small {
  opacity: 0.5;
  font-size: 24px;
  line-height: 150%;
}
.film-title {
  font-weight: bold;
  font-size: 36px;
  line-height: 42px;
  margin-top: 11px;
  margin-bottom: 23px;
}
.film-description {
  max-width: 560px;
  height: 168px;
  font-size: 16px;
  line-height: 150%;
}
.film-treiler {
  margin: auto;
}
.film-details {
  display: flex;
  align-items: center;
  margin-top: 50px;
}
.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 {
  margin-top: 62px;
  padding-top: 46px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.session-label {
  display: block;
  margin-bottom: 20px;
}
.session-date-block {
  display: flex;
}
.session-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  text-align: center;
  width: 90px;
  height: 90px;
  margin-right: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.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;
}
.session-date-item:hover {
  background-color: #ff7f5a;
  color: #67132c;
}
.select {
  border-radius: 5px;
  padding: 18px;
  color: #fff;
  cursor: pointer;
  outline: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: 15px;
}
.select:focus {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
option {
  outline: none;
  background-color: #525d77;
  -webkit-background-color: #525d77;
  -o-background-color: #525d77;
  -moz-background-color: #525d77;
  border-radius: 5px;
}
.select-cinema {
  width: 470px;
}
.scheme {
  margin-bottom: 40px;
  background-color: rgba(36, 36, 36, 0.18);
  border-radius: 10px;
}
.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.occupied,
.scheme path.occupied:hover {
  fill: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}
.scheme path.active,
.scheme path.active:hover {
  fill: #ff7f5a;
}

.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;
  justify-content: center;
  align-items: center;
  margin-right: 30px;
  color: rgba(255, 255, 255, 0.5);
}
.legend svg {
  margin-right: 15px;
}
.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 40px 0;
}
.price-label {
  font-size: 18px;
  line-height: 21px;
}
.price-tag {
  display: flex;
  flex-direction: column;
  font-size: 52px;
  line-height: 61px;
}
.total-price {
  margin-top: 12px;
}
.button {
  padding: 24px 52px;
  background: #ff7f5a;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  line-height: 21px;
  color: #fff;
  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;
    left: 0;
    top: 40px;
    padding: 20px;
    margin-left: 20px;
    flex-direction: column;
    background-color: #33415f;
    z-index: 9;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.5s, transform 0.5s;
  }
  .menu-item:not(:last-child) {
    margin-bottom: 10px;
  }
  .m-menu {
    display: block;
    background-color: 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-treiler {
    margin-right: auto;
    margin-left: 0;
  }
}
@media (max-width: 450px) {
  .container {
    max-width: 90%;
}
  .legend {
    flex-wrap: wrap;
  }
  .legend-label {
    padding-top: 10px;
  }
  .film-details {
    margin-top: 115px;
  }
  .button-pay {
    padding: 25px 35px;
  }
  .price.container {
    flex-wrap: wrap;
  }
}

@media (max-width: 400px) {
  .film-details {
          margin-top: 330px;
  }
  .session-date-block {
    display: flex;
    flex-direction: column;
  }
  .session-date-item {
    margin-bottom: 10px;
}
}
