/* Шоу талантов ЦОДД 2026 — лендинг. Сначала телефон (от 375 px), затем планшет и ПК. */

@font-face {
  font-family: "Moscow Sans";
  src: url("/assets/fonts/moscow-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Moscow Sans";
  src: url("/assets/fonts/moscow-sans-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* Фирменные цвета ЦОДД (брендбук, 8.2.2) */
  --green: #68AD45;        /* Pantone 369 C, RGB 104 173 69 */
  --green-pale: #BFF599;   /* Pantone 358 C, RGB 191 245 153 */
  /* Ключевой визуал мероприятия (макеты Заказчика): темный графит + неон */
  --bg: #0E1012;
  --bg-2: #15181B;
  --card: #1A1E22;
  --line: #2A2F35;
  --text: #F4F6F5;
  --muted: #A9B3AE;
  --violet: #7B5CFF;
  --blue: #3D7BFF;
  --danger: #FF7A7A;
  --radius: 18px;
  --font: "Moscow Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-offset: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-pale); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-pale); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.accent { color: var(--green); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 14px;
  font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .1s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--green); color: #0B0D0C; }
.btn--primary:hover { background: #77BD52; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
/* Размытие — на отдельном слое: если задать его самой шапке, выезжающее меню (position: fixed)
   считало бы шапку своими границами и не растягивалось бы на высоту экрана */
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 16, 18, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top__in { display: flex; align-items: center; gap: 10px; height: 60px; }
.top__logo { margin-right: auto; }
.top__logo img { height: 32px; width: auto; }
/* Полоса движется целиком, включая таймер. Две одинаковые группы дают бесшовный цикл. */
body.has-vote-ticker { --header-offset: 102px; }
.vote-ticker { display: block; height: 42px; overflow: hidden; background: var(--green); color: #0E1012; text-decoration: none; border-top: 1px solid rgba(14,16,18,.15); }
.vote-ticker__track { display: flex; width: max-content; animation: vote-ticker-travel 44s linear infinite; }
.vote-ticker__group { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; gap: 24px; padding-right: 24px; }
.vote-ticker__part { display: flex; flex: none; align-items: center; gap: 24px; height: 41px; white-space: nowrap; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.vote-ticker__time { display: inline-block; min-width: 6ch; font-variant-numeric: tabular-nums; }
.vote-ticker__slashes { display: flex; gap: 4px; }
.vote-ticker__slashes i { display: block; width: 5px; height: 20px; transform: skewX(-24deg); background: currentColor; }
.vote-ticker:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.vote-ticker:focus .vote-ticker__track { animation-play-state: paused; }
@media (hover: hover) { .vote-ticker:hover .vote-ticker__track { animation-play-state: paused; } }
@keyframes vote-ticker-travel { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  body.has-vote-ticker { --header-offset: 98px; }
  .vote-ticker { height: 38px; }
  .vote-ticker__part { height: 37px; font-size: 12px; gap: 18px; }
  .vote-ticker__group { gap: 18px; padding-right: 18px; }
  .vote-ticker__slashes i { width: 4px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .vote-ticker__track { animation: none; } }
.top__burger { position: relative; z-index: 2; display: grid; gap: 5px; padding: 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.top__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.top__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Меню на телефоне и планшете — шторка справа, со стороны кнопки; пункты прижаты к правому краю */
.top__nav {
  position: fixed; top: 61px; right: 0; bottom: 0; z-index: 30;
  display: flex; flex-direction: column; width: min(320px, 86vw); padding: 8px 0;
  background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgba(0, 0, 0, .4);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.top__nav.is-open { transform: none; visibility: visible; }
.top__nav a {
  padding: 16px 20px; text-align: right; color: var(--text); text-decoration: none;
  font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .03em;
  border-bottom: 1px solid var(--line);
}
.top__nav a:active { background: rgba(104, 173, 69, .12); }
.nav-backdrop { position: fixed; inset: 61px 0 0; z-index: 25; background: rgba(0, 0, 0, .55); }
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .top__nav, .top__burger span { transition: none; }
}

/* ---------- Анонс ---------- */
.hero { position: relative; overflow: hidden; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.hero__glow {
  position: absolute; inset: -20% -30% auto; height: 140%;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(123, 92, 255, .55), transparent 70%),
    radial-gradient(35% 30% at 85% 35%, rgba(61, 123, 255, .45), transparent 70%),
    radial-gradient(30% 25% at 60% 90%, rgba(104, 173, 69, .25), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hero__in { position: relative; }
.hero__kicker {
  display: inline-block; margin: 0 0 10px; padding: 5px 12px;
  border: 1px solid var(--green); border-radius: 999px;
  color: var(--green-pale); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
}
.hero__title {
  margin: 0 0 14px;
  font-weight: 800; font-size: clamp(36px, 11vw, 96px); line-height: .95; text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 0 32px rgba(123, 92, 255, .35);
}
.hero__title .accent { display: block; text-shadow: 0 0 28px rgba(104, 173, 69, .45); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hero__facts li { padding: 6px 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.hero__facts b { font-weight: 800; }
.hero__lead { max-width: 560px; margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* ---------- Разделы ---------- */
.section { padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-offset); }
.h2 { margin: 0 0 20px; font-weight: 800; font-size: clamp(26px, 7vw, 44px); line-height: 1.05; text-transform: uppercase; }

/* ---------- Виджет голосования ---------- */
.section--vote { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.vote {
  position: relative;
  max-width: 640px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(104, 173, 69, .08), 0 20px 60px -30px rgba(104, 173, 69, .45);
}
.vote__step { margin: 0 0 6px; color: var(--green-pale); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.vote__title { margin: 0 0 10px; font-weight: 800; font-size: 22px; line-height: 1.15; }
.vote__text { margin: 0 0 16px; color: var(--muted); }
.vote__text b { color: var(--text); }
.vote__hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.vote__error { margin: 10px 0 0; color: var(--danger); font-size: 15px; }
.vote__link { display: inline-block; margin-top: 14px; padding: 6px 0; background: none; border: 0; color: var(--green-pale); text-decoration: underline; cursor: pointer; font-size: 15px; }
.vote__link--inline { margin: 0; padding: 0; font-size: inherit; }

.field { display: block; margin: 0 0 14px; }
.field__label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.field__input {
  width: 100%; height: 56px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  font-size: 20px; letter-spacing: .03em;
}
.field__input:focus { border-color: var(--green); outline: none; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }

.callbox { margin: 0 0 14px; padding: 16px; background: var(--bg); border: 1px dashed var(--green); border-radius: 14px; text-align: center; }
.callbox__num { display: block; margin: 0 0 12px; font-weight: 800; font-size: 26px; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; color: var(--muted); }
.wait__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.tips { margin: 14px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.tips li + li { margin-top: 4px; }

.ok { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.ok__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #0B0D0C; }

/* Подтверждение выбора */
.confirm { padding: 16px; background: var(--bg); border: 1px solid var(--green); border-radius: 14px; }
.confirm__who { margin: 0 0 14px; font-size: 18px; }
.confirm__who b { font-weight: 800; }
.confirm__actions { display: grid; gap: 10px; }

/* ---------- Аватар (фото в круге или инициалы) ---------- */
.ava {
  display: grid; place-items: center; overflow: hidden;
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 2px var(--green);
  font-weight: 800; color: #fff;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Участники ---------- */
.people { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.person__ava { position: relative; width: 88px; height: 88px; }
.person__ava .ava { font-size: 28px; }
.person__num { position: absolute; right: -6px; bottom: -6px; padding: 2px 8px; background: var(--green); color: #0B0D0C; border-radius: 999px; font-weight: 800; font-size: 14px; }
.person__name { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.2; }
.person__pos { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.person__act { margin: 0 0 6px; color: var(--green-pale); font-weight: 800; }
.person__desc { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.people__empty { color: var(--muted); }

/* ---------- Окно видеовизитки ---------- */
.vdlg { width: min(720px, calc(100% - 24px)); padding: 0; background: #000; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.vdlg::backdrop { background: rgba(0, 0, 0, .8); }
.vdlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; }
.vdlg__title { margin: 0; font-weight: 800; font-size: 15px; }
.vdlg__close { width: 44px; height: 44px; background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.vdlg video { display: block; width: 100%; max-height: 75vh; background: #000; }

/* ---------- Программа ---------- */
.program { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.program li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0 10px 18px; }
.program li::before { content: ""; position: absolute; left: -7px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); }
.program time { font-weight: 800; color: var(--green); }

/* ---------- Как добраться ---------- */
.route__grid { display: grid; gap: 20px; }
.route__addr { margin: 0 0 12px; font-weight: 800; font-size: 20px; }
.route__metro { margin: 0 0 12px; padding: 0; list-style: none; }
.route__metro li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.metro { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 800; font-size: 12px; color: #0B0D0C; }
.metro--8 { background: #FFCD1C; }
.metro--10 { background: #99CC00; }
.route__note { margin: 0; color: var(--muted); }
.route__map { margin: 0; }
.route__map figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { position: relative; padding: 16px 48px 16px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; color: var(--green); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* ---------- Подвал ---------- */
.foot { padding: 32px 0 40px; }
.foot__in { display: grid; gap: 16px; }
.foot__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot__links a { color: var(--muted); }

/* ---------- Номер гостя в шапке ---------- */
.top__me {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid rgba(104, 173, 69, .5); border-radius: 999px;
  color: var(--green-pale); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.top__me svg { width: 14px; height: 14px; flex: none; }

/* ---------- Статус голосования в первом экране ---------- */
.status { display: grid; gap: 10px; justify-items: start; max-width: 600px; }
.status:empty { display: none; }
.status__live { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--green-pale); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.status__live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.2s infinite; }
.status__live--off { color: var(--muted); }
.status__live--off::before { background: var(--muted); box-shadow: none; animation: none; }
.status__count { margin: 0; color: var(--muted); font-size: 17px; }
.status__count b { color: var(--text); font-weight: 800; font-size: 30px; }
.status__line { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: 17px; }
.status__line svg { width: 22px; height: 22px; flex: none; }
.status__line--ok { color: var(--green-pale); }
.status__text { margin: 0; color: var(--muted); }
.status__winner { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 17px; }
.status__winner svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--green); }
.status__winner b { font-weight: 800; }
.status__cta { min-width: 240px; margin-top: 4px; }
.status__link { color: var(--green-pale); font-size: 15px; }

/* ---------- Карточки участников: голосование и итоги ---------- */
.people__note { margin: -8px 0 16px; color: var(--muted); }
.people__note:empty { display: none; }
.person--gp { border-color: #E1DD00; box-shadow: 0 0 0 1px rgba(225, 221, 0, .25), 0 12px 40px -24px rgba(225, 221, 0, .6); }
.person--win { border-color: var(--green); box-shadow: 0 0 0 1px rgba(104, 173, 69, .3), 0 12px 40px -24px rgba(104, 173, 69, .7); }
.person__info { min-width: 0; }
.pbadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  color: #0B0D0C; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.pbadge svg { width: 14px; height: 14px; flex: none; }
.pbadge--gp { background: #E1DD00; }   /* дополнительный желтый из брендбука, RGB 225 221 0 */
.pbadge--win { background: var(--green); }
.person__foot { grid-column: 1 / -1; display: grid; gap: 8px; }
.person__foot:empty { display: none; }
.person__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.person__actions .btn { flex: 1 1 auto; white-space: nowrap; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.person__voted { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--green-pale); font-weight: 800; }
.person__voted svg { width: 18px; height: 18px; flex: none; }
.person__out { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.person__res { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.person__bar { flex: 1; height: 8px; overflow: hidden; background: var(--bg); border-radius: 4px; }
.person__bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.person__pct { font-weight: 800; white-space: nowrap; }

/* ---------- Окно голосования ---------- */
.vdlg--vote { width: min(480px, calc(100% - 24px)); padding: 20px; background: var(--card); }
.vdlg__who { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 12px; background: var(--bg); border-radius: 14px; }
.vdlg__ava { flex: none; width: 64px; height: 64px; }
.vdlg__ava .ava { font-size: 22px; }
.vdlg__name { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.2; }
.vdlg__act { margin: 2px 0 0; color: var(--muted); }
.vote__want { margin: 0 0 14px; padding: 10px 12px; background: rgba(104, 173, 69, .12); border: 1px solid rgba(104, 173, 69, .4); border-radius: 12px; }

/* ---------- Экран со счетчиком и итогами (под первым экраном) ---------- */
.tally {
  padding: 36px 0;
  background: radial-gradient(60% 140% at 0% 50%, rgba(104, 173, 69, .16), transparent 60%), var(--bg-2);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-offset);
}
.tally__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; align-items: center; }
.tally__num {
  margin: 0; color: var(--green);
  font-weight: 800; font-size: clamp(64px, 22vw, 200px); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(104, 173, 69, .45);
}
.tally__side { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.tally__label { margin: 0; font-weight: 800; font-size: clamp(18px, 4.6vw, 34px); line-height: 1.1; text-transform: uppercase; }
.tally__hint { margin: 0; color: var(--muted); }
.tally__mine { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--green-pale); font-size: 17px; }
.tally__mine svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.tally__mine b { font-weight: 800; }
.tally__cta { min-width: 200px; }
.tally__winners { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.tally__winner { display: flex; align-items: center; gap: 16px; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.tally__wava { flex: none; width: clamp(88px, 22vw, 150px); height: clamp(88px, 22vw, 150px); }
.tally__wava .ava { font-size: clamp(28px, 7vw, 48px); box-shadow: 0 0 0 3px var(--green), 0 0 40px rgba(104, 173, 69, .5); }
.tally__wtext { min-width: 0; }
.tally__wname { display: block; font-weight: 800; font-size: clamp(18px, 4.6vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.tally__wact { display: block; margin-top: 4px; color: var(--green-pale); font-weight: 800; overflow-wrap: anywhere; }
.tally__in[data-mode="published"] { grid-template-columns: 1fr; }

/* ---------- Карточка участника: нажатие открывает окно, длинный текст не вылезает ---------- */
.person { position: relative; overflow: hidden; cursor: pointer; transition: border-color .15s; }
/* Карточки в ряду одной высоты: лишнее место — под текстом, кнопки — внизу, имена на одной линии */
.person { grid-template-rows: 1fr auto; }
.person:hover { border-color: rgba(104, 173, 69, .55); }
.person__open { display: block; width: 100%; margin: 0 0 6px; padding: 0; background: none; border: 0; color: inherit; text-align: inherit; cursor: pointer; }
.person__open:focus-visible { outline: 3px solid var(--green-pale); outline-offset: 4px; border-radius: 6px; }
.person__name, .person__pos, .person__act { display: block; overflow-wrap: anywhere; }
.person__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.btn--video svg { width: 14px; height: 14px; flex: none; }

/* Ленточка «Ваш голос» в углу карточки. Пока фото и текст стоят в строку (до 1080 px),
   содержимое опущено под ленточку: иначе она закрывает конец длинного имени и значок победителя */
.person--mine { border-color: var(--green); padding-top: 64px; }
.person--mine .person__info { padding-right: 40px; }
.person__ribbon {
  position: absolute; top: 24px; right: -50px; z-index: 2; width: 190px; padding: 8px 0;
  transform: rotate(45deg); pointer-events: none;
  background: var(--green); color: #0B0D0C; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  font-weight: 800; font-size: 13px; letter-spacing: .08em; text-align: center; text-transform: uppercase;
}

/* ---------- Окно участника ---------- */
.pdlg { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 20px; overflow: auto; background: var(--card); }
.pdlg__close { position: absolute; top: 8px; right: 8px; }
.pdlg__head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 14px; padding-right: 36px; }
.pdlg__ava { position: relative; width: 112px; height: 112px; }
.pdlg__ava .ava { font-size: 36px; }
.pdlg__titles { min-width: 0; }
.pdlg__name { margin: 0 0 4px; font-weight: 800; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.pdlg__titles .person__pos { margin: 0 0 6px; }
.pdlg__titles .person__act { margin: 0; }
.pdlg__desc { margin: 0 0 14px; white-space: pre-line; overflow-wrap: anywhere; }
.pdlg .person__voted { margin: 0 0 10px; }
@media (max-width: 420px) {
  .pdlg__head { grid-template-columns: 88px minmax(0, 1fr); }
  .pdlg__ava { width: 88px; height: 88px; }
  .pdlg__ava .ava { font-size: 28px; }
}

/* ---------- Планшет и ПК ---------- */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 72px 0 80px; }
  .hero__kicker { margin-bottom: 14px; }
  .hero__title { margin-bottom: 18px; }
  .hero__facts li { padding: 8px 12px; font-size: 15px; }
  .hero__lead { font-size: 17px; margin-bottom: 24px; }
  .section { padding: 72px 0; }
  .vote { padding: 28px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .route__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .confirm__actions { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: auto 1fr; align-items: center; }
  .foot__links { justify-content: end; grid-auto-flow: column; gap: 24px; }
}
/* Меню строкой в шапке — с 960 px: на планшетах в портретной ориентации вместе с номером гостя оно не помещается */
@media (min-width: 960px) {
  .top__burger { display: none; }
  .top__nav { position: static; flex-direction: row; gap: 24px; width: auto; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; transform: none; visibility: visible; transition: none; }
  .nav-backdrop { display: none; }
  .top__me { order: 2; margin-left: 8px; }
  .top__nav a { padding: 0; font-size: 13px; border: 0; text-align: left; }
  .top__nav a:hover { color: var(--green-pale); }
}

@media (min-width: 1080px) {
  .people { grid-template-columns: repeat(3, 1fr); }
  .person { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; text-align: center; }
  .person__ava { width: 120px; height: 120px; margin: 0 auto; }
  .person__ava .ava { font-size: 38px; }
  .pbadges, .person__actions, .person__res { justify-content: center; }
  .person--mine { padding-top: 16px; }
  .person--mine .person__info { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wait__dot { animation: none; }
}

/* ---------- Служебные страницы (политика, согласие) ---------- */
.doc { max-width: 760px; }
.doc__draft { color: var(--muted); }
