/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    text-align: center;

    padding-top: 185px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.1)
        ),
        url("../images/hero/car-bg-ultrawide.png");

    background-size: cover;

    background-position: center 38%;

    background-repeat: no-repeat;
}

/* =========================================
   DARK OVERLAY
========================================= */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.06),
            rgba(0,0,0,0.35) 75%
        );

    pointer-events: none;
}


/* =========================================
   CONTENT
========================================= */

.content {
    position: relative;

    z-index: 2;

    width: min(760px, 90%);

    animation: fadeUp 1.2s ease forwards;
}

/* =========================================
   TITLE
========================================= */

.title {
    font-size: clamp(42px, 6vw, 72px);

    font-weight: 300;

    letter-spacing: 14px;

    text-transform: uppercase;

    margin-bottom: 18px;

    text-shadow:
        0 0 35px rgba(255, 255, 255, 0.25);

    white-space: nowrap;
}

.subtitle {
    font-size: clamp(16px, 2vw, 21px);

    color: rgba(255, 255, 255, 0.72);

    margin-bottom: 36px;

    letter-spacing: 1px;
}

/* =========================================
   DREAM NAME
========================================= */

.dream-name {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 26px;

    margin-bottom: 44px;
}

.dream-name span {
    width: 120px;
    height: 1px;

    position: relative;
}

/* ЛЕВАЯ ЛИНИЯ */

.dream-name span:first-child {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(86, 192, 141, 0.9)
    );
}

.dream-name span:first-child::after {
    content: "";

    position: absolute;
    right: -2px;
    top: 50%;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #56c08d;

    transform: translateY(-50%);

    box-shadow:
        0 0 12px rgba(86, 192, 141, 0.8);
}

/* ПРАВАЯ ЛИНИЯ */

.dream-name span:last-child {
    background: linear-gradient(
        90deg,
        rgba(86, 192, 141, 0.9),
        transparent
    );
}

.dream-name span:last-child::after {
    content: "";

    position: absolute;
    left: -2px;
    top: 50%;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #56c08d;

    transform: translateY(-50%);

    box-shadow:
        0 0 12px rgba(86, 192, 141, 0.8);
}

.dream-name h2 {
    font-size: clamp(28px, 3.2vw, 50px);

    font-weight: 300;

    font-style: italic;

    letter-spacing: 2px;

    color: #71e0ab;

    text-shadow:
        0 0 18px rgba(86, 192, 141, 0.45),
        0 0 40px rgba(86, 192, 141, 0.2);

    white-space: nowrap;
}

/* =========================================
   STATS
========================================= */

.stats {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 60px;

    margin-bottom: 24px;
}

.stat-label {
    display: block;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.55);

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;

    font-weight: 500;

    letter-spacing: 2px;
}

.divider {
    width: 1px;
    height: 42px;

    background: rgba(255, 255, 255, 0.22);
}

/* =========================================
   PROGRESS BAR
========================================= */

.progress-wrap {
    position: relative;

    width: 100%;
    height: 34px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 999px;

    padding: 4px;

    margin-bottom: 32px;

    background: rgba(255, 255, 255, 0.07);

    box-shadow:
        inset 0 0 15px rgba(0,0,0,0.45);

    overflow: hidden;
}

.progress-fill {
    height: 100%;

    width: 8%;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #2f7d5a,
        #56c08d
    );

    box-shadow:
        0 0 18px rgba(86, 192, 141, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition: width 0.8s ease;
}

.progress-percent {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 1px;
}

/* =========================================
   BUTTON
========================================= */

.btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-width: 280px;
    height: 64px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #326c54,
        #214d3e
    );

    color: #fff;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(63, 132, 101, 0.25);

    transition: var(--transition-medium);
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(77, 160, 122, 0.45);
}

.safe {
    margin-top: 16px;

    font-size: 16px;

    color: rgba(255, 255, 255, 0.65);
}

/* =========================================
   ANIMATION
========================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .hero {
        background-position: center 44%;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .hero {
        min-height: 100vh;

        padding-top: 175px;
        padding-bottom: 0;

        align-items: flex-start;

        background:
            linear-gradient(
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.08)
            ),
            url("../images/hero/car-bg-mobile.png");

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero::after {
        content: "";

        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;

        height: 32%;

        background: linear-gradient(
            to bottom,
            transparent,
            rgba(0,0,0,0.62)
        );

        pointer-events: none;
    }

    .content {
        width: min(92%, 760px);

        position: relative;
        z-index: 2;

        transform: none;
    }

    .title {
        font-size: 27px;
        letter-spacing: 4px;
        line-height: 1.2;

        margin-bottom: 10px;

        white-space: normal;
    }

    .subtitle {
        font-size: 13px;

        max-width: 230px;

        margin-inline: auto;
        margin-bottom: 24px;

        line-height: 1.45;
    }

    .dream-name {
    gap: 12px;

    margin-bottom: 30px;
    }

    .dream-name span {
        width: 46px;
    }

    .dream-name h2 {
        font-size: 28px;

        letter-spacing: 1px;
    }

    .stats {
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 20px;
    }

    .divider {
        height: 36px;
    }

    .progress-wrap {
        height: 28px;
        margin-bottom: 28px;
    }

    .progress-percent {
        font-size: 14px;
    }

    .btn {
        min-width: 240px;
        height: 58px;

        font-size: 15px;
        letter-spacing: 2px;
    }

    .safe {
        margin-top: 14px;

        font-size: 14px;
        line-height: 1.4;
    }
}

/* =========================================
   ACCESSIBILITY / FOCUS
========================================= */

.btn:focus-visible {
    outline: 1px solid rgba(86, 192, 141, 0.85);
    outline-offset: 5px;
}