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

  --accent-color: linear-gradient(348deg, #000000d9, #c9233c);
  --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('../fonts/AvenirNextCyr-Regular.woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'AvenirNextCyr';
  src: url('../fonts/AvenirNextCyr-Bold.woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Light.woff2');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-ExtraBold.woff2');
  font-weight: 700;
  font-style: normal;
}

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

html {
  font-family: var(--first-font);
  font-weight: 400;
  font-style: normal;
  min-width: 0;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  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;
}

main,
footer {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.wrapper {
  background: var(--light-color);
}

section h2 {
  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;
}

b {
  font-weight: bold;
}

a {
  text-decoration: none;
}

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

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

.offer {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
}

.offer img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.offer-price {
  display: flex;
  align-items: flex-end;
}

.offer-price__old,
.offer-price__new {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

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

.offer-price__old p {
  font-weight: 700;
  font-size: 40px;
  text-decoration: line-through;
  color: rgba(32, 32, 32, 0.5);
}

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

.offer-price__new p {
  font-weight: 700;
  font-size: 50px;
  color: var(--text-color);
}

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

.btn {
  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%);
}

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

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

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

.description {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.description ul,
.description ul li {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.description ul li p {
  padding: 0 30px;
  font-size: 20px;
  text-align: center;
}

.characteristic {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.characteristic img {
  margin: 0 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.characteristic ul {
  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('../images/tick.svg');
}

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

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

.reviews-rating {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: var(--light-color);
}

.reviews-rating__stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.reviews-slider {
  overflow: hidden;
}

.reviews-slider img {
  border-radius: var(--border-radius);
}

.delivery {
  width: 100%;
}

.delivery ul {
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

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

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

.delivery ul li img {
  border-radius: 0 20px 20px 0;
  height: 100px;
}

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

.delivery-text {
  max-width: 160px;
  margin: 12px 20px;
  color: var(--light-color);
}

.delivery-text h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
}

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

.main-order-form {
  padding: 30px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--border-radius);
  background: var(--form-bg-color);
}

.main-order-form button {
  border-radius: 25px;
  height: 66px;
  line-height: 0;
}

.main-order-form input {
  padding: 0 20px 0 80px;
  width: 100%;
  height: 66px;
  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 {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
/* ===== Reusable responsive fixes v2 ===== */
/* Keep this block at the END of main.css. It works even when mobile.css is not linked. */

/* Fix the order-form button on every viewport. The old rules used line-height: 0. */
.main-order-form button.btn,
.main-order-form .button-m.btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-align: center !important;
}

@media screen and (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    display: block !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .wrapper,
  main,
  footer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .wrapper {
    overflow: hidden !important;
  }

  img,
  video {
    max-width: 100% !important;
    height: auto !important;
  }

  .offer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    gap: 16px !important;
  }

  .offer-price {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: end !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 0 2px !important;
  }

  .offer-price__old,
  .offer-price__new {
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: center !important;
  }

  .offer-price__old > span,
  .offer-price__new > span {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(11px, 3.1vw, 13px) !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .offer-price__new > span {
    padding: 5px 8px !important;
  }

  .offer-price__old p,
  .offer-price__new p,
  .offer-price__new p.js-current-price {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .offer-price__old p {
    font-size: clamp(26px, 8vw, 36px) !important;
    letter-spacing: -0.5px !important;
  }

  .offer-price__new p,
  .offer-price__new p.js-current-price {
    font-size: clamp(34px, 10.5vw, 46px) !important;
    letter-spacing: -1px !important;
  }

  .order-btn {
    width: 100% !important;
    padding: 0 14px !important;
  }

  .btn,
  .order-btn .btn,
  .main-order-form .button-m,
  .main-order-form .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 13px 12px !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.4px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .form {
    width: 100% !important;
    padding: 0 14px 22px !important;
  }

  .main-order-form,
  #order_form {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 20px 14px 18px !important;
    gap: 14px !important;
  }

  .main-order-form input[type='text'],
  .main-order-form input[type='tel'] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 14px 0 58px !important;
    border-radius: 16px !important;
    background-position: 18px center !important;
    background-size: 24px auto !important;
    font-size: 16px !important;
    line-height: normal !important;
  }

  .main-order-form input::placeholder {
    font-size: clamp(14px, 4vw, 16px) !important;
  }

  /* These fixed widgets cover the form on phones. */
  .online-visitors-widget,
  #fast-delivery-widget {
    display: none !important;
  }

  .description,
  .characteristic,
  .delivery,
  .reviews {
    max-width: 100% !important;
  }

  .description ul li p {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  .characteristic {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .characteristic ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .reviews {
    width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .delivery {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .delivery ul {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .footer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px 26px !important;
    overflow-wrap: anywhere !important;
  }
}

@media screen and (max-width: 360px) {
  .offer-price {
    gap: 4px !important;
  }

  .offer-price__old p {
    font-size: 25px !important;
  }

  .offer-price__new p,
  .offer-price__new p.js-current-price {
    font-size: 33px !important;
  }

  .btn,
  .order-btn .btn,
  .main-order-form .button-m,
  .main-order-form .btn {
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }
}
