Main functions

This commit is contained in:
2025-10-26 14:44:10 +09:00
parent 6ff35e26f4
commit 291fc63a4c
901 changed files with 79783 additions and 201383 deletions

View File

@@ -465,89 +465,408 @@ body {
/* Calculator Styles */
.calculator-step {
display: none;
animation: fadeInUp 0.5s ease-in-out;
}
.calculator-step.active {
display: block;
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Step Indicators */
.calculator-progress-wrapper {
position: relative;
}
.step-indicator {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 2;
}
.step-number {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e5e7eb;
color: #6b7280;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-bottom: 8px;
transition: all 0.3s ease;
}
.step-indicator.active .step-number {
background: linear-gradient(135deg, #3B82F6, #8B5CF6);
color: white;
transform: scale(1.1);
}
.step-indicator.completed .step-number {
background: linear-gradient(135deg, #10B981, #059669);
color: white;
transform: scale(1.05);
}
.step-indicator.completed .step-number::after {
content: '✓';
position: absolute;
font-size: 14px;
font-weight: bold;
}
.step-label {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
text-align: center;
transition: color 0.3s ease;
}
.step-indicator.active .step-label {
color: #3B82F6;
font-weight: 600;
}
.step-indicator.completed .step-label {
color: #10B981;
font-weight: 600;
}
.step-connector {
flex: 1;
height: 2px;
background: #e5e7eb;
margin: 0 1rem;
position: relative;
top: -15px;
}
/* Selection indicators */
.selection-indicator {
transition: all 0.3s ease;
}
.service-option.selected .selection-indicator,
.complexity-option.selected .selection-indicator,
.timeline-option.selected .selection-indicator {
opacity: 1 !important;
}
.service-option.selected .selection-indicator .w-6,
.complexity-option.selected .selection-indicator .w-6,
.timeline-option.selected .selection-indicator .w-6 {
background: #3B82F6;
border-color: #3B82F6;
position: relative;
}
.service-option.selected .selection-indicator .w-6::after,
.complexity-option.selected .selection-indicator .w-6::after,
.timeline-option.selected .selection-indicator .w-6::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 12px;
font-weight: bold;
}
.service-option,
.complexity-option,
.timeline-option {
cursor: pointer;
transition: all 0.3s ease;
position: relative;
border-width: 2px;
}
/* Calculator specific improvements */
.calculator-step {
width: 100%;
}
/* Better spacing and padding for calculator */
.calculator-step .service-option,
.calculator-step .complexity-option,
.calculator-step .timeline-option {
margin: 0.5rem 0;
padding: 1.5rem;
}
/* Ensure text doesn't touch edges */
.calculator-step h2,
.calculator-step h3,
.calculator-step h4,
.calculator-step p {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
/* Responsive padding for service options */
@media (max-width: 640px) {
.calculator-step .service-option,
.calculator-step .complexity-option,
.calculator-step .timeline-option {
padding: 1rem;
margin: 0.25rem 0;
}
.calculator-step .space-y-4 > *,
.calculator-step .space-y-8 > * {
margin-top: 0.75rem;
}
}
/* Compact service options for full width layout */
.service-option.compact {
padding: 1rem 1.5rem;
border-radius: 12px;
margin-bottom: 0.5rem;
}
.service-option.compact .w-14 {
width: 3rem;
height: 3rem;
}
.service-option.compact h3 {
font-size: 1rem;
margin-bottom: 0.25rem;
}
.service-option.compact p {
font-size: 0.875rem;
line-height: 1.4;
}
/* Table-style layout for complexity and timeline */
.complexity-option,
.timeline-option {
min-height: 140px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.complexity-option .w-16,
.timeline-option .w-16 {
width: 3.5rem;
height: 3.5rem;
margin: 0 auto 1rem auto;
}
.complexity-option h4,
.timeline-option h4 {
font-size: 1.1rem;
margin-bottom: 0.75rem;
}
.complexity-option p,
.timeline-option p {
font-size: 0.9rem;
line-height: 1.4;
margin-bottom: 0.5rem;
}
/* Enhanced button styles */
.next-step,
.prev-step,
.restart-calculator {
font-weight: 600;
letter-spacing: 0.025em;
white-space: nowrap;
}
/* Better result card styling */
#step-3 .relative {
max-width: none;
}
#step-3 #final-price {
word-break: break-word;
}
/* Service Options Hover Effects */
.service-option[data-service="web"]:hover {
border-color: #3B82F6 !important;
}
.service-option[data-service="mobile"]:hover {
border-color: #10B981 !important;
}
.service-option[data-service="design"]:hover {
border-color: #8B5CF6 !important;
}
.service-option[data-service="marketing"]:hover {
border-color: #F59E0B !important;
}
/* Complexity Options Hover Effects */
.complexity-option[data-value="simple"]:hover {
border-color: #10B981 !important;
}
.complexity-option[data-value="medium"]:hover {
border-color: #F59E0B !important;
}
.complexity-option[data-value="complex"]:hover {
border-color: #EF4444 !important;
}
/* Timeline Options Hover Effects */
.timeline-option[data-value="standard"]:hover {
border-color: #3B82F6 !important;
}
.timeline-option[data-value="rush"]:hover {
border-color: #F97316 !important;
}
.timeline-option[data-value="extended"]:hover {
border-color: #059669 !important;
}
.service-option:hover,
.complexity-option:hover,
.timeline-option:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}
/* Selected states with specific colors */
.service-option[data-service="web"].selected {
border-color: #3B82F6 !important;
}
.service-option[data-service="mobile"].selected {
border-color: #10B981 !important;
}
.service-option[data-service="design"].selected {
border-color: #8B5CF6 !important;
}
.service-option[data-service="marketing"].selected {
border-color: #F59E0B !important;
}
.complexity-option[data-value="simple"].selected {
border-color: #10B981 !important;
}
.complexity-option[data-value="medium"].selected {
border-color: #F59E0B !important;
}
.complexity-option[data-value="complex"].selected {
border-color: #EF4444 !important;
}
.timeline-option[data-value="standard"].selected {
border-color: #3B82F6 !important;
}
.timeline-option[data-value="rush"].selected {
border-color: #F97316 !important;
}
.timeline-option[data-value="extended"].selected {
border-color: #059669 !important;
}
.service-option.selected,
.complexity-option.selected,
.timeline-option.selected {
border-color: #3B82F6 !important;
background-color: #EBF8FF !important;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
background: linear-gradient(135deg, #EBF8FF, #F0F9FF) !important;
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}
.service-option.selected::after,
.complexity-option.selected::after,
.timeline-option.selected::after {
content: '✓';
position: absolute;
top: 0.5rem;
right: 0.5rem;
width: 24px;
height: 24px;
background: #3B82F6;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
/* Dark mode adjustments for selected states */
.dark .service-option.selected,
.dark .complexity-option.selected,
.dark .timeline-option.selected {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1)) !important;
border-color: #60A5FA !important;
}
/* Price Display Animation */
#final-price {
animation: priceReveal 0.8s ease-in-out;
animation: priceReveal 1.2s ease-in-out;
}
@keyframes priceReveal {
0% {
opacity: 0;
transform: scale(0.8);
transform: scale(0.8) rotateY(180deg);
}
50% {
transform: scale(1.1);
transform: scale(1.1) rotateY(90deg);
}
100% {
opacity: 1;
transform: scale(1);
transform: scale(1) rotateY(0deg);
}
}
/* Calculator Progress Bar */
.calculator-progress {
width: 100%;
height: 4px;
height: 6px;
background: #e5e7eb;
border-radius: 2px;
margin-bottom: 2rem;
border-radius: 3px;
overflow: hidden;
position: relative;
}
.calculator-progress-bar {
height: 100%;
background: linear-gradient(90deg, #3B82F6, #8B5CF6);
border-radius: 2px;
transition: width 0.3s ease;
background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4);
border-radius: 3px;
transition: width 0.6s ease-in-out;
width: 33.33%;
position: relative;
overflow: hidden;
}
.calculator-progress-bar::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
0% { left: -100%; }
100% { left: 100%; }
}
.calculator-progress-bar.step-1 {
width: 33.33%;
}
@@ -559,6 +878,11 @@ body {
width: 100%;
}
/* Button hover effects */
.group:hover .fas {
transform: translateX(2px);
}
/* Calculator Mobile Improvements */
@media (max-width: 768px) {
.service-option,
@@ -568,7 +892,27 @@ body {
}
#final-price {
font-size: 2rem;
font-size: 2.5rem;
}
.step-connector {
display: none;
}
.calculator-progress-wrapper .flex {
flex-direction: column;
gap: 1rem;
}
.step-indicator {
flex-direction: row;
gap: 0.5rem;
}
.step-number {
width: 32px;
height: 32px;
margin-bottom: 0;
}
}

197
public/css/sticky-price.css Normal file
View File

@@ -0,0 +1,197 @@
/* Independent Floating Price Island */
#stickyPriceContainer {
position: fixed;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 45;
display: none;
animation: slideUpIn 0.3s ease-out;
max-width: 56rem; /* max-w-4xl = 896px - match calculator width */
width: calc(100% - 2rem);
/* Enhanced backdrop blur effect */
-webkit-backdrop-filter: blur(12px) saturate(180%);
backdrop-filter: blur(12px) saturate(180%);
/* Smooth transitions */
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-price-island {
background: rgba(255, 255, 255, 0.95);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
padding: 1rem;
transition: all 0.3s ease;
}
.dark .sticky-price-island {
background: rgba(31, 41, 55, 0.95);
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.sticky-price-island:hover {
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.dark .sticky-price-island:hover {
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
#stickyPriceContainer.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
#stickyPriceContainer.hide {
transform: translateX(-50%) translateY(100%);
opacity: 0;
}
/* Price breakdown sections */
.price-breakdown-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
transition: all 0.2s ease;
}
.dark .price-breakdown-item {
border-bottom-color: rgba(255, 255, 255, 0.05);
}
.price-breakdown-item:last-child {
border-bottom: none;
margin-top: 0.5rem;
padding-top: 0.75rem;
border-top: 2px solid rgba(59, 130, 246, 0.2);
font-weight: 600;
}
.breakdown-label {
font-size: 0.875rem;
color: #6b7280;
transition: color 0.2s ease;
}
.dark .breakdown-label {
color: #9ca3af;
}
.breakdown-value {
font-weight: 500;
color: #374151;
transition: color 0.2s ease;
}
.dark .breakdown-value {
color: #f3f4f6;
}
.breakdown-multiplier {
color: #059669;
font-size: 0.875rem;
}
.dark .breakdown-multiplier {
color: #10b981;
}
.breakdown-discount {
color: #dc2626;
font-size: 0.875rem;
}
.dark .breakdown-discount {
color: #ef4444;
}
/* Final price styling */
.final-price-value {
color: #1f2937;
font-size: 1.125rem;
font-weight: 700;
}
.dark .final-price-value {
color: #f9fafb;
}
/* Price update animation */
#currentPrice, #finalCalculation {
transition: all 0.2s ease;
}
.price-update {
animation: priceUpdate 0.3s ease-out;
}
@keyframes priceUpdate {
0% { transform: scale(1); }
50% { transform: scale(1.05); color: #3b82f6; }
100% { transform: scale(1); }
}
/* Animation */
@keyframes slideUpIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(20px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
/* Responsive adjustments */
@media (max-width: 640px) {
#stickyPriceContainer {
bottom: 0.5rem;
max-width: calc(100% - 2rem); /* Full width minus padding on mobile */
width: calc(100% - 2rem);
}
.sticky-price-island {
padding: 0.75rem;
border-radius: 12px;
}
.price-breakdown-item {
padding: 0.375rem 0;
}
.breakdown-label {
font-size: 0.8125rem;
}
.final-price-value {
font-size: 1rem;
}
}
/* Hide on very small screens to avoid overlap */
@media (max-width: 380px) {
#stickyPriceContainer {
display: none !important;
}
}
/* Blur effect support fallback */
@supports not (backdrop-filter: blur(12px)) {
.sticky-price-island {
background: rgba(255, 255, 255, 0.95);
}
.dark .sticky-price-island {
background: rgba(17, 24, 39, 0.95);
}
}

3898
public/css/tailwind.css Normal file

File diff suppressed because it is too large Load Diff

103
public/css/theme-toggle.css Normal file
View File

@@ -0,0 +1,103 @@
/* Animated Theme Toggle Styles */
.theme-toggle-slider {
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
background-color 0.3s ease;
}
.theme-sun-icon,
.theme-moon-icon {
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Initial states - Light theme */
.theme-sun-icon {
transform: rotate(0deg) scale(1);
opacity: 1;
}
.theme-moon-icon {
transform: rotate(-180deg) scale(0);
opacity: 0;
}
/* Dark theme states */
.dark .theme-sun-icon {
transform: rotate(180deg) scale(0);
opacity: 0;
}
.dark .theme-moon-icon {
transform: rotate(0deg) scale(1);
opacity: 1;
}
/* Toggle background enhancement with perfect centering */
.theme-toggle-bg {
background: linear-gradient(135deg, #e0f2fe 0%, #fff3e0 100%);
border: 2px solid #e5e7eb;
transition: all 0.3s ease;
position: relative;
display: flex;
align-items: center;
}
.dark .theme-toggle-bg {
background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
border-color: #6b7280;
}
/* Enhanced slider styles with perfect centering */
.theme-toggle-slider {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
/* Позволяем Tailwind CSS управлять позиционированием */
}
.dark .theme-toggle-slider {
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
border-color: rgba(0, 0, 0, 0.2);
}
/* Hover effects */
label:hover .theme-toggle-slider {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Focus styles for accessibility */
input[type="checkbox"]:focus + label > div {
box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}
/* Animation keyframes for icon rotation */
@keyframes iconSpinIn {
from {
transform: rotate(-180deg) scale(0);
opacity: 0;
}
to {
transform: rotate(0deg) scale(1);
opacity: 1;
}
}
@keyframes iconSpinOut {
from {
transform: rotate(0deg) scale(1);
opacity: 1;
}
to {
transform: rotate(180deg) scale(0);
opacity: 0;
}
}
/* Animation states */
.icon-animate-in {
animation: iconSpinIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.icon-animate-out {
animation: iconSpinOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}