:root {
  --green: #078707;
  --blue: #365899;
  --text: #101010;
  --muted: #777f8c;
  --line: #e6e8ee;
  --bubble: #eaebef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body.noscroll {
  height: 100vh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.page {
  width: min(900px, calc(100% - 24px));
  margin: 0 auto 36px;
}

.main-header {
  max-width: 820px;
  margin: 10px auto 24px;
  text-align: center;
  font-size: clamp(28px, 4.4vw, 47px);
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-header span {
  display: inline;
  padding: 0 4px;
  background: var(--green);
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.video-section {
  margin: 0 auto 30px;
}

.video-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: #111;
  overflow: hidden;
  border: 1px solid #222;
}

.video-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100vw;
  height: 100vh;
  border: 0;
}

.video-stage.is-complete {
  display: none;
}

.video-slot {
  width: 100%;
  height: 100%;
}

.video-slot video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  object-fit: contain;
  background: #000;
}

.video-stage.is-fullscreen .video-slot,
.video-stage.is-fullscreen .video-slot video {
  height: 100vh;
  aspect-ratio: auto;
}

.video-countdown,
.sound-overlay,
.video-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(380px, calc(100% - 36px));
  min-height: 145px;
  padding: 18px 22px;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 207, 47, .78);
  cursor: pointer;
  text-align: center;
  font-weight: 800;
}

.video-countdown {
  cursor: default;
  font-size: 22px;
  line-height: 1.25;
}

.video-countdown strong {
  display: block;
  font-size: 30px;
  text-transform: uppercase;
}

.video-countdown.is-hidden,
.sound-overlay {
  display: none;
}

.video-countdown.is-clickable {
  cursor: pointer;
}

.sound-overlay.is-visible {
  display: grid;
}

.player-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 35px;
  background: rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.player-controls button {
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border: 2px solid #fff;
  border-radius: 35px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  cursor: pointer;
  font-weight: 800;
}

.player-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.video-stage.is-playing .player-controls {
  display: flex;
}

.sound-icon {
  position: relative;
  width: 56px;
  height: 42px;
}

.sound-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 20px;
  height: 22px;
  background: #fff;
  clip-path: polygon(0 30%, 38% 30%, 100% 0, 100% 100%, 38% 70%, 0 70%);
}

.sound-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 50px;
  height: 3px;
  background: #fff;
  transform: rotate(38deg);
  transform-origin: center;
}

.video-popup {
  display: none;
  background: rgba(222, 16, 16, .82);
}

.video-popup.is-visible {
  display: grid;
}

.close-video {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.video-stage.is-playing .close-video {
  display: block;
}

.progress-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  display: none;
  width: 100%;
  height: 10px;
  background: rgba(225, 225, 225, .38);
}

.video-stage.is-playing .progress-wrap {
  display: block;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: #d83644;
  transition: width .18s linear;
}

.order {
  display: none;
  width: min(450px, 100%);
  margin: 20px auto 0;
  padding: 15px;
  border: 2.5px dashed #d8d8d8;
  border-radius: 3px;
  background: #fff;
}

.order.is-visible {
  display: block;
}

.order__header,
.order__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.product-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 155px;
  margin: 0 auto 2px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .95) 0 13%, transparent 14%),
    linear-gradient(135deg, #e9f6ef, #b7dcc8);
  box-shadow: inset 0 0 0 1px rgba(33, 107, 54, .12);
}

.product-card__tube {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 98px;
  height: 128px;
  padding: 14px 10px 26px;
  border: 2px solid #17693b;
  border-radius: 14px 14px 32px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78)),
    linear-gradient(145deg, #ffffff 0%, #e5f4ea 54%, #b7ddc5 100%);
  box-shadow: 0 9px 18px rgba(23, 105, 59, .22);
  color: #17693b;
  overflow: hidden;
  text-align: center;
  transform: rotate(-4deg);
}

.product-card__tube::before {
  content: "";
  position: absolute;
  inset: 54px 0 auto;
  height: 28px;
  background: linear-gradient(90deg, #1a9b4d, #0f6d37);
}

.product-card__brand,
.product-card__type,
.product-card__volume {
  position: relative;
  z-index: 1;
}

.product-card__brand {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.product-card__type {
  align-self: center;
  max-width: 82px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.product-card__volume {
  margin-top: auto;
  color: #1f5539;
  font-size: 13px;
  font-weight: 800;
}

.product-card__cap {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 70px;
  height: 18px;
  border-radius: 5px 5px 9px 9px;
  background: #17693b;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .18);
  transform: translateX(-50%) rotate(-4deg);
}

.order__text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.order__time {
  margin: 0;
  color: #e40000;
  font-size: 26px;
  font-weight: 900;
}

.order__price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 22px;
  font-weight: 800;
}

.order__price-old {
  text-decoration: line-through;
}

.order__price-new {
  color: #e40000;
  text-transform: uppercase;
}

.order__body {
  margin-top: 15px;
}

.order__input {
  width: 100%;
  height: 55px;
  padding: 0 18px;
  border: 0;
  border-radius: 35px;
  outline: 0;
  background: #f2f2f2;
}

.order__input:focus {
  box-shadow: 0 0 0 3px rgba(56, 142, 60, .2);
}

.order__btn {
  width: 100%;
  min-height: 55px;
  padding: 14px 20px;
  border: 0;
  border-radius: 35px;
  color: #fff;
  background: #388e3c;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.order__btn:hover {
  background: #2bac31;
}

.order__btn:disabled {
  opacity: .65;
  cursor: wait;
}

.order__info {
  min-height: 20px;
  margin: 0;
  color: #2b6f2e;
  font-size: 14px;
}

.comments {
  margin: 28px 0;
  padding: 0 15px 18px;
  border: 1px solid #e9ebee;
  border-radius: 3px;
  color: var(--blue);
}

.comments__header {
  padding: 15px 0;
  border-bottom: 1px solid #e9ebee;
  font-weight: 700;
}

.comment {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  opacity: 0;
}

.comment.is-reply {
  margin-left: 58px;
  padding-left: 10px;
  border-left: 1px dotted #d8dbe2;
}

.avatar {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5f8edc, #46ad86);
  font-size: 14px;
  font-weight: 800;
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__name {
  margin: 2px 0 5px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.comment__bubble {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border-radius: 21px;
  background: var(--bubble);
  color: #000;
  font-size: 15px;
  line-height: 1.25;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.comment__actions button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.comment__actions button.is-liked {
  color: var(--muted);
  font-weight: 700;
}

.likes {
  position: relative;
  min-width: 36px;
  padding: 3px 7px 3px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
}

.likes::before {
  content: "❤";
  position: absolute;
  left: 7px;
  top: 1px;
  color: #f04464;
  font-size: 13px;
}

.reply-form,
.comments-login {
  margin: 22px 0 0;
  color: var(--blue);
  font-size: 18px;
}

.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.reply-form input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d6d9df;
  border-radius: 4px;
}

.reply-form input {
  flex: 1;
}

.reply-form button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #4080ff;
  border-radius: 4px;
  color: #fff;
  background: #4080ff;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 16px, 900px);
  }

  .main-header {
    margin-top: 14px;
    font-size: 27px;
  }

  .video-stage,
  .video-slot video {
    min-height: 230px;
  }

  .video-countdown,
  .sound-overlay,
  .video-popup {
    min-height: 130px;
  }

  .video-countdown {
    font-size: 18px;
  }

  .video-countdown strong {
    font-size: 24px;
  }

  .player-controls {
    bottom: 14px;
  }

  .player-controls button {
    min-width: 86px;
    height: 38px;
    padding: 0 12px;
  }

  .comment.is-reply {
    margin-left: 28px;
  }
}
