* {
  color: var(--text-color-primary);
  font-family: "Roboto", sans-serif;
}

body.mobile-menu-open {
  overflow: hidden;
  font-family: "Roboto", sans-serif;
}

.howCreateAccount p a {
  color: var(--color-accent);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: fit-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 27px 100px;
  background: var(--background-dark);

  .active_link {
    border-bottom: 1px solid var(--color-accent);
  }

  .mobile__toggle {
    display: none;
  }

  .header__nav ul {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 52px;
  }

  .header__nav li {
    display: flex;
  }

  .header__nav ul li a {
    font-size: 13px;
  }

  .header__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 129px;
    border-radius: var(--radius-small);
    background: var(--background-dark);
    padding: 10px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .header__submenu a {
    font-size: inherit;
    line-height: 1.2;
  }

  .header__actions {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .mobile-menu__overlay,
  .mobile-menu {
    display: none;
  }

  .download-app-buttons {
    display: flex;
    gap: 14px;
  }
}

.header__actions img,
.download-app-buttons img {
  width: 32px;
  height: auto;
  animation: download-pulse 0.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes download-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  max-width: 82vw;
  background: var(--background-dark);
  padding: 25px 16px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu__logo img {
  width: 130px;
}

.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.mobile-menu__nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  line-height: 1;
  padding: 8px 0;
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu__actions .btn--secondary,
.mobile-menu__actions .header-button {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  font-size: 18px;
}

.mobile-menu__actions .btn--secondary {
  background-color: #424242;
}

header.mobile-menu-active {
  .mobile-menu__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    transform: translateX(0);
  }

  .mobile__toggle span:first-child {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile__toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile__toggle span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }

  .mobile__toggle {
    transform: translateX(calc(min(250px, 82vw) - 56px));
  }
}

.btn--secondary {
  border-radius: var(--radius-small);
  padding: 13.5px 13px;
  background-color: #000;
}

.btn--primary {
  background: var(--buttons-gradient);
  border-radius: var(--radius-small);
  color: var(--color-button-text);
  font-weight: 600;
  border: 1px solid var(--color-accent);
  text-align: center;
}

.header-button {
  padding: 14px 32px;
}

main {
  padding: 126px 0 0;
}

/* Full-page CSS background images break LCP measurement (NO_LCP in PageSpeed). */
body {
  background-color: var(--color-bg);
  background-image: none;
}

.main__wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-main__top {
  display: flex;
  gap: 30px;
  position: relative;
  overflow: hidden;
  padding: 30px 30px 0;
  border-radius: 32px 32px 0 0;
}

.hero-main__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-main__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-main__top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-main__content {
  position: relative;
  z-index: 2;
  width: 607px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-main__title {
  font-size: 30px;
  font-weight: 700;
}

.hero-main__promo {
  width: 500px;
  border-radius: var(--radius-medium);
  background: rgba(25, 28, 32, 0.8);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-main__promo-title {
  color: var(--color-accent);
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-main__promo-text {
  color: var(--text-color-secondary);
  font-size: 18px;
  line-height: 24px;
  text-align: justify;
}

.hero-main__promo-code {
  position: relative;
  width: 100%;
  border-radius: var(--radius-small);
  background: #23262d;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.copied-notification {
  position: absolute;
  right: 0;
  top: -20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: var(--color-accent);
}

.show-copied {
  opacity: 1;
}

.hero-main__promo-code-text {
  color: var(--text-color-primary);
  font-size: 14px;
  width: 100%;
  text-align: center;
  animation: pulse-code 1s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse-code {
  0%,
  100% {
    color: var(--color-accent);
    transform: scale(1.05);
  }
  50% {
    color: var(--text-color-primary);
    transform: scale(1);
  }
}

.hero-main__promo-code img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-main__promo-code.is-copied {
  box-shadow:
    0 0 0 1px var(--color-accent),
    inset 0 0 0 1px var(--color-accent);
}

.hero-main__promo-btn {
  width: 100%;
  border-radius: var(--radius-small);
  background: var(--buttons-gradient);
  padding: 14px 16px;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  color: var(--color-button-text);
}

.hero-main__phones {
  position: relative;
  z-index: 2;
}

.hero-main__phones img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.hero-main__bottom {
  border-radius: 0 0 32px 32px;
  background: #181818;
  padding: 16px 30px 24px;
}

.hero-main__bottom p {
  font-size: var(--basic-font-size);
  line-height: 1.32;
  text-align: justify;
  color: var(--text-color-secondary);
  text-align: justify;
}

.hero-main--registration .hero-main__top {
  padding-top: 40px;
  border-radius: 32px;
  display: flex;
}

.hero-main--registration .hero-main__promo {
  margin-bottom: 24px;
}

.hero-main--registration .hero-main__promo-text {
  color: var(--text-color-primary);
  font-size: var(--basic-font-size);
  line-height: 22px;
  text-align: justify;
}

.section {
  padding: 24px 16px 32px;
  scroll-margin-block-start: 107px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__title {
  font-size: var(--header-font-size-desktop);
  font-weight: 700;
  color: var(--text-color-primary);
  text-transform: uppercase;
}

.section__subtitle {
  color: var(--text-color-secondary);
  font-size: var(--basic-font-size);
  line-height: 22px;
  text-align: justify;
}

.content__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content__items a {
  line-height: 1.2;
}

.content__link {
  color: var(--text-color-primary);
  font-size: var(--basic-font-size);
  padding: 8px 16px;
  background-color: var(--background-gray);
  box-shadow:
    0 2.258px 6.773px 0 rgba(18, 7, 143, 0.08),
    0 1.129px 2.258px 0 rgba(14, 9, 72, 0.08),
    0 0 0 1.129px rgba(14, 9, 72, 0.08);
  border-radius: var(--radius-small);
  transition: all 0.5s ease;
  border: 1px solid transparent;

  &:hover {
    background-color: var(--background-dark-gray);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
  }
}

.bonus-banner__card {
  position: relative;
  min-height: 192px;
  border: 0.5px solid #513476;
  border-radius: 8px;
  overflow: hidden;
  background-color: #101114;
  background-image: url("../assets/img/bonus-banner.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
}

.bonus-banner__content {
  position: relative;
  z-index: 1;
  max-width: 663px;
  padding-inline: 68px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bonus-banner__title {
  margin: 0;
  color: #f7f7f7;
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.bonus-banner__btn {
  width: fit-content;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.214;
  text-align: center;
  text-transform: uppercase;
}

.bottom-banner .bonus-banner__card {
  background-image: url(../assets/img/hero-bottom.avif);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* .faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
} */

.faq__list {
  display: grid;
  gap: 8px;
}

.faq__item {
  border-radius: var(--radius-small);
}

.faq__heading {
  margin: 0;
}

.faq__trigger {
  width: 100%;
  border: 0;
  background: #171717;
  padding: 16px;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq__label {
  color: var(--text-color-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
  text-align: left;
}

.faq__arrow {
  width: 10px;
  height: 8px;
  object-fit: contain;
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

.faq__item.is-open .faq__arrow {
  transform: rotate(0deg);
}

.faq__item.is-open .faq__trigger {
  border-radius: 8px 8px 0 0;
}

.faq__content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  background: #181818;
  border-radius: 0 0 8px 8px;
  transition:
    height 0.35s ease,
    opacity 0.25s ease;
}

.faq__item.is-open .faq__content {
  opacity: 1;
}

.faq__content p {
  color: var(--text-color-secondary);
  font-size: var(--basic-font-size);
  line-height: 22px;
  text-align: justify;
  padding: 10px 16px 10px 32px;
  text-align: justify;
}

.footer {
  position: relative;
  overflow: hidden;
  background-image: url(../assets/img/footer-bg.avif);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__logo img {
  width: 160px;
  height: auto;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav a {
  color: var(--text-color-primary);
  font-size: var(--basic-font-size);
  line-height: 1.2;
}

.footer__apps-social {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__apps {
  display: grid;
  gap: 16px;
}

.footer__app-btn {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-medium);
  min-height: 44px;
  padding: 11px var(--padding-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--basic-font-size);
  line-height: 1;
}

.footer__app-btn svg {
  width: auto;
  height: 20.44px;
}

.footer__app-btn span {
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: normal;
}

.footer__app-btn:first-child span {
  transform: translateY(2px);
}

.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.footer__socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
}

.footer__socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[aria-label="TikTok"] {
  border: 1px solid #fff;
  border-radius: 50%;
}

.contact-emails li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-small);
  padding: 10px 16px;
  cursor: default;
  line-height: 1.2;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.footer__payments img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer__legal {
  display: grid;
  gap: 24px;
}

.footer__legal p {
  color: var(--text-color-secondary);
  font-size: 14px;
  line-height: 1.2;
  text-align: justify;
}

.footer__legal p:last-child {
  color: #c9c9c9;
  font-size: 12px;
  text-align: center;
}

.scroll-to-top {
  position: fixed;
  bottom: 110px;
  right: 68px;
  background: var(--buttons-gradient);
  border: none;
  border-radius: var(--radius-small);
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  transform: scale(1.15);
}

.scroll-to-top:before {
  content: url("../assets/img/Icons/arrow-up.svg");
  /* background-image: url(""); */
  position: absolute;
  top: 50%;
  left: 50%;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) rotate(180deg);
  display: inline-block;
  width: 15px;
  height: 15px;
}

.scroll-to-top.show {
  opacity: 1;
}

@media (max-width: 1500px) {
  header {
    padding: 27px;

    .header__nav ul {
      gap: 25px;
    }
  }
}

@media (max-width: 1280px) {
  header {
    gap: 25px;

    .header__nav ul {
      font-size: 18px;
      gap: 15px;
    }

    .header__actions {
      font-size: 18px;
    }
  }

  .btn--secondary {
    padding: 12px 30px;
  }

  .header-button {
    padding: 10px 30px;
  }

  .footer__payments {
    gap: 20px;
  }

  .hero-main__phones {
    width: 500px;
    right: 5px;
  }
}

@media (max-width: 1024px) {
  header {
    justify-content: flex-start;
    gap: 12px;
    padding: 16px;

    .mobile__toggle {
      width: 24px;
      height: 20px;
      display: inline-flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
      position: relative;
      z-index: 102;
      transition: transform 0.35s ease;
    }

    .mobile__toggle span {
      width: 100%;
      height: 2px;
      border-radius: 1px;
      background: var(--text-color-primary);
      transform-origin: center;
      transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    }

    .header__nav ul {
      display: none;
    }

    .header__actions {
      margin-left: auto;
    }

    .mobile-menu__overlay,
    .mobile-menu {
      display: flex;
    }

    .header__logo img {
      width: 97px;
    }
  }

  .btn--secondary {
    display: none;
  }

  main {
    padding-top: 70px;
    padding-inline: 0;
  }

  .section {
    padding-inline: 16px;
    scroll-margin-block-start: 70px;
  }

  .section__title {
    font-size: var(--header-font-size-mobile);
  }

  .bonus-banner {
    padding-top: 8px;
  }

  .bonus-banner__title {
    font-size: 14px;
  }

  .faq__trigger {
    padding: 16px;
  }

  .faq__label {
    font-size: 18px;
    line-height: 1.22;
  }

  .faq__content p {
    font-size: var(--basic-font-size-mobile);
    line-height: 18px;
    padding: 10px 16px;
  }

  .footer__inner {
    padding-top: 40px;
    background: linear-gradient(
      180deg,
      #181818 28.42%,
      rgba(24, 24, 24, 0) 99.82%
    );
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__apps-social {
    gap: 24px;
  }

  .footer__socials {
    order: 1;
  }

  .footer__apps {
    order: 2;
  }

  .footer__legal {
    gap: 20px;
  }

  .hero-main__top {
    padding: 24px 0 0;
    border-radius: 16px 16px 0 0;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-main__bg img {
    object-position: center top;
  }

  .hero-main__content {
    width: 100%;
    gap: 16px;
    display: contents;
  }

  .hero-main__title,
  .hero-main__promo,
  .hero-main__phones {
    position: relative;
    z-index: 2;
  }

  .hero-main__title {
    font-size: 28px;
    text-align: center;
    padding: 0 16px;
  }

  .hero-main__phones {
    width: auto;
    height: 230px;
    margin: 16px auto 0;
  }

  .hero-main__phones img {
    object-fit: none;
    object-position: center top;
  }

  .hero-main__promo {
    background-color: rgba(25, 28, 32, 1);
    width: 100%;
    border-radius: 10px;
    padding: 24px 16px;
    gap: 24px;
    order: 3;
  }

  .hero-main__promo-title {
    font-size: 30px;
  }

  .hero-main__promo-text {
    font-size: var(--basic-font-size-mobile);
    line-height: 1.28;
    text-transform: uppercase;
  }

  .hero-main__promo-code {
    max-width: 343px;
    margin: 0 auto;
  }

  .hero-main__promo-code-text {
    font-size: 18px;
  }

  .hero-main__promo-btn {
    padding: 13.5px 16px;
    font-size: 20px;
    max-width: 343px;
    margin: 0 auto;
  }

  .hero-main__bottom {
    border-radius: 0 0 16px 16px;
    padding: 16px;
  }

  .hero-main__bottom p {
    font-size: 22px;
    line-height: 1.43;
  }

  .hero-main--registration .hero-main__top {
    border-radius: 16px;
    padding-top: 24px;
  }

  .hero-main--registration .hero-main__title {
    position: relative;
    z-index: 1;
  }

  .hero-main--registration .hero-main__promo {
    margin-bottom: 0;
  }

  .hero-main--registration .hero-main__promo-text {
    line-height: 18px;
    text-transform: none;
  }

  .hero-main--registration .hero-main__promo-btn {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 30px;
  }

  .faq__content,
  .preferences__content,
  .popularChapters__content {
    transition: none;
  }

  .faq__arrow,
  .preferences__arrow,
  .popularChapters__arrow {
    transition: none;
  }

  .faq__item.is-open .faq__content,
  .preferences__item.is-open .preferences__content,
  .popularChapters__item.is-open .popularChapters__content {
    height: auto;
  }
}

@media (max-width: 580px) {
  main {
    padding-inline: 0;
  }

  .mobile-menu__nav a {
    font-size: 16px;
  }

  .main__wrapper {
    gap: 0;
  }

  .section__subtitle {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
  }

  .content__items {
    margin-top: 8px;
  }

  .content__link {
    font-size: var(--basic-font-size-mobile);
  }

  .bonus-banner__card {
    background-image: url(../assets/img/bonus-banner-mobile.avif);
    border: 0.5px solid #262626;
  }

  .bottom-banner .bonus-banner__card {
    background-image: url(../assets/img/hero-bottom-mobile.avif);
    background-position: left center;
  }

  .bonus-banner__content {
    margin-left: auto;
    max-width: 166px;
    padding-inline: 0 16px;
  }

  .bonus-banner__btn {
    padding-inline: 14px;
  }

  .footer__inner {
    padding-top: 48px;
  }

  .footer__apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .footer__payments {
    gap: 24px;
    max-width: 100%;
  }

  .footer__legal p:last-child {
    font-size: 12px;
  }

  .hero-main__promo-title {
    font-size: 17px;
  }

  .hero-main__promo-btn {
    font-size: var(--basic-font-size-mobile);
  }

  .hero-main__bottom p {
    font-size: var(--basic-font-size-mobile);
    line-height: 1.42;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 10px;
  }
}
