:root {
    --bg-accent: #dfe7ff;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --panel-border: rgba(106, 90, 205, 0.16);
    --text: #1f2a44;
    --muted: #5f6f86;
    --accent: #6a5acd;
    --accent-dark: #5443c4;
    --accent-soft: rgba(106, 90, 205, 0.12);
    --ok: #2f9e5c;
    --bad: #d64545;
    --current: #ffbf47;
    --radius: clamp(12px, 1.5vw, 18px);
    --radius-sm: clamp(8px, 1vw, 12px);
    --mono: "Fira Code", "Consolas", "Courier New", monospace;
    --sans: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="dark"] {
    --bg-accent: #07130f;
    --panel: rgba(13, 22, 18, 0.96);
    --panel-strong: #080f0c;
    --panel-border: rgba(0, 255, 136, 0.22);
    --text: #d7ffe8;
    --muted: #8ccaa7;
    --accent: #00d979;
    --accent-dark: #00a85f;
    --accent-soft: rgba(0, 255, 136, 0.11);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(160, 180, 255, 0.26), transparent 32%),
        linear-gradient(160deg, #f6f8fc 0%, #edf2f7 52%, #e9eef7 100%);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
    background:
        radial-gradient(circle at top left, rgba(0, 255, 136, 0.08), transparent 30%),
        linear-gradient(160deg, #030705 0%, #07110d 58%, #020403 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img,
canvas,
iframe {
    max-width: 100%;
}

.site-header,
.page,
.site-footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.container {
    width: min(100% - 2vw, 88rem);
    margin: 0 auto;
}

/* ===== ШАПКА ===== */
.site-header {
    position: relative;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(106, 90, 205, 0.08);
    box-shadow: 0 10px 22px rgba(56, 70, 110, 0.08);
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.5vw, 16px);
    padding: clamp(6px, 1.2vh, 10px) 0;
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-links,
.auth-buttons,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.2vw, 14px);
    align-items: center;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #31415b;
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(28px, 4vh, 36px);
    padding: clamp(4px, 0.8vh, 8px) clamp(10px, 1.5vw, 16px);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 20px rgba(106, 90, 205, 0.24);
}

.btn-secondary {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(106, 90, 205, 0.25);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
    padding: clamp(6px, 1vh, 12px) 0;
}

/* ===== СЕТКА ===== */
.layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(160px, 18vw) minmax(0, 1fr) minmax(140px, 20vw);
    gap: clamp(6px, 1vw, 16px);
    align-items: start;
    min-height: 0;
    overflow: visible;
}

.left-sidebar,
.trainer-column,
.right-sidebar {
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== ПАНЕЛИ ===== */
.panel {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    
}

.left-sidebar .panel,
.right-sidebar .panel,
.trainer-panel {
    padding: clamp(8px, 1.2vw, 14px);
}

.panel-heading h2,
.trainer-topbar h2 {
    margin: 0;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    line-height: 1.2;
}

.panel-heading p,
.sidebar-label,
.hint,
.lesson-item small {
    color: var(--muted);
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar-controls {
    margin: clamp(6px, 1vh, 10px) 0;
}

.sidebar-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.sidebar-search,
textarea {
    width: 100%;
    border: 1px solid rgba(106, 90, 205, 0.2);
    background: var(--panel-strong);
    border-radius: clamp(8px, 1vw, 12px);
    padding: clamp(6px, 0.8vh, 10px) clamp(8px, 1vw, 12px);
    outline: none;
    color: var(--text);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.14);
}

.sidebar-tree {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.8vh, 8px);
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding-right: 4px;
}

/* ===== ДЕРЕВО УРОКОВ ===== */
.tree-group {
    border: 1px solid rgba(106, 90, 205, 0.12);
    border-radius: clamp(8px, 1vw, 12px);
    background: rgba(255, 255, 255, 0.74);
}

.tree-group-title,
.tree-child-title {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
}

.tree-group-title {
    padding: clamp(6px, 0.8vh, 10px) clamp(8px, 1vw, 12px);
    font-weight: 800;
}

.tree-child-title {
    padding: clamp(4px, 0.6vh, 8px) clamp(6px, 0.8vw, 10px);
    font-weight: 700;
}

.tree-group-title:hover,
.tree-child-title:hover {
    background: var(--accent-soft);
}

.tree-lessons,
.tree-child-lessons {
    display: none;
    padding: 0 clamp(4px, 0.6vw, 8px) clamp(4px, 0.6vh, 8px);
}

.tree-group.open .tree-lessons,
.tree-child.open .tree-child-lessons {
    display: block;
}

.tree-child {
    margin-top: clamp(2px, 0.4vh, 6px);
    border: 1px solid rgba(106, 90, 205, 0.1);
    border-radius: clamp(6px, 0.8vw, 10px);
    background: rgba(246, 247, 255, 0.9);
}

.lesson-item {
    width: 100%;
    margin-top: clamp(2px, 0.4vh, 6px);
    padding: clamp(4px, 0.6vh, 8px) clamp(6px, 0.8vw, 10px);
    border: 1px solid transparent;
    border-radius: clamp(6px, 0.8vw, 10px);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    transition: 0.2s ease;
}

.lesson-item:hover,
.lesson-item.active {
    background: #fff;
    border-color: rgba(106, 90, 205, 0.18);
    box-shadow: 0 6px 14px rgba(106, 90, 205, 0.08);
}

.lesson-item small {
    font-size: clamp(0.6rem, 0.7vw, 0.7rem);
    margin-top: 2px;
    color: var(--muted);
}

/* ===== ТРЕНАЖЁР ===== */
.trainer-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(6px, 1vw, 12px);
    margin-bottom: clamp(6px, 1vh, 10px);
    flex-wrap: wrap;
}

.lesson-badge {
    padding: clamp(3px, 0.5vh, 6px) clamp(6px, 0.8vw, 10px);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    font-weight: 700;
    white-space: nowrap;
}

.meta-label,
.block-label,
.ad-caption {
    margin: 0 0 4px;
    font-size: clamp(0.6rem, 0.7vw, 0.7rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(4px, 0.6vw, 8px);
    margin-bottom: clamp(6px, 1vh, 10px);
}

.stat-card {
    padding: clamp(6px, 0.8vh, 10px) clamp(4px, 0.6vw, 8px);
    border-radius: clamp(8px, 1vw, 14px);
    background: linear-gradient(180deg, #ffffff, #f7f8ff);
    border: 1px solid rgba(106, 90, 205, 0.1);
    text-align: center;
}

.stat-title {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: clamp(0.55rem, 0.7vw, 0.7rem);
    font-weight: 700;
}

.stat-card strong {
    display: block;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    color: var(--accent);
    line-height: 1.1;
}

.stat-card small {
    font-size: clamp(0.5rem, 0.6vw, 0.65rem);
    color: var(--muted);
}

/* ===== ОБЛАСТЬ ПЕЧАТИ ===== */
.typing-area {
    display: grid;
    gap: clamp(4px, 0.8vh, 10px);
}

.text-panel,
.input-panel {
    padding: clamp(8px, 1vw, 12px);
    border-radius: clamp(10px, 1.5vw, 16px);
    background: var(--panel-strong);
    border: 1px solid rgba(106, 90, 205, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.keyboard-panel {
    padding: clamp(6px, 0.8vw, 10px);
    border-radius: clamp(10px, 1.5vw, 16px);
    background: var(--panel-strong);
    border: 1px solid rgba(106, 90, 205, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow-x: auto;
}

.text-display,
textarea {
    font-family: var(--mono);
    line-height: 1.5;
}

/* ВЫСОТА ТЕКСТА — зависит от высоты экрана */
.text-display {
    min-height: clamp(60px, 10vh, 100px);
    max-height: clamp(80px, 14vh, 130px);
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: clamp(0.75rem, 0.9vw, 1rem);
    color: var(--text);
}

/* ВЫСОТА TEXTAREA — зависит от высоты экрана */
textarea {
    resize: none;
    min-height: clamp(50px, 8vh, 80px);
    max-height: clamp(70px, 12vh, 110px);
    font-size: clamp(0.75rem, 0.85vw, 0.95rem);
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(4px, 0.8vw, 8px);
    margin-top: clamp(6px, 1vh, 10px);
}

/* ===== КЛАВИАТУРА ===== */
.keyboard-hint {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.3vh, 4px);
    width: 100%;
}

.keyboard-row {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1px, 0.3vw, 4px);
    width: 100%;
    justify-content: center;
}

.keyboard-key {
    flex: 1 1 0;
    min-width: clamp(18px, 2vw, 28px);
    min-height: clamp(30px, 4vh, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1px, 0.2vh, 4px) clamp(1px, 0.2vw, 3px);
    border-radius: clamp(4px, 0.6vw, 8px);
    background: #f3f6fb;
    border: 1px solid #dbe3ef;
    color: #425466;
    font-size: clamp(0.45rem, 0.7vw, 0.65rem);
    font-family: var(--mono);
    text-align: center;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.keyboard-key.active {
    background: linear-gradient(135deg, #ffb347, #ffcc73);
    border-color: #e9a53b;
    color: #2f2419;
    box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.18);
    transform: translateY(-1px);
    z-index: 2;
}

.keyboard-key-tab,
.keyboard-key-caps,
.keyboard-key-enter,
.keyboard-key-shift {
    flex: 2 2 0;
}

.keyboard-key-wide {
    flex: 2.2 2.2 0;
}

.keyboard-key-space {
    flex: 6 6 0;
    min-width: clamp(60px, 8vw, 100px);
}

/* ===== РЕЗУЛЬТАТЫ ===== */
.result-summary {
    margin-top: clamp(8px, 1.5vh, 14px);
    padding: clamp(10px, 1.5vw, 16px);
    border-radius: clamp(14px, 2vw, 20px);
    background: linear-gradient(180deg, #ffffff, #f7f8ff);
    border: 1px solid rgba(106, 90, 205, 0.12);
}

.result-summary h3 {
    margin: 0 0 clamp(6px, 1vh, 12px);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.result-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 0.8vw, 10px);
    margin-bottom: clamp(6px, 1vh, 12px);
}

.result-summary-card {
    padding: clamp(8px, 1vw, 12px);
    border-radius: clamp(10px, 1.5vw, 16px);
    background: rgba(106, 90, 205, 0.06);
    border: 1px solid rgba(106, 90, 205, 0.08);
    text-align: center;
}

.result-summary-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
}

.result-summary-card strong {
    display: block;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    color: var(--accent);
}

.result-progress-text {
    margin: 0 0 clamp(6px, 1vh, 12px);
    color: var(--muted);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
}

.hint {
    margin: clamp(4px, 0.6vh, 8px) 0 0;
    font-size: clamp(0.6rem, 0.7vw, 0.75rem);
    color: var(--muted);
}

/* ===== ПОДСВЕТКА ===== */
.char-correct {
    color: var(--ok);
    background: rgba(47, 158, 92, 0.12);
    border-radius: 3px;
}

.char-wrong {
    color: var(--bad);
    background: rgba(214, 69, 69, 0.12);
    text-decoration: underline wavy var(--bad);
    border-radius: 3px;
}

.char-current {
    color: #2d2202;
    background: rgba(255, 191, 71, 0.9);
    border-radius: 6px;
    padding: 0 2px;
    box-shadow: 0 0 0 2px rgba(255, 191, 71, 0.35);
    animation: pulseSoft 0.7s infinite;
    font-weight: 700;
}

.char-future {
    color: #7f8ba1;
}

.char-newline {
    display: inline-block;
    min-width: 12px;
}

@keyframes pulseSoft {
    0% {
        opacity: 0.82;
        box-shadow: 0 0 0 0 rgba(255, 191, 71, 0.45);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 3px rgba(255, 191, 71, 0.14);
    }
}

/* ===== ПРАВАЯ КОЛОНКА ===== */
.ad-panel {
    position: sticky;
    top: clamp(50px, 7vh, 80px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vh, 14px);
}

.ad-slot {
    padding: clamp(6px, 0.8vw, 10px);
    border-radius: clamp(8px, 1vw, 12px);
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(106, 90, 205, 0.08);
}

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: clamp(150px, 20vh, 280px);
    margin-top: clamp(4px, 0.6vh, 8px);
    border-radius: clamp(6px, 0.8vw, 10px);
    color: var(--muted);
    background: #f6f8fb;
    border: 1px dashed rgba(106, 90, 205, 0.18);
    text-align: center;
}

.theme-label {
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.9);
    transition: 0.3s;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.26);
}

.slider::before {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.22);
}

input:checked + .slider {
    background: var(--accent);
    border-color: var(--accent);
}

input:checked + .slider::before {
    transform: translateX(clamp(16px, 2vw, 20px));
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 205, 0.28);
    border-radius: 999px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .layout {
        grid-template-columns: minmax(150px, 16vw) minmax(0, 1fr) minmax(130px, 18vw);
    }
    
    .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .layout {
        grid-template-columns: minmax(150px, 18vw) minmax(0, 1fr);
    }

    .right-sidebar {
        grid-column: 1 / -1;
    }

    .ad-panel {
        position: static;
    }

    .ad-placeholder {
        min-height: clamp(120px, 15vh, 200px);
        max-height: clamp(120px, 15vh, 200px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .layout {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .left-sidebar,
    .trainer-column,
    .right-sidebar {
        max-height: none;
        overflow-y: visible;
    }

    .navbar,
    .trainer-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        position: relative;
        top: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .sidebar-tree {
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 10px, 88rem);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    
    .stat-card {
        padding: 6px 3px;
    }

    .text-display {
        min-height: 50px;
        max-height: 70px;
    }

    textarea {
        min-height: 40px;
        max-height: 60px;
    }

    .keyboard-key {
        min-width: 16px;
        min-height: 18px;
        font-size: 0.4rem;
    }

    .control-row {
        flex-direction: column;
    }

    .control-row .btn {
        width: 100%;
    }
    
    .result-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== РЕЖИМЫ ТРЕНАЖЕРА ===== */
.trainer-mode-panel,
.custom-text-panel {
    display: grid;
    gap: clamp(6px, 0.8vh, 10px);
    margin-bottom: clamp(6px, 1vh, 10px);
    padding: clamp(8px, 1vw, 12px);
    border: 1px solid rgba(106, 90, 205, 0.12);
    border-radius: clamp(10px, 1.4vw, 16px);
    background: rgba(255, 255, 255, 0.68);
}

.mode-buttons,
.progress-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(4px, 0.7vw, 8px);
}

.mode-btn {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(106, 90, 205, 0.18);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--muted);
    cursor: pointer;
    font-size: clamp(0.66rem, 0.8vw, 0.78rem);
    font-weight: 700;
    white-space: nowrap;
}

.mode-btn.active,
.mode-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
}

.level-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: clamp(0.66rem, 0.8vw, 0.78rem);
    font-weight: 700;
}

.level-control select {
    min-height: 30px;
    border: 1px solid rgba(106, 90, 205, 0.18);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--text);
    padding: 4px 10px;
    outline: none;
}

.progress-strip span {
    color: var(--muted);
    font-size: clamp(0.62rem, 0.75vw, 0.74rem);
    font-weight: 700;
}

.custom-text-panel[hidden] {
    display: none;
}

.custom-text-panel textarea {
    min-height: 64px;
    max-height: 110px;
}

.result-advice {
    color: var(--accent-dark);
    font-weight: 700;
}

@media (max-width: 768px) {
    .trainer-mode-panel,
    .custom-text-panel {
        padding: 8px;
    }

    .level-control,
    .level-control select,
    .custom-text-panel .btn {
        width: 100%;
    }

    .mode-btn {
        flex: 1 1 calc(50% - 6px);
    }
}
/* ===== SEO-БЛОК ГЛАВНОЙ ===== */
.trainer-seo-section { margin-top: clamp(10px, 2vh, 18px); }
.trainer-seo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.trainer-seo-grid article { min-width: 0; padding: clamp(10px, 1.4vw, 16px); border: 1px solid rgba(106, 90, 205, 0.12); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.72); }
.trainer-seo-grid h2 { margin: 0 0 8px; font-size: clamp(0.95rem, 1.3vw, 1.18rem); line-height: 1.25; }
.trainer-seo-grid p { margin: 0 0 8px; color: var(--muted); font-size: clamp(0.72rem, 0.85vw, 0.86rem); line-height: 1.55; }
@media (max-width: 992px) { .trainer-seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trainer-seo-grid { grid-template-columns: 1fr; } }
