*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fonts */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Inter/Inter-Regular.woff') format('woff'),
       url('../assets/fonts/Inter/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Inter/Inter-Medium.woff') format('woff'),
       url('../assets/fonts/Inter/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Inter/Inter-SemiBold.woff') format('woff'),
       url('../assets/fonts/Inter/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Inter/Inter-Bold.woff') format('woff'),
       url('../assets/fonts/Inter/Inter-Bold.ttf') format('truetype');
}

/* Base */

body {
  position: relative;
  margin: 0;
  padding: 0;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

main {
  flex: 1;
  margin: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1792px !important;
  width: calc(100% - 64px) !important;
  margin: 0 auto 64px;
  scroll-margin-top: 150px;
}

/* container responsive */

@media screen and (max-width: 1024px) {
  .container {
    width: calc(100% - 48px) !important;
  }
}

@media screen and (max-width: 767px) {
  .container {
    width: calc(100% - 32px) !important;
  }
}

/* Header */

.header {
  position: absolute;
  width: 100%;
  z-index: 10;
}

.header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px;
  border-radius: 0 0 16px 16px;
}

.header .main-logo {
  width: 153px;
  height: 36px;
}

/* header responsive */

@media screen and (max-width: 1440px) {
  .header .container {
    padding: 32px;
  }
}

@media screen and (max-width: 767px) {
  .header .container {
    padding: 16px 0;
  }

  .header .main-logo {
    width: 129px;
    height: 37px;
  }
}

/* fixed header */

.header.header-fixed {
  position: fixed;
  animation-name: headerFixed;
  animation-duration: 0.5s;
}

.header.header-fixed .container {
  background-color: #fff;
  padding: 16px 64px;
  box-shadow: 0 0 128px 0 rgba(94, 91, 171, 0.16);
}

@media screen and (max-width: 1440px) {
  .header.header-fixed .container {
    width: calc(100% - 8px) !important;
    padding: 16px 52px;
  }
}

@media screen and (max-width: 767px) {
  .header.header-fixed .container {
    padding: 16px 12px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

@media screen and (max-width: 1440px) {
  .btn {
    height: 68px;
  }
}

@media screen and (max-width: 1024px) {
  .btn {
    height: 58px;
  }
}

@media screen and (max-width: 767px) {
  .btn {
    height: 50px;
  }
}

.btn-primary {
  padding: 20px 32px;
  border-radius: 16px;
  background: linear-gradient(97deg, #a380b2 0%, #5858aa 100%);
  box-shadow: 8px 8px 16px 0 rgba(88, 88, 170, 0.25);
  width: auto;
}

@media screen and (max-width: 1024px) {
  .btn-primary {
    padding: 16px 24px;
  }
}

@media screen and (max-width: 767px) {
  .btn-primary {
    padding: 12px 20px;
  }
}

.btn-primary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

@media screen and (max-width: 1440px) {
  .btn-primary span {
    font-size: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .btn-primary span {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {
  .btn-primary span {
    line-height: 120%;
  }
}

.btn-primary span::before {
  content: '';
  width: 20px;
  height: 26px;
  background-image: url('../assets/flash.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

.btn-secondary {
  padding: 8px 32px;
  border-radius: 16px;
  background: #5858aa;
  height: 40px;
}

@media screen and (max-width: 1440px) {
  .btn-secondary {
    height: 37px;
  }
}

.btn-secondary span {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

@media screen and (max-width: 1440px) {
  .btn-secondary span {
    font-size: 14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background:
      linear-gradient(
        0deg,
        rgba(178, 149, 192, 0.5) 0%,
        rgba(178, 149, 192, 0.5) 100%
      ),
      linear-gradient(97deg, #a380b2 0%, #5858aa 100%);
    box-shadow: 8px 8px 16px 0 rgba(88, 88, 170, 0.25);
  }

  .btn-secondary:hover {
    background:
      linear-gradient(
        0deg,
        rgba(178, 149, 192, 0.5) 0%,
        rgba(178, 149, 192, 0.5) 100%
      ),
      #5858aa;
    box-shadow: 8px 8px 16px 0 rgba(88, 88, 170, 0.25);
  }
}

/* Main banner */

.main-banner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: calc(100vh - 64px);
  max-height: 913px;
  min-height: fit-content;
  padding: 144px 64px 64px;
  border-radius: 0 0 64px 64px;
  background-color: #f2f2ff;
}

/* main-banner responsive */

@media screen and (max-width: 1440px) {
  .main-banner {
    padding: 143px 32px 32px 64px;
    max-height: 796px;
    border-radius: 0 0 32px 32px;
  }
}

@media screen and (max-width: 1024px) {
  .main-banner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 48px;
    height: auto;
    max-height: unset;
    padding: 117px 16px 59px;
  }
}

@media screen and (max-width: 767px) {
  .main-banner {
    width: 100% !important;
    margin: 0 0 64px;
    gap: 32px;
    height: auto;
    padding: 85px 16px 16px !important;
    border-radius: 0 0 16px 16px;
  }
}

.main-banner .background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/main-back.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  border-radius: 0 0 64px 64px;
}

@media screen and (max-width: 1440px) {
  .main-banner .background-image {
    border-radius: 0 0 32px 32px;
  }
}

@media screen and (max-width: 767px) {
  .main-banner .background-image {
    border-radius: 0 0 16px 16px;
  }
}

.main-banner .text-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
  max-width: 1073px;
}

@media screen and (max-width: 1440px) {
  .main-banner .text-block {
    gap: 24px;
    max-width: 726px;
  }
}

@media screen and (max-width: 1024px) {
  .main-banner .text-block {
    align-items: center;
    gap: 16px;
    width: 90%;
  }
}

@media screen and (max-width: 767px) {
  .main-banner .text-block {
    width: 100%;
  }
}

.main-banner .text-block .main-text {
  width: 100%;
  margin-bottom: 48px;
  color: #3c315b;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

@media screen and (max-width: 1440px) {
  .main-banner .text-block .main-text {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

@media screen and (max-width: 1024px) {
  .main-banner .text-block .main-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 767px) {
  .main-banner .text-block .main-text {
    line-height: 120%;
  }
}

.main-banner .image-container {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 440px;
  height: 755px;
  background-image: url('../assets/main-mobile.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

@media screen and (max-width: 1440px) {
  .main-banner .image-container {
    width: 416px;
    height: 637px;
  }
}

@media screen and (max-width: 1024px) {
  .main-banner .image-container {
    margin-left: 16px;
    background-position: center;
  }
}

@media screen and (max-width: 767px) {
  .main-banner .image-container {
    width: 240px;
    height: 365px;
    margin-left: 0;
    background-position: center;
  }
}

/* Headings */
.main-banner h1,
.h1 {
  margin-bottom: 0;
  color: #3c315b;
  font-family: 'Inter', sans-serif;
  font-size: 70px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -3px;
}

@media screen and (max-width: 1440px) {
  .main-banner h1,
  .h1 {
    font-size: 60px;
    line-height: 110%;
  }
}

@media screen and (max-width: 1024px) {
  .main-banner h1,
  .h1 {
    font-size: 50px;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .main-banner h1,
  .h1 {
    font-size: 35px;
  }
}

/* Animations */
@keyframes headerFixed {
  from {
    transform: translateY(-100%);
    opacity: 1;
    visibility: visible;
  }

  to {
    transform: translateY(0);
  }
}