/* Мой ID — стиль в духе max.ru */
:root {
  --bg: #000000;
  --bg-elevated: #121214;
  --bg-soft: #1a1a1f;
  --text: #ffffff;
  --muted: #9a9aa3;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #8b5cff;
  --violet-hot: #a78bfa;
  --cyan: #22d3ee;
  --teal: #0d9488;
  --grad: linear-gradient(100deg, #22d3ee 0%, #818cf8 48%, #c084fc 100%);
  --glow: 0 0 80px rgba(99, 102, 241, 0.35);
  --radius-pill: 999px;
  --radius: 20px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max-w: 1160px;
  --header-h: 76px;
  --bot-url: #8b5cff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--violet-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #d8b4fe;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: var(--text);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 15% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(99, 102, 241, 0.12), transparent 60%),
    #000;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 10%, transparent 70%);
  animation: grid-pulse 14s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
  from { opacity: 0.25; }
  to { opacity: 0.45; }
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* Header — pill like max.ru */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0 0;
}

.site-header__inner {
  width: min(100% - 1.5rem, var(--max-w));
  margin-inline: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
  background: rgba(10, 10, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand__mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--violet);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(139, 92, 255, 0.35);
}

.btn--primary:hover {
  background: #9b74ff;
  color: var(--text);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.btn--soft {
  background: #2a1848;
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--text);
}

.btn--soft:hover {
  background: #341c57;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 96px);
  display: grid;
  align-items: center;
  padding: 2.75rem 0 3.5rem;
  overflow: clip;
}

.hero__glow {
  position: absolute;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  right: -5%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(139, 92, 255, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  animation: glow-drift 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 18px, 0) scale(1.06); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__brand {
  margin: 0 0 1rem;
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--text);
}

.hero__brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 1.8rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qr-panel {
  justify-self: end;
  width: min(100%, 340px);
  padding: 1.25rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow);
  text-align: center;
  transition: transform 0.35s ease;
}

.qr-panel:hover {
  transform: translateY(-4px);
}

.qr-panel__frame {
  padding: 1rem;
  border-radius: 20px;
  background: #f4f7fb;
}

.qr-panel__frame img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.qr-panel__caption {
  margin: 1rem 0 0.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qr-panel__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 2.5rem 0 4.5rem;
}

.section__label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 16ch;
  font-weight: 800;
}

.section__text {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.band {
  margin: 1rem 0 0;
  padding: 3.5rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(139, 92, 255, 0.22), transparent 60%),
    linear-gradient(120deg, #12081f, #07131a 55%, #0b1020);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.band .section__title {
  max-width: 18ch;
}

.band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer__links a:hover {
  color: var(--text);
}

/* Legal pages */
.page-hero {
  padding: 3rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.legal {
  padding: 0.5rem 0 4.5rem;
}

.legal__content {
  max-width: 760px;
}

.legal__content h2 {
  margin: 2.1rem 0 0.7rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.legal__content p,
.legal__content li {
  color: rgba(255, 255, 255, 0.78);
}

.legal__content ul {
  padding-left: 1.2rem;
}

.legal__highlight {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 255, 0.1);
  border-radius: 0 14px 14px 0;
}

.legal__meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: none;
  width: min(100% - 0rem, 720px);
  margin-inline: auto;
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.cookie-banner.is-visible {
  display: block;
  animation: reveal-up 0.45s ease both;
}

.cookie-banner__text {
  margin: 0 0 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.cookie-banner__text a {
  color: var(--violet-hot);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner .btn {
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    justify-self: stretch;
    width: min(100%, 360px);
  }

  .nav .nav-hide-sm {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero__cta,
  .cookie-banner__actions {
    flex-direction: column;
  }

  .hero__cta .btn,
  .cookie-banner__actions .btn {
    width: 100%;
  }

  .container {
    width: min(100% - 1.25rem, var(--max-w));
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
