/* ===== LINKS PAGE — MIGAERIS ===== */

.links-page {
    background: #030303;
    color: #fff;
    overflow-x: hidden;
}

.links-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}


.links-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        url("/assets/img/links-bg.png") center center / cover no-repeat;

    filter: brightness(0.75) contrast(1.08);
    transform: scale(1.03);

    box-shadow: inset 0 0 200px rgba(0,0,0,0.6);
}

.links-dark {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.72)),
        radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.55) 75%);
}

.links-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    text-align: center;
}

.links-logo {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: 12px;
    font-weight: 300;
    margin-bottom: 22px;
    text-shadow: 0 0 30px rgba(255,255,255,0.12);
}

.links-sub {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.68;
    margin-bottom: 28px;
}

.links-line {
    width: 90px;
    height: 1px;
    margin: 0 auto 34px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
}

.links-group-title {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.42;
}

.links-group-title.second {
    margin-top: 34px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
}

.platform-card {
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #fff;
    text-decoration: none;

    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    backdrop-filter: blur(10px);

    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.38);
    background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025));
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.main-platform {
    border-color: rgba(255,255,255,0.28);
}

.platform-left {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.platform-mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.72;
    background: rgba(255,255,255,0.035);
}

.platform-arrow {
    opacity: 0.42;
    font-size: 20px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.platform-card:hover .platform-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.links-back {
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    padding-bottom: 8px;
    transition: color 0.28s ease, border-color 0.28s ease;
}

.back-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.75);
}

/* убираем общий блик кнопок main.css на этой странице */
.links-section .btn::before {
    display: none;
}

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

@media (max-width: 720px) {
    .links-section {
        padding: 54px 18px;
        align-items: flex-start;
    }

    .links-logo {
        font-size: 38px;
        letter-spacing: 8px;
        margin-top: 36px;
    }

    .links-sub {
        font-size: 15px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .platform-card {
        min-height: 64px;
        padding: 0 18px;
    }

    .platform-left {
        font-size: 14px;
    }

    .platform-mark {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }
}
/* ===== SMOOTH APPEAR ===== */

.links-box {
    animation: fadeLinks 1.2s ease;
}

@keyframes fadeLinks {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GRID WIDTH TUNING ===== */

.links-box {
    max-width: 760px;
}

/* ===== STRONGER HOVER ===== */

.platform-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* ===== SUBTLE GLOW ===== */

.links-logo {
    transition: 0.4s;
}

.links-logo:hover {
    text-shadow: 0 0 50px rgba(255,255,255,0.25);
}
/* ===== LINKS FINAL ANIMATION ===== */

/* мягкое появление всей страницы */
.links-box {
    opacity: 0;
    animation: linksFadeIn 1s ease forwards;
}

/* карточки появляются по очереди (без transform!) */
.platform-card {
    opacity: 0;
    animation: cardFade 0.6s ease forwards;
}

.platform-card:nth-child(1) { animation-delay: 0.3s; }
.platform-card:nth-child(2) { animation-delay: 0.4s; }
.platform-card:nth-child(3) { animation-delay: 0.5s; }
.platform-card:nth-child(4) { animation-delay: 0.6s; }
.platform-card:nth-child(5) { animation-delay: 0.7s; }
.platform-card:nth-child(6) { animation-delay: 0.8s; }

/* движение фона (чуть сильнее чем было) */
.links-bg {
    animation: bgMove 20s ease-in-out infinite alternate;
}

/* анимации */

@keyframes linksFadeIn {
    from {
        opacity: 0;
        filter: blur(6px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes cardFade {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes bgMove {
    from {
        transform: scale(1.03) translateX(0) translateY(0);
    }
    to {
        transform: scale(1.07) translateX(-20px) translateY(-8px);
    }
}
.links-footer {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.3;
    letter-spacing: 2px;
    text-align: center;
}
