Строка 344: Строка 344:
 
#page-secondary-actions .talk {
 
#page-secondary-actions .talk {
 
     display: none !important;
 
     display: none !important;
 +
}
 +
 +
/* ===== MOBILE: ФОН И HERO БЕЗ СЪЕЗДА ===== */
 +
 +
html,
 +
body,
 +
#content,
 +
.mw-body,
 +
#bodyContent {
 +
    background: #f3f6fb !important;
 +
}
 +
 +
.bl-help-home {
 +
    background: #f3f6fb !important;
 +
    margin: -0.75em -0.75em 0 -0.75em;
 +
    padding-bottom: 18px;
 +
}
 +
 +
.bl-hero {
 +
    background: #fff1f1 !important;
 +
    padding: 22px 0 18px !important;
 +
    text-align: center;
 +
    margin: 0 !important;
 +
    width: 100% !important;
 +
}
 +
 +
.bl-hero-inner {
 +
    max-width: 100% !important;
 +
    margin: 0 auto !important;
 +
    padding: 0 14px !important;
 +
    text-align: center !important;
 +
}
 +
 +
#content {
 +
    margin-top: 0 !important;
 +
    padding-top: 0 !important;
 +
}
 +
 +
.pre-content,
 +
.banner-container {
 +
    margin: 0 !important;
 +
    padding: 0 !important;
 
}
 
}

Версия от 15:39, 20 апреля 2026

/* =========================================================
   MOBILE.CSS — фиксы мобильной главной страницы
   ========================================================= */

/* 2) Логотип в мобильной шапке — без тусклости */
header.header-container.header-chrome .branding-box img,
header.header-container.header-chrome .branding-box a img,
header.header-container.header-chrome .branding-box h1 img,
.mw-logo-icon,
.mw-logo-wordmark,
.branding-box img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

header.header-container.header-chrome .branding-box,
header.header-container.header-chrome .branding-box a,
header.header-container.header-chrome .branding-box h1 {
    opacity: 1 !important;
    filter: none !important;
}

/* 3) Скрыть заголовок страницы на мобиле */
h1,
.mw-first-heading,
.page-heading,
#content .mw-first-heading,
#content .page-heading,
header + .pre-content h1,
.pre-content h1 {
    display: none !important;
}

/* 4) Не прокрашивать служебную панель страницы */
.minerva__tab-container,
.page-actions-menu,
#page-actions,
.minerva-page-actions,
.minerva-sticky-header {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.minerva-ui-bottomNavigation .mw-ui-icon {
    background-color: #ffffff !important;
    border-radius: 14px !important;
}

/* =========================================================
   Мобильная вёрстка новой главной
   ========================================================= */

.bl-help-home {
    background: #ffffff;
    margin: -0.75em -0.75em 0 -0.75em;
    padding-bottom: 18px;
}

.bl-hero {
    background: #fff7f7;
    padding: 22px 14px 18px;
    text-align: center;
}

.bl-hero-inner {
    max-width: 100%;
    margin: 0 auto;
}

.bl-hero-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.bl-hero-subtitle {
    font-size: 16px;
    line-height: 1.45;
    color: #6b7280;
}

.bl-section {
    padding: 18px 14px 0;
}

.bl-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.bl-cards {
    display: block;
}

.bl-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    min-height: auto;
    margin-bottom: 14px;
}

.bl-card:last-child {
    margin-bottom: 0;
}

.bl-card-icon {
    margin-bottom: 12px;
    height: auto;
}

.bl-card-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.bl-card-text {
    font-size: 15px;
    line-height: 1.55;
    color: #6b7280;
    margin-bottom: 14px;
    min-height: auto;
}

.bl-card-links {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}

.bl-card-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bl-card-links li {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.4;
}

.bl-card-links li::before {
    content: "› ";
    color: #f1a4a4;
    font-weight: 700;
}

.bl-card-links a {
    color: #e58c8c !important;
    text-decoration: none;
    font-weight: 600;
}

.bl-card-more {
    margin-top: 8px;
    font-size: 14px;
}

.bl-card-more a {
    color: #6b7280 !important;
    text-decoration: none;
}

.bl-school {
    margin: 18px 14px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 18px;
    display: block;
}

.bl-school-icon {
    margin-bottom: 10px;
}

.bl-school-title {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.bl-school-text {
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 12px;
}

.bl-school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bl-tag {
    display: inline-block;
}

.bl-tag a {
    display: inline-block;
    background: #fff2f2;
    border: 1px solid #fde2e2;
    color: #e58c8c !important;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bl-tag-muted a {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #6b7280 !important;
}

/* Убираем стандартные wiki-отступы внутри кастомной главной */
.bl-help-home p,
.bl-help-home ul,
.bl-help-home li {
    margin-top: 0;
}

/* На очень узких экранах чуть компактнее */
@media (max-width: 380px) {
    .bl-hero-title {
        font-size: 24px;
    }

    .bl-hero-subtitle {
        font-size: 15px;
    }

    .bl-card-title {
        font-size: 20px;
    }

    .bl-school-title {
        font-size: 21px;
    }
}

/* Ссылки на главной — синие */
.bl-help-home a,
.bl-card-links a,
.bl-card-more a,
.bl-tag a {
    color: #3366cc !important;
}

/* hover как у стандартной вики */
.bl-help-home a:hover,
.bl-card-links a:hover,
.bl-card-more a:hover,
.bl-tag a:hover {
    color: #254a99 !important;
}

/* ===== MOBILE: БЕЛАЯ ШАПКА И НИЖНЯЯ ПАНЕЛЬ ===== */

header.header-container.header-chrome,
header.header-container.header-chrome > form.header,
header.header-container.header-chrome::before,
header.header-container.header-chrome::after,
header.header-container.header-chrome > form.header::before,
header.header-container.header-chrome > form.header::after {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #eceff1 !important;
}

/* Логотип */
header.header-container.header-chrome .branding-box img,
header.header-container.header-chrome .branding-box a img,
header.header-container.header-chrome .branding-box h1 img,
.mw-logo-icon,
.mw-logo-wordmark,
.branding-box img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Поиск */
header .search-box .search,
.search-box .search {
    background: #f1f3f5 !important;
    background-color: #f1f3f5 !important;
    border: 1px solid #f1f3f5 !important;
    border-radius: 12px !important;
    color: #6b7280 !important;
    box-shadow: none !important;
}

header .search-box .search::placeholder,
header .search-box input::placeholder,
.search-box .search::placeholder,
.search-box input::placeholder {
    color: #9aa3af !important;
    opacity: 1 !important;
}

header .search-box input:focus,
.search-box input:focus {
    border-color: #f1f3f5 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Нижняя мобильная панель */
.minerva-ui-bottomNavigation {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 1px solid #eceff1 !important;
    box-shadow: none !important;
}

.minerva-ui-bottomNavigation .mw-ui-icon {
    background: transparent !important;
    border-radius: 0 !important;
}

/* Скрыть кнопку "Обсуждение" */
#page-secondary-actions .talk {
    display: none !important;
}

/* ===== MOBILE: ФОН И HERO БЕЗ СЪЕЗДА ===== */

html,
body,
#content,
.mw-body,
#bodyContent {
    background: #f3f6fb !important;
}

.bl-help-home {
    background: #f3f6fb !important;
    margin: -0.75em -0.75em 0 -0.75em;
    padding-bottom: 18px;
}

.bl-hero {
    background: #fff1f1 !important;
    padding: 22px 0 18px !important;
    text-align: center;
    margin: 0 !important;
    width: 100% !important;
}

.bl-hero-inner {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    text-align: center !important;
}

#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pre-content,
.banner-container {
    margin: 0 !important;
    padding: 0 !important;
}