/* МФРАТА · Расписание — тёмное «хромовое» оформление по фирменному стилю проектов МФРАТА.
   Layout: sticky top bar; stage-lit hero with chrome title and one straight chrome marquee;
   narrow = search screen / collective screen, wide (container ≥ 760px) = hero on top,
   sticky search column on the left, collective card on the right. Single deliberate dark theme. */
:root {
  --bg: #070809;
  --surface: #0E1013;
  --surface-2: #14171B;
  --line: #1F2328;
  --line-2: #2C3137;
  --ink: #F4F2EE;
  --muted: #8D929A;
  --dim: #5E636B;
  --red: #E5484D;
  --red-line: #C92A2A;
  --green: #5CC79A;
  --chrome: linear-gradient(135deg, #acabab 0%, #dcd7da 28%, #f3f3f3 55%, #ebe9ea 81%, #aaa6a8 100%);
  --chrome-v: linear-gradient(180deg, #ffffff 0%, #d9d6d8 38%, #8f8c8f 52%, #e9e7e8 70%, #b3b0b2 100%);
  --font: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --bar-h: 59px;
  --col: 680px; /* ширина колонки — сайт всегда по центру, как у МФРАТА */
  --safe-top: env(safe-area-inset-top, 0px);
  --bar-total: calc(var(--bar-h) + var(--safe-top));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f3f3f3; outline-offset: 2px; }
.tracked { text-transform: uppercase; letter-spacing: .28em; font-weight: 400; }

/* ---------- motion: one calm entrance, the brand marquee ---------- */
@keyframes fadeUp { from { opacity: .15; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.a-up { animation: fadeUp .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
@media (prefers-reduced-motion: reduce) {
  .a-up, .beam, .ribbon .track { animation: none !important; }
  .item, .mat, .btn { transition: none !important; }
}

/* ---------- shell ---------- */
.app { min-height: 100vh; width: 100%; max-width: var(--col); margin-inline: auto; }
.appbar { position: sticky; top: 0; z-index: 20; height: var(--bar-total); display: flex; align-items: center; gap: 12px; padding: var(--safe-top) max(16px, env(safe-area-inset-right, 0px)) 0 max(7px, env(safe-area-inset-left, 0px)); background: rgba(7, 8, 9, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.burger { border: 0; background: transparent; width: 44px; height: 44px; padding: 15px 10px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; flex: none; }
.burger i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
.bar-title { font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.brand img { width: 30px; height: 30px; }
.offline { background: var(--surface-2); border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.pane { padding: 22px 16px 48px; min-width: 0; }
.app[data-view="search"] .pane-detail { display: none; }
.app[data-view="detail"] .pane-search, .app[data-view="detail"] .hero { display: none; }

.state { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; color: var(--muted); }
.state b { display: block; font-weight: 800; font-size: 17px; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 0 auto 14px; }

/* ---------- hero: stage light + chrome title ---------- */
.hero { position: relative; overflow: hidden; padding: 20px 16px 0; isolation: isolate; text-align: center;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, .10), transparent 70%), radial-gradient(60% 40% at 50% 100%, rgba(255, 255, 255, .06), transparent 70%), var(--bg); }
.beam { position: absolute; top: -30px; width: 160px; height: 460px; z-index: -1; transform-origin: 50% 0; background: linear-gradient(to bottom, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%, transparent 90%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(5px); animation: sway 9s ease-in-out infinite alternate; }
.beam.b1 { left: 6%; }
.beam.b2 { right: 6%; animation-direction: alternate-reverse; animation-duration: 11s; }
.hero-title { margin: 12px 0 0; font-weight: 800; text-transform: uppercase; font-size: 50px; line-height: .95; letter-spacing: .01em; overflow-wrap: anywhere;
  background: var(--chrome-v); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(255, 255, 255, .12)); }
.ribbons { position: relative; margin: 26px -16px 0; }
.ribbon { overflow: hidden; white-space: nowrap; padding: 9px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ribbon .track { display: inline-flex; animation: marq 40s linear infinite; }
.ribbon .track span { padding-right: 34px; }
.ribbon.r1 { background: var(--chrome); color: #0b0b0b; }

/* ---------- buttons: chrome = main action ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 17px; padding: 15px 22px; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary { background: var(--chrome); color: #000; box-shadow: 0 2px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -14px rgba(255, 255, 255, .5); }
.btn-selected { color: var(--ink); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; border: 1.5px solid transparent; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-block { width: 100%; }
.btn small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .02em; text-transform: none; opacity: .8; }

/* ---------- section heads ---------- */
.sec-head { margin: 0 0 16px; }
.sec-head i { display: none; }
.sec-head h2, .sec-head h3 { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .28em; margin: 0; color: var(--ink); }

/* ---------- search ---------- */
.searchbox { position: relative; border-radius: 17px; padding: 1.5px; background: var(--chrome); }
.searchbox-inner { position: relative; background: var(--bg); border-radius: 15.5px; }
.searchbox svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; padding: 15px 44px 15px 46px; border-radius: 15.5px; -webkit-appearance: none; appearance: none; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox input::placeholder { color: var(--dim); }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.searchbox .clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: 24px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }
.group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); font-weight: 600; margin: 28px 2px 12px; display: flex; justify-content: space-between; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 12px; border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; color: inherit; text-decoration: none; }
@media (hover: hover) { .item:hover { border-color: var(--line-2); background: var(--surface-2); } }
.item[aria-current="true"] { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; border: 1px solid transparent; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #23272c, #0c0e10 70%) padding-box, var(--chrome) border-box; border: 2px solid transparent; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; display: block; overflow-wrap: anywhere; }
.item-sub { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.item-sub b { color: var(--red) !important; font-weight: 600; }
.item .chev { color: var(--dim); flex: none; }
.mine-tag { flex: none; background: var(--chrome); color: #000; font-weight: 800; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.time-badge { flex: none; min-width: 58px; text-align: center; font-weight: 700; font-size: 14px; padding: 7px 4px; border-radius: 12px; border: 1px solid var(--line-2); line-height: 1.15; font-variant-numeric: tabular-nums; }
.time-badge small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.empty b { display: block; color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }

/* general timing on the search screen */
.timing { margin-top: 34px; }
.timing .day { margin-top: 14px; }
.timing .day-head { position: static; }
.timing .ev { padding: 11px 0; }
.timing .ev-title { font-size: 14.5px; }

/* ---------- collective card ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; padding: 0 12px 0 0; margin: -8px 0 6px; cursor: pointer; }
.c-head { display: flex; flex-direction: column; gap: 14px; }
.c-head-row { display: flex; flex-direction: column; gap: 18px; }
.c-title { font-weight: 800; font-size: 34px; line-height: 1.02; text-transform: uppercase; margin: 10px 0 0; text-wrap: balance; overflow-wrap: anywhere;
  color: var(--ink); }
.c-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 480px; }
.c-actions .btn-ghost { padding: 15px 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fact b { color: var(--ink); font-weight: 700; }
.updated { font-size: 12px; color: var(--muted); }
.updated b { color: var(--ink); font-weight: 600; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 17px; }
.tabs button { border: 0; background: transparent; padding: 12px 8px; border-radius: 13px; font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--chrome); color: #000; }
.days { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; padding-bottom: 2px; }
.days button { flex: 1 0 88px; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 9px 4px; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.days button small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.days button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; border: 1px solid transparent; }
.days button:disabled { border-style: dashed; cursor: default; opacity: .6; }

.info { margin-top: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 16px; }
.info h4 { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 12px; color: var(--muted); }
.info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.info li { position: relative; padding-left: 20px; font-size: 14px; }
.info li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.alert { margin-top: 18px; border: 1px solid var(--red-line); border-radius: 14px; padding: 12px 14px; font-size: 14px; background: rgba(201, 42, 42, .1); }
.alert strong { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.notice { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14px; background: var(--surface); color: var(--muted); }
.notice strong { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 6px; }

.day { margin-top: 24px; }
.day-head { position: sticky; top: var(--bar-total); z-index: 3; background: var(--bg); padding: 12px 0 10px; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-2); }
.day-head b { font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #000; background: var(--chrome); padding: 4px 9px; border-radius: 6px; }
.day-head h3 { font-weight: 400; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.ev { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ev.cancelled { opacity: .6; }
.ev.cancelled .ev-title, .ev.cancelled .ev-time { text-decoration: line-through; }
.ev-time { font-weight: 800; font-size: 19px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ev-time small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ev-time .pre { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.ev-time .tbd { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.ev-time .approx { color: var(--muted); font-size: .8em; margin-right: 1px; }
.ev-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-type { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ev-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--dim)); }
.t-perf { --dot: #ffffff; }
.t-perf .ev-type { color: var(--ink); }
.t-mk { --dot: #9FB4CC; }
.t-run { --dot: #D9C29A; }
.t-award { --dot: #E6E3DE; }
.t-block { --dot: #ffffff; }
.t-lead { --dot: #9FD4B8; }
.t-all { --dot: #E6E3DE; }
.ev-title { font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.ev-meta { font-size: 13px; color: var(--muted); }
.ev-meta b { color: var(--ink); font-weight: 600; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tech span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink); border-radius: 6px; padding: 3px 8px; }
.changed { margin-top: 7px; font-size: 13px; border: 1px solid var(--red-line); background: rgba(201, 42, 42, .1); border-radius: 10px; padding: 7px 10px; }
.changed strong { color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.changed s { color: var(--muted); }
.changed.is-new { border-color: rgba(92, 199, 154, .6); background: rgba(92, 199, 154, .08); }
.changed.is-new strong { color: var(--green); }

.m-section { margin-top: 28px; }
.mats { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mat { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: left; width: 100%; transition: border-color .2s, background .2s; color: inherit; text-decoration: none; }
@media (hover: hover) { .mat:hover { border-color: var(--line-2); background: var(--surface-2); } }
.thumb { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #23272c, #0c0e10 70%) padding-box, var(--chrome) border-box; border: 2px solid transparent; }
.mat-body { min-width: 0; flex: 1; }
.mat-title { font-weight: 700; display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.mat-sub { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.mat .open { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; }

/* ---------- menu & toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--bg); padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; overflow-y: auto; }
.sheet-inner { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-top h2 { font-size: 13px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; margin: 0; }
.close { border: 0; background: transparent; color: var(--ink); font-size: 30px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.sheet .btn { flex-direction: column; gap: 3px; padding: 16px; }
.sheet .foot { margin-top: auto; color: var(--dim); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding-top: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--chrome); color: #000; padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; width: max-content; max-width: calc(100% - 32px); z-index: 60; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.copy-field { position: absolute; left: -9999px; }

/* ---------- hero details ---------- */
.hero-main, .hero-side { max-width: 728px; margin-inline: auto; }
.hero-sub { margin: 14px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .26em; color: var(--ink); }
.hero-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px 0 0; font-size: 13.5px; font-weight: 600; }
.hm-place { color: var(--muted); font-weight: 500; }
.nw { white-space: nowrap; }
@media (min-width: 600px) { .hero-meta { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 12px; } .hm-place::before { content: "·"; margin-right: 12px; color: var(--dim); } }
.hero-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.hero-map:hover { color: var(--ink); }
.hero-side { margin-top: 22px; text-align: left; }

/* «Сейчас / Далее» */
.nn { border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 16px; background: rgba(255, 255, 255, .025); }
.nn-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.nn-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.nn-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.nn-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nn-body b { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.nn-meta { font-size: 13px; color: var(--muted); }
.nn-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.c-nn { margin-top: 4px; }

/* карточка коллектива */
.c-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.btn svg { flex: none; }
.btn-icon { padding-inline: 16px; }
.back svg { margin-left: -4px; }
.day-ch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: 2px; }
.mat .open { display: inline-flex; align-items: center; gap: 5px; }
.item.is-static { cursor: default; }
.item-alert { position: relative; padding-left: 13px; }
.item-alert::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* «Информация для руководителей» сворачивается */
details.info { padding: 0; }
details.info summary { list-style: none; cursor: pointer; padding: 16px; min-height: 44px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
details.info summary::-webkit-details-marker { display: none; }
details.info summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
details.info[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.info ul { padding: 0 16px 16px; }

/* меню «О проекте» */
.about { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); }
.about-title { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.about > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.about dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 18px 0 0; font-size: 14px; }
.about dt { color: var(--muted); }
.about dd { margin: 0; }
.about a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line-2); display: inline-flex; align-items: center; gap: 6px; }

/* поверхности браузера — в палитре */
::selection { background: #f3f3f3; color: #000; }
input { caret-color: #f3f3f3; }
html { scrollbar-color: var(--line-2) var(--bg); }

/* ---------- touch ---------- */
.item, .mat, .btn, .tabs button, .days button { touch-action: manipulation; transition: transform .12s ease, border-color .2s, background .2s; }
.item:active, .mat:active, .btn:active, .days button:active { transform: scale(.985); }

/* одна колонка (телефон в любом положении, планшет): по центру, с отступами под вырез */
.pane { width: 100%; max-width: 760px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hero { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

@media (max-width: 374px) {
  .pane { padding-left: 14px; padding-right: 14px; }
  .btn { letter-spacing: .06em; padding-inline: 14px; font-size: 12px; }
  .hero-title { font-size: 40px; }
  .c-title { font-size: 28px; }
  .ev { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .ev-time { font-size: 17px; }
  .nn-row { grid-template-columns: 76px minmax(0, 1fr); }
}

/* низкий экран — телефон боком: компактная шапка, ничего не прилипает и не съедает высоту */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 12px; }
  .hero-title { font-size: 40px; }
  .hero-sub { margin-top: 8px; }
  .hero-meta { margin-top: 10px; }
  .beam { display: none; }
  .ribbons { margin-top: 18px; }
  .day-head { position: static; }
  .c-title { font-size: 30px; }
  .pane { padding-top: 16px; }
}


/* ---------- фирменные знаки ---------- */
.hero-logo { margin: 4px auto 0; max-width: 520px; }
.hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 24px rgba(255, 255, 255, .08)); }
.about-logo { display: block; width: min(100%, 300px); height: auto; margin: 0 auto 4px; }
.about > p { text-align: center; }
.org { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.org img { flex: none; }
.org b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.org span { display: block; font-size: 12px; color: var(--muted); }
@media (min-width: 700px) {
  .hero { padding-top: 28px; }
  .pane { padding-top: 28px; }
}

/* ---------- свёрнутый список всех коллективов ---------- */
.all-list { margin-top: 20px; }
.all-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; touch-action: manipulation; }
.all-list summary::-webkit-details-marker { display: none; }
.all-list summary > span:first-child { flex: 1; }
.all-count { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .04em; }
.all-list summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0 4px; transition: transform .2s; }
.all-list[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.all-list[open] summary { border-color: var(--line-2); }
.all-list .list { margin-top: 8px; }
@media (hover: hover) { .all-list summary:hover { background: var(--surface-2); } }
@media (prefers-reduced-motion: reduce) { .all-list summary::after { transition: none; } }

.video-material { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.video-heading { margin-bottom: 12px; }
.video-area { display: grid; place-items: center; background: #111; border-radius: 12px; overflow: hidden; min-height: 150px; }
.video-area video { display: block; width: 100%; max-height: 65vh; background: #000; }
.video-play { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 12px 18px; cursor: pointer; font: inherit; font-weight: 600; }
.video-play:disabled { opacity: .6; }
.video-status { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.video-status:empty { display: none; }
.video-source { color: var(--muted); display: inline-block; font-size: 12px; margin-top: 10px; }

.video-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-top: 10px; }
.video-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; cursor: pointer; font-size: 14px; font-weight: 700; }
.video-group summary span:last-child { color: var(--muted); font-size: 12px; font-weight: 500; }
.video-group summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.video-group[open] summary::after { content: "−"; }
.video-group .mats { padding: 0 10px 10px; }
.video-prof-note { margin: 12px 2px 0; color: var(--muted); font-size: 13px; }

.tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.result-card .mat-title { margin-top: 7px; }
.result-score { display: inline-block; margin-top: 10px; font-weight: 700; }
.result-award { display: inline-block; margin: 10px 0 0 12px; color: var(--muted); }

.jury-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 18px 0; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.jury-link span { color: var(--muted); font-size: 12px; font-weight: 500; }
.jury-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.tabs .results-tab { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 12px 16px; text-align: left; background: var(--chrome); color: #080809; letter-spacing: .12em; }
.tabs .results-tab b, .tabs .results-tab small { display: block; }
.tabs .results-tab small { margin-top: 4px; color: #33383d; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.tabs .results-tab .results-arrow { font-size: 22px; font-weight: 400; line-height: 1; }
.tabs .results-tab[aria-selected="true"] { box-shadow: inset 0 0 0 2px #687078; }
