Новые правки 04/04/26

This commit is contained in:
Web-serfer 2026-04-04 16:56:25 +05:00
parent 00f9b24a60
commit 761996fd52
3 changed files with 416 additions and 133 deletions

View file

@ -514,15 +514,18 @@ const {
.card {
padding: 2rem;
text-align: center;
}
.card-title {
font-size: 1.25rem;
.card-content {
align-items: center;
}
.card-icon {
width: 56px;
height: 56px;
margin-left: auto;
margin-right: auto;
}
.icon-emoji {

View file

@ -44,41 +44,76 @@ const {
<div class="site-container">
<!-- Заголовок секции -->
<div class="section-header">
<span class="subtitle animate-on-scroll" data-animation="fade-up">{sectionSubtitle}</span>
<div class="subtitle-wrapper animate-on-scroll" data-animation="fade-up">
<div class="subtitle-line"></div>
<span class="subtitle">{sectionSubtitle}</span>
<div class="subtitle-line"></div>
</div>
<h2 class="title animate-on-scroll" data-animation="fade-up" data-delay="100">{sectionTitle}</h2>
<p class="section-description animate-on-scroll" data-animation="fade-up" data-delay="150">
Мы создали прозрачную систему взаимодействия, чтобы вы всегда знали, на каком этапе находится ваше дело
</p>
</div>
<!-- Шаги -->
<div class="steps-grid">
{steps.map((step, index) => (
<div class="step-card animate-on-scroll" data-animation="fade-up" data-delay={index * 150 + 200}>
<!-- Номер шага -->
<div class="step-number-wrapper">
<div class="step-number">{step.number}</div>
{index < steps.length - 1 && (
<div class="step-connector"></div>
)}
</div>
<div class="steps-container">
{steps.map((step: Step, index: number) => (
<div class="step-card-wrapper animate-on-scroll" data-animation="fade-up" data-delay={index * 100 + 200}>
<div class="step-card">
<!-- Декоративный фон -->
<div class="step-bg"></div>
<!-- Контент -->
<div class="step-content">
<div class="step-icon">
<span class="icon-emoji">{step.icon}</span>
<!-- Заголовок с номером и иконкой -->
<div class="step-header">
<div class="step-number">{step.number}</div>
<div class="step-icon-wrapper">
<div class="step-icon-glow"></div>
<div class="step-icon">
<span class="icon-emoji">{step.icon}</span>
</div>
</div>
</div>
<!-- Контент -->
<div class="step-content">
<h3 class="step-title">{step.title}</h3>
<p class="step-description">{step.description}</p>
</div>
<!-- Соединительная линия -->
{index < steps.length - 1 && (
<div class="step-connector">
<div class="connector-line"></div>
<div class="connector-dot"></div>
</div>
)}
</div>
<h3 class="step-title">{step.title}</h3>
<p class="step-description">{step.description}</p>
</div>
</div>
))}
</div>
<!-- Статистика -->
<div class="stats-bar animate-on-scroll" data-animation="fade-up" data-delay="700">
<div class="stat-item">
<div class="stat-number">98%</div>
<div class="stat-label">успешных дел</div>
</div>
<div class="stat-divider"></div>
<div class="stat-item">
<div class="stat-number">500+</div>
<div class="stat-label">довольных клиентов</div>
</div>
<div class="stat-divider"></div>
<div class="stat-item">
<div class="stat-number">15 лет</div>
<div class="stat-label">опыта</div>
</div>
</div>
<!-- Кнопка CTA -->
<div class="steps-cta animate-on-scroll" data-animation="fade-up" data-delay="800">
<Button variant="gold" size="lg" id="consultation-btn" data-modal-target="consultation-modal">
<span class="cta-text">Начать консультацию бесплатно</span>
<svg class="cta-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14M12 5l7 7-7 7"/>
</svg>
</Button>
</div>
</div>
@ -86,23 +121,60 @@ const {
<style>
:root {
--color-primary: #1e3050;
--color-primary: #0a2540;
--color-primary-light: #1e3050;
--color-accent: #eac26e;
--color-accent-light: #ce9f40;
--color-light: #f8fafc;
--color-gray: #64748b;
--color-accent-dark: #ce9f40;
--color-accent-glow: rgba(234, 194, 110, 0.3);
--color-light: #ffffff;
--color-gray: #94a3b8;
--color-gray-dark: #64748b;
--gradient-bg: linear-gradient(135deg, #0a2540 0%, #1e3050 100%);
--gradient-accent: linear-gradient(135deg, #eac26e 0%, #ce9f40 100%);
--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
--shadow-glow: 0 0 40px rgba(234, 194, 110, 0.2);
}
.steps-section {
padding: 6rem 1.5rem;
background: linear-gradient(180deg, #0b1426 0%, #1e3050 100%);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: var(--gradient-bg);
position: relative;
overflow: hidden;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
/* Декоративные элементы фона */
.steps-section::before {
content: '';
position: absolute;
top: -50%;
right: -20%;
width: 80%;
height: 150%;
background: radial-gradient(circle, rgba(234, 194, 110, 0.03) 0%, transparent 70%);
pointer-events: none;
border-radius: 50%;
}
.steps-section::after {
content: '';
position: absolute;
bottom: -30%;
left: -10%;
width: 60%;
height: 100%;
background: radial-gradient(circle, rgba(234, 194, 110, 0.02) 0%, transparent 70%);
pointer-events: none;
}
.site-container {
max-width: var(--site-max-width, 1400px);
margin: 0 auto;
position: relative;
z-index: 2;
}
/* Заголовок секции */
@ -111,26 +183,47 @@ const {
text-align: center;
}
.subtitle-wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 1rem;
}
.subtitle-line {
width: 40px;
height: 1px;
background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.subtitle {
display: inline-block;
color: #eac26e;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 3px;
margin-bottom: 1rem;
padding: 0.5rem 1rem;
background: rgba(234, 194, 110, 0.15);
border-radius: 6px;
letter-spacing: 4px;
}
.title {
color: #ffffff;
font-size: clamp(2rem, 4vw, 3rem);
color: var(--color-light);
font-size: clamp(2rem, 4vw, 3.5rem);
font-weight: 800;
margin: 0;
margin: 0 0 1rem 0;
line-height: 1.2;
letter-spacing: -0.02em;
background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.section-description {
color: var(--color-gray);
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
/* --- АНИМАЦИИ ПРИ СКРОЛЛИНГЕ --- */
@ -140,7 +233,7 @@ const {
}
[data-animation="fade-up"] {
transform: translateY(30px);
transform: translateY(40px);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@ -150,85 +243,142 @@ const {
transform: translateY(0);
}
/* Сетка шагов */
.steps-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem;
/* Контейнер шагов */
.steps-container {
display: flex;
justify-content: space-between;
gap: 1.5rem;
margin-bottom: 4rem;
position: relative;
}
.step-card-wrapper {
flex: 1;
min-width: 0;
}
/* Карточка шага */
.step-card {
position: relative;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(10px);
border-radius: 24px;
padding: 2rem 1.5rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(255, 255, 255, 0.05);
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
/* Номер шага */
.step-number-wrapper {
position: relative;
width: 100%;
.step-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient-accent);
transform: scaleX(0);
transition: transform 0.4s ease;
}
.step-card:hover {
transform: translateY(-8px);
background: rgba(255, 255, 255, 0.05);
border-color: rgba(234, 194, 110, 0.2);
box-shadow: var(--shadow-glow);
}
.step-card:hover::before {
transform: scaleX(1);
}
.step-bg {
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(234, 194, 110, 0.05) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}
.step-card:hover .step-bg {
opacity: 1;
}
/* Заголовок шага */
.step-header {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 1.5rem;
position: relative;
}
.step-number {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
color: #ffffff;
width: 48px;
height: 48px;
background: var(--gradient-accent);
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 25px rgba(234, 194, 110, 0.3);
color: var(--color-primary);
box-shadow: var(--shadow-md);
position: relative;
z-index: 2;
flex-shrink: 0;
}
/* Соединительная линия */
.step-connector {
.step-icon-wrapper {
position: relative;
flex-shrink: 0;
}
.step-icon-glow {
position: absolute;
top: 50%;
left: calc(50% + 40px);
width: calc(100% - 80px);
height: 2px;
background: linear-gradient(90deg, var(--color-accent) 0%, rgba(234, 194, 110, 0.2) 100%);
z-index: 1;
inset: -4px;
background: var(--gradient-accent);
border-radius: 16px;
opacity: 0;
filter: blur(8px);
transition: opacity 0.3s ease;
}
.step-card:hover .step-icon-glow {
opacity: 0.5;
}
/* Иконка шага */
.step-icon {
width: 64px;
height: 64px;
background: rgba(255, 255, 255, 0.08);
border-radius: 12px;
width: 56px;
height: 56px;
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.step-card:hover .step-icon {
transform: translateY(-4px);
background: rgba(234, 194, 110, 0.15);
box-shadow: 0 8px 25px rgba(234, 194, 110, 0.2);
border-color: rgba(234, 194, 110, 0.3);
transform: scale(1.05);
}
.icon-emoji {
font-size: 2rem;
font-size: 1.75rem;
line-height: 1;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
transition: transform 0.3s ease;
display: inline-block;
}
.step-card:hover .icon-emoji {
@ -237,24 +387,98 @@ const {
/* Текст шага */
.step-content {
width: 100%;
flex: 1;
}
.step-title {
font-size: 1.25rem;
font-weight: 700;
color: #ffffff;
color: var(--color-light);
margin: 0 0 0.75rem 0;
line-height: 1.3;
}
.step-description {
font-size: 0.95rem;
line-height: 1.7;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
line-height: 1.6;
color: var(--color-gray);
margin: 0;
}
/* Соединительная линия */
.step-connector {
position: absolute;
right: -1.25rem;
top: 50%;
transform: translateY(-50%);
width: calc(100% + 1rem);
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
pointer-events: none;
}
.connector-line {
width: 100%;
height: 2px;
background: linear-gradient(90deg, var(--color-accent) 0%, rgba(234, 194, 110, 0.2) 100%);
position: relative;
}
.connector-dot {
position: absolute;
right: 0;
width: 8px;
height: 8px;
background: var(--color-accent);
border-radius: 50%;
box-shadow: 0 0 10px var(--color-accent);
}
/* Статистика */
.stats-bar {
display: flex;
justify-content: center;
align-items: center;
gap: 3rem;
padding: 2rem;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(10px);
border-radius: 60px;
border: 1px solid rgba(255, 255, 255, 0.05);
margin-bottom: 3rem;
flex-wrap: wrap;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 2rem;
font-weight: 800;
background: var(--gradient-accent);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
line-height: 1;
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 0.85rem;
color: var(--color-gray);
text-transform: uppercase;
letter-spacing: 1px;
}
.stat-divider {
width: 1px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
}
/* CTA кнопка */
.steps-cta {
text-align: center;
@ -263,48 +487,72 @@ const {
.steps-cta .btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 1rem 2rem;
font-size: 1.1rem;
padding: 0.875rem 1.5rem;
font-size: 1.125rem;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 8px 25px rgba(234, 194, 110, 0.3);
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
text-transform: none;
letter-spacing: normal;
position: relative;
overflow: hidden;
border: none;
min-height: 3.25rem;
}
.steps-cta .btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}
.steps-cta .btn:hover::before {
left: 100%;
}
.steps-cta .btn:hover {
transform: translateY(-3px);
box-shadow: 0 12px 35px rgba(234, 194, 110, 0.4);
opacity: 0.95;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
.steps-cta .btn:active {
transform: translateY(-1px);
}
.cta-arrow {
transition: transform 0.3s ease;
}
.steps-cta .btn:hover .cta-arrow {
transform: translateX(4px);
.steps-cta .btn:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
.steps-grid {
grid-template-columns: repeat(2, 1fr);
gap: 3rem;
.steps-container {
flex-direction: column;
gap: 1.5rem;
}
.step-card-wrapper {
width: 100%;
}
.step-connector {
display: none;
}
.stats-bar {
gap: 2rem;
padding: 1.5rem;
border-radius: 40px;
}
.stat-number {
font-size: 1.5rem;
}
}
@media (max-width: 768px) {
@ -312,42 +560,63 @@ const {
padding: 4rem 1rem;
}
.steps-grid {
grid-template-columns: 1fr;
gap: 2.5rem;
.section-header {
margin-bottom: 2rem;
}
.subtitle-wrapper {
gap: 0.5rem;
}
.subtitle-line {
width: 30px;
}
.section-description {
font-size: 1rem;
}
.step-card {
text-align: left;
align-items: flex-start;
padding: 1.5rem;
}
.step-number-wrapper {
justify-content: flex-start;
.step-header {
margin-bottom: 1rem;
justify-content: center;
}
.step-number {
width: 50px;
height: 50px;
width: 40px;
height: 40px;
font-size: 1.25rem;
border-radius: 12px;
}
.step-icon {
width: 56px;
height: 56px;
width: 48px;
height: 48px;
border-radius: 12px;
margin-left: auto;
margin-right: auto;
}
.step-content {
text-align: center;
}
.icon-emoji {
font-size: 1.75rem;
font-size: 1.5rem;
}
.step-title {
font-size: 1.15rem;
.stats-bar {
flex-direction: column;
gap: 1.5rem;
border-radius: 30px;
}
.step-description {
font-size: 0.9rem;
.stat-divider {
width: 40px;
height: 1px;
}
.steps-cta .btn {
@ -355,7 +624,6 @@ const {
justify-content: center;
padding: 0.875rem 1.5rem;
font-size: 1rem;
min-height: 3.25rem;
}
}
@ -366,6 +634,13 @@ const {
transform: none;
transition: none;
}
.step-card,
.steps-cta .btn,
.step-icon,
.icon-emoji {
transition: none;
}
}
</style>
@ -396,4 +671,4 @@ const {
document.querySelectorAll('.animate-on-scroll').forEach((el) => {
observer.observe(el);
});
</script>
</script>

View file

@ -167,16 +167,19 @@ import { COMPANY } from '@constants';
background: transparent;
border: none;
cursor: pointer;
transition: opacity 0.3s ease;
}
.burger-line {
width: 100%; height: 2.5px;
background-color: #1e3050;
border-radius: 4px; transition: 0.3s;
border-radius: 4px;
}
.burger-btn.active .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active .burger-line:nth-child(2) { opacity: 0; }
.burger-btn.active .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Скрытие гамбургера при открытом меню */
.burger-btn.active {
opacity: 0;
pointer-events: none;
}
/* --- АНИМАЦИИ ПРИ ЗАГРУЗКЕ --- */
.animate-load {
@ -263,11 +266,13 @@ import { COMPANY } from '@constants';
window.addEventListener('scroll', updateScroll, { passive: true });
// Открытие меню - добавляем active к бургеру для скрытия
burgerBtn?.addEventListener('click', () => {
mobileMenuOverlay?.classList.toggle('active');
burgerBtn?.classList.toggle('active');
document.body.style.overflow = mobileMenuOverlay?.classList.contains('active') ? 'hidden' : '';
mobileMenuOverlay?.classList.add('active');
burgerBtn?.classList.add('active');
document.body.style.overflow = 'hidden';
});
updateScroll();
});
</script>