:root {
  --first-font: 'Gilroy', sans-serif;
  --second-font: 'AvenirNextCyr', sans-serif;

  --accent-color: linear-gradient(348deg, #000000d9, #3c8acd);
  --light-color: #ffffff;
  --text-color: #333;
  --subtitle-color: #ffd800;
  --red-color: #ee3737;
  --form-bg-color: linear-gradient(325deg, #55555529, #00000012);

  --border-radius: 20px;
  --btn-radius: 50px;

  --section-gap: 40px;

  --shadow: 0 0 11px #000000cc;
}

@font-face {
  font-family: 'AvenirNextCyr';
  src: url('../AvenirNextCyr-Regular.woff2.html');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirNextCyr';
  src: url('../AvenirNextCyr-Bold.woff2.html');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../Gilroy-Light.woff2.html');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../Gilroy-Regular.woff2.html');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../Gilroy-ExtraBold.woff2.html');
  font-weight: 700;
  font-style: normal;
}

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

html {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  font-family: var(--first-font);
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--first-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-color);
  gap: var(--section-gap);
  background: #eee;
  overflow-x: hidden;
}

main,
footer {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  overflow-x: hidden;
}

.wrapper {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  background: var(--light-color);
  overflow-x: hidden;
}

section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

section h2 {
  margin: 0;
  padding: 0 10px;
  font-family: var(--first-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 34px;
  text-align: center;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

video,
iframe {
  max-width: 100%;
}

img,
video {
  display: block;
}

b {
  font-weight: bold;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
li {
  margin-top: 0;
}

p,
span,
a,
button,
input,
textarea,
label,
li,
h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

.btn-reset {
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* OFFER */

.offer {
  width: 100%;
  max-width: 460px;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-x: hidden;
}

.offer img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.offer-price {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: visible;
}

.offer-price__old,
.offer-price__new {
  width: 50%;
  max-width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  overflow: visible;
}

.offer-price__old span {
  font-size: 14px;
  line-height: 14px;
  color: rgba(32, 32, 32, 0.5);
  white-space: nowrap;
}

.offer-price__old p {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  text-decoration: line-through;
  color: rgba(32, 32, 32, 0.5);
  white-space: nowrap;
  overflow: visible;
}

.offer-price__new span {
  padding: 6px 14px 4px;
  border-radius: 4px;
  background: var(--red-color);
  color: var(--light-color);
  font-weight: 400;
  font-size: 14px;
  line-height: 12px;
  white-space: nowrap;
}

.offer-price__new p {
  margin: 0;
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  color: var(--text-color);
  white-space: nowrap;
  overflow: visible;
}

.order-btn {
  width: 100%;
  max-width: 100%;
  padding: 0 30px;
}

.btn {
  width: 100%;
  max-width: 100%;
  display: block;
  font-family: var(--first-font);
  font-weight: 700;
  font-size: 24px;
  line-height: 80px;
  letter-spacing: 2px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--btn-radius);
  background: var(--accent-color);
  color: var(--light-color);
  text-transform: uppercase;
  box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 43%);
  border: none;
}

.order-date {
  text-align: center;
}

.date {
  font-family: var(--second-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #333;
}

/* VIDEO */

.video {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  overflow-x: hidden;
}

.video video {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* DESCRIPTION */

.description {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-x: hidden;
}

.description ul,
.description ul li {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow-x: hidden;
}

.description ul li img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.description ul li p {
  width: 100%;
  max-width: 100%;
  padding: 0 30px;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

/* CHARACTERISTIC */

.characteristic {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-x: hidden;
}

.characteristic img {
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.characteristic ul {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.characteristic ul li {
  padding-left: 30px;
  background-repeat: no-repeat;
  background-position: left 5px;
  background-image: url('../fonts/tick.svg');
}

/* REVIEWS */

.reviews {
  width: calc(100% - 20px);
  max-width: 460px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-radius: var(--border-radius);
  background: var(--accent-color);
  overflow: hidden;
}

.reviews h2 {
  margin: 0;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--light-color);
}

.reviews-rating {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: var(--light-color);
  overflow: visible;
}

.reviews-rating__stars {
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.reviews-rating__stars img {
  width: 22px;
  max-width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  display: inline-block;
  box-shadow: none;
  border-radius: 0;
}

.reviews-rating__bar {
  width: 100%;
  max-width: 330px;
  height: 10px;
  border-radius: 5px;
  background: #e6e6e6;
  overflow: hidden;
}

.reviews-rating__bar span {
  margin-left: -1px;
  display: block;
  width: 96%;
  height: 10px;
  border-radius: 5px;
  background: #41944b;
}

.reviews-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.reviews-slider img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* DELIVERY */

.delivery {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.delivery ul {
  width: calc(100% - 20px);
  max-width: calc(100% - 20px);
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery ul li {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.delivery ul li:nth-child(even) {
  flex-direction: row-reverse;
}

.delivery ul li img {
  width: 45%;
  max-width: 45%;
  height: 100px;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
}

.delivery ul li:nth-child(even) img {
  border-radius: 20px 0 0 20px;
}

.delivery-text {
  width: 55%;
  max-width: 55%;
  min-width: 0;
  margin: 12px 20px;
  color: var(--light-color);
}

.delivery-text h3 {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 22px;
}

.delivery-text p {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
}

/* FORM */

.main-order-form {
  width: calc(100% - 20px);
  max-width: 460px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--border-radius);
  background: var(--form-bg-color);
  overflow: visible;
}

.main-order-form button {
  width: 100%;
  max-width: 100%;
  border-radius: 25px;
  height: 66px;
  line-height: normal;
}

.main-order-form input {
  width: 100%;
  max-width: 100%;
  height: 66px;
  padding: 0 20px 0 80px;
  border: 1px solid #e6e6e6;
  border-radius: 25px;
  background-color: var(--light-color);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-color);
  box-shadow: 0 0 14px #0000000f;
  background-position: 20px center;
  background-repeat: no-repeat;
}

.main-order-form input[name='name'] {
  background-image: url('../images/offer__name_icon.png');
}

.main-order-form input[name='phone'] {
  background-image: url('../images/offer__phone_icon.png');
}

/* FOOTER */

.footer {
  width: 100%;
  max-width: 100%;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

/* MOBILE ADAPTATION */

@media screen and (max-width: 480px) {
  main,
  footer,
  .wrapper {
    width: 100%;
    max-width: 100%;
  }

  section h2 {
    font-size: 28px;
    line-height: 32px;
  }

  .offer-price__old p {
    font-size: 36px;
  }

  .offer-price__new p {
    font-size: 44px;
  }

  .btn {
    font-size: 21px;
    line-height: 72px;
    letter-spacing: 1px;
  }

  .description ul li p {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 19px;
    line-height: 27px;
  }
}

@media screen and (max-width: 430px) {
  .order-btn {
    padding-left: 24px;
    padding-right: 24px;
  }

  .offer-price__old p {
    font-size: 32px;
  }

  .offer-price__new p {
    font-size: 40px;
  }

  .offer-price__old span {
    font-size: 13px;
  }

  .offer-price__new span {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .main-order-form {
    padding: 24px 20px;
  }

  .reviews-rating__stars img {
    width: 21px;
    max-width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media screen and (max-width: 390px) {
  section h2 {
    font-size: 25px;
    line-height: 30px;
  }

  .offer-price__old p {
    font-size: 29px;
  }

  .offer-price__new p {
    font-size: 36px;
  }

  .offer-price__old,
  .offer-price__new {
    gap: 16px;
  }

  .btn {
    font-size: 18px;
    line-height: 66px;
    letter-spacing: 0.5px;
  }

  .description ul li p {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 18px;
    line-height: 26px;
  }

  .main-order-form input {
    padding-left: 68px;
  }

  .delivery-text {
    margin: 10px 14px;
  }

  .delivery-text h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .delivery-text p {
    font-size: 13px;
    line-height: 15px;
  }
}

@media screen and (max-width: 360px) {
  section h2 {
    font-size: 23px;
    line-height: 28px;
  }

  .order-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .offer-price__old p {
    font-size: 26px;
  }

  .offer-price__new p {
    font-size: 32px;
  }

  .offer-price__old span,
  .offer-price__new span {
    font-size: 12px;
  }

  .offer-price__new span {
    padding-left: 8px;
    padding-right: 8px;
  }

  .btn {
    font-size: 16px;
    line-height: 62px;
    letter-spacing: 0;
  }

  .main-order-form {
    padding: 22px 15px;
  }

  .main-order-form input {
    height: 62px;
    padding-left: 62px;
    font-size: 15px;
  }

  .main-order-form button {
    height: 62px;
  }

  .reviews {
    padding-left: 8px;
    padding-right: 8px;
  }

  .reviews-rating__stars {
    gap: 6px;
  }

  .reviews-rating__stars img {
    width: 20px;
    max-width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media screen and (max-width: 340px) {
  .offer-price__old p {
    font-size: 24px;
  }

  .offer-price__new p {
    font-size: 30px;
  }

  .btn {
    font-size: 15px;
    line-height: 60px;
  }

  .main-order-form input {
    padding-left: 56px;
  }
}