* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-ink);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  font-family: var(--font-wide);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

button {
  border: 0;
  font: inherit;
}

.site-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--color-ink);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg) left center / cover no-repeat var(--color-ink);
}

.hero::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__shade {
  z-index: 1;
  background: none;
  pointer-events: none;
}

.hero__logo {
  position: absolute;
  z-index: 4;
  top: clamp(30px, 5.57vw, 57px);
  right: clamp(24px, 4.1vw, 59px);
  width: clamp(126px, 11.39vw, 164px);
  height: auto;
}

.hero__title {
  position: absolute;
  z-index: 6;
  top: clamp(40px, 3.13vw, 45px);
  left: clamp(28px, 5.42vw, 78px);
  max-width: min(38vw, 456px);
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: clamp(92px, 9.72vw, 140px);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__title-part {
  display: block;
}

.hero__content {
  position: absolute;
  z-index: 6;
  top: clamp(360px, 31.25vw, 450px);
  left: clamp(28px, 5.42vw, 78px);
  display: grid;
  gap: clamp(18px, 1.95vw, 20px);
}

.hero__subtitle {
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-promo);
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero__cta {
  display: inline-grid;
  place-items: center;
  width: clamp(180px, 14.1vw, 203px);
  min-height: clamp(64px, 7.32vw, 75px);
  padding: 0 34px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-accent-red);
  color: var(--color-text-inverse);
  cursor: pointer;
  font-family: var(--font-button);
  font-size: clamp(18px, 1.53vw, 22px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.hero__cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.hero__coin {
  position: absolute;
  z-index: 5;
  --coin-orbit-radius: clamp(8px, 0.9vw, 15px);
  width: clamp(144px, 14.51vw, 209px);
  height: auto;
  animation: coin-orbit 7.2s linear infinite;
  pointer-events: none;
  transform-origin: center;
  user-select: none;
  will-change: transform;
}

.hero__coin--left {
  top: clamp(76px, 9.38vw, 96px);
  left: clamp(-104px, -6.94vw, -62px);
}

.hero__coin--right {
  right: clamp(-99px, -6.88vw, -62px);
  bottom: clamp(84px, 11.82vw, 121px);
  width: clamp(138px, 13.68vw, 197px);
  --coin-orbit-radius: clamp(9px, 1vw, 16px);
  animation-delay: -1.8s;
  animation-direction: reverse;
  animation-duration: 8s;
}

.hero__promo {
  position: absolute;
  z-index: 7;
  top: min(clamp(560px, 61.82vw, 633px), calc(100svh - clamp(150px, 11.5vw, 176px)));
  left: clamp(520px, 46.39vw, 668px);
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(250px, 20.06vw, 289px);
  min-height: clamp(112px, 9.03vw, 130px);
  padding: 16px 28px 20px;
  transform: rotate(-4deg);
  transform-origin: center;
  isolation: isolate;
  border: 0;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(100deg, rgba(126, 78, 146, 0.22) 0%, rgba(255, 20, 63, 0.38) 48%, rgba(255, 20, 63, 0.18) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -12px 22px rgba(6, 20, 46, 0.08),
    0 18px 36px rgba(6, 20, 46, 0.2);
  color: var(--color-text-inverse);
  text-align: center;
  cursor: pointer;
  overflow: visible;
  -webkit-backdrop-filter: url("#liquid-glass-refraction") blur(8px) saturate(1.55) contrast(1.04) brightness(1.04);
  backdrop-filter: url("#liquid-glass-refraction") blur(8px) saturate(1.55) contrast(1.04) brightness(1.04);
}

.hero__promo-code,
.hero__promo-label {
  position: relative;
  z-index: 1;
  display: block;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__promo-code {
  font-family: var(--font-display);
  font-size: clamp(58px, 5.69vw, 82px);
  font-weight: 700;
  line-height: 0.84;
}

.hero__promo-label {
  margin-top: 4px;
  font-family: var(--font-promo);
  font-size: clamp(17px, 1.53vw, 22px);
  font-weight: 800;
  line-height: 1;
}

.hero__promo-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 2;
  width: max-content;
  max-width: min(320px, 90vw);
  padding: 10px 14px;
  transform: translate(-50%, 8px) rotate(4deg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(6, 20, 46, 0.78);
  box-shadow: 0 12px 24px rgba(6, 20, 46, 0.24);
  color: var(--color-text-inverse);
  font-family: var(--font-promo);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.hero__promo-tooltip::after {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  content: "";
  transform: translate(-50%, -5px) rotate(45deg);
  background: rgba(6, 20, 46, 0.78);
}

.hero__promo.is-copied .hero__promo-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) rotate(4deg);
}

.hero__promo:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 5px;
}

.hero__promo::before,
.hero__promo::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero__promo::before {
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.34);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero__promo::after {
  display: none;
}

@keyframes promo-border-glint {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes coin-orbit {
  from {
    transform: rotate(0deg) translateX(var(--coin-orbit-radius)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(var(--coin-orbit-radius)) rotate(-360deg);
  }
}

@media (min-width: 1441px) {
  .hero {
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .hero {
    --tablet-bg-top: clamp(108px, 27.69vw, 260px);
    --tablet-gradient-height: clamp(220px, 40.73vw, 303px);
    height: 100svh;
    min-height: 0;
    background-color: #0d2e5b;
    background-image: none;
  }

  .hero__shade {
    height: var(--tablet-gradient-height);
    background: linear-gradient(
      180deg,
      #0d2e5b 0%,
      #0d2e5b 68%,
      rgba(13, 46, 91, 0.82) 82%,
      rgba(13, 46, 91, 0) 100%
    );
  }

  .hero::before {
    top: var(--tablet-bg-top);
    left: max(-315px, -42.34vw);
    z-index: 0;
    width: 147.31vw;
    height: calc(100% - var(--tablet-bg-top));
    background: var(--hero-bg) center top / cover no-repeat;
  }

  .hero__logo {
    top: clamp(20px, 5.11vw, 38px);
    right: auto;
    left: clamp(26px, 6.59vw, 49px);
    width: clamp(126px, 22.04vw, 164px);
  }

  .hero__title {
    top: clamp(64px, 11.42vw, 85px);
    left: clamp(26px, 6.59vw, 49px);
    max-width: calc(100% - clamp(52px, 13.18vw, 98px));
    font-size: clamp(50px, 11.29vw, 84px);
    line-height: 0.87;
    white-space: nowrap;
  }

  .hero__title-part {
    display: inline;
  }

  .hero__title-part + .hero__title-part::before {
    content: " ";
  }

  .hero__content {
    top: clamp(142px, 23.25vw, 173px);
    left: clamp(26px, 6.59vw, 49px);
    gap: clamp(18px, 2.96vw, 22px);
  }

  .hero__subtitle {
    font-size: clamp(22px, 3.76vw, 28px);
    line-height: 1.18;
  }

  .hero__cta {
    width: clamp(172px, 27.28vw, 203px);
    min-height: clamp(62px, 10.08vw, 75px);
    border-radius: var(--radius-button);
    font-size: clamp(18px, 2.96vw, 22px);
  }

  .hero__promo {
    top: auto;
    left: 50%;
    bottom: clamp(96px, 19.17svh, 180px);
    width: clamp(250px, 38.82vw, 289px);
    min-height: clamp(112px, 13.84vw, 130px);
    transform: translateX(-50%) rotate(-4deg);
  }

  .hero__promo-tooltip {
    transform: translate(-50%, 8px) rotate(4deg);
  }

  .hero__promo.is-copied .hero__promo-tooltip {
    transform: translate(-50%, 0) rotate(4deg);
  }

  .hero__coin--left {
    top: clamp(88px, 14.25vw, 106px);
    left: clamp(-62px, -8.33vw, -56px);
    width: clamp(96px, 16.53vw, 123px);
  }

  .hero__coin--right {
    right: -280px;
    bottom: 52px;
    width: 197px;
  }
}

@media (max-width: 620px) {
  .hero {
    --tablet-bg-top: clamp(132px, 36vw, 180px);
  }

  .hero::before {
    left: max(-215px, -46vw);
    width: 172vw;
  }

  .hero__logo {
    top: 24px;
    left: 22px;
    width: clamp(118px, 32vw, 136px);
  }

  .hero__title {
    top: 82px;
    left: 22px;
    max-width: calc(100% - 44px);
    font-size: clamp(39px, 11.7vw, 58px);
    line-height: 0.9;
  }

  .hero__content {
    top: 136px;
    left: 22px;
    gap: 18px;
  }

  .hero__subtitle {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .hero__cta {
    width: 176px;
    min-height: 60px;
    border-radius: var(--radius-button);
    font-size: 18px;
  }

  .hero__promo {
    bottom: clamp(78px, 13svh, 118px);
    width: min(74vw, 250px);
    min-height: 104px;
    padding: 14px 24px 18px;
  }

  .hero__promo-code {
    font-size: clamp(52px, 16vw, 66px);
  }

  .hero__promo-label {
    font-size: clamp(15px, 4.7vw, 18px);
  }

  .hero__coin--left {
    top: 106px;
    left: -60px;
    width: 96px;
  }

  .hero__coin--right {
    right: -260px;
    bottom: 58px;
    width: 168px;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 38px;
  }

  .hero__content {
    top: 130px;
  }
}

@media (min-width: 900px) and (max-width: 1024px) and (max-height: 860px) {
  .hero__promo {
    bottom: clamp(42px, 7svh, 64px);
  }
}

@media (min-width: 560px) and (max-width: 620px) and (min-height: 650px) {
  .hero::before {
    left: max(-315px, -42.34vw);
    width: 147.31vw;
  }
}

@media (min-width: 1025px) and (max-height: 640px) {
  .hero__title {
    top: clamp(42px, 7svh, 56px);
    font-size: clamp(92px, min(10.2vw, 21svh), 132px);
  }

  .hero__content {
    top: min(clamp(350px, 31vw, 410px), calc(100svh - 126px));
    gap: clamp(12px, 2svh, 16px);
  }

  .hero__subtitle {
    font-size: clamp(24px, min(2.4vw, 5svh), 30px);
  }

  .hero__cta {
    width: clamp(172px, 13vw, 190px);
    min-height: clamp(56px, 10svh, 64px);
    padding-inline: 28px;
    font-size: clamp(17px, min(1.45vw, 3.2svh), 20px);
  }

  .hero__promo-code {
    font-size: clamp(58px, min(5.69vw, 12svh), 76px);
  }
}

@media (max-width: 1024px) and (max-height: 420px) {
  .hero {
    --tablet-bg-top: clamp(92px, 26svh, 118px);
    --tablet-gradient-height: clamp(160px, 54svh, 220px);
  }

  .hero__logo {
    top: clamp(16px, 5svh, 24px);
    left: clamp(22px, 6.59vw, 49px);
    width: clamp(104px, 18vw, 132px);
  }

  .hero__title {
    top: clamp(56px, 15svh, 68px);
    left: clamp(22px, 6.59vw, 49px);
    font-size: clamp(38px, min(8vw, 15svh), 60px);
  }

  .hero__content {
    top: clamp(104px, 34svh, 132px);
    left: clamp(22px, 6.59vw, 49px);
    gap: clamp(10px, 3svh, 14px);
  }

  .hero__subtitle {
    font-size: clamp(18px, min(3.4vw, 6svh), 24px);
  }

  .hero__cta {
    width: clamp(148px, 24vw, 176px);
    min-height: clamp(46px, 14svh, 56px);
    padding-inline: 22px;
    font-size: clamp(15px, 2.6vw, 18px);
  }

  .hero__promo {
    right: clamp(16px, 5vw, 40px);
    bottom: clamp(18px, 7svh, 32px);
    left: auto;
    width: clamp(186px, 33vw, 258px);
    min-height: clamp(78px, 25svh, 112px);
    padding: 10px 18px 12px;
    transform: rotate(-4deg);
  }

  .hero__promo-code {
    font-size: clamp(38px, min(8.8vw, 15svh), 60px);
  }

  .hero__promo-label {
    font-size: clamp(12px, min(2.6vw, 4.2svh), 17px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__coin,
  .hero__promo::before {
    animation: none;
  }

  .hero__coin {
    transform: none;
  }

  .hero__cta {
    transition: none;
  }
}
