/* ============= HEADER & NAVIGATION ============= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-orange);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    transition: width 0.2s ease;
}

nav a:hover {
    color: var(--primary-blue);
}

nav a:hover::after {
    width: 100%;
}

.phone-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

/* ============= HERO SECTION ============= */

/*.hero {
    margin-top: 70px;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    overflow: hidden;
    color: #ffffff;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* верхняя часть — небо/город */
/*        linear-gradient(
            to bottom,
            #0f172a 0%,
            #1d4ed8 25%,
            #1e40af 45%,
            #020617 100%
        ),
        /* диагональная дорога */
 /*       linear-gradient(
            115deg,
            transparent 0%,
            transparent 40%,
            rgba(15, 23, 42, 0.95) 41%,
            rgba(15, 23, 42, 0.98) 60%,
            transparent 61%,
            transparent 100%
        );
    background-blend-mode: normal;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image: linear-gradient(
        115deg,
        transparent 0%,
        transparent 42%,
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.9) 0,
            rgba(255, 255, 255, 0.9) 8px,
            transparent 8px,
            transparent 18px
        ) 42%,
        transparent 60%,
        transparent 100%
    );
    opacity: 0.45;
    pointer-events: none;
}


.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
}
*/

.hero {
    margin-top: 70px;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    overflow: hidden;
    color: #ffffff;
}

/* ТЕМАТИЧЕСКИЙ ФОН: НЕБО + ДОРОГА */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        /* верх — небо / город */
        linear-gradient(
            to bottom,
            #0f172a 0%,
            #1d4ed8 30%,
            #1e40af 55%,
            #020617 100%
        ),
        /* диагональная полоса дороги */
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 42%,
            #020617 43%,
            #020617 62%,
            transparent 63%,
            transparent 100%
        );
    background-blend-mode: normal;
}

/* дорожная разметка */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: repeating-linear-gradient(
        115deg,
        transparent 0,
        transparent 41%,
        rgba(255, 255, 255, 0.95) 41%,
        rgba(255, 255, 255, 0.95) 42.2%,
        transparent 42.2%,
        transparent 45%
    );
    opacity: 0.35;
    pointer-events: none;
}

/* слои над фоном */
.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    text-align: center;
}



.shape {
    position: absolute;
    opacity: 0.14;
    border-radius: 999px;
    filter: blur(4px);
}

.shape-circle-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    top: 8%;
    left: 5%;
}

.shape-circle-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    bottom: 8%;
    right: 6%;
}

.shape-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: 50%;
    right: 18%;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    text-align: center;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.96;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============= BUTTONS ============= */

.btn {
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-blue);
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ============= FOOTER ============= */

footer {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 32px;
    margin-bottom: 28px;
}

.footer-section h4 {
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--primary-orange);
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

/* ==== АНИМИРОВАННЫЙ ФОН HERO (ПДД) ==== */

.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* ==== МАШИНКА, ЕДУЩАЯ ПО ДОРОГЕ ==== */

.car {
    position: absolute;
    z-index: 3; /* над дорогой, под текстом не лежит, т.к. hero-content выше */
    width: 90px;
    height: 40px;
    /* стартовая точка – снизу справа (со стороны конца диагональной дороги) */
    bottom: 16%;
    right: -120px;
    transform-origin: center;
    /* движение по диагонали + лёгкий наклон */
    animation: car-drive 10s linear infinite;
}

/* корпус машинки */

.car-body {
    position: relative;
    width: 100%;
    height: 26px;
}

.car-top {
    position: absolute;
    left: 18px;
    right: 20px;
    top: -14px;
    height: 14px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.4);
}

.car-main {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 60%);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    padding: 4px 8px;
    gap: 6px;
}

.car-window {
    flex: 1;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.9), rgba(148, 163, 184, 0.9));
}

.car-headlight {
    width: 8px;
    height: 10px;
    border-radius: 4px;
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

/* колёса */

.car-wheels {
    position: absolute;
    bottom: -8px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wheel {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #020617;
    border: 3px solid #9ca3af;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.6);
    animation: wheel-spin 0.6s linear infinite;
}

/* движение машинки по диагонали дороги */

@keyframes car-drive {
    0% {
        transform: translate3d(0, 0, 0) rotate(-12deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    50% {
        /* едем по диагонали вверх-влево, чуть выше середины */
        transform: translate3d(-50vw, 10vh, 0) rotate(-6deg);
    }
    92% {
        opacity: 1;
    }
    100% {
        /* уезжаем далеко за левый верх */
        transform: translate3d(-110vw, 26vh, 0) rotate(-4deg);
        opacity: 0;
    }
}

/* вращение колёс */

@keyframes wheel-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Дорога — пунктирная линия, плавно «едет» вправо */

.road-line {
    position: absolute;
    left: -40%;
    right: -40%;
    height: 4px;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.0) 0,
        rgba(255, 255, 255, 0.55) 10%,
        rgba(255, 255, 255, 0.0) 20%
    );
    background-size: 60px 4px;
    opacity: 0.4;
}

.road-line-main {
    bottom: 18%;
    animation: road-move 12s linear infinite;
}

@keyframes road-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(60px);
    }
}

/* Дорожные знаки */

.traffic-sign {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #facc15; /* жёлтый обод — как предупреждающий знак */
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-weight: 800;
    font-size: 20px;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.6);
}

/* Конкретные позиции и анимации */

.sign-speed {
    top: 18%;
    left: 10%;
    border-color: #ef4444;                 /* красный круг — ограничение скорости */
    animation: sign-float-1 14s ease-in-out infinite;
}

.sign-priority {
    top: 12%;
    right: 16%;
    border-radius: 12px;                   /* квадратный «!» — как знак приоритета/внимания */
    border-color: #facc15;
    animation: sign-float-2 18s ease-in-out infinite;
}

.sign-turn {
    bottom: 22%;
    left: 66%;
    border-color: #22c55e;                 /* зелёный — безопасный манёвр */
    animation: sign-float-3 16s ease-in-out infinite;
}

/* дополнительные знаки */

.sign-stop {
    top: 30%;
    left: 24%;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border-color: #ef4444;
    background: rgba(15, 23, 42, 0.95);
    font-size: 14px;
    letter-spacing: 0.12em;
    animation: sign-stop-float 17s ease-in-out infinite;
}

.sign-main-road {
    top: 26%;
    right: 6%;
    border-radius: 10px;
    border-width: 3px;
    border-color: #facc15;
    background: #ffffff;
    font-size: 22px;
    animation: sign-main-road-float 20s ease-in-out infinite;
}

.sign-crosswalk {
    bottom: 14%;
    left: 14%;
    border-radius: 12px;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.9);
    font-size: 20px;
    animation: sign-crosswalk-float 19s ease-in-out infinite;
}

/* анимации для новых знаков */

@keyframes sign-stop-float {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.9; }
    20%  { transform: translate3d(4px, -6px, 0) rotate(-3deg); opacity: 1; }
    50%  { transform: translate3d(-4px, 4px, 0) rotate(2deg); opacity: 0.95; }
    80%  { transform: translate3d(6px, -2px, 0) rotate(-2deg); opacity: 1; }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.9; }
}

@keyframes sign-main-road-float {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    25%  { transform: translate3d(-6px, 4px, 0) scale(1.04); }
    50%  { transform: translate3d(4px, -2px, 0) scale(0.98); }
    75%  { transform: translate3d(-2px, 6px, 0) scale(1.03); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes sign-crosswalk-float {
    0%   { transform: translate3d(0, 0, 0); }
    20%  { transform: translate3d(6px, 4px, 0); }
    40%  { transform: translate3d(-4px, 6px, 0); }
    60%  { transform: translate3d(2px, -4px, 0); }
    80%  { transform: translate3d(-6px, 2px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}


/* Плавание знаков */

@keyframes sign-float-1 {
    0%   { transform: translate3d(0, 0, 0); opacity: 0.85; }
    25%  { transform: translate3d(10px, -10px, 0); opacity: 1; }
    50%  { transform: translate3d(2px, 4px, 0); opacity: 0.9; }
    75%  { transform: translate3d(8px, -6px, 0); opacity: 1; }
    100% { transform: translate3d(0, 0, 0); opacity: 0.85; }
}

@keyframes sign-float-2 {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(-8px, 6px, 0) rotate(-4deg); }
    50%  { transform: translate3d(4px, -4px, 0) rotate(2deg); }
    75%  { transform: translate3d(-4px, 8px, 0) rotate(-3deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes sign-float-3 {
    0%   { transform: translate3d(0, 0, 0); }
    20%  { transform: translate3d(-6px, -4px, 0); }
    40%  { transform: translate3d(2px, 6px, 0); }
    60%  { transform: translate3d(-4px, -2px, 0); }
    80%  { transform: translate3d(6px, 4px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Светофор */

.traffic-light {
    position: absolute;
    bottom: 10%;
    right: 8%;
    width: 26px;
    padding: 8px 6px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.traffic-light .light {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #1f2937;
    opacity: 0.25;
}

/* Мигающий светофор по кругу: красный → жёлтый → зелёный */

.traffic-light .red {
    background: #ef4444;
    animation: tl-red 6s infinite;
}

.traffic-light .yellow {
    background: #facc15;
    animation: tl-yellow 6s infinite;
}

.traffic-light .green {
    background: #22c55e;
    animation: tl-green 6s infinite;
}

@keyframes tl-red {
    0%, 20%   { opacity: 1; }
    25%, 100% { opacity: 0.2; }
}

@keyframes tl-yellow {
    0%, 20%   { opacity: 0.2; }
    25%, 45%  { opacity: 1; }
    50%, 100% { opacity: 0.2; }
}

@keyframes tl-green {
    0%, 45%   { opacity: 0.2; }
    50%, 80%  { opacity: 1; }
    85%, 100% { opacity: 0.2; }
}

/* лёгкое «дыхание» фона hero, как движение камеры */

.hero-background {
    /* твой текущий фон с дорогой */
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            to bottom,
            #0f172a 0%,
            #1d4ed8 30%,
            #1e40af 55%,
            #020617 100%
        ),
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 42%,
            #020617 43%,
            #020617 62%,
            transparent 63%,
            transparent 100%
        );
    background-blend-mode: normal;
    animation: hero-parallax 18s ease-in-out infinite;
}

@keyframes hero-parallax {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -6px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}


/* ==== РАСШИРЕННАЯ АНИМАЦИЯ HERO ФОНА ==== */

.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ===== ГРАДИЕНТ, ДВИЖУЩИЙСЯ ПО ФОНУ ===== */

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(79, 70, 229, 0.15) 25%,
        transparent 50%,
        rgba(249, 115, 22, 0.12) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite;
    z-index: 0;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== КРАСИВЫЕ АНИМИРОВАННЫЕ БЛОБЫ ===== */

.blob {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    mix-blend-mode: screen;
    filter: blur(8px);
}

.blob-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #f97316 0%, transparent 70%);
    top: -120px;
    left: -80px;
    border-radius: 38% 62% 58% 42% / 58% 41% 59% 42%;
    animation: blob-morph-1 15s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.3);
}

.blob-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: -100px;
    right: -60px;
    border-radius: 71% 29% 66% 34% / 40% 44% 56% 60%;
    animation: blob-morph-2 18s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.25);
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: 35%;
    right: 8%;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: blob-morph-3 17s ease-in-out infinite;
    box-shadow: 0 0 45px rgba(14, 165, 233, 0.2);
}

@keyframes blob-morph-1 {
    0% {
        border-radius: 38% 62% 58% 42% / 58% 41% 59% 42%;
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        border-radius: 71% 29% 66% 34% / 40% 44% 56% 60%;
        transform: translate3d(20px, -30px, 0) scale(1.05);
    }
    50% {
        border-radius: 40% 60% 54% 46% / 52% 50% 50% 48%;
        transform: translate3d(-10px, 20px, 0) scale(0.95);
    }
    75% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translate3d(15px, 10px, 0) scale(1.02);
    }
    100% {
        border-radius: 38% 62% 58% 42% / 58% 41% 59% 42%;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes blob-morph-2 {
    0% {
        border-radius: 71% 29% 66% 34% / 40% 44% 56% 60%;
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        border-radius: 40% 60% 54% 46% / 52% 50% 50% 48%;
        transform: translate3d(-25px, 15px, 0) scale(1.08);
    }
    66% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translate3d(10px, -20px, 0) scale(0.98);
    }
    100% {
        border-radius: 71% 29% 66% 34% / 40% 44% 56% 60%;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes blob-morph-3 {
    0% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translate3d(0, 0, 0) scale(1);
    }
    40% {
        border-radius: 38% 62% 58% 42% / 58% 41% 59% 42%;
        transform: translate3d(-15px, -25px, 0) scale(1.04);
    }
    80% {
        border-radius: 71% 29% 66% 34% / 40% 44% 56% 60%;
        transform: translate3d(20px, 15px, 0) scale(0.96);
    }
    100% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* ===== ВОЛНЫ ===== */

.wave {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.wave-1 {
    width: 200%;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M0,50 Q250,0 500,50 T1000,50" stroke="%233b82f6" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    bottom: 20%;
    left: 0;
    animation: wave-float-1 8s linear infinite;
}

.wave-2 {
    width: 200%;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M0,50 Q250,100 500,50 T1000,50" stroke="%23f97316" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    bottom: 15%;
    left: 0;
    animation: wave-float-2 10s linear infinite reverse;
}

@keyframes wave-float-1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes wave-float-2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* ===== ПЛАВАЮЩИЕ СВЕТЯЩИЕСЯ ЧАСТИЦЫ ===== */

.particles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.5) 70%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: particle-float 6s ease-in-out infinite;
}

.particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle-2 {
    left: 30%;
    top: 40%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle-3 {
    right: 20%;
    top: 15%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle-4 {
    right: 10%;
    bottom: 30%;
    animation-delay: 0.5s;
    animation-duration: 10s;
}

.particle-5 {
    left: 50%;
    bottom: 20%;
    animation-delay: 1.5s;
    animation-duration: 8.5s;
}

.particle-6 {
    left: 70%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 9.5s;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--tx, 40px), var(--ty, -60px), 0) scale(1);
    }
}

.particle-1 { --tx: 60px; --ty: -80px; }
.particle-2 { --tx: -50px; --ty: 70px; }
.particle-3 { --tx: 40px; --ty: -100px; }
.particle-4 { --tx: -80px; --ty: -40px; }
.particle-5 { --tx: 70px; --ty: 90px; }
.particle-6 { --tx: -60px; --ty: -50px; }

/* ===== ЦЕНТРАЛЬНЫЙ ПУЛЬСИРУЮЩИЙ СВЕТ ===== */

.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 70, 229, 0.3) 0%,
        rgba(79, 70, 229, 0.1) 50%,
        transparent 100%
    );
    filter: blur(30px);
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

/* ===== СПИРАЛЬНЫЕ ЗАВИХРЕНИЯ ===== */

.spiral {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.spiral-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 15%;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spiral-rotate-1 20s linear infinite;
}

.spiral-2 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    left: 10%;
    border: 2px dashed #f97316;
    border-radius: 50%;
    animation: spiral-rotate-2 24s linear infinite reverse;
}

@keyframes spiral-rotate-1 {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.05);
    }
}

@keyframes spiral-rotate-2 {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(-360deg) scale(0.95);
    }
}

/* ===== СПОКОЙНЫЙ АНИМИРОВАННЫЙ ЛОГОТИП ===== */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.1em;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.08em;  /* для "Лидер" */
    position: relative;
    transition: all 0.3s ease;
}

.logo-plus {
    color: var(--primary-orange);
    margin-left: 0.3em;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;  /* ← вернул нормальный spacing для "Плюс" */
}
.logo-letter {
    display: inline-block;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.logo-plus {
    color: var(--primary-orange);
    margin-left: 0.3em;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Спокойная анимация — проигрывается каждые 6 секунд (4s анимация + 2s пауза) */

@keyframes logo-gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.95;
    }
}

@keyframes logo-letter-shimmer {
    0%, 100% {
        color: var(--primary-blue);
        text-shadow: none;
    }
    50% {
        color: var(--primary-blue-light);
        text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }
}

@keyframes logo-plus-glow {
    0%, 100% {
        color: var(--primary-orange);
        text-shadow: none;
    }
    50% {
        color: var(--primary-orange-dark);
        text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
    }
}

.logo {
    animation: logo-gentle-pulse 4s ease-in-out 2s infinite;
}

.logo-letter {
    animation: logo-letter-shimmer 4s ease-in-out 2s infinite;
}

.logo-letter:nth-child(1) { animation-delay: 2.1s; }
.logo-letter:nth-child(2) { animation-delay: 2.2s; }
.logo-letter:nth-child(3) { animation-delay: 2.3s; }
.logo-letter:nth-child(4) { animation-delay: 2.4s; }
.logo-letter:nth-child(5) { animation-delay: 2.5s; }

.logo-plus {
    animation: logo-plus-glow 4s ease-in-out 2s infinite;
}

/* При наведении — плавное свечение (без дёрганий) */

.logo:hover {
    animation: none !important;
}

.logo:hover .logo-letter {
    animation: none !important;
    color: var(--primary-blue-light);
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

.logo:hover .logo-plus {
    animation: none !important;
    color: var(--primary-orange);
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
    transform: scale(1.1);
}


/* ===== ЛОГОТИП РУЛЯ (круглый, большой) ===== */

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 0.8em;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Анимация — пульс фона */

@keyframes logo-bg-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
        background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.6);
        background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
    }
}

/* Руль крутится */

@keyframes wheel-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-icon {
    animation: logo-bg-pulse 4s ease-in-out 2s infinite;
}

.logo-icon svg {
    animation: wheel-rotate 3s linear infinite;
}

/* При наведении */

.logo:hover .logo-icon {
    animation: none !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.12);
}

.logo:hover .logo-icon svg {
    animation: wheel-rotate 1.2s linear infinite !important;
}

