/* Главная */

/* ---------------------------------------------------------------- шапка */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 68px;
  transition: background 0.25s, box-shadow 0.25s;
}

.top[data-stuck] {
  background: rgba(6, 6, 11, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.top__nav {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}

.top__nav a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.top__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.top__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top__nav + .top__cta {
  margin-left: 0;
}

/* ---------------------------------------------------------------- первый экран */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(100dvh, 920px);
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -340px;
  right: -260px;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(closest-side, rgba(109, 92, 255, 0.36), rgba(74, 120, 255, 0.14) 48%, transparent 72%);
  pointer-events: none;
}

/* тонкая сетка, уходящая в темноту — даёт сцене «пол» */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 72% 46%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 70% at 72% 46%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 40px;
  align-items: center;
}

.hero__copy > * {
  animation: rise 0.8s var(--ease) both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.06s;
}
.hero__copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero__copy > :nth-child(4) {
  animation-delay: 0.18s;
}
.hero__copy > :nth-child(5) {
  animation-delay: 0.22s;
}
.hero__copy > :nth-child(6) {
  animation-delay: 0.28s;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  background: rgba(var(--acc-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.3);
  color: #b9b1ff;
  font-size: 12.5px;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc-hi);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.25);
}

.hero__title {
  margin-top: 24px;
  font: 600 clamp(32px, 4.4vw, 58px) / 1.06 var(--display);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #6c8cff 0%, #8a6dff 48%, #b98bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead {
  max-width: 500px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.claim {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin-top: 34px;
}

.claim__box {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border-radius: 15px;
  background: rgba(10, 10, 18, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 16px;
  cursor: text;
  transition: box-shadow 0.18s, background 0.18s;
}

.claim__box:focus-within {
  background: rgba(var(--acc-rgb), 0.08);
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 5px rgba(var(--acc-rgb), 0.16);
}

.claim__prefix {
  color: var(--dim);
  white-space: nowrap;
}

.claim__box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  padding: 0;
}

.claim__box input::placeholder {
  color: #4b4960;
}

.claim__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}

.claim[data-state='busy'] .claim__dot {
  background: var(--dim);
  animation: pulse 0.9s ease-in-out infinite;
}

.claim[data-state='ok'] .claim__dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(88, 214, 160, 0.18);
}

.claim[data-state='bad'] .claim__dot {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.18);
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.claim__note {
  min-height: 21px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 13.5px;
  transition: color 0.2s;
}

.claim__note[data-state='ok'] {
  color: var(--ok);
}

.claim__note[data-state='bad'] {
  color: var(--bad);
}

.hero__facts {
  display: flex;
  gap: 28px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 540px;
  font-size: 13px;
  color: var(--dim);
}

.hero__facts li {
  display: grid;
  gap: 2px;
}

.hero__facts b {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

/* ---------------------------------------------------------------- 3D-сцена */

.scene {
  --k: 1;
  display: grid;
  place-items: center;
  height: 600px;
  perspective: 1500px;
  perspective-origin: 40% 45%;
  animation: scene-in 1.2s var(--ease) both 0.1s;
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
  }
}

.scene__rig {
  position: relative;
  width: 330px;
  transform-style: preserve-3d;
  transform: scale(var(--k)) rotateX(calc(9deg + var(--sx, 0deg))) rotateY(calc(-21deg + var(--sy, 0deg))) rotateZ(2.5deg);
}

.scene__card {
  isolation: auto;
  transform-style: preserve-3d;
}

.scene__ghost {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(var(--acc-rgb), 0.13), rgba(var(--acc-rgb), 0.02));
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.3);
}

.scene__ghost--a {
  transform: translate3d(44px, -30px, -110px);
}

.scene__ghost--b {
  transform: translate3d(88px, -60px, -220px);
  opacity: 0.45;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px 10px 10px;
  border-radius: 15px;
  background: rgba(17, 17, 30, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 26px 44px -18px rgba(0, 0, 0, 0.95);
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  animation: bob var(--t, 7s) ease-in-out var(--dl, 0s) infinite alternate;
}

@keyframes bob {
  to {
    translate: 0 -12px;
  }
}

.chip b {
  display: block;
  font-weight: 600;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.chip__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--acc-rgb), 0.2);
  color: #b3a9ff;
  font-size: 17px;
}

.chip__spark {
  width: 64px;
  height: 24px;
  margin-left: 4px;
}

.chip__spark path {
  stroke: var(--acc-hi);
  stroke-width: 2;
  stroke-linecap: round;
}

.chip__dim {
  color: var(--dim);
}

.chip--views {
  top: 7%;
  left: -42%;
  transform: translateZ(130px);
}

.chip--track {
  --t: 8s;
  --dl: -3s;
  top: 44%;
  right: -34%;
  transform: translateZ(180px);
}

.chip--url {
  --t: 6.5s;
  --dl: -1.5s;
  bottom: -9%;
  left: -20%;
  gap: 0;
  padding: 12px 12px 12px 16px;
  transform: translateZ(100px);
}

.chip--url b {
  display: inline;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}

/* имя в адресе красится по ответу сервера: свободно или занято */
.chip--url[data-state='ok'] b {
  color: var(--ok);
}

.chip--url[data-state='bad'] b {
  color: var(--bad);
}

.chip--url .svg {
  margin-left: 14px;
  color: var(--muted);
  font-size: 16px;
}

.chip--palette {
  --t: 9s;
  --dl: -5s;
  top: -9%;
  right: -12%;
  gap: 7px;
  padding: 9px;
  transform: translateZ(70px);
}

.chip--palette i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.chip--palette i.on {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 9px 8px;
  border-radius: 10px;
  background: rgba(var(--acc-rgb), 0.2);
}

.eq i {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: #b3a9ff;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}

.eq i:nth-child(2) {
  animation-delay: -0.3s;
  animation-duration: 0.7s;
}
.eq i:nth-child(3) {
  animation-delay: -0.6s;
  animation-duration: 1.1s;
}
.eq i:nth-child(4) {
  animation-delay: -0.15s;
  animation-duration: 0.8s;
}

@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------------------------------------------------------------- секции */

.section {
  position: relative;
  padding: 112px 0;
}

.sec-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kicker b {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(var(--acc-rgb), 0.16);
  color: #b3a9ff;
  font-weight: 500;
  letter-spacing: 0;
}

.sec-head h2,
.final h2 {
  margin-top: 18px;
  font: 600 clamp(27px, 3.5vw, 42px) / 1.1 var(--display);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.sec-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

[data-rv] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-rv]:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

/* ---------------------------------------------------------------- сетка возможностей */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 28px 28px 0;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), rgba(var(--acc-rgb), 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.cell:hover::before {
  opacity: 1;
}

.cell--7 {
  grid-column: span 7;
}
.cell--5 {
  grid-column: span 5;
}
.cell--4 {
  grid-column: span 4;
  min-height: 330px;
}

.cell h3 {
  position: relative;
  font: 600 19px/1.25 var(--font);
  letter-spacing: -0.02em;
}

.cell p {
  position: relative;
  max-width: 40ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.cell__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  perspective: 900px;
}

/* клавиатура площадок */
.keys {
  display: grid;
  grid-template-columns: repeat(6, 68px);
  gap: 14px 12px;
  transform: rotateX(34deg) rotateZ(-6deg);
  transform-style: preserve-3d;
}

.key {
  display: grid;
  place-items: center;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1c1c2b, #13131e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 7px 0 #07070d, 0 16px 22px -6px rgba(0, 0, 0, 0.8);
  color: #c9c6dc;
  font-size: 27px;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), color 0.15s, background 0.15s;
}

.key:nth-child(n + 7) {
  translate: 20px 0;
}

.key:hover {
  transform: translateY(5px);
  background: linear-gradient(180deg, #7d6eff, #5a48f0);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 0 var(--acc-lo), 0 10px 22px -8px rgba(var(--acc-rgb), 0.5);
}

/* мини-карточка с наклоном */
.mini {
  perspective: 700px;
}

.mini__card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 210px;
  padding: 0 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #171726, #0f0f19);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 34px 46px -28px rgba(var(--acc-rgb), 0.34);
  transform-style: preserve-3d;
  transform: rotateX(var(--ty, 10deg)) rotateY(var(--tx, -16deg));
  transition: transform 0.25s var(--ease);
}

.mini__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.17), transparent 60%);
  pointer-events: none;
}

.mini__ava {
  width: 58px;
  height: 58px;
  margin-top: -20px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 3px #0b0b12, 0 12px 18px -10px rgba(var(--acc-rgb), 0.5);
  transform: translateZ(44px);
}

.mini__line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateZ(26px);
}

.mini__line--a {
  width: 62%;
  height: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.mini__line--b {
  width: 86%;
}

.mini__row {
  display: flex;
  gap: 7px;
  margin-top: 4px;
  transform: translateZ(34px);
}

.mini__row i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mini__row i:first-child {
  background: var(--acc);
}

.mini__btn {
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(16px);
}

/* на тач-экранах курсора нет — карточка покачивается сама */
@media (hover: none) {
  .mini__card {
    animation: mini-sway 7s ease-in-out infinite alternate;
  }

  .only-hover {
    display: none;
  }
}

@keyframes mini-sway {
  from {
    transform: rotateX(12deg) rotateY(-20deg);
  }
  to {
    transform: rotateX(-4deg) rotateY(18deg);
  }
}

/* волна */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 110px;
}

.wave i {
  width: 5px;
  height: calc(var(--h) * 1%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet), var(--blue));
  opacity: 0.9;
  animation: wave 1.3s ease-in-out var(--d) infinite alternate;
}

@keyframes wave {
  to {
    transform: scaleY(0.3);
    opacity: 0.45;
  }
}

/* веер фонов */
.fan {
  position: relative;
  width: 118px;
  height: 160px;
  transform-style: preserve-3d;
}

.fan__s {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 34px -14px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--spring);
}

/* силуэт карточки на каждом экране, чтобы читалось «это фон профиля» */
.fan__s i {
  position: absolute;
  z-index: 1;
  inset: 40% 14% 14%;
  border-radius: 9px;
  background: rgba(12, 12, 22, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.fan__s i::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 9px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 2px rgba(8, 8, 14, 0.9);
}

.fan__s i::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 30%;
  top: 20px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 11px 0 rgba(255, 255, 255, 0.18), 0 22px 0 rgba(255, 255, 255, 0.18);
}

.fan__s:nth-child(1) {
  transform: translateX(-74px) rotateY(34deg) rotateZ(-7deg) scale(0.9);
}

.fan__s:nth-child(2) {
  transform: translateZ(40px);
  z-index: 2;
}

.fan__s:nth-child(3) {
  transform: translateX(74px) rotateY(-34deg) rotateZ(7deg) scale(0.9);
}

.cell:hover .fan__s:nth-child(1) {
  transform: translateX(-104px) rotateY(22deg) rotateZ(-10deg) scale(0.94);
}

.cell:hover .fan__s:nth-child(3) {
  transform: translateX(104px) rotateY(-22deg) rotateZ(10deg) scale(0.94);
}

/* счётчик */
.count {
  display: flex;
  align-items: center;
  gap: 16px;
}

.count__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(180deg, #7d6eff, #5a48f0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--acc-lo), 0 16px 24px -12px rgba(var(--acc-rgb), 0.5);
  font-size: 26px;
}

.count b {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- конструктор */

/* ---------------------------------------------------------------- таблица лидеров */

.board {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.board__side {
  position: sticky;
  top: 110px;
}

.board .sec-head {
  margin: 0;
}

.board__tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 30px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.board__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

.board__tabs button:hover {
  color: var(--text);
}

.board__tabs button[aria-selected='true'] {
  background: rgba(var(--acc-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.45);
  color: #fff;
}

.board__tabs .svg {
  font-size: 16px;
}

.board__rules {
  display: grid;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.board__rules li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.board__rules .svg {
  flex: none;
  margin-top: 2px;
  font-size: 16px;
  color: #b3a9ff;
}

.board__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* строка: место, аватар, имя, второй счёт (тусклый) и главный */
.brow {
  display: grid;
  grid-template-columns: 30px 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  text-align: left;
  transition: background 0.16s;
}

a.brow:hover,
button.brow:hover {
  background: rgba(255, 255, 255, 0.045);
}

.brow__place {
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

/* первые три места — цветом медали, без значков */
.brow[data-place='1'] .brow__place {
  color: #f2c14e;
}

.brow[data-place='2'] .brow__place {
  color: #c3c9d6;
}

.brow[data-place='3'] .brow__place {
  color: #d08a5b;
}

.brow[data-place='1'] {
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.075), transparent 55%);
}

.brow__ava {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--a, var(--acc)) 34%, #12121c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font: 600 16px var(--display);
}

.brow__ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brow__who {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brow__who b,
.brow__who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brow__who b {
  font-size: 15.5px;
  font-weight: 600;
}

.brow__who span {
  color: var(--muted);
  font-size: 12.5px;
}

.brow__score,
.brow__alt {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.brow__score {
  min-width: 68px;
  font-size: 15.5px;
  font-weight: 500;
}

.brow__score .svg {
  font-size: 15px;
  color: var(--muted);
}

.brow__score[data-of='likes'] .svg {
  color: #ff5c7a;
  fill: currentColor;
}

.brow__alt {
  color: var(--dim);
  font-size: 12.5px;
}

.brow__alt .svg {
  font-size: 13px;
}

.brow--free {
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}

.brow--free .brow__ava {
  background: none;
  box-shadow: none;
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 17px;
}

.brow--free .brow__who b {
  color: var(--text);
}

.brow--wait {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: brow-wait 1.3s linear infinite;
}

@keyframes brow-wait {
  to {
    background-position: -200% 0;
  }
}

.board__fail {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 16px;
  color: var(--muted);
}

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

@media (max-width: 960px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .board__side {
    position: static;
  }
}

@media (max-width: 520px) {
  .brow {
    grid-template-columns: 22px 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 12px;
  }

  .brow__ava {
    width: 38px;
    height: 38px;
  }

  .brow__alt {
    display: none;
  }

  .brow__score {
    min-width: 0;
  }

  .board__tabs {
    display: flex;
  }

  .board__tabs button {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }
}

.section--lab::before {
  content: '';
  position: absolute;
  inset: 12% 0 0;
  background: radial-gradient(50% 60% at 70% 50%, rgba(var(--acc-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

.lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 14px;
}

.lab__panel {
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ctl {
  display: grid;
  gap: 11px;
}

.ctl__name {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.ctl__name span {
  color: var(--dim);
}

.ctl .seg {
  display: grid;
}

.ctl .seg button {
  padding: 0 6px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.18s var(--spring);
}

.thumb:hover {
  transform: translateY(-2px);
}

.thumb > span {
  position: absolute;
  inset: 0;
}

.thumb[aria-pressed='true'] {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: none;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(var(--acc-rgb), 0.35), 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(var(--acc-rgb), 0.35), 0 4px 10px rgba(0, 0, 0, 0.6);
}

.lab__cta {
  padding-top: 4px;
}

.lab__cta p {
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.lab__screen {
  position: relative;
  min-height: 640px;
  border-radius: 26px;
  overflow: hidden;
  background: #05050a;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.lab__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.lab__bar {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(8, 8, 14, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lab__bar span {
  color: var(--dim);
}

.lab__bar b {
  font-weight: 500;
}

.lab__view {
  position: absolute;
  inset: 0;
}

/* ---------------------------------------------------------------- тарифы */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plan--main {
  background: radial-gradient(120% 80% at 0% 0%, rgba(var(--acc-rgb), 0.24), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 36px 70px -44px rgba(var(--acc-rgb), 0.4);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 17px/1 var(--font);
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.plan__price b {
  font: 600 44px/1 var(--display);
  letter-spacing: -0.05em;
}

.plan__price span {
  color: var(--muted);
  font-size: 14.5px;
}

/* вместо суммы — слова: им нужен кегль поменьше и право перенестись */
.plan__price--note {
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 44px;
  align-items: center;
}

.plan__price--note b {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.plan__list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.plan__list .svg {
  margin-top: 3px;
  font-size: 17px;
  color: var(--acc-hi);
  stroke-width: 2.4;
}

/* ---------------------------------------------------------------- вопросы */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.faq .sec-head {
  position: sticky;
  top: 110px;
  margin: 0;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  transition: color 0.15s;
}

.faq__item > button:hover {
  color: #fff;
}

.faq__item > button .svg {
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.35s var(--spring), color 0.2s;
}

.faq__item > button[aria-expanded='true'] .svg {
  transform: rotate(45deg);
  color: var(--acc-hi);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  max-width: 62ch;
  padding: 0 4px 24px;
  color: var(--muted);
}

.faq__a a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.faq__a a:hover {
  text-decoration-color: currentColor;
}

.faq__item > button[aria-expanded='true'] + .faq__a {
  grid-template-rows: 1fr;
}

/* ---------------------------------------------------------------- финал и подвал */

.section--final {
  padding-top: 40px;
}

.final {
  position: relative;
  padding: 76px 28px 68px;
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(var(--acc-rgb), 0.34), transparent 64%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(60% 90% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.final > * {
  position: relative;
}

.final h2 {
  margin-top: 0;
}

.final > p:not(.claim__note) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.claim--center {
  margin-inline: auto;
}

.foot {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.foot__in {
  display: flex;
  align-items: center;
  gap: 28px;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-right: auto;
  color: var(--muted);
  font-size: 14.5px;
}

.foot__nav a:hover {
  color: var(--text);
}

/* вторая строка подвала: документы и почта слева, год справа */
.foot__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--dim);
  font-size: 13.5px;
}

.foot__legal a {
  transition: color 0.15s;
}

.foot__legal a:hover {
  color: var(--text);
}

.foot p {
  color: var(--dim);
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- вход и регистрация */

/* Не окошко поверх главной, а отдельная страница на весь экран: слева текст, справа поля. */
.auth.modal {
  padding: 0;
  perspective: none;
}

.auth .modal__scrim {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth__page.modal__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  transform: translateY(14px);
}

.auth__x {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.auth__side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px clamp(28px, 5.5vw, 84px) 48px;
  overflow: hidden;
}

/* единственное пятно света на странице — то же, что на первом экране главной */
.auth__side::before {
  content: '';
  position: absolute;
  left: -420px;
  bottom: -560px;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(closest-side, rgba(109, 92, 255, 0.3), rgba(74, 120, 255, 0.1) 50%, transparent 72%);
  pointer-events: none;
}

.auth__logo {
  position: relative;
  align-self: flex-start;
}

.auth__text {
  position: relative;
  width: min(100%, 470px);
  margin: auto 0;
  padding: 40px 0 24px;
}

.auth__title {
  font: 600 clamp(26px, 2.9vw, 38px) / 1.12 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.auth__sub {
  max-width: 42ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

/* адрес будущей страницы: повторяет то, что набирают в поле справа */
.auth__addr {
  margin-top: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.75vw, 23px);
  overflow-wrap: anywhere;
}

.auth__addr b {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}

.auth__addr[data-empty] b {
  color: var(--dim);
}

.auth__addr[data-state='ok'] b {
  color: var(--ok);
}

.auth__addr[data-state='bad'] b {
  color: var(--bad);
}

.auth__points {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.auth__addr:not([hidden]) + .auth__points {
  margin-top: 22px;
}

.auth__points li {
  display: grid;
  gap: 3px;
  padding: 15px 0 16px;
  border-top: 1px solid var(--line);
}

.auth__points b {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth__points span {
  color: var(--muted);
  font-size: 14.5px;
}

.auth__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 76px 24px 48px;
  background: var(--surface);
  box-shadow: inset 1px 0 0 var(--line);
}

.auth__form {
  width: min(100%, 384px);
}

/* колонка формы не шире экрана: иначе поле с адресом сайта распирает её на телефоне */
.auth__form .modal__body {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.auth__tabs {
  display: grid;
  margin-bottom: 26px;
}

.auth__draft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ok);
  font-size: 13px;
}

/* согласие с правилами: своя галочка вместо системной, нажимается вся строка, ссылки открываются в новой вкладке */
.agree {
  gap: 6px;
}

.agree__box {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
}

/* настоящий флажок остаётся на месте, только невидимый: так работают клавиатура и программы чтения с экрана */
.agree__box input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.agree__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.16s, box-shadow 0.16s;
}

.agree__mark::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.22s var(--spring);
}

.agree__box:hover .agree__mark {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.agree__box input:checked + .agree__mark {
  background: var(--acc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px rgba(var(--acc-rgb), 0.16);
}

.agree__box input:checked + .agree__mark::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.agree__box input:focus-visible + .agree__mark {
  outline: 2px solid var(--acc-hi);
  outline-offset: 2px;
}

.field--bad .agree__mark {
  box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 0 4px rgba(255, 107, 129, 0.12);
}

.agree__text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.agree__text a:hover {
  text-decoration-color: currentColor;
}

/* у галочки нет подсказки «под полем», поэтому пустая строка места не занимает */
.agree .field__msg {
  padding-left: 31px;
}

.agree .field__msg:empty {
  display: none;
}

/* окошко капчи: место под него держим заранее, чтобы кнопка не прыгала, пока оно грузится */
.captcha {
  gap: 6px;
}

.captcha__box {
  min-height: 65px;
}

.captcha .field__msg:empty {
  display: none;
}

/* строка под полем пароля: слева ошибка, справа «Забыли пароль?» */
.field__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.field__foot .field__msg {
  flex: 1;
  min-width: 0;
}

.auth__link {
  flex: none;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.auth__link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.auth__link:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.auth__link--center {
  justify-self: center;
  margin-top: 4px;
}

/* ---------------------------------------------------------------- адаптив */

@media (min-width: 1280px) {
  .scene {
    --k: 1.1;
    height: 640px;
    padding-top: 36px;
  }
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 108px;
  }

  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero__title {
    font-size: clamp(33px, 8.4vw, 60px);
  }

  .scene {
    --k: 0.92;
    height: 560px;
  }

  .cell--7,
  .cell--5 {
    grid-column: span 12;
  }

  .cell--4 {
    grid-column: span 6;
  }

  .cell--4:last-child {
    grid-column: span 12;
  }

  .lab {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab__screen {
    order: -1;
    min-height: 600px;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq .sec-head {
    position: static;
  }
}

@media (max-width: 860px) {
  .top__nav {
    display: none;
  }

  /* вход на узком экране: одна колонка, от текста остаются заголовок и строка под ним */
  .auth__page.modal__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth__side {
    padding: 22px 20px 0;
    overflow: visible;
  }

  .auth__side::before {
    display: none;
  }

  .auth__text {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 34px 0 0;
  }

  .auth__addr,
  .auth__points {
    display: none;
  }

  .auth__x {
    top: 14px;
    right: 12px;
  }

  .auth__main {
    place-items: start center;
    padding: 26px 20px calc(40px + env(safe-area-inset-bottom));
    background: none;
    box-shadow: none;
  }

  .auth__form {
    width: min(100%, 440px);
  }

  .section {
    padding: 76px 0;
  }

  .sec-head {
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .top__cta .btn--quiet {
    padding: 0 8px;
  }

  .hero__lead {
    font-size: 16.5px;
  }

  .claim {
    flex-direction: column;
  }

  .claim__box {
    flex: none;
  }

  .scene {
    --k: 0.74;
    height: 470px;
    margin-inline: -16px;
  }

  .chip--views {
    left: -13%;
    top: 12%;
  }

  .chip--track {
    right: -16%;
  }

  .chip--url {
    left: -10%;
  }

  .chip--palette {
    top: -3%;
    right: -4%;
  }

  .cell {
    min-height: 0;
    padding: 24px 22px 0;
  }

  .cell--4 {
    grid-column: span 12;
  }

  .cell__art {
    padding: 34px 0 26px;
  }

  .keys {
    grid-template-columns: repeat(6, 40px);
    gap: 9px 6px;
  }

  .key {
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 5px 0 #07070d, 0 12px 16px -6px rgba(0, 0, 0, 0.8);
  }

  .key:nth-child(n + 7) {
    translate: 12px 0;
  }

  .lab__panel {
    padding: 22px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan {
    padding: 24px;
  }

  .faq__item > button {
    font-size: 16px;
    padding: 18px 2px;
  }

  .final {
    padding: 52px 18px 44px;
    border-radius: 26px;
  }

  .foot__in {
    flex-wrap: wrap;
    gap: 18px;
  }

  .foot__nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .foot p {
    margin-left: auto;
  }
}

/* ---------------------------------------------------------------- переключатель языка в шапке */

.top__lang {
  padding: 0 10px;
  letter-spacing: 0.04em;
}

.top__lang ~ .top__cta {
  margin-left: 0;
}

@media (max-width: 860px) {
  /* меню разделов скрыто — вправо шапку прижимает уже эта кнопка */
  .top__lang {
    margin-left: auto;
    padding: 0 6px;
  }
}