*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color, #fff);
  background: #0e1116;
  overflow-x: hidden;
}

/* Фон */
.backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.04);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .68) 100%);
}

/* Карточка */
.card {
  width: 100%;
  max-width: 560px;
  padding: 44px 36px 40px;
  text-align: center;
  border-radius: 24px;
  background: rgba(16, 18, 24, .42);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: rise .6s cubic-bezier(.22, 1, .36, 1) both;
}

.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 22px;
  border-radius: 20px;
}

.title {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.subtitle {
  margin: 14px auto 0;
  max-width: 42ch;
  font-size: clamp(15px, 3.6vw, 18px);
  line-height: 1.55;
  opacity: .82;
  white-space: pre-line;
}

.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 42px;
  min-width: 220px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--button-color, #1DA1F2);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .42);
}

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

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 34px 22px 32px;
    border-radius: 20px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .cta {
    width: 100%;
    padding: 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .cta {
    transition: none;
  }
}

/* Служебные страницы */
.plain {
  max-width: 560px;
  text-align: center;
  color: #e7ecf3;
}

.plain a {
  color: #7cc0ff;
}

.list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.list a {
  display: block;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none;
  color: #e7ecf3;
}

.list a:hover {
  background: rgba(255, 255, 255, .1);
}