/* =========================================================
   HOME SPECIAL OFFER
========================================================= */

.home-special-offer {
  position: relative;
  padding: 30px var(--page-padding) 72px;
  overflow: hidden;

  color: var(--color-surface);
  background:
    radial-gradient(
      circle at 68% 48%,
      rgba(114, 201, 0, 0.13),
      transparent 31%
    ),
    radial-gradient(
      circle at 14% 12%,
      rgba(255, 255, 255, 0.055),
      transparent 24%
    ),
    linear-gradient(135deg, #042817 0%, #063c24 48%, #052719 100%);
}

.home-special-offer::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08),
    transparent 32%,
    rgba(255, 255, 255, 0.035)
  );

  pointer-events: none;
}

.home-special-offer__inner {
  position: relative;
  z-index: 2;

  width: min(100%, var(--container));
  min-height: 640px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 48px;
}

.home-special-offer__inner--content-only {
  min-height: auto;
  grid-template-columns: minmax(0, 720px);
}

.home-special-offer__inner--visual-only {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

/* =========================================================
   CONTENT
========================================================= */

.home-special-offer__content {
    max-width: 560px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-special-offer__copy {
    width: 100%;
}

.home-special-offer__eyebrow {
  margin-bottom: 24px;
  display: block;

  color: var(--color-accent);
  font-size: var(--font-eyebrow);
  line-height: var(--line-small);
  font-weight: var(--weight-extra);
  text-transform: uppercase;
}

.home-special-offer__title {
  margin: 0 0 30px;

  color: var(--color-surface);
  font-size: var(--font-h1);
  line-height: var(--line-heading);
  font-weight: var(--weight-black);
  letter-spacing: var(--letter-heading);
}

.home-special-offer__text {
  max-width: 520px;
  margin-bottom: 42px;

  color: rgba(255, 255, 255, 0.86);
  font-size: var(--font-body-large);
  line-height: var(--line-body);
  font-weight: var(--weight-regular);
}

.home-special-offer__text p {
  margin: 0 0 18px;
}

.home-special-offer__text p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   BUTTON
========================================================= */

.home-special-offer__button {
    width: fit-content;
    min-height: 58px;
    padding: 7px 8px 7px 28px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    color: var(--color-primary-dark);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    font-size: var(--font-button);
    line-height: var(--line-small);
    font-weight: var(--weight-extra);
    text-decoration: none;

    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.home-special-offer__button-text {
    min-width: 0;
    color: inherit;
}

.home-special-offer__button-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--color-surface);
    background-color: var(--color-accent);
    background-image: linear-gradient(
        90deg,
        #219043,
        #62e113
    );
    border-radius: 50%;
}

.home-special-offer__button-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-special-offer__button:hover,
.home-special-offer__button:focus-visible {
    color: var(--color-surface);
    background: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-special-offer__button:hover
.home-special-offer__button-icon,
.home-special-offer__button:focus-visible
.home-special-offer__button-icon {
    color: var(--color-primary);
    background-color: var(--color-surface);
    background-image: none;
}

/* =========================================================
   VISUAL
========================================================= */

.home-special-offer__visual {
  position: relative;
  min-height: 640px;
}

.home-special-offer__glow {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 0;

  width: 620px;
  height: 620px;

  background: radial-gradient(
    circle,
    rgba(114, 201, 0, 0.2) 0%,
    rgba(114, 201, 0, 0.1) 34%,
    rgba(114, 201, 0, 0) 70%
  );

  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-special-offer__blob {
  position: absolute;
  top: 35%;
  right: 4%;
  z-index: 1;

  width: 420px;
  height: 250px;

  background: rgba(151, 213, 81, 0.46);
  border-radius: 44% 49% 53% 46%;

  transform: rotate(-12deg);
  pointer-events: none;
}

/* =========================================================
   3D STAGE
========================================================= */

.home-special-offer__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;

  width: min(38vw, 430px);

  perspective: 1200px;
  transform: translate(-43%, -47%);
}

.home-special-offer__stand {
  position: absolute;
  bottom: -54px;
  left: 50%;
  z-index: 0;

  width: 126%;
  height: 116px;

  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    #0a472c 64%,
    #062f1f 100%
  );
  border: 1px solid rgba(242, 207, 111, 0.52);
  border-radius: 50%;

  box-shadow:
    0 28px 42px rgba(0, 0, 0, 0.34),
    inset 0 8px 16px rgba(255, 255, 255, 0.08);

  transform: translateX(-50%) rotateX(58deg);
  pointer-events: none;
}

.home-special-offer__book {
  position: relative;
  z-index: 3;

  transform: rotateY(-13deg) rotateX(2deg);
  transform-style: preserve-3d;
  transform-origin: center;

  filter: drop-shadow(0 36px 34px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 46px rgba(114, 201, 0, 0.14));
}

.home-special-offer__book::before {
  content: "";

  position: absolute;
  top: 3%;
  left: -7%;
  z-index: 1;

  width: 9%;
  height: 94%;

  background: linear-gradient(90deg, #06351f 0%, #0b5e38 58%, #24754d 100%);
  border-radius: 14px 0 0 14px;

  transform: rotateY(78deg) translateZ(-10px);
  transform-origin: right center;
}

.home-special-offer__book-pages {
  position: absolute;
  top: 2%;
  right: -8%;
  z-index: 0;

  width: 13%;
  height: 96%;

  background: repeating-linear-gradient(
    90deg,
    var(--color-surface) 0,
    var(--color-surface) 3px,
    #dfe6dc 4px,
    #f4f5ed 7px
  );
  border-radius: 0 10px 10px 0;

  box-shadow:
    inset 10px 0 12px rgba(0, 0, 0, 0.08),
    8px 10px 22px rgba(0, 0, 0, 0.15);

  transform: rotateY(72deg) translateZ(-8px);
  transform-origin: left center;
}

.home-special-offer__book-cover {
  position: relative;
  z-index: 3;

  overflow: hidden;

  background: #f7f5e8;
  border-radius: var(--radius-small);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.home-special-offer__product-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   NOTES
========================================================= */

.home-special-offer__notes {
  position: absolute;
  inset: 0;
  z-index: 8;

  pointer-events: none;
}

.home-special-offer__note {
  --note-connector-length: 128px;
  --note-connector-angle: 0deg;

  position: absolute;

  width: 182px;
  min-height: 66px;
  padding: 12px 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--color-surface);
  background:
    linear-gradient(
      135deg,
      rgba(9, 72, 42, 0.86),
      rgba(7, 51, 32, 0.92)
    );

  border: 1px solid rgba(242, 207, 111, 0.48);
  border-radius: var(--radius-medium);

  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(6px);
}

.home-special-offer__note-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-surface);

  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.home-special-offer__note-icon svg {
  width: 18px;
  height: 18px;

  display: block;
  flex: 0 0 auto;
}

.home-special-offer__note-title {
  min-width: 0;

  color: var(--color-surface);
  font-size: var(--font-small);
  line-height: var(--line-small);
  font-weight: var(--weight-extra);
  letter-spacing: 0;
}

/* =========================================================
   CONNECTORS — LINE AND DOT AS ONE ELEMENT
========================================================= */

.home-special-offer__note::before {
  content: "";

  position: absolute;
  top: 50%;

  width: calc(var(--note-connector-length) + 14px);
  height: 28px;

  background-repeat: no-repeat;

  transform:
    translateY(-50%)
    rotate(var(--note-connector-angle));

  pointer-events: none;
}

.home-special-offer__note::after {
  content: "";
  display: none;
}

/* Left notes */

.home-special-offer__note--left {
  left: 3%;
}

.home-special-offer__note--left::before {
  left: calc(100% - 0px);

  background-image:
    radial-gradient(
      circle at center,
      #0d4d2e 0 6px,
      #ffffff 6px 10px,
      rgba(255, 255, 255, 0.16) 10px 14px,
      transparent 14px
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.72)
    );

  background-size:
    28px 28px,
    var(--note-connector-length) 2px;

  background-position:
    right center,
    left center;

  transform-origin: left center;
}

/* Right notes */

.home-special-offer__note--right {
  right: 2%;
}

.home-special-offer__note--right::before {
  right: calc(100% - 3px);

  background-image:
    radial-gradient(
      circle at center,
      #0d4d2e 0 6px,
      #ffffff 6px 10px,
      rgba(255, 255, 255, 0.16) 10px 14px,
      transparent 14px
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.72)
    );

  background-size:
    28px 28px,
    var(--note-connector-length) 2px;

  background-position:
    left center,
    right center;

  transform-origin: right center;
}

/* Note positions */

.home-special-offer__note--1 {
  top: 19%;

  --note-connector-angle: 15deg;
}

.home-special-offer__note--2 {
  top: 42%;

  --note-connector-angle: 4deg;
}

.home-special-offer__note--3 {
  top: 65%;

  --note-connector-angle: -9deg;
}

.home-special-offer__note--4 {
  top: 34%;

  --note-connector-angle: -3deg;
}

.home-special-offer__note--5 {
  top: 58%;

  --note-connector-angle: 3deg;
}

/* =========================================================
   COMPACT DESKTOP
========================================================= */

@media (max-width: 1280px) {
  .home-special-offer__stage {
    width: min(37vw, 390px);
  }

  .home-special-offer__note {
    width: 166px;
    padding: 11px 13px;

    --note-connector-length: 92px;
  }

  .home-special-offer__note-title {
    font-size: var(--font-xsmall);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1080px) {
  .home-special-offer__inner,
  .home-special-offer__inner--content-only,
  .home-special-offer__inner--visual-only {
    min-height: auto;

    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .home-special-offer__content {
    max-width: 780px;
  }

  .home-special-offer__visual {
    min-height: 620px;
  }

  .home-special-offer__stage {
    width: min(64vw, 420px);

    transform: translate(-50%, -45%);
  }

  .home-special-offer__note {
    width: 156px;

    --note-connector-length: 84px;
  }

  .home-special-offer__note--left {
    left: 1%;
  }

  .home-special-offer__note--right {
    right: 1%;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
  .home-special-offer {
    padding-top: 58px;
    padding-bottom: 50px;
  }

  .home-special-offer__inner,
  .home-special-offer__inner--visual-only,
  .home-special-offer__inner--content-only {
    min-height: auto;

    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .home-special-offer__content {
    display: contents;
  }

  .home-special-offer__copy {
    order: 1;
  }

  .home-special-offer__eyebrow {
    margin-bottom: 16px;
  }

  .home-special-offer__title {
    max-width: none;
    margin-bottom: 20px;
  }

  .home-special-offer__text {
    max-width: none;
    margin-bottom: 0;
  }

  .home-special-offer__visual {
    width: 100%;
    min-height: auto;
    padding-top: 4px;

    display: flex;
    flex-direction: column;

    order: 2;
  }

  /* Notes */

  .home-special-offer__notes {
    position: relative;
    inset: auto;
    z-index: 5;

    width: 100%;
    margin-bottom: 28px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px;

    order: 1;

    pointer-events: auto;
  }

  .home-special-offer__note,
  .home-special-offer__note--left,
  .home-special-offer__note--right,
  .home-special-offer__note--1,
  .home-special-offer__note--2,
  .home-special-offer__note--3,
  .home-special-offer__note--4,
  .home-special-offer__note--5 {
    position: relative;
    inset: auto;

    width: 100%;
    min-height: 74px;
    padding: 11px 13px;

    gap: 10px;

    border-radius: 50%;
    transform: none;
  }

  .home-special-offer__note:nth-child(2) {
    transform: translateY(9px) rotate(1.5deg);
  }

  .home-special-offer__note:nth-child(3) {
    transform: translateX(4px) rotate(-1.5deg);
  }

  .home-special-offer__note:nth-child(4) {
    transform:
      translateY(11px)
      translateX(-3px)
      rotate(1deg);
  }

  .home-special-offer__note:nth-child(5) {
    grid-column: 1 / -1;

    width: min(58%, 220px);
    margin-inline: auto;

    transform: rotate(-1deg);
  }

  .home-special-offer__note::before {
    display: none;
  }

  .home-special-offer__note::after {
    content: "";

    position: absolute;
    top: 14px;
    right: 12px;

    width: 6px;
    height: 6px;

    display: block;

    background: var(--color-accent);
    border: 0;
    border-radius: 50%;

    box-shadow: none;
    transform: none;

    pointer-events: none;
  }

  .home-special-offer__note-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;

    border-width: 1px;
  }

  .home-special-offer__note-icon svg {
    width: 15px;
    height: 15px;
  }

  .home-special-offer__note-title {
    font-size: 12px;
    line-height: 1.22;
  }

  /* Product */

  .home-special-offer__stage {
    position: relative;
    top: auto;
    left: auto;

    width: min(100%, 300px);
    margin-inline: auto;

    order: 2;

    transform: none;
  }

  .home-special-offer__stand {
    bottom: -3%;

    width: 82%;
    height: 9%;
  }

  .home-special-offer__blob {
    top: 51%;
    right: 7%;

    width: 38%;
    height: 33%;
  }

  .home-special-offer__glow {
    top: 68%;
    left: 51%;

    width: 80%;
    height: 45%;

    transform: translate(-50%, -50%);
  }

  /* Button */

  .home-special-offer__button {
    width: 100%;
    min-height: 58px;
    margin-top: 20px;
    order: 3;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .home-special-offer__notes {
    gap: 11px 8px;
  }

  .home-special-offer__note {
    min-height: 70px;
    padding: 10px;
  }

  .home-special-offer__note-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .home-special-offer__note-title {
    font-size: 11px;
  }

  .home-special-offer__stage {
    width: min(100%, 280px);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .home-special-offer *,
  .home-special-offer *::before,
  .home-special-offer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}