-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
990 lines (930 loc) · 51 KB
/
Copy pathindex.html
File metadata and controls
990 lines (930 loc) · 51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GosCheck AI — AI-анализ госзакупок Казахстана</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap" rel="stylesheet" />
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #07080a;
--surface: #0f1115;
--surface2: #161a1f;
--border: #1e2328;
--accent: #00e5a0;
--accent2: #ff4d6d;
--accent3: #ffd166;
--text: #e8eaed;
--muted: #6b7280;
--font-head: 'Syne', sans-serif;
--font-mono: 'IBM Plex Mono', monospace;
--font-body: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
font-weight: 300;
line-height: 1.6;
overflow-x: hidden;
}
/* ── NAV ── */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 18px 48px;
background: rgba(7,8,10,0.85);
backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
font-family: var(--font-head);
font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
color: var(--text); white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
color: var(--muted); text-decoration: none; text-transform: uppercase;
transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-badge {
font-family: var(--font-mono); font-size: 11px;
background: rgba(0,229,160,0.1); color: var(--accent);
border: 1px solid rgba(0,229,160,0.3);
padding: 5px 12px; border-radius: 2px;
}
/* ── HERO ── */
#hero {
min-height: 100vh;
display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 120px 48px 80px;
position: relative; overflow: hidden; text-align: center;
}
.hero-grid-bg {
position: absolute; inset: 0; pointer-events: none;
background-image:
linear-gradient(rgba(0,229,160,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,229,160,0.04) 1px, transparent 1px);
background-size: 60px 60px;
mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
width: 700px; height: 400px; pointer-events: none;
background: radial-gradient(ellipse, rgba(0,229,160,0.08) 0%, transparent 70%);
}
.hero-tag {
font-family: var(--font-mono); font-size: 11px; font-weight: 500;
letter-spacing: 2px; text-transform: uppercase;
color: var(--accent); border: 1px solid rgba(0,229,160,0.3);
padding: 6px 16px; border-radius: 2px;
margin-bottom: 32px; display: inline-block;
animation: fadeUp 0.6s ease both;
}
.hero-title {
font-family: var(--font-head);
font-size: clamp(52px, 8vw, 96px);
font-weight: 800; line-height: 0.95; letter-spacing: -3px;
margin-bottom: 28px;
animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title .line2 { color: var(--accent); }
.hero-title .line3 { color: var(--muted); font-weight: 400; font-size: 0.6em; letter-spacing: -1px; }
.hero-sub {
max-width: 560px; font-size: 17px; color: var(--muted); line-height: 1.7;
margin-bottom: 48px;
animation: fadeUp 0.6s 0.2s ease both;
}
.hero-btns {
display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
background: var(--accent); color: #07080a;
font-family: var(--font-head); font-weight: 700; font-size: 14px;
letter-spacing: 0.5px; padding: 14px 32px;
border: none; cursor: pointer; border-radius: 2px;
transition: transform 0.15s, box-shadow 0.15s;
text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,160,0.3); }
.btn-ghost {
background: transparent; color: var(--text);
font-family: var(--font-head); font-weight: 600; font-size: 14px;
letter-spacing: 0.5px; padding: 14px 32px;
border: 1px solid var(--border); cursor: pointer; border-radius: 2px;
transition: border-color 0.2s, color 0.2s;
text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* hero stats */
.hero-stats {
display: flex; gap: 48px; margin-top: 80px; flex-wrap: wrap; justify-content: center;
animation: fadeUp 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num {
font-family: var(--font-head); font-size: 36px; font-weight: 800;
color: var(--accent); line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
/* ── SECTION COMMON ── */
section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
font-family: var(--font-mono); font-size: 11px; font-weight: 500;
color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
margin-bottom: 16px;
}
.section-title {
font-family: var(--font-head); font-size: clamp(32px, 5vw, 52px);
font-weight: 800; letter-spacing: -2px; line-height: 1;
margin-bottom: 20px;
}
.section-sub { font-size: 16px; color: var(--muted); max-width: 520px; }
/* ── HOW IT WORKS ── */
#how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#how > div { max-width: 1200px; margin: 0 auto; padding: 100px 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-top: 64px; }
.step {
background: var(--bg); padding: 40px 32px;
position: relative; overflow: hidden;
transition: background 0.2s;
}
.step:hover { background: var(--surface2); }
.step-num {
font-family: var(--font-head); font-size: 72px; font-weight: 800;
color: var(--border); line-height: 1; margin-bottom: 24px;
position: absolute; top: 16px; right: 20px;
}
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-text { font-size: 14px; color: var(--muted); line-height: 1.7; }
/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; margin-top: 64px; background: var(--border); }
.feature {
background: var(--bg); padding: 36px 32px;
transition: background 0.2s;
position: relative; overflow: hidden;
}
.feature::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
background: var(--accent); transform: scaleX(0); transform-origin: left;
transition: transform 0.3s;
}
.feature:hover { background: var(--surface); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
width: 44px; height: 44px; border-radius: 2px;
display: flex; align-items: center; justify-content: center;
font-size: 22px; margin-bottom: 20px;
}
.f-green { background: rgba(0,229,160,0.1); }
.f-red { background: rgba(255,77,109,0.1); }
.f-yellow { background: rgba(255,209,102,0.1); }
.f-blue { background: rgba(96,165,250,0.1); }
.f-purple { background: rgba(167,139,250,0.1); }
.f-orange { background: rgba(251,146,60,0.1); }
.feature-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-text { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* ── DEMO ── */
#demo-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#demo-section > div { max-width: 900px; margin: 0 auto; padding: 100px 48px; }
.demo-box {
background: var(--bg); border: 1px solid var(--border);
border-radius: 4px; overflow: hidden; margin-top: 48px;
}
.demo-header {
background: var(--surface2); border-bottom: 1px solid var(--border);
padding: 14px 20px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff4d6d; } .dot-yellow { background: #ffd166; } .dot-green { background: #00e5a0; }
.demo-header-title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.demo-body { padding: 32px; }
.demo-input-row { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.demo-input {
flex: 1; min-width: 200px;
background: var(--surface2); border: 1px solid var(--border);
color: var(--text); font-family: var(--font-mono); font-size: 14px;
padding: 12px 16px; border-radius: 2px; outline: none;
transition: border-color 0.2s;
}
.demo-input:focus { border-color: var(--accent); }
.demo-input::placeholder { color: var(--muted); }
.btn-analyze {
background: var(--accent); color: #07080a;
font-family: var(--font-head); font-weight: 700; font-size: 13px;
letter-spacing: 0.5px; padding: 12px 28px;
border: none; cursor: pointer; border-radius: 2px;
white-space: nowrap; transition: opacity 0.2s;
}
.btn-analyze:hover { opacity: 0.85; }
.btn-analyze:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-examples { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.demo-examples span {
font-family: var(--font-mono); color: var(--accent); cursor: pointer;
padding: 2px 8px; border: 1px solid rgba(0,229,160,0.2); border-radius: 2px; margin: 2px;
display: inline-block; transition: background 0.2s;
}
.demo-examples span:hover { background: rgba(0,229,160,0.1); }
#result-area { min-height: 200px; }
.result-loading {
display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 48px; gap: 16px; color: var(--muted); font-family: var(--font-mono); font-size: 13px;
}
.spinner {
width: 32px; height: 32px; border: 2px solid var(--border);
border-top-color: var(--accent); border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.result-card { animation: fadeUp 0.4s ease; }
.risk-row {
display: flex; align-items: center; gap: 24px; margin-bottom: 32px;
padding: 24px; background: var(--surface2); border-radius: 2px; flex-wrap: wrap;
}
.risk-circle {
width: 80px; height: 80px; border-radius: 50%;
display: flex; flex-direction: column; align-items: center; justify-content: center;
font-family: var(--font-head); font-weight: 800; flex-shrink: 0;
position: relative;
}
.risk-score-num { font-size: 26px; line-height: 1; }
.risk-score-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.risk-high { background: rgba(255,77,109,0.15); color: var(--accent2); border: 2px solid var(--accent2); }
.risk-med { background: rgba(255,209,102,0.15); color: var(--accent3); border: 2px solid var(--accent3); }
.risk-low { background: rgba(0,229,160,0.15); color: var(--accent); border: 2px solid var(--accent); }
.risk-info { flex: 1; }
.risk-tender-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.risk-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.risk-meta span { margin-right: 20px; }
.flags-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.flags { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.flag {
display: flex; align-items: flex-start; gap: 12px;
padding: 12px 16px; border-radius: 2px; font-size: 13px;
}
.flag-high { background: rgba(255,77,109,0.08); border-left: 3px solid var(--accent2); }
.flag-med { background: rgba(255,209,102,0.08); border-left: 3px solid var(--accent3); }
.flag-low { background: rgba(0,229,160,0.08); border-left: 3px solid var(--accent); }
.flag-icon { flex-shrink: 0; font-size: 16px; }
.flag-text { line-height: 1.5; }
.flag-text strong { display: block; font-weight: 500; margin-bottom: 2px; }
.flag-text small { color: var(--muted); font-size: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.metric {
background: var(--surface2); padding: 16px;
border-radius: 2px; text-align: center;
}
.metric-val { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.metric-name { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.m-accent { color: var(--accent); }
.m-red { color: var(--accent2); }
.m-yellow { color: var(--accent3); }
/* ── DASHBOARD ── */
.table-wrap { overflow-x: auto; margin-top: 48px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { border-bottom: 1px solid var(--border); }
th { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 12px 16px; text-align: left; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; cursor: pointer; }
tbody tr:hover { background: var(--surface2); }
td { padding: 14px 16px; vertical-align: middle; }
.badge {
font-family: var(--font-mono); font-size: 11px; font-weight: 500;
padding: 3px 10px; border-radius: 2px; white-space: nowrap;
}
.badge-high { background: rgba(255,77,109,0.15); color: var(--accent2); }
.badge-med { background: rgba(255,209,102,0.15); color: var(--accent3); }
.badge-low { background: rgba(0,229,160,0.15); color: var(--accent); }
.score-bar-wrap { display: flex; align-items: center; gap: 10px; }
.score-bar { height: 4px; border-radius: 2px; flex: 1; background: var(--border); min-width: 80px; }
.score-fill { height: 100%; border-radius: 2px; }
.fill-high { background: var(--accent2); }
.fill-med { background: var(--accent3); }
.fill-low { background: var(--accent); }
.score-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; min-width: 28px; text-align: right; }
td.muted { color: var(--muted); }
/* ── FOOTER ── */
footer {
border-top: 1px solid var(--border); padding: 40px 48px;
display: flex; align-items: center; justify-content: space-between; flex-wrap: gap;
gap: 16px; font-size: 12px; color: var(--muted);
}
.footer-logo { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--text); }
.footer-logo span { color: var(--accent); }
/* ── ANIMATIONS ── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── API KEY INPUT ── */
.api-key-section {
background: rgba(0,229,160,0.05); border: 1px solid rgba(0,229,160,0.2);
border-radius: 2px; padding: 16px 20px; margin-bottom: 20px; font-size: 13px;
}
.api-key-section label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.api-key-section input {
width: 100%; background: var(--surface2); border: 1px solid var(--border);
color: var(--text); font-family: var(--font-mono); font-size: 13px;
padding: 10px 14px; border-radius: 2px; outline: none;
}
.api-key-section input:focus { border-color: var(--accent); }
.api-key-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
@media (max-width: 768px) {
nav { padding: 14px 20px; }
.nav-links { display: none; }
section, #how > div, #demo-section > div { padding: 64px 20px; }
#hero { padding: 100px 20px 64px; }
footer { padding: 32px 20px; }
}
</style>
</head>
<body>
<!-- NAV -->
<nav>
<div class="nav-logo">GosCheck <span>AI</span></div>
<div class="nav-links">
<a href="#how">Как работает</a>
<a href="#features">Возможности</a>
<a href="#demo">Демо</a>
<a href="#dashboard">Дашборд</a>
</div>
<div class="nav-badge">AI Hackathon AYU 2026</div>
</nav>
<!-- HERO -->
<section id="hero" style="max-width:100%; padding-left:0; padding-right:0;">
<div class="hero-grid-bg"></div>
<div class="hero-glow"></div>
<div class="hero-tag">🇰🇿 Госзакупки Казахстана</div>
<h1 class="hero-title">
GosCheck AI<br>
<span class="line2">Выявляет коррупцию.</span><br>
<span class="line3">Автоматически.</span>
</h1>
<p class="hero-sub">
AI-инструмент анализирует тендеры на портале goszakup.gov.kz и обнаруживает признаки нарушений — завышение цен, картели, фиктивные фирмы — за секунды.
</p>
<div class="hero-btns">
<a href="#demo" class="btn-primary">Попробовать демо →</a>
<a href="#how" class="btn-ghost">Как это работает</a>
</div>
<div class="hero-stats">
<div class="stat"><div class="stat-num">6+</div><div class="stat-label">Типов нарушений</div></div>
<div class="stat"><div class="stat-num">0–100</div><div class="stat-label">Риск-скор</div></div>
<div class="stat"><div class="stat-num"><60с</div><div class="stat-label">Время анализа</div></div>
<div class="stat"><div class="stat-num">₸млрд</div><div class="stat-label">Под защитой</div></div>
</div>
</section>
<!-- HOW IT WORKS -->
<div id="how">
<div>
<div class="section-label">// процесс</div>
<h2 class="section-title">Как это работает</h2>
<p class="section-sub">Четыре шага от ID тендера до готового отчёта с доказательствами.</p>
<div class="steps">
<div class="step">
<div class="step-num">01</div>
<div class="step-icon">🔍</div>
<div class="step-title">Загрузка данных</div>
<div class="step-text">Вводишь номер тендера — система получает данные с goszakup.gov.kz: участников, цены, ТЗ, историю заказчика.</div>
</div>
<div class="step">
<div class="step-num">02</div>
<div class="step-icon">🧠</div>
<div class="step-title">Многослойный анализ</div>
<div class="step-text">Ценовые аномалии (Isolation Forest), NLP-анализ ТЗ, граф связей поставщиков, поведенческие паттерны.</div>
</div>
<div class="step">
<div class="step-num">03</div>
<div class="step-icon">⚡</div>
<div class="step-title">Риск-скор</div>
<div class="step-text">Взвешенная формула агрегирует все сигналы в единый скор 0–100. Красный — высокий риск, зелёный — норма.</div>
</div>
<div class="step">
<div class="step-num">04</div>
<div class="step-icon">📊</div>
<div class="step-title">Отчёт с доказательствами</div>
<div class="step-text">Конкретные флаги с объяснениями, визуализация аномалий, список подозрительных связей.</div>
</div>
</div>
</div>
</div>
<!-- FEATURES -->
<section id="features">
<div class="section-label">// возможности</div>
<h2 class="section-title">Что умеет GosCheck AI</h2>
<p class="section-sub">Шесть ключевых модулей выявляют разные схемы нарушений.</p>
<div class="features-grid">
<div class="feature">
<div class="feature-icon f-red">💰</div>
<div class="feature-title">Ценовые аномалии</div>
<div class="feature-text">Сравнивает предложенную цену с медианой по категории. Флагирует отклонения 5–10× от рыночной стоимости.</div>
</div>
<div class="feature">
<div class="feature-icon f-yellow">📋</div>
<div class="feature-title">Анализ ТЗ</div>
<div class="feature-text">NLP (LaBSE/Sentence Transformers) ищет «заточенные» спецификации: бренды, «только оригинал», искусственно узкие требования.</div>
</div>
<div class="feature">
<div class="feature-icon f-blue">🕸️</div>
<div class="feature-title">Граф связей</div>
<div class="feature-text">networkx строит граф заказчик-поставщик и находит картели: ротацию победителей, фиктивную конкуренцию.</div>
</div>
<div class="feature">
<div class="feature-icon f-green">🏢</div>
<div class="feature-title">Фиктивные фирмы</div>
<div class="feature-text">Проверяет возраст компании, количество сотрудников, историю участия в тендерах. Выявляет однодневки.</div>
</div>
<div class="feature">
<div class="feature-icon f-purple">🔪</div>
<div class="feature-title">Дробление лотов</div>
<div class="feature-text">Обнаруживает искусственное разбиение крупного тендера на мелкие лоты для обхода обязательного конкурса.</div>
</div>
<div class="feature">
<div class="feature-icon f-orange">📈</div>
<div class="feature-title">Поведенческие паттерны</div>
<div class="feature-text">Анализирует историю заказчика: частота «из одного источника», постоянные победители, временные аномалии.</div>
</div>
</div>
</section>
<!-- DEMO -->
<div id="demo-section">
<div id="demo">
<div class="section-label">// живое демо</div>
<h2 class="section-title">Анализ тендера</h2>
<p class="section-sub">Введи номер тендера с goszakup.gov.kz или опиши ситуацию — AI выдаст риск-скор и флаги.</p>
<div class="demo-box">
<div class="demo-header">
<div class="dot dot-red"></div>
<div class="dot dot-yellow"></div>
<div class="dot dot-green"></div>
<span class="demo-header-title">goscheck-ai / analyzer.py — terminal</span>
</div>
<div class="demo-body">
<div class="api-key-section">
<label>Anthropic API Key (опционально — для живого AI-анализа)</label>
<div style="display:flex;gap:8px;align-items:center">
<input type="password" id="api-key-input" placeholder="sk-ant-api03-..." style="flex:1;width:100%" oninput="updateApiStatus()" />
<div id="api-status" style="font-size:20px;flex-shrink:0;line-height:1">⬜</div>
</div>
<div class="api-key-note">🔒 Ключ хранится только в памяти браузера. Без ключа — умные демо-данные, работает в любом случае.</div>
</div>
<div class="demo-input-row">
<input class="demo-input" id="tender-input" placeholder="ID тендера или описание ситуации..." />
<button class="btn-analyze" id="analyze-btn" onclick="runAnalysis()">Анализировать →</button>
</div>
<div class="demo-examples">
Примеры:
<span onclick="setExample('23-3543001 — поставка компьютеров, цена 2.4M тенге за единицу, 1 участник')">💻 Компьютеры</span>
<span onclick="setExample('44-7821334 — ремонт дорог, ТЗ: бренд «КазДорСтрой» обязателен, 2 участника')">🛣️ Дороги</span>
<span onclick="setExample('11-9034211 — канцтовары 50 лотов по 98,000 тенге каждый, один поставщик')">📎 Канцтовары</span>
</div>
<div id="result-area">
<div style="text-align:center; padding: 48px 24px; color: var(--muted); font-family: var(--font-mono); font-size: 13px;">
<div style="font-size: 32px; margin-bottom: 16px;">🔎</div>
Введи ID тендера или описание для анализа
</div>
</div>
</div>
</div>
</div>
</div>
<!-- DASHBOARD -->
<section id="dashboard">
<div class="section-label">// топ нарушений</div>
<h2 class="section-title">Дашборд подозрительных тендеров</h2>
<p class="section-sub">Топ тендеров с высоким риск-скором по последним данным goszakup.gov.kz.</p>
<div class="table-wrap">
<table>
<thead>
<tr>
<th>ID тендера</th>
<th>Наименование</th>
<th>Заказчик</th>
<th>Сумма</th>
<th>Риск-скор</th>
<th>Флаги</th>
<th>Уровень</th>
</tr>
</thead>
<tbody>
<tr onclick="analyzeFromTable('23-3543001 — поставка ноутбуков по цене 2.4M тенге/шт, 1 участник, ТЗ: только Lenovo ThinkPad X1 Carbon оригинал')">
<td style="font-family:var(--font-mono);color:var(--accent)">23-3543001</td>
<td>Поставка ноутбуков (15 ед.)</td>
<td class="muted">ДССПК ЮКО</td>
<td>₸36,000,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-high" style="width:92%"></div></div>
<span class="score-num" style="color:var(--accent2)">92</span>
</div>
</td>
<td>💰 📋 🏢</td>
<td><span class="badge badge-high">ВЫСОКИЙ</span></td>
</tr>
<tr onclick="analyzeFromTable('44-7821334 — строительство дороги, ТЗ содержит фирменное название КазДорСтрой 7 раз, 2 участника из одного адреса')">
<td style="font-family:var(--font-mono);color:var(--accent)">44-7821334</td>
<td>Ремонт дорожного покрытия</td>
<td class="muted">Акимат Туркестана</td>
<td>₸184,500,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-high" style="width:88%"></div></div>
<span class="score-num" style="color:var(--accent2)">88</span>
</div>
</td>
<td>📋 🕸️ 🏢</td>
<td><span class="badge badge-high">ВЫСОКИЙ</span></td>
</tr>
<tr onclick="analyzeFromTable('11-9034211 — канцтовары разбиты на 50 лотов по 98,000 тенге, все выиграл один поставщик ИП Касымов')">
<td style="font-family:var(--font-mono);color:var(--accent)">11-9034211</td>
<td>Канцелярские товары (50 лотов)</td>
<td class="muted">Управление образования</td>
<td>₸4,900,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-high" style="width:85%"></div></div>
<span class="score-num" style="color:var(--accent2)">85</span>
</div>
</td>
<td>🔪 🕸️</td>
<td><span class="badge badge-high">ВЫСОКИЙ</span></td>
</tr>
<tr onclick="analyzeFromTable('55-2910847 — медоборудование, цена завышена в 6 раз от рыночной, 3 участника с одним директором')">
<td style="font-family:var(--font-mono);color:var(--accent)">55-2910847</td>
<td>Медицинское оборудование</td>
<td class="muted">ОКБ г. Шымкент</td>
<td>₸92,000,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-med" style="width:74%"></div></div>
<span class="score-num" style="color:var(--accent3)">74</span>
</div>
</td>
<td>💰 🕸️</td>
<td><span class="badge badge-med">СРЕДНИЙ</span></td>
</tr>
<tr onclick="analyzeFromTable('77-4456129 — охранные услуги, ООО Гарант зарегистрировано за 2 месяца до тендера, выиграло на 37% выше медианы')">
<td style="font-family:var(--font-mono);color:var(--accent)">77-4456129</td>
<td>Охранные услуги (12 мес.)</td>
<td class="muted">КГП ЖКХ</td>
<td>₸7,200,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-med" style="width:68%"></div></div>
<span class="score-num" style="color:var(--accent3)">68</span>
</div>
</td>
<td>🏢 📈</td>
<td><span class="badge badge-med">СРЕДНИЙ</span></td>
</tr>
<tr onclick="analyzeFromTable('09-1123456 — поставка мебели, 5 участников, нормальный конкурс, цена на 8% выше медианы')">
<td style="font-family:var(--font-mono);color:var(--accent)">09-1123456</td>
<td>Офисная мебель</td>
<td class="muted">Аким. района</td>
<td>₸1,800,000</td>
<td>
<div class="score-bar-wrap">
<div class="score-bar"><div class="score-fill fill-low" style="width:22%"></div></div>
<span class="score-num" style="color:var(--accent)">22</span>
</div>
</td>
<td>—</td>
<td><span class="badge badge-low">НИЗКИЙ</span></td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- FOOTER -->
<footer>
<div class="footer-logo">GosCheck <span>AI</span></div>
<div>AI Hackathon AYU 2026 · Туркестанская область · ДЭР</div>
<div>Только открытые данные · goszakup.gov.kz</div>
</footer>
<script>
// ── API Key status indicator ──
function updateApiStatus() {
const key = document.getElementById('api-key-input').value.trim();
const el = document.getElementById('api-status');
if (!el) return;
if (!key) { el.textContent = '⬜'; return; }
if (key.startsWith('sk-ant-') && key.length > 20) { el.textContent = '✅'; }
else { el.textContent = '❌'; }
}
// ── Loading steps animation ──
const LOADING_STEPS = [
'🔍 Загружаю данные тендера...',
'💰 Анализирую ценовые аномалии...',
'📋 Проверяю техническое задание...',
'🕸️ Строю граф связей участников...',
'🏢 Проверяю историю поставщика...',
'⚡ Считаю риск-скор...',
];
function showLoadingSteps(resultArea) {
let step = 0;
resultArea.innerHTML = `
<div class="result-loading">
<div class="spinner"></div>
<span id="loading-step">${LOADING_STEPS[0]}</span>
<div style="margin-top:12px;display:flex;gap:6px">
${LOADING_STEPS.map((_, i) => `<div id="step-dot-${i}" style="width:6px;height:6px;border-radius:50%;background:${i===0?'var(--accent)':'var(--border)'}"></div>`).join('')}
</div>
</div>`;
const interval = setInterval(() => {
step++;
if (step >= LOADING_STEPS.length) { clearInterval(interval); return; }
const el = document.getElementById('loading-step');
const dot = document.getElementById(`step-dot-${step}`);
const prevDot = document.getElementById(`step-dot-${step-1}`);
if (el) el.textContent = LOADING_STEPS[step];
if (dot) dot.style.background = 'var(--accent)';
if (prevDot) prevDot.style.background = 'var(--muted)';
}, 600);
return interval;
}
function setExample(text) {
document.getElementById('tender-input').value = text;
document.getElementById('tender-input').focus();
}
function analyzeFromTable(text) {
document.getElementById('tender-input').value = text;
document.getElementById('demo-section').scrollIntoView({ behavior: 'smooth' });
setTimeout(runAnalysis, 700);
}
async function runAnalysis() {
const query = document.getElementById('tender-input').value.trim();
if (!query) {
document.getElementById('tender-input').style.borderColor = 'var(--accent2)';
setTimeout(() => document.getElementById('tender-input').style.borderColor = '', 1000);
return;
}
const apiKey = document.getElementById('api-key-input').value.trim();
const btn = document.getElementById('analyze-btn');
const resultArea = document.getElementById('result-area');
btn.disabled = true;
btn.textContent = '⏳ Анализирую...';
const loadingInterval = showLoadingSteps(resultArea);
try {
let analysis;
let usedAI = false;
if (apiKey && apiKey.startsWith('sk-ant-')) {
try {
analysis = await analyzeWithClaude(query, apiKey);
usedAI = true;
} catch (e) {
// Fallback to mock on API error
clearInterval(loadingInterval);
const errMsg = e.message.includes('401') ? 'Неверный API ключ.' : `Ошибка API: ${e.message.slice(0,60)}.`;
resultArea.innerHTML = `
<div class="result-loading" style="color:var(--accent3)">
⚠️ ${errMsg} Переключаюсь на демо-данные...
</div>`;
await new Promise(r => setTimeout(r, 1200));
analysis = getMockAnalysis(query);
}
} else {
// No key — simulate delay for realism, then mock
await new Promise(r => setTimeout(r, 3800));
analysis = getMockAnalysis(query);
}
clearInterval(loadingInterval);
renderResult(analysis, usedAI);
} catch (e) {
clearInterval(loadingInterval);
resultArea.innerHTML = `<div class="result-loading" style="color:var(--accent2)">❌ Непредвиденная ошибка. Попробуй ещё раз.</div>`;
}
btn.disabled = false;
btn.textContent = 'Анализировать →';
}
async function analyzeWithClaude(query, apiKey) {
const prompt = `Ты — AI-аналитик системы GosCheck AI, анализирующий госзакупки Казахстана на предмет коррупции.
Тендер/описание от пользователя: "${query}"
Проведи детальный анализ и верни ТОЛЬКО валидный JSON без markdown-обёртки:
{
"tenderName": "краткое название тендера",
"tenderId": "ID из запроса или сгенерированный псевдо-ID",
"customer": "организация-заказчик",
"amount": "сумма (например ₸36,000,000)",
"riskScore": число 0-100,
"riskLevel": "HIGH" если >65, "MED" если 35-65, "LOW" если <35,
"flags": [
{
"severity": "HIGH" | "MED" | "LOW",
"icon": "одно эмодзи",
"title": "название нарушения (макс 6 слов)",
"description": "детальное объяснение с цифрами на русском, 2-3 предложения"
}
],
"metrics": {
"priceDelta": "отклонение цены, например +340% или -5%",
"participants": число участников (целое),
"supplierAge": "возраст компании, например 8 мес. или 4 года",
"winRate": "процент побед, например 91%"
},
"summary": "резюме 1-2 предложения с главным выводом"
}
Правила: будь точным, реалистичным, опирайся на реальные признаки коррупции в госзакупках РК. Если признаков мало — давай низкий скор.`;
const response = await fetch('https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': apiKey,
'anthropic-version': '2023-06-01',
'anthropic-dangerous-direct-browser-access': 'true'
},
body: JSON.stringify({
model: 'claude-sonnet-4-20250514',
max_tokens: 1200,
messages: [{ role: 'user', content: prompt }]
})
});
if (!response.ok) {
const err = await response.json().catch(() => ({}));
throw new Error(err.error?.message || `HTTP ${response.status}`);
}
const data = await response.json();
const raw = data.content[0].text;
// Robust JSON extraction — handles markdown fences, extra text before/after
function extractJSON(str) {
// 1. Strip ```json ... ``` or ``` ... ``` fences
let s = str.replace(/```json\s*/gi, '').replace(/```\s*/g, '').trim();
// 2. Try parsing directly
try { return JSON.parse(s); } catch(_) {}
// 3. Find first { ... } block (handles extra text around JSON)
const start = s.indexOf('{');
const end = s.lastIndexOf('}');
if (start !== -1 && end !== -1 && end > start) {
try { return JSON.parse(s.slice(start, end + 1)); } catch(_) {}
}
// 4. Nothing worked — throw
throw new Error('Не удалось распарсить ответ AI. Используем демо-данные.');
}
const analysis = extractJSON(raw);
// Validate required fields, fill defaults if missing
if (typeof analysis.riskScore !== 'number') analysis.riskScore = 50;
if (!analysis.riskLevel) analysis.riskLevel = analysis.riskScore > 65 ? 'HIGH' : analysis.riskScore > 35 ? 'MED' : 'LOW';
if (!Array.isArray(analysis.flags)) analysis.flags = [];
if (!analysis.metrics) analysis.metrics = { priceDelta: 'н/д', participants: 0, supplierAge: 'н/д', winRate: 'н/д' };
if (!analysis.tenderName) analysis.tenderName = 'Тендер';
if (!analysis.tenderId) analysis.tenderId = '—';
if (!analysis.customer) analysis.customer = '—';
if (!analysis.amount) analysis.amount = '—';
if (!analysis.summary) analysis.summary = '';
return analysis;
}
// Фиксированные моки — привязаны к ID тендера, не к ключевым словам
const MOCK_DB = {
'23-3543001': {
tenderName: 'Поставка ноутбуков для государственных нужд',
tenderId: '23-3543001', customer: 'ДССПК Туркестанской области', amount: '₸36,000,000',
riskScore: 92, riskLevel: 'HIGH',
flags: [
{ severity: 'HIGH', icon: '💰', title: 'Критическое завышение цены', description: 'Цена 2,400,000 тенге/шт превышает рыночную стоимость на 340%. Медиана по категории: ~547,000 тенге. Потенциальный ущерб: ₸27,795,000.' },
{ severity: 'HIGH', icon: '📋', title: 'ТЗ заточено под поставщика', description: 'Конкретный бренд + "только оригинал" исключает 94% потенциальных участников. Нарушение ст. 23 Закона о госзакупках РК.' },
{ severity: 'MED', icon: '🏢', title: 'Единственный участник', description: 'В тендере участвовала только 1 компания — закономерный результат заточенного ТЗ.' }
],
metrics: { priceDelta: '+340%', participants: 1, supplierAge: '3 года', winRate: '91%' },
summary: 'Признаки сговора: цена завышена в 4.4×, ТЗ под конкретного поставщика. Рекомендуется немедленная проверка ДЭР.'
},
'44-7821334': {
tenderName: 'Ремонт дорожного покрытия ул. Тауелсиздик',
tenderId: '44-7821334', customer: 'Акимат г. Туркестан', amount: '₸184,500,000',
riskScore: 88, riskLevel: 'HIGH',
flags: [
{ severity: 'HIGH', icon: '📋', title: 'Брендирование в ТЗ', description: 'Конкретное торговое наименование упоминается 7 раз. По законодательству РК запрещено без обоснования в протоколе.' },
{ severity: 'HIGH', icon: '🕸️', title: 'Связанные участники', description: '2 из 3 участников зарегистрированы по одному адресу, один директор — учредитель обеих компаний. Классический признак картеля.' }
],
metrics: { priceDelta: '+18%', participants: 3, supplierAge: '5 лет', winRate: '67%' },
summary: 'Высокий риск: брендирование в ТЗ + аффилированные участники. Рекомендуется проверка связей.'
},
'11-9034211': {
tenderName: 'Канцелярские товары — 50 лотов',
tenderId: '11-9034211', customer: 'Управление образования ЮКО', amount: '₸4,900,000',
riskScore: 85, riskLevel: 'HIGH',
flags: [
{ severity: 'HIGH', icon: '🔪', title: 'Искусственное дробление лотов', description: 'Закупка разбита на 50 лотов по 98,000 тенге — ниже порога обязательного конкурса 100,000 тенге. Классическая схема обхода.' },
{ severity: 'HIGH', icon: '🕸️', title: 'Монополизация одним поставщиком', description: 'Все 50 лотов выиграл ИП Касымов А.Б. Вероятность случайного результата — менее 0.1%.' },
{ severity: 'MED', icon: '📈', title: 'Повторяющийся паттерн', description: 'Этот же заказчик в 2024 году проводил аналогичную схему по 34 лотам.' }
],
metrics: { priceDelta: '+12%', participants: 1, supplierAge: '2 года', winRate: '98%' },
summary: 'Искусственное дробление + монополист-победитель. Высокий риск коррупционной схемы.'
},
'55-2910847': {
tenderName: 'Медицинское оборудование для ОКБ',
tenderId: '55-2910847', customer: 'ОКБ г. Шымкент', amount: '₸92,000,000',
riskScore: 74, riskLevel: 'MED',
flags: [
{ severity: 'HIGH', icon: '💰', title: 'Завышение цены в 6 раз', description: 'Стоимость оборудования превышает рыночную в 6× по данным открытых торговых площадок.' },
{ severity: 'MED', icon: '🕸️', title: 'Общий директор у 3 участников', description: 'Три компании-участника имеют одного учредителя — признак фиктивной конкуренции.' }
],
metrics: { priceDelta: '+480%', participants: 3, supplierAge: '4 года', winRate: '72%' },
summary: 'Средний риск: ценовая аномалия и аффилированные участники. Требует дополнительной проверки.'
},
'77-4456129': {
tenderName: 'Охранные услуги (12 месяцев)',
tenderId: '77-4456129', customer: 'КГП ЖКХ', amount: '₸7,200,000',
riskScore: 68, riskLevel: 'MED',
flags: [
{ severity: 'MED', icon: '🏢', title: 'Фиктивная фирма-однодневка', description: 'ООО "Гарант" зарегистрировано за 2 месяца до тендера. Уставный капитал — минимальный, штат — 1 человек.' },
{ severity: 'MED', icon: '📈', title: 'Цена выше медианы на 37%', description: 'Для охранных услуг аналогичного объёма медиана составляет 5,250,000 тенге. Победившая цена — 7,200,000 тенге.' }
],
metrics: { priceDelta: '+37%', participants: 2, supplierAge: '2 мес.', winRate: '100%' },
summary: 'Компания-победитель создана специально под тендер. Средний риск, рекомендуется проверка учредителей.'
},
'09-1123456': {
tenderName: 'Офисная мебель',
tenderId: '09-1123456', customer: 'Акимат района', amount: '₸1,800,000',
riskScore: 22, riskLevel: 'LOW',
flags: [
{ severity: 'LOW', icon: '📈', title: 'Незначительное превышение цены', description: 'Цена на 8% выше медианы — в пределах нормального отклонения.' }
],
metrics: { priceDelta: '+8%', participants: 5, supplierAge: '12 лет', winRate: '23%' },
summary: 'Нарушений не обнаружено. Здоровая конкуренция, прозрачное ТЗ.'
}
};
function getMockAnalysis(query) {
const q = query.trim();
// 1. Сначала ищем точный ID в тексте запроса
for (const id of Object.keys(MOCK_DB)) {
if (q.includes(id)) return MOCK_DB[id];
}
// 2. Если ID не найден — генерируем нейтральный отчёт с данными из запроса
const shortQuery = q.length > 50 ? q.slice(0, 50) + '...' : q;
return {
tenderName: shortQuery,
tenderId: 'DEMO-' + Math.floor(Math.random() * 90000 + 10000),
customer: 'Государственная организация',
amount: '—',
riskScore: 35,
riskLevel: 'MED',
flags: [
{ severity: 'MED', icon: '🔍', title: 'Демо-режим', description: 'Для точного анализа введите API ключ Anthropic. В демо-режиме доступны только тендеры из базы примеров: 23-3543001, 44-7821334, 11-9034211, 55-2910847, 77-4456129, 09-1123456.' }
],
metrics: { priceDelta: 'н/д', participants: 0, supplierAge: 'н/д', winRate: 'н/д' },
summary: 'Введите один из ID из таблицы ниже или добавьте API ключ для живого анализа любого тендера.'
};
}
function renderResult(data, usedAI = false) {
const scoreClass = data.riskLevel === 'HIGH' ? 'risk-high' : data.riskLevel === 'MED' ? 'risk-med' : 'risk-low';
const flagHtml = data.flags.map(f => `
<div class="flag flag-${f.severity === 'HIGH' ? 'high' : f.severity === 'MED' ? 'med' : 'low'}">
<div class="flag-icon">${f.icon}</div>
<div class="flag-text">
<strong>${f.title}</strong>
<small>${f.description}</small>
</div>
</div>`).join('');
const m = data.metrics;
const aiLabel = usedAI
? `<span style="font-family:var(--font-mono);font-size:10px;background:rgba(0,229,160,0.1);color:var(--accent);border:1px solid rgba(0,229,160,0.3);padding:2px 10px;border-radius:2px;margin-left:12px">✦ Claude AI</span>`
: `<span style="font-family:var(--font-mono);font-size:10px;color:var(--muted);margin-left:12px">демо-данные</span>`;
document.getElementById('result-area').innerHTML = `
<div class="result-card">
<div class="risk-row">
<div class="risk-circle ${scoreClass}">
<div class="risk-score-num">${data.riskScore}</div>
<div class="risk-score-label">риск</div>
</div>
<div class="risk-info">
<div class="risk-tender-name">${data.tenderName} ${aiLabel}</div>
<div class="risk-meta">
<span>🆔 ${data.tenderId}</span>
<span>🏛 ${data.customer}</span>
<span>💵 ${data.amount}</span>
</div>
<div style="margin-top:10px; font-size:13px; color:var(--muted); line-height:1.5">${data.summary}</div>
</div>
</div>
<div class="flags-title">Обнаруженные нарушения</div>
<div class="flags">${flagHtml}</div>
<div class="flags-title">Ключевые метрики</div>
<div class="metrics-grid">
<div class="metric">
<div class="metric-val ${data.riskScore > 60 ? 'm-red' : data.riskScore > 35 ? 'm-yellow' : 'm-accent'}">${m.priceDelta}</div>
<div class="metric-name">Откл. цены</div>
</div>
<div class="metric">
<div class="metric-val ${m.participants <= 1 ? 'm-red' : m.participants <= 3 ? 'm-yellow' : 'm-accent'}">${m.participants}</div>
<div class="metric-name">Участников</div>
</div>
<div class="metric">
<div class="metric-val m-accent">${m.supplierAge}</div>
<div class="metric-name">Возраст фирмы</div>
</div>
<div class="metric">
<div class="metric-val ${parseInt(m.winRate) > 70 ? 'm-red' : parseInt(m.winRate) > 40 ? 'm-yellow' : 'm-accent'}">${m.winRate}</div>
<div class="metric-name">% побед</div>
</div>
</div>
</div>`;
}
</script>
</body>
</html>