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

:root {
  --page-side: 88px;

  --dark: #212430;
  --panel: rgba(8, 10, 18, 0.92);
  --white: #ffffff;
  --lime: #d7ff00;
  --pink: #ff3b95;
  --black: #050505;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  background-color: var(--dark);
  background-image: url("../img/bg-main.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

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

button {
  font: inherit;
}

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

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

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-bar__logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.page-main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: calc(100vh - 110px);
  padding: 24px var(--page-side) 80px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

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

/* FREEBET background image block */
.hero__label-wrap {
  position: relative;
  z-index: 2;
  width: 720px;
  max-width: none;
  height: 110px;

  margin-left: calc(var(--page-side) * -1);
  margin-bottom: 8px;

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

  padding-left: calc(var(--page-side) + 70px);
  padding-right: 36px;

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

  transform: rotate(-1.2deg);
}

.hero__label {
  color: var(--white);
  font-family: "Permanent Marker", cursive;
  font-size: 87px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  transform: rotate(1.2deg);
}

/* Offer text */
.hero__offer {
  margin-left: 72px;
  margin-bottom: 14px;
}

.hero__percent {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;

  font-family: "Permanent Marker", cursive;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero__percent-value {
  color: var(--lime);
  font-size: 72px;
}

.hero__percent-suffix {
  color: var(--white);
  font-size: 72px;
}

.hero__amount {
  margin-top: -6px;
  color: var(--lime);
  font-family: "Permanent Marker", cursive;
  font-size: 97px;
  font-weight: 400;
  line-height: 0.9;
}

/* Steps block must go to the left edge too */
.hero__steps {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 56px;
  margin-top: 6px;
  margin-left: calc(var(--page-side) * -1);
  padding: 14px 32px 14px calc(var(--page-side) + 72px);
  border-radius: 0 28px 28px 0;
  background: rgba(7, 9, 17, 0.88);
}

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

.hero__step-num {
  color: var(--pink);
  font-family: "Permanent Marker", cursive;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.hero__step-text {
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

/* Button */
.btn {
  display: inline-flex;
  margin-top: 28px;
  margin-left: 72px;
}

.btn button {
  width: 352px;
  min-width: 352px;
  height: 60px;
  padding: 12px 24px;

  border: none;
  border-radius: 8px;
  background: var(--lime);
  color: var(--black);

  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 0 22px rgba(215, 255, 0, 0.24);
}

.btn button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

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

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;

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

  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.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Tablet */
@media screen and (max-width: 1180px) {
  :root {
    --page-side: 48px;
  }

  .site-header {
    padding-top: 34px;
  }

  .nav-bar__logo {
    width: 168px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero__content {
    max-width: 640px;
  }

  .hero__label-wrap {
    width: 620px;
    height: 94px;
    padding-left: calc(var(--page-side) + 60px);
  }

  .hero__label {
    font-size: 64px;
  }

  .hero__offer {
    margin-left: 58px;
  }

  .hero__percent {
    font-size: 58px;
    gap: 10px;
  }
  .hero__steps {
    gap: 26px;
    padding-left: calc(var(--page-side) + 58px);
  }

  .btn {
    margin-left: 58px;
  }

  .btn button {
    width: 320px;
    min-width: 320px;
    height: 56px;
  }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .hero__percent-value {
    color: var(--lime);
    font-size: 41px;
}
.hero__percent-suffix {
  font-size: 41px;
}
  :root {
    --page-side: 16px;
  }

  body {
    background-image: url("../img/bg-mobile.png");
    background-position: center center;
    background-size: cover;
  }

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

  .nav-bar__logo {
    width: 130px;
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 16px;
    padding-bottom: 150px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__label-wrap {
    width: calc(100vw - 16px);
    height: 70px;
    margin-left: -16px;
    margin-bottom: 8px;
    padding-left: 62px;
    padding-right: 18px;
  }

  .hero__label {
    font-size: 48px;
  }

  .hero__offer {
    margin-left: 22px;
    margin-bottom: 16px;
  }

  .hero__percent {
    gap: 8px;
    font-size: 44px;
    line-height: 0.95;
  }

  .hero__amount {
    margin-top: -2px;
    font-size: 60px;
  }

  .hero__steps {
    position: fixed;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%) translateY(20px);

    flex-direction: column;
    align-items: flex-start;
    gap: 14px;

    width: calc(100vw - 32px);
    min-height: auto;
    margin-left: 0;
    padding: 20px 18px;

    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    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 {
    white-space: normal;
  }

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

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

  .btn {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 56px;
    z-index: 20;
    margin: 0;
    display: block;
  }

  .btn button {
    margin: 0 auto;
        min-width: auto;
        height: 54px;
        font-size: 15px;
        align-items: center;
        justify-content: center;
        display: flex;
  }

  .mobile-steps-toggle {
    position: fixed;
        left: 16px;
        right: 16px;
        bottom: 14px;
        z-index: 21;
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--white);
        font-family: 'Poppins';
        font-size: 18px;
        font-weight: 800;
        line-height: 1.1;
        text-align: center;
        /* text-transform: none; */
        cursor: pointer;
    
  }
}