/* ============================= */
/* RESET */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 70% 20%, #0b0b18, #050508 60%);
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
    display: flex;
    align-items: center;
    padding: 25px 8%;
}

/* логотип слева */
.main-logo {
    margin-right: auto;
}

/* кнопки справа */
.cta {
    width: 140px;
    height: 44px;

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

    margin-left: 15px;

    padding: 10px 10px;
    border-radius: 999px;

    color: #ccff00;
    text-decoration: none;
    font-weight: 600;

    background: rgba(10,10,15,0.8);
    border: 1px solid #ccff00;

    box-shadow:
            0 0 12px rgba(204,255,0,0.6),
            0 0 25px rgba(204,255,0,0.4),
            inset 0 0 10px rgba(204,255,0,0.1);

    transition: 0.3s;
}

.cta:hover {
    box-shadow:
            0 0 20px rgba(204,255,0,0.9),
            0 0 40px rgba(204,255,0,0.6);
}

.cta i {
    margin-right: 8px;
}

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

.hero-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 40px 8%;
    gap: 40px;
    position: relative;
}

.hero-about::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(204,255,0,0.2);
}
.hero-img {
    background: transparent;
}

/* LEFT */

.left {
    max-width: 650px;
}

.label {
    color: #ccff00;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

h1 {
    font-size: 45px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.spanone {
    color: #ccff00;
}

.spantwo{
    color: #ff23ed;
}

.desc {
    opacity: 1;
    line-height: 1.6;
    max-width: 600px;
}

/* ============================= */
/* RIGHT */
/* ============================= */

.right {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 520px;
    border-radius: 22px;

    /*box-shadow:*/
    /*        0 0 120px rgba(255,0,200,0.25),*/
    /*        0 0 40px rgba(204,255,0,0.1);*/
}

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

.stats {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-30%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 250px;
    padding: 14px 16px;

    border-radius: 14px;

    background: linear-gradient(
            135deg,
            rgba(30,30,40,0.6),
            rgba(60,20,80,0.4)
    );

    backdrop-filter: blur(10px);

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

    box-shadow:
            0 0 20px rgba(255,0,200,0.15),
            inset 0 0 10px rgba(255,255,255,0.05);

    transition: 0.3s;
    /*backdrop-filter: blur(12px);*/
    opacity: 0.95;
}

.stat:hover {
    transform: translateX(-6px);
}

.icon {
    font-size: 16px;
}

.stat h4 {
    font-size: 16px;
}

.stat p {
    font-size: 12px;
    opacity: 0.6;
}

/* ============================= */
/* SERVICES HEADER */
/* ============================= */

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    margin-top: 20px;
}

.services-header h2 {
    font-size: 32px;
}

/* ============================= */
/* ARROWS */
/* ============================= */

.arrows {
    display: flex;
    gap: 10px;
}

.arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;

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

    background: rgba(20,20,30,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.arrow.active {
    border: 2px solid #ccff00;
    box-shadow: 0 0 20px #ccff00;
}

/* ============================= */
/* SERVICES */
/* ============================= */

.services {
    display: flex;
    gap: 25px;
    padding: 30px 8% 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* ============================= */
/* CARDS */
/* ============================= */

.card {
    position: relative;
    min-width: 280px;
    border-radius: 20px;
    overflow: hidden;

    background: linear-gradient(180deg, #0d0d12, #08080b);
    border: 1px solid rgba(255,255,255,0.05);

    transition: 0.3s;
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;

    background: linear-gradient(
            120deg,
            rgba(255,0,200,0.6),
            rgba(204,255,0,0.6)
    );

    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    transition: 0.3s;
}

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

.overlay {
    padding: 18px;
}

.overlay h3 {
    color: #ccff00;
    font-size: 17px;
    margin-bottom: 6px;
}

.overlay p {
    font-size: 13px;
    opacity: 0.6;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.tag.pink {
    background: linear-gradient(90deg, #ff00cc, #ff4dff);
}

.tag.purple {
    background: linear-gradient(90deg, #6a00ff, #a200ff);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 0 30px rgba(255,0,200,0.2),
            0 0 10px rgba(204,255,0,0.1);
}

footer {
    text-align: center;
    padding: 0 0;
    opacity: 0.6;
}

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

@media (max-width: 1000px) {

    /* HEADER */
    header {
        flex-direction: column;
        gap: 12px;
        padding: 20px 5%;
    }

    .main-logo {
        margin: 0;
        width: 130px;
    }

    .cta {
        width: 100%;
        max-width: 220px;
        height: 42px;
    }

    /* HERO */
    .hero-about {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 10px 5% 0;
        gap: 20px;
    }

    /* УБИРАЕМ линию */
    .hero-about::after {
        display: none;
    }

    /* ТЕКСТ */
    h1 {
        font-size: 33px;
        line-height: 1.15;
    }

    .desc {
        font-size: 13px;
        opacity: 0.7;
        padding: 0 10px;
    }

    /* КАРТИНКА */
    .hero-img {
        width: 100%;
        border-radius: 16px;
    }

    /* STATS ПОД КАРТИНКУ */
    .right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats {
        position: static;   /* ❗ убираем наложение */
        transform: none;

        display: flex;
        gap: 12px;

        overflow-x: auto;
        padding: 0 10px;

        margin-top: 12px;
        align-items: center; /* 👈 центрирует карточки */

    }

    .stat {
        width: 100%;
        justify-content: center;
        min-width: 280px;
    }

    /* ЧТОБЫ НЕ БЫЛО ПУСТОТЫ СВЕРХУ */
    body {
        background: #050508;
    }
}