* {
    margin: 0;
    padding: 0;
    
}
body {
    font-family: "Jost", sans-serif;
}
a {
    text-decoration: none;
}

header {
    background: #05221E;
    padding: 10px 0;
}

.wrap {
    display: flex;
    max-width: 85%;
    margin: auto;
    justify-content: space-between;
}
.container {
    margin-top: 13%;
    width: 100%;
}
main {
    background: url('img/desk.jpg') no-repeat right;
    height: 790px;
    background-size: cover;
    color: #FFF;
    padding-bottom: 20px;
}

.button {
    background:  linear-gradient(180deg, #F4E38B -24.36%, #F4DD62 23.01%, #B27F2A 100%);
    border-radius: 30px;
    color: #060908;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 27px;
    text-transform: uppercase;
    display: block;
    width: max-content;
    cursor: pointer;
}

.button-main {
    margin-top: 20px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-transform: uppercase;
    animation: pulse 1s infinite ease-in-out;
}

.button-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(51, 49, 49, 0) 0%,
    rgba(226, 224, 216, 0.6) 50%,
    rgba(77, 72, 72, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 1.2s infinite alternate;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}


@keyframes shine {
  0% {
    left: -65%;
  }
  100% {
    left: 100%;
  }
}

footer {
    background: #051413;
    color: #FFF;
    text-align: center;
    padding: 24px 0 24px;
}
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}
.step {
    background: linear-gradient(97.65deg, #0B5844 -1.36%, #062725 102.7%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    min-width: 28%;
    z-index: 1;
    position: relative;
    height: 115px;
}
.step-title {
    background: linear-gradient(180deg, #F4E38B -24.36%, #F4DD62 23.01%, #B27F2A 100%);
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    color: transparent; 
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 700;
}
.number {
    background: linear-gradient(180deg, #F4E38B -24.36%, #F4DD62 23.01%, #B27F2A 100%);
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    color: transparent; 
    font-size: 90px;
    font-weight: 700;
    padding-right: 20px;
}

h1 {
    font-size: 56px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
}
h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
}

.main-text {
    margin-bottom: 135px;
}
.footer-text {
    margin-top: 40px;
    font-size: 12px;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0; 
  border-radius: 8px;
  padding: 2px; 
  background: linear-gradient(
    335.11deg,
    #F4E38B 23.63%,
    #F4DD62 64.48%,
    #B27F2A 116.85%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; 
  transition: opacity 0.6s ease-in-out;
  z-index: -1;
}


.step.active::before {
  opacity: 1;
}
.step:nth-child(1)::before {
  animation: highlight 6s infinite;
  animation-delay: 0s;
}

.step:nth-child(2)::before {
  animation: highlight 6s infinite;
  animation-delay: 2s;
}

.step:nth-child(3)::before {
  animation: highlight 6s infinite;
  animation-delay: 4s;
}

@keyframes highlight {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 1; }
  40%, 90% { opacity: 0; }
}
@media screen and (max-width: 1700px) {
   .step-content {
        max-width: 60%;
   }
    .main-text {
        margin-bottom: 150px;
    }
}

@media screen and (max-width: 1440px) {
    .main-text {
        margin-bottom: 170px;
    }
}
@media screen and (max-width: 1024px) {
    main {
        background: url('img/mob.jpg') no-repeat top center;
        background-size: 1120px auto;
        height: 1100px;
    }
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .step {
        width: 60%;
        height: 100px;
    }
    .main-text {
        text-align: center;
    }
    .container {
        margin-top: 10px;
    }
    .number {
        font-size: 64px;
    }
    .step {
        width: 380px;
    }
    .step-title {
        font-size: 24px;
    }
    .main-text {
        margin-bottom: 440px;
    }
    
}

@media screen and (max-width: 768px) {
   main {
        background: url('img/mob.jpg') no-repeat center top;
        background-size: 1100px auto;
        height: 1050px;
   }
    .button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .button-main {
        font-size: 16px;
        padding: 16px 26px;
        margin-top: 5px;
    }
    .header-logo {
        max-width: 200px;
    }
    
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 24px;
    }
    .main-text {
        margin-bottom: 455px;
    }
    .payment img {
        max-width: 75px;
    }
    .step-content {
        max-width: 100%;
    }
    .step {
        height: 90px;
    }

}

@media screen and (max-width: 520px) {
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 18px;
    }
    .number {
        font-size: 48px;
    }
    .step-title {
        font-size: 20px;
    }
    main {
        background-size: 790px auto;
        height: 765px;
    }
    .main-text {
        margin-bottom: 315px;
    }
    .step {
        width: 100%;
        height: 75px;
    }
    .footer-text {
        max-width: 90%;
        margin: 20px auto 0;
    }
    .header-logo {
        max-width: 170px;
    }
    .step-text {
        font-size: 15px;
    }
}