* {
  box-sizing: border-box;
  outline: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #050708;
  background-image: url("../img/bg-1440.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  font-family: "Onest", Arial, sans-serif;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

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

a:hover {
  color: inherit;
}

button {
  font: inherit;
}

a button {
  cursor: pointer;
}

.site-header {
  position: relative;
  z-index: 5;
  padding: 48px 85px 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.nav-bar__logo {
  display: block;
  width: 154px;
  height: auto;
}

.page-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero {
  width: 100%;
  min-height: calc(100vh - 90px);
  padding: 58px 85px 64px;
  display: flex;
  align-items: flex-start;
}

.hero__content {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* FREEBET text + background image */
.hero__label-wrap {
 position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 600px;
    height: 82px;
    margin-left: -125px;
    margin-bottom: 0;
    padding-left: 127px;
    padding-right: 40px;
    background-image: url(../img/freebet-label.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% auto;
    box-shadow: none;
    transform: rotate(-1.92deg);
}

.hero__label-wrap::before,
.hero__label-wrap::after {
  display: none;
}

.hero__label {
  position: relative;
  z-index: 2;
  display: block;

  color: #ffffff;
  font-family: "Pridi", Georgia, serif;
  font-size: 81px;
  font-weight: 700;
  line-height: 1;

  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;

  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(1.92deg);
}

.hero__label-img {
  display: none;
}

.hero__offer {
  position: relative;
  margin-top: 0;
  min-height: 170px;
}

.hero__percent {
  max-width: 600px;
  font-family: "Pridi", Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__percent-value {
  color: #1AFF6B;
  -webkit-text-fill-color: #1AFF6B;
}

.hero__percent-suffix {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.hero__amount {
  margin-top: -4px;
  color: #1AFF6B;
  font-family: "Pridi", Georgia, serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  cursor: default;
  text-shadow: 0 0 24px rgba(23, 255, 105, 0.22);
}

.hero__fs {
  display: none;
}

.hero__steps {
  display: flex;
    align-items: center;
    gap: 28px;
    width: fit-content;
    min-height: 55px;
    margin-top: 8px;
    padding: 15px 30px;
    border-radius: 0 34px 34px 0;
    background: rgba(44, 50, 69, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    list-style: none;
    margin-left: -125px;
    padding-left: 127px;
}

.hero__step {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.hero__step-num {
  color: #1AFF6B;
  font-family: "Pridi", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 18px;
}

.hero__step-text {
  color: #ffffff;
  font-family: "Onest", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  margin-top: 38px;
  cursor: pointer;
}

.btn button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 330px;
  height: 58px;
  padding: 12px 42px;
  color: #090a0b;
  text-align: center;
  font-family: "Onest", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border-radius: 6px;
  border: 1px solid #1AFF6B;
  background: #1AFF6B;
  cursor: pointer;
  text-transform: none;
  box-shadow:
    0 0 0 1px rgba(23, 255, 105, 0.2),
    0 12px 28px rgba(23, 255, 105, 0.25);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover button {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(23, 255, 105, 0.28),
    0 16px 36px rgba(23, 255, 105, 0.34);
}

.mobile-steps-toggle {
  display: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

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

  width: 100%;
  height: 100%;

  background: #000;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 120px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@media screen and (max-width: 1024px) {
  .site-header {
    padding: 36px 48px 0;
  }

  .hero {
    padding: 52px 48px 64px;
  }

  .hero__label-wrap {
    width: 500px;
        max-width: none;
        background-position: left center;
        background-size: 100% auto;
  }

  .hero__label {
    font-size: 70px;
  }

  .hero__percent {
    font-size: 64px;
  }

  .hero__amount {
    font-size: 82px;
  }
}

@media screen and (max-width: 735px) {
  body {
    min-height: 100vh;
    background-image: url("../img/bg-mobile.png");
    background-position: center bottom;
    background-size: cover;
  }

  .site-header {
    padding: 30px 16px 0;
  }

  .nav-bar__logo {
    width: 96px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding: 28px 16px 150px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__label-wrap {
    width: 330px;
    max-width: none;
    height: 50px;

    margin-left: -16px;
    margin-bottom: 8px;

    padding-left: 20px;
    padding-right: 20px;

    background-image: url("../img/freebet-label.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% auto;

    box-shadow: none;
    transform: rotate(-1.92deg);
  }

  .hero__label {
    display: block;
    color: #ffffff;
    font-family: "Pridi", Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    transform: rotate(1.92deg);
  }

  .hero__label-img {
    display: none;
  }

  .hero__offer {
    margin-top: 12px;
    min-height: 122px;
  }

  .hero__percent {
    max-width: 100%;
    font-size: 48px;
    line-height: 0.95;
  }

  .hero__amount {
    margin-top: -2px;
    font-size: 62px;
    line-height: 0.82;
  }

  .hero__steps {
    position: fixed;
    left: 50%;
    bottom: 118px;
    z-index: 80;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    width: min(86vw, 330px);
    min-height: auto;

    margin: 0;
    padding: 22px 24px;

    border-radius: 18px;
    background: rgba(42, 48, 65, 0.98);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.45),
      0 4px 28px rgba(23, 255, 105, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(18px);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .hero__steps.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .hero__step {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    white-space: normal;
  }

  .hero__step-num {
    flex: 0 0 auto;
    color: #1AFF6B;
    font-family: "Pridi", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
  }

  .hero__step-text {
    display: block;
    color: #fff;
    font-family: "Onest", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
  }

  .btn {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 90px;
    z-index: 85;
    width: auto;
    margin: 0;
    padding-top: 0;
  }

  .btn button {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 6px;
  }

  .mobile-steps-toggle {
    position: fixed;
        left: 0;
        right: 0;
        bottom: 30px;
        z-index: 90;
        display: block;
        width: 100%;
        padding: 0 16px;
        border: 0;
        background: transparent;
        color: #fff;
        font-family: "Pridi", Georgia, serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-transform: uppercase;
        cursor: pointer;
        user-select: none;
  }
}

@media screen and (max-width: 735px) and (max-height: 720px) {
  .hero {
    padding-bottom: 120px;
  }

  .hero__steps {
    bottom: 104px;
    padding: 18px 20px;
    gap: 10px;
  }

  .hero__step-num {
    font-size: 26px;
  }

  .hero__step-text {
    font-size: 15px;
  }

  .btn {
    bottom: 54px;
  }

  .btn button {
    height: 48px;
    font-size: 15px;
  }

  .mobile-steps-toggle {
    bottom: 16px;
    font-size: 23px;
  }
}

@media screen and (min-width: 1500px) {
  body {
    background-image: url("../img/bg-main.png");
  }

  .site-header {
    padding-left: 110px;
  }

  .hero {
    padding-left: 110px;
  }
}