andrewsoftt commited on
Commit
be15ae0
·
verified ·
1 Parent(s): ba02611

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +969 -19
index.html CHANGED
@@ -1,19 +1,969 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ru">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Harmony | Онлайн Психологическая Платформа</title>
7
+
8
+ <!-- Google Fonts: Manrope (Headings) and Inter (Text) -->
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Manrope:wght@400;600;700;800&display=swap" rel="stylesheet">
12
+
13
+ <!-- Icons: FontAwesome for UI elements -->
14
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
15
+
16
+ <style>
17
+ :root {
18
+ /* Palette: Warm SPA Vibe */
19
+ --bg-main: #F5F0E8; /* Warm Beige */
20
+ --bg-secondary: #FDF8F3; /* Cream */
21
+ --accent-primary: #E8B4A0;/* Warm Peach */
22
+ --accent-secondary: #C9B8D9;/* Lavender */
23
+ --text-main: #3D3229; /* Dark Brown */
24
+ --text-secondary: #7A7268;/* Soft Gray */
25
+ --success: #A8D5C2; /* Mint */
26
+ --coral: #E8A090; /* Coral */
27
+ --white: #FFFFFF;
28
+
29
+ /* Spacing & Radius */
30
+ --radius-lg: 32px;
31
+ --radius-md: 24px;
32
+ --radius-sm: 16px;
33
+ --shadow-soft: 0 10px 30px -5px rgba(61, 50, 41, 0.12);
34
+ --shadow-hover: 0 20px 40px -5px rgba(61, 50, 41, 0.15);
35
+ }
36
+
37
+ * {
38
+ box-sizing: border-box;
39
+ margin: 0;
40
+ padding: 0;
41
+ }
42
+
43
+ body {
44
+ font-family: 'Inter', sans-serif;
45
+ color: var(--text-main);
46
+ background-color: var(--bg-main);
47
+ line-height: 1.6;
48
+ overflow-x: hidden;
49
+ }
50
+
51
+ h1, h2, h3, h4, h5, h6 {
52
+ font-family: 'Manrope', sans-serif;
53
+ font-weight: 700;
54
+ color: var(--text-main);
55
+ }
56
+
57
+ a { text-decoration: none; color: inherit; transition: 0.3s; }
58
+ ul { list-style: none; }
59
+ button { cursor: pointer; font-family: 'Manrope', sans-serif; }
60
+
61
+ /* --- Navigation --- */
62
+ nav {
63
+ position: fixed;
64
+ top: 0;
65
+ width: 100%;
66
+ padding: 20px 5%;
67
+ display: flex;
68
+ justify-content: space-between;
69
+ align-items: center;
70
+ z-index: 1000;
71
+ transition: background 0.4s ease;
72
+ background: transparent;
73
+ }
74
+
75
+ nav.scrolled {
76
+ background: rgba(245, 240, 232, 0.9);
77
+ backdrop-filter: blur(10px);
78
+ box-shadow: 0 2px 10px rgba(0,0,0,0.05);
79
+ }
80
+
81
+ .logo {
82
+ font-size: 1.8rem;
83
+ font-weight: 800;
84
+ color: var(--text-main);
85
+ display: flex;
86
+ align-items: center;
87
+ gap: 10px;
88
+ }
89
+
90
+ .logo i { color: var(--accent-primary); }
91
+
92
+ .nav-links {
93
+ display: flex;
94
+ gap: 30px;
95
+ }
96
+
97
+ .nav-links a {
98
+ font-weight: 600;
99
+ color: var(--text-main);
100
+ font-size: 1rem;
101
+ }
102
+
103
+ .nav-links a:hover { color: var(--accent-primary); }
104
+
105
+ .btn-book {
106
+ background: var(--accent-primary);
107
+ color: var(--white);
108
+ padding: 12px 32px;
109
+ border-radius: 50px;
110
+ font-weight: 700;
111
+ box-shadow: 0 4px 15px rgba(232, 180, 160, 0.4);
112
+ transition: all 0.3s ease;
113
+ }
114
+
115
+ .btn-book:hover {
116
+ transform: translateY(-2px);
117
+ box-shadow: 0 8px 20px rgba(232, 180, 160, 0.6);
118
+ background: #d4a08a;
119
+ }
120
+
121
+ .mobile-toggle {
122
+ display: none;
123
+ font-size: 1.5rem;
124
+ color: var(--text-main);
125
+ }
126
+
127
+ /* --- Hero Section --- */
128
+ .hero {
129
+ position: relative;
130
+ height: 100vh;
131
+ display: flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ text-align: center;
135
+ padding: 0 20px;
136
+ overflow: hidden;
137
+ }
138
+
139
+ /* Simulated Video Background with CSS Animation */
140
+ .hero-bg {
141
+ position: absolute;
142
+ top: 0; left: 0; width: 100%; height: 100%;
143
+ z-index: -1;
144
+ background: linear-gradient(135deg, #F5F0E8 0%, #FDF8F3 50%, #E8B4A0 100%);
145
+ overflow: hidden;
146
+ }
147
+
148
+ .orb {
149
+ position: absolute;
150
+ border-radius: 50%;
151
+ filter: blur(60px);
152
+ opacity: 0.6;
153
+ animation: float 10s infinite ease-in-out;
154
+ }
155
+ .orb-1 { width: 400px; height: 400px; background: var(--accent-secondary); top: 10%; left: 10%; animation-delay: 0s; }
156
+ .orb-2 { width: 600px; height: 600px; background: var(--accent-primary); bottom: 10%; right: 10%; animation-delay: 5s; }
157
+ .orb-3 { width: 300px; height: 300px; background: var(--success); top: 40%; right: 30%; animation-delay: 2s; }
158
+
159
+ @keyframes float {
160
+ 0% { transform: translate(0, 0); }
161
+ 50% { transform: translate(30px, 50px); }
162
+ 100% { transform: translate(0, 0); }
163
+ }
164
+
165
+ .hero-content {
166
+ max-width: 800px;
167
+ animation: fadeInUp 1s ease-out;
168
+ }
169
+
170
+ .hero h1 {
171
+ font-size: 4rem;
172
+ line-height: 1.1;
173
+ margin-bottom: 20px;
174
+ color: var(--text-main);
175
+ }
176
+
177
+ .hero p {
178
+ font-size: 1.25rem;
179
+ color: var(--text-secondary);
180
+ margin-bottom: 40px;
181
+ }
182
+
183
+ .hero-actions {
184
+ display: flex;
185
+ gap: 20px;
186
+ justify-content: center;
187
+ }
188
+
189
+ .btn-alarm {
190
+ background: var(--coral);
191
+ color: white;
192
+ padding: 15px 30px;
193
+ border-radius: 50px;
194
+ font-weight: 700;
195
+ display: flex;
196
+ align-items: center;
197
+ gap: 10px;
198
+ border: 2px solid var(--white);
199
+ box-shadow: 0 0 0 4px rgba(232, 160, 144, 0.3);
200
+ animation: pulse 2s infinite;
201
+ }
202
+
203
+ @keyframes pulse {
204
+ 0% { box-shadow: 0 0 0 0 rgba(232, 160, 144, 0.7); }
205
+ 70% { box-shadow: 0 0 0 20px rgba(232, 160, 144, 0); }
206
+ 100% { box-shadow: 0 0 0 0 rgba(232, 160, 144, 0); }
207
+ }
208
+
209
+ /* --- Specializations Section --- */
210
+ .section {
211
+ padding: 100px 5%;
212
+ }
213
+
214
+ .section-header {
215
+ text-align: center;
216
+ margin-bottom: 60px;
217
+ }
218
+ .section-header h2 { font-size: 3rem; margin-bottom: 15px; }
219
+ .section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
220
+
221
+ .specializations-grid {
222
+ display: grid;
223
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
224
+ gap: 30px;
225
+ }
226
+
227
+ .spec-card {
228
+ background: var(--white);
229
+ border-radius: var(--radius-lg);
230
+ padding: 40px;
231
+ box-shadow: var(--shadow-soft);
232
+ transition: transform 0.4s ease, box-shadow 0.4s ease;
233
+ position: relative;
234
+ overflow: hidden;
235
+ }
236
+
237
+ .spec-card:hover {
238
+ transform: translateY(-10px);
239
+ box-shadow: var(--shadow-hover);
240
+ }
241
+
242
+ .spec-icon {
243
+ width: 70px;
244
+ height: 70px;
245
+ background: var(--bg-secondary);
246
+ border-radius: 50%;
247
+ display: flex;
248
+ align-items: center;
249
+ justify-content: center;
250
+ font-size: 2rem;
251
+ color: var(--accent-secondary);
252
+ margin-bottom: 25px;
253
+ }
254
+
255
+ .spec-title { font-size: 1.5rem; margin-bottom: 10px; }
256
+ .spec-price { font-size: 1.2rem; font-weight: 800; color: var(--accent-primary); margin-bottom: 15px; }
257
+ .spec-desc { color: var(--text-secondary); margin-bottom: 25px; }
258
+
259
+ .btn-outline {
260
+ border: 2px solid var(--accent-primary);
261
+ color: var(--accent-primary);
262
+ padding: 10px 25px;
263
+ border-radius: 50px;
264
+ font-weight: 700;
265
+ width: 100%;
266
+ background: transparent;
267
+ transition: 0.3s;
268
+ }
269
+
270
+ .btn-outline:hover { background: var(--accent-primary); color: var(--white); }
271
+
272
+ /* --- Calendar Section (The Core) --- */
273
+ .calendar-section {
274
+ background: var(--bg-secondary);
275
+ }
276
+
277
+ .calendar-container {
278
+ max-width: 900px;
279
+ margin: 0 auto;
280
+ background: var(--white);
281
+ border-radius: var(--radius-lg);
282
+ box-shadow: var(--shadow-soft);
283
+ overflow: hidden;
284
+ display: flex;
285
+ flex-direction: column;
286
+ }
287
+
288
+ .calendar-header {
289
+ padding: 30px;
290
+ display: flex;
291
+ justify-content: space-between;
292
+ align-items: center;
293
+ border-bottom: 1px solid rgba(0,0,0,0.05);
294
+ }
295
+
296
+ .calendar-title { font-size: 1.5rem; }
297
+ .calendar-nav { display: flex; gap: 20px; }
298
+ .nav-btn { background: none; border: none; font-size: 1.2rem; color: var(--text-secondary); }
299
+
300
+ .calendar-grid {
301
+ display: grid;
302
+ grid-template-columns: repeat(7, 1fr);
303
+ padding: 20px;
304
+ gap: 10px;
305
+ }
306
+
307
+ .day-name {
308
+ text-align: center;
309
+ font-weight: 700;
310
+ color: var(--text-secondary);
311
+ padding-bottom: 10px;
312
+ font-size: 0.9rem;
313
+ text-transform: uppercase;
314
+ }
315
+
316
+ .day {
317
+ height: 80px;
318
+ display: flex;
319
+ flex-direction: column;
320
+ align-items: center;
321
+ justify-content: center;
322
+ border-radius: 12px;
323
+ cursor: pointer;
324
+ transition: 0.2s;
325
+ position: relative;
326
+ }
327
+
328
+ .day:hover:not(.empty) { background-color: var(--bg-secondary); }
329
+ .day.empty { cursor: default; }
330
+ .day.today { border: 2px solid var(--accent-primary); color: var(--accent-primary); font-weight: 700; }
331
+ .day.selected { background-color: var(--accent-primary); color: var(--white); }
332
+ .day.booked { color: #cfcfcf; cursor: not-allowed; }
333
+
334
+ .time-slot {
335
+ margin-top: 5px;
336
+ font-size: 0.75rem;
337
+ color: var(--text-secondary);
338
+ }
339
+
340
+ /* --- Modal / Booking Form --- */
341
+ .modal-overlay {
342
+ position: fixed;
343
+ top: 0; left: 0; width: 100%; height: 100%;
344
+ background: rgba(61, 50, 41, 0.5);
345
+ z-index: 2000;
346
+ display: none;
347
+ align-items: center;
348
+ justify-content: center;
349
+ backdrop-filter: blur(5px);
350
+ }
351
+
352
+ .modal {
353
+ background: var(--white);
354
+ width: 90%;
355
+ max-width: 500px;
356
+ border-radius: var(--radius-lg);
357
+ padding: 40px;
358
+ box-shadow: var(--shadow-hover);
359
+ animation: slideUp 0.4s ease;
360
+ max-height: 90vh;
361
+ overflow-y: auto;
362
+ }
363
+
364
+ @keyframes slideUp {
365
+ from { transform: translateY(50px); opacity: 0; }
366
+ to { transform: translateY(0); opacity: 1; }
367
+ }
368
+
369
+ .modal-header { display: flex; justify-content: space-between; margin-bottom: 30px; }
370
+ .close-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-secondary); }
371
+
372
+ .form-group { margin-bottom: 20px; }
373
+ .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
374
+ .form-input, .form-select {
375
+ width: 100%;
376
+ padding: 15px;
377
+ border: 1px solid #ddd;
378
+ border-radius: 12px;
379
+ font-family: 'Inter', sans-serif;
380
+ font-size: 1rem;
381
+ transition: 0.3s;
382
+ }
383
+ .form-input:focus, .form-select:focus { border-color: var(--accent-primary); outline: none; }
384
+
385
+ .payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
386
+ .payment-option {
387
+ padding: 15px;
388
+ border: 2px solid #eee;
389
+ border-radius: 12px;
390
+ text-align: center;
391
+ cursor: pointer;
392
+ transition: 0.3s;
393
+ }
394
+ .payment-option.active { border-color: var(--accent-primary); background: rgba(232, 180, 160, 0.1); }
395
+
396
+ .total-price {
397
+ font-size: 1.5rem;
398
+ font-weight: 800;
399
+ text-align: right;
400
+ color: var(--accent-primary);
401
+ margin: 20px 0;
402
+ }
403
+
404
+ .btn-confirm {
405
+ width: 100%;
406
+ padding: 18px;
407
+ background: var(--text-main);
408
+ color: var(--white);
409
+ border: none;
410
+ border-radius: 12px;
411
+ font-size: 1.1rem;
412
+ font-weight: 700;
413
+ transition: 0.3s;
414
+ }
415
+ .btn-confirm:hover { background: black; }
416
+
417
+ /* --- Footer --- */
418
+ footer {
419
+ background: var(--text-main);
420
+ color: var(--bg-main);
421
+ padding: 60px 5% 30px;
422
+ text-align: center;
423
+ }
424
+ .footer-logo { font-size: 2rem; font-weight: 800; margin-bottom: 20px; display: block; }
425
+ .footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
426
+ .footer-links a { color: #ccc; }
427
+ .footer-links a:hover { color: var(--white); }
428
+ .copyright { font-size: 0.9rem; color: #888; margin-top: 20px; }
429
+
430
+ /* --- Responsive Design --- */
431
+ @media (max-width: 968px) {
432
+ .hero h1 { font-size: 3rem; }
433
+ .nav-links { display: none; } /* Hidden on mobile for this demo */
434
+ .mobile-toggle { display: block; }
435
+ }
436
+
437
+ @media (max-width: 600px) {
438
+ .hero h1 { font-size: 2.5rem; }
439
+ .calendar-grid { gap: 5px; }
440
+ .day { height: 60px; font-size: 0.9rem; }
441
+ .spec-card { padding: 25px; }
442
+ }
443
+
444
+ /* Built with anycoder link */
445
+ .attribution {
446
+ position: fixed;
447
+ bottom: 10px;
448
+ right: 10px;
449
+ z-index: 3000;
450
+ font-size: 0.8rem;
451
+ color: #888;
452
+ background: rgba(255,255,255,0.8);
453
+ padding: 5px 10px;
454
+ border-radius: 8px;
455
+ }
456
+ .attribution a { color: var(--accent-primary); font-weight: bold; }
457
+
458
+ </style>
459
+ </head>
460
+ <body>
461
+
462
+ <!-- Navigation -->
463
+ <nav id="navbar">
464
+ <div class="logo">
465
+ <i class="fa-solid fa-brain"></i> Harmony
466
+ </div>
467
+ <ul class="nav-links">
468
+ <li><a href="#home">Главная</a></li>
469
+ <li><a href="#specializations">Направления</a></li>
470
+ <li><a href="#calendar">Календарь</a></li>
471
+ <li><a href="#about">О нас</a></li>
472
+ </ul>
473
+ <div class="nav-actions">
474
+ <button class="btn-book" onclick="openModal('urgent')">Срочно</button>
475
+ </div>
476
+ <div class="mobile-toggle" onclick="toggleMenu()">
477
+ <i class="fa-solid fa-bars"></i>
478
+ </div>
479
+ </nav>
480
+
481
+ <!-- Hero Section -->
482
+ <section id="home" class="hero">
483
+ <div class="hero-bg">
484
+ <div class="orb orb-1"></div>
485
+ <div class="orb orb-2"></div>
486
+ <div class="orb orb-3"></div>
487
+ </div>
488
+ <div class="hero-content">
489
+ <h1>Ваш внутренний баланс в мире хаоса</h1>
490
+ <p>Профессиональная психологическая поддержка. Запишитесь на консультацию к лучшим специалистам России. Приватно, безопасно, эффективно.</p>
491
+ <div class="hero-actions">
492
+ <button class="btn-book" onclick="scrollToCalendar()">Записаться на консультацию</button>
493
+ <button class="btn-alarm" onclick="openModal('urgent')">
494
+ <i class="fa-solid fa-bell"></i> Срочная помощь
495
+ </button>
496
+ </div>
497
+ </div>
498
+ </section>
499
+
500
+ <!-- Specializations Section -->
501
+ <section id="specializations" class="section">
502
+ <div class="section-header">
503
+ <h2>Наши Направления</h2>
504
+ <p>Мы предлагаем поддержку по шести ключевым направлениям, подходящим для разных возрастов и ситуаций.</p>
505
+ </div>
506
+
507
+ <div class="specializations-grid">
508
+ <!-- Card 1 -->
509
+ <div class="spec-card">
510
+ <div class="spec-icon" style="color: #E8B4A0;"><i class="fa-solid fa-users"></i></div>
511
+ <h3 class="spec-title">Семейный Психолог</h3>
512
+ <p class="spec-desc">Помощь в кризисных ситуациях, коммуникация, разводы, восстановление доверия.</p>
513
+ <div class="spec-price">4000 ₽ / 50 мин</div>
514
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
515
+ <span><i class="fa-solid fa-user"></i> 2 М</span>
516
+ <span><i class="fa-solid fa-user"></i> 2 Ж</span>
517
+ </div>
518
+ <button class="btn-outline" onclick="openModal('family')">Записаться</button>
519
+ </div>
520
+
521
+ <!-- Card 2 -->
522
+ <div class="spec-card">
523
+ <div class="spec-icon" style="color: #C9B8D9;"><i class="fa-solid fa-child"></i></div>
524
+ <h3 class="spec-title">Детско-Юношеский</h3>
525
+ <p class="spec-desc">Низкая самооценка, проблемы в школе, подростковый кризис, адаптация.</p>
526
+ <div class="spec-price">2000 ₽ / 50 мин</div>
527
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
528
+ <span><i class="fa-solid fa-user"></i> 3 Специалиста</span>
529
+ </div>
530
+ <button class="btn-outline" onclick="openModal('children')">Записаться</button>
531
+ </div>
532
+
533
+ <!-- Card 3 -->
534
+ <div class="spec-card">
535
+ <div class="spec-icon" style="color: #E8A090;"><i class="fa-solid fa-hand-holding-heart"></i></div>
536
+ <h3 class="spec-title">Зависимости</h3>
537
+ <p class="spec-desc">Игромания, алкоголизм, наркомания. Работа с больными и их семьями.</p>
538
+ <div class="spec-price">3000 ₽ / 50 мин</div>
539
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
540
+ <span><i class="fa-solid fa-user"></i> 2 Специалиста</span>
541
+ </div>
542
+ <button class="btn-outline" onclick="openModal('addiction')">Записаться</button>
543
+ </div>
544
+
545
+ <!-- Card 4 -->
546
+ <div class="spec-card">
547
+ <div class="spec-icon" style="color: #A8D5C2;"><i class="fa-solid fa-briefcase"></i></div>
548
+ <h3 class="spec-title">Карьерный Психолог</h3>
549
+ <p class="spec-desc">Смена карьеры, выгорание, поиск призвания, финансовые блокировки.</p>
550
+ <div class="spec-price">3000 ₽ / 50 мин</div>
551
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
552
+ <span><i class="fa-solid fa-user"></i> 2 Специалиста</span>
553
+ </div>
554
+ <button class="btn-outline" onclick="openModal('career')">Записаться</button>
555
+ </div>
556
+
557
+ <!-- Card 5 -->
558
+ <div class="spec-card">
559
+ <div class="spec-icon" style="color: #3D3229;"><i class="fa-solid fa-diagram-next"></i></div>
560
+ <h3 class="spec-title">Нейропсихолог</h3>
561
+ <p class="spec-desc">Задержки развития у детей, коррекция когнитивных функций, обучение.</p>
562
+ <div class="spec-price">10000 ₽ / 50 мин</div>
563
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
564
+ <span><i class="fa-solid fa-user"></i> Елена К.</span>
565
+ </div>
566
+ <button class="btn-outline" onclick="openModal('neuro')">Записаться</button>
567
+ </div>
568
+
569
+ <!-- Card 6 -->
570
+ <div class="spec-card">
571
+ <div class="spec-icon" style="color: #7A7268;"><i class="fa-solid fa-comment-dots"></i></div>
572
+ <h3 class="spec-title">Слушатель (Терапия)</h3>
573
+ <p class="spec-desc">Нужно просто выговориться, снять стресс, получить поддержку и понимание.</p>
574
+ <div class="spec-price">1000 ₽ / 50 мин</div>
575
+ <div style="display:flex; gap:5px; margin-bottom:20px; font-size:0.85rem; color:var(--text-secondary);">
576
+ <span><i class="fa-solid fa-user"></i> 2 Слушателя</span>
577
+ </div>
578
+ <button class="btn-outline" onclick="openModal('listener')">Записаться</button>
579
+ </div>
580
+ </div>
581
+ </section>
582
+
583
+ <!-- Interactive Calendar Section -->
584
+ <section id="calendar" class="section calendar-section">
585
+ <div class="section-header">
586
+ <h2>Выберите удобное время</h2>
587
+ <p>Визуальный календарь бронирования. Светлые слоты — свободны.</p>
588
+ </div>
589
+
590
+ <div class="calendar-container">
591
+ <div class="calendar-header">
592
+ <div class="calendar-title" id="currentMonthYear">Март 2026</div>
593
+ <div class="calendar-nav">
594
+ <button class="nav-btn" onclick="changeMonth(-1)"><i class="fa-solid fa-chevron-left"></i></button>
595
+ <button class="nav-btn" onclick="changeMonth(1)"><i class="fa-solid fa-chevron-right"></i></button>
596
+ </div>
597
+ </div>
598
+
599
+ <div class="calendar-grid" id="calendarGrid">
600
+ <!-- Days will be generated by JS -->
601
+ </div>
602
+
603
+ <div style="padding: 20px 40px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;">
604
+ <div style="font-size: 0.9rem; color: var(--text-secondary);">
605
+ <i class="fa-solid fa-circle" style="color: var(--success); font-size: 8px;"></i> Свободно &nbsp;
606
+ <i class="fa-solid fa-circle" style="color: #ddd; font-size: 8px;"></i> Занято
607
+ </div>
608
+ <button class="btn-book" onclick="openBookingWizard()">Выбрать дату и записаться</button>
609
+ </div>
610
+ </div>
611
+ </section>
612
+
613
+ <!-- Footer -->
614
+ <footer>
615
+ <span class="footer-logo">Harmony</span>
616
+ <div class="footer-links">
617
+ <a href="#">О платформе</a>
618
+ <a href="#">Психологи</a>
619
+ <a href="#">Конфиденциальность</a>
620
+ <a href="#">Поддержка</a>
621
+ <a href="#"><i class="fa-brands fa-telegram"></i></a>
622
+ <a href="#"><i class="fa-brands fa-vk"></i></a>
623
+ </div>
624
+ <div class="copyright">
625
+ &copy; 2026 Harmony Platform. Все права защищены.<br>
626
+ <span style="font-size: 0.7rem; margin-top: 10px; display:block;">
627
+ Свидетельство о регистрации: Э №ФСС-000001<br>
628
+ Лицензия на медицинскую деятельность: 77-00-99-88-88
629
+ </span>
630
+ </div>
631
+ </footer>
632
+
633
+ <!-- Booking Modal -->
634
+ <div class="modal-overlay" id="bookingModal">
635
+ <div class="modal">
636
+ <div class="modal-header">
637
+ <h3 id="modalTitle">Запись на консультацию</h3>
638
+ <button class="close-btn" onclick="closeModal()">&times;</button>
639
+ </div>
640
+
641
+ <form id="bookingForm" onsubmit="handleBooking(event)">
642
+ <div class="form-group">
643
+ <label class="form-label">Направление</label>
644
+ <select class="form-select" id="bookingDirection" required>
645
+ <option value="" disabled selected>Выберите направление...</option>
646
+ <option value="family">Семейный психолог</option>
647
+ <option value="children">Детско-юношеский психолог</option>
648
+ <option value="addiction">Психолог по зависимостям</option>
649
+ <option value="career">Психолог по карьере</option>
650
+ <option value="neuro">Нейропсихолог</option>
651
+ <option value="listener">Слушатель (Терапия)</option>
652
+ </select>
653
+ </div>
654
+
655
+ <div class="form-group">
656
+ <label class="form-label">Выберите специалиста (или "Любой")</label>
657
+ <select class="form-select" id="bookingSpecialist">
658
+ <option value="any">Любой доступный специалист</option>
659
+ <option value="Elena K.">Елена К. (Нейропсихолог)</option>
660
+ <option value="Anna S.">Анна С. (Семейный, Ж)</option>
661
+ <option value="Dmitri M.">Дмитрий М. (Карьера, М)</option>
662
+ <option value="Olga V.">Ольга В. (Детский, Ж)</option>
663
+ </select>
664
+ </div>
665
+
666
+ <div class="form-group">
667
+ <label class="form-label">Дата</label>
668
+ <input type="date" class="form-input" id="bookingDate" required>
669
+ </div>
670
+
671
+ <div class="form-group">
672
+ <label class="form-label">Время</label>
673
+ <select class="form-select" id="bookingTime" required>
674
+ <option value="" disabled selected>Выберите время...</option>
675
+ <!-- Generated by JS -->
676
+ </select>
677
+ </div>
678
+
679
+ <div class="form-group">
680
+ <label class="form-label">Ваше имя</label>
681
+ <input type="text" class="form-input" placeholder="Иван Иванов" required>
682
+ </div>
683
+
684
+ <div class="form-group">
685
+ <label class="form-label">Телефон / Telegram</label>
686
+ <input type="tel" class="form-input" placeholder="+7 (999) 000-00-00" required>
687
+ </div>
688
+
689
+ <div class="form-group">
690
+ <label class="form-label">Способ связи</label>
691
+ <div class="payment-methods">
692
+ <div class="payment-option active" onclick="selectChannel(this, 'Telegram')">
693
+ <i class="fa-brands fa-telegram" style="font-size: 1.5rem; display:block; margin-bottom:5px;"></i>
694
+ Telegram
695
+ </div>
696
+ <div class="payment-option" onclick="selectChannel(this, 'WhatsApp')">
697
+ <i class="fa-brands fa-whatsapp" style="font-size: 1.5rem; display:block; margin-bottom:5px;"></i>
698
+ WhatsApp
699
+ </div>
700
+ <div class="payment-option" onclick="selectChannel(this, 'Zoom')">
701
+ <i class="fa-solid fa-video" style="font-size: 1.5rem; display:block; margin-bottom:5px;"></i>
702
+ Zoom
703
+ </div>
704
+ <div class="payment-option" onclick="selectChannel(this, 'Phone')">
705
+ <i class="fa-solid fa-phone" style="font-size: 1.5rem; display:block; margin-bottom:5px;"></i>
706
+ Телефон
707
+ </div>
708
+ </div>
709
+ </div>
710
+
711
+ <div class="total-price" id="totalPriceDisplay">
712
+ Итого: <span id="priceAmount">0</span> ₽
713
+ </div>
714
+
715
+ <button type="submit" class="btn-confirm">Оплатить и подтвердить запись</button>
716
+ </form>
717
+ </div>
718
+ </div>
719
+
720
+ <!-- Built with anycoder attribution -->
721
+ <div class="attribution">
722
+ Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">anycoder</a>
723
+ </div>
724
+
725
+ <script>
726
+ // --- Data & Configuration ---
727
+ const months = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"];
728
+ const daysOfWeek = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"];
729
+
730
+ // Mock prices for calculation
731
+ const prices = {
732
+ 'family': 4000,
733
+ 'children': 2000,
734
+ 'addiction': 3000,
735
+ 'career': 3000,
736
+ 'neuro': 10000,
737
+ 'listener': 1000
738
+ };
739
+
740
+ // Current Date State
741
+ let currentDate = new Date();
742
+ let selectedDate = null;
743
+ let selectedDirection = null;
744
+
745
+ // --- Calendar Logic ---
746
+ function renderCalendar() {
747
+ const grid = document.getElementById('calendarGrid');
748
+ grid.innerHTML = '';
749
+
750
+ // Render Headers
751
+ daysOfWeek.forEach(day => {
752
+ const dayName = document.createElement('div');
753
+ dayName.className = 'day-name';
754
+ dayName.textContent = day;
755
+ grid.appendChild(dayName);
756
+ });
757
+
758
+ const year = currentDate.getFullYear();
759
+ const month = currentDate.getMonth();
760
+
761
+ // Update Header
762
+ document.getElementById('currentMonthYear').textContent = `${months[month]} ${year}`;
763
+
764
+ // First day of month (0-6)
765
+ const firstDayIndex = new Date(year, month, 1).getDay();
766
+ const daysInMonth = new Date(year, month + 1, 0).getDate();
767
+
768
+ // Previous month filler
769
+ for (let i = 0; i < firstDayIndex; i++) {
770
+ const empty = document.createElement('div');
771
+ empty.className = 'day empty';
772
+ grid.appendChild(empty);
773
+ }
774
+
775
+ // Days
776
+ for (let day = 1; day <= daysInMonth; day++) {
777
+ const dayDiv = document.createElement('div');
778
+ dayDiv.className = 'day';
779
+
780
+ // Check if today
781
+ const today = new Date();
782
+ if (day === today.getDate() && month === today.getMonth() && year === today.getFullYear()) {
783
+ dayDiv.classList.add('today');
784
+ }
785
+
786
+ // Check if past date (disable them)
787
+ const dateToCheck = new Date(year, month, day);
788
+ if (dateToCheck < new Date(today.setHours(0,0,0,0))) {
789
+ dayDiv.classList.add('booked');
790
+ } else {
791
+ dayDiv.onclick = () => selectDate(day, month, year);
792
+ dayDiv.innerHTML = `
793
+ <span class="day-number">${day}</span>
794
+ <div class="time-slot" id="slot-${day}">09:00-21:00</div>
795
+ `;
796
+ }
797
+
798
+ // Randomly mark some slots as booked for realism
799
+ if (Math.random() > 0.7 && day > 5) {
800
+ dayDiv.classList.add('booked');
801
+ dayDiv.querySelector('.time-slot').textContent = "Занято";
802
+ }
803
+
804
+ grid.appendChild(dayDiv);
805
+ }
806
+ }
807
+
808
+ function changeMonth(direction) {
809
+ currentDate.setMonth(currentDate.getMonth() + direction);
810
+ renderCalendar();
811
+ }
812
+
813
+ function selectDate(day, month, year) {
814
+ // Update visual selection
815
+ const days = document.querySelectorAll('.day');
816
+ days.forEach(d => d.classList.remove('selected'));
817
+
818
+ // Find the clicked day (accounting for the offset of empty days)
819
+ const firstDayIndex = new Date(year, month, 1).getDay();
820
+ const index = (firstDayIndex + day) - 1;
821
+ days[index].classList.add('selected');
822
+
823
+ selectedDate = new Date(year, month, day);
824
+
825
+ // Populate Time Slots
826
+ const timeSelect = document.getElementById('bookingTime');
827
+ timeSelect.innerHTML = '<option value="" disabled selected>Выберите время...</option>';
828
+
829
+ // Generate slots from 9:00 to 20:00 (last slot starts at 20:00, ends 21:00)
830
+ for (let hour = 9; hour < 21; hour++) {
831
+ const timeOption = document.createElement('option');
832
+ timeOption.value = `${hour}:00`;
833
+ timeOption.textContent = `${hour}:00 - ${hour+1}:00`;
834
+
835
+ // Mock logic: disable some slots
836
+ if (Math.random() > 0.8) {
837
+ timeOption.disabled = true;
838
+ timeOption.textContent += " (Занято)";
839
+ }
840
+ timeSelect.appendChild(timeOption);
841
+ }
842
+
843
+ // Auto-fill date in form
844
+ const dateInput = document.getElementById('bookingDate');
845
+ dateInput.value = `${year}-${String(month+1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
846
+ }
847
+
848
+ // --- Modal & Booking Logic ---
849
+ const modal = document.getElementById('bookingModal');
850
+
851
+ function openModal(type) {
852
+ modal.style.display = 'flex';
853
+ const title = document.getElementById('modalTitle');
854
+ const directionSelect = document.getElementById('bookingDirection');
855
+
856
+ if (type === 'urgent') {
857
+ title.textContent = "Срочная Консультация (Alarm!)";
858
+ // Logic for urgent could be adding a fee, here we just set a default
859
+ directionSelect.value = 'listener'; // Default to "Listener" for urgent
860
+ updatePrice();
861
+ } else {
862
+ title.textContent = "Запись на консультацию";
863
+ // Try to select the category from the card click
864
+ if (type) directionSelect.value = type;
865
+ updatePrice();
866
+ }
867
+
868
+ // Reset time selection
869
+ document.getElementById('bookingTime').innerHTML = '<option value="" disabled selected>Выберите время...</option>';
870
+ selectedDate = null;
871
+
872
+ // Set default date to tomorrow
873
+ const tomorrow = new Date();
874
+ tomorrow.setDate(tomorrow.getDate() + 1);
875
+ const dateInput = document.getElementById('bookingDate');
876
+ dateInput.value = `${tomorrow.getFullYear()}-${String(tomorrow.getMonth()+1).padStart(2, '0')}-${String(tomorrow.getDate()).padStart(2, '0')}`;
877
+
878
+ renderCalendar();
879
+ }
880
+
881
+ function closeModal() {
882
+ modal.style.display = 'none';
883
+ }
884
+
885
+ function selectChannel(element, channelName) {
886
+ document.querySelectorAll('.payment-option').forEach(opt => opt.classList.remove('active'));
887
+ element.classList.add('active');
888
+ // Store selected channel in a hidden variable if needed, for now just visual
889
+ console.log("Selected Channel:", channelName);
890
+ }
891
+
892
+ function updatePrice() {
893
+ const direction = document.getElementById('bookingDirection').value;
894
+ if (direction && prices[direction]) {
895
+ document.getElementById('priceAmount').textContent = prices[direction];
896
+ } else {
897
+ document.getElementById('priceAmount').textContent = "0";
898
+ }
899
+ }
900
+
901
+ // Price update listener
902
+ document.getElementById('bookingDirection').addEventListener('change', updatePrice);
903
+
904
+ function handleBooking(e) {
905
+ e.preventDefault();
906
+ const date = document.getElementById('bookingDate').value;
907
+ const time = document.getElementById('bookingTime').value;
908
+ const name = document.querySelector('input[type="text"]').value;
909
+
910
+ if (!date || !time || !name) {
911
+ alert("Пожалуйста, заполните все обязательные поля.");
912
+ return;
913
+ }
914
+
915
+ // Simulate API Call
916
+ const btn = document.querySelector('.btn-confirm');
917
+ const originalText = btn.textContent;
918
+ btn.textContent = "Обработка...";
919
+ btn.disabled = true;
920
+
921
+ setTimeout(() => {
922
+ alert(`✅ Запись подтверждена!\n\nКлиент: ${name}\nДата: ${date} в ${time}\nСпециалист: Назначен автоматически\nСумма: ${document.getElementById('priceAmount').textContent} ₽\n\nНа ваш телефон отправлено SMS с подтверждением.`);
923
+ closeModal();
924
+ btn.textContent = originalText;
925
+ btn.disabled = false;
926
+ // Reset form
927
+ document.getElementById('bookingForm').reset();
928
+ document.getElementById('priceAmount').textContent = "0";
929
+ }, 1500);
930
+ }
931
+
932
+ function scrollToCalendar() {
933
+ document.getElementById('calendar').scrollIntoView({ behavior: 'smooth' });
934
+ }
935
+
936
+ function toggleMenu() {
937
+ // Simple mobile menu toggle logic
938
+ const navLinks = document.querySelector('.nav-links');
939
+ if (navLinks.style.display === 'flex') {
940
+ navLinks.style.display = 'none';
941
+ } else {
942
+ navLinks.style.display = 'flex';
943
+ navLinks.style.flexDirection = 'column';
944
+ navLinks.style.position = 'absolute';
945
+ navLinks.style.top = '70px';
946
+ navLinks.style.right = '0';
947
+ navLinks.style.background = 'var(--bg-main)';
948
+ navLinks.style.padding = '20px';
949
+ navLinks.style.borderRadius = '0 0 20px 20px';
950
+ navLinks.style.boxShadow = '0 5px 10px rgba(0,0,0,0.1)';
951
+ }
952
+ }
953
+
954
+ // Navbar Scroll Effect
955
+ window.addEventListener('scroll', () => {
956
+ const nav = document.getElementById('navbar');
957
+ if (window.scrollY > 50) {
958
+ nav.classList.add('scrolled');
959
+ } else {
960
+ nav.classList.remove('scrolled');
961
+ }
962
+ });
963
+
964
+ // Initialize
965
+ renderCalendar();
966
+
967
+ </script>
968
+ </body>
969
+ </html>