/* Основные стили */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --light-background: #f3f4f6;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Градиентный фон */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Hero секция */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-demo {
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-demo:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Телефон */
.phone-wrapper {
    position: relative;
    width: 280px;
    height: 580px;
    margin: 0 auto;
    background: linear-gradient(145deg, #111111, #222222);
    border-radius: 45px;
    box-shadow:
        0 15px 35px -12px rgba(0, 0, 0, 0.2),
        0 5px 15px -8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.phone-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.03) 30%,
            rgba(255, 255, 255, 0.08) 40%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 60%);
    transform: translateX(-100%);
    animation: phoneShine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.phone-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 45px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02) 30%,
            rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.phone-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.25),
        0 8px 20px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    overflow: hidden;
    border-radius: 40px;
    box-shadow:
        inset 0 0 5px rgba(0, 0, 0, 0.5),
        inset 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #0a0a0a;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05);
}

.phone-notch::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #222;
    border-radius: 50%;
    left: 35px;
    box-shadow:
        inset 0 0 2px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-notch::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 6px;
    background: #222;
    border-radius: 3px;
    right: 30px;
    box-shadow:
        inset 0 0 2px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-buttons {
    position: absolute;
    right: -1px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 3;
}

.phone-button {
    width: 2px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-top-right-radius: 1px;
    border-bottom-right-radius: 1px;
    box-shadow:
        inset -1px 0 1px rgba(255, 255, 255, 0.05),
        1px 0 1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.phone-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scaleY(1.1);
}

.phone-button.small {
    height: 25px;
}

.phone-time {
    position: absolute;
    top: 45px;
    left: 30px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    z-index: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.phone-icons {
    position: absolute;
    top: 45px;
    right: 30px;
    z-index: 1;
    display: flex;
    gap: 10px;
}

.phone-icons i {
    color: #fff;
    font-size: 12px;
    opacity: 0.95;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Чат-демо внутри телефона */
.chat-demo {
    background: #0a0a0a;
    border-radius: 25px;
    padding: 1.5rem;
    margin: 70px 12px 12px;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: calc(100% - 85px);
    overflow-y: auto;
    position: relative;
}

.chat-demo::-webkit-scrollbar {
    width: 3px;
}

.chat-demo::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.5px;
}

.chat-demo::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.5px;
}

.chat-demo::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

.chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.chat-avatar:hover {
    transform: rotate(0deg) scale(1.05);
}

.chat-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.chat-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.chat-bubble {
    background: #e2e8f0;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    max-width: 85%;
    position: relative;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble.right {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-bubble:not(.right) {
    border-bottom-left-radius: 5px;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.4rem;
    text-align: right;
    opacity: 0.8;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.7rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: typing 1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Карточки */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Иконки */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s;
}

.card:hover .feature-icon::after {
    transform: scale(2);
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Этапы */
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.card:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Цены */
.price-feature {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.price-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.price-feature:hover::before {
    left: 100%;
}

.price-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Отзывы */
.review-card {
    overflow: hidden;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.review-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Кнопки */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Анимации для формы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fieldHover {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Стили формы с анимациями */
.form-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.form-field:nth-child(1) {
    animation-delay: 0.1s;
}

.form-field:nth-child(2) {
    animation-delay: 0.2s;
}

.form-field:nth-child(3) {
    animation-delay: 0.3s;
}

.form-field:nth-child(4) {
    animation-delay: 0.4s;
}

.form-field:nth-child(5) {
    animation-delay: 0.5s;
}

.field-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group {
    flex-grow: 1;
    margin-bottom: 0;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.75rem;
}

.form-control:hover {
    animation: fieldHover 2s infinite;
    background: rgba(255, 255, 255, 0.15);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    outline: none;
    animation: none;
}

.form-field:focus-within .field-icon {
    background: var(--primary-color);
    animation: iconPulse 2s infinite;
}

.submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.submit-btn:hover {
    transform: scale(1.05);
}

.submit-btn:active {
    transform: scale(0.95);
}

.submit-btn .btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.contact-form {
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-form:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Навигация */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.bg-white {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-background);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .chat-demo {
        margin-top: 3rem;
    }

    .phone-wrapper {
        transform: scale(0.9);
    }

    .navigation-path {
        display: none;
    }

    .path-svg {
        width: 30px;
        height: 100vh;
    }

    .road-base,
    .road-marks {
        stroke-width: 2;
        d: path("M15,0 L15,800");
    }

    .connection-line {
        display: none;
    }

    .path-points {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 20px 0;
        gap: 40px;
        left: 0;
        width: 30px;
    }

    .path-point {
        transform: none;
        opacity: 1;
        justify-content: center;
    }

    .point-marker {
        width: 20px;
        height: 20px;
        left: 5px;
    }

    .point-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .point-info {
        display: none;
    }

    .truck-container {
        width: 20px;
        height: 20px;
    }

    .truck {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .truck-particles span {
        width: 3px;
        height: 3px;
    }

    .exhaust {
        left: 15%;
        bottom: 35%;
    }

    .exhaust span {
        width: 8px;
        height: 8px;
    }

    @keyframes markerPulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.2);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .point-active .point-marker {
        animation: markerPulse 1.5s infinite;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f3f4f6;
        --light-text: #9ca3af;
        --background-color: #1f2937;
        --light-background: #374151;
    }

    .card {
        background: var(--background-color);
    }

    .chat-demo {
        background: var(--background-color);
    }

    .chat-bubble {
        background: var(--light-background);
        color: var(--text-color);
    }

    .phone-wrapper {
        border-color: #3d3d3d;
    }

    .phone-screen {
        background: var(--background-color);
    }
}

/* Демо-элементы в секции возможностей */
.feature-demo {
    margin: 2rem 0;
    height: 120px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-demo .clock {
    position: relative;
    z-index: 1;
}

/* Часы */
.clock {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: clockPulse 2s infinite;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.clock::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.clock::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 2px;
    transform-origin: bottom center;
    animation: clockHand 60s linear infinite;
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    bottom: 50%;
}

.clock .center-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    z-index: 3;
    animation: centerPulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.clock .hour-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clock .hour-mark {
    position: absolute;
    width: 3px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 1.5px;
    transform-origin: center 55px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    left: calc(50% - 1.5px);
}

/* Обертка для диаграммы */
.chart-wrapper {
    padding: 20px 0 40px;
    margin-top: 20px;
}

/* Диаграмма роста продаж */
.sales-chart {
    width: 100%;
    height: 140px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 30px;
    gap: 25px;
    background: linear-gradient(180deg,
            rgba(37, 99, 235, 0.03) 0%,
            rgba(37, 99, 235, 0.01) 100%);
    border-radius: 12px;
}

.sales-bar {
    position: relative;
    width: 45px;
    background: linear-gradient(180deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    border-radius: 6px 6px 0 0;
    transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sales-bar:nth-child(1) {
    height: 45%;
}

.sales-bar:nth-child(2) {
    height: 65%;
}

.sales-bar:nth-child(3) {
    height: 55%;
}

.sales-bar:nth-child(4) {
    height: 80%;
}

.sales-bar:nth-child(5) {
    height: 95%;
}

.sales-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sales-bar:hover::before {
    opacity: 1;
}

/* Метки месяцев */
.sales-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    text-shadow: none;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .sales-bar-label {
        color: var(--primary-color);
        text-shadow: none;
    }
}

/* Анимации часов */
@keyframes clockHand {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes clockPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

@keyframes centerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Позиционирование меток часов */
.clock .hour-mark:nth-child(1) {
    transform: rotate(30deg) translateY(-55px);
}

.clock .hour-mark:nth-child(2) {
    transform: rotate(60deg) translateY(-55px);
}

.clock .hour-mark:nth-child(3) {
    transform: rotate(90deg) translateY(-55px);
}

.clock .hour-mark:nth-child(4) {
    transform: rotate(120deg) translateY(-55px);
}

.clock .hour-mark:nth-child(5) {
    transform: rotate(150deg) translateY(-55px);
}

.clock .hour-mark:nth-child(6) {
    transform: rotate(180deg) translateY(-55px);
}

.clock .hour-mark:nth-child(7) {
    transform: rotate(210deg) translateY(-55px);
}

.clock .hour-mark:nth-child(8) {
    transform: rotate(240deg) translateY(-55px);
}

.clock .hour-mark:nth-child(9) {
    transform: rotate(270deg) translateY(-55px);
}

.clock .hour-mark:nth-child(10) {
    transform: rotate(300deg) translateY(-55px);
}

.clock .hour-mark:nth-child(11) {
    transform: rotate(330deg) translateY(-55px);
}

.clock .hour-mark:nth-child(12) {
    transform: rotate(0deg) translateY(-55px);
}

/* График */
.chart {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 0 1rem;
    position: relative;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    height: 0;
    transition: height 0.5s ease;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    bottom: 30%;
    transform: scaleX(0);
    animation: lineGrow 1s ease forwards 1s;
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}

/* Пользователи */
.users {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.user-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.user-circle.user-active {
    opacity: 1;
    transform: scale(1);
}

/* Демо в ценах */
.price-icon {
    position: relative;
    display: inline-block;
}

.price-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.price-feature:hover .price-glow {
    opacity: 0.3;
}

.bot-demo {
    margin: 1rem 0;
    position: relative;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    transform: translateX(-100%);
    animation: slideInMessage 0.5s ease forwards;
}

.bot-dots {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.bot-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: dotPulse 1s infinite;
}

.bot-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.bot-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.cogs-demo {
    position: relative;
    height: 60px;
}

.cog-large,
.cog-small {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cog-large {
    width: 40px;
    height: 40px;
    left: 30%;
    animation: spin 4s linear infinite;
}

.cog-small {
    width: 30px;
    height: 30px;
    left: 55%;
    top: 20%;
    animation: spin 4s linear infinite reverse;
}

.brain-demo {
    position: relative;
    height: 60px;
}

.neuron {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.neuron:nth-child(1) {
    left: 20%;
    top: 20%;
}

.neuron:nth-child(2) {
    left: 50%;
    top: 50%;
}

.neuron:nth-child(3) {
    left: 80%;
    top: 20%;
}

.synapse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: synapseFlash 2s infinite;
}

@keyframes synapseFlash {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Путь навигации */
.navigation-path {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 300px;
    z-index: 1000;
    pointer-events: none;
}

.path-svg {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.road-base {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 20;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.road-marks {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px var(--primary-color));
    transition: stroke-dashoffset 0.3s ease;
}

.connection-line {
    stroke: #e5e7eb;
    stroke-width: 2;
    stroke-dasharray: 4;
    animation: lineDash 20s linear infinite;
}

@keyframes lineDash {
    to {
        stroke-dashoffset: -100;
    }
}

.path-points {
    position: absolute;
    right: 20px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 100px 0;
}

.path-point {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.path-point:hover {
    transform: translateX(0);
    opacity: 1;
}

.point-marker {
    position: relative;
    width: 50px;
    height: 50px;
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
    opacity: 0;
}

.point-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.point-info {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.point-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.point-distance {
    font-size: 12px;
    color: var(--light-text);
}

.point-active {
    transform: translateX(0);
    opacity: 1;
}

.point-active .point-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.point-active .marker-pulse {
    opacity: 1;
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.truck-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.truck {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform-origin: center;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.truck-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(4px);
    animation: shadowPulse 2s ease-in-out infinite;
}

.truck-particles {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.truck-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.truck-particles span:nth-child(1) {
    animation: particleFly 1s ease-out infinite;
}

.truck-particles span:nth-child(2) {
    animation: particleFly 1s ease-out infinite 0.3s;
}

.truck-particles span:nth-child(3) {
    animation: particleFly 1s ease-out infinite 0.6s;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.2;
    }
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-20px, -20px);
        opacity: 0;
    }
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transform: rotate(-5deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 45%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 55%,
            transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.logo:hover .logo-icon::before {
    transform: translateX(100%);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

/* Иконки лояльности */
.loyalty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
}

.loyalty-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loyalty-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loyalty-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loyalty-icon:hover {
    transform: scale(1.1);
    box-shadow:
        0 10px 20px rgba(37, 99, 235, 0.2),
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.loyalty-icon:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.loyalty-icon:hover::after {
    opacity: 1;
}

.loyalty-icon:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Специальные эффекты для разных иконок */
.loyalty-icon.heart:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    transform: scale(1.1) rotate(-5deg);
}

.loyalty-icon.smile:hover {
    background: linear-gradient(135deg, #ffd93d, #ff9f43);
    transform: scale(1.1) rotate(5deg);
}

.loyalty-icon.thumbs-up:hover {
    background: linear-gradient(135deg, #4cd137, #44bd32);
    transform: scale(1.1) rotate(-5deg);
}

/* Пульсация для иконок */
@keyframes iconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.loyalty-icon:hover {
    animation: iconPulse 1.5s infinite;
}

/* Выхлопные газы */
.exhaust {
    position: absolute;
    left: 22%;
    bottom: 35%;
    z-index: 1;
    transform: rotate(-15deg);
}

.exhaust span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(150, 150, 150, 0.8);
    border-radius: 50%;
    animation: exhaustSmoke 2s infinite;
    filter: blur(2px);
}

.exhaust span:nth-child(1) {
    animation-delay: 0s;
}

.exhaust span:nth-child(2) {
    animation-delay: 0.4s;
}

.exhaust span:nth-child(3) {
    animation-delay: 0.8s;
}

.exhaust span:nth-child(4) {
    animation-delay: 1.2s;
}

.exhaust span:nth-child(5) {
    animation-delay: 1.6s;
}

@keyframes exhaustSmoke {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.9;
    }

    20% {
        transform: translate(-8px, -5px) scale(1.3);
        opacity: 0.8;
    }

    40% {
        transform: translate(-15px, -8px) scale(1.6);
        opacity: 0.6;
    }

    60% {
        transform: translate(-22px, -10px) scale(1.9);
        opacity: 0.4;
    }

    80% {
        transform: translate(-28px, -12px) scale(2.2);
        opacity: 0.2;
    }

    100% {
        transform: translate(-35px, -15px) scale(2.5);
        opacity: 0;
    }
}

/* Анимация покачивания грузовика */
.review-truck {
    animation: truckWobble 3s ease-in-out infinite;
}

@keyframes truckWobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg) translateY(-1px);
    }

    75% {
        transform: rotate(-1deg) translateY(1px);
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .exhaust span {
        background: rgba(180, 180, 180, 0.6);
    }
}

.review-truck-container:hover .exhaust span {
    animation-duration: 1.2s;
}

/* Добавляем стили для прогресса дороги */
.road-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.5s ease;
}

.road-progress.active {
    stroke-dashoffset: 0;
}