/* Маяк — ночное небо, бирюзовое море и тёплый свет фонаря. Палитра и формы взяты из аватарки беседы. */
:root {
  --night-0: #061634;
  --night-1: #0A2150;
  --night-2: #0D2D6B;
  --royal: #1A4FA8;
  --aqua: #3FD8E0;
  --aqua-2: #1FB0C6;
  --aqua-ink: #74E6EC;
  --sea-deep: #0E6F96;
  --lamp: #FFD970;
  --lamp-hi: #FFF2C4;
  --coral: #FF7676;
  --ink: #EAF2FF;
  --ink-2: #C7D6F0;
  --muted: #95ABD3;
  --line: rgba(150, 205, 255, .15);
  --line-2: rgba(150, 205, 255, .28);
  --card: rgba(18, 52, 118, .42);
  --card-hi: rgba(26, 70, 150, .55);
  --field: rgba(4, 16, 42, .55);
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wave1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 132' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 259.2 22 460.8 22 720.0 48 S 1180.8 74 1440 48 V132 H0Z' fill='%2324A9C9'/%3E%3Cpath d='M0 48 C 259.2 22 460.8 22 720.0 48 S 1180.8 74 1440 48' fill='none' stroke='rgba%28200%2C250%2C255%2C.55%29' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 98' preserveAspectRatio='none'%3E%3Cpath d='M0 36 C 198.0 16 352.0 16 550.0 36 S 902.0 56 1100 36 V98 H0Z' fill='%2312779F'/%3E%3Cpath d='M0 36 C 198.0 16 352.0 16 550.0 36 S 902.0 56 1100 36' fill='none' stroke='rgba%28160%2C240%2C250%2C.5%29' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 64' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 162.0 10 288.0 10 450.0 24 S 738.0 38 900 24 V64 H0Z' fill='%230A2150'/%3E%3Cpath d='M0 24 C 162.0 10 288.0 10 450.0 24 S 738.0 38 900 24' fill='none' stroke='rgba%2863%2C216%2C224%2C.75%29' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night-1); scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; position: relative;
  background: var(--night-1);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
.sky-fixed {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.2px 1.2px at 58% 34%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(63,216,224,.10), transparent 70%),
    radial-gradient(800px 700px at 0% 110%, rgba(26,79,168,.45), transparent 70%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 40%, #0B2558);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 400px 400px, 300px 300px, auto, auto, auto;
}
img { max-width: 100%; }
a { color: var(--aqua-ink); text-underline-offset: 3px; text-decoration-color: rgba(116,230,236,.45); }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(21px, 2.4vw, 27px); margin-top: 1.6em; }
h3 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(255,217,112,.35); color: #fff; }

/* ── шапка ── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 22, 52, .62);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(150,205,255,.10);
  padding-top: env(safe-area-inset-top);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-badge { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.brand-badge::after { content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,217,112,.9) 82%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
  animation: spin 6s linear infinite; }
.brand img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.brand b { font: 800 21px var(--display); letter-spacing: .04em; text-transform: none; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15.5px; position: relative; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--night-0); background: linear-gradient(180deg, var(--lamp-hi), var(--lamp)); font-weight: 600;
  box-shadow: 0 0 22px rgba(255,217,112,.35); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.who { color: #fff; text-decoration: none; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.who .ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display);
  background: linear-gradient(135deg, var(--aqua), var(--royal)); color: #fff; }
.who-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

/* ── кнопки и формы ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15.5px var(--body); padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .18s var(--ease), box-shadow .25s, background-color .2s, border-color .2s;
  color: #fff;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lamp { background: linear-gradient(180deg, var(--lamp-hi), var(--lamp) 60%, #F5C24C); color: var(--night-0);
  box-shadow: 0 6px 24px -6px rgba(255,217,112,.65), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-lamp:hover { color: var(--night-0); box-shadow: 0 8px 34px -4px rgba(255,217,112,.85), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(-1px); }
.btn-sea { background: linear-gradient(180deg, #6AE7EC, var(--aqua) 50%, var(--aqua-2)); color: var(--night-0);
  box-shadow: 0 6px 24px -8px rgba(63,216,224,.7); }
.btn-sea:hover { color: var(--night-0); transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(63,216,224,.9); }
.btn-ghost, .btn-glass { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(190,225,255,.24); }
.btn-ghost:hover, .btn-glass:hover { background: rgba(255,255,255,.12); border-color: var(--aqua); color: #fff; }
.btn-danger { background: transparent; color: var(--coral); border-color: rgba(255,118,118,.45); }
.btn-danger:hover { background: rgba(255,118,118,.12); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.join-btn { border-color: rgba(63,216,224,.5); }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; color: var(--ink-2); }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; font: 400 16px var(--body); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 11px 13px; color-scheme: dark;
}
select option { background: var(--night-2); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6E85AE; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14.5px; min-height: 320px; }
input:focus, select:focus, textarea:focus { border-color: var(--aqua); outline: none; box-shadow: 0 0 0 4px rgba(63,216,224,.18); }
input[type=file] { color: var(--muted); font: 400 15px var(--body); }
input[type=file]::file-selector-button { font: 600 14px var(--body); color: #fff; background: rgba(255,255,255,.08);
  border: 1.5px solid var(--line-2); border-radius: 999px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
input[type=checkbox] { accent-color: var(--aqua); width: 17px; height: 17px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 400; margin: 8px 0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips label.chip { margin: 0; font-weight: 500; font-size: 14px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.04);
  border-radius: 999px; padding: 6px 14px; font: 500 14.5px var(--body); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--aqua); color: #fff; }
.chip.on, .chip[aria-current="true"] { background: var(--aqua); color: var(--night-0); border-color: var(--aqua); font-weight: 600;
  box-shadow: 0 0 18px rgba(63,216,224,.4); }
.errors { background: rgba(255,118,118,.12); border: 1px solid rgba(255,118,118,.4); padding: 12px 16px; border-radius: var(--r-s); margin: 12px 0; }
.ok { background: rgba(63,216,224,.12); border: 1px solid rgba(63,216,224,.4); padding: 12px 16px; border-radius: var(--r-s); margin: 0 0 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ── главная: ночная сцена ── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(760px, calc(100svh - 68px));
  display: flex; align-items: center;
  background: radial-gradient(1200px 520px at 74% 34%, rgba(63,130,220,.35), transparent 70%),
              linear-gradient(180deg, #061634 0%, #0B2A63 48%, #154E9C 78%, #1A69B0 100%); }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene > * { position: absolute; }
.stars { inset: 0; width: 100%; height: 100%; animation: fade-in 1.6s ease-out both; }
.layer { will-change: transform; transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px + var(--sy, 0) * var(--ds, 0) * 1px), 0); }

.moon { left: 52%; top: 12%; width: 92px; height: 92px; --d: -10; --ds: .35; }
.moon .orb { width: 100%; height: 100%; animation: rise 1.4s var(--ease) .35s both, float 9s ease-in-out 1.8s infinite; }
.moon .orb::before { content: ""; position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,240,255,.28), rgba(150,200,255,.08) 40%, transparent 68%); }
.moon svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(230,245,255,.6)); }
.sparkle { width: 18px; height: 18px; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; display: block; }
.sp1 { left: 61%; top: 19%; --d: -8; }
.sp2 { left: 88%; top: 44%; width: 10px; height: 10px; animation-delay: 1.1s; --d: -6; }
.sp3 { left: 46%; top: 30%; width: 12px; height: 12px; animation-delay: 2.1s; --d: -9; }

.horizon-glow { left: 0; right: 0; bottom: 70px; height: 260px;
  background: radial-gradient(60% 100% at 76% 100%, rgba(170,235,255,.32), transparent 70%); }
.clouds { left: -5%; right: -5%; bottom: 46px; height: 190px; --d: 6; }
.cloud { position: absolute; bottom: 0; filter: drop-shadow(0 -6px 22px rgba(160,225,255,.25)); }
.cloud svg { display: block; width: 100%; height: auto; }
.c1 { left: 52%; width: 420px; animation: drift 46s ease-in-out infinite alternate; }
.c2 { left: 78%; width: 360px; bottom: -14px; animation: drift 38s ease-in-out -12s infinite alternate-reverse; }
.c3 { left: 4%; width: 300px; bottom: 26px; opacity: .55; animation: drift 52s ease-in-out -20s infinite alternate; }

.lighthouse { --lw: clamp(150px, 17vw, 230px); --lr: max(5vw, calc(50% - 600px)); right: var(--lr); bottom: 64px; width: clamp(150px, 17vw, 230px); aspect-ratio: 240 / 480; --d: 4; --ds: .12; }
.lighthouse .tower { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; animation: rise 1.3s var(--ease) .1s both;
  filter: drop-shadow(0 18px 30px rgba(3,14,40,.5)); }
.lamp-glow { position: absolute; left: 50%; top: 22.9%; width: 340%; aspect-ratio: 1; translate: -50% -50%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,210,.95) 0, rgba(255,220,130,.55) 6%, rgba(255,217,112,.18) 22%, transparent 48%);
  animation: ignite 1.2s steps(1) 1s both, flare 10s ease-in-out 2.2s infinite; mix-blend-mode: screen; }
.lamp-core { animation: ignite 1.2s steps(1) 1s both; }
.beams { position: absolute; left: 50%; top: 22.9%; width: 0; height: 0; z-index: 1; animation: fade-in 1.2s ease-out 1.9s both; }
.beam {
  position: absolute; top: -140px; height: 280px; width: 165vw; right: 0; transform-origin: 100% 50%;
  background: linear-gradient(270deg, rgba(255,248,215,.95) 0, rgba(255,230,160,.55) 10%, rgba(255,217,112,.2) 42%, transparent 85%);
  clip-path: polygon(0 0, 100% 47.5%, 100% 52.5%, 0 100%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  animation: beam 10s linear 2.2s infinite; mix-blend-mode: screen;
}
.beam.b2 { animation-delay: -2.8s; }
.reflection { --lw: clamp(150px, 17vw, 230px); left: auto; right: calc(max(5vw, calc(50% - 600px)) + var(--lw) * .3); width: calc(var(--lw) * .4); bottom: 46px; height: 58px; z-index: 4; mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(255,226,140,0), rgba(255,226,140,.7) 25%, rgba(255,226,140,0));
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 8px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 8px);
  transform-origin: 50% 0; animation: shimmer 10s ease-in-out 2.2s infinite, fade-in 1s 2s both; filter: blur(.6px); }

.sea { left: 0; right: 0; bottom: -2px; height: 150px; z-index: 3; pointer-events: none; }
.sea .w { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; }
.sea .w1 { --tile: 1440px; height: 132px; background-image: var(--wave1); background-size: 1440px 132px; animation: waves 34s linear infinite; opacity: .9; }
.sea .w2 { --tile: 1100px; height: 98px; background-image: var(--wave2); background-size: 1100px 98px; animation: waves 22s linear infinite reverse; }
.sea .w3 { --tile: 900px; height: 64px; background-image: var(--wave3); background-size: 900px 64px; animation: waves 15s linear infinite; }

.hero .wrap { width: 100%; position: relative; z-index: 4; padding-top: 48px; padding-bottom: 170px; }
.hero-text { max-width: 640px; }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--lamp); font-weight: 600; font-size: 15px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,217,112,.10); border: 1px solid rgba(255,217,112,.35);
  animation: rise .9s var(--ease) .45s both; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 0 rgba(255,217,112,.7); animation: ping 2s ease-out infinite; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); margin: 18px 0 14px; line-height: 1.04;
  animation: rise 1s var(--ease) .6s both, lit 5s ease-in-out 2.2s infinite; }
.hero h1 small { display: block; font: 500 17px var(--body); color: var(--aqua-ink); margin-bottom: 10px; letter-spacing: 0; }
.hero .when { font-size: 19px; color: var(--ink-2); animation: rise 1s var(--ease) .75s both; }
.ticker { display: flex; gap: 10px; margin-top: 18px; animation: rise 1s var(--ease) .85s both; }
.ticker .u { min-width: 74px; padding: 10px 10px 8px; border-radius: 16px; text-align: center;
  background: rgba(6,22,52,.45); border: 1px solid rgba(160,220,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticker b { display: block; font: 800 clamp(26px, 3vw, 36px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; height: 1em; overflow: hidden; }
.ticker b span { display: inline-block; }
.ticker b span.tick { animation: roll .45s var(--ease); }
.ticker small { font-size: 12.5px; color: var(--muted); }
.ticker .u.fire b { color: var(--coral); }
.hero .actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; animation: rise 1s var(--ease) 1s both; }

/* мини-сцена на внутренних страницах */
.band { position: relative; height: 104px; overflow: hidden;
  background: linear-gradient(180deg, #061634, #0C2B66 70%, #11458D); }
.band .stars { animation: none; }
.sea-mini { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; }
.sea-mini .w1 { --tile: 900px; height: 64px; background-image: var(--wave2); background-size: 900px 64px; animation: waves 30s linear infinite; opacity: .7; }
.sea-mini .w2 { --tile: 700px; height: 44px; background-image: var(--wave3); background-size: 700px 44px; animation: waves 18s linear infinite reverse; }

/* ── анимации ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1) rotate(0); } 50% { opacity: .25; transform: scale(.6) rotate(45deg); } }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@keyframes waves { from { background-position-x: 0; } to { background-position-x: calc(-1 * var(--tile, 1440px)); } }
@keyframes ignite { 0% { opacity: 0; } 15% { opacity: .7; } 25% { opacity: .1; } 40% { opacity: .9; } 52% { opacity: .3; } 62%, 100% { opacity: 1; } }
/* луч: вращение линзы вокруг вертикальной оси. 25% — светит на нас, 75% — от нас (прячется за башней) */
@keyframes beam {
  0%    { transform: scaleX(1); opacity: .55; }
  12.5% { transform: scaleX(.7) scaleY(1.06); opacity: .8; }
  25%   { transform: scaleX(.02) scaleY(1.2); opacity: 1; }
  37.5% { transform: scaleX(-.7) scaleY(1.06); opacity: .8; }
  50%   { transform: scaleX(-1); opacity: .55; }
  62.5% { transform: scaleX(-.7); opacity: .3; }
  75%   { transform: scaleX(-.02); opacity: 0; }
  87.5% { transform: scaleX(.7); opacity: .3; }
  100%  { transform: scaleX(1); opacity: .55; }
}
@keyframes flare { 0%, 100% { scale: 1; opacity: .75; } 22%, 28% { scale: 1.55; opacity: 1; } 47%, 53% { scale: 1.05; opacity: .8; } 72%, 78% { scale: 1.55; opacity: 1; } }
@keyframes shimmer { 0%, 100% { opacity: .55; transform: scaleY(1); } 25%, 75% { opacity: 1; transform: scaleY(1.25); } 50% { opacity: .6; } }
@keyframes lit { 0%, 100% { text-shadow: 0 0 0 rgba(255,217,112,0), 0 2px 18px rgba(6,22,52,.6); }
  50% { text-shadow: 0 0 28px rgba(255,226,150,.38), 0 2px 18px rgba(6,22,52,.6); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,217,112,.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,217,112,0); } }
@keyframes roll { from { transform: translateY(-100%); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255,118,118,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,118,118,0); } }

/* ── фарватер (список дедлайнов) ── */
.fairway { list-style: none; padding: 0; margin: 0; position: relative; }
.fairway::before { content: ""; position: absolute; left: 111px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(rgba(63,216,224,.45) 0 6px, transparent 6px 12px); }
.fw { display: grid; grid-template-columns: 96px 30px 1fr auto; align-items: start; padding: 14px 10px 14px 0; border-radius: 14px;
  transition: background-color .2s; }
.fw:hover { background: rgba(255,255,255,.035); }
.fw-date { text-align: right; padding-right: 10px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.fw-date b { display: block; color: #fff; font: 700 17px var(--display); }
.buoy { width: 16px; height: 16px; border-radius: 50%; margin: 5px auto 0; background: var(--night-1);
  border: 3px solid var(--aqua); position: relative; z-index: 1; box-shadow: 0 0 12px rgba(63,216,224,.55); animation: bob 3.2s ease-in-out infinite; }
.fw:nth-child(2n) .buoy { animation-delay: -1.4s; }
.fw.soon .buoy { border-color: var(--lamp); background: var(--lamp); box-shadow: 0 0 16px rgba(255,217,112,.7); }
.fw.fire .buoy { border-color: var(--coral); background: var(--coral); animation: bob 3.2s ease-in-out infinite, pulse-ring 1.6s ease-out infinite; }
.fw.past .buoy { border-color: #4B6390; background: #4B6390; box-shadow: none; animation: none; }
.fw-body { padding-left: 6px; min-width: 0; }
.fw-title { font-weight: 600; font-size: 17.5px; line-height: 1.35; color: #fff; }
.fw-title a { color: #fff; text-decoration: none; }
.fw-title a:hover { color: var(--aqua-ink); text-decoration: underline; }
.fw-meta { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.fw-details { font-size: 15.5px; margin-top: 7px; color: var(--ink-2); }
.fw-details p:last-child { margin-bottom: 0; }
.fw-when { font-size: 14px; font-weight: 600; white-space: nowrap; padding-left: 12px; color: var(--aqua-ink); }
.fw.soon .fw-when { color: var(--lamp); }
.fw.fire .fw-when { color: var(--coral); }
.fw.past { opacity: .55; }
.subj-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--aqua-ink); background: rgba(63,216,224,.12);
  border: 1px solid rgba(63,216,224,.25); border-radius: 999px; padding: 1px 9px; margin-right: 7px; text-decoration: none; vertical-align: 2px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); margin: 6px 0 18px; }

/* ── страницы ── */
main { padding: 30px 0 90px; position: relative; z-index: 2; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.panel + .panel { margin-top: 18px; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 38px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { margin: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a.t { font-weight: 600; color: #fff; text-decoration: none; }
.list a.t:hover { color: var(--aqua-ink); text-decoration: underline; }
.kind { font-size: 13px; color: var(--muted); }
.empty { border: 1.5px dashed var(--line-2); border-radius: var(--r-m); padding: 22px; color: var(--muted); }
.empty .btn { margin-top: 10px; }

/* предметы */
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.subject {
  display: block; position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 20px 22px; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.subject::before { content: ""; position: absolute; inset: auto -30% 100% auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,217,112,.35), transparent 65%); transform: translate(30%, 60%); transition: transform .5s var(--ease); }
.subject:hover { transform: translateY(-3px); border-color: rgba(63,216,224,.55); color: var(--ink); box-shadow: 0 16px 40px -18px rgba(63,216,224,.55); }
.subject:hover::before { transform: translate(10%, 110%); }
.subject .e { font-size: 28px; }
.subject h3 { margin: 8px 0 4px; font-size: 17px; }
.subject .next { font-size: 14.5px; color: var(--muted); }

/* таблицы */
table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 8px 0 18px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 14px; }

/* статья */
.article { max-width: 72ch; color: var(--ink); }
.article h2 { font-size: 23px; }
.article h3 { font-size: 18.5px; }
.article li { margin: 4px 0; }
.article strong { color: #fff; }
.article blockquote { margin: 18px 0; padding: 12px 18px; background: rgba(255,217,112,.08); border: 1px solid rgba(255,217,112,.25);
  border-left: 4px solid var(--lamp); border-radius: var(--r-s); }
.article blockquote p:last-child { margin: 0; }
.article code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.article pre { background: var(--night-0); border: 1px solid var(--line); color: var(--ink); padding: 14px 16px; border-radius: var(--r-s); overflow-x: auto; }
.article details { border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 18px; margin: 12px 0 20px; background: var(--card); }
.article details[open] { padding-bottom: 8px; }
.article summary { cursor: pointer; font-weight: 600; color: var(--aqua-ink); padding: 12px 0; }
.article .katex { font-size: 1.08em; }
.article .katex-display { overflow-x: auto; overflow-y: hidden; padding: 6px 0; }
.files { list-style: none; padding: 0; display: grid; gap: 8px; }
.files a { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 11px 14px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.files a:hover { border-color: var(--aqua); color: #fff; }
.files .ext { font: 700 12px var(--display); background: var(--lamp); color: var(--night-0); border-radius: 6px; padding: 4px 7px; }

/* расписание */
.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.day.today { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua), 0 0 30px -10px rgba(63,216,224,.6); }
.day h3 { margin: 0 0 8px; font-size: 16px; }
.lesson { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.lesson .t { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.lesson b { display: block; color: #fff; }

/* календарь */
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cal { width: 100%; table-layout: fixed; margin: 0; }
.cal th { text-align: center; padding: 4px; }
.cal td { text-align: center; padding: 3px; border: 0; height: 38px; }
.cal .d { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; font-size: 14.5px; position: relative; color: var(--ink); }
.cal .out { color: #4E6592; }
.cal .is-today { box-shadow: inset 0 0 0 2px var(--lamp); font-weight: 700; }
.cal .has { background: var(--aqua); color: var(--night-0); font-weight: 700; text-decoration: none; box-shadow: 0 0 14px rgba(63,216,224,.5); }
.cal .has.fire { background: var(--coral); color: #fff; box-shadow: 0 0 14px rgba(255,118,118,.6); }
.cal .has.soon { background: var(--lamp); color: var(--night-0); box-shadow: 0 0 14px rgba(255,217,112,.6); }
.cal .has.past { background: #2C4677; color: var(--ink-2); box-shadow: none; }

/* квиз */
.quiz-stage { max-width: 700px; }
.flash { perspective: 1400px; height: 320px; cursor: pointer; margin: 18px 0; }
.flash-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,.7,.2,1.15); transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-l); display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 32px; font: 700 clamp(20px, 3vw, 28px)/1.3 var(--display); overflow: hidden; }
.face.front { color: #fff; border: 1px solid rgba(160,220,255,.25);
  background: radial-gradient(400px 220px at 80% 0%, rgba(255,217,112,.22), transparent 70%),
              radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 70%, #fff, transparent),
              radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.7), transparent),
              linear-gradient(160deg, #0C2B66, #133F8A 60%, #1A69B0); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.face.back { background: linear-gradient(160deg, #F2FEFF, #C9F4F6); color: var(--night-0); transform: rotateY(180deg);
  font-family: var(--body); font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; box-shadow: 0 30px 60px -30px rgba(63,216,224,.6); }
.face .tip { position: absolute; bottom: 16px; font: 400 13.5px var(--body); color: rgba(220,235,255,.65); }
.face.back .tip { color: #3E6A86; }
.quiz-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--lamp)); width: 0; transition: width .4s var(--ease); box-shadow: 0 0 12px rgba(63,216,224,.6); }
.options { display: grid; gap: 10px; margin: 16px 0; }
.opt { text-align: left; font: 500 17px var(--body); padding: 15px 18px; border-radius: 14px; background: var(--card);
  border: 1.5px solid var(--line-2); cursor: pointer; color: var(--ink); transition: border-color .2s, background-color .2s, transform .15s; }
.opt:hover { border-color: var(--aqua); }
.opt.right { background: rgba(63,216,224,.18); border-color: var(--aqua); color: #fff; }
.opt.wrong { background: rgba(255,118,118,.14); border-color: var(--coral); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.q-front { font: 700 clamp(20px, 3vw, 26px)/1.3 var(--display); margin: 16px 0 6px; color: #fff; }

/* вход */
.login-box { max-width: 560px; }
.login-box .btn { font-size: 17px; padding: 14px 24px; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }

/* вступить в беседу */
.join { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
  border-radius: var(--r-l); padding: 34px 40px; margin-top: 50px; border: 1px solid rgba(63,216,224,.3);
  background: radial-gradient(500px 300px at 15% 50%, rgba(255,217,112,.16), transparent 70%),
              radial-gradient(700px 400px at 100% 100%, rgba(63,216,224,.18), transparent 70%),
              linear-gradient(135deg, rgba(13,45,107,.85), rgba(16,72,140,.7)); }
.join h2 { margin-top: 0; font-size: clamp(24px, 3vw, 34px); }
.join p { color: var(--ink-2); max-width: 52ch; }
.join .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ring { position: relative; width: 240px; aspect-ratio: 1; margin: 0 auto; }
.ring img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; animation: float 7s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(63,216,224,.45); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.ring text { font: 700 11.5px var(--display); letter-spacing: .2em; fill: var(--aqua-ink); }
.ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(255,217,112,.45); animation: spin 90s linear infinite reverse; }
.join-page { text-align: center; max-width: 640px; margin: 0 auto; }
.join-page .ring { width: 300px; margin-bottom: 18px; }
.join-page p { margin-left: auto; margin-right: auto; }
.rules-list { text-align: left; display: grid; gap: 10px; padding: 0; list-style: none; margin: 24px 0; }
.rules-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 46px; position: relative; }
.rules-list li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }

/* кабинет */
.me-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.me-head .ava { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 800 30px var(--display);
  background: linear-gradient(135deg, var(--aqua), var(--royal)); color: #fff; box-shadow: 0 0 0 4px rgba(63,216,224,.18), 0 0 40px rgba(63,216,224,.35); }
.me-head h1 { margin: 0; }
.me-head .grow { flex: 1; min-width: 200px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.stat b { display: block; font: 800 28px/1.1 var(--display); color: #fff; }
.stat span { font-size: 14px; color: var(--muted); }
.app-card { display: flex; gap: 16px; align-items: center; }
.app-card img { width: 64px; height: 64px; border-radius: 16px; }

/* нижняя навигация на телефоне */
.tabbar { display: none; }
footer { border-top: 1px solid var(--line); padding: 28px 0 100px; color: var(--muted); font-size: 14.5px; position: relative; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(4,14,36,.6)); }
.foot { display: flex; gap: 18px; align-items: flex-start; }
.foot img { border-radius: 50%; flex: none; }
.foot b { color: var(--ink); }
.foot-links { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }

/* баннер установки */
.install-toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 50;
  display: flex; gap: 12px; align-items: center; width: min(520px, calc(100% - 24px)); padding: 12px 14px; border-radius: 18px;
  background: rgba(8, 28, 68, .92); border: 1px solid rgba(63,216,224,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: rise .5s var(--ease) both; }
.install-toast img { width: 44px; height: 44px; border-radius: 12px; }
.install-toast div { flex: 1; font-size: 14.5px; line-height: 1.35; }
.install-toast b { display: block; color: #fff; }
.install-toast .x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* ── спокойнее: плоские кнопки, без свечений и лишнего движения ── */
:root {
  --display: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --body: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --card: #0E2A5E; --card-hi: #12346F;
  --r-s: 4px; --r-m: 6px; --r-l: 8px;
}
body { font-size: 17px; line-height: 1.55; }
h1, h2, h3 { letter-spacing: 0; }
h1 { font-weight: 700; }
.top { background: var(--night-0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand-badge::after { display: none; }
.brand b { font-weight: 700; letter-spacing: 0; }
.nav a { border-radius: 0; padding: 8px 10px; }
.nav a:hover { background: none; text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { background: none; color: #fff; box-shadow: inset 0 -2px 0 var(--lamp); font-weight: 700; }
.btn { border-radius: 4px; transition: background-color .15s, border-color .15s; font-weight: 700; }
.btn:active { transform: none; }
.btn-lamp, .btn-lamp:hover { background: var(--lamp); box-shadow: none; transform: none; }
.btn-lamp:hover { background: #FFE38F; }
.btn-sea, .btn-sea:hover { background: var(--aqua); box-shadow: none; transform: none; }
.btn-sea:hover { background: #6AE2E8; }
.btn-ghost, .btn-glass { background: transparent; }
input:focus, select:focus, textarea:focus { box-shadow: none; }
input, select, textarea { border-radius: 4px; }
.chip { border-radius: 4px; border-width: 1px; }
.chip.on, .chip[aria-current="true"] { box-shadow: none; }
.hero-kicker { font-weight: 700; }
.hero h1 { animation: rise 1s var(--ease) .6s both; text-shadow: 0 2px 18px rgba(6,22,52,.6); font-weight: 700; }
.ticker .u { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6,22,52,.7); border-radius: 4px; }
.panel { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 6px; }
.buoy, .fw:nth-child(2n) .buoy, .fw.soon .buoy, .fw.fire .buoy { animation: none; box-shadow: none; }
.subject { transition: border-color .15s; border-radius: 6px; }
.subject::before { display: none; }
.subject:hover { transform: none; box-shadow: none; border-color: var(--aqua); }
.day { border-radius: 6px; }
.day.today { box-shadow: none; border-color: var(--lamp); }
.day h3 span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.cal .has, .cal .has.fire, .cal .has.soon { box-shadow: none; }
.ring img { animation: none; box-shadow: none; }
.ring svg, .ring::after { animation: none; }
.rules-list li { border-radius: 6px; }
.rules-list li::before { box-shadow: none; }
.me-head .ava { background: var(--royal); box-shadow: none; }
.progress i { background: var(--aqua); }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--aqua); }
.legend .dot.soon { background: var(--lamp); } .legend .dot.fire { background: var(--coral); }
.article { font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.article h2, .article h3, .article summary, .article table { font-family: var(--body); }
.article blockquote { background: none; border: 0; border-left: 3px solid var(--lamp); border-radius: 0; padding: 4px 0 4px 16px; color: var(--ink-2); }
.sched-pick { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.lang-pick { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; color: var(--ink-2); }
.lang-pick select { width: auto; padding: 6px 10px; }
.week-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 14px; }
.week-nav b { color: #fff; font-size: 18px; }
.steps { padding-left: 22px; } .steps li { margin: 6px 0; }
textarea.code { font: 13px/1.45 ui-monospace, Consolas, monospace; width: 100%; margin-top: 10px; }
.form-error { color: var(--coral); font-weight: 700; }
.hero-kicker { background: none; border: 0; padding: 0; color: var(--lamp); }
.lesson b a { color: #fff; text-decoration: none; }
.lesson b a:hover { text-decoration: underline; }

@media (min-width: 901px) { .install-toast { bottom: 24px; } }
@media (max-width: 1080px) { .join-btn { display: none; } }
@media (max-width: 900px) {
  .nav, .top-actions .add, .who-name { display: none; }
  .top .wrap { justify-content: space-between; height: 60px; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .months { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .hero { min-height: 640px; align-items: flex-start; }
  .hero .wrap { padding-top: 34px; padding-bottom: 300px; }
  .lighthouse { right: 8%; width: 138px; bottom: 40px; }
  .reflection { --lw: 138px; right: calc(8% + 41px); }
  .moon { left: auto; right: 52%; top: auto; bottom: 280px; width: 58px; height: 58px; }
  .sp1 { left: 52%; top: auto; bottom: 330px; }
  .sp3 { left: 18%; top: auto; bottom: 240px; }
  .clouds { bottom: 70px; }
  .c1 { left: 40%; width: 300px; } .c2 { left: 70%; width: 260px; } .c3 { left: -10%; width: 240px; }
  .beam { width: 120vw; height: 200px; top: -100px; }
  .join { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; gap: 18px; }
  .join p { margin-left: auto; margin-right: auto; }
  .join .actions { justify-content: center; }
  .ring { width: 190px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(6, 22, 52, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(150,205,255,.12); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { color: var(--muted); text-decoration: none; font-size: 11px; text-align: center; padding: 5px 0 3px; border-radius: 12px; display: grid; justify-items: center; gap: 2px; position: relative; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--aqua); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 26px; height: 3px; border-radius: 2px; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .fairway::before { left: 79px; }
  .fw { grid-template-columns: 66px 26px 1fr; }
  .fw-when { grid-column: 3; padding-left: 6px; margin-top: 4px; }
  .fw-date { font-size: 13px; }
  .fw-date b { font-size: 15px; }
  .ticker { gap: 7px; }
  .ticker .u { min-width: 0; flex: 1; padding: 9px 4px 7px; }
  .stat b { font-size: 22px; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .beam { transform: scaleX(.85); opacity: .5; }
  .beam.b2 { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* фарватер в узкой колонке */
aside .fairway::before { left: 67px; }
aside .fw { grid-template-columns: 56px 22px minmax(0, 1fr); padding-right: 0; }
aside .fw-date { padding-right: 8px; font-size: 13px; }
aside .fw-date b { font-size: 15px; }
aside .fw-when { grid-column: 3; padding-left: 6px; margin-top: 4px; white-space: normal; }
aside .fw-title { font-size: 16px; }

/* ── тренажёры и рейтинг ── */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tr-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; border-radius: var(--r-m);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
a.tr-card:hover { transform: translateY(-3px); border-color: var(--aqua); color: var(--ink); }
.tr-card.soon { border-style: dashed; background: transparent; }
.tr-badge { align-self: flex-start; font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px;
  background: var(--aqua); color: var(--night-0); }
.tr-badge.demo { background: var(--lamp); }
.tr-badge.soon { background: rgba(255,255,255,.1); color: var(--muted); }
.tr-kr { font-size: 13.5px; color: var(--muted); }
.tr-name { font: 700 21px/1.25 var(--display); }
.tr-desc { font-size: 15px; color: var(--ink-2); flex: 1; }
.tr-prog { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.tr-prog i { display: block; height: 100%; background: var(--aqua); }
.tr-stat { font-size: 14px; color: var(--aqua-ink); font-weight: 600; }
.lead-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lead-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.lead-list .pl { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(255,255,255,.08); }
.lead-list li:nth-child(1) .pl { background: var(--lamp); color: var(--night-0); }
.lead-list li:nth-child(2) .pl { background: #D8E2F0; color: var(--night-0); }
.lead-list li:nth-child(3) .pl { background: #E2A66B; color: var(--night-0); }
.lead-list .sc { margin-left: auto; font-weight: 700; color: var(--aqua-ink); font-variant-numeric: tabular-nums; }
.rate-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); }
.rate { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rate th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.rate td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rate tr:last-child td { border-bottom: 0; }
.rate .num { text-align: right; font-variant-numeric: tabular-nums; }
.rate tr.me td { background: rgba(63,216,224,.1); }
.rate .medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; color: var(--night-0); }
.rate .m1 { background: var(--lamp); } .rate .m2 { background: #D8E2F0; } .rate .m3 { background: #E2A66B; }
.rate .you { font-size: 12px; font-weight: 700; background: var(--aqua); color: var(--night-0); border-radius: 5px; padding: 2px 6px; }
@media (max-width: 560px) { .rate .hide-s { display: none; } .rate td, .rate th { padding: 10px 9px; } }

/* ── расписание ── */
.sch-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sch-g { font: 700 18px/1 var(--body); background: var(--aqua); color: var(--night-0); padding: 6px 10px; border-radius: 8px; }
.sch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.week-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.sch-week .day { display: flex; flex-direction: column; }
.sch-week .day.free { opacity: .7; }
.free-note { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sch-week .lesson { position: relative; grid-template-columns: 64px 1fr; padding: 11px 0 11px 12px; }
.sch-week .lesson::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 3px; background: var(--c, #A9B8CC); }
.sch-week .lesson .pn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 12px; margin-right: 6px; }
.sch-week .lesson .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.sch-week .lesson .tag { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink-2); }
.sch-week .lesson .tag.room { background: rgba(63,216,224,.12); color: var(--aqua-ink); }
.sch-week .lesson > div:last-child > span.muted { display: block; }
.sch-week .lesson.is-now { background: rgba(255,217,112,.08); border-radius: 8px; }
.s-math { --c: #7AA2FF; } .s-econ { --c: #3FD8E0; } .s-digital { --c: #B48CFF; } .s-mgmt { --c: #FFB86B; }
.s-bzhd { --c: #FF7676; } .s-eng { --c: #7EE08A; } .s-history { --c: #FFD970; } .s-pe { --c: #A9B8CC; }
.now-card { display: grid; gap: 4px; padding: 16px 20px; margin-bottom: 16px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); }
.now-card .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.now-card b { font: 700 20px/1.25 var(--display); }
.now-card .left { color: var(--lamp); font-weight: 600; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pairs div { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pairs b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.1); }
dialog.wp { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #0A1F4A; color: var(--ink); }
dialog.wp::backdrop { background: rgba(3,10,25,.7); }
.wp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.wp-head h2 { margin: 0; font-size: 20px; }
.wp-x { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.wp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; padding: 20px; }
.wp-opts { display: grid; gap: 10px; align-content: start; }
.wp-opts > label:not(.check) { font-weight: 600; font-size: 14px; color: var(--muted); margin: 6px 0 -4px; }
.wp-opts .chip { cursor: pointer; font: inherit; font-size: 14px; }
.wp-prev { display: grid; place-items: center; background: rgba(0,0,0,.25); border-radius: 12px; padding: 12px; min-height: 300px; }
.wp-prev img { max-width: 100%; max-height: 62vh; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
@media (max-width: 760px) { .wp-body { grid-template-columns: 1fr; } .wp-prev { order: -1; } .wp-prev img { max-height: 46vh; } }

/* ── главная: быстрые разделы ── */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s; min-width: 0; }
.tile:hover { transform: translateY(-3px); border-color: var(--aqua); color: var(--ink); background: var(--card-hi); }
.tile .ti { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.tile b { font: 700 16px/1.25 var(--display); }
.tile span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.tile .podium { display: grid; gap: 1px; }
.tile .podium i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-train { border-top: 3px solid var(--aqua); } .t-rate { border-top: 3px solid var(--lamp); } .t-grade { border-top: 3px solid #7EE08A; }
.t-wall { border-top: 3px solid #B48CFF; } .t-arch { border-top: 3px solid #FFB86B; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .ti { font-size: 20px; } .t-arch { grid-column: span 2; } }
.nav a { padding: 8px 9px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1240px) { .who-name { display: none; } .nav a { padding: 8px 7px; font-size: 14.5px; } }
.article { overflow-wrap: anywhere; }
.article .katex-display { overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.article details { margin: 14px 0; padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.article details > summary { cursor: pointer; font-weight: 700; color: var(--lamp); }
.article details[open] > summary { margin-bottom: 8px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .stat { padding: 12px; } .stat b { font-size: 22px; } .stat span { font-size: 12.5px; } }
.now-card[hidden], .tr-card[hidden] { display: none; }
