body {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at center, #161616 0%, #090909 100%);
}

.mechanics-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 34px;
    padding: 14px 12px;
    background: rgba(15,15,15,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mechanics-header a {
    color: #8d8d99;
    text-decoration: none;
    transition: 0.2s;
}

.mechanics-header a:hover,
.mechanics-header a.active {
    color: #fff;
}

.mechanics-home {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 18px 48px;
}

.mechanics-eyebrow {
    color: #9c80d9;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mechanics-title {
    margin: 8px 0 10px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
}

.mechanics-subtitle {
    margin: 0 0 20px;
    color: #b9b9c7;
    max-width: 760px;
    font-size: 18px;
}

.mechanics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.muted { color: #aaa; }
.mechanics-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(145,70,255,0.24);
    background: linear-gradient(180deg, rgba(145,70,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(145,70,255,0.1);
    transition: 0.2s;
}

.mechanics-card-item:hover {
    transform: translateY(-2px) scale(1.015);
    border-color: rgba(145,70,255,0.45);
    box-shadow: 0 0 24px rgba(145,70,255,0.2);
}

.mechanics-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.2);
    object-fit: cover;
}

.mechanics-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #efe7ff;
}

.mechanic-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 18px 52px;
}

.mechanic-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #bda5ff;
    text-decoration: none;
}

.mechanic-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(145,70,255,0.32);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(145,70,255,0.12);
}

.mechanic-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mechanic-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.2);
}

h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
}

p {
    color: #c9c9d4;
    line-height: 1.5;
}

.mechanic-inline-link {
    color: #a86cff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.mechanic-inline-link:hover {
    color: #c7a0ff;
    text-shadow: 0 0 14px rgba(168,108,255,0.35);
}

.mechanic-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #ddd;
}

.mechanic-content img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 20px rgba(145,70,255,0.12);
}

.mechanic-image {
    width: var(--img-w, 100%);
    height: var(--img-h, auto);
    object-fit: var(--img-fit, cover);
}

.img-left { margin: 14px auto 14px 0; }
.img-center { margin: 14px auto; }
.img-right { margin: 14px 0 14px auto; }

@media (max-width: 900px) {
    .mechanics-header {
        gap: 18px;
        font-size: 14px;
    }

    .mechanics-subtitle {
        font-size: 16px;
    }

    .mechanics-card-item {
        padding: 12px;
        border-radius: 12px;
    }

    .mechanics-card-title {
        font-size: 15px;
    }
}
