:root {
  color-scheme: light;
  --bg: #f7f9ff;
  --surface: #ffffff;
  --text: #161a25;
  --muted: #687087;
  --line: #e7eaf2;
  --accent: #5c42f5;
  --accent-dark: #4630df;
  --cyan: #28c8f2;
  --shadow: 0 18px 50px rgba(52, 43, 126, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 2%, rgba(40, 200, 242, 0.11), transparent 26rem),
    radial-gradient(circle at 94% 22%, rgba(132, 65, 245, 0.10), transparent 28rem),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

.page {
  min-height: 100vh;
}

.hero {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(22, 26, 37, 0.12);
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 7px 18px rgba(22, 26, 37, 0.12);
  object-fit: cover;
}

.brand__text {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.age-mark {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 8vw, 76px);
  padding: clamp(52px, 9vw, 84px) 0 12px;
}

.intro {
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.cta {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(115deg, #287df6 0%, var(--accent) 55%, #963be7 100%);
  box-shadow: 0 14px 30px rgba(77, 55, 223, 0.28);
  font-size: clamp(10px, 3.6vw, 16px);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bot-invite {
  margin-top: clamp(24px, 5vw, 34px);
}

.bot-invite__text {
  max-width: 500px;
  margin: 0 auto;
  color: #30364a;
  font-size: clamp(16px, 3.3vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.bot-invite .cta {
  margin-top: 16px;
}

.intro > .cta {
  margin-top: 12px;
}

.cta--bot {
  background: linear-gradient(115deg, #159ec8 0%, #258bdc 55%, #4c6fe3 100%);
  box-shadow: 0 14px 30px rgba(27, 126, 186, 0.26);
}

.cta img {
  flex: 0 0 auto;
  border-radius: 9px;
}

.cta span {
  min-width: 0;
  white-space: nowrap;
}

.cta svg {
  width: 19px;
  height: 19px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 35px rgba(77, 55, 223, 0.34);
}

.cta--bot:hover,
.cta--bot:focus-visible {
  box-shadow: 0 17px 35px rgba(27, 126, 186, 0.34);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible,
.brand:focus-visible,
.news-item:focus-visible,
.all-news:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(40, 125, 246, 0.38);
  outline-offset: 3px;
}

.latest-news h2 {
  max-width: 640px;
  margin: 0 auto clamp(26px, 5vw, 38px);
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}

.news-list {
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid rgba(221, 226, 239, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(52, 43, 126, 0.1);
  backdrop-filter: blur(14px);
}

.news-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 13px;
  color: #2b303d;
  font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.news-item + .news-item {
  border-top: 1px solid rgba(231, 234, 242, 0.75);
}

.news-item img {
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(22, 26, 37, 0.12);
  border-radius: 50%;
  background: #fffaf0;
  object-fit: cover;
}

.news-item:hover,
.news-item:focus-visible {
  color: #4936dc;
  background: rgba(92, 66, 245, 0.07);
  transform: translateX(3px);
}

.all-news {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 10px 5px 54px;
  color: #4936dc;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.all-news:hover {
  text-decoration: underline;
}

.all-news svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: transform 160ms ease;
}

.all-news:hover svg,
.all-news:focus-visible svg {
  transform: translateX(3px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.site-footer__inner {
  width: min(100% - 40px, 680px);
  margin: 0 auto;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 17px 0;
}

.site-footer a {
  color: #4936dc;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer .copyright {
  margin-bottom: 5px;
  color: #525a70;
  font-weight: 650;
}

.site-footer .trademark {
  margin: 0;
  font-size: 10px;
}

@media (max-width: 340px) {
  .hero {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand__text {
    font-size: 13px;
  }

  .news-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 6px;
  }

  .news-item img {
    width: 27px;
    height: 27px;
  }

  .all-news {
    margin-left: 43px;
  }
}

@media (min-width: 720px) {
  .hero {
    padding-right: 22px;
    padding-left: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
