:root {
    /* Основные цвета */
    --bg-color: #FAF7F0; /* Фон страницы */
    --card-bg-color: #ffffff; /* Фон карточек можно оставить белым для контраста */
    --text-color: #4E443A; /* Цвет текста */
    
    /* Основной брендовый цвет */
    --primary-color: #8A5A44; /* Коричневый для заголовков */
    --primary-hover-color: #6B4634; /* Его более тёмная версия для наведения */
    
    /* Акцентный цвет для кнопок */
    --accent-color: #D35400; /* Оранжевый */
    --accent-hover-color: #B34700; /* Его более тёмная версия */

    /* Служебные цвета (можно оставить как есть) */
    --correct-color: #28a745; /* Зелёный для верного ответа */
    --wrong-color: #dc3545; /* Красный для неверного ответа */

    /* Шрифт */
    --font-family: 'PT Serif', serif;
}

#checkBtn {
    background-color: var(--accent-color);
    color: white; 
}
#checkBtn:hover { 
    background-color: var(--accent-hover-color); 
}

body {
    background-color: var(--bg-color);
}

html {
    font-size: 20px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Optional: subtle navbar divider to match the clean look */
.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
}

.navbar-item {
    font-size: 1.05rem;
}

.navbar-item strong {
    font-weight: 700;
}

/* ======= Martor rendered markdown ======= */

.martorcontent {
    font-size: 20px;
    line-height: 1.7;
    color: #2c2c2c;
    max-width: 820px;
    margin: 0 auto;
}

/* Заголовки */
.martorcontent h1,
.martorcontent h2,
.martorcontent h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.martorcontent h1 {
    font-size: clamp(28px, 4vw, 40px);
}

.martorcontent h2 {
    font-size: clamp(22px, 3vw, 32px);
}

.martorcontent h3 {
    font-size: clamp(20px, 2.5vw, 24px);
}

/* Абзацы и списки */
.martorcontent p {
    margin: 0.6em 0;
}

.martorcontent ul,
.martorcontent ol {
    margin: 0.6em 0 0.6em 1.5em;
}

.martorcontent li {
    margin: 0.25em 0;
}

.martorcontent a {
    color: #3273dc;
    /* Bulma primary */
    text-decoration: none;
    /* без подчёркивания */
    font-weight: 500;
    transition: color 0.2s ease;
}

.martorcontent a:hover {
    color: #2753aa;
    /* чуть темнее при наведении */
    text-decoration: none;
}

/* Цитаты */
.martorcontent blockquote {
    border-left: 4px solid #dbdbdb;
    padding-left: 1rem;
    color: #4a4a4a;
    font-style: italic;
    margin: 1em 0;
}

/* Код */
.martorcontent code {
    background: #f6f8fa;
    color: inherit;
    border-radius: 4px;
    padding: 0.15em 0.35em;
    font-size: 0.95em;
}

.martorcontent pre {
    background: #0f111a0d;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.martorcontent pre code {
    background: transparent;
    padding: 0;
}

/* Таблицы */
.martorcontent table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-variant-numeric: tabular-nums;
}

.martorcontent th,
.martorcontent td {
    border: 1px solid #e5e5e5;
    padding: 0.5rem 0.75rem;
}

.martorcontent thead th {
    background: #fafafa;
    font-weight: 700;
}

/* Изображения */
.martorcontent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1rem auto;
}

/* Разделители */
.martorcontent hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

/* Equal-height Bulma card grid */
.cards-grid .column {
    display: flex;
}

.cards-grid .unit-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cards-grid .unit-card .card-content {
    flex-grow: 1;
    /* push footer to bottom */
}

/* Optional polish */
.unit-card .card-content {
    padding: 0.9rem 1rem;
}

.unit-card .card-header-title {
    line-height: 1.2;
}
