#main-right {
	order: 0;
}

/* ====== GLOBAL ====== */

body {
    background: #f4f5f7 !important;
    font-family: "Inter", Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}

/* убираем лишние старые стили */
#main-center {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

/* ====== СЕКЦИИ (WIDGETS) ====== */

.widget {
    margin-bottom: 60px;
}

.widget .title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 4px;
    border-left: 6px solid #4e7aff;
    color: #111;
}

/* ====== GRID ====== */

.widget .body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

/* убираем старые отступы */
.widget .item {
    margin: 0 !important;
}

/* ====== CARD ====== */

.widget .item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.widget .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ====== THUMB ====== */

.widget .thumb {
    display: block;
    width: 100%;
    position: relative;
}

.widget .thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ====== TEXT ====== */

.widget .main {
    display: block;
    padding: 15px 18px 18px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.25s;
}

.widget .main:hover {
    color: #4e7aff !important;
}

/* ====== ADMIN LINKS ====== */
.widget .edit_wlinks {
    margin-top: 14px;
    text-align: right;
}

.widget .edit_wlinks a {
    font-size: 13px;
    color: #999;
}

.widget .edit_wlinks a:hover {
    color: #4e7aff;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
    .widget .title {
        font-size: 22px;
    }
    .widget .main {
        font-size: 16px;
    }
    .widget .thumb img {
        height: 160px;
    }
}
