/* Basics */

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

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  font-size: 16px;
  font-family: "Unbounded", sans-serif;
  color: #fff;
  background-color: #070d1a;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  line-height: 1.5;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  --stb-gradient-450: linear-gradient(
    180deg,
    rgb(253 189 1) 0%,
    rgb(255 102 2) 100%
  );
  --stb-gradient-500: linear-gradient(
    180deg,
    rgb(254 131 1) 0%,
    rgb(255 66 6) 100%
  );
  --stb-gradient-550: linear-gradient(
    180deg,
    rgb(255 170 0) 0%,
    rgb(242 59 6) 100%
  );
  --stb-gradient-800: linear-gradient(
    180deg,
    rgb(43 47 61) 0%,
    rgb(13 20 31) 100%
  );
  --stb-gradient-650: linear-gradient(
    180deg,
    rgb(63 65 82) 0%,
    rgb(32 37 50) 100%
  );
  --stb-gradient-850: linear-gradient(
    180deg,
    rgb(32 37 50) 0%,
    rgb(3 8 17) 100%
  );
}

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

/* Container */

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1296px;
  padding-inline: 0;
}
@media (min-width: 768px) {
  .container {
    max-width: 1376px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1320px;
    padding-inline: 40px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 1320px;
    padding-inline: 24px;
  }
}

/* Buttons */

.button {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  justify-items: center;
  align-items: center;
  justify-content: center;
  grid-column-gap: 8px;
  min-height: var(--stb-button-min-height);
  text-align: center;
  font-weight: 500;
  line-height: var(--stb-button-line-height, 1.33);
  font-size: var(--stb-button-font-size, 12px);
  color: var(--stb-button-text-color);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--stb-button-border-radius, 8px);
  padding: var(--stb-button-padding);
  background-image: var(--stb-button-background-image);
  background-repeat: no-repeat;
  background-size: var(--stb-button-background-size);
  background-position:
    left center,
    center,
    right center;
  cursor: pointer;
  transition: background-color 200ms;
}

.button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: var(--stb-button-before-background-image);
  background-repeat: no-repeat;
  background-size: var(--stb-button-background-size);
  background-position:
    left center,
    center,
    right center;
  opacity: var(--stb-button-background-hover-opacity, 0);
  z-index: 2;
  transition: opacity 200ms;
}
.button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: var(--stb-button-active-background-image);
  background-repeat: no-repeat;
  background-size: var(--stb-button-background-size);
  background-position:
    left center,
    center,
    right center;
  opacity: var(--stb-button-background-active-opacity, 0);
  z-index: 3;
  transition: opacity 200ms;
}

.button:hover {
  --stb-button-background-hover-opacity: 1;
}

.button:active {
  --stb-button-background-active-opacity: 1;
}

.button--primary {
  --stb-button-background-image:
    url(./assets/images/buttons/default/button-primary-default-left.png),
    url(./assets/images/buttons/default/button-primary-default-center.png),
    url(./assets/images/buttons/default/button-primary-default-right.png);
  --stb-button-background-size: 60px 100%, calc(100% - 118px) 100%, 60px 100%;
  --stb-button-text-color: #ffffff;

  text-shadow:
    0 -1px 1px rgb(255 210 94 / 0.5),
    0 1px 1px rgb(242 0 0 / 0.6);
  box-shadow:
    0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -2px 4px 0 rgb(255 255 153 / 0.15),
    0 1px 10px 0 rgb(51 26 29 / 0.7);
}

.button--primary:hover {
  --stb-button-before-background-image:
    url(./assets/images/buttons/hover/button-primary-hover-left.png),
    url(./assets/images/buttons/hover/button-primary-hover-center.png),
    url(./assets/images/buttons/hover/button-primary-hover-right.png);

  box-shadow:
    -2px -2px 10px 0 rgb(255 186 36 / 0.1),
    2px -2px 10px 0 rgb(255 186 36 / 0.1),
    0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -4px 16px 0 rgb(255 255 153 / 0.1),
    0 1px 5px 0 rgb(51 26 29 / 0.3);
}

.button--primary:active {
  --stb-button-active-background-image:
    url(./assets/images/buttons/active/button-primary-active-left.png),
    url(./assets/images/buttons/active/button-primary-active-center.png),
    url(./assets/images/buttons/active/button-primary-active-right.png);

  box-shadow:
    -2px -2px 4px 0 rgb(255 186 36 / 0.05),
    2px -2px 4px 0 rgb(255 186 36 / 0.05),
    0 -1px 20px 0 rgb(255 63 15 / 0.5),
    0 -2px 6px 0 rgb(255 255 153 / 0.15),
    0 1px 4px 0 rgb(51 26 29 / 0.7);
}

.button--tertiary {
  --stb-button-background-image:
    url(./assets/images/buttons/default/button-tertiary-default-left.png),
    url(./assets/images/buttons/default/button-tertiary-default-center.png),
    url(./assets/images/buttons/default/button-tertiary-default-right.png);
  --stb-button-background-size: 40px 100%, calc(100% - 78px) 100%, 40px 100%;
  --stb-button-text-color: #c9cad0;

  box-shadow:
    0 -8px 10px 0 rgb(96 96 108 / 0.2),
    0 -2px 4px 0 rgb(96 96 108 / 0.15),
    0 4px 6px 0 rgb(48 46 62 / 0.2);
}

.button--tertiary:hover {
  --stb-button-before-background-image:
    url(./assets/images/buttons/hover/button-tertiary-hover-left.png),
    url(./assets/images/buttons/hover/button-tertiary-hover-center.png),
    url(./assets/images/buttons/hover/button-tertiary-hover-right.png);

  overflow: hidden;
  box-shadow:
    0 -10px 16px 0 rgb(96 96 108 / 0.2),
    0 -2px 8px 0 rgb(96 96 108 / 0.15),
    0 4px 8px 0 rgb(48 46 62 / 0.2);
}

.button--tertiary:active {
  --stb-button-active-background-image:
    url(./assets/images/buttons/active/button-tertiary-active-left.png),
    url(./assets/images/buttons/active/button-tertiary-active-center.png),
    url(./assets/images/buttons/active/button-tertiary-active-right.png);

  overflow: hidden;
  box-shadow:
    0 -2px 5px 0 rgb(96 96 108 / 0.2),
    0 -2px 4px 0 rgb(96 96 108 / 0.15),
    0 4px 4px 0 rgb(48 46 62 / 0.2);
}

.button__content,
.button__label,
.button--tertiary svg {
  z-index: 4;
}

/* Focus styles */
.button:focus-visible,
a:focus-visible,
.terms__button:focus-visible {
  outline: 3px solid #7c57eb;
  outline-offset: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #040b17;
}

@media (min-width: 1280px) {
  .header {
    position: absolute;
    background-color: transparent;
  }
}

.header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 8px;
  min-height: 56px;
}

@media (min-width: 1280px) {
  .header__inner {
    justify-content: start;
    padding-block: 32px 24px;
  }
}

@media (min-width: 1920px) {
  .header__inner {
    padding-block: 42px 56px;
  }
}

@media (min-width: 2556px) {
  .header__inner {
    padding-block: 122px 56px;
  }
}

.header__logo-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 1280px) {
  .header__logo-wrap {
    width: 680px;
    height: 56px;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header__logo svg {
  width: 128px;
  height: 36px;
}

@media (min-width: 1280px) {
  .header__logo svg {
    width: 202px;
    height: 56px;
  }
}

.header .button__label {
  display: none;
}

.header .button__icon {
  display: inline-flex;
}

@media (min-width: 768px) {
  .header .button__label {
    display: inline;
  }

  .header .button__icon {
    display: none;
  }
}

/* Hero section */

.main {
  padding-top: 56px;
}

@media (min-width: 1280px) {
  .main {
    padding-top: 0;
  }
}

.hero__wrapper {
  position: relative;
}

.hero {
  padding-block: 228px 0;
  background-image:
    linear-gradient(
      180deg,
      rgb(7 13 26 / 0) 0%,
      rgb(7 13 26 / 0.8) 42.41%,
      rgb(7 13 26) 100%
    ),
    image-set(
      url("./assets/images/main-banner/main_banner_mobile.jpg") 1x,
      url("./assets/images/main-banner/main_banner_mobile.jpg") 2x
    );
  background-position:
    bottom center,
    top center;
  background-repeat: no-repeat;
  background-size:
    100% 272px,
    auto 440px;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding-top: max(370px, 30%);
    background-size:
      100% 272px,
      auto 600px;
  }
}

@media (min-width: 1280px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgb(7 13 26 / 0) 0%, rgb(7 13 26) 100%),
      image-set(
        url("./assets/images/main-banner/main_banner_desktop.jpg") 1x,
        url("./assets/images/main-banner/main_banner_desktop.jpg") 2x
      );
    background-size:
      100% 249px,
      auto 500px;
    background-position:
      bottom center,
      top center;
    padding-block: 112px 104px;
  }
}

@media (min-width: 1920px) {
  .hero {
    background-size:
      100% 249px,
      auto 590px;
    padding-block: 154px 146px;
  }
}

@media (min-width: 2560px) {
  .hero {
    padding-block: 234px 218px;
    background-size:
      100% 249px,
      auto 750px;
  }
}

.hero__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero__inner {
    max-width: 1680px;
    padding: 0 16px 16px;
  }
}

@media (min-width: 1280px) {
  .hero__inner {
    width: 660px;
    padding: 0 24px;
  }
}

@media (min-width: 1920px) {
  .hero__inner {
    width: 660px;
  }
}

@media (min-width: 2560px) {
  .hero__inner {
    width: 660px;
    padding: 0;
  }
}

.hero__greeting {
  position: relative;
  padding: 0;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #18181e;
  line-height: 1.21;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__greeting {
    margin-bottom: 16px;
  }
}

@media (min-width: 768px) {
  .hero__greeting {
    font-size: 17px;
    line-height: 1.29;
    margin-bottom: 8px;
  }
}

.hero__greeting-decoration {
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
}

.hero__greeting-decoration ~ .hero__greeting-decoration {
  left: 100%;
}

.hero__greeting-inner {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  align-content: center;
  gap: 8px;
  padding-block: 8px;
  padding-inline: 8px;
  background-color: #ffb619;
}

.hero__greeting-inner svg {
  padding: 1px;
}

@media (min-width: 1280px) {
  .hero__greeting-inner {
    padding-block: 12px;
  }
}

.hero__greeting-icon {
  align-self: center;
  width: 20px;
  height: 20px;
}

@media (min-width: 1280px) {
  .hero__greeting-icon {
    width: 24px;
    height: 24px;
  }
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f2f2f3;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.33;
  margin-bottom: 24px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .hero__heading {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.23;
    margin-bottom: 32px;
  }
}

.hero__get-bonus {
  --stb-button-font-size: 17px;
  --stb-button-line-height: 17px;
  --stb-button-min-height: 56px;
  --stb-button-padding: 0 24px;
  --stb-button-border-radius: 12px;
}

@media (min-width: 768px) {
  .hero__get-bonus {
    --stb-button-font-size: 28px;
    --stb-button-line-height: 22px;
    --stb-button-min-height: 80px;
    --stb-button-padding: 0 40px;
    --stb-button-border-radius: 12px;
  }
}

/* Steps section */

.steps {
  padding-block: 48px;
  isolation: isolate;
}

@media (min-width: 1280px) {
  .steps {
    margin-block-start: -56px;
  }
}

@media (min-width: 2560px) {
  .steps {
    margin-block-start: -56px;
    padding-block: 40px;
  }
}

.steps__heading {
  margin-block-end: 24px;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.14;
  color: #f2f2f3;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .steps__heading {
    margin-block-end: 24px;
  }
}

@media (min-width: 1280px) {
  .steps__heading {
    margin-block-end: 32px;
    font-size: 32px;
    line-height: 1.12;
  }
}

.steps__content {
  display: grid;
  grid-auto-columns: min(100%, 672px);
  justify-content: center;
  padding-inline: 16px;
  gap: 16px;
}

@media (min-width: 768px) {
  .steps__content {
    grid-auto-columns: min(100%, 672px);
    justify-content: center;
    padding-inline: 48px;
  }
}

@media (min-width: 1280px) {
  .steps__content {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: 16px;
    gap: 24px;
  }
}

.steps__item {
  position: relative;
  min-height: 92px;
  border-radius: 20px;
  background-image: linear-gradient(
    rgb(105 105 129 / 1) 0,
    rgb(74 75 93 / 0) 100%
  );
}

@media (min-width: 1280px) {
  .steps__item {
    min-height: 108px;
  }
}

.steps__text {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px;
  border-radius: inherit;
  border: 2px solid transparent;
  background-color: #202532;
  background-clip: padding-box;
  font-weight: 500;
}

.steps__title {
  flex-shrink: 0;
  width: 90px;
  color: #75758a;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.33;
  text-align: center;
}

.steps__description {
  display: flex;
  flex-grow: 1;
  min-height: 110px;
  align-self: stretch;
  align-items: center;
  border-radius: 16px;
  background:
    var(--item-bg),
    image-set(
        url("./assets/images/steps-bg/structure@1x.png") 1x,
        url("./assets/images/steps-bg/structure@2x.png") 2x
      )
      left bottom / auto 100% repeat-x,
    radial-gradient(285.24% 141.5% at 100.11% 100%, #58102d 0%, #040b17 100%)
      left center / auto 100%;
  padding-inline: 20px;
  padding-block: 20px;
  color: #f2f2f3;
  font-size: 17px;
  line-height: 1.23;
  font-style: normal;
  font-weight: 700;
}

.steps__description span {
  display: inline-block;
  width: 140px;
}

@media (min-width: 412px) {
  .steps__description span {
    width: 180px;
  }
}

@media (min-width: 768px) {
  .steps__description span {
    width: 412px;
  }
}

@media (min-width: 1280px) {
  .steps__description span {
    width: 180px;
  }
}

.steps__item--first {
  --item-bg: image-set(
      url("./assets/images/steps-bg/1@1x.png") 1x,
      url("./assets/images/steps-bg/1@2x.png") 2x
    )
    right bottom / auto 100%no-repeat;
}
.steps__item--second {
  --item-bg: image-set(
      url("./assets/images/steps-bg/2@1x.png") 1x,
      url("./assets/images/steps-bg/2@2x.png") 2x
    )
    right bottom / auto 100% no-repeat;
}
.steps__item--third {
  --item-bg: image-set(
      url("./assets/images/steps-bg/3@1x.png") 1x,
      url("./assets/images/steps-bg/3@2x.png") 2x
    )
    right bottom / auto 100% no-repeat;
}

/* Footer */

.footer {
  margin-block-start: 24px;
  border-top: 1px solid #2b2f3d;
}

@media (min-width: 1280px) {
  .footer {
    margin-block-start: 24px;
  }
}

@media (min-width: 2560px) {
  .footer {
    margin-block-start: 48px;
  }
}

.footer__content {
  display: flex;
  padding-block: 32px;
  flex-direction: column;
  align-items: center;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.footer__actions .button {
  min-width: 200px;
  --stb-button-font-size: 12px;
  --stb-button-line-height: 1.33;
  --stb-button-min-height: 48px;
  --stb-button-padding: 0 24px;
}

.footer__info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer__payment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  min-height: 36px;
  border-radius: 4px;
  border: 1px solid #040b17;
  background: #202532;
}

.footer__text {
  padding-inline: 24px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.18;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #a1a2ad;
  letter-spacing: -0.11px;
}
