*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

html {
  overflow-x: hidden;
}

.mobile-bg {
  display: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #e8eaf6;
  background-color: #050510;
  background-image:
    linear-gradient(rgba(5, 5, 16, 0.42), rgba(5, 5, 16, 0.42)),
    url("assets/black-hole-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.header {
  background-color: transparent;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.header__logo-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.header__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header__nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

a.header__right:hover .header__account {
  text-decoration: underline;
}

.header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.header__avatar svg {
  width: 22px;
  height: 22px;
}

.header__account {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

main {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

.block {
  min-height: 200px;
  width: 100%;
  scroll-margin-top: 72px;
  background: transparent;
}

.block--hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
}

.hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero__title,
.hero__subtitle {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  color: #fff;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.8vw, 1.75rem);
  line-height: 1.35;
  max-width: 820px;
  margin-inline: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 40px;
  border: 1.5px solid #1a4aad;
  border-radius: 999px;
  background-color: rgba(5, 5, 16, 0.45);
  color: #fff;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hero__button:hover {
  background-color: rgba(26, 74, 173, 0.35);
}

.hero__description {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: rgba(232, 234, 246, 0.85);
  max-width: 640px;
  margin-inline: auto;
}

.block--about {
  padding: 0 24px 80px;
}

.about {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about__card {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.about__logo-wrap {
  flex-shrink: 0;
  width: clamp(120px, 18vw, 180px);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: #0d0d0f;
}

.about__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.about__intro {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  line-height: 1.45;
  color: #fff;
}

.about__problems {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
}

.about__problem {
  flex: 1;
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: rgba(232, 234, 246, 0.88);
}

.about__solution {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: #fff;
  white-space: nowrap;
}

.block--how {
  padding: 0 24px 80px;
}

.how {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
}

.how__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.how__grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
}

.how__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.how__row .how__card:nth-child(1) {
  grid-column: 1 / 3;
}

.how__row .how__card:nth-child(2) {
  grid-column: 3 / 5;
}

.how__row .how__card:nth-child(3) {
  grid-column: 5 / 7;
}

.how__row--bottom .how__card:nth-child(1) {
  grid-column: 2 / 4;
}

.how__row--bottom .how__card:nth-child(2) {
  grid-column: 4 / 6;
}

.how__card {
  padding: clamp(20px, 3vw, 28px);
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.how__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.how__card-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1a4aad;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1;
}

.how__card-title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  line-height: 1.35;
  color: #fff;
  min-width: 0;
}

.how__card-text {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.55;
  color: rgba(232, 234, 246, 0.88);
}

.block--pricing {
  padding: 0 24px 80px;
}

.pricing {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
}

.pricing__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.pricing__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.pricing__card {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(24px, 3.5vw, 36px);
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.pricing__card--subscription {
  border-color: rgba(26, 74, 173, 0.65);
  box-shadow: 0 0 0 1px rgba(26, 74, 173, 0.2);
}

.pricing__card-title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: #fff;
}

.pricing__price {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
  color: #6ea8ff;
  margin-top: -8px;
}

.pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 14px);
  flex: 1;
}

.pricing__feature {
  position: relative;
  padding-left: 24px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.55;
  color: rgba(232, 234, 246, 0.88);
}

.pricing__feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
}

.pricing__feature--highlight {
  font-weight: 600;
  color: #fff;
}

.pricing__feature--highlight::before {
  background-color: #1a4aad;
}

.pricing__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 48px;
  padding: 0 36px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background-color: rgba(5, 5, 16, 0.45);
  color: #fff;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: auto;
}

.pricing__button:hover {
  background-color: rgba(5, 5, 16, 0.65);
}

.pricing__button--primary {
  border-color: #1a4aad;
  background-color: #1a4aad;
}

.pricing__button--primary:hover {
  background-color: #2358c4;
}

.block--telegram {
  padding: 0 24px 80px;
}

.telegram {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.telegram__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.telegram__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: rgba(232, 234, 246, 0.88);
  text-align: center;
  white-space: nowrap;
}

.telegram__preview {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 775 / 779;
  margin-top: clamp(12px, 2.5vw, 24px);
  border-radius: 20px;
  background-image: url("assets/telegram-bot-screenshot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.telegram__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 36px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background-color: rgba(5, 5, 16, 0.45);
  color: #fff;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.telegram__button:hover {
  background-color: rgba(5, 5, 16, 0.65);
}

.block--faq {
  padding: 0 24px 80px;
}

.faq {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
}

.faq__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.faq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__item[open] {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  line-height: 1.4;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq__answer {
  padding: 0 clamp(18px, 3vw, 24px) clamp(16px, 2.5vw, 20px);
}

.faq__answer p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: rgba(232, 234, 246, 0.88);
}

.header__nav-text--short {
  display: none;
}

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  padding: clamp(40px, 6vw, 64px) 24px clamp(24px, 4vw, 32px);
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__logo-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  width: fit-content;
}

.footer__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.footer__tagline,
.footer__note,
.footer__disclaimer,
.footer__copyright {
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  line-height: 1.6;
  color: rgba(232, 234, 246, 0.72);
}

.footer__heading {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  line-height: 1.3;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: rgba(232, 234, 246, 0.85);
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #fff;
}

.footer__contacts,
.footer__nav,
.footer__legal {
  min-width: 0;
}

.footer__note {
  margin-top: 14px;
}

.footer__bottom {
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__legal-link {
  font-size: clamp(0.8rem, 1.4vw, 0.875rem);
  color: rgba(232, 234, 246, 0.55);
}

.footer__legal-link:hover {
  color: #fff;
}

.footer__copyright {
  text-align: center;
  color: rgba(232, 234, 246, 0.55);
  font-size: clamp(0.8rem, 1.4vw, 0.875rem);
}

@media (max-width: 768px) {
  :root {
    --mobile-gutter: 16px;
  }

  .header {
    padding: 8px var(--mobile-gutter);
    min-height: auto;
    background-color: transparent;
    width: 100%;
  }

  .header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .header__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .header__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
  }

  .header__nav-link {
    padding: 4px 3px;
    font-size: clamp(0.7rem, 2.8vw, 0.85rem);
    flex-shrink: 1;
    min-width: 0;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  }

  .header__account {
    display: none;
  }

  .header__right {
    flex-shrink: 0;
    gap: 0;
  }

  .header__avatar {
    width: 32px;
    height: 32px;
  }

  .header__avatar svg {
    width: 18px;
    height: 18px;
  }

  .header__nav-text--full {
    display: none;
  }

  .header__nav-text--short {
    display: inline;
  }

  .block--hero {
    padding: 32px var(--mobile-gutter) 64px;
  }

  .block--about,
  .block--how,
  .block--pricing,
  .block--telegram,
  .block--faq {
    padding: 0 var(--mobile-gutter) 64px;
  }

  .block {
    max-width: 100%;
  }

  .about,
  .how,
  .pricing,
  .telegram,
  .faq,
  .how__grid,
  .how__row,
  .how__row--bottom {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .how {
    align-items: stretch;
  }

  .hero__subtitle {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    max-width: 100%;
    width: 100%;
  }

  .about__card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px var(--mobile-gutter);
    width: 100%;
    margin-inline: 0;
  }

  .about__logo-wrap {
    width: 120px;
    align-self: center;
  }

  .about__content {
    width: 100%;
  }

  .about__problems {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .about__problem {
    width: 100%;
  }

  .about__solution,
  .telegram__subtitle {
    white-space: normal;
  }

  .how__title,
  .pricing__title,
  .telegram__title,
  .telegram__subtitle,
  .faq__title {
    width: 100%;
    padding-inline: 0;
  }

  .faq__question {
    align-items: flex-start;
  }

  .telegram__preview {
    width: 100%;
    max-width: 100%;
  }

  .how__row,
  .how__row--bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .how__row .how__card:nth-child(1),
  .how__row .how__card:nth-child(2),
  .how__row .how__card:nth-child(3),
  .how__row--bottom .how__card:nth-child(1),
  .how__row--bottom .how__card:nth-child(2) {
    grid-column: unset;
    width: 100%;
    max-width: 100%;
  }

  .how__card {
    width: 100%;
  }

  .how__card-header {
    align-items: flex-start;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .pricing__card {
    width: 100%;
  }

  .mobile-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #050510;
    background-image: url("assets/mobile-bg.jpg?v=3");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .mobile-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.42);
  }

  body {
    position: relative;
    isolation: isolate;
    background-image: none;
    background-color: transparent;
    background-attachment: scroll;
  }

  .footer {
    padding: 40px var(--mobile-gutter) 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    align-items: flex-start;
  }
}

/* Scroll reveal — content stays visible without JS (progressive enhancement) */
@keyframes reveal-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
}

.js-reveal .reveal.is-visible {
  animation: reveal-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .stars-bg {
    display: none;
  }

  .js-reveal .reveal,
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
