body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f3f3;
    color: #222;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero-text {
    max-width: 720px;
    margin: 0 auto;
}

.grade-section,
.topics-section {
    margin-bottom: 24px;
}

.grade-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.grade-btn {
    padding: 12px 24px;
    border: 2px solid #333;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.grade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.grade-btn--active {
    border-color: #2e7d32;
    background: #e8f5e9;
}

.topic-page .hero-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #555;
}

.topic-intro {
    margin-bottom: 24px;
}

.topic-actions .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.topic-item+.topic-item {
    margin-top: 6px;
}

.topic-item a {
    font-weight: 600;
    text-decoration: none;
}

.topic-item a:hover {
    text-decoration: underline;
}

.topic-desc {
    margin-left: 4px;
    color: #555;
    font-size: 14px;
}

.topic-page .hero-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #555;
}

.theory-block,
.practice-block {
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: #256428;
}
.btn-disabled {
    background: #aaa;
    cursor: default;
}

.back-link {
    margin-top: 16px;
}

.hidden {
    display: none;
}

/* kad "Temos" blokas būtų šiek tiek arčiau klasių */
.topics-section {
    margin-top: 24px;
}

.action-card {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tests-block {
    margin-bottom: 24px;
}

.test-question {
    margin-bottom: 16px;
}

.test-options label {
    display: block;
    cursor: pointer;
    margin-bottom: 4px;
}

.test-feedback.ok {
    color: #15803d;
    font-size: 14px;
    margin-top: 4px;
}

.test-feedback.bad {
    color: #b91c1c;
    font-size: 14px;
    margin-top: 4px;
}
.symbol-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.symbol-bar span {
    margin-right: 4px;
}

.symbol-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    font-size: 14px;
}

.symbol-btn:hover {
    background: #e5e7eb;
}

.theory-link {
    margin-top: 4px;
}

.btn-theory {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    text-decoration: none;
    color: #111827;
}

.btn-theory:hover {
    background: #e5e7eb;
}