style.css 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. /* ============================================================
  2. Пожарная сигнализация · интерактивный курс
  3. Дизайн-система v4.0 — тёмная «диспетчерская», стекло и огонь
  4. ============================================================ */
  5. :root {
  6. --bg: #080c17;
  7. --bg-soft: #0c1222;
  8. --card: rgba(255, 255, 255, .045);
  9. --card-hi: rgba(255, 255, 255, .075);
  10. --line: rgba(158, 180, 230, .14);
  11. --line-hi: rgba(158, 190, 255, .32);
  12. --txt: #eaf0ff;
  13. --mut: #96a4c6;
  14. --acc: #ff7a45;
  15. --acc-2: #ff4d6d;
  16. --acc-3: #ffd166;
  17. --cy: #5ec8ff;
  18. --ok: #3ddc97;
  19. --bad: #ff5470;
  20. --r: 20px;
  21. --r-sm: 14px;
  22. --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  23. --shadow-sm: 0 10px 30px rgba(0, 0, 0, .28);
  24. --glow: 0 0 40px rgba(255, 122, 69, .22);
  25. --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  26. }
  27. * { box-sizing: border-box; }
  28. html { scroll-behavior: smooth; }
  29. html, body { margin: 0; min-height: 100%; }
  30. body {
  31. background:
  32. radial-gradient(1100px 700px at 82% -12%, rgba(255, 122, 69, .13), transparent 62%),
  33. radial-gradient(950px 700px at -8% 108%, rgba(94, 200, 255, .12), transparent 58%),
  34. linear-gradient(180deg, #080c17 0%, #0a1020 48%, #070b14 100%);
  35. background-attachment: fixed;
  36. color: var(--txt);
  37. font: 16px/1.55 var(--font);
  38. letter-spacing: .005em;
  39. -webkit-font-smoothing: antialiased;
  40. text-rendering: optimizeLegibility;
  41. }
  42. body::before {
  43. content: "";
  44. position: fixed;
  45. inset: 0;
  46. z-index: -2;
  47. pointer-events: none;
  48. background-image:
  49. linear-gradient(rgba(140, 170, 235, .045) 1px, transparent 1px),
  50. linear-gradient(90deg, rgba(140, 170, 235, .045) 1px, transparent 1px);
  51. background-size: 56px 56px;
  52. mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
  53. -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 76%);
  54. }
  55. body::after {
  56. content: "";
  57. position: fixed;
  58. inset: -20%;
  59. z-index: -3;
  60. pointer-events: none;
  61. background:
  62. radial-gradient(420px 420px at 18% 28%, rgba(255, 122, 69, .10), transparent 70%),
  63. radial-gradient(520px 520px at 84% 78%, rgba(94, 200, 255, .10), transparent 70%);
  64. animation: ambient 22s ease-in-out infinite alternate;
  65. }
  66. @keyframes ambient {
  67. to { transform: translate3d(30px, -24px, 0) scale(1.08); }
  68. }
  69. ::selection { background: rgba(255, 122, 69, .35); color: #fff; }
  70. ::-webkit-scrollbar { width: 10px; height: 10px; }
  71. ::-webkit-scrollbar-thumb { background: rgba(140, 160, 210, .25); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
  72. ::-webkit-scrollbar-thumb:hover { background: rgba(140, 160, 210, .4); background-clip: padding-box; }
  73. ::-webkit-scrollbar-track { background: transparent; }
  74. /* ---------- Каркас ---------- */
  75. .app {
  76. max-width: 1080px;
  77. margin: 0 auto;
  78. min-height: 100vh;
  79. min-height: 100dvh;
  80. display: flex;
  81. flex-direction: column;
  82. padding: 0 20px;
  83. }
  84. /* ---------- Шапка ---------- */
  85. .top {
  86. position: sticky;
  87. top: 0;
  88. z-index: 20;
  89. display: flex;
  90. align-items: center;
  91. gap: 18px;
  92. padding: 14px 0 18px;
  93. background: linear-gradient(180deg, rgba(8, 12, 23, .96) 0%, rgba(8, 12, 23, .82) 62%, rgba(8, 12, 23, 0) 100%);
  94. backdrop-filter: blur(16px) saturate(140%);
  95. -webkit-backdrop-filter: blur(16px) saturate(140%);
  96. }
  97. .brand {
  98. display: flex;
  99. align-items: center;
  100. gap: 11px;
  101. min-width: 0;
  102. flex: none;
  103. }
  104. .logo {
  105. width: 40px;
  106. height: 40px;
  107. border-radius: 12px;
  108. border: 1px solid rgba(255, 255, 255, .16);
  109. box-shadow: 0 0 22px rgba(255, 122, 69, .35), 0 6px 18px rgba(0, 0, 0, .35);
  110. flex: none;
  111. }
  112. .bt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  113. .bt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
  114. .bt small { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  115. .dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 80px; }
  116. .dot {
  117. flex: 1 1 0;
  118. max-width: 44px;
  119. height: 6px;
  120. min-width: 6px;
  121. padding: 0;
  122. border: 0;
  123. border-radius: 99px;
  124. background: rgba(150, 170, 215, .18);
  125. cursor: default;
  126. transition: background .3s, transform .25s, box-shadow .3s, opacity .3s;
  127. }
  128. .dot.done { background: linear-gradient(90deg, rgba(61, 220, 151, .8), rgba(94, 200, 255, .85)); }
  129. .dot.cur {
  130. background: linear-gradient(90deg, var(--acc), var(--acc-3));
  131. box-shadow: 0 0 14px rgba(255, 122, 69, .75);
  132. transform: scaleY(1.45);
  133. }
  134. .dot:not(:disabled) { cursor: pointer; }
  135. .dot:not(:disabled):hover { transform: scaleY(1.8); }
  136. .dot.done:not(:disabled):hover { box-shadow: 0 0 10px rgba(61, 220, 151, .6); }
  137. .tools { display: flex; gap: 6px; flex: none; }
  138. .icon-btn {
  139. width: 38px;
  140. height: 38px;
  141. display: grid;
  142. place-items: center;
  143. padding: 0;
  144. border-radius: 50%;
  145. border: 1px solid var(--line);
  146. background: var(--card);
  147. color: var(--txt);
  148. font-size: 16px;
  149. line-height: 1;
  150. cursor: pointer;
  151. transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  152. }
  153. .icon-btn:hover {
  154. background: rgba(94, 200, 255, .12);
  155. border-color: var(--line-hi);
  156. transform: translateY(-2px);
  157. box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  158. }
  159. .icon-btn:active { transform: translateY(0) scale(.96); }
  160. #reset:hover { transform: rotate(-200deg); }
  161. #sound:hover { transform: translateY(-2px) scale(1.06); }
  162. .top-progress {
  163. position: absolute;
  164. left: 0;
  165. right: 0;
  166. bottom: 0;
  167. height: 2px;
  168. background: rgba(255, 255, 255, .05);
  169. overflow: hidden;
  170. }
  171. .top-progress span {
  172. display: block;
  173. height: 100%;
  174. width: 0;
  175. background: linear-gradient(90deg, var(--cy), var(--acc-3), var(--acc));
  176. box-shadow: 0 0 12px rgba(255, 160, 90, .8);
  177. transition: width .45s cubic-bezier(.22, .8, .3, 1);
  178. }
  179. /* ---------- Сцена ---------- */
  180. .stage {
  181. flex: 1;
  182. padding: 10px 0 110px;
  183. animation: sceneIn .5s cubic-bezier(.22, .8, .3, 1);
  184. }
  185. @keyframes sceneIn {
  186. from { opacity: 0; transform: translateY(16px); }
  187. to { opacity: 1; transform: none; }
  188. }
  189. .stage > * { max-width: 100%; }
  190. h1 {
  191. font-size: clamp(30px, 6vw, 58px);
  192. line-height: 1.06;
  193. letter-spacing: -.025em;
  194. font-weight: 800;
  195. margin: .22em 0 .3em;
  196. }
  197. h2 {
  198. display: flex;
  199. align-items: center;
  200. gap: 12px;
  201. font-size: clamp(22px, 3.6vw, 33px);
  202. line-height: 1.18;
  203. letter-spacing: -.018em;
  204. font-weight: 750;
  205. margin: .15em 0 .4em;
  206. }
  207. h2::before {
  208. content: "";
  209. width: 6px;
  210. height: 1.15em;
  211. border-radius: 4px;
  212. background: linear-gradient(var(--acc-3), var(--acc));
  213. box-shadow: 0 0 16px rgba(255, 140, 70, .5);
  214. flex: none;
  215. }
  216. .card h2::before, .hero h2::before { display: none; }
  217. h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: .2em 0 .55em; }
  218. h4 { font-size: 16px; margin: .2em 0 .4em; }
  219. p { margin: .5em 0; }
  220. small { color: var(--mut); }
  221. b { color: var(--txt); }
  222. .lead {
  223. color: var(--mut);
  224. max-width: 74ch;
  225. margin: .3em 0 1.15em;
  226. font-size: 16.5px;
  227. line-height: 1.62;
  228. }
  229. small.lead { display: block; font-size: 13.5px; margin: 0 0 10px; }
  230. .note {
  231. color: var(--mut);
  232. font-size: 14px;
  233. line-height: 1.55;
  234. max-width: 74ch;
  235. margin: 0 0 18px;
  236. padding: 2px 0 2px 13px;
  237. border-left: 2px solid rgba(94, 200, 255, .38);
  238. }
  239. .grad {
  240. background: linear-gradient(100deg, var(--acc-3), var(--acc) 55%, var(--acc-2));
  241. -webkit-background-clip: text;
  242. background-clip: text;
  243. color: transparent;
  244. }
  245. .kicker {
  246. display: inline-flex;
  247. align-items: center;
  248. gap: 8px;
  249. font-size: 11px;
  250. font-weight: 800;
  251. letter-spacing: .16em;
  252. text-transform: uppercase;
  253. color: #ffe0b8;
  254. margin: 2px 0 8px;
  255. padding: 6px 14px;
  256. border-radius: 99px;
  257. border: 1px solid rgba(255, 209, 102, .28);
  258. background: linear-gradient(135deg, rgba(255, 209, 102, .13), rgba(255, 122, 69, .07));
  259. }
  260. .kicker::before {
  261. content: "";
  262. width: 6px;
  263. height: 6px;
  264. border-radius: 50%;
  265. background: var(--acc-3);
  266. box-shadow: 0 0 10px var(--acc-3);
  267. animation: blinkDot 2.2s ease-in-out infinite;
  268. }
  269. @keyframes blinkDot { 50% { opacity: .35; } }
  270. /* ---------- Карточки и сетки ---------- */
  271. .card {
  272. position: relative;
  273. background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
  274. border: 1px solid var(--line);
  275. border-radius: var(--r);
  276. padding: 18px;
  277. box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .055);
  278. backdrop-filter: blur(10px);
  279. -webkit-backdrop-filter: blur(10px);
  280. }
  281. .grid2 { display: grid; grid-template-columns: 1.28fr 1fr; gap: 18px; align-items: start; }
  282. .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  283. .grid3 > .card { display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
  284. .grid3 > .card > .msg { margin-top: auto; }
  285. .grid3 > .card:hover { transform: translateY(-3px); border-color: rgba(94, 200, 255, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
  286. .grid2 > .card { min-width: 0; }
  287. /* ---------- Герой ---------- */
  288. .hero {
  289. display: grid;
  290. place-items: center;
  291. text-align: center;
  292. padding: 14px 0 26px;
  293. gap: 6px;
  294. }
  295. .hero canvas {
  296. width: 100%;
  297. max-width: 500px;
  298. border-radius: var(--r);
  299. border: 1px solid var(--line);
  300. box-shadow: 0 0 70px rgba(255, 100, 40, .22), var(--shadow);
  301. margin-bottom: 14px;
  302. }
  303. .hero h1 { margin: .25em 0; }
  304. .hero .lead { margin-inline: auto; }
  305. .hero .hint { font-size: 13px; }
  306. .hero .btn.big { margin-top: 6px; }
  307. /* ---------- Кнопки ---------- */
  308. .btn {
  309. display: inline-flex;
  310. align-items: center;
  311. justify-content: center;
  312. gap: 8px;
  313. min-height: 44px;
  314. padding: 10px 20px;
  315. border-radius: 99px;
  316. border: 1px solid var(--line);
  317. background: var(--card-hi);
  318. color: var(--txt);
  319. font: inherit;
  320. font-weight: 500;
  321. cursor: pointer;
  322. transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
  323. }
  324. .btn:hover:not(:disabled) {
  325. transform: translateY(-2px);
  326. border-color: var(--line-hi);
  327. background: rgba(255, 255, 255, .09);
  328. }
  329. .btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
  330. .btn:disabled { opacity: .38; cursor: not-allowed; }
  331. .btn.primary {
  332. border-color: transparent;
  333. background: linear-gradient(135deg, #ff8a3d, #ff4d6d);
  334. color: #fff;
  335. font-weight: 650;
  336. box-shadow: 0 8px 24px rgba(255, 90, 60, .4);
  337. }
  338. .btn.primary:hover:not(:disabled) { box-shadow: 0 14px 36px rgba(255, 90, 60, .55); }
  339. .btn.big { font-size: 19px; min-height: 58px; padding: 16px 36px; animation: heroPulse 2.6s ease-in-out infinite; }
  340. @keyframes heroPulse { 50% { box-shadow: 0 8px 44px rgba(255, 90, 60, .65); } }
  341. .btn.ghost { background: transparent; }
  342. .btn.sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
  343. .btn.on { border-color: var(--acc); background: rgba(255, 122, 61, .16); color: #ffd9c9; }
  344. .btn.navbtn { white-space: nowrap; }
  345. .row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
  346. .pill {
  347. display: inline-flex;
  348. align-items: center;
  349. gap: 6px;
  350. padding: 5px 13px;
  351. border-radius: 99px;
  352. border: 1px solid rgba(94, 200, 255, .28);
  353. background: rgba(94, 200, 255, .1);
  354. color: #9bdcff;
  355. font-size: 13px;
  356. font-weight: 500;
  357. }
  358. .pill + .pill { margin-left: 4px; }
  359. /* ---------- Нижняя панель навигации ---------- */
  360. .bottom {
  361. position: sticky;
  362. bottom: 14px;
  363. z-index: 15;
  364. display: flex;
  365. align-items: center;
  366. gap: 12px;
  367. margin-top: auto;
  368. padding: 10px;
  369. border: 1px solid var(--line);
  370. border-radius: 18px;
  371. background: rgba(11, 17, 33, .93);
  372. backdrop-filter: blur(18px) saturate(150%);
  373. -webkit-backdrop-filter: blur(18px) saturate(150%);
  374. box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  375. }
  376. .hint { flex: 1; text-align: center; color: var(--mut); font-size: 13.5px; line-height: 1.4; }
  377. .hint.ok { color: var(--ok); }
  378. .hint.ok::before { content: "✔ "; }
  379. .app.first .bottom { display: none; }
  380. /* ---------- Боковые стрелки ---------- */
  381. .side-nav {
  382. position: fixed;
  383. top: 50%;
  384. z-index: 18;
  385. width: 54px;
  386. height: 54px;
  387. display: grid;
  388. place-items: center;
  389. padding: 0;
  390. border-radius: 50%;
  391. border: 1px solid var(--line);
  392. background: rgba(16, 24, 45, .74);
  393. color: var(--txt);
  394. backdrop-filter: blur(14px);
  395. -webkit-backdrop-filter: blur(14px);
  396. box-shadow: var(--shadow);
  397. cursor: pointer;
  398. transform: translateY(-50%);
  399. transition: transform .2s, opacity .2s, background .2s, border-color .2s, box-shadow .2s;
  400. }
  401. .side-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  402. .side-prev { left: calc(50% - 600px); }
  403. .side-next { right: calc(50% - 600px); }
  404. .side-nav:hover:not(:disabled) {
  405. background: rgba(255, 122, 69, .16);
  406. border-color: rgba(255, 150, 95, .55);
  407. box-shadow: 0 0 30px rgba(255, 122, 69, .28), var(--shadow);
  408. }
  409. .side-prev:hover:not(:disabled) { transform: translateY(-50%) translateX(-3px); }
  410. .side-next:hover:not(:disabled) { transform: translateY(-50%) translateX(3px); }
  411. .side-nav:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
  412. .side-nav:disabled { opacity: .18; cursor: not-allowed; box-shadow: none; }
  413. @media (max-width: 1239px) { .side-nav { display: none; } }
  414. /* ---------- Модели и графика ---------- */
  415. canvas.cv {
  416. width: 100%;
  417. height: auto;
  418. border-radius: 14px;
  419. border: 1px solid rgba(255, 255, 255, .08);
  420. background: #0a0e19;
  421. display: block;
  422. margin: 4px 0 8px;
  423. box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
  424. }
  425. .card > small + canvas.cv { margin-top: 6px; }
  426. .svg { width: 100%; height: auto; display: block; }
  427. .svg text { fill: #9fb0d0; font-size: 12px; font-family: var(--font); }
  428. .svg #beam, .svg line { stroke-linecap: round; }
  429. input[type=range] {
  430. width: 100%;
  431. height: 32px;
  432. margin: 4px 0;
  433. background: transparent;
  434. -webkit-appearance: none;
  435. appearance: none;
  436. cursor: pointer;
  437. }
  438. input[type=range]::-webkit-slider-runnable-track {
  439. height: 8px;
  440. border-radius: 99px;
  441. background: linear-gradient(90deg, #26345c, #3b4a78 60%, var(--acc));
  442. box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  443. }
  444. input[type=range]::-moz-range-track {
  445. height: 8px;
  446. border-radius: 99px;
  447. background: linear-gradient(90deg, #26345c, #3b4a78 60%, var(--acc));
  448. }
  449. input[type=range]::-webkit-slider-thumb {
  450. -webkit-appearance: none;
  451. width: 24px;
  452. height: 24px;
  453. margin-top: -8px;
  454. border-radius: 50%;
  455. background: #fff;
  456. border: 4px solid var(--acc);
  457. box-shadow: 0 0 16px rgba(255, 122, 61, .75);
  458. transition: transform .15s;
  459. }
  460. input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
  461. input[type=range]::-moz-range-thumb {
  462. width: 18px;
  463. height: 18px;
  464. border-radius: 50%;
  465. background: #fff;
  466. border: 4px solid var(--acc);
  467. box-shadow: 0 0 16px rgba(255, 122, 61, .75);
  468. }
  469. /* ---------- Индикаторы и сообщения ---------- */
  470. .lamp {
  471. display: inline-flex;
  472. align-items: center;
  473. gap: 8px;
  474. padding: 7px 13px;
  475. border-radius: 12px;
  476. background: rgba(0, 0, 0, .28);
  477. border: 1px solid var(--line);
  478. font-size: 14px;
  479. color: var(--mut);
  480. transition: color .2s, border-color .2s, background .2s;
  481. }
  482. .lamp i {
  483. width: 10px;
  484. height: 10px;
  485. border-radius: 50%;
  486. background: #36415f;
  487. flex: none;
  488. transition: background .2s, box-shadow .2s;
  489. }
  490. .lamp.on { color: var(--txt); border-color: rgba(255, 84, 112, .55); background: rgba(255, 84, 112, .1); }
  491. .lamp.on i { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
  492. .lamp.green.on { border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .1); }
  493. .lamp.green.on i { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
  494. .bar {
  495. height: 14px;
  496. border-radius: 99px;
  497. background: rgba(255, 255, 255, .09);
  498. border: 1px solid rgba(255, 255, 255, .06);
  499. position: relative;
  500. overflow: hidden;
  501. margin: 8px 0;
  502. }
  503. .bar > div {
  504. height: 100%;
  505. width: 0;
  506. border-radius: 99px;
  507. background: linear-gradient(90deg, var(--cy), var(--acc-3));
  508. box-shadow: 0 0 16px rgba(255, 209, 102, .45);
  509. transition: width .12s linear;
  510. }
  511. .bar .thr { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
  512. .msg {
  513. position: relative;
  514. padding: 11px 15px 11px 17px;
  515. border-radius: 12px;
  516. background: rgba(255, 255, 255, .045);
  517. border: 1px solid var(--line);
  518. border-left: 3px solid var(--cy);
  519. margin: 11px 0;
  520. min-height: 26px;
  521. color: #c8d3ee;
  522. animation: msgIn .3s ease;
  523. }
  524. @keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
  525. .msg.good { border-left-color: var(--ok); background: rgba(61, 220, 151, .075); color: #c6f6e2; }
  526. .msg.bad { border-left-color: var(--bad); background: rgba(255, 84, 112, .075); color: #ffd1da; }
  527. .steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
  528. .steps li { position: relative; padding-left: 24px; color: var(--mut); font-size: 14.5px; }
  529. .steps li::before {
  530. content: "";
  531. position: absolute;
  532. left: 2px;
  533. top: .58em;
  534. width: 8px;
  535. height: 8px;
  536. border-radius: 50%;
  537. background: linear-gradient(var(--acc-3), var(--acc));
  538. box-shadow: 0 0 8px rgba(255, 140, 70, .6);
  539. }
  540. .steps b { color: var(--txt); }
  541. /* ---------- Мини-тесты ---------- */
  542. .quiz { margin-top: 16px; }
  543. .opt {
  544. display: block;
  545. width: 100%;
  546. text-align: left;
  547. margin: 8px 0;
  548. padding: 13px 16px;
  549. border-radius: 14px;
  550. border: 1px solid var(--line);
  551. background: rgba(255, 255, 255, .035);
  552. color: var(--txt);
  553. font: inherit;
  554. cursor: pointer;
  555. transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  556. }
  557. .opt:hover:not(:disabled) { border-color: rgba(94, 200, 255, .6); background: rgba(94, 200, 255, .08); transform: translateX(4px); }
  558. .opt:disabled { cursor: default; opacity: .85; }
  559. .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; }
  560. .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; }
  561. @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  562. /* ---------- Алгоритм: шаги ---------- */
  563. .chips {
  564. display: flex;
  565. flex-wrap: wrap;
  566. gap: 8px;
  567. min-height: 56px;
  568. padding: 12px;
  569. border: 1px dashed rgba(158, 180, 230, .24);
  570. border-radius: 14px;
  571. background: rgba(0, 0, 0, .12);
  572. margin: 8px 0 16px;
  573. }
  574. .chip {
  575. padding: 9px 13px;
  576. border-radius: 12px;
  577. background: rgba(255, 255, 255, .06);
  578. border: 1px solid var(--line);
  579. color: var(--txt);
  580. font: inherit;
  581. font-size: 14.5px;
  582. text-align: left;
  583. cursor: pointer;
  584. transition: transform .15s, border-color .15s, background .15s;
  585. }
  586. button.chip:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
  587. .chip.ok {
  588. background: rgba(61, 220, 151, .14);
  589. border-color: rgba(61, 220, 151, .55);
  590. color: #c8f7e3;
  591. cursor: default;
  592. animation: chipIn .25s ease;
  593. }
  594. .chip.ok:disabled { opacity: 1; }
  595. @keyframes chipIn { from { opacity: 0; transform: scale(.94); } }
  596. .chip.no { animation: shake .35s; border-color: var(--bad); }
  597. /* ---------- Прогресс и результат ---------- */
  598. .prog { height: 8px; background: rgba(255, 255, 255, .09); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
  599. .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); }
  600. .score { font-size: clamp(56px, 10vw, 84px); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
  601. .rev {
  602. border-left: 3px solid var(--bad);
  603. padding: 10px 14px;
  604. margin: 10px 0;
  605. background: rgba(255, 255, 255, .035);
  606. border-radius: 10px;
  607. }
  608. .rev.g { border-color: var(--ok); background: rgba(61, 220, 151, .07); }
  609. .rev b { display: block; margin-bottom: 4px; }
  610. .rev small { display: block; margin-top: 4px; color: var(--mut); line-height: 1.45; }
  611. /* ---------- Тосты и модальные окна ---------- */
  612. .toast {
  613. position: fixed;
  614. left: 50%;
  615. bottom: 100px;
  616. z-index: 30;
  617. max-width: 92vw;
  618. padding: 11px 20px;
  619. border-radius: 99px;
  620. border: 1px solid rgba(61, 220, 151, .55);
  621. background: rgba(17, 30, 48, .96);
  622. color: #d9ffef;
  623. box-shadow: 0 16px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(61, 220, 151, .16);
  624. white-space: nowrap;
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. opacity: 0;
  628. pointer-events: none;
  629. transform: translate(-50%, 24px);
  630. transition: opacity .3s, transform .3s;
  631. }
  632. .toast.show { opacity: 1; transform: translate(-50%, 0); }
  633. .modal {
  634. position: fixed;
  635. inset: 0;
  636. z-index: 40;
  637. display: grid;
  638. place-items: center;
  639. padding: 16px;
  640. background: rgba(4, 7, 16, .72);
  641. backdrop-filter: blur(8px);
  642. -webkit-backdrop-filter: blur(8px);
  643. animation: fadeIn .22s ease;
  644. }
  645. .modal[hidden] { display: none; }
  646. @keyframes fadeIn { from { opacity: 0; } }
  647. .sheet {
  648. width: min(540px, 100%);
  649. max-height: 90vh;
  650. overflow: auto;
  651. background: #10172e;
  652. border-color: rgba(255, 255, 255, .14);
  653. border-radius: var(--r);
  654. animation: sheetIn .28s cubic-bezier(.22, .8, .3, 1);
  655. }
  656. @keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
  657. .sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  658. .sheet-h h3 { margin: 0; font-size: 19px; }
  659. .menu-list { display: grid; gap: 8px; }
  660. .menu-item {
  661. display: flex;
  662. align-items: center;
  663. gap: 12px;
  664. width: 100%;
  665. padding: 10px 14px;
  666. border-radius: 14px;
  667. border: 1px solid var(--line);
  668. background: rgba(255, 255, 255, .035);
  669. color: var(--txt);
  670. font: inherit;
  671. text-align: left;
  672. cursor: pointer;
  673. transition: border-color .15s, background .15s, transform .15s;
  674. }
  675. .menu-item:hover:not(:disabled) { border-color: var(--line-hi); background: rgba(94, 200, 255, .08); transform: translateX(3px); }
  676. .menu-item:disabled { opacity: .38; cursor: not-allowed; }
  677. .menu-item.cur { border-color: rgba(255, 122, 61, .65); background: rgba(255, 122, 61, .12); }
  678. .menu-item .num {
  679. width: 28px;
  680. height: 28px;
  681. border-radius: 50%;
  682. display: grid;
  683. place-items: center;
  684. background: rgba(255, 255, 255, .08);
  685. font-size: 12px;
  686. font-weight: 700;
  687. flex: none;
  688. }
  689. .menu-item.cur .num { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; }
  690. #confetti { position: fixed; inset: 0; z-index: 50; display: none; pointer-events: none; }
  691. /* ---------- Фокус и доступность ---------- */
  692. :focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 6px; }
  693. .dot:focus-visible { outline-offset: 5px; }
  694. button:focus-visible { border-radius: 99px; }
  695. /* ---------- Адаптив ---------- */
  696. @media (max-width: 900px) {
  697. .grid2, .grid3 { grid-template-columns: 1fr; }
  698. .grid3 > .card:hover { transform: none; }
  699. .stage { padding-bottom: 96px; }
  700. }
  701. @media (max-width: 820px) {
  702. .app { padding: 0 14px; }
  703. .top { flex-wrap: wrap; gap: 10px 12px; padding: 12px 0 16px; }
  704. .brand { flex: 1; min-width: 0; }
  705. .dots { order: 3; flex: 1 1 100%; gap: 6px; }
  706. .dot { max-width: none; }
  707. .dot.cur { transform: scaleY(1.6); }
  708. .bt b { font-size: 14px; }
  709. .bt small { font-size: 11.5px; }
  710. .bottom { gap: 8px; padding: 8px; border-radius: 16px; bottom: 10px; }
  711. .hint { font-size: 12px; }
  712. .btn.navbtn { padding: 9px 14px; font-size: 14px; }
  713. .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  714. .btn.big { width: 100%; }
  715. .toast { bottom: 92px; }
  716. }
  717. @media (max-width: 560px) {
  718. .app { padding: 0 11px; }
  719. .bt b { display: none; }
  720. .bt small { font-size: 12px; color: #b6c2df; }
  721. .logo { width: 36px; height: 36px; }
  722. .icon-btn { width: 33px; height: 33px; font-size: 14px; }
  723. .tools { gap: 4px; }
  724. .bottom { flex-wrap: nowrap; }
  725. .hint { flex: 1 1 auto; min-width: 0; }
  726. .stage { padding-bottom: 84px; }
  727. h2 { font-size: clamp(21px, 6vw, 27px); }
  728. .card { padding: 15px; border-radius: 17px; }
  729. .lead { font-size: 15.5px; }
  730. .quiz { margin-top: 12px; }
  731. .chips { padding: 10px; }
  732. }
  733. @media (max-width: 430px) {
  734. #full { display: none; }
  735. .btn.navbtn { padding: 9px 11px; font-size: 13px; }
  736. .bottom { gap: 6px; }
  737. }
  738. @media (max-width: 360px) {
  739. .icon-btn { width: 30px; height: 30px; font-size: 13px; }
  740. .brand .logo { width: 32px; height: 32px; }
  741. }
  742. @media (prefers-reduced-motion: reduce) {
  743. *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  744. }