/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #fff;
  background: url("../img/bg.webp") repeat;
  /* если нужно чуть затемнить общий фон — добавим позже через ::before */
}

/* контейнер под дальнейшие секции */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  min-height: 680px;
  padding: 56px 0 5px;
  background: url("../img/hero_bg.webp") no-repeat center top;
  background-size: cover;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background: linear-gradient(180deg, rgba(17, 1, 20, 0) 0%, #110114 100%);
    pointer-events: none;
    opacity: 0.72;
    z-index: 1;
}

.hero__inner{
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 360px;
  z-index: 2;
}

.hero__kicker{
  margin: 0 0 14px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  
}

.hero__title{
  margin: 0 0 14px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 81%;
  letter-spacing: 0;
  text-transform: uppercase;
  
}

.hero__title-accent{
  color: #ff7c1e;
}

.hero__desc{
  margin: 0 0 22px;
  max-width: 720px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  
}

/* ===== Button ===== */
.btn-hero{
  width: 168px;
  height: 52px;
  border-radius: 80px;
  background: #ff7c1e;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.13),
    inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* иконка сверху, как на скрине */
.btn-hero__icon{
  width: 57px;
  height: auto;
  position: absolute;
  left: 50%;
  top: -10px; /* подогнать по месту */
  transform: translateX(-50%);
  pointer-events: none;
}

.btn-hero__text{
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

/* hover — только цвет/блик, размер не меняем */
.btn-hero:hover{
  background: linear-gradient(0deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1)), #FF7C1E;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.13),
    inset 0px 4px 4px rgba(255, 255, 255, 0.25);
}

/* active — без тени */
.btn-hero:active{
  background: linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), #FF7C1E;
  box-shadow: none;
}


/* ===== Steps section ===== */
.steps{
  padding: 90px 0 50px;
}

.steps__head{
  text-align: center;
  margin-bottom: 32px;
}

.steps__title{
  margin: 0 0 10px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 28px;
  text-transform: uppercase;
}

.steps__subtitle{
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 28px;
  text-transform: uppercase;
}

/* grid */
.steps__grid{
  display: grid;
  grid-template-columns: repeat(3, 336px);
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

/* card base */
.step-card{
  width: 336px;
  height: 160px;
  border-radius: 8px;
  position: relative;
  overflow: visible; /* чтобы иконка “вылезала” */
  padding: 16px 16px;
  display: flex;
  align-items: flex-end;
}

/* decorative lines */
.step-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: url("../img/line.png") no-repeat center;
  background-size: cover;
  border-radius: 8px;
  opacity: 1; /* можно подогнать */
  pointer-events:none;
  z-index: 1;
}

.step-card__text{
  position: relative;
  z-index: 5;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 28px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65); /* как в макете (чёрный с прозрачностью) */
  max-width: 190px;
}

/* backgrounds */
.step-card--pink{
  background: linear-gradient(249.47deg, #F578F5 0%, #F614FF 100%);
}

.step-card--mint{
  background: linear-gradient(249.47deg, #76F5E6 0%, #30BEA0 100%);
}

.step-card--orange{
  background: linear-gradient(249.47deg, #FFAF75 0%, #FF7C1E 100%);
}

/* icons */
.step-card__icon{
  position:absolute;
  right: -20px;  /* “вылезает” */
  bottom: -30px; /* “вылезает” */
  z-index: 3;
  pointer-events:none;
  height: auto;
  user-select:none;
}

.step-card__icon--1{ width: 244px; }
.step-card__icon--2{ width: 402px; right: -47px; bottom: -72px; }
.step-card__icon--3{ width: 360px; right: -105px; bottom: -10px; }

/* ===== Play button (without plane) ===== */
.btn-play{
  width: 168px;
  height: 52px;
  border-radius: 80px;
  background: #ff7c1e;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.13),
    inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-play__text{
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
}

.btn-play:hover{
  background: linear-gradient(0deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1)), #FF7C1E;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.13),
    inset 0px 4px 4px rgba(255, 255, 255, 0.25);
}

.btn-play:active{
  background: linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), #FF7C1E;
  box-shadow: none;
}


/* ===== Games section ===== */
.games{
  padding: 50px 0 0px;
}




.games__head{
  text-align: center;
  margin-bottom: 32px;
}

.games__title{
  margin: 0 0 10px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 28px;
  text-transform: uppercase;
}

.games__subtitle{
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 28px;
  text-transform: uppercase;
}

/* grid */
.games__grid{
  display: grid;
  grid-template-columns: repeat(4, 248px);
  justify-content: center;
  gap: 24px;
}

/* card */
.game-card{
  width: 248px;
}

.game-card__media{
  width: 248px;
  height: 139px;
  border-radius: 12px;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  outline: none;
}

.game-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* hover border */
.game-card__media::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color .15s ease, opacity .15s ease;
  opacity: 0;
  pointer-events:none;
}

.game-card__media:hover::after{
  border-color: #FF7C1E;
  opacity: 1;
}

/* play btn (hidden by default) */
.game-card__play{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FF7C1E;
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
  pointer-events: none; /* появление только визуально */
}

.game-card__media:hover .game-card__play{
  opacity: 1;
}

/* arrow icon inside */
.game-card__play-ico{
  width: 15px;
  height: 19px;
  margin-left: 4px;
  background: url("../img/arrow.png") no-repeat center;
  background-size: contain;
}

/* color states for play button */
.game-card__media:hover .game-card__play{
  background: #FF9050;
}

.game-card__media:active .game-card__play{
  background: #F85A00;
}

/* texts */
.game-card__name{
  margin: 10px 0 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 42px;
  text-transform: uppercase;
}

.game-card__desc{
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 21px;
  color: rgba(255,255,255,0.9);
}

/* ===== Bottom CTA ===== */
.bottom-cta{
  position: relative;
  padding: 110px 0 340px;
  background: url("../img/bottombg.webp") no-repeat center bottom;
  background-size: cover;
  overflow: hidden;
}

.bottom-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  height: 20%;
  background: linear-gradient(
    180deg,
    rgba(17, 1, 20, 1) 0%,
    rgba(17, 1, 20, 0.85) 20%,
    rgba(17, 1, 20, 0.4) 45%,
    rgba(17, 1, 20, 0) 70%
  );
  pointer-events: none;
  z-index: 1;
}


.bottom-cta__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-cta__title{
 position: relative;
 z-index: 4;
  margin: 0 0 14px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 90%;
  text-transform: uppercase;
  text-align: center;
  max-width: 980px;
}

.bottom-cta__subtitle{
  margin: 0 0 26px;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 28px;
  text-transform: uppercase;
}

.bottom-cta__btn{
  margin-top: 6px;
}


@media (max-width: 1320px) {
.steps__grid {
    grid-template-columns: repeat(3, 300px);
}
.step-card {
    width: 300px;
    height: 160px;
}

.game-card__media {
    width: 228px;
    height: 128px;
}
.game-card {
    width: 228px;
}
.games__grid {
    grid-template-columns: repeat(4, 228px);
    gap: 16px
}

.step-card__icon {
    position: absolute;
    right: -28px;
    bottom: -19px;
    z-index: 3;
    pointer-events: none;
    height: auto;
    user-select: none;
}

.step-card__icon--1 {
    width: 225px;
}

.step-card__icon--2 {
    width: 360px;
    right: -48px;
    bottom: -51px;
}

.step-card__icon--3 {
    width: 311px;
    right: -91px;
    bottom: 12px;
}
}

@media (max-width: 1024px) {

  .container {
    width: min(1200px, calc(100% - 0px));
}

.steps__grid {
  grid-template-columns: repeat(3, 226px);
}
.step-card {
  width: 228px;
  height: 160px;
}

.step-card__icon {
  position: absolute;
  right: 30px;
  bottom: 24px;
  z-index: 3;
  pointer-events: none;
  height: auto;
  user-select: none;
}

    .step-card__icon--2 {
        width: 340px;
        right: -20px;
        bottom: -38px;
    }
    .step-card__icon--3 {
        width: 233px;
        right: -65px;
        bottom: 53px;
    }

    .game-card {
        width: 168px;
    }

      .game-card__media {
        width: 168px;
        height: 94px;
    }

      .games__grid {
        grid-template-columns: repeat(4, 168px);
        gap: 16px;
    }

.game-card__play {
    width: 32px;
    height: 32px;
}  

.game-card__play-ico {
    width: 10px;
    height: 14px;
    margin-left: 2px;
}

}

@media (max-width: 768px) {
.hero {
    min-height: 809px;
    padding: 40px 0 5px;
    background: url('../img/hero_mob.webp') no-repeat center top;
}

.hero__desc {
    margin: 0px 20px 22px;
}
.hero__inner {
    padding-top: 0px;
}

.hero__title {
  margin: 0 0 8px;
  font-size: 52px;
}
.steps {
    padding: 0px 0 50px;
}

.steps__title {
    margin: 0 0 5px;
    font-size: 32px;
    line-height: 28px;
}
.steps__subtitle {
    font-size: 32px;
    line-height: 28px;
}

    .steps__grid {
        grid-template-columns: repeat(1, 336px);
    }
    .step-card {
        width: 336px;
        height: 160px;
    }

      .step-card__icon {
        position: absolute;
        right: -17px;
        bottom: -28px;
        z-index: 3;
        pointer-events: none;
        height: auto;
        user-select: none;
    }
    .step-card__icon--1 {
        width: 238px;
    }

        .step-card__icon--2 {
        width: 427px;
        right: -58px;
        bottom: -88px;
    }

      .step-card__icon--3 {
        width: 360px;
        right: -103px;
        bottom: -11px;
    }


    .games {
    padding: 0px 0 0px;
}

.games__title {
    font-size: 32px;
    margin: 0 0 5px
}
.games__subtitle {
    font-size: 32px;
}
.games__head {
    text-align: center;
    margin-bottom: 22px;
}

    .games__grid {
        grid-template-columns: repeat(2, 160px);
        gap: 16px;
    }
    .game-card {
        width: 160px;
    }
.game-card__media {
        width: 160px;
        height: 90px;
    }

.game-card__name {
    margin: 10px 0 0;
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    font-weight: 900;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
}

.game-card__desc {
    margin: 0;
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.bottom-cta {
    padding: 80px 20px 340px;
}

.bottom-cta__title {
    font-size: 32px;
    max-width: 336px;
}

.bottom-cta__subtitle {
    font-size: 32px;
    line-height: 12px;

}

}