/* ==========================================================================
   РАСКЛАДКА V3 — широкий дашборд
   Перебивает центрированную карточку: слева липкий профиль, справа лента.
   Оформление не трогаем — те же переменные, рамки и тени, что выше.
   ========================================================================== */

/* --- верхняя панель: к марке и часам добавились разделы и языки --- */
.hud{
  position:sticky; padding:14px clamp(16px,3vw,30px);
  gap:16px;
  background:linear-gradient(180deg, rgba(7,5,8,.88), rgba(7,5,8,0));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.hud__nav{
  display:flex; align-items:center; gap:clamp(10px,2vw,22px);
  pointer-events:auto; margin-left:auto;
}
.hud__lang{ display:flex; align-items:center; gap:2px; pointer-events:auto; }
/* переключатель — обычные ссылки на соседнюю версию, не кнопки:
   язык выбирается адресом, а не скриптом */
.hud__lang a{
  font-family:var(--f-mono); font-size:9px; letter-spacing:.2em;
  color:var(--silver-2); background:none; cursor:pointer;
  padding:4px 7px; border-radius:7px; border:1px solid transparent;
  transition:color .3s ease, border-color .3s ease;
}
.hud__lang a:hover{ color:var(--txt); }
.hud__lang a[aria-current="true"]{ color:var(--txt); border-color:rgba(222,216,228,.16); }
.hud__lang i{ font-style:normal; color:var(--silver-2); opacity:.3; }

/* --- полоса состояния под шапкой --- */
/* Полоса едет справа налево без шва: строка размножена копиями, дорожка
   уезжает ровно на ширину одного ряда и начинает заново. Сколько копий
   нужно и на сколько сдвигать, считает main.js (stripRun) — от ширины
   окна и от длины самой строки, которая меняется вместе со статусом. */
.strip{
  position:relative; z-index:5; overflow:hidden;
  padding:9px 0;
  border-block:1px solid rgba(222,216,228,.07);
  font-family:var(--f-mono); font-size:8.5px; letter-spacing:.26em;
  text-transform:uppercase; color:var(--silver-2); opacity:.75;
}
.strip__track{
  display:flex; width:max-content;
  animation:stripRun var(--strip-dur,26s) linear infinite;
  will-change:transform;
}
.strip__row{
  display:flex; align-items:center; flex:0 0 auto;
  gap:clamp(10px,2vw,22px);
  padding-inline:clamp(10px,2vw,22px);
}
@keyframes stripRun{ to{ transform:translateX(calc(-1 * var(--strip-shift,50%))); } }
/* Общее правило адаптива ужимает длительность до .001ms, и строка просто
   прыгнула бы в конец. Здесь глушим саму анимацию, а не её скорость. */
@media (prefers-reduced-motion:reduce){
  .strip__track{ animation-name:none; transform:none; }
}
.strip__on{ display:inline-flex; align-items:center; gap:6px; color:var(--txt); }
.strip__on i{
  width:5px; height:5px; border-radius:50%; background:var(--offline);
  transition:background .4s ease;
}
.strip__on[data-state="online"] i{ background:var(--online); }
.strip__on[data-state="idle"]   i{ background:var(--idle); }
.strip__on[data-state="dnd"]    i{ background:var(--dnd); }

/* --- сетка страницы --- */
.shell{
  position:relative; z-index:5;
  max-width:1180px; margin:0 auto;
  padding:20px clamp(14px,3vw,30px) 40px;
  display:grid; grid-template-columns:376px minmax(0,1fr); gap:16px;
  align-items:start;
  perspective:1400px;
}
/* липкий столбец: профиль всегда на виду, как в референсе.
   perspective здесь, а не только на .shell: липкий столбец — обычный блок
   с transform-style:flat, он сплющивает 3D и наклон карточки превращался
   в плоский сдвиг без глубины. Своя перспектива столбцу это возвращает,
   сам tilt при этом не трогаем. */
.shell__side{
  position:sticky; top:66px; display:flex; flex-direction:column; gap:16px;
  perspective:1400px;
}
/* Липкость включает main.js, см. stickySide(): она имеет смысл только
   пока столбец помещается в окно. Если он выше видимой области, sticky
   прибил бы верх, а низ остался бы недостижимым — тогда столбец
   листается как обычный блок. */
html[data-side="off"] .shell__side{ position:static; }
.shell__feed{ display:flex; flex-direction:column; gap:16px; min-width:0; }

/* карточка профиля больше не ограничена 560px */
.card{ width:100%; }

/* --- панель: та же формула, что у .card__inner, но легче --- */
.pane{
  position:relative; overflow:hidden;
  border-radius:20px; padding:clamp(15px,2vw,20px);
  background:linear-gradient(180deg, rgba(43,34,47,.46), rgba(10,7,12,.72));
  border:1px solid rgba(222,216,228,.09);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 28px 60px -40px rgba(0,0,0,.9);
  backdrop-filter:blur(16px) saturate(1.12);
  -webkit-backdrop-filter:blur(16px) saturate(1.12);
}
.pane .block{ margin-bottom:0; }
.pane__head{ display:flex; align-items:center; gap:9px; margin-bottom:13px; }
.pane__head svg{ width:14px; height:14px; color:var(--rose); flex:0 0 auto; }
.pane__cap{
  font-family:var(--f-mono); font-size:9.5px; font-weight:400;
  letter-spacing:.34em; text-transform:uppercase; color:var(--silver-2);
  opacity:.62;
}
.pane__line{ flex:1; height:1px; background:linear-gradient(90deg,rgba(222,216,228,.16),transparent); }

/* .duo раскрывается насквозь: счётчики и терминал на референсе идут во всю
   ширину ленты, парой они не встают ни на одной ширине */
.duo{ display:contents; }

/* --- ссылки строками, как в «me retrouver» --- */
.links{ display:block; margin-top:0; }
.links .lnk{
  flex-direction:row; align-items:center; gap:12px;
  padding:11px 12px; border-radius:12px;
  border:0; background:none;
  border-bottom:1px solid rgba(222,216,228,.07);
}
.links .lnk:last-child{ border-bottom:0; }
.links .lnk:hover{ background:rgba(222,216,228,.04); transform:none; }
.links .lnk svg,
.links .lnk__logo{ width:26px; height:26px; flex:0 0 auto; }
.links .lnk__cap{
  font-size:11px; letter-spacing:.16em; opacity:.8; min-width:84px;
}
.lnk__go{
  margin-left:auto; color:var(--rose);
  opacity:0; transform:translateX(-4px);
  transition:opacity .3s ease, transform .3s var(--ease);
}
.lnk__go svg{ width:14px; height:14px; }
.links .lnk:hover .lnk__go{ opacity:1; transform:none; }

/* --- счётчики --- */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat{
  text-align:center; padding:16px 8px; border-radius:14px;
  border:1px solid rgba(222,216,228,.10);
  background:linear-gradient(180deg, rgba(222,216,228,.045), rgba(222,216,228,.012));
  transition:border-color .35s ease, transform .45s var(--ease);
}
.stat:hover{ border-color:rgba(201,139,160,.4); transform:translateY(-2px); }
.stat b{ display:block; font-family:var(--f-disp); font-size:26px; letter-spacing:.02em; color:var(--txt); }
.stat span{
  display:block; margin-top:7px;
  font-family:var(--f-mono); font-size:8px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--silver-2); opacity:.7;
}

/* --- интересы иконками --- */
.ints{ display:grid; grid-template-columns:repeat(5,1fr); gap:9px; margin-top:10px; }
.int{
  text-align:center; padding:12px 4px; border-radius:13px;
  border:1px solid rgba(222,216,228,.10);
  background:linear-gradient(180deg, rgba(222,216,228,.045), rgba(222,216,228,.012));
  transition:border-color .35s ease, transform .45s var(--ease), color .35s ease;
  color:var(--rose);
}
.int:hover{ border-color:rgba(201,139,160,.45); transform:translateY(-2px); }
.int svg{ width:19px; height:19px; margin:0 auto; }
.int span{
  display:block; margin-top:8px;
  font-family:var(--f-mono); font-size:7.5px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--silver-2); opacity:.75;
}

/* --- форма связи --- */
.form{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.form input,
.form textarea{
  width:100%; padding:12px 13px; border-radius:12px;
  border:1px solid rgba(222,216,228,.10);
  background:rgba(222,216,228,.03);
  color:var(--txt); font-family:var(--f-ui); font-size:13px;
  outline:0; transition:border-color .3s ease, background .3s ease;
}
.form input::placeholder,
.form textarea::placeholder{ color:var(--silver-2); opacity:.55; }
.form input:focus,
.form textarea:focus{ border-color:rgba(201,139,160,.5); background:rgba(222,216,228,.05); }
.form textarea{ grid-column:1 / -1; min-height:104px; resize:vertical; }
.form__or{ grid-column:1 / -1; display:grid; grid-template-columns:1fr auto 1fr; gap:10px; align-items:center; }
.form__or i{
  font-family:var(--f-mono); font-size:8.5px; font-style:normal;
  letter-spacing:.22em; text-transform:uppercase; color:var(--silver-2); opacity:.6;
}
/* кнопка повторяет .dc__btn: серебро с бликом, без нового языка */
.form__send{
  grid-column:1 / -1; position:relative; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:12px; border:0; border-radius:12px; cursor:pointer;
  font-family:var(--f-ui); font-size:12.5px; font-weight:700; letter-spacing:.02em;
  color:#150f18;
  background:linear-gradient(180deg,#efe9f2,#b9b0c2);
  box-shadow:0 6px 18px -8px rgba(222,216,228,.7), 0 1px 0 rgba(255,255,255,.6) inset;
  transition:transform .35s var(--ease), filter .35s ease;
}
.form__send:hover{ transform:translateY(-2px); filter:brightness(1.05); }
.form__note{
  grid-column:1 / -1; margin:0;
  font-family:var(--f-mono); font-size:10px; line-height:1.6;
  color:var(--silver-2); opacity:.65;
}

/* Ловушка: убираем из потока и из видимости, но оставляем в форме —
   автомат ищет поля в разметке, а не глазами. display:none тут не годится,
   часть ботов такие поля пропускает. */
.form__trap{
  position:absolute; left:-9999px; top:0;
  width:1px; height:1px; padding:0; border:0;
  opacity:0; pointer-events:none;
}

/* строка результата отправки */
.form__state{
  display:none; grid-column:1 / -1; margin:0;
  font-family:var(--f-mono); font-size:10px; line-height:1.6;
}
.form__state.is-on{ display:block; }
.form__state--ok{ color:var(--online); }
.form__state--err{ color:var(--dnd); }
.form__state a{ color:var(--rose); border-bottom:1px solid rgba(201,139,160,.45); }
.form__state a:hover{ color:var(--txt); border-bottom-color:var(--txt); }

/* пока показываем, что ушло, полей не видно */
.form.is-done > *:not(.form__state){ display:none; }

.form__send:disabled{
  opacity:.55; cursor:default;
  transform:none; filter:none;
}

/* --- подвал --- */
.foot{ padding:0 0 30px; }

/* ==========================================================================
   КАРТОЧКА ПРОФИЛЯ ПО ЦЕНТРУ
   На референсе аватар лежит на баннере внахлёст, а всё под ним
   выровнено по центру. Перебиваем боковую сборку .hero.
   ========================================================================== */

.card__inner{ padding:0 0 clamp(16px,2.4vw,22px); }

/* баннер занимает всю ширину карточки, аватар наезжает на него снизу */
.pbanner{ position:relative; overflow:hidden; margin:0; height:118px; border-radius:0; }
.pbanner img{ width:100%; height:100%; object-fit:cover; object-position:50% 42%; }
/* низ баннера уводим в фон карточки, чтобы аватар не садился на резкий срез */
.pbanner__fade{
  position:absolute; inset:auto 0 0 0; height:56px;
  background:linear-gradient(180deg, rgba(10,7,12,0), rgba(10,7,12,.92));
}

.hero{
  flex-direction:column; align-items:center; text-align:center;
  gap:0; margin-top:-46px; padding:0 clamp(16px,2.4vw,22px);
}
.hero__ava{ width:96px; }
/* тёмная окантовка отделяет фото от баннера */
.hero__ava .ava__shot img{ border:4px solid #0b070d; }
.hero__id{ width:100%; margin-top:13px; }

.nick{ font-size:clamp(34px,4.4vw,46px); }
.nick__sizer,.nick__t{ justify-content:center; }

.status{ justify-content:center; margin-top:12px; }
.chips,
.badges{ justify-content:center; }

/* второй баннер подряд смотрелся бы дублем: у карточки он уже есть */
.pane .dc__banner{ display:none; }
.pane .dc__row{ margin-top:0; padding:0; }
.pane .dc__act{ margin:12px 0 0; }

/* ==========================================================================
   ЛЕНТА: широкие разделы
   Счётчики и терминал на референсе идут во всю ширину, не парой.
   ========================================================================== */

.term__out{ height:264px; }

/* подсказка про историю живёт в подвале окна, как на скрине */
.term__hint{
  display:block; padding:0 13px 11px;
  font-family:var(--f-mono); font-size:9px; letter-spacing:.14em;
  color:var(--silver-2); opacity:.5;
}

/* ==========================================================================
   УЗКИЕ ЭКРАНЫ
   Все медиазапросы раскладки живут здесь и только здесь, после всех
   базовых правил файла. Раньше блок на 520 px стоял в середине, а .stats
   и .duo переопределялись ниже по файлу — из-за этого .stats{1fr 1fr} не
   срабатывало никогда и на 360 px счётчики стояли в четыре колонки по 66 px.
   ========================================================================== */

@media (max-width:940px){
  /* липкий столбец становится обычным, лента уходит под него */
  .shell{ grid-template-columns:minmax(0,1fr); }
  .shell__side{ position:static; }
}

@media (max-width:700px){
  /* факты в одну колонку: две плитки рядом на телефоне обрезают значения.
     Работы трогать не надо — они и так строками во всю ширину. */
  .facts{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width:520px){
  /* Счётчиков осталось три, и на 360 px они втроём помещаются: плитка 93 px,
     самое длинное число занимает 75. Пара в ряд дала бы 2 + 1 с дырой. */
  .ints{ grid-template-columns:repeat(3,1fr); }
  .form{ grid-template-columns:1fr; }
  .links .lnk__cap{ min-width:70px; }
  /* ссылок стало шесть, и у «по работе» значение самое длинное:
     на 360 px при gap:12px «@TroikaStudioSup» не помещалось и обрезалось
     многоточием. Сжимаем промежутки в строке, подписи и значение при этом
     остаются в одну строку и целиком. */
  .links .lnk{ gap:9px; }

  /* терминал: вывод и ввод остаются на моноширинном 11 px,
     ужимаем только поля, чтобы help не жался к краям */
  .term__out{ height:230px; padding:11px; }
  .term__bar,
  .term__in{ padding:9px 11px; }
}

@media (max-width:400px){
  /* два поля контакта в ряд с «или» между ними на 360 px дают
     колонки по 129 px — ставим их друг под другом */
  .form__or{ grid-template-columns:1fr; justify-items:stretch; }
  .form__or i{ text-align:center; }
}
