.hero{
  display: flex;
  flex-direction: column;
  padding: 0px 120px;
}

h1{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 224px;
  color: #FAF8F3;
}

h1 span {
  display: block;
}

.hero-card {
  width: 427px; 
  max-width: 40%;
  align-self: flex-end;
  height: max-content;
  background-image: url('../assets/images/empty-card.svg');
  background-size: cover;
  padding: 206px 24px;
}

.hero-card-text{
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #2C3E50;
  font-size: 28px;
}

.advantages{
  position: relative;
  margin-top: -214px;
}

.section-title{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  background-color: #7A9E7E;
  padding: 72px 120px;
  font-size: 96px;
  width: 100%;
  height: max-content;
  color: #FAF8F3;
}

.advantages-container{
  padding: 0 120px;
  padding-top: 120px;
  position: relative;   
}

.advantages-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 120px;
  position: relative;
  justify-items: center;

  &::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 22%;
    width: 10px;
    height: 850px;
    background: #7A9E7E;
  }
  
  &::after {
    content: '';
    position: absolute;
    top: -120px;
    right: 23%;
    width: 10px;
    height: 1420px;
    z-index: -1;
    background: #9E2A3E;
  }
}

.advantages-card{
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 450 / 642;
  padding: 120px 24px;
  position: relative;
  display: flex;
  gap: 38px;
  flex-direction: column;
  justify-content: start;
  font-family: 'Inter', sans-serif;
  color: #FAF8F3;
}

.advantages-card.green{
  background-image: url('../assets/images/adv-card-green.svg');
}

.advantages-card.red{
  background-image: url('../assets/images/adv-card-red.svg');
}

.advantages h3{
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 600;
}

.advantages p{
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
}

.advantages-chip{
  position: absolute;
  bottom: 0px;
  right: 19%;
  width: 272px;
  height: 272px;
  background-image: url('../assets/images/advantages-chip.svg');
}

.how-it-works{
  position: relative;
  max-height: 2000px;
}

.how-it-works .section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  background-color: #7A9E7E;
  padding: 72px 120px;
  font-size: 96px;
  width: 65%;
  color: #FAF8F3;
}

.step-block {
  display: flex;
  align-items: stretch;
  gap: 96px;
  padding: 0px 120px;
  max-width: 100%;
  position: relative;
}

.step-block .triangle {
  flex-shrink: 0;
  width: 57.5%;
  max-width: 828px;
  aspect-ratio: 828/220;
  background-image: url('../assets/images/triangle-how-it-works.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; 
}

.step-block .triangle.invisible{
  opacity: 0;
}

.step-block p {
  display: flex;
  align-items: center;
  padding: 26px 150px 26px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  line-height: 1.5;
  color: #FAF8F3;
  width: fit-content;
  max-width: 100%;
  max-height: 220px;
  background-color: #7A9E7E;
}

.step {
  position: relative;
  max-width: 1440px;
  padding: 0 120px;
}

.step-header {
  flex-shrink: 0;
  width: 67%;
  height: 220px;
  background-color: #7A9E7E;
  padding: 48px 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #FAF8F3;
}

.step-header h3 span {
  color: #9E2A3E;
}

.step-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 120px;
  width: 39.4%;
  max-width: 570px;
  background-image: url('../assets/images/step-decor.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

footer .decor{
  width: 100%;
  aspect-ratio: 1440 / 24;
  background-image: url('../assets/images/footer-decor.svg');
  background-size: cover;
}

.footer-info{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px 120px;
  width: 100%;
  height: 420px;
}

footer .footer-info h2{
  font-family: 'Manrope', sans-serif;
  font-size: 96px;
  color: #FAF8F3;
  font-weight: bold;
}

footer .footer-info .footer-contacts{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 53px;
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  color: #FAF8F3;
  font-weight: 500;
}


@media (max-width: 1280px) {
  nav {
    padding: 8px 60px;
  }
  
  .logo a {
    font-size: 36px;
  }
  
  .nav-links a {
    font-size: 18px;
  }
  
  .hero {
    padding: 0 60px;
  }
  
  h1 {
    font-size: 160px;
  }
  
  .hero-card {
    max-width: 45%;
    padding: 200px 20px;
  }
  
  .hero-card-text {
    font-size: 24px;
  }
  
  .advantages {
    margin-top: -150px;
  }
  
  .section-title {
    padding: 60px 60px;
    font-size: 72px;
  }
  
  .advantages-container {
    padding: 0 60px;
    padding-top: 80px;
  }
  
  .advantages-grid {
    gap: 60px 80px;
  }
  
  .advantages-card {
    max-width: 400px;
    padding: 80px 20px;
  }
  
  .advantages h3 {
    font-size: 32px;
  }
  
  .advantages p {
    font-size: 20px;
  }
  
  .advantages-chip {
    width: 270px;
    height: 270px;
    right: 13%;
  }
  
  .advantages-grid::before {
    left: 22%;
    height: 900px;
  }
  
  .advantages-grid::after {
    right: 20%;
    height: 1200px;
  }
  
  .how-it-works .section-title {
    padding: 60px 60px;
    font-size: 72px;
  }
  
  .step-block {
    gap: 60px;
    padding: 0 60px;
  }
  
  .step-block .triangle {
    width: 55%;
  }
  
  .step-block p {
    padding: 20px 100px 20px 20px;
    font-size: 20px;
    max-width: 450px;
  }
  
  .step-header {
    width: 65%;
    padding: 40px 80px;
  }
  
  .step-header h3 {
    font-size: 32px;
  }
  
  .step-decor {
    right: 60px;
    width: 50%;
  }
}

@media (max-width: 480px) {
  .burger-menu {
    display: block;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
  
    background-image: url('../assets/images/burger-button.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .burger-menu.active {
    background-image: url('../assets/images/close-burger-button.svg');
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #2C3E50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1000;
    padding: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 24px;
    color: #FAF8F3;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #9E2A3E;
  }
  
  body {
    gap: 40px;
    padding: 0;
  }
  
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    gap: 0;
  }
  
  .logo a {
    font-size: 24px;
  }
  
  .hero {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 36px;
    line-height: 1.2;
  }
  
  .hero-card {
    max-width: 100%;
    width: 100%;
    align-self: center;
    margin-top: 24px;
    padding: 134px 16px;
    background-image: url('../assets/images/empty-card.svg');
    background-size: cover;
  }
  
  .hero-card-text {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .section-title {
    padding: 24px 16px;
    font-size: 28px;
    width: 100%;
  }
  
  .advantages {
    margin-top: -60px;
  }
  
  .advantages-container {
    padding: 0 16px;
    padding-top: 40px;
    padding-bottom: 320px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
  
  .advantages-card {
    max-width: 100%;
    width: 100%;
    padding: 116px 16px;
    aspect-ratio: auto;
    min-height: auto;
  }
  
  .advantages h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .advantages p {
    font-size: 14px;
    line-height: 1.5;
  }

  .advantages-chip {
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    background-image: url('../assets/images/advantages-chip.svg');
    background-size: cover;
  }
  
  .advantages-grid::before{
    left: 49%;
    top: -53px;
    height: 1400px;
  }

  .advantages-grid::after{
    display: none;
  }

  .how-it-works{
    max-height: none;
  }
  
  .how-it-works .section-title {
    padding: 24px 16px;
    font-size: 28px;
    width: 100%;
    margin: 0;
  }
  
  .step-block {
    flex-direction: column;
    gap: 0px;
    padding: 0 16px;
  }
  
  .step-block .triangle {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4/1;
  }

  .step-block .triangle.invisible{
    display: none;
  }
  
  .step-block p {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    height: auto;
    max-height: none;
  }
  
  .step-header {
    width: 100%;
    padding: 20px 16px;
    height: auto;
  }
  
  .step-header h3 {
    font-size: 20px;
  }
  
  .step-decor {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 2.6/1;
    background-size: cover;
    margin-top: 0;
  }
}