/* Открытые страницы заданий и тем (/ege-*/zadaniya, /zadanie-N, /tema/...) */
.study h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 6px 0 12px; color: var(--eb-strong); }
.study__narrow { max-width: 820px; }
.study__h2 { font-size: 24px; margin: 40px 0 16px; color: var(--eb-strong); }
.study__h3 { font-size: 18px; margin: 26px 0 10px; color: var(--eb-strong); }

.study-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.study-number { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 14px 16px; border-radius: 16px;
    background: var(--eb-tile); color: var(--eb-text); text-decoration: none; transition: background .15s; }
.study-number:hover { background: var(--eb-tile-hover); }
.study-number__n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--eb-accent-grad); color: #fff; font-weight: 700; font-size: 18px; }
.study-number__title { font-size: 14px; line-height: 1.35; color: var(--eb-strong);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.study-number__meta { font-size: 12px; color: var(--eb-muted); }

.study-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 24px; }
.study-topics li { padding: 6px 0; border-bottom: 1px solid var(--eb-border); display: flex; justify-content: space-between; gap: 12px; }
.study-topics a { color: var(--eb-text); }
.study-topics a:hover { color: var(--eb-accent); }
.study-topics__n { color: var(--eb-muted); font-size: 13px; white-space: nowrap; }

.study-numlinks { color: var(--eb-muted); }
.study-numlinks a { margin-left: 8px; }

.study-card { padding: 18px 20px; border-radius: 16px; background: var(--eb-tile); margin-bottom: 14px; }
.study-card h2, .study-card h3 { font-size: 18px; margin: 0 0 10px; color: var(--eb-strong); }
.study-card h3 a { color: inherit; }
.study-card--goals ul { margin: 0; padding-left: 20px; }
.study-text { line-height: 1.6; color: var(--eb-text); }
.study-text p { margin: 0 0 10px; }
.study-example { padding: 12px 14px; border-left: 3px solid var(--eb-accent); background: var(--eb-bg); border-radius: 8px; margin-bottom: 12px; line-height: 1.55; }
.study-example p { margin: 0 0 8px; }
.study-example p:last-child { margin: 0; }
.study-more { display: inline-block; margin-top: 4px; font-weight: 600; }

.study-tasks { padding-left: 22px; }
.study-tasks > li { margin-bottom: 16px; }
.study-task { padding: 14px 16px; border: 1px solid var(--eb-border-strong); border-radius: 14px; }
.study-task__options { margin: 0 0 10px; padding-left: 22px; }
.study-answer summary { cursor: pointer; font-weight: 600; color: var(--eb-accent); }
.study-answer[open] summary { margin-bottom: 10px; }
.study-answer h4 { margin: 14px 0 8px; font-size: 15px; }

.study-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--eb-border); flex-wrap: wrap; }
