@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700&family=Inter:wght@500;600;700&display=swap");

:root {
  --black: #050608;
  --panel: #0b0d11;
  --panel-soft: #11151b;
  --red: #ef101b;
  --red-deep: #8d0007;
  --blue: #16a9ef;
  --silver: #d5d9df;
  --muted: #aeb6c1;
  --white: #fff;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 12%, rgba(239, 16, 27, 0.2), transparent 28%),
    radial-gradient(circle at 5% 58%, rgba(22, 169, 239, 0.14), transparent 22%),
    radial-gradient(circle at 95% 72%, rgba(22, 169, 239, 0.12), transparent 20%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.018) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.018) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, #0b0d10, #030405 78%);
  font-family: Inter, Arial, sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: clamp(22px, 7vw, 58px);
  content: "";
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(239,16,27,.42) 48%, rgba(213,217,223,.32) 52%, transparent);
  clip-path: polygon(0 0, 100% 7%, 58% 50%, 100% 93%, 0 100%);
  opacity: .65;
  pointer-events: none;
}

body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }

.ambient {
  position: fixed;
  z-index: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,169,239,.16), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: drift 6s ease-in-out infinite;
}

.ambient-left { left: -88px; top: 35%; }
.ambient-right { right: -94px; top: 62%; animation-delay: -3s; }

@keyframes drift {
  0%, 100% { translate: 0 -10px; }
  50% { translate: 0 14px; }
}

.profile-shell {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 0 24px;
}

.brand { text-align: center; }

.brand img {
  display: block;
  width: min(332px, 86vw);
  height: auto;
  margin: 0 auto -5px;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,.78)) drop-shadow(0 0 13px rgba(239,16,27,.2));
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.55rem, 7.4vw, 2rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(239,16,27,.45);
  white-space: nowrap;
}

.brand-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(220px, 66%);
  margin: 10px auto 8px;
}

.brand-divider span,
footer span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--silver), var(--red));
}

.brand-divider span:last-child,
footer span:last-child { transform: scaleX(-1); }

.brand-divider i,
footer i {
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  rotate: 45deg;
}

.location {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.78rem, 3.3vw, .93rem);
  line-height: 1.45;
}

.location strong {
  color: var(--white);
  font-weight: 700;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 19px;
}

.link-row {
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  overflow: hidden;
  border: 1px solid rgba(213,217,223,.82);
  border-radius: 11px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 24%),
    linear-gradient(100deg, #16191e, #08090b 64%, #420006);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.8),
    inset 0 -1px 0 rgba(239,16,27,.9),
    0 0 0 2px rgba(239,16,27,.8),
    0 9px 22px rgba(0,0,0,.42);
  text-decoration: none;
  transition: translate 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.link-row::after {
  position: absolute;
  top: 0;
  left: -45%;
  width: 32%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  transition: left 420ms ease;
}

.link-row:hover {
  filter: brightness(1.12);
  translate: 0 -2px;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px var(--red), 0 10px 28px rgba(239,16,27,.28);
}

.link-row:hover::after { left: 118%; }

.link-row:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.link-row strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.08rem, 5vw, 1.35rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: var(--white);
  background: radial-gradient(circle at 35% 30%, #343a43, #08090b 70%);
  box-shadow: inset 0 0 0 2px #000, 0 0 11px rgba(239,16,27,.4);
}

.link-icon.telegram { background: radial-gradient(circle at 35% 30%, #43c8ff, #0879bc 72%); }
.link-icon.instagram { background: radial-gradient(circle at 70% 75%, #ffd34e, #f21855 38%, #7d26c9 70%); }
.link-icon.facebook { background: radial-gradient(circle at 35% 30%, #4895ff, #1450ad 72%); }
.link-icon.tiktok { text-shadow: -2px 0 #17e1e7, 2px 0 #ff2457; }

.link-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon .fill { fill: currentColor; stroke: none; }

.chevron {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 72%;
  margin: 22px auto 0;
}

.brand img,
h1,
.brand-divider,
.location,
.link-row,
footer { animation: enter 520ms cubic-bezier(.22,1,.36,1) both; }

.brand img { animation-delay: 40ms; }
h1 { animation-delay: 100ms; }
.brand-divider { animation-delay: 150ms; }
.location { animation-delay: 190ms; }
.link-row:nth-child(1) { animation-delay: 240ms; }
.link-row:nth-child(2) { animation-delay: 290ms; }
.link-row:nth-child(3) { animation-delay: 340ms; }
.link-row:nth-child(4) { animation-delay: 390ms; }
.link-row:nth-child(5) { animation-delay: 440ms; }
.link-row:nth-child(6) { animation-delay: 490ms; }
footer { animation-delay: 540ms; }

@keyframes enter {
  from { opacity: 0; translate: 0 13px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-height: 760px) {
  .profile-shell { padding-top: 8px; }
  .brand img { width: min(265px, 77vw); }
  .brand-divider { margin-block: 7px 5px; }
  .link-list { gap: 8px; margin-top: 14px; }
  .link-row { min-height: 56px; }
  footer { margin-top: 17px; }
}

@media (max-width: 350px) {
  .profile-shell { width: calc(100% - 22px); }
  .link-row { grid-template-columns: 40px minmax(0,1fr) 20px; gap: 9px; padding-inline: 11px; }
  .link-icon { width: 38px; height: 38px; }
  .link-row strong { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .brand img,
  h1,
  .brand-divider,
  .location,
  .link-row,
  footer { animation: none; }
  .link-row,
  .link-row::after { transition: none; }
}
