html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1236px;
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  overflow: hidden;
}

h2.title {
  font-family: 'Poppins';
  font-size: 48px;
  font-weight: 600;
  line-height: 62.4px;
  color: var(--black);
  margin: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.header nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.header nav a {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  text-align: center;
  color: var(--gray);
}

.mobile-menu__button,
.header .mobile-menu {
  display: none;
}

.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins';
  font-size: 68px;
  font-weight: 600;
  line-height: 74.8px;
  text-align: center;
  color: var(--black);
  max-width: 880px;
  margin: 0 auto 18px;
}

.hero p {
  font-family: 'Poppins';
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  text-align: center;
  color: var(--gray);
  max-width: 440px;
  margin: 0 auto 28px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-images {
  display: grid;
  grid-template-columns: 250px auto 250px;
  grid-template-rows: auto;
  gap: 20px;
  margin: 56px auto 0;
}

.hero-images img {
  height: auto;
  border-radius: 32px;
  max-width: 100%;
}

.hero-images picture:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
}

.hero-images picture:nth-child(2) {
  grid-area: 2 / 1 / 3 / 2;
}

.hero-images picture:nth-child(3) {
  grid-area: 1 / 2 / 3 / 4;
}

.hero-images picture:nth-child(4) {
  grid-area: 1 / 4 / 3 / 5;
}

.notice {
  display: flex;
  align-items: center;
  padding: 80px 0;
  gap: 60px;
}

.notice p {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--gray);
  max-width: 510px;
}

.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
}

.feature-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card:nth-child(1) {
  grid-area: 1 / 1 / 2 / 3;
}

.card:nth-child(2) {
  grid-area: 1 / 3 / 2 / 6;
}

.card:nth-child(3) {
  grid-area: 2 / 1 / 3 / 4;
}

.card:nth-child(4) {
  grid-area: 2 / 4 / 3 / 6;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 32px;
  background-color: var(--light-background);
}

.card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.card h3 {
  font-family: 'Poppins';
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  color: var(--black);
  margin: 0;
}

.card p {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--gray);
  display: flex;
  gap: 20px;
}

.card p span {
  flex: 50%;
}

.why {
  padding: 80px 0;
}

.why h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tabs-wrapper {
  display: flex;
  gap: 56px;
  margin-top: 56px;
}

.why .tabs {
  display: flex;
  flex-direction: column;
}

.why .tab {
  padding: 24px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins';
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: var(--black);
  border-radius: 23px;
}

.why .tab.active {
  color: var(--primary-color);
  background-color: var(--light-background);
}

.why .tab.active svg path {
  stroke: var(--primary-color);
}

.why .tab-content {
  flex: 1;
}

.why .tab-pane {
  display: none;
  padding: 32px;
  border-radius: 32px;
  height: 100%;
  position: relative;
}

.why .tab-pane p {
  width: 320px;
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  color: var(--black);
}

.why .tab-pane img {
  position: absolute;
  right: 32px;
  top: 32px;
}

.why .tab-pane:nth-child(odd) {
  background-color: var(--green-light);
}

.why .tab-pane:nth-child(even) {
  background-color: var(--blue-light);
}

.why .tab-pane.active {
  display: block;
}

.why .tab-pane.active.mobile {
  display: none;
}

.faq {
  padding: 80px 0;
}

.faq h2 {
  position: relative;
  text-align: center;
  margin: 0;
}

.faq h2::before {
  content: url('../images/landing/icons/faq-banner-bg-1.svg');
  position: absolute;
  left: 32px;
  top: -14px;
}

.faq h2::after {
  content: url('../images/landing/icons/faq-banner-bg-2.svg');
  position: absolute;
  right: 225px;
  bottom: -4px;
}

.accordion-wrapper {
  max-width: 807px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.accordion-wrapper::before {
  content: url('../images/landing/icons/faq-banner-bg-3.svg');
  position: absolute;
  left: -69px;
  top: 137px;
}

.accordion-wrapper::after {
  content: url('../images/landing/icons/faq-banner-bg-4.svg');
  position: absolute;
  right: -196px;
  top: 269px;
}

.accordion-item {
  padding: 27px 24px;
  border-radius: 32px;
  background-color: var(--light-background);
  transition: 0.4s;
  cursor: pointer;
}

.accordion {
  cursor: pointer;
  width: 100%;
  outline: none;
  font-family: 'Poppins';
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-align: left;
  color: var(--black);
  position: relative;
}

.accordion::before {
  content: url('../images/landing/icons/plus.svg');
  position: absolute;
  right: -6px;
  top: -3px;
}

.accordion-item.active .accordion::before {
  content: url('../images/landing/icons/minus.svg');
}

.accordion-item.active,
.accordion-item:hover {
  background-color: var(--green-light);
}

.panel {
  background-color: var(--green-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, margin-top 0.2s ease-out;
  margin-top: 0;
}

.accordion-item.active .panel {
  margin-top: 16px;
}

.footer-banner {
  padding-top: 62px;
  position: relative;
}

.footer-banner::before {
  content: url('../images/landing/icons/footer-banner-bg-1.svg');
  position: absolute;
  left: 0;
  top: 26px;
}

.footer-banner::after {
  content: url('../images/landing/icons/footer-banner-bg-2.svg');
  position: absolute;
  right: 33px;
  bottom: 126px;
}

.footer-banner__box {
  max-width: 807px;
  background-color: var(--light-background);
  border-radius: 32px;
  padding: 44px 32px;
  text-align: center;
  margin: 0 auto -100px;
  position: relative;
  z-index: 1;
}

.footer-banner__box h2 {
  font-family: 'Poppins';
  font-size: 36px;
  font-weight: 600;
  line-height: 43.2px;
  color: var(--black);
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-banner__box p {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black);
  margin-bottom: 16px;
}

.footer {
  background-color: var(--primary-color);
  padding: 120px 56px 0;
  border-radius: 32px 32px 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 24px 0;
  border-bottom: 1px solid #FFFFFF2B;
}

.footer-top nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-top nav a {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  text-align: center;
  color: var(--light-background);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: center;
  gap: 34px;
}

.footer-bottom a {
  opacity: .5;
  font-family: 'Poppins';
  font-size: 14px;
  font-weight: 400;
  line-height: 18.2px;
  color: var(--light-background);
}

@media screen and (max-width: 1286px) {
  .hero-images {
    grid-template-columns: 200px auto auto 203px;
    max-width: 975px;
  }

  .why .tab-pane img {
    position: static;
    max-width: 100%;
    object-fit: contain;
  }

  .why .tab-pane p {
    width: 100%;
  }

  .why .tab-pane {
    text-align: center;
  }
}

@media screen and (max-width: 1010px) {
  .hero-images {
    grid-template-columns: 150px auto auto 155px;
    max-width: 750px;
  }
}

@media screen and (max-width: 900px) {
  .tabs-wrapper {
    gap: 16px;
  }
}

@media screen and (max-width: 769px) {

  .header nav,
  .header .button {
    display: none;
  }

  .header .mobile-menu nav {
    display: block;
    margin: 32px 0 16px;
  }

  .header .mobile-menu nav a {
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    color: var(--white);
  }

  .header .mobile-menu nav ul {
    flex-direction: column;
    gap: 34px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .header .mobile-menu .secondary-button {
    width: 100%;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: -1px 7px 15px 0px #0000001A, -4px 28px 28px 0px #00000017,
      -9px 63px 38px 0px #0000000D,
      -16px 111px 45px 0px #00000003,
      -26px 174px 49px 0px #00000000;
    border-radius: 0 0 32px 32px;
    padding: 16px;
  }

  .header .mobile-menu__button,
  .header .close-menu {
    display: block;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .header .close-menu {
    background-color: var(--white);
  }

  .mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 41.8px;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .hero-images {
    grid-template-columns: 100px auto auto 107px;
    max-width: 528px;
  }

  .hero-images img {
    border-radius: 12px;
  }

  .notice {
    padding: 72px 0;
    flex-direction: column;
    gap: 32px;
  }

  h2.title {
    font-size: 32px;
    line-height: 41.6px;
  }

  .notice p {
    max-width: 100%;
  }

  .features {
    padding: 72px 0;
  }

  .feature-cards {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
  }

  .card {
    gap: 16px;
  }

  .card p {
    flex-direction: column;
  }

  .why {
    padding: 72px 0;
  }

  .why h2 {
    flex-direction: column;
    gap: 26px;
  }

  .why .button {
    width: 100%;
  }

  .tabs-wrapper {
    flex-direction: column;
    margin-top: 36px;
  }

  .why .tab {
    font-size: 18px;
    line-height: 23.4px;
    padding: 20px 16px;
  }

  .why .tab-content {
    display: none;
  }

  .why .tab-pane.active.mobile {
    display: block;
    margin: 16px 0;
  }

  .why .tab-pane:nth-child(4n+2) {
    background-color: var(--green-light);
  }

  .why .tab-pane:nth-child(4n+4) {
    background-color: var(--blue-light);
  }

  .faq {
    padding: 72px 0;
  }

  .faq h2::before {
    transform: scale(.6);
    left: -5px;
    top: -58px;
  }

  .faq h2::after {
    content: url(../images/landing/icons/faq-banner-bg-3.svg);
    transform: scale(.8);
    right: 16px;
    bottom: -35px;
  }

  .accordion {
    font-size: 18px;
    line-height: 23.4px;
    padding-right: 50px;
  }

  .accordion-item {
    padding: 20px;
  }

  .accordion-wrapper::after {
    left: auto;
    bottom: -155px;
    right: 14px;
    top: auto;
    transform: scale(.8);
  }

  .accordion-wrapper::before {
    right: auto;
    bottom: -100px;
    left: 12px;
    top: auto;
    content: url(../images/landing/icons/faq-banner-bg-2.svg);
  }

  .footer-banner__box {
    padding: 20px;
  }

  .footer-banner__box .button {
    width: 100%;
  }

  .footer-banner__box h2 {
    font-size: 20px;
    line-height: 24px;
  }

  .footer-banner {
    padding-top: 105px;
  }

  .footer-banner::before,
  .footer-banner::after {
    display: none;
  }

  .footer {
    margin: 0 -16px;
    padding: 120px 16px 0;
  }

  .footer-top .secondary-button {
    display: none;
  }

  .footer-top nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-top nav li {
    width: calc(50% - 6px);
  }
}

@media screen and (max-width: 560px) {
  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .cta-buttons a {
    width: 100%;
  }

  .hero-images {
    display: flex;
    flex-direction: column;
    max-width: 528px;
    gap: 20px;
  }

  .hero-images img {
    border-radius: 32px;
  }

  .hero-images picture:nth-child(1) {
    order: 2;
  }

  .hero-images picture:nth-child(2) {
    order: 3;
  }

  .hero-images picture:nth-child(3) {
    order: 1;
  }

  .hero-images picture:nth-child(4) {
    order: 4;
  }
}