/* ═══════════════════════════════════════
   APR MOTORS — ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ═══════════════════════════════════════ */

/* region ═══ HERO MOTORS ═══ */
.hero--motors .hero__bg {
    filter: brightness(0.7);
}

.hero--motors .hero__vignette {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(7, 7, 9, 0.5) 60%, var(--bg-main) 100%);
}

.hero__container {
    position: relative;
    z-index: 10;
}

.hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Прицельно уменьшаем длинные слова для мобильных устройств на странице Motors */
@media (max-width: 768px) {
    .hero--motors .hero__title-line {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .hero--motors .hero__title-line {
        font-size: clamp(1.4rem, 8.5vw, 2.2rem);
    }
}
/* endregion */

/* region ═══ APPROACH SECTION ═══ */
.approach {
    position: relative;
    padding: 120px 0;
    background: var(--bg-section);
    overflow: hidden;
}

.approach__bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(250, 204, 21, 0.04) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.approach__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

/* Карточки подхода */
.approach-card {
    position: relative;
    padding: 48px 40px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease-expo);
}

.approach-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.03) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--text-main);
    transition: all 0.4s var(--ease-expo);
}

.approach-card:hover .approach-card__icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05) rotate(5deg);
}

.approach-card__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.approach-card__desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: auto;
}

.approach-card__number {
    position: absolute;
    top: 32px;
    right: 40px;
    font-family: var(--font-tech);
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    user-select: none;
    pointer-events: none;
}

/* Выделенная карточка (Аквабластинг) */
.approach-card--highlighted {
    background: linear-gradient(135deg,
        rgba(250, 204, 21, 0.08) 0%,
        rgba(250, 204, 21, 0.03) 100%);
    border: 1px solid rgba(250, 204, 21, 0.15);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(250, 204, 21, 0.1) inset,
        0 0 32px rgba(250, 204, 21, 0.08);
}

.approach-card--highlighted::before {
    background: linear-gradient(135deg,
        rgba(250, 204, 21, 0.2) 0%,
        transparent 50%,
        rgba(250, 204, 21, 0.1) 100%);
}

.approach-card--highlighted .approach-card__icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.3);
}

.approach-card--highlighted:hover .approach-card__icon {
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.5);
}

.approach-card--highlighted .approach-card__title {
    color: var(--accent);
}

.approach-card--highlighted .approach-card__number--accent {
    -webkit-text-stroke-color: rgba(250, 204, 21, 0.15);
}

.approach-card__badge {
    position: absolute;
    top: -14px;
    right: 40px;
    padding: 8px 20px;
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
    z-index: 10;
}
/* endregion */

/* region ═══ STAGES / TIMELINE ═══ */
.stages {
    position: relative;
    padding: 120px 0;
    background: var(--bg-main);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0;
    padding-left: 80px;
}

/* Центральная вертикальная линия */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 29px;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 10%,
        rgba(255, 255, 255, 0.08) 90%,
        transparent 100%);
}

.timeline__item {
    position: relative;
    margin-bottom: 64px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

/* Маркер с номером */
.timeline__marker {
    position: absolute;
    left: -80px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--bg-section);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s var(--ease-expo);
}

.timeline__marker-num {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-muted);
    transition: color 0.3s;
}

.timeline__marker-pulse {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s var(--ease-expo);
}

.timeline__content {
    padding: 40px;
    position: relative;
    transition: all 0.4s var(--ease-expo);
    border-left: 3px solid transparent;
}

.timeline__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.timeline__text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Ховер-эффекты */
.timeline__item:hover .timeline__marker {
    border-color: var(--accent);
    background: rgba(250, 204, 21, 0.05);
    transform: scale(1.08);
}

.timeline__item:hover .timeline__marker-num {
    color: var(--accent);
}

.timeline__item:hover .timeline__marker-pulse {
    opacity: 1;
    transform: scale(1.2);
}

.timeline__item:hover .timeline__content {
    border-left-color: var(--accent);
    transform: translateX(8px);
}

/* Выделенный элемент (Аквабластинг) */
.timeline__item--highlighted .timeline__marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.4);
}

.timeline__item--highlighted .timeline__marker-num {
    color: var(--bg-main);
}

.timeline__item--highlighted .timeline__marker-pulse--accent {
    border-color: var(--accent);
    opacity: 0.3;
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.timeline__content--accent {
    background: linear-gradient(135deg,
        rgba(250, 204, 21, 0.06) 0%,
        rgba(250, 204, 21, 0.02) 100%);
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-left-color: var(--accent);
    border-left-width: 3px;
}

.timeline__item--highlighted .timeline__title {
    color: var(--accent);
}

.timeline__badge {
    position: absolute;
    top: -12px;
    right: 32px;
    padding: 6px 16px;
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15);
}
/* endregion */

/* region ═══ BENEFITS SECTION ═══ */
.benefits {
    padding: 80px 0;
    background: var(--bg-section);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit-card {
    padding: 36px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s var(--ease-expo);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(250, 204, 21, 0.2);
    transform: translateY(-4px);
}

.benefit-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s var(--ease-expo);
}

.benefit-card:hover .benefit-card__icon {
    background: rgba(250, 204, 21, 0.12);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.2);
}

.benefit-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.benefit-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* endregion */

/* region ═══ MEDIA QUERIES ═══ */
@media (max-width: 1024px) {
    .approach__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .approach-card {
        min-height: auto;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .approach {
        padding: 80px 0;
    }

    .approach-card {
        padding: 36px 28px;
    }

    .approach-card__badge {
        right: 28px;
        font-size: 0.6rem;
        padding: 6px 14px;
    }

    .approach-card__number {
        font-size: 3rem;
        right: 28px;
    }

    .stages {
        padding: 80px 0;
    }

    .timeline {
        padding-left: 60px;
        margin-top: 48px;
    }

    .timeline::before {
        left: 19px;
    }

    .timeline__marker {
        left: -60px;
        width: 40px;
        height: 40px;
    }

    .timeline__marker-num {
        font-size: 1.1rem;
    }

    .timeline__content {
        padding: 28px 24px;
    }

    .timeline__title {
        font-size: 1.3rem;
    }

    .timeline__text {
        font-size: 0.95rem;
    }

    .timeline__badge {
        font-size: 0.6rem;
        padding: 5px 12px;
        right: 24px;
    }

    .benefits {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    /* Фикс длинных слов в заголовке */
    .hero--motors .hero__title-line:nth-child(2),
    .hero--motors .hero__title-line:nth-child(3) {
        font-size: clamp(1.4rem, 9vw, 2.2rem);
    }

    .approach-card__icon {
        width: 64px;
        height: 64px;
    }
    .timeline {
        padding-left: 50px;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline__marker {
        left: -50px;
        width: 32px;
        height: 32px;
    }

    .timeline__marker-num {
        font-size: 1rem;
    }

    .timeline__item {
        margin-bottom: 48px;
    }
}
/* endregion */