| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774 |
- /* ============================================================
- Пожарная сигнализация · интерактивный курс
- Дизайн-система v4.0 — тёмная «диспетчерская», стекло и огонь
- ============================================================ */
- :root {
- --bg: #080c17;
- --bg-soft: #0c1222;
- --card: rgba(255, 255, 255, .045);
- --card-hi: rgba(255, 255, 255, .075);
- --line: rgba(158, 180, 230, .14);
- --line-hi: rgba(158, 190, 255, .32);
- --txt: #eaf0ff;
- --mut: #96a4c6;
- --acc: #ff7a45;
- --acc-2: #ff4d6d;
- --acc-3: #ffd166;
- --cy: #5ec8ff;
- --ok: #3ddc97;
- --bad: #ff5470;
- --r: 20px;
- --r-sm: 14px;
- --shadow: 0 20px 60px rgba(0, 0, 0, .45);
- --shadow-sm: 0 10px 30px rgba(0, 0, 0, .28);
- --glow: 0 0 40px rgba(255, 122, 69, .22);
- --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
- }
- * { box-sizing: border-box; }
- html { scroll-behavior: smooth; }
- html, body { margin: 0; min-height: 100%; }
- body {
- background:
- radial-gradient(1100px 700px at 82% -12%, rgba(255, 122, 69, .13), transparent 62%),
- radial-gradient(950px 700px at -8% 108%, rgba(94, 200, 255, .12), transparent 58%),
- linear-gradient(180deg, #080c17 0%, #0a1020 48%, #070b14 100%);
- background-attachment: fixed;
- color: var(--txt);
- font: 16px/1.55 var(--font);
- letter-spacing: .005em;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
- body::before {
- content: "";
- position: fixed;
- inset: 0;
- z-index: -2;
- pointer-events: none;
- background-image:
- linear-gradient(rgba(140, 170, 235, .045) 1px, transparent 1px),
- linear-gradient(90deg, rgba(140, 170, 235, .045) 1px, transparent 1px);
- background-size: 56px 56px;
- mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
- -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
- }
- body::after {
- content: "";
- position: fixed;
- inset: -20%;
- z-index: -3;
- pointer-events: none;
- background:
- radial-gradient(420px 420px at 18% 28%, rgba(255, 122, 69, .10), transparent 70%),
- radial-gradient(520px 520px at 84% 78%, rgba(94, 200, 255, .10), transparent 70%);
- animation: ambient 22s ease-in-out infinite alternate;
- }
- @keyframes ambient {
- to { transform: translate3d(30px, -24px, 0) scale(1.08); }
- }
- ::selection { background: rgba(255, 122, 69, .35); color: #fff; }
- ::-webkit-scrollbar { width: 10px; height: 10px; }
- ::-webkit-scrollbar-thumb { background: rgba(140, 160, 210, .25); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
- ::-webkit-scrollbar-thumb:hover { background: rgba(140, 160, 210, .4); background-clip: padding-box; }
- ::-webkit-scrollbar-track { background: transparent; }
- /* ---------- Каркас ---------- */
- .app {
- max-width: 1080px;
- margin: 0 auto;
- min-height: 100vh;
- min-height: 100dvh;
- display: flex;
- flex-direction: column;
- padding: 0 20px;
- }
- /* ---------- Шапка ---------- */
- .top {
- position: sticky;
- top: 0;
- z-index: 20;
- display: flex;
- align-items: center;
- gap: 18px;
- padding: 14px 0 18px;
- background: linear-gradient(180deg, rgba(8, 12, 23, .96) 0%, rgba(8, 12, 23, .82) 62%, rgba(8, 12, 23, 0) 100%);
- backdrop-filter: blur(16px) saturate(140%);
- -webkit-backdrop-filter: blur(16px) saturate(140%);
- }
- .brand {
- display: flex;
- align-items: center;
- gap: 11px;
- min-width: 0;
- flex: none;
- }
- .logo {
- width: 40px;
- height: 40px;
- border-radius: 12px;
- border: 1px solid rgba(255, 255, 255, .16);
- box-shadow: 0 0 22px rgba(255, 122, 69, .35), 0 6px 18px rgba(0, 0, 0, .35);
- flex: none;
- }
- .bt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
- .bt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
- .bt small { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 80px; }
- .dot {
- flex: 1 1 0;
- max-width: 44px;
- height: 6px;
- min-width: 6px;
- padding: 0;
- border: 0;
- border-radius: 99px;
- background: rgba(150, 170, 215, .18);
- cursor: default;
- transition: background .3s, transform .25s, box-shadow .3s, opacity .3s;
- }
- .dot.done { background: linear-gradient(90deg, rgba(61, 220, 151, .8), rgba(94, 200, 255, .85)); }
- .dot.cur {
- background: linear-gradient(90deg, var(--acc), var(--acc-3));
- box-shadow: 0 0 14px rgba(255, 122, 69, .75);
- transform: scaleY(1.45);
- }
- .dot:not(:disabled) { cursor: pointer; }
- .dot:not(:disabled):hover { transform: scaleY(1.8); }
- .dot.done:not(:disabled):hover { box-shadow: 0 0 10px rgba(61, 220, 151, .6); }
- .tools { display: flex; gap: 6px; flex: none; }
- .icon-btn {
- width: 38px;
- height: 38px;
- display: grid;
- place-items: center;
- padding: 0;
- border-radius: 50%;
- border: 1px solid var(--line);
- background: var(--card);
- color: var(--txt);
- font-size: 16px;
- line-height: 1;
- cursor: pointer;
- transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
- }
- .icon-btn:hover {
- background: rgba(94, 200, 255, .12);
- border-color: var(--line-hi);
- transform: translateY(-2px);
- box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
- }
- .icon-btn:active { transform: translateY(0) scale(.96); }
- #reset:hover { transform: rotate(-200deg); }
- #sound:hover { transform: translateY(-2px) scale(1.06); }
- .top-progress {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- height: 2px;
- background: rgba(255, 255, 255, .05);
- overflow: hidden;
- }
- .top-progress span {
- display: block;
- height: 100%;
- width: 0;
- background: linear-gradient(90deg, var(--cy), var(--acc-3), var(--acc));
- box-shadow: 0 0 12px rgba(255, 160, 90, .8);
- transition: width .45s cubic-bezier(.22, .8, .3, 1);
- }
- /* ---------- Сцена ---------- */
- .stage {
- flex: 1;
- padding: 10px 0 110px;
- animation: sceneIn .5s cubic-bezier(.22, .8, .3, 1);
- }
- @keyframes sceneIn {
- from { opacity: 0; transform: translateY(16px); }
- to { opacity: 1; transform: none; }
- }
- .stage > * { max-width: 100%; }
- h1 {
- font-size: clamp(30px, 6vw, 58px);
- line-height: 1.06;
- letter-spacing: -.025em;
- font-weight: 800;
- margin: .22em 0 .3em;
- }
- h2 {
- display: flex;
- align-items: center;
- gap: 12px;
- font-size: clamp(22px, 3.6vw, 33px);
- line-height: 1.18;
- letter-spacing: -.018em;
- font-weight: 750;
- margin: .15em 0 .4em;
- }
- h2::before {
- content: "";
- width: 6px;
- height: 1.15em;
- border-radius: 4px;
- background: linear-gradient(var(--acc-3), var(--acc));
- box-shadow: 0 0 16px rgba(255, 140, 70, .5);
- flex: none;
- }
- .card h2::before, .hero h2::before { display: none; }
- h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: .2em 0 .55em; }
- h4 { font-size: 16px; margin: .2em 0 .4em; }
- p { margin: .5em 0; }
- small { color: var(--mut); }
- b { color: var(--txt); }
- .lead {
- color: var(--mut);
- max-width: 74ch;
- margin: .3em 0 1.15em;
- font-size: 16.5px;
- line-height: 1.62;
- }
- small.lead { display: block; font-size: 13.5px; margin: 0 0 10px; }
- .note {
- color: var(--mut);
- font-size: 14px;
- line-height: 1.55;
- max-width: 74ch;
- margin: 0 0 18px;
- padding: 2px 0 2px 13px;
- border-left: 2px solid rgba(94, 200, 255, .38);
- }
- .grad {
- background: linear-gradient(100deg, var(--acc-3), var(--acc) 55%, var(--acc-2));
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- .kicker {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- font-size: 11px;
- font-weight: 800;
- letter-spacing: .16em;
- text-transform: uppercase;
- color: #ffe0b8;
- margin: 2px 0 8px;
- padding: 6px 14px;
- border-radius: 99px;
- border: 1px solid rgba(255, 209, 102, .28);
- background: linear-gradient(135deg, rgba(255, 209, 102, .13), rgba(255, 122, 69, .07));
- }
- .kicker::before {
- content: "";
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--acc-3);
- box-shadow: 0 0 10px var(--acc-3);
- animation: blinkDot 2.2s ease-in-out infinite;
- }
- @keyframes blinkDot { 50% { opacity: .35; } }
- /* ---------- Карточки и сетки ---------- */
- .card {
- position: relative;
- background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
- border: 1px solid var(--line);
- border-radius: var(--r);
- padding: 18px;
- box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .055);
- backdrop-filter: blur(10px);
- -webkit-backdrop-filter: blur(10px);
- }
- .grid2 { display: grid; grid-template-columns: 1.28fr 1fr; gap: 18px; align-items: start; }
- .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
- .grid3 > .card { display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
- .grid3 > .card > .msg { margin-top: auto; }
- .grid3 > .card:hover { transform: translateY(-3px); border-color: rgba(94, 200, 255, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
- .grid2 > .card { min-width: 0; }
- /* ---------- Герой ---------- */
- .hero {
- display: grid;
- place-items: center;
- text-align: center;
- padding: 14px 0 26px;
- gap: 6px;
- }
- .hero canvas {
- width: 100%;
- max-width: 500px;
- border-radius: var(--r);
- border: 1px solid var(--line);
- box-shadow: 0 0 70px rgba(255, 100, 40, .22), var(--shadow);
- margin-bottom: 14px;
- }
- .hero h1 { margin: .25em 0; }
- .hero .lead { margin-inline: auto; }
- .hero .hint { font-size: 13px; }
- .hero .btn.big { margin-top: 6px; }
- /* ---------- Кнопки ---------- */
- .btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- min-height: 44px;
- padding: 10px 20px;
- border-radius: 99px;
- border: 1px solid var(--line);
- background: var(--card-hi);
- color: var(--txt);
- font: inherit;
- font-weight: 500;
- cursor: pointer;
- transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
- }
- .btn:hover:not(:disabled) {
- transform: translateY(-2px);
- border-color: var(--line-hi);
- background: rgba(255, 255, 255, .09);
- }
- .btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
- .btn:disabled { opacity: .38; cursor: not-allowed; }
- .btn.primary {
- border-color: transparent;
- background: linear-gradient(135deg, #ff8a3d, #ff4d6d);
- color: #fff;
- font-weight: 650;
- box-shadow: 0 8px 24px rgba(255, 90, 60, .4);
- }
- .btn.primary:hover:not(:disabled) { box-shadow: 0 14px 36px rgba(255, 90, 60, .55); }
- .btn.big { font-size: 19px; min-height: 58px; padding: 16px 36px; animation: heroPulse 2.6s ease-in-out infinite; }
- @keyframes heroPulse { 50% { box-shadow: 0 8px 44px rgba(255, 90, 60, .65); } }
- .btn.ghost { background: transparent; }
- .btn.sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
- .btn.on { border-color: var(--acc); background: rgba(255, 122, 61, .16); color: #ffd9c9; }
- .btn.navbtn { white-space: nowrap; }
- .row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
- .pill {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 5px 13px;
- border-radius: 99px;
- border: 1px solid rgba(94, 200, 255, .28);
- background: rgba(94, 200, 255, .1);
- color: #9bdcff;
- font-size: 13px;
- font-weight: 500;
- }
- .pill + .pill { margin-left: 4px; }
- /* ---------- Нижняя панель навигации ---------- */
- .bottom {
- position: sticky;
- bottom: 14px;
- z-index: 15;
- display: flex;
- align-items: center;
- gap: 12px;
- margin-top: auto;
- padding: 10px;
- border: 1px solid var(--line);
- border-radius: 18px;
- background: rgba(11, 17, 33, .93);
- backdrop-filter: blur(18px) saturate(150%);
- -webkit-backdrop-filter: blur(18px) saturate(150%);
- box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
- }
- .hint { flex: 1; text-align: center; color: var(--mut); font-size: 13.5px; line-height: 1.4; }
- .hint.ok { color: var(--ok); }
- .hint.ok::before { content: "✔ "; }
- .app.first .bottom { display: none; }
- /* ---------- Боковые стрелки ---------- */
- .side-nav {
- position: fixed;
- top: 50%;
- z-index: 18;
- width: 54px;
- height: 54px;
- display: grid;
- place-items: center;
- padding: 0;
- border-radius: 50%;
- border: 1px solid var(--line);
- background: rgba(16, 24, 45, .74);
- color: var(--txt);
- backdrop-filter: blur(14px);
- -webkit-backdrop-filter: blur(14px);
- box-shadow: var(--shadow);
- cursor: pointer;
- transform: translateY(-50%);
- transition: transform .2s, opacity .2s, background .2s, border-color .2s, box-shadow .2s;
- }
- .side-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
- .side-prev { left: calc(50% - 600px); }
- .side-next { right: calc(50% - 600px); }
- .side-nav:hover:not(:disabled) {
- background: rgba(255, 122, 69, .16);
- border-color: rgba(255, 150, 95, .55);
- box-shadow: 0 0 30px rgba(255, 122, 69, .28), var(--shadow);
- }
- .side-prev:hover:not(:disabled) { transform: translateY(-50%) translateX(-3px); }
- .side-next:hover:not(:disabled) { transform: translateY(-50%) translateX(3px); }
- .side-nav:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
- .side-nav:disabled { opacity: .18; cursor: not-allowed; box-shadow: none; }
- @media (max-width: 1239px) { .side-nav { display: none; } }
- /* ---------- Модели и графика ---------- */
- canvas.cv {
- width: 100%;
- height: auto;
- border-radius: 14px;
- border: 1px solid rgba(255, 255, 255, .08);
- background: #0a0e19;
- display: block;
- margin: 4px 0 8px;
- box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
- }
- .card > small + canvas.cv { margin-top: 6px; }
- .svg { width: 100%; height: auto; display: block; }
- .svg text { fill: #9fb0d0; font-size: 12px; font-family: var(--font); }
- .svg #beam, .svg line { stroke-linecap: round; }
- input[type=range] {
- width: 100%;
- height: 32px;
- margin: 4px 0;
- background: transparent;
- -webkit-appearance: none;
- appearance: none;
- cursor: pointer;
- }
- input[type=range]::-webkit-slider-runnable-track {
- height: 8px;
- border-radius: 99px;
- background: linear-gradient(90deg, #26345c, #3b4a78 60%, var(--acc));
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
- }
- input[type=range]::-moz-range-track {
- height: 8px;
- border-radius: 99px;
- background: linear-gradient(90deg, #26345c, #3b4a78 60%, var(--acc));
- }
- input[type=range]::-webkit-slider-thumb {
- -webkit-appearance: none;
- width: 24px;
- height: 24px;
- margin-top: -8px;
- border-radius: 50%;
- background: #fff;
- border: 4px solid var(--acc);
- box-shadow: 0 0 16px rgba(255, 122, 61, .75);
- transition: transform .15s;
- }
- input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
- input[type=range]::-moz-range-thumb {
- width: 18px;
- height: 18px;
- border-radius: 50%;
- background: #fff;
- border: 4px solid var(--acc);
- box-shadow: 0 0 16px rgba(255, 122, 61, .75);
- }
- /* ---------- Индикаторы и сообщения ---------- */
- .lamp {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- padding: 7px 13px;
- border-radius: 12px;
- background: rgba(0, 0, 0, .28);
- border: 1px solid var(--line);
- font-size: 14px;
- color: var(--mut);
- transition: color .2s, border-color .2s, background .2s;
- }
- .lamp i {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background: #36415f;
- flex: none;
- transition: background .2s, box-shadow .2s;
- }
- .lamp.on { color: var(--txt); border-color: rgba(255, 84, 112, .55); background: rgba(255, 84, 112, .1); }
- .lamp.on i { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
- .lamp.green.on { border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .1); }
- .lamp.green.on i { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
- .bar {
- height: 14px;
- border-radius: 99px;
- background: rgba(255, 255, 255, .09);
- border: 1px solid rgba(255, 255, 255, .06);
- position: relative;
- overflow: hidden;
- margin: 8px 0;
- }
- .bar > div {
- height: 100%;
- width: 0;
- border-radius: 99px;
- background: linear-gradient(90deg, var(--cy), var(--acc-3));
- box-shadow: 0 0 16px rgba(255, 209, 102, .45);
- transition: width .12s linear;
- }
- .bar .thr { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
- .msg {
- position: relative;
- padding: 11px 15px 11px 17px;
- border-radius: 12px;
- background: rgba(255, 255, 255, .045);
- border: 1px solid var(--line);
- border-left: 3px solid var(--cy);
- margin: 11px 0;
- min-height: 26px;
- color: #c8d3ee;
- animation: msgIn .3s ease;
- }
- @keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
- .msg.good { border-left-color: var(--ok); background: rgba(61, 220, 151, .075); color: #c6f6e2; }
- .msg.bad { border-left-color: var(--bad); background: rgba(255, 84, 112, .075); color: #ffd1da; }
- .steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
- .steps li { position: relative; padding-left: 24px; color: var(--mut); font-size: 14.5px; }
- .steps li::before {
- content: "";
- position: absolute;
- left: 2px;
- top: .58em;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: linear-gradient(var(--acc-3), var(--acc));
- box-shadow: 0 0 8px rgba(255, 140, 70, .6);
- }
- .steps b { color: var(--txt); }
- /* ---------- Мини-тесты ---------- */
- .quiz { margin-top: 16px; }
- .opt {
- display: block;
- width: 100%;
- text-align: left;
- margin: 8px 0;
- padding: 13px 16px;
- border-radius: 14px;
- border: 1px solid var(--line);
- background: rgba(255, 255, 255, .035);
- color: var(--txt);
- font: inherit;
- cursor: pointer;
- transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
- }
- .opt:hover:not(:disabled) { border-color: rgba(94, 200, 255, .6); background: rgba(94, 200, 255, .08); transform: translateX(4px); }
- .opt:disabled { cursor: default; opacity: .85; }
- .opt.right { border-color: var(--ok); background: rgba(61, 220, 151, .16); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); opacity: 1; }
- .opt.wrong { border-color: var(--bad); background: rgba(255, 84, 112, .16); box-shadow: inset 0 0 0 1px rgba(255, 84, 112, .25); animation: shake .35s; opacity: 1; }
- @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
- /* ---------- Алгоритм: шаги ---------- */
- .chips {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- min-height: 56px;
- padding: 12px;
- border: 1px dashed rgba(158, 180, 230, .24);
- border-radius: 14px;
- background: rgba(0, 0, 0, .12);
- margin: 8px 0 16px;
- }
- .chip {
- padding: 9px 13px;
- border-radius: 12px;
- background: rgba(255, 255, 255, .06);
- border: 1px solid var(--line);
- color: var(--txt);
- font: inherit;
- font-size: 14.5px;
- text-align: left;
- cursor: pointer;
- transition: transform .15s, border-color .15s, background .15s;
- }
- button.chip:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
- .chip.ok {
- background: rgba(61, 220, 151, .14);
- border-color: rgba(61, 220, 151, .55);
- color: #c8f7e3;
- cursor: default;
- animation: chipIn .25s ease;
- }
- .chip.ok:disabled { opacity: 1; }
- @keyframes chipIn { from { opacity: 0; transform: scale(.94); } }
- .chip.no { animation: shake .35s; border-color: var(--bad); }
- /* ---------- Прогресс и результат ---------- */
- .prog { height: 8px; background: rgba(255, 255, 255, .09); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
- .prog > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cy), var(--acc-3), var(--acc)); transition: width .4s cubic-bezier(.22, .8, .3, 1); }
- .score { font-size: clamp(56px, 10vw, 84px); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
- .rev {
- border-left: 3px solid var(--bad);
- padding: 10px 14px;
- margin: 10px 0;
- background: rgba(255, 255, 255, .035);
- border-radius: 10px;
- }
- .rev.g { border-color: var(--ok); background: rgba(61, 220, 151, .07); }
- .rev b { display: block; margin-bottom: 4px; }
- .rev small { display: block; margin-top: 4px; color: var(--mut); line-height: 1.45; }
- /* ---------- Тосты и модальные окна ---------- */
- .toast {
- position: fixed;
- left: 50%;
- bottom: 100px;
- z-index: 30;
- max-width: 92vw;
- padding: 11px 20px;
- border-radius: 99px;
- border: 1px solid rgba(61, 220, 151, .55);
- background: rgba(17, 30, 48, .96);
- color: #d9ffef;
- box-shadow: 0 16px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(61, 220, 151, .16);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- opacity: 0;
- pointer-events: none;
- transform: translate(-50%, 24px);
- transition: opacity .3s, transform .3s;
- }
- .toast.show { opacity: 1; transform: translate(-50%, 0); }
- .modal {
- position: fixed;
- inset: 0;
- z-index: 40;
- display: grid;
- place-items: center;
- padding: 16px;
- background: rgba(4, 7, 16, .72);
- backdrop-filter: blur(8px);
- -webkit-backdrop-filter: blur(8px);
- animation: fadeIn .22s ease;
- }
- .modal[hidden] { display: none; }
- @keyframes fadeIn { from { opacity: 0; } }
- .sheet {
- width: min(540px, 100%);
- max-height: 90vh;
- overflow: auto;
- background: #10172e;
- border-color: rgba(255, 255, 255, .14);
- border-radius: var(--r);
- animation: sheetIn .28s cubic-bezier(.22, .8, .3, 1);
- }
- @keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
- .sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
- .sheet-h h3 { margin: 0; font-size: 19px; }
- .menu-list { display: grid; gap: 8px; }
- .menu-item {
- display: flex;
- align-items: center;
- gap: 12px;
- width: 100%;
- padding: 10px 14px;
- border-radius: 14px;
- border: 1px solid var(--line);
- background: rgba(255, 255, 255, .035);
- color: var(--txt);
- font: inherit;
- text-align: left;
- cursor: pointer;
- transition: border-color .15s, background .15s, transform .15s;
- }
- .menu-item:hover:not(:disabled) { border-color: var(--line-hi); background: rgba(94, 200, 255, .08); transform: translateX(3px); }
- .menu-item:disabled { opacity: .38; cursor: not-allowed; }
- .menu-item.cur { border-color: rgba(255, 122, 61, .65); background: rgba(255, 122, 61, .12); }
- .menu-item .num {
- width: 28px;
- height: 28px;
- border-radius: 50%;
- display: grid;
- place-items: center;
- background: rgba(255, 255, 255, .08);
- font-size: 12px;
- font-weight: 700;
- flex: none;
- }
- .menu-item.cur .num { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; }
- #confetti { position: fixed; inset: 0; z-index: 50; display: none; pointer-events: none; }
- /* ---------- Фокус и доступность ---------- */
- :focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 6px; }
- .dot:focus-visible { outline-offset: 5px; }
- button:focus-visible { border-radius: 99px; }
- /* ---------- Адаптив ---------- */
- @media (max-width: 900px) {
- .grid2, .grid3 { grid-template-columns: 1fr; }
- .grid3 > .card:hover { transform: none; }
- .stage { padding-bottom: 96px; }
- }
- @media (max-width: 820px) {
- .app { padding: 0 14px; }
- .top { flex-wrap: wrap; gap: 10px 12px; padding: 12px 0 16px; }
- .brand { flex: 1; min-width: 0; }
- .dots { order: 3; flex: 1 1 100%; gap: 6px; }
- .dot { max-width: none; }
- .dot.cur { transform: scaleY(1.6); }
- .bt b { font-size: 14px; }
- .bt small { font-size: 11.5px; }
- .bottom { gap: 8px; padding: 8px; border-radius: 16px; bottom: 10px; }
- .hint { font-size: 12px; }
- .btn.navbtn { padding: 9px 14px; font-size: 14px; }
- .hero h1 { font-size: clamp(28px, 8vw, 38px); }
- .btn.big { width: 100%; }
- .toast { bottom: 92px; }
- }
- @media (max-width: 560px) {
- .app { padding: 0 11px; }
- .bt b { display: none; }
- .bt small { font-size: 12px; color: #b6c2df; }
- .logo { width: 36px; height: 36px; }
- .icon-btn { width: 33px; height: 33px; font-size: 14px; }
- .tools { gap: 4px; }
- .bottom { flex-wrap: nowrap; }
- .hint { flex: 1 1 auto; min-width: 0; }
- .stage { padding-bottom: 84px; }
- h2 { font-size: clamp(21px, 6vw, 27px); }
- .card { padding: 15px; border-radius: 17px; }
- .lead { font-size: 15.5px; }
- .quiz { margin-top: 12px; }
- .chips { padding: 10px; }
- }
- @media (max-width: 430px) {
- #full { display: none; }
- .btn.navbtn { padding: 9px 11px; font-size: 13px; }
- .bottom { gap: 6px; }
- }
- @media (max-width: 360px) {
- .icon-btn { width: 30px; height: 30px; font-size: 13px; }
- .brand .logo { width: 32px; height: 32px; }
- }
- @media (prefers-reduced-motion: reduce) {
- *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
- }
|