/*-------------- Icon font -------------*/

@import url("https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900&display=swap");

@font-face {
  font-family: iconfont;
  font-display: swap;
  src: url("../fonts/iconfont.ttf");
  font-weight: 400;
  font-style: normal;
}

[class^="_icon-"]:before,
[class*=" _icon-"]:before {
  font-family: "iconfont";
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class^="_icon-"]:before,
[class*=" _icon-"]:before {
  display: block;
}

/*--------------------------------------*/

/*---------- Reset styles --------------*/

* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  min-width: 100%;
  font-size: 62.5%;
  font-weight: 400;
}

body {
  color: #000;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a {
  color: inherit;
}

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

/*-------------- Body ------------------*/

body {
  font-size: 1.6rem;
}

body._lock {
  overflow: hidden;
}

/*------------- Wrapper ----------------*/

.wrapper {
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wrapper > main {
  flex: 1 1 auto;
}

/*------------ Container ---------------*/

[class*="__container"] {
  max-width: 117rem;
  box-sizing: content-box;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/*--------------- ibg ------------------*/

[class*="-ibg"] {
  position: relative;
}

[class*="-ibg"] img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*-------------- Forms ------------------*/

/*--------------- UI -------------------*/

.menu__icon {
  position: relative;
  width: 2rem;
  height: 1.8rem;
}

.menu__icon:before,
.menu__icon:after {
  content: "";
}

.menu__icon .menu__line,
.menu__icon:before,
.menu__icon:after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10%;
  background-color: red;
  transition: all 0.3s ease 0s;
}

.menu__icon:before {
  top: 0;
}

.menu__icon:after {
  bottom: 0;
}

.menu__icon._active:before {
  top: 50%;
  transform: rotate(45deg) translate(0, -50%);
}

.menu__icon._active .menu__line {
  transform: scale(0);
}

.menu__icon._active:after {
  bottom: 50%;
  transform: rotate(-45deg) translate(0, 50%);
}

.menu__line {
  top: 50%;
  transform: scale(1) translate(0, -50%);
}

/*------------- Header ------------------*/

.header {
  position: fixed;
  z-index: 2;
  width: 100%;
  transition: all 0.3s ease 0s;
}

.header._scroll {
  background-color: #212529;
}

.header._scroll .header__body {
  min-height: 6rem;
}

.header__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8rem;
}

.header__logo {
  width: 10rem;
  height: 4rem;
}

.header__cart img {
  width: 2.4rem;
  height: 2.4rem;
  transition: all 0.3s ease 0s;
}

/*-------------- Main ------------------*/

.main {
  padding-top: 8rem;
  position: relative;
  z-index: 1;
}

.main__background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.events-main__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(29rem, 1fr));
  gap: 2rem;
  margin-bottom: 10rem;
}

.events-main__event {
  flex: 0 1 33.333%;
}

.offer {
  display: block;
  text-align: center;
  color: #ff6b6b;
  margin-bottom: 10rem;
  transition: color 0.3s ease 0s;
}

.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18rem;
  min-height: 4rem;
  max-width: 18rem;
  background-color: #6b3a3a;
  color: #fff;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease 0s;
}

.event__body {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.event__image {
  flex: 0 0 100%;
  padding-bottom: 100%;
}

.event__name {
  font-weight: 700;
}

.event__price {
  font-weight: 500;
  margin-bottom: 2rem;
}

.event__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18rem;
  min-height: 3rem;
  max-width: 18rem;
  background-color: #6b3a3a;
  color: #fff;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease 0s;
}

.event-main__dody {
  display: flex;
  gap: 2rem;
  margin-bottom: 10rem;
  flex-direction: column;
}

.event-main__gallery {
  width: 100%;
  padding-bottom: 100%;
}

.event-main__info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.event-main__title {
  font-size: 2.4rem;
  text-transform: uppercase;
  line-height: 120%;
  font-weight: 600;
}

.event-main__price {
  font-size: 1.8rem;
  font-weight: 600;
}

.event-main p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 185%;
}

.cart-main__container {
  max-width: 600px;
}

.cart-main__body {
  margin-bottom: 2rem;
}

.cart-main__form {
  display: flex;
  justify-content: center;
}

.table-cart__body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.table-cart__table-row {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.table-cart__table-data {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.table-cart__table-data--name a {
  display: none;
}

.table-cart__table-data--thumbnail {
  display: none;
}

.table-cart__link-ibg {
  display: inline-block;
  width: 4rem;
  height: 4rem;
}

.table-cart__table-data--amount {
  font-size: 1.4rem;
}

.table-quantity__content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.table-quantity__content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  font-size: 1.8rem;
  border: 0.1rem solid #ced4da;
  border-radius: 50%;
}

.table-quantity__input {
  max-width: 5rem;
  padding: 0.4rem 0.6rem;
  border: 0.1rem solid #ced4da;
}

.table-quantity__delete {
  color: #f03e3e;
}

.collaterals-cart__title {
  margin-bottom: 2rem;
}

.collaterals-cart__table {
  width: 100%;
  text-align: left;
}

.collaterals-cart__table-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.collaterals-cart__table-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.checkout-main__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 29rem;
  min-height: 4rem;
  background-color: #6b3a3a;
  border-radius: 0.5rem;
  color: #fff;
  transition: background-color 0.3s ease 0s;
}

.main-form-checkout__body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.main-form-checkout__inputs {
  flex: 0 0 50%;
  padding: 2rem 2rem 3rem 2rem;
  background-color: #fff;
  border: 0.1rem solid #ced4da;
}

.main-form-checkout__fields h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
}

.main-form-checkout__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-form-checkout__wrapper p {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.main-form-checkout__wrapper p input {
  padding: 1rem 1.2rem;
  background-color: #f1f3f5;
  width: 100%;
}

.main-form-checkout__wrapper p label {
  font-size: 1.4rem;
}

.main-form-checkout__data {
  flex: 0 0 50%;
}

.main-form-checkout__order-review {
  padding: 2rem;
  background-color: #fff;
  border: 0.1rem solid #ced4da;
}

.main-form-checkout__proceed {
  padding: 2rem;
  border: 0.1rem solid #ced4da;
}

.main-form-checkout__personal-data {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.review-order__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
}

.review-order__table {
  width: 100%;
}

.table-review__head {
  text-align: left;
}

.table-review__foot {
  text-align: left;
}

.head-table-review__th {
  font-size: 1.4rem;
  padding-bottom: 1.4rem;
}

.body-table-review__td {
  padding-bottom: 2rem;
}

.body-table-review__td--name {
  display: flex;
  gap: 5rem;
}

.body-table-review__td--name a {
  display: none;
}

.body-table-review__quantiry {
  flex: 0 0 25%;
}

.foot-table-review__tr {
  font-size: 1.4rem;
}

.foot-table-review__th:first-child {
  padding-bottom: 2rem;
}

.payment-method__item {
  font-size: 1.4rem;
}

.personal-data__label a {
  color: #228be6;
}

@media (min-width: 29.998em) {
  .table-cart__table-row {
    display: grid;
    grid-template-columns: 0.1fr 2fr 0.5fr 0.3fr 0.3fr;
    justify-content: space-between;
    align-items: center;
    column-gap: 2rem;
  }

  .table-cart__table-data--thumbnail {
    text-align: center;
    display: block;
  }

  .table-cart__table-data--name {
    flex-direction: column;
  }

  .table-cart__table-data--quantity {
    text-align: center;
  }

  .table-cart__table-data--subtotal {
    justify-content: flex-end;
  }
}

@media (min-width: 47.998em) {
  .menu__icon {
    display: none;
  }

  .event-main__dody {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .event-main__gallery {
    width: 52.3076923077%;
    padding-bottom: 51%;
  }

  .event-main__info {
    flex: 0 1 50%;
  }
}

@media (min-width: 61.998em) {
  .main-form-checkout__body {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 73.125rem) {
  .header__body {
    min-height: calc(6rem + 2 * ((100vw - 32rem) / 85));
  }

  .header__logo {
    width: calc(7rem + 3 * ((100vw - 32rem) / 85));
  }

  .header__logo {
    height: calc(3rem + 1 * ((100vw - 32rem) / 85));
  }

  .events-main__body {
    margin-bottom: calc(3rem + 7 * ((100vw - 32rem) / 85));
  }

  .offer {
    margin-bottom: calc(3rem + 7 * ((100vw - 32rem) / 85));
  }

  .event-main__dody {
    margin-bottom: calc(3rem + 7 * ((100vw - 32rem) / 85));
  }

  .body-table-review__td--name {
    gap: calc(1rem + 4 * ((100vw - 32rem) / 85));
  }
}

@media (max-width: 47.998em) {
  .table-cart__table-row {
    grid-template-columns: 0.1fr 1fr 0.5fr 1fr;
  }
}

@media (max-width: 29.998em) {
  .table-cart__table-data::before {
    content: attr(data-cell);
    font-weight: 600;
    font-size: 1.4rem;
  }
}

@media (min-width: 29.998em) and (max-width: 73.125rem) {
  .table-cart__table-row {
    column-gap: calc(0.4rem + 1.6 * ((100vw - 32rem) / 85));
  }
}

@media (any-hover: hover) {
  .offer:hover {
    color: #b34b4b;
  }

  .add-to-cart:hover {
    background-color: #a61e4d;
  }

  .event__add:hover {
    background-color: #a61e4d;
  }

  .checkout-main__button:hover {
    background-color: #a61e4d;
  }
}