/* themes/default/style.css
 *
 * Современная «умная» тема:
 * - поддерживает разные визуальные стили (classic, soft, glass, magazine, neon, borderless),
 * - гибкие макеты главной (simple, blog, landing, magazine, portal, edu),
 * - несколько вариантов шапки и подвала,
 * - сайдбар с настраиваемыми блоками,
 * - блог в виде списка или сетки.
 *
 * Все ключевые параметры (цвета, шрифт, макеты, градиенты) приходят из CSS‑переменных,
 * которые задаются в layout.php на основе настроек/пресетов/ИИ.
 */

/* ====== БАЗОВЫЙ ШРИФТ И СБРОС ====== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body.font-system {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.font-serif {
    font-family: Georgia, "Times New Roman", serif;
}
body.font-mono {
    font-family: Consolas, "Courier New", monospace;
}
body.font-inter {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.font-roboto {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ====== БАЗОВЫЕ ЦВЕТА И ФОНЫ ====== */

body {
    background: var(--color-bg, #f3f4f6);
    color: var(--color-text, #111827);
}

/* Градиент фона сайта (включается классом bggrad-on) */
.bggrad-on {
    background: linear-gradient(135deg,
        var(--color-bg, #f3f4f6),
        var(--color-bg-grad2, #e5e7eb)
    );
}

/* Ссылки */

a {
    color: var(--color-primary, #2563eb);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Контейнер */

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== HEADER ====== */

.site-header {
    background: var(--color-header-bg, #111827);
    color: var(--header-text, #f9fafb);
}

/* Градиентный header */
.headergrad-on .site-header {
    background: linear-gradient(135deg,
        var(--color-header-bg, #111827),
        var(--color-header-grad2, #1f2937)
    );
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    color: var(--header-text, #f9fafb);
    font-weight: 600;
    font-size: 20px;
}

/* Header menu + dropdown */

.main-nav {
    display: flex;
    align-items: center;
}
.main-nav a {
    color: var(--header-text, #f9fafb);
}
.nav-item {
    position: relative;
    margin-left: 16px;
}
.nav-item > a {
    white-space: nowrap;
}
.nav-item--has-children:hover > a {
    text-decoration: underline;
}
.nav-item--has-children .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-header-bg, #111827);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 50;
}
.nav-item--has-children:hover .nav-dropdown {
    display: block;
}
.nav-dropdown a {
    display: block;
    padding: 6px 12px;
    color: var(--header-text, #f9fafb);
    font-size: 14px;
}
.nav-dropdown a:hover {
    background: rgba(31,41,55,0.9);
    text-decoration: none;
}

/* Header centered */

.site-header--centered .header-inner {
    justify-content: center;
}
.main-nav--centered {
    margin-top: 4px;
}

/* Header split (две колонки + CTA) */

.site-header--split .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 16px;
    align-items: center;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-brand__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--header-text, #f9fafb);
}

.header-brand__tagline {
    margin: 0;
    font-size: 13px;
    color: rgba(249,250,251,0.7);
}

.header-nav-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-nav-wrap .main-nav {
    flex-wrap: wrap;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f97316;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.header-cta:hover {
    background: #ea580c;
    text-decoration: none;
    color: #111827;
}

/* ====== FOOTER ====== */

.site-footer {
    margin-top: 40px;
    padding: 16px 0;
    background: var(--color-footer-bg, #111827);
    color: var(--footer-text, #9ca3af);
}

/* Градиентный footer */
.footergrad-on .site-footer {
    background: linear-gradient(135deg,
        var(--color-footer-bg, #111827),
        var(--color-footer-grad2, #1f2937)
    );
}

.site-footer--minimal {
    padding: 12px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 12px;
    color: var(--footer-text, #9ca3af);
}

/* Footer columns */

.site-footer--columns .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: flex-start;
}

.footer-col__title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--footer-text, #e5e7eb);
}

.footer-col__text {
    font-size: 13px;
    color: var(--footer-text, #9ca3af);
    margin: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
}

.footer-menu a {
    color: var(--footer-text, #e5e7eb);
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* ====== ОСНОВНОЙ ЛЕЙАУТ И САЙДБАР ====== */

.site-main {
    padding: 24px 0 40px;
    display: flex;
    gap: 24px;
}

.site-main__content {
    flex: 1 1 auto;
    min-width: 0;
}

.site-sidebar {
    flex: 0 0 260px;
    background: transparent;
}

/* Блоки сайдбара: базовый стиль */
.site-sidebar .sidebar-block {
    background: var(--sidebar-bg, #ffffff);
    border-radius: 8px;
    padding: 12px 14px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--sidebar-text, #111827);
}

/* Градиентные блоки сайдбара */
.sidebargrad-on .site-sidebar .sidebar-block:not(.sidebar-block--plain) {
    background: linear-gradient(135deg,
        var(--sidebar-bg, #ffffff),
        var(--sidebar-grad2, #e5e7eb)
    );
}

/* Варианты стиля блоков */

.sidebar-block--plain {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 8px;
    border: none;
}

.sidebar-block--bordered {
    background: rgba(255,255,255,0.6);
    box-shadow: none;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Pill — яркие "пилюльные" блоки */

.sidebar-block--pill {
    background: linear-gradient(135deg, var(--color-primary, #2563eb), var(--hero-grad2, #38bdf8));
    color: #f9fafb;
    border-radius: 999px;
    padding: 10px 14px 12px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.35);
}
.sidebar-block--pill .sidebar-title {
    color: #f9fafb;
}
.sidebar-block--pill .sidebar-text {
    color: #e5e7eb;
}
.sidebar-block--pill .sidebar-list a {
    color: #f9fafb;
}
.sidebar-block--pill .sidebar-list a:hover {
    text-decoration: underline;
}

/* Glass — стеклянные блоки */

.sidebar-block--glass {
    background: rgba(15,23,42,0.65);
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 12px 30px rgba(15,23,42,0.75);
    backdrop-filter: blur(16px);
    color: #e5e7eb;
}
.sidebar-block--glass .sidebar-title {
    color: #f9fafb;
}
.sidebar-block--glass .sidebar-text,
.sidebar-block--glass .sidebar-list a {
    color: #e5e7eb;
}

/* Accent — строгие блоки с цветной левой полосой */

.sidebar-block--accent {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    padding-left: 14px;
}
.sidebar-block--accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: var(--color-primary, #2563eb);
}

/* Сайдбар: заголовки/текст/списки */

.sidebar-title {
    margin: 0 0 8px;
    font-size: 16px;
}
.sidebar-text {
    margin: 0;
    color: var(--sidebar-text, #111827);
}
.sidebar-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 8px;
}
.sidebar-list li {
    margin-bottom: 6px;
}
.sidebar-list a {
    color: var(--sidebar-text, #111827);
}
.sidebar-list a:hover {
    text-decoration: underline;
}

/* ====== АДАПТИВНОСТЬ ЛЕЙАУТА ====== */

@media (max-width: 900px) {
    .site-header--split .header-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .header-nav-wrap {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .site-main {
        flex-direction: column;
    }
    .site-sidebar {
        order: 2;
        width: 100%;
    }
    .site-main__content {
        order: 1;
    }

    .site-footer--columns .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ====== ОСНОВНОЙ КОНТЕНТ ====== */

.page h1,
.home-hero h1,
.blog-list h1,
.category-page h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.page-content p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.page-content h2 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 22px;
}

.page-content h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 18px;
}

.page-content ul {
    padding-left: 18px;
    margin-bottom: 12px;
}

/* Серif / Mono акценты */

body.font-serif .page h1,
body.font-serif .home-hero__title,
body.font-serif .blog-list h1 {
    letter-spacing: 0.02em;
}

body.font-mono .page-content p,
body.font-mono .blog-item__excerpt,
body.font-mono .home-post-card__excerpt {
    letter-spacing: 0.03em;
    font-size: 14px;
}

/* ====== BREADCRUMBS ====== */

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 12px;
}
.breadcrumbs__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumbs__item::after {
    content: "›";
    margin: 0 4px;
    color: #9ca3af;
}
.breadcrumbs__item:last-child::after {
    content: "";
    margin: 0;
}
.breadcrumbs__link {
    color: #6b7280;
}
.breadcrumbs__link:hover {
    color: var(--color-primary, #2563eb);
    text-decoration: underline;
}
.breadcrumbs__current {
    color: #4b5563;
}

/* ====== HOME HERO И СЕКЦИИ ====== */

/* Базовый hero */

.home-hero {
    margin: 0 0 24px;
    padding: 32px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        var(--color-header-bg, #111827),
        var(--color-primary, #2563eb)
    );
    color: #f9fafb;
}

/* Градиентный hero */

.herograd-on .home-hero {
    background: linear-gradient(135deg,
        var(--color-primary, #2563eb),
        var(--hero-grad2, #14b8a6)
    );
}

.home-hero--landing {
    padding: 40px 22px;
}

.home-hero__inner {
    max-width: 720px;
}

.home-hero__title {
    margin: 0 0 8px;
    font-size: 28px;
}

.home-hero__subtitle {
    margin: 0 0 14px;
    font-size: 15px;
    color: #e5e7eb;
}

.home-hero__actions {
    margin-top: 8px;
}

.home-hero__button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f9fafb;
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}
.home-hero__button:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.home-hero__button--ghost {
    background: transparent;
    color: #f9fafb;
    border: 1px solid rgba(249, 250, 251, 0.6);
    margin-left: 6px;
}
.home-hero__button--ghost:hover {
    background: rgba(15,23,42,0.3);
}

/* Секции */

.home-section {
    margin-bottom: 32px;
}

.home-section__title {
    margin: 0 0 16px;
    font-size: 22px;
}

/* CTA блок на главной */

.home-cta-gradient {
    padding: 20px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        var(--color-primary, #2563eb),
        var(--cta-grad2, #14b8a6)
    );
    color: #f9fafb;
}

/* ====== HOME: CATEGORIES GRID ====== */

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Обычный фон карточек категорий */

.home-category-card {
    background: var(--home-categories-bg, #ffffff);
    border-radius: 8px;
    padding: 12px 14px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Градиентные карточки категорий */

.homecatgrad-on .home-category-card {
    background: linear-gradient(135deg,
        var(--home-categories-bg, #ffffff),
        var(--home-categories-grad2, #e5e7eb)
    );
}

.home-category-card__title {
    margin: 0 0 6px;
    font-size: 16px;
}
.home-category-card__title a {
    color: #111827;
}
.home-category-card__title a:hover {
    color: var(--color-primary, #2563eb);
}
.home-category-card__desc {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ====== HOME: POSTS GRID ====== */

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* Обычный фон карточек постов */

.home-post-card {
    background: var(--home-posts-bg, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Градиентные карточки постов */

.homepostsgrad-on .home-post-card {
    background: linear-gradient(135deg,
        var(--home-posts-bg, #ffffff),
        var(--home-posts-grad2, #e5e7eb)
    );
}

.home-post-card__image-wrap {
    height: 150px;
    overflow: hidden;
}
.home-post-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-post-card__title {
    margin: 10px 12px 6px;
    font-size: 16px;
}
.home-post-card__title a {
    color: #111827;
}
.home-post-card__title a:hover {
    color: var(--color-primary, #2563eb);
}
.home-post-card__excerpt {
    margin: 0 12px 10px;
    font-size: 14px;
    color: #4b5563;
}

/* Карточная сетка (универсальная плитка) */

.home-posts-grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.home-card-tile {
    background: var(--home-posts-bg, #ffffff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.home-card-tile__image {
    display: block;
    height: 140px;
    overflow: hidden;
}
.home-card-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-card-tile__body {
    padding: 9px 11px 12px;
}
.home-card-tile__title {
    margin: 0 0 4px;
    font-size: 15px;
}
.home-card-tile__title a {
    color: #111827;
}
.home-card-tile__excerpt {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

/* ====== Блок «Поделиться в соцсетях» ====== */

.post-share {
    margin: 10px 0 16px;
    font-size: 13px;
}

.post-share__label {
    font-weight: 500;
    margin-bottom: 4px;
    color: #6b7280;
}

.post-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Общая кнопка */

.post-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid transparent;
}

/* Стиль: пилюли */

.post-share--pills .post-share__btn--vk { background:#10b981; color:#f9fafb; }
.post-share--pills .post-share__btn--tg { background:#0ea5e9; color:#f9fafb; }
.post-share--pills .post-share__btn--wa { background:#22c55e; color:#f9fafb; }
.post-share--pills .post-share__btn--x  { background:#111827; color:#f9fafb; }
.post-share--pills .post-share__btn--fb { background:#3b82f6; color:#f9fafb; }

.post-share--pills .post-share__btn:hover {
    opacity:0.92;
}

/* Стиль: минимальный */

.post-share--minimal .post-share__btn {
    padding:0;
    border:none;
    border-radius:0;
    color:var(--color-primary,#2563eb);
    background:transparent;
}
.post-share--minimal .post-share__btn-label {
    text-decoration:underline dotted;
}
.post-share--minimal .post-share__btn:hover .post-share__btn-label {
    text-decoration:underline;
}

/* Стиль: иконки */

.post-share--icons .post-share__buttons {
    gap:4px;
}
.post-share--icons .post-share__btn {
    width:26px;
    height:26px;
    padding:0;
    border-radius:999px;
    font-size:11px;
    font-weight:600;
    color:#f9fafb;
}
.post-share--icons .post-share__btn--vk { background:#10b981; }
.post-share--icons .post-share__btn--tg { background:#0ea5e9; }
.post-share--icons .post-share__btn--wa { background:#22c55e; }
.post-share--icons .post-share__btn--x  { background:#111827; }
.post-share--icons .post-share__btn--fb { background:#3b82f6; }
.post-share--icons .post-share__btn-label {
    display:block;
}

/* Плавающая панель */

.post-share--floating {
    position:fixed;
    top:40%;
    transform:translateY(-50%);
    z-index:60;
    background:#ffffff;
    border-radius:999px;
    box-shadow:0 10px 30px rgba(15,23,42,0.3);
    padding:6px 4px;
}
.post-share--floating-left { left:8px; }
.post-share--floating-right{ right:8px; }

.post-share--floating .post-share__label {
    display:none;
}
.post-share--floating .post-share__buttons {
    flex-direction:column;
    align-items:center;
    gap:4px;
}
.post-share--floating .post-share__btn {
    width:28px;
    height:28px;
    padding:0;
    border-radius:999px;
    font-size:11px;
    font-weight:600;
}
.post-share--floating .post-share__btn-label {
    display:block;
}

/* На малых экранах плавающий шэринг убираем, чтобы не мешал */

@media (max-width: 768px) {
    .post-share--floating {
        display:none;
    }
}


/* ====== SIMPLE HOME ====== */

.home-simple h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

/* ====== BLOG ====== */

.blog-list h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Список */

.blog-list__items--list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.blog-item--list {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.blog-item__title {
    margin: 0 0 4px;
    font-size: 20px;
}
.blog-item__meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}
.blog-item__excerpt {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* Сетка карточек */

.blog-list__items--grid-2,
.blog-list__items--grid-3 {
    display: grid;
    grid-gap: 16px;
}
.blog-list__items--grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.blog-list__items--grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blog-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.blog-card__title {
    margin: 0 0 6px;
    font-size: 18px;
}
.blog-card__title a {
    color: #111827;
}
.blog-card__title a:hover {
    color: var(--color-primary, #2563eb);
}
.blog-card__meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.blog-card__excerpt {
    flex: 1 1 auto;
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}
.blog-card__more {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary, #2563eb);
}
.blog-card__more:hover {
    text-decoration: underline;
}

/* ====== PAGE TEMPLATES ====== */

.page--narrow {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero {
    position: relative;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.page-hero__image {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.0));
}

.page-hero__title {
    margin: 0;
    font-size: 26px;
    color: #f9fafb;
}

/* Карточная страница */

.page--card {
    max-width: 820px;
    margin: 0 auto;
}
.page-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    padding: 18px 20px 22px;
}
.page-card__image {
    margin: -2px -2px 10px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.page-card__image img {
    width: 100%;
    height: auto;
    display: block;
}
.page-card__title {
    margin: 0 0 10px;
    font-size: 24px;
}

/* Центрированная страница */

.page--centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.page--centered .page-content {
    text-align: left;
}

/* Split‑страница */

.page--split .page-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
}
.page-split__aside {
    font-size: 14px;
    color: #4b5563;
}
.page-split__image {
    margin-bottom: 8px;
}
.page-split__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.page-split__summary h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

/* Hero-cover страница (новый шаблон) */

.page--hero-cover {
    max-width: 960px;
    margin: 0 auto;
}
.page-hero-cover {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        var(--color-primary, #2563eb),
        var(--hero-grad2, #38bdf8)
    );
    color: #f9fafb;
}
.page-hero-cover__title {
    margin: 0 0 8px;
    font-size: 26px;
}
.page-hero-cover__lead {
    margin: 0;
    font-size: 14px;
    color: #e5e7eb;
}
.page-hero-cover__media {
    text-align: right;
}
.page-hero-cover__media-inner {
    display: inline-block;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15,23,42,0.4);
    border: 2px solid rgba(249,250,251,0.7);
}
.page-hero-cover__media-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-cover__content {
    margin-top: 4px;
}

/* Banded (полосатый) шаблон — визуальное разделение блоков */

.page--banded {
    max-width: 960px;
    margin: 0 auto;
}
.page--banded .page-content > h2,
.page--banded .page-content > h3 {
    margin-top: 32px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.page--banded .page-content > h2:first-child,
.page--banded .page-content > h3:first-child {
    border-top: none;
    padding-top: 0;
}
.page--banded .page-content p {
    margin-bottom: 10px;
}
.page--banded .page-content > h2:nth-of-type(odd),
.page--banded .page-content > h3:nth-of-type(odd) {
    background: linear-gradient(90deg, rgba(37,99,235,0.03), transparent);
    padding-left: 8px;
    border-radius: 4px;
}

/* ====== POST TEMPLATES ====== */

.post-hero {
    position: relative;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
}
.post-hero__image {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
}
.post-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.0));
    color: #f9fafb;
}
.post-hero__label {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.post-hero__title {
    margin: 0 0 4px;
    font-size: 24px;
}
.post-hero__meta {
    font-size: 13px;
}

/* Sidebar‑layout статьи */

.post-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
}
.post-layout-sidebar__aside {
    font-size: 14px;
    color: #4b5563;
}
.post-layout-sidebar__image {
    margin-bottom: 8px;
}
.post-layout-sidebar__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Magazine‑статья */

.post-mag-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 16px;
    margin-bottom: 16px;
}
.post-mag-header__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.post-mag-header__title {
    margin: 0 0 6px;
    font-size: 26px;
}
.post-mag-header__meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.post-mag-header__lead {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ====== HOME: MAGAZINE ====== */

.home-magazine {
    display: block;
}

.home-featured-hero {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #111827;
    margin-bottom: 20px;
}
.home-featured-hero__overlay {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.3));
    color: #f9fafb;
}
.home-featured-hero__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    margin: 0 0 4px;
}
.home-featured-hero__title {
    margin: 0 0 8px;
    font-size: 24px;
}
.home-featured-hero__title a {
    color: #f9fafb;
}
.home-featured-hero__excerpt {
    margin: 0;
    font-size: 14px;
    color: #e5e7eb;
}

/* chips категорий */

.home-section--tight {
    margin-bottom: 20px;
}
.home-categories-grid--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.home-category-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    color: #111827;
}
.home-category-chip:hover {
    background: #e5e7eb;
    text-decoration: none;
}

/* Сетка для остальных статей */

.home-mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.home-mag-card {
    background: var(--home-posts-bg, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.home-mag-card__image {
    height: 140px;
    overflow: hidden;
}
.home-mag-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-mag-card__body {
    padding: 10px 12px 12px;
}
.home-mag-card__title {
    margin: 0 0 4px;
    font-size: 16px;
}
.home-mag-card__title a {
    color: #111827;
}
.home-mag-card__excerpt {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ====== HOME: ПОРТАЛ ====== */

.home-portal__subtitle {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: 14px;
}

.home-portal-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.home-portal-cat {
    background: var(--home-categories-bg, #ffffff);
    border-radius: 8px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.home-portal-cat__title {
    margin: 0 0 4px;
    font-size: 16px;
}
.home-portal-cat__title a {
    color: #111827;
}
.home-portal-cat__desc {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.home-portal-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-portal-post {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}
.home-portal-post__date {
    font-size: 13px;
    color: #6b7280;
}
.home-portal-post__title {
    margin: 0 0 4px;
    font-size: 15px;
}
.home-portal-post__title a {
    color: #111827;
}
.home-portal-post__excerpt {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

/* ====== HOME: ОБРАЗОВАТЕЛЬНЫЙ ЛЕЙАУТ ====== */

.home-edu-hero {
    margin: 0 0 24px;
    padding: 32px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        var(--color-primary, #2563eb),
        var(--hero-grad2, #38bdf8)
    );
    color: #f9fafb;
}
.home-edu-hero__inner {
    max-width: 720px;
}
.home-edu-hero__title {
    margin: 0 0 8px;
    font-size: 28px;
}
.home-edu-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #e5e7eb;
}
.home-edu-hero__actions {
    margin-top: 12px;
}

.home-edu-stats {
    margin-bottom: 28px;
}
.home-edu-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.home-edu-stat {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.home-edu-stat__value {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}
.home-edu-stat__label {
    font-size: 13px;
    color: #4b5563;
}

.home-edu-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.home-edu-dept-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.home-edu-dept-card__title {
    margin: 0 0 4px;
    font-size: 16px;
}
.home-edu-dept-card__desc {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ====== HOME: МОЗАИКА И ПРОМО-ГЕРОЙ БЛОГА ====== */

.home-mosaic__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 16px;
    margin-bottom: 24px;
}
.home-mosaic-main {
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
}
.home-mosaic-main__image-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
}
.home-mosaic-main__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-mosaic-main__content {
    padding: 12px 14px 14px;
}
.home-mosaic-main__badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    color: #e5e7eb;
}
.home-mosaic-main__title {
    margin: 0 0 6px;
    font-size: 20px;
}
.home-mosaic-main__title a {
    color: #f9fafb;
}
.home-mosaic-main__excerpt {
    margin: 0;
    font-size: 14px;
    color: #e5e7eb;
}

.home-mosaic-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.home-mosaic-side-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.home-mosaic-side-card__image-wrap {
    display: block;
    height: 90px;
    overflow: hidden;
}
.home-mosaic-side-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-mosaic-side-card__body {
    padding: 8px 10px 10px;
}
.home-mosaic-side-card__title {
    margin: 0;
    font-size: 14px;
}
.home-mosaic-side-card__title a {
    color: #111827;
}

/* Промо-герой для блога */

.home-promo-hero {
    margin: 0 0 24px;
}
.home-promo-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: center;
}
.home-promo-hero__text {
    background: #111827;
    color: #f9fafb;
    border-radius: 14px;
    padding: 16px 18px 18px;
}
.home-promo-hero__title {
    margin: 0 0 8px;
    font-size: 24px;
}
.home-promo-hero__excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    color: #e5e7eb;
}
.home-promo-hero__actions {
    margin-top: 4px;
}
.home-promo-hero__image {
    border-radius: 14px;
    overflow: hidden;
}
.home-promo-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Теги-бейджи для категорий (лента) */

.home-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.home-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    background: #ffffff;
    color: #111827;
}
.home-tag-chip:hover {
    background: #e5e7eb;
    text-decoration: none;
}

/* Персональный лендинг: три фичи */

.home-personal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.home-personal-feature {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.home-personal-feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
}
.home-personal-feature p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* Каталоговые плитки для landing/edu */

.home-catalog-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.home-catalog-tile {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.home-catalog-tile__title {
    margin: 0 0 4px;
    font-size: 16px;
}
.home-catalog-tile__desc {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ====== BLOG: ЖУРНАЛЬНЫЙ СТИЛЬ ====== */

.blog-magazine h1 {
    font-size: 26px;
    margin-bottom: 16px;
}

.blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
    gap: 16px;
    margin-bottom: 20px;
}
.blog-featured__image {
    border-radius: 12px;
    overflow: hidden;
}
.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-featured__content {
    display: flex;
    flex-direction: column;
}
.blog-featured__title {
    margin: 0 0 6px;
    font-size: 22px;
}
.blog-featured__title a {
    color: #111827;
}
.blog-featured__meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.blog-featured__excerpt {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.blog-mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.blog-mag-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.blog-mag-card__image {
    height: 130px;
    overflow: hidden;
}
.blog-mag-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-mag-card__body {
    padding: 8px 10px 12px;
}
.blog-mag-card__title {
    margin: 0 0 4px;
    font-size: 15px;
}
.blog-mag-card__title a {
    color: #111827;
}
.blog-mag-card__meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.blog-mag-card__excerpt {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

/* ====== BLOG: СТЕНА КАРТОЧЕК ====== */

.blog-wall h1 {
    font-size: 26px;
    margin-bottom: 16px;
}
.blog-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.blog-wall-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.blog-wall-card__image {
    display: block;
    height: 130px;
    overflow: hidden;
}
.blog-wall-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-wall-card__body {
    padding: 8px 10px 10px;
}
.blog-wall-card__tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 4px;
}
.blog-wall-card__title {
    margin: 0 0 4px;
    font-size: 15px;
}
.blog-wall-card__title a {
    color: #111827;
}
.blog-wall-card__excerpt {
    margin: 0 0 6px;
    font-size: 13px;
    color: #4b5563;
}
.blog-wall-card__meta {
    font-size: 11px;
    color: #9ca3af;
}

/* ====== ВАРИАНТЫ ГЛОБАЛЬНОГО СТИЛЯ (theme_style) ====== */

/* Classic — базовый корпоративный */

/* Soft UI — мягкие карточки, больше тени, скругления */

body.style-soft .container {
    max-width: 1040px;
}

body.style-soft .home-hero,
body.style-soft .home-cta-gradient {
    border-radius: 24px;
}

body.style-soft .home-category-card,
body.style-soft .home-post-card,
body.style-soft .blog-card,
body.style-soft .site-sidebar .sidebar-block {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    border: 1px solid rgba(148,163,184,0.25);
    backdrop-filter: saturate(1.1);
}

/* Glassmorphism — стеклянные полупрозрачные блоки */

body.style-glass {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(99,102,241,0.18), transparent 55%),
                var(--color-bg, #020617);
}

body.style-glass .site-main__content,
body.style-glass .site-sidebar .sidebar-block,
body.style-glass .home-category-card,
body.style-glass .home-post-card,
body.style-glass .blog-card,
body.style-glass .home-hero {
    background: rgba(15,23,42,0.65);
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 45px rgba(15,23,42,0.7);
    backdrop-filter: blur(18px);
    color: #e5e7eb;
}

body.style-glass .page-content p,
body.style-glass .sidebar-text,
body.style-glass .blog-item__excerpt,
body.style-glass .home-post-card__excerpt {
    color: #e5e7eb;
}

body.style-glass .home-category-card__title a,
body.style-glass .home-post-card__title a,
body.style-glass .blog-card__title a,
body.style-glass .sidebar-list a {
    color: #f9fafb;
}

/* Magazine — журнальный медиа‑стиль */

body.style-magazine .container {
    max-width: 1180px;
}

body.style-magazine .site-main {
    gap: 32px;
}

body.style-magazine .blog-list h1,
body.style-magazine .page h1,
body.style-magazine .home-hero__title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 26px;
}

body.style-magazine .blog-list__items--grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.style-magazine .blog-card {
    border-radius: 4px;
    box-shadow: none;
    border-top: 3px solid var(--color-primary, #2563eb);
}

body.style-magazine .home-category-card,
body.style-magazine .home-post-card {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* Neon — тёмный неоновый стиль */

body.style-neon {
    background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
    color: #e5e7eb;
}

body.style-neon .site-header {
    background: linear-gradient(90deg, #1d1b4c, #4c1d95, #0f766e);
    box-shadow: 0 14px 40px rgba(15,23,42,0.9);
}

body.style-neon .logo a {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 18px;
}

body.style-neon .main-nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.style-neon .home-hero,
body.style-neon .home-cta-gradient {
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.4), 0 18px 45px rgba(15,23,42,0.9);
}

body.style-neon .home-category-card,
body.style-neon .home-post-card,
body.style-neon .blog-card,
body.style-neon .site-sidebar .sidebar-block {
    background: rgba(15,23,42,0.9);
    border-radius: 14px;
    border: 1px solid rgba(94,234,212,0.35);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
}

body.style-neon .home-post-card__title a,
body.style-neon .home-category-card__title a,
body.style-neon .blog-card__title a {
    color: #e5e7eb;
}

/* Овальный хедер */

.site-header--oval {
    padding: 12px 0 20px;
    background: transparent;
}

.header-oval {
    background: #111827;
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.35);
}

.headergrad-on .header-oval {
    background: linear-gradient(135deg,
        var(--color-header-bg, #111827),
        var(--color-header-grad2, #1f2937)
    );
}

.header-oval__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 14px;
    align-items: center;
    color: #f9fafb;
}

.header-oval__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-oval__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.header-oval__logo-wrap {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15,23,42,0.7);
    border: 2px solid rgba(248,250,252,0.9);
}
.header-oval__logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-oval__title {
    font-size: 18px;
    font-weight: 600;
}

.header-oval__tagline {
    font-size: 12px;
    color: #e5e7eb;
}

/* Навигация-«пилюли» */

.header-oval__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.header-oval__nav-item {
    position: relative;
}

.header-oval__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.5);
    color: #e5e7eb;
    font-size: 13px;
    text-decoration: none;
}
.header-oval__nav-link:hover {
    background: rgba(249,250,252,0.12);
    text-decoration: none;
}

.header-oval__nav-item--dropdown:hover .header-oval__dropdown {
    display: block;
}

.header-oval__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #111827;
    border-radius: 10px;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: 0 14px 32px rgba(15,23,42,0.8);
    z-index: 50;
}
.header-oval__dropdown a {
    display:block;
    padding:6px 12px;
    font-size:13px;
    color:#e5e7eb;
}
.header-oval__dropdown a:hover {
    background:#1f2937;
}

/* Правая часть: CTA + соцсети */

.header-oval__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.header-oval__cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 14px;
    border-radius:999px;
    background:#f97316;
    color:#111827;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
}
.header-oval__cta:hover {
    background:#ea580c;
    text-decoration:none;
}

.header-oval__socials {
    display:flex;
    gap:6px;
}

.header-social {
    width:26px;
    height:26px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:600;
    color:#111827;
    background:#e5e7eb;
    text-decoration:none;
}
.header-social--vk { background:#10b981; color:#f9fafb; }
.header-social--tg { background:#0ea5e9; color:#f9fafb; }
.header-social--yt { background:#ef4444; color:#f9fafb; }
.header-social--tw { background:#111827; color:#f9fafb; }
.header-social--wa { background:#22c55e; color:#f9fafb; }

.header-social:hover {
    opacity:0.9;
}

/* Адаптив овального хедера */

@media (max-width: 960px) {
    .header-oval__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }
    .header-oval__right {
        justify-content:flex-start;
    }
}

@media (max-width: 640px) {
    .header-oval {
        border-radius: 24px;
    }
}


/* Borderless — минимализм */

body.style-borderless .site-main {
    gap: 16px;
}

body.style-borderless .home-category-card,
body.style-borderless .home-post-card,
body.style-borderless .blog-card,
body.style-borderless .site-sidebar .sidebar-block {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

body.style-borderless .blog-item--list {
    border-bottom: 1px solid #e5e7eb;
}

body.style-borderless .home-posts-grid,
body.style-borderless .home-categories-grid {
    gap: 8px;
}

body.style-borderless .home-section__title {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

body.style-borderless .site-footer {
    border-top: 1px solid #e5e7eb;
    background: transparent;
}

/* ====== АДАПТИВ ДЛЯ НОВЫХ МАКЕТОВ ====== */

@media (max-width: 800px) {
    .blog-featured {
        grid-template-columns: minmax(0, 1fr);
    }
    .blog-mag-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .post-layout-sidebar,
    .page--split .page-split,
    .post-mag-header,
    .home-mosaic__grid,
    .home-promo-hero__layout,
    .page-hero-cover {
        grid-template-columns: minmax(0, 1fr);
    }
    .page-hero-cover__media {
        text-align: left;
        margin-top: 8px;
    }
}
