79cc1ba38d
Контент и брендинг: - Реальные данные ИКP (infocyber.pro): услуги CS2/Dota 2/WoT, цены, FAQ, контакты, площадки - Приветствие и тексты приведены к бренду ИКП Новые функции: - Раздельные согласия (152-ФЗ): маркетинговая рассылка — отдельный необязательный шаг - Шаг «удобное время звонка» в форме заявки - Раздел «Карьера в ИКП»: набор игроков и сотрудников (таблица applications) - Админ-команды: статистика (стата) и рассылка по подписчикам с троттлингом и отпиской - Журнал заявок leads, «бот помнит клиента», международные телефоны, валидация имени - Email-уведомления о заявках и откликах (mailer.py); HR-адрес через HR_MAIL_TO Защита: - Анти-флуд по пользователю и кулдаун уведомлений оператору (анти-DDoS) - Веб-форма: серверная валидация, honeypot, рейт-лимит, CORS по ALLOWED_ORIGIN, SQLite-first Визуал: - Убрана Markdown-разметка (VK её не рендерит) - Логотип в приветствии, карусели услуг и «Карьеры» (фото 13:8), предзагрузка медиа - Кнопки-ссылки на соцсети - Веб-форма: анимации, конфетти на успехе Промокоды добавлены, но пока ВЫКЛЮЧЕНЫ флагом PROMO_ENABLED (по умолчанию false). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
645 lines
16 KiB
CSS
645 lines
16 KiB
CSS
/* ----------------------------------------------------
|
|
1. DESIGN SYSTEM & RESET
|
|
---------------------------------------------------- */
|
|
:root {
|
|
--bg-color: #0A0F1F;
|
|
--card-bg: rgba(16, 22, 42, 0.85);
|
|
--primary-orange: #ff7a00;
|
|
--primary-orange-hover: #ff9233;
|
|
--cyan-accent: #00d2ff;
|
|
--text-white: #ffffff;
|
|
--text-gray: #8f9cae;
|
|
--text-dark: #0A0F1F;
|
|
--error-red: #ff4a4a;
|
|
--input-border: rgba(255, 255, 255, 0.12);
|
|
--font-headings: 'Montserrat', sans-serif;
|
|
--font-body: 'Inter', sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-color);
|
|
/* Dark gradient overlay + brand background image from help_img */
|
|
background-image:
|
|
radial-gradient(circle at center, rgba(13, 25, 47, 0.93) 0%, rgba(10, 15, 31, 0.99) 100%),
|
|
url('../help_img/bg.jpg');
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
background-attachment: fixed;
|
|
background-size: cover;
|
|
color: var(--text-white);
|
|
font-family: var(--font-body);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24px 16px;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
2. LAYOUT & CARD CONTAINER
|
|
---------------------------------------------------- */
|
|
main {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 24px;
|
|
padding: 40px;
|
|
width: 100%;
|
|
max-width: 480px;
|
|
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
|
|
inset 0 1px 1px rgba(255, 255, 255, 0.1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Premium Esports Accent Line at the top of the card */
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--cyan-accent) 0%, var(--primary-orange) 100%);
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
3. BRANDING & HEADER
|
|
---------------------------------------------------- */
|
|
.logo-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.logo-img {
|
|
height: 110px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
border: 2px solid rgba(255, 122, 0, 0.25);
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.logo-img:hover {
|
|
transform: scale(1.04);
|
|
border-color: var(--primary-orange);
|
|
box-shadow: 0 8px 28px rgba(255, 122, 0, 0.4);
|
|
}
|
|
|
|
.form-title {
|
|
font-family: var(--font-headings);
|
|
font-weight: 800;
|
|
font-size: 1.6rem;
|
|
text-transform: uppercase;
|
|
text-align: center;
|
|
margin: 0 0 10px 0;
|
|
background: linear-gradient(90deg, #ffffff 50%, var(--text-gray) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
letter-spacing: 0.5px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.form-subtitle {
|
|
font-size: 0.92rem;
|
|
color: var(--text-gray);
|
|
text-align: center;
|
|
margin: 0 0 32px 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
4. FORM INPUTS & ELEMENTS
|
|
---------------------------------------------------- */
|
|
.form-group {
|
|
margin-bottom: 22px;
|
|
position: relative;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.2px;
|
|
color: var(--cyan-accent);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.required-star {
|
|
color: var(--primary-orange);
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
height: 52px;
|
|
padding: 0 16px 0 44px;
|
|
background: rgba(10, 15, 31, 0.7);
|
|
border: 1.5px solid var(--input-border);
|
|
border-radius: 12px;
|
|
color: var(--text-white);
|
|
font-family: var(--font-body);
|
|
font-size: 0.95rem;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: #4a5c73;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-orange);
|
|
background: rgba(10, 15, 31, 0.85);
|
|
box-shadow: 0 0 14px rgba(255, 122, 0, 0.2);
|
|
}
|
|
|
|
.input-icon {
|
|
position: absolute;
|
|
left: 16px;
|
|
font-size: 1.1rem;
|
|
color: #4a5c73;
|
|
pointer-events: none;
|
|
transition: color 0.25s ease;
|
|
}
|
|
|
|
.form-input:focus + .input-icon {
|
|
color: var(--primary-orange);
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
5. ERROR HANDLING
|
|
---------------------------------------------------- */
|
|
.error-message {
|
|
color: var(--error-red);
|
|
font-size: 0.8rem;
|
|
margin-top: 6px;
|
|
display: none;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 500;
|
|
animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from { opacity: 0; transform: translateY(-4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Error States for Inputs */
|
|
.form-group.has-error .form-input {
|
|
border-color: var(--error-red);
|
|
box-shadow: 0 0 8px rgba(255, 74, 74, 0.15);
|
|
}
|
|
|
|
.form-group.has-error .input-icon {
|
|
color: var(--error-red);
|
|
}
|
|
|
|
.form-group.has-error .error-message {
|
|
display: flex;
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
6. BUTTONS & ACTIONS
|
|
---------------------------------------------------- */
|
|
.submit-btn {
|
|
width: 100%;
|
|
height: 54px;
|
|
background: var(--primary-orange);
|
|
border: none;
|
|
border-radius: 12px;
|
|
color: var(--text-dark);
|
|
font-family: var(--font-headings);
|
|
font-weight: 800;
|
|
font-size: 1.05rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
|
|
margin-top: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.submit-btn:hover {
|
|
background: var(--primary-orange-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(255, 122, 0, 0.4);
|
|
}
|
|
|
|
.submit-btn:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
|
|
}
|
|
|
|
.submit-btn:focus-visible {
|
|
outline: 2px solid var(--text-white);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
7. LEGAL CONSENT
|
|
---------------------------------------------------- */
|
|
.consent-text {
|
|
font-size: 0.72rem;
|
|
color: var(--text-gray);
|
|
text-align: center;
|
|
margin-top: 22px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.consent-link {
|
|
color: var(--cyan-accent);
|
|
text-decoration: none;
|
|
border-bottom: 1px dashed rgba(0, 210, 255, 0.3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.consent-link:hover {
|
|
color: var(--primary-orange);
|
|
border-bottom-color: rgba(255, 122, 0, 0.5);
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
8. SUCCESS STATE WINDOW
|
|
---------------------------------------------------- */
|
|
.success-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 10px 0;
|
|
animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from { opacity: 0; transform: scale(0.9); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
.success-icon-wrapper {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 210, 255, 0.1);
|
|
border: 3px solid var(--cyan-accent);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
|
|
}
|
|
|
|
.success-icon {
|
|
font-size: 2.5rem;
|
|
color: var(--cyan-accent);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.success-title {
|
|
font-family: var(--font-headings);
|
|
font-size: 1.7rem;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
color: var(--primary-orange);
|
|
margin: 0 0 16px 0;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.success-text {
|
|
font-size: 0.95rem;
|
|
color: #b8c7db;
|
|
line-height: 1.6;
|
|
margin: 0 0 32px 0;
|
|
}
|
|
|
|
.reset-btn {
|
|
width: 100%;
|
|
height: 52px;
|
|
background: transparent;
|
|
border: 2px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 12px;
|
|
color: var(--text-white);
|
|
font-family: var(--font-headings);
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.reset-btn:hover {
|
|
border-color: var(--cyan-accent);
|
|
color: var(--cyan-accent);
|
|
background: rgba(0, 210, 255, 0.05);
|
|
box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
10. CUSTOM CHECKBOXES
|
|
---------------------------------------------------- */
|
|
.checkbox-group {
|
|
margin-bottom: 18px;
|
|
position: relative;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-size: 0.85rem;
|
|
color: var(--text-gray);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Hide default checkbox */
|
|
.checkbox-label input[type="checkbox"] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
|
|
/* Custom checkbox indicator */
|
|
.checkbox-custom {
|
|
flex-shrink: 0;
|
|
height: 20px;
|
|
width: 20px;
|
|
background: rgba(10, 15, 31, 0.7);
|
|
border: 1.5px solid var(--input-border);
|
|
border-radius: 6px;
|
|
margin-right: 12px;
|
|
position: relative;
|
|
transition: all 0.2s ease;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
/* On hover */
|
|
.checkbox-label:hover .checkbox-custom {
|
|
border-color: var(--cyan-accent);
|
|
box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
|
|
}
|
|
|
|
/* Checked state background */
|
|
.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
|
|
background: var(--primary-orange);
|
|
border-color: var(--primary-orange);
|
|
box-shadow: 0 0 10px rgba(255, 122, 0, 0.3);
|
|
}
|
|
|
|
/* Custom checkmark symbol */
|
|
.checkbox-custom::after {
|
|
content: '';
|
|
position: absolute;
|
|
display: none;
|
|
left: 6px;
|
|
top: 2px;
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid var(--text-dark);
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
/* Show checkmark when checked */
|
|
.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
|
|
display: block;
|
|
}
|
|
|
|
/* Focus outline for accessibility */
|
|
.checkbox-label input[type="checkbox"]:focus-visible ~ .checkbox-custom {
|
|
outline: 2px solid var(--text-white);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Error States for Checkboxes */
|
|
.checkbox-group.has-error .checkbox-custom {
|
|
border-color: var(--error-red);
|
|
box-shadow: 0 0 8px rgba(255, 74, 74, 0.2);
|
|
}
|
|
.checkbox-group.has-error .error-message {
|
|
display: flex;
|
|
margin-left: 32px; /* Aligns error text with checkbox text label */
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
9. RESPONSIVE DESIGN
|
|
---------------------------------------------------- */
|
|
@media (max-width: 480px) {
|
|
body {
|
|
padding: 16px 8px;
|
|
}
|
|
.card {
|
|
padding: 30px 20px;
|
|
border-radius: 20px;
|
|
}
|
|
.form-title {
|
|
font-size: 1.35rem;
|
|
}
|
|
.form-subtitle {
|
|
font-size: 0.85rem;
|
|
margin-bottom: 24px;
|
|
}
|
|
.logo-img {
|
|
height: 90px;
|
|
}
|
|
.form-input {
|
|
height: 48px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.submit-btn {
|
|
height: 50px;
|
|
font-size: 0.95rem;
|
|
}
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
11. VISUAL POLISH (анимации и «живой» неон)
|
|
---------------------------------------------------- */
|
|
|
|
/* Плавное появление карточки при загрузке */
|
|
@keyframes cardIn {
|
|
from { opacity: 0; transform: translateY(24px) scale(0.98); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
.card {
|
|
animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
|
|
/* Бегущий градиент в верхней акцент-линии */
|
|
@keyframes accentFlow {
|
|
0% { background-position: 0% 50%; }
|
|
100% { background-position: 200% 50%; }
|
|
}
|
|
.card::before {
|
|
background: linear-gradient(90deg,
|
|
var(--cyan-accent) 0%, var(--primary-orange) 50%, var(--cyan-accent) 100%);
|
|
background-size: 200% 100%;
|
|
animation: accentFlow 4s linear infinite;
|
|
}
|
|
|
|
/* Каскадное появление полей формы */
|
|
@keyframes fadeUp {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
#formContainer .form-group,
|
|
#formContainer .checkbox-group,
|
|
#formContainer .submit-btn {
|
|
animation: fadeUp 0.5s ease both;
|
|
}
|
|
#formContainer .form-group:nth-of-type(1) { animation-delay: 0.10s; }
|
|
#formContainer .form-group:nth-of-type(2) { animation-delay: 0.16s; }
|
|
#formContainer .form-group:nth-of-type(3) { animation-delay: 0.22s; }
|
|
#formContainer .form-group:nth-of-type(4) { animation-delay: 0.28s; }
|
|
#formContainer .checkbox-group { animation-delay: 0.34s; }
|
|
#formContainer .submit-btn { animation-delay: 0.42s; }
|
|
|
|
/* Мягкое пульсирующее свечение логотипа */
|
|
@keyframes logoGlow {
|
|
0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
|
|
50% { box-shadow: 0 8px 30px rgba(255, 122, 0, 0.35); }
|
|
}
|
|
.logo-img {
|
|
animation: logoGlow 3.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Световой блик, пробегающий по кнопке при наведении */
|
|
.submit-btn {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.submit-btn::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -120%;
|
|
width: 60%;
|
|
height: 100%;
|
|
background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
|
|
transform: skewX(-20deg);
|
|
transition: left 0.6s ease;
|
|
}
|
|
.submit-btn:hover::after {
|
|
left: 130%;
|
|
}
|
|
|
|
/* Спиннер в кнопке во время отправки (класс .loading добавляется из script.js) */
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.submit-btn.loading {
|
|
pointer-events: none;
|
|
opacity: 0.85;
|
|
}
|
|
.submit-btn.loading::before {
|
|
content: '';
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-right: 10px;
|
|
border: 2.5px solid rgba(10, 15, 31, 0.35);
|
|
border-top-color: var(--text-dark);
|
|
border-radius: 50%;
|
|
animation: spin 0.7s linear infinite;
|
|
}
|
|
|
|
/* Уважаем системную настройку «уменьшить движение» */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.card,
|
|
.card::before,
|
|
#formContainer .form-group,
|
|
#formContainer .checkbox-group,
|
|
#formContainer .submit-btn,
|
|
.logo-img {
|
|
animation: none !important;
|
|
}
|
|
.submit-btn::after { display: none; }
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
12. ПРОМОКОД НА ЭКРАНЕ УСПЕХА
|
|
---------------------------------------------------- */
|
|
.promo-box {
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
width: 100%;
|
|
background: rgba(255, 122, 0, 0.08);
|
|
border: 1.5px dashed var(--primary-orange);
|
|
border-radius: 14px;
|
|
padding: 16px 20px;
|
|
margin: 0 0 24px;
|
|
animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
}
|
|
.promo-label {
|
|
font-size: 0.78rem;
|
|
color: var(--text-gray);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
text-align: center;
|
|
}
|
|
.promo-code {
|
|
font-family: var(--font-headings);
|
|
font-size: 1.55rem;
|
|
font-weight: 800;
|
|
color: var(--primary-orange);
|
|
letter-spacing: 1.5px;
|
|
}
|
|
.promo-hint {
|
|
font-size: 0.76rem;
|
|
color: var(--text-gray);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ----------------------------------------------------
|
|
13. КОНФЕТТИ (салют при успешной отправке)
|
|
---------------------------------------------------- */
|
|
.confetti-piece {
|
|
position: fixed;
|
|
top: -14px;
|
|
z-index: 9999;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
animation-name: confetti-fall;
|
|
animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
|
|
animation-fill-mode: forwards;
|
|
}
|
|
@keyframes confetti-fall {
|
|
0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
|
|
100% { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.confetti-piece { display: none; }
|
|
.promo-box { animation: none; }
|
|
}
|