/* Оформление подкатегорий с обновлёнными баннерами. Подключается только на выбранных страницах. */
.nk-section-page {
  --section-surface: #fff;
  --section-soft: #f2f6fa;
  --section-ink: #1e3a5f;
  --section-muted: #5b6b7c;
  --section-line: #dfe7ef;
  --section-blue: #2563a7;
  background: #f6f8fb; color: var(--section-ink);
}
.nk-section-page .nk-section-hero {
  background: radial-gradient(ellipse at 90% 0, rgba(72,160,214,.28), transparent 55%), linear-gradient(115deg, #10243d, #1e3a5f) !important;
}
.nk-section-hero--compact { border-radius: 24px; overflow: hidden; }
.nk-section-hero--compact .zb-illustrated-banner { background: transparent !important; }
.nk-section-page [data-slot="card"] { border: 1px solid var(--section-line); border-radius: 22px; background: var(--section-surface) !important; box-shadow: 0 6px 22px rgba(15,36,64,.04); }
.nk-section-page [data-slot="badge"] { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.nk-section-panel > h2, .nk-section-actions > h2 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.25; }
.nk-section-panel p { font-size: 15px; line-height: 1.85; }
.nk-section-panel ul > li { padding: 16px; border: 1px solid var(--section-line); border-radius: 16px; background: var(--section-soft) !important; }
.nk-section-actions [data-slot="card-content"] { padding: 24px; }
.nk-section-actions [data-slot="card"] h3 { font-size: 19px; line-height: 1.35; }
.nk-section-hero .zb-illustrated-banner { gap: 48px; }
.nk-section-hero .zb-illustrated-banner__image { border-radius: 24px; box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.nk-section-hero .zb-illustrated-banner__copy h1 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.13; letter-spacing: -.025em; }
.nk-section-hero .zb-illustrated-banner__copy p { font-size: 16px; line-height: 1.7; }
.nk-section-page .nk-section-types { background: var(--section-surface) !important; }
.nk-section-types [data-slot="card"] {
  border: 1px solid var(--section-line); border-radius: 22px; background: var(--section-surface) !important;
  box-shadow: 0 6px 22px rgba(15,36,64,.04);
}
.nk-section-types [data-slot="card"]:hover { border-color: #88b3dc; box-shadow: 0 12px 28px rgba(15,36,64,.1); }
.nk-section-types [data-slot="card-content"] { padding: 26px; }
.nk-section-types h3 { font-size: 21px; line-height: 1.3; }
.nk-section-types h3 { overflow-wrap: anywhere; }
.nk-section-types p { display: block; -webkit-line-clamp: unset; font-size: 14px; line-height: 1.7; }
.nk-section-types [data-slot="card-content"] > span { padding-top: 8px; gap: 6px; }
.nk-section-page .nk-section-reading { background: transparent !important; }
.nk-section-reading-grid { display: grid; gap: 26px; }
.nk-section-reading-grid > div { min-width: 0; }
.nk-section-reading-grid nav[aria-label="Оглавление"] {
  margin: 0; padding: 22px; border: 1px solid var(--section-line); border-radius: 22px;
  background: var(--section-surface) !important; box-shadow: 0 6px 24px rgba(15,36,64,.04);
}
.nk-section-reading-grid nav ol { display: grid; gap: 8px; }
.nk-section-reading-grid nav li { align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--section-line); }
.nk-section-reading-grid nav li:last-child { border: 0; }
.nk-section-reading-grid nav a { font-size: 14px; line-height: 1.55; text-decoration: none; }
.nk-section-reading-grid nav a:hover { color: var(--section-blue); text-decoration: underline; text-underline-offset: 3px; }
.nk-section-page .nk-section-chapter {
  margin: 0; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--section-line); border-radius: 24px;
  background: var(--section-surface) !important; box-shadow: 0 6px 24px rgba(15,36,64,.035);
}
.nk-section-chapter::after { content: ""; display: table; clear: both; }
.nk-section-chapter > h2 { margin-bottom: 20px; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -.02em; }
.nk-section-chapter p { font-size: 15px; line-height: 1.85; color: var(--section-muted); }
.nk-section-chapter ul > li, .nk-section-chapter ol > li {
  padding: 18px; border: 1px solid var(--section-line); border-radius: 16px; background: var(--section-soft) !important;
}
.nk-section-chapter ol > li { border-left: 3px solid var(--section-blue); }
.nk-section-chapter li > div { min-width: 0; }
.nk-section-chapter li .text-xs { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.nk-section-chapter li .text-xs:not(.flex):not(.inline-flex) { display: inline-block; }
.nk-section-chapter [data-slot="card"] { border: 1px solid var(--section-line); border-radius: 16px; background: var(--section-soft) !important; }
.nk-section-chapter .my-8 { border-radius: 18px; }
.nk-section-page .nk-section-tests {
  margin: 0; background: linear-gradient(120deg, #10243d, #1e3a5f) !important;
}
.nk-section-tests h2, .nk-section-tests h3 { color: #faf6ef !important; }
.nk-section-tests p { color: #cddbeb !important; }
.nk-section-tests [data-slot="card"] { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; }
.nk-section-tests [data-slot="card"] span { color: #e2ebf4; }
.nk-section-page .nk-section-stories { background: transparent !important; }
.nk-section-stories [data-slot="card"] { background: var(--section-surface) !important; border: 1px solid var(--section-line); border-radius: 22px; box-shadow: 0 6px 24px rgba(15,36,64,.035); }
.nk-section-stories [data-slot="card-content"] { padding: 26px; }
.nk-section-stories p { font-size: 15px; line-height: 1.75; }
.nk-section-page .zb-land-faq details { border-radius: 18px; }
@media (min-width: 1200px) {
  .nk-section-reading-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .nk-section-reading-grid > div { grid-column: 2; }
  .nk-section-reading-grid > div:first-child { grid-column: 1; grid-row: 1 / span var(--section-chapter-count, 7); align-self: start; position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; border-radius: 22px; }
  .nk-section-page #chto-takoe .my-8 { float: right; width: 44%; margin: 6px 0 16px 22px; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .nk-section-reading-grid nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 599px) {
  .nk-section-hero .zb-illustrated-banner { gap: 26px; }
  .nk-section-reading-grid { gap: 20px; }
  .nk-section-types [data-slot="card-content"] { padding: 22px; }
  .nk-section-chapter ul > li, .nk-section-chapter ol > li { padding: 14px; }
}
[data-theme="dark"] .nk-section-page {
  --section-surface: #172431;
  --section-soft: #1c2d3e;
  --section-ink: #e4edf5;
  --section-muted: #a8bdce;
  --section-line: #304357;
  --section-blue: #7ab5e8;
  background: #0f1b27;
}
