@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;600;700;800&display=swap');

:root {
  --dark: #000;
  --light: #fff;
  --primary: #fcb72b;
  --accent: #fd8922;
  --primary-light: #F0F2FF;
  --primary-hover: #6e36b8;
  --transition: all 0.25s cubic-bezier(.39,0,.17,.99);
  --header: #3F0232;
  --main-gradient: linear-gradient(99.19deg, #9747FF -17.7%, #fad079 135.67%);
  --menu-text: #494949;
  --section-title: 20px;
  --offset: 20px;
  --radius: 30px;
  --section-offset: 60px;
}      
    

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: currentColor;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--light);
  font-weight: 600;
}


html {
  scroll-behavior: smooth;
}

body {
  font: 400 16px/1.5 'Jost', Arial, sans-serif;
  color: rgba(0, 0, 0, 0.5);
  background-color: var(--light);
  min-height: 568px;
  min-width: 320px;
  overflow-y: scroll;
}}

.wrapper {
  position: relative;
  overflow-x: hidden;
}

.show-menu .wrapper {
  height: auto;
  overflow-x: visible;
}

.show-menu .header {
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 10px 60px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--light);
  background: var(--main-gradient);
  width: 100%;
}

.btn-light {
  background: var(--light);
  color: var(--dark);
}

.btn:hover {
  opacity: 0.9;
}

.page-title {
  display: block;
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

.slogan {
  display: block;
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

.center {
  width: 100%;
  max-width: 1400px;
  padding: 0 10px;
  margin: 0 auto;
}

/* Header */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  z-index: 12;
}

.header-logo {
  display: flex;
}

.header-mobile {
  top: auto;
  bottom: 0;
}

.header .center {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition);
  padding: var(--offset);
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  background: var(--light);
  color: var(--menu-text);
  box-shadow: 0px 4px 74px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  line-height: 1.67;
  font-size: 18px;
}



.show-menu .nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0%);
}

.nav-item span {
  display: block;
  padding: 10px;
  font-weight: 600;
  color: var(--dark);
}

.nav-item-dropdown a {
  display: block;
  padding: 10px;
  font-weight: 500;
}

.nav-item-dropdown a:hover {
  color: var(--primary);
}

.current-page {
  color: var(--primary);
}

.nav-item-join {
  margin-top: var(--offset);
}

.nav-mobile-btn {
  width: 30px;
  height: 30px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(icon-menu.svg);
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 11;
}

/* Show-menu */
.show-menu .nav-mobile-btn {
   background-image: url(icon-cross.svg);
}


/* Main-section */

.main-section {
  padding-top: var(--offset);
  padding-bottom: var(--section-offset);
}

.section-title {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.45;
  text-align: center;
  color: var(--dark);
  margin-bottom: var(--offset);
}

.main-box {
  position: relative;
  display: grid;
  gap: var(--offset);
  background: var(--light);
  color: var(--dark);
  border-radius: var(--radius);
  padding: var(--offset);
  margin: 0 auto;
  max-width: 650px;
  box-shadow: 0px 0px 34px rgba(0, 0, 0, 0.25);
}

.main-image {
  display: flex;
  border-radius: inherit;
  overflow: hidden;
  max-height: 730px;
  max-width: 610px;
  border-radius: 20px;
}

.main-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.main-image__big{
  display: block;
  max-width: 100%;
  margin-bottom: 50px;
}

.main-content .slogan {
  text-align: center;
  font-weight: 600;
  font-size: var(--section-title);
  line-height: 1.45;
  color: var(--dark);
  margin-bottom: var(--offset);
}

.main-content p {
  margin-bottom: calc(var(--offset) / 2);
}

/* Features */

.features-section {
  padding-bottom: var(--section-offset);
}

.features-list {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

.features-card  {
  position: relative;
  background: var(--light);
  color: var(--dark);
  border-radius: var(--radius);
  padding: var(--offset);
  max-width: 240px;
  width: 100%;
  box-shadow: 0px 0px 34px rgba(0, 0, 0, 0.25);
}

.features-card-left {
  margin-right: auto;
}

.features-card-left::after {
  content:'';
  position: absolute;
  background: url(arrow-decor.svg) no-repeat 50% 50% / contain;
  width: 70px;
  height: 70px;
  bottom: 10px;
  right: -40px;
  pointer-events: none;
  z-index: 1;
}


.features-card-right {
  margin-left: auto;
  top: calc(var(--offset) / 2 * -1);
}

.features-title {
  font-weight: 600;
  font-size: var(--section-title);
  margin-bottom: var(--offset);
  color: var(--dark);
}

/* Card section */

.card-section {
  padding-bottom: var(--section-offset);
}

.card-list {
  display: grid;
  gap: var(--offset);
}

.card {
  position: relative;
  padding: var(--offset);
  text-align: center;
  background: var(--light);
  color:var(--dark);
  border-radius: var(--radius);
  box-shadow: 0px 0px 34px rgba(0, 0, 0, 0.25);
}

.card-btn {
  margin: var(--offset) auto 0;
  max-width: 280px;
}

.card-title {
  color: var(--dark);
  font-size: var(--section-title);
  font-weight: 600;
  margin-bottom: var(--offset);
  line-height: 1.45;
}

/* Content sectiion */
.content-section {
  position: relative;
  padding: var(--offset) 0;
  margin-bottom: var(--section-offset);
  background: var(--primary);
  color: var(--light);
  text-align: center;
}

.content-section:before,
.content-section:after {
  content:'';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  max-width: 1440px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 120px 120px;
}

.content-section:before  {
    background-image: url(like-decor-icon.png);
    background-position: left bottom;
    bottom: -100px;
}

.content-section:after  {
    background-image: url(tick-decor-icon.png);
    background-position: right top;
    top: -40px;
}

.content-section .btn {
  max-width: 280px;
  margin-top: var(--offset);
}

.content-section .section-title {
  font-size: 20px;
  color: var(--light);
}

/* Features-section */

/* Image block */

.image-block {
  padding-bottom: var(--section-offset);
}

.image-block .center {
  padding: 0;
}

.image-block img {
  display: block;
  margin: 0 auto;
}


/* Links */ 

.links-section {
  padding-bottom: var(--section-offset);
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--offset);
  justify-content: center;
}

.links-list a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  height: 50px;
  min-width: 130px;
  border-radius: 100px;
  color: var(--light);
  background-color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.links-list a:hover {
  background-color: var(--primary-hover);
}

/* Footer */
.footer {
  padding: var(--offset) 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.footer .center {
  display: grid;
  gap: var(--offset);
  justify-content: center;
}

.footer-logo {
  display: block;
  margin: 0 auto;
}

.footer-copyright,
.footer-text {
  font-size: 12px;
  font-weight: 600;
}

.footer-links-block {
  display: flex;
  flex-direction: column;
}

.footer-links-block li {
  margin-bottom: var(--offset);
}

.footer-links-block li:last-child {
  margin-bottom: 0;
}

.footer-links-block  a {
  display: block;
  font-size: 20px;
  line-height: 1.5;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-links-block a:hover {
  text-decoration: underline;
}

/* Overlay block */
.overlay-block {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
}

.show-menu .overlay-block,
.overlay-block.active {
  display: block;
}

@media (max-width:991px) {
  .show-menu .section {
    display: none;
  }
}

@media (min-width: 768px) {
  .image-block .center {
    padding: 0 var(--offset);
  }
  
  .image-block img {
    border-radius: 60px;
  }
  
  .features-card {
    max-width: 780px;
  }
}

@media (min-width: 992px) {
  
  :root {
    --section-offset: 120px;
    --section-title: 28px;
    --offset: 40px;
  }
  
  
  body {
    font-size: 20px;
  }
  
  .header {
    padding: 30px 0;
  }
  
  .header-logo {
    flex-shrink: 0;
    margin-right: 15.6%;
  }

  .nav {
    position: static;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-between;
    opacity: 1;
    padding: 0;
    background-color: transparent;
    visibility: visible;
    -webkit-transform: none;
    transform: none;
    box-shadow: none;
  }
     
  .nav-list {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
     
  .nav-item {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .nav-item-join {
    margin: 0;
  }
  
  .nav-item-join a {
    width: 280px;
  }

  [data-role="dropdown"] span::after {
    content: "";
    position: relative;
    transform-origin: 50% 50%;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: url(icon-bottom.svg) no-repeat center / contain;
    margin-left: 8px;
    transition: var(--transition);
  }

  .nav-item span{
    display: flex;
    align-items: center;
    
    line-height: 1.5;
    font-weight: 400;
    color: var(--light);
    padding: 0;
  }
  
  .nav-item-dropdown {
    opacity: 0;
    visibility: hidden;
    padding: var(--offset) 0;
    display: block;
    width: 100%;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: -70px;
    width: 280px;
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
    background: var(--light);
    box-shadow: 0px 4px 74px rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    transition: var(--transition);
    z-index: 10;
  }

  .active .nav-item-dropdown {
    visibility: visible;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    opacity: 1;
  }
  
  .active.nav-item span::after {
     transform: rotate(180deg);
  }
  
  .nav-mobile-btn {
    display: none;
  }
  
  .main-section {
    padding-top: 60px;
  }
  
  .main-section .section-title {
    margin-bottom: 60px;
  }
  
  .section-title {
    font-size: 40px;
    line-height: 1.45;
  }
  
  .main-box {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 60px;
    border-radius: 60px;
  }
  
  .main-content .slogan {
    font-size: 28px;
    line-height: 1.42;
    text-align: left;
  }

  .main-image {
    order: 1;
    border-radius: 30px;
  }
  .main-content .btn {
    margin-top: 20px;
    max-width: 280px;
  }
  
  /* Card list */
  .card-list {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 60px;
  }
  
  
  .card-border {
    text-align: left;
  }
  
  .card-full {
    grid-column: 1 / -1;
  }
  

  .features-list {
    max-width: none;
    margin: 0;
  }
  
  .features-card  {
    padding: 60px;
  }
  
  .features-card-left::after {
    width: 200px;
    height: 200px;
    bottom: 40px;
    right: -240px;
  }
  
  /* Content section */
  
  .content-section  {
    padding: 60px 0;
  }
  
  .content-section:before,
  .content-section:after {
    background-size: contain;
  }
  
  .content-section:before {
    bottom: auto;
    top: calc(100% - 120px);
  }
  
  .content-section:after {
    top: -120px;
  }
  
  .content-section .section-title {
    font-size: 28px;
    
  }
  
  .content-section p {
    max-width: 890px;
    margin: 0 auto;
  }
    
  /* Links */
  
  .links-list a  {
    min-width: 200px;
  }
   
   /* Footer */
   .footer {
     padding: 30px 0;
   }
   
   .footer-logo {
     margin: 0;
   }
   
   .footer .center {
     grid-template-columns: 160px 560px 1fr;
     justify-content: space-between;
     align-items: center;
     gap: 120px;
   }
   
   .footer-links-block {
     flex-direction: row;
     align-items: center;
   }
   
   .footer-links-block li {
     margin-bottom: 0;
     margin-right: 60px;
   }
}