:root {
  --blue: #3b82f6;
  --black: #1e293b;
  --white: #fff;
  --gray-30: rgba(203, 213, 225, 0.3);
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-600: #475569;

  --p-8: 8px;
  --p-12: 12px;
  --p-16: 16px;
  --p-20: 20px;
  --p-24: 24px;
  --p-32: 32px;
  --p-48: 48px;
  --p-60: 60px;
  --p-80: 80px;

  --f-hero: 56px;
  --f-title: 44px;
  --f-subtitle: 26px;
  --f-base: 17px;
  --f-large: 20px;

  --r-10: 10px;
  --r-12: 12px;
  --r-24: 24px;
  --r-100: 100px;

  --trs: all 0.3s ease-in-out;

  @media screen and (max-width: 1366px) {
    --f-hero: 44px;
    --f-base: 15px;
  }

  @media screen and (max-width: 1024px) {
    --f-hero: 36px;
    --f-title: 32px;
    --f-large: 17px;
  }

  @media (max-width: 767px) {
    --f-hero: 30px;
    --f-title: 24px;
    --f-subtitle: 20px;
  }
}

/* Base */

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 175px;

  @media (max-width: 767px) {
    scroll-margin-top: 100px;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: normal;
  font-size: var(--f-base);
  color: var(--black);
  line-height: 1.5;
}

a {
  text-decoration: inherit;
  color: inherit;
}

h1 {
  font-size: var(--f-hero);
  letter-spacing: -0.02em;
  margin-bottom: var(--p-24);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  font-size: var(--f-title);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: var(--f-subtitle);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

img {
  max-width: 100%;
}

.subtitle {
  margin-bottom: var(--p-32);

  @media screen and (max-width: 1366px) {
    font-size: 17px;
  }

  @media (max-width: 767px) {
    margin: 0;
  }
}

.wrapper {
  width: 100%;
  max-width: 1440px;
  padding: var(--p-24);
  margin: 0 auto;
  display: grid;
  gap: var(--p-80);

  @media screen and (max-width: 1366px) {
    max-width: 1072px;
  }

  @media screen and (max-width: 1024px) {
    max-width: 848px;
  }

  @media screen and (max-width: 768px) {
    max-width: 767px;
    padding: 0;
    gap: 0;
  }
}

.section {
  padding: var(--p-60);

  @media screen and (max-width: 1024px) {
    padding: var(--p-60) var(--p-32);
  }

  @media screen and (max-width: 768px) {
    padding: 50px var(--p-16);
    border-radius: 0 !important;
  }
}

.grid {
  display: grid;
  gap: var(--p-24);
}

& > * {
  min-width: 1px;
}

.gap-16 {
  gap: var(--p-16);
}

.gap-24 {
  gap: var(--p-24);
}

.gap-32 {
  gap: var(--p-32);
}

.gap-48 {
  gap: var(--p-48);
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.button {
  white-space: nowrap;
  padding: 0 16px;
  border: 1px solid var(--blue);
  background-color: var(--blue);
  color: var(--white);
  border-radius: var(--r-12);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trs);

  &:hover {
    background-color: transparent;
    color: var(--blue);
  }

  @media screen and (max-width: 768px) {
    display: none;
  }
}

/* Header */

.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-24);
  padding: var(--p-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  overflow: hidden;
  box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.01), 0 6px 28px 0 rgba(0, 0, 0, 0.05);

  @media screen and (max-width: 1366px) {
    max-width: 992px;
  }

  @media screen and (max-width: 1024px) {
    max-width: 704px;
    flex-wrap: wrap;
    transition: var(--trs);
  }

  @media (max-width: 767px) {
    max-width: calc(480px - var(--p-32));
  }

  &:has(.header__nav.active) {
    background-color: var(--white);
  }
}

.header__wrap {
  width: 100%;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--p-24);
  z-index: 9999;
  top: 0;
  left: 0;
  padding: var(--p-48);

  @media (max-width: 767px) {
    padding: var(--p-16);
  }
}

.header__buttons {
  display: flex;
  align-items: center;
  gap: var(--p-16);

  @media screen and (max-width: 1024px) {
    justify-content: flex-end;
    flex: 1 1 auto;
  }
}

.header__logo {
  min-width: 198px;
  display: flex;
}

.header__nav {
  display: flex;
  align-items: center;

  .apple,
  .google {
    display: none;
  }

  @media screen and (max-width: 1366px) {
    gap: var(--p-16);
  }

  @media screen and (max-width: 1024px) {
    /* display: none; */
    order: 999;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    height: 0;
    transition: var(--trs);
    align-items: start;

    &.active {
      display: flex;
      flex-direction: column;
      height: auto;
      opacity: 1;
      pointer-events: auto;
      padding-top: var(--p-24);
    }
  }

  @media (max-width: 767px) {
    .apple,
    .google {
      display: flex;
      margin-top: 8px;
    }
  }

  & a {
    transition: var(--trs);
    padding: 8px 12px 9px;
    white-space: nowrap;
    border-radius: var(--r-10);

    @media screen and (max-width: 1366px) {
      padding: 0;
    }

    @media (max-width: 767px) {
      font-size: 17px;
    }

    &:hover {
      background-color: var(--gray-30);

      @media screen and (max-width: 1366px) {
        background-color: transparent;
      }
    }
  }
}

/* Menu */

.hidden {
  display: none !important;
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-12);
  border: 1px solid #e2e8f0;
  align-items: center;
  justify-content: center;

  @media screen and (max-width: 1024px) {
    display: flex;
  }

  & img {
    width: 24px;
    height: 24px;
  }

  .hide {
    display: none;
  }
}

.menu.active .menu__open {
  display: none;
}

.menu.active .menu__close {
  display: block !important;
}

.menu__close {
  display: none;
}

/* Hero */

.hero {
  border-radius: var(--r-24);
  background-color: var(--blue);
  color: var(--white);
  padding-top: 120px;
  padding-bottom: 0;
  position: relative;

  @media (max-width: 767px) {
    overflow: hidden;
  }
}

.hero__grid {
  padding-top: 55px;
  grid-template-columns: 1.25fr 1fr;

  @media screen and (max-width: 1024px) {
    padding-top: var(--p-32);
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    gap: var(--p-24);
  }
}

.hero__content {
  margin-top: -35px;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--p-16);

  @media (max-width: 767px) {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.hero__image {
  display: flex;
  align-items: center;

  & img {
    /* max-width: 490px; */
    height: 622px;
    /* margin: 0 auto; */

    @media screen and (max-width: 1366px) {
      height: 485px;
      width: auto;
    }

    @media screen and (max-width: 1024px) {
      height: auto;
      width: 300px;
    }

    @media (max-width: 767px) {
      width: 80%;
      height: auto;
      margin: 0 auto;
      margin-bottom: -40px;
    }
  }
}

/* Payment */

.payment {
  background-color: var(--gray-100);
  border-radius: var(--r-24);

  @media screen and (max-width: 1024px) {
    padding-bottom: 0;
  }
}

.payment__grid {
  grid-template-columns: 1fr 460px;

  @media screen and (max-width: 1366px) {
    grid-template-columns: 1fr 290px;
  }

  @media screen and (max-width: 1024px) {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--p-32);
  }
}

.payment__content {
  font-size: var(--f-large);
}

.payment__list {
  list-style-type: disc;
  padding-left: var(--p-32);
  display: flex;
  flex-direction: column;
  gap: var(--p-20);
  color: var(--gray-600);
  text-wrap: balance;

  @media screen and (max-width: 1024px) {
    text-align: left;
    gap: 16px;
  }
}

.payment__title {
}

.payment__image {
  display: flex;
  align-items: center;
  width: 100%;

  img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
}

/* How it work */

.hww {
  text-align: center;

  @media screen and (max-width: 1024px) {
    gap: var(--p-32);
  }

  @media (max-width: 767px) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.hww__header {
  font-size: var(--f-large);

  & p {
    color: var(--gray-600);
    text-wrap: balance;
  }
}

.hww__grid {
  @media screen and (max-width: 1366px) {
    grid-template-columns: 1fr;
  }

  @media (max-width: 767px) {
    gap: var(--p-16);
  }
}

.hww__box {
  background-color: var(--gray-100);
  border-radius: var(--r-24);
  overflow: hidden;
  text-wrap: balance;

  @media screen and (max-width: 1366px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    &:nth-child(2) {
      .hww__box--image {
        order: 9999;
      }
    }
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    border-radius: 0;

    &:nth-child(2) {
      .hww__box--image {
        order: -1;
      }
    }
  }
}

.hww__box--info {
  padding: 60px var(--p-48);
  justify-content: center;
  font-size: var(--f-large);

  @media screen and (max-width: 1366px) {
    padding: var(--p-32) 80px;
  }

  @media screen and (max-width: 1024px) {
    padding: var(--p-32);
  }

  @media (max-width: 767px) {
    font-size: 15px;
    padding: 32px 50px;
  }

  & p {
    color: var(--gray-600);
  }
}

.hww__box--image {
  background-color: var(--bg-color);

  & img {
    display: block;
    margin: 0 auto;
    width: 100%;

    @media screen and (max-width: 1366px) {
      height: 330px;
      object-fit: contain;
    }

    @media screen and (max-width: 1024px) {
      height: 100%;
      width: 100%;
    }
  }
}

.hww__box--number {
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  border-radius: var(--r-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Start */

.start {
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--r-24);
}

.start__grid {
  @media screen and (max-width: 1024px) {
    grid-template-columns: 1fr;
    text-align: center;
    text-wrap: balance;
  }
}

.start__content {
  font-size: var(--f-large);

  & h2 {
    margin-bottom: var(--p-20);
  }

  & p {
    margin-bottom: var(--p-20);
    padding-right: 30px;

    @media (max-width: 767px) {
      padding-right: 0;
    }

    &:last-child {
      margin-bottom: 0;
    }
  }
}

.start__image {
  & img {
    display: block;
    margin: 0 auto;
  }
}

/* Contry */

.contry {
  background-color: var(--gray-100);
  border-radius: var(--r-24);
  text-align: center;
}

.contry__header {
  & p {
    font-size: var(--f-large);
  }
}

.contry__grid {
  @media (max-width: 767px) {
    gap: var(--p-24);
  }
}

.contry__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--p-48);

  @media (max-width: 767px) {
    gap: var(--p-16);
  }

  & img {
    @media (max-width: 767px) {
      width: 48px;
      height: 48px;
    }
  }
}

/* Benefits */

.benefits {
  text-align: center;
  font-size: var(--f-large);

  @media (max-width: 767px) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.benefits__header {
  & p {
    color: var(--gray-600);
  }
}

.benefits__grid {
  @media (max-width: 767px) {
    gap: var(--p-16);
  }
}

.benefits__columns {
  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: var(--p-32);
  }
}

.benefits__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--p-32);
  text-wrap: balance;

  @media (max-width: 767px) {
    gap: var(--p-16);
  }
}

.benefits__name {
  font-size: var(--f-large);
  font-weight: normal;
  padding: 6px 16px;
  color: var(--white);
  border-radius: var(--r-100);
  background-color: var(--blue);
  line-height: 1.5;

  @media screen and (max-width: 1366px) {
    font-size: 17px;
  }
}

.benefits__box {
  padding: var(--p-48);
  background-color: var(--gray-100);
  border-radius: var(--r-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--p-24);

  @media screen and (max-width: 1366px) {
    font-size: 17px;
    padding: var(--p-48) var(--p-24);
  }

  @media screen and (max-width: 1024px) {
    padding: var(--p-32) var(--p-24);
    height: 270px;
  }

  @media (max-width: 767px) {
    border-radius: 0;
    font-size: 15px;
    padding: var(--p-32) var(--p-24);
    height: auto;
    width: 100%;
  }
}

/* Install */

.install {
  background-color: var(--blue);
  border-radius: var(--r-24);
  color: var(--white);
  text-align: center;

  & p {
    font-size: var(--f-large);

    @media screen and (max-width: 1366px) {
      text-wrap: balance;
    }
  }
}

.install__grid {
  @media (max-width: 767px) {
    gap: var(--p-32);
  }
}

.install__buttons {
  display: flex;
  gap: var(--p-16);
  justify-content: center;
}

/* FAQ */

.faq {
  text-align: center;

  @media (max-width: 767px) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.faq__grid {
  @media (max-width: 767px) {
    gap: var(--p-24);
  }
}

.faq__list {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  border-radius: var(--r-24);
  background-color: var(--gray-100);

  @media (max-width: 767px) {
    border-radius: 0;
  }
}

.faq__item {
  padding: var(--p-24);
  border-bottom: 1px solid var(--white);
  position: relative;

  @media (max-width: 767px) {
    padding: var(--p-16);
  }

  &[open] {
    .faq__title {
      &:before {
        transform: translate(0%, -50%) rotate(180deg);
      }
    }
  }
}

.faq__title {
  list-style: none;
  cursor: pointer;
  position: relative;
  font-size: var(--f-large);
  padding-right: 40px;
  text-wrap: balance;

  &::-webkit-details-marker {
    display: none;
  }

  &:before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% - var(--p-48));
    transform: translate(0%, -50%);
    width: 24px;
    height: 24px;
    background-image: url("../img/arrow.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: var(--trs);

    @media (max-width: 767px) {
      left: calc(100% - var(--p-24));
    }
  }
}

.faq__content {
  color: var(--gray-600);
  margin-top: var(--p-16);
}

.footer {
  background-color: var(--black);
  border-radius: var(--r-24);
  color: var(--white);

  @media (max-width: 767px) {
    padding: var(--p-24) var(--p-16);
  }
}

.footer__main {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--p-48);
  font-size: 17px;

  @media (max-width: 767px) {
    flex-direction: column;
    gap: 50px;
    font-size: 15px;
    justify-content: start;
    align-items: start;
  }
}

.footer__info {
  max-width: 726px;

  @media screen and (max-width: 1366px) {
    max-width: 382px;
  }

  @media (max-width: 767px) {
    width: 100%;
  }
}

.footer__buttons {
  display: flex;
  gap: var(--p-16);
}

.footer__nav {
  max-width: 392px;

  @media screen and (max-width: 1366px) {
    top: -45px;
    position: relative;
  }

  @media (max-width: 767px) {
    top: 0;
    max-width: none;
    width: 100%;
    gap: var(--p-24);
  }

  & ul {
    display: flex;
    flex-direction: column;
    gap: var(--p-24);

    & a {
      border-bottom: 0.12em solid transparent;
      transition: var(--trs);

      &:hover {
        border-bottom: 0.12em solid var(--gray-600);
      }
    }
  }
}

.footer__end {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.footer__social {
  display: flex;
  gap: 12px;

  & a {
    transition: var(--trs);

    &:hover {
      opacity: 0.7;
    }
  }
}
