/* ══════════ RESET ══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; font: inherit; color: inherit; }
ul { list-style: none; }

/* ══════════ ТОКЕНЫ ══════════ */
:root {
  --bg:       #0F1217;   /* глубокий тёмный, нейтральный */
  --bg-2:     #141920;
  --surf:     #19202A;
  --line:     rgba(200, 222, 240, 0.09);
  --line-2:   rgba(200, 222, 240, 0.17);

  --cream:    #EDF3F8;   /* мягкий белый */
  --muted:    #93A2B2;
  --muted-2:  #64717F;

  --sky:      #9FCBE8;   /* небесно-голубой */
  --sky-2:    #C8E4F5;   /* светлее, для мелких акцентов */
  --sky-dim:  rgba(159, 203, 232, 0.10);
  --accent:   #9FCBE8;
  --green:    #A3C9B0;

  --r:        20px;
  --r-lg:     28px;
  --wrap:     1080px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(159, 203, 232, 0.25); }

/* ночное свечение — глубина без неона */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -12%, rgba(159, 203, 232, 0.15), transparent 64%),
    radial-gradient(900px 600px at 18% 2%,    rgba(120, 140, 200, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(28, 38, 66, 0.42), transparent 46%);
}

/* ══════════ НОЧНОЕ НЕБО ══════════ */
.night {
  position: absolute; top: 0; left: 0; right: 0; height: 1180px;
  z-index: 0; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
}

/* звёздная пыль */
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8%  14%, rgba(237,243,248,.70), transparent),
    radial-gradient(1.2px 1.2px at 17% 33%, rgba(237,243,248,.45), transparent),
    radial-gradient(1.6px 1.6px at 25% 8%,  rgba(237,243,248,.62), transparent),
    radial-gradient(1.1px 1.1px at 34% 24%, rgba(237,243,248,.38), transparent),
    radial-gradient(1.4px 1.4px at 41% 46%, rgba(237,243,248,.50), transparent),
    radial-gradient(1.2px 1.2px at 52% 6%,  rgba(237,243,248,.44), transparent),
    radial-gradient(1.7px 1.7px at 58% 27%, rgba(237,243,248,.58), transparent),
    radial-gradient(1.1px 1.1px at 66% 48%, rgba(237,243,248,.34), transparent),
    radial-gradient(1.5px 1.5px at 72% 12%, rgba(237,243,248,.55), transparent),
    radial-gradient(1.2px 1.2px at 83% 30%, rgba(237,243,248,.42), transparent),
    radial-gradient(1.6px 1.6px at 92% 20%, rgba(237,243,248,.52), transparent),
    radial-gradient(1.1px 1.1px at 96% 43%, rgba(237,243,248,.32), transparent),
    radial-gradient(1.3px 1.3px at 5%  52%, rgba(237,243,248,.40), transparent),
    radial-gradient(1.2px 1.2px at 29% 58%, rgba(237,243,248,.30), transparent),
    radial-gradient(1.4px 1.4px at 45% 66%, rgba(237,243,248,.26), transparent),
    radial-gradient(1.2px 1.2px at 61% 61%, rgba(237,243,248,.28), transparent),
    radial-gradient(1.3px 1.3px at 77% 57%, rgba(237,243,248,.24), transparent),
    radial-gradient(1.2px 1.2px at 88% 68%, rgba(237,243,248,.22), transparent);
}

/* редкие мерцающие звёзды — очень медленно, «сонно» */
.twinkles i {
  position: absolute; left: var(--x); top: var(--y);
  width: 2.5px; height: 2.5px; border-radius: 50%;
  background: rgba(237, 243, 248, 0.92);
  box-shadow: 0 0 7px 1.5px rgba(200, 228, 245, 0.55);
  animation: twinkle 9s var(--d) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.20; transform: scale(0.75); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* луна */
.moon {
  position: absolute; top: 138px; right: 8%;
  width: 168px; height: 168px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 29%,
      #FDFDFA 0%, #F0F4F8 34%, #D6E2ED 62%, #B2C6D9 84%, #94AAC2 100%);
  box-shadow:
    inset -16px -14px 36px rgba(74, 100, 132, 0.34),
    inset 8px 8px 26px rgba(255, 255, 255, 0.45),
    0 0 70px 14px rgba(200, 228, 245, 0.20),
    0 0 170px 50px rgba(159, 203, 232, 0.13);
  animation: float 16s ease-in-out infinite;
}
/* мягкое гало вокруг луны */
.moon::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 460px; height: 460px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(159, 203, 232, 0.16) 0%, rgba(159, 203, 232, 0.05) 42%, transparent 68%);
}

.crater {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(112, 138, 168, 0.34), rgba(140, 164, 190, 0.14) 68%, transparent);
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.30);
}
.cr1 { width: 38px; height: 38px; top: 26%; left: 22%; }
.cr2 { width: 23px; height: 23px; top: 55%; left: 44%; }
.cr3 { width: 30px; height: 30px; top: 66%; left: 18%; }
.cr4 { width: 16px; height: 16px; top: 21%; left: 58%; }
.cr5 { width: 12px; height: 12px; top: 44%; left: 70%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ══════════ НОЧЬ НА ВСЮ СТРАНИЦУ ══════════ */
.sky {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* звёздная пыль на нижних экранах */
.dust {
  position: absolute; left: 0; right: 0; height: 1100px;
  background-image:
    radial-gradient(1.4px 1.4px at 11% 12%, rgba(237,243,248,.34), transparent),
    radial-gradient(1.2px 1.2px at 24% 38%, rgba(237,243,248,.24), transparent),
    radial-gradient(1.5px 1.5px at 38% 19%, rgba(237,243,248,.30), transparent),
    radial-gradient(1.1px 1.1px at 55% 47%, rgba(237,243,248,.20), transparent),
    radial-gradient(1.4px 1.4px at 68% 25%, rgba(237,243,248,.28), transparent),
    radial-gradient(1.2px 1.2px at 82% 55%, rgba(237,243,248,.22), transparent),
    radial-gradient(1.3px 1.3px at 93% 33%, rgba(237,243,248,.26), transparent),
    radial-gradient(1.2px 1.2px at 6%  68%, rgba(237,243,248,.18), transparent),
    radial-gradient(1.4px 1.4px at 45% 78%, rgba(237,243,248,.22), transparent),
    radial-gradient(1.2px 1.2px at 74% 86%, rgba(237,243,248,.16), transparent);
}
.d-a { top: 1150px; }
.d-b { top: 2900px; }

/* медленно плывущая дымка */
.mist {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.m1 {
  top: 26%; left: -12%; width: 620px; height: 190px;
  background: radial-gradient(ellipse, rgba(159, 203, 232, 0.13), transparent 70%);
  animation: drift 78s linear infinite;
}
.m2 {
  top: 54%; right: -16%; width: 720px; height: 220px;
  background: radial-gradient(ellipse, rgba(140, 165, 215, 0.11), transparent 70%);
  animation: drift-back 96s linear infinite;
}
.m3 {
  top: 78%; left: -8%; width: 560px; height: 170px;
  background: radial-gradient(ellipse, rgba(159, 203, 232, 0.09), transparent 70%);
  animation: drift 112s linear infinite;
}
@keyframes drift {
  from { transform: translateX(-10%); }
  to   { transform: translateX(115%); }
}
@keyframes drift-back {
  from { transform: translateX(10%); }
  to   { transform: translateX(-115%); }
}

/* полумесяц — круг со смещённой тенью.
   Живёт на полях страницы, поэтому показываем только там,
   где поля реально шире самого месяца (иначе он ложится на текст). */
.crescent { display: none; }

@media (min-width: 1340px) {
  .crescent {
    display: block;
    position: absolute; border-radius: 50%;
    background: transparent;
    animation: float 22s ease-in-out infinite;
  }
  .cres-1 {
    top: 33%; left: 1.2%; width: 76px; height: 76px;
    box-shadow: 17px 12px 0 -2px rgba(214, 234, 247, 0.78);
    filter: drop-shadow(0 0 22px rgba(159, 203, 232, 0.38));
    transform: rotate(-18deg);
  }
  .cres-2 {
    top: 71%; right: 1.4%; width: 52px; height: 52px;
    box-shadow: 12px 8px 0 -1px rgba(214, 234, 247, 0.58);
    filter: drop-shadow(0 0 16px rgba(159, 203, 232, 0.28));
    transform: rotate(-150deg);
    animation-delay: -8s;
  }
}

/* редкие падающие звёзды — почти всё время невидимы */
.shoot {
  position: absolute; width: 130px; height: 1.4px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 234, 247, 0.95));
  opacity: 0;
}
.sh-1 { top: 22%; left: 58%; animation: shoot 26s linear infinite;    animation-delay: 6s; }
.sh-2 { top: 62%; left: 22%; animation: shoot 34s linear infinite;    animation-delay: 19s; }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0) rotate(24deg) scaleX(0.2); }
  1.5% { opacity: 0.9; }
  6%   { opacity: 0; transform: translate(300px, 134px) rotate(24deg) scaleX(1); }
  100% { opacity: 0; transform: translate(300px, 134px) rotate(24deg) scaleX(1); }
}

/* одиночные мерцающие звёзды по всей странице */
.glimmer {
  position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%;
  background: rgba(237, 243, 248, 0.9);
  box-shadow: 0 0 7px 1.5px rgba(200, 228, 245, 0.5);
  animation: twinkle 11s ease-in-out infinite;
}
.g1 { top: 21%; left: 84%; animation-delay: -1s; }
.g2 { top: 33%; left: 31%; animation-delay: -4s; }
.g3 { top: 47%; left: 72%; animation-delay: -7s; }
.g4 { top: 58%; left: 12%; animation-delay: -2.5s; }
.g5 { top: 69%; left: 62%; animation-delay: -9s; }
.g6 { top: 83%; left: 38%; animation-delay: -5.5s; }

@media (max-width: 860px) {
  .mist { opacity: 0.4; }
  .shoot { width: 90px; }
}

@media (max-width: 980px) {
  .moon { width: 126px; height: 126px; top: 84px; right: 7%; }
  .moon::before { width: 320px; height: 320px; }
  .night { height: 900px; }
}
@media (max-width: 620px) {
  .moon { width: 96px; height: 96px; top: 92px; right: 8%; opacity: 0.85; }
  .moon::before { width: 240px; height: 240px; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ══════════ ТИПОГРАФИКА ══════════ */
h1, h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }

.kicker {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.kicker.center { text-align: center; }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
  margin-top: 24px;
  font-weight: 300;
}

/* ══════════ ПОЯВЛЕНИЕ ══════════ */
.up { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.up.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .moon, .twinkles i, .mist, .crescent, .glimmer { animation: none; }
  .shoot { display: none; }
}

/* ══════════ КНОПКИ ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 500; border-radius: 100px; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.btn-sm { font-size: 14px; padding: 9px 20px; }
.btn-lg { font-size: 16px; padding: 15px 30px; }

.btn-sky { background: var(--sky); color: #0F1217; }
.btn-sky:hover { transform: translateY(-2px); opacity: 0.88; }

.btn-line { border: 1px solid var(--line-2); color: var(--cream); }
.btn-line:hover { border-color: var(--muted); transform: translateY(-2px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--muted-2);
  transition: color 0.3s;
}
.link-quiet:hover { color: var(--muted); }

.acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 40px; }

/* ══════════ ШАПКА — плавающая капсула ══════════ */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 20px;
  transition: top 0.4s var(--ease);
}
.nav.stuck { top: 12px; }

.pill {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 9px 9px 20px;
  border-radius: 100px;
  background: rgba(17, 22, 30, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow:
    0 18px 44px -18px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(200, 228, 245, 0.09);
  transition: background 0.4s, border-color 0.4s;
}
.nav.stuck .pill {
  background: rgba(17, 22, 30, 0.86);
  border-color: var(--line-2);
}

.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 500; }
.brand-mark { width: 22px; height: 22px; opacity: 0.94; }

.pill-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; flex: none; }

.pill-links { display: flex; gap: 4px; }
.pill-links a {
  font-size: 14.5px; color: var(--muted); font-weight: 400;
  padding: 8px 14px; border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.pill-links a:hover { color: var(--cream); background: rgba(200, 228, 245, 0.06); }

.pill-ico {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.pill-ico:hover { background: rgba(200, 228, 245, 0.08); transform: translateY(-1px); }

.pill-btn { margin-left: 4px; }

/* тонкая линия прогресса чтения по нижней кромке капсулы */
.pill-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, transparent, var(--sky), var(--sky-2));
  opacity: 0.75;
  transition: width 0.15s linear;
}

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 11px; width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--cream); transition: transform 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.sheet {
  position: fixed; top: 80px; left: 20px; right: 20px; z-index: 99;
  background: rgba(17, 22, 30, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  padding: 8px 20px 20px;
  display: flex; flex-direction: column;
}
.sheet[hidden] { display: none; }
.sheet a { padding: 15px 2px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet .sheet-btn {
  margin-top: 18px; text-align: center; border: 0;
  background: var(--sky); color: #0F1217; border-radius: 100px; padding: 15px;
}

/* ══════════ ГЛАВНЫЙ ЭКРАН ══════════ */
.hero { padding: 168px 0 96px; }
.hero-head { max-width: 640px; }
.hero-head .lead { max-width: 480px; }

/* ══════════ КОМПОЗИТ ══════════ */
.shot { margin-top: 88px; }
.frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.frame-top {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(200, 222, 240, 0.13); }
.addr { font-size: 12px; color: var(--muted-2); margin: 0 auto; }

.frame-body { display: grid; grid-template-columns: 196px 1fr 176px; min-height: 356px; }

/* — друзья — */
.side { border-right: 1px solid var(--line); padding: 18px 12px; }
.side-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); padding: 0 6px 14px;
}
.side-h img { width: 12px; height: 12px; opacity: 0.7; }

.fr { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; transition: background 0.3s; }
.fr:hover { background: rgba(200, 222, 240, 0.03); }
.fr.dim { opacity: 0.38; }

.av { width: 27px; height: 27px; border-radius: 50%; background: var(--c); flex: none; }
.av-lg { width: 34px; height: 34px; }
.av-xl { width: 48px; height: 48px; }

.t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.t b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t i { font-style: normal; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }

/* — плеер — */
.main { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.player {
  position: relative; flex: 1; min-height: 230px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #26313A, #141920 58%, #1F2831);
}
.live {
  position: absolute; top: 13px; left: 13px; z-index: 3;
  font-size: 9px; letter-spacing: 0.12em;
  background: rgba(238, 243, 247, 0.9); color: #0F1217;
  padding: 3px 9px; border-radius: 100px;
}
.blob { position: absolute; border-radius: 50%; filter: blur(46px); }
.b1 { width: 220px; height: 220px; top: 6%; left: 10%; background: rgba(159, 203, 232, 0.34); }
.b2 { width: 190px; height: 190px; bottom: 6%; right: 14%; background: rgba(190, 190, 226, 0.24); }

.qmenu {
  position: absolute; right: 14px; bottom: 48px; z-index: 4;
  width: 158px; padding: 9px;
  background: rgba(15, 18, 23, 0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 14px;
}
.qmenu-h { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); padding: 3px 9px 9px; }
.q {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); padding: 7px 10px; border-radius: 9px;
}
.q-on { background: rgba(200, 222, 240, 0.09); color: var(--cream); }
.q-on i {
  font-style: normal; font-size: 8.5px; letter-spacing: 0.06em;
  background: var(--accent); color: #0F1217; padding: 2px 6px; border-radius: 100px;
}
.q-up { color: var(--accent); }

.pbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: linear-gradient(transparent, rgba(15, 18, 23, 0.85));
  font-size: 10px; color: var(--muted);
}
.pbar-line { flex: 1; height: 2px; border-radius: 2px; background: rgba(200, 222, 240, 0.55); }

.under { display: flex; align-items: center; gap: 11px; padding: 0 2px 4px; }
.under .t { margin-right: auto; }
.chip {
  font-size: 10.5px; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; flex: none;
}

/* — чат — */
.chat { border-left: 1px solid var(--line); padding: 18px 12px; }
.msg { font-size: 11.5px; line-height: 1.6; color: var(--muted); padding: 5px 7px; border-radius: 9px; }
.msg b { font-weight: 600; color: var(--n); }
.msg.mine { background: rgba(169, 201, 180, 0.07); }

/* ══════════ БЛОКИ ══════════ */
.block { padding: 86px 0; }
.block-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.block.flip .block-in { direction: rtl; }
.block.flip .block-in > * { direction: ltr; }

.copy p:not(.kicker) {
  color: var(--muted); font-size: 17px; font-weight: 300;
  margin-top: 22px; max-width: 400px; line-height: 1.7;
}

/* карточка-иллюстрация */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(200, 228, 245, 0.045), transparent 42%),
    var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
/* тонкий световой блик по верхней кромке — даёт объём */
.card::before {
  content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 228, 245, 0.28), transparent);
}
.card-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 400;
  background: rgba(200, 222, 240, 0.025); border: 1px solid var(--line);
  margin-bottom: 10px;
}
.row:last-child { margin-bottom: 0; }
.row > span:first-child { flex: 1; }

.sw {
  width: 40px; height: 23px; border-radius: 100px; flex: none; position: relative;
  background: rgba(200, 222, 240, 0.10); transition: background 0.3s;
}
.sw::after {
  content: ''; position: absolute; top: 4px; left: 4px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--muted-2);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.sw.on { background: rgba(159, 203, 232, 0.35); }
.sw.on::after { transform: translateX(17px); background: var(--accent); }

.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px; border-radius: 16px; margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line);
}
.seg span { text-align: center; font-size: 13.5px; color: var(--muted-2); padding: 11px 4px; border-radius: 11px; }
.seg-on { background: var(--accent); color: #0F1217 !important; }

/* — поиск и список друзей — */
.find { display: flex; gap: 8px; margin-bottom: 14px; }
.find-in {
  flex: 1; min-width: 0; font-size: 13px; color: var(--muted-2);
  padding: 13px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.find-btn {
  flex: none; font-size: 13px; font-weight: 500; color: #0F1217;
  padding: 13px 18px; border-radius: 14px; background: var(--sky);
}

.flist { display: flex; flex-direction: column; gap: 8px; }
.frow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 16px;
  background: rgba(200, 222, 240, 0.025); border: 1px solid var(--line);
}
.star { color: var(--muted-2); font-size: 15px; flex: none; }
.star.on { color: var(--sky); }

/* — карточка профиля — */
.pcard {
  padding: 20px; border-radius: 18px;
  background: rgba(200, 222, 240, 0.025); border: 1px solid var(--line);
}
.pcard-top { display: flex; align-items: center; gap: 15px; }
.pcard-top .t b { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tw-badge {
  width: 17px; height: 17px; border-radius: 5px; flex: none;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #0F1217; background: var(--sky);
}
.t i.pstatus { font-size: 12.5px; color: var(--sky-2); }
.pbio { font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.plinks { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.plinks span {
  font-size: 12px; color: var(--muted);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line);
}

.mutual {
  display: flex; align-items: center; gap: 14px; margin-top: 10px;
  padding: 15px 18px; border-radius: 16px; font-size: 13.5px; color: var(--muted);
  background: var(--sky-dim); border: 1px solid rgba(159, 203, 232, 0.18);
}
.mutual-t { flex: 1; }
.stack { display: flex; }
.stack i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px #1D242E;
}
.stack i + i { margin-left: -9px; }
.mutual-n { font-size: 13px; color: var(--sky); }

.colors { display: flex; gap: 12px; margin-bottom: 22px; }
.colors span {
  width: 44px; height: 44px; border-radius: 14px; background: var(--c);
  border: 2px solid transparent; transition: transform 0.3s var(--ease);
}
.colors span:hover { transform: translateY(-3px); }
.colors .pick { border-color: var(--cream); }

/* ══════════ ОСТАЛЬНОЕ ══════════ */
.rest { padding: 40px 0 108px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.chips li {
  font-size: 14.5px; font-weight: 300; color: var(--muted);
  padding: 11px 22px; border-radius: 100px;
  border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.chips li:hover { color: var(--cream); border-color: var(--line-2); }

/* ══════════ LABS ══════════ */
.labs { padding: 0 0 108px; }
.labs-title { text-align: center; margin-bottom: 40px; }
.labs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 28px 30px; border-radius: var(--r);
  border: 1px solid var(--line);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.lab:hover { border-color: var(--line-2); transform: translateY(-3px); }
.lab b { grid-area: 1 / 1; font-family: 'Lora', Georgia, serif; font-size: 20px; font-weight: 500; }
.lab i { grid-area: 2 / 1; font-style: normal; font-size: 13.5px; color: var(--muted-2); }
.lab span {
  grid-area: 1 / 2 / 3 / 3; align-self: center;
  color: var(--muted-2); font-size: 19px; transition: transform 0.35s var(--ease);
}
.lab:hover span { transform: translateX(5px); }

/* ══════════ ФИНАЛ ══════════ */
.final { padding: 0 0 128px; }
.final-in { text-align: center; }
.final-in .acts { justify-content: center; }

/* ══════════ ПОДВАЛ ══════════ */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-in nav { display: flex; gap: 24px; margin-left: auto; }
.foot-in nav a { font-size: 14px; color: var(--muted-2); transition: color 0.3s; }
.foot-in nav a:hover { color: var(--cream); }
.foot-in p { width: 100%; font-size: 12.5px; color: var(--muted-2); padding-top: 24px; border-top: 1px solid var(--line); }

/* ══════════ АДАПТИВ ══════════ */
@media (max-width: 980px) {
  .frame-body { grid-template-columns: 176px 1fr; }
  .chat { display: none; }
}

@media (max-width: 820px) {
  .pill-links, .pill-sep, .pill-ico, .pill-btn { display: none; }
  .burger { display: block; }
  .pill { width: 100%; padding: 7px 8px 7px 18px; justify-content: space-between; }

  .hero { padding: 132px 0 72px; }
  .shot { margin-top: 60px; }
  .frame-body { grid-template-columns: 1fr; min-height: 0; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .player { min-height: 190px; }

  .block { padding: 76px 0; }
  .block-in { grid-template-columns: 1fr; gap: 36px; }
  .block.flip .block-in { direction: ltr; }
  .art { order: 2; }

  .labs-grid { grid-template-columns: 1fr; }
  .foot-in nav { margin-left: 0; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 22px; }
  .acts { flex-direction: column; align-items: stretch; gap: 16px; }
  .acts .btn { width: 100%; }
  .link-quiet { justify-content: center; }
  .final-in .acts { flex-direction: column; }
}
