:root {
  --bg: #0b0d12;
  --bg-2: #141824;
  --red: #c8102e;        /* London red */
  --red-hot: #e4243f;
  --ink: #f4f1ea;
  --muted: #a8adb8;
  --card: rgba(20, 24, 36, 0.62);
  --btn: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
}

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

html, body { margin: 0; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(40px, env(safe-area-inset-top)) 16px max(48px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Фон ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  left: 50%;
  bottom: -20vh;
  width: 140vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 16, 46, 0.28), transparent 70%);
  filter: blur(10px);
}

.rain {
  position: absolute;
  inset: -100px 0 0 0;
  background-image:
    repeating-linear-gradient(105deg, transparent 0 22px, rgba(180, 200, 230, 0.08) 22px 23px, transparent 23px 47px),
    repeating-linear-gradient(105deg, transparent 0 61px, rgba(180, 200, 230, 0.05) 61px 62px, transparent 62px 113px);
  background-size: 100% 300px, 100% 420px;
  animation: rain 0.9s linear infinite;
}

@keyframes rain {
  to { background-position: -80px 300px, -110px 420px; }
}

.fog {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 40vh;
  background:
    radial-gradient(40% 60% at 25% 50%, rgba(200, 210, 225, 0.08), transparent 70%),
    radial-gradient(35% 50% at 70% 60%, rgba(200, 210, 225, 0.07), transparent 70%);
  animation: fog 40s linear infinite alternate;
}
.fog--1 { bottom: 8vh; }
.fog--2 { bottom: 22vh; opacity: .7; animation-duration: 60s; animation-direction: alternate-reverse; }

@keyframes fog {
  to { transform: translateX(25%); }
}

.skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34vh;
  min-height: 180px;
}
.skyline__far { fill: #151a26; }
.skyline__near { fill: #1c2232; stroke: #1c2232; }
.skyline__near .eye { stroke: #283048; }
.skyline__near .clock { fill: #e8c46a; opacity: .7; }

.bus {
  position: absolute;
  bottom: 6px;
  left: -180px;
  width: 140px;
  opacity: .9;
  animation: drive 26s linear infinite;
  animation-delay: 2s;
}

@keyframes drive {
  to { transform: translateX(calc(100vw + 360px)); }
}

.booth {
  position: absolute;
  right: 6vw;
  bottom: 0;
  width: 42px;
  opacity: .85;
}

/* ---------- Карточка ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

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

.avatar {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 200deg, var(--red), #ff6b6b, #1d4ed8, var(--red));
  box-shadow: 0 10px 40px rgba(200, 16, 46, 0.35);
}

.avatar__initials,
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.avatar__initials {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #23293a, #0f121a);
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
  font-size: 38px;
  letter-spacing: .02em;
}

.avatar img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s;
}
.avatar.has-photo img { opacity: 1; }

.name {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.subtitle {
  margin: 12px 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

/* значок метро (roundel) */
.roundel {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--red);
  flex: none;
}
.roundel::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: #1d4ed8;
}

/* ---------- Кнопки ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  --accent: var(--red);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background: var(--btn);
  border: 1px solid var(--btn-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  opacity: 0;
  transition: opacity .25s ease;
}

.link > * { position: relative; }

.link__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.link__icon svg { width: 22px; height: 22px; }

.link__text { flex: 1; text-align: left; }

.link__arrow {
  font-size: 20px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.link--telegram  { --accent: #229ed9; }
.link--instagram { --accent: #e1306c; }
.link--instagram .link__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link--tiktok    { --accent: #25f4ee; }
.link--tiktok .link__icon { background: #000; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.link--youtube   { --accent: #ff0000; }

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px -12px var(--accent);
  }
  .link:hover::before { opacity: .18; }
  .link:hover .link__arrow { transform: translateX(4px); color: var(--ink); }
}

.link:active { transform: scale(.98); }

.link:focus-visible {
  outline: 3px solid var(--red-hot);
  outline-offset: 3px;
}

.footer {
  margin: 36px 0 0;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(168, 173, 184, 0.6);
}

@media (min-width: 768px) {
  body { padding-top: 10vh; }
  .avatar { width: 144px; height: 144px; }
  .bus { width: 180px; }
  .booth { width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bus { left: 8vw; }
  .link:hover { transform: none; }
}

/* кнопка без ссылки — «скоро» */
.link--soon { cursor: default; opacity: .55; }
.link--soon .link__arrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
}
@media (hover: hover) {
  .link--soon:hover { transform: none; border-color: var(--btn-border); box-shadow: none; }
  .link--soon:hover::before { opacity: 0; }
  .link--soon:hover .link__arrow { transform: none; color: var(--muted); }
}
.link--soon:active { transform: none; }
