/* Лендинг KITS «Навигация и доступная среда для школ и детских садов».
   Разметка — blocks/kits-shkoly-landing.php, поведение — js/kits-shkoly.js.
   Визуальный язык — как у кейса «Школа Озерная» (work-landing-ozernaya): вся страница
   на бумаге #f7f7f4, тонкие заголовки Inter 400 с плотным трекингом, схемы без рамок
   «на бумаге», справа — строки-шаги с жёлтым подчёркиванием, действия — текстовые ссылки.
   Цвет слоя (навигация / ОДИ / ФЭС / смежные) — только точкой и в изделиях на схеме. */

.ksl
{
    --ink: var(--text_color, #2b2b2b);
    --muted: #6e6e66;
    --line: #e4e4de;
    --paper: #f7f7f4;
    --gold: #8a6212;
    --acc: var(--accent_color, #f8b233);
    --acc-h: #e5a12b;
    --l-nav: #2b2b2b;
    --l-odi: #2f6db5;
    --l-fes: #1f9d55;
    --l-rel: #a3a39b;
    --head: 0px;                       /* высота липкой шапки, ставит скрипт */
    --ease: cubic-bezier(.22, 1, .36, 1);

    display: block;
    width: 100%;
    min-width: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font_family);
    font-size: 16px;
    line-height: 1.5;
}
.ksl *,
.ksl *::before,
.ksl *::after { box-sizing: border-box; }
/* Сброс — через :where(), чтобы не перебивать классы ниже */
.ksl :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
.ksl :where(ol, ul) { padding: 0; list-style: none; }
.ksl :where(a) { color: inherit; }
.ksl :where(button) { font: inherit; color: inherit; }

.ksl-cont
{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--cont_padding, 40px);
}

.ksl-eyebrow
{
    display: block;
    margin-bottom: 24px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gold);
}
.ksl h1,
.ksl h2
{
    font-family: var(--font_family);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.05;
    color: var(--ink);
    text-wrap: balance;
}
.ksl h1 { font-size: clamp(40px, 4.6vw, 60px); }
.ksl h2 { font-size: clamp(32px, 3.3vw, 48px); }
.ksl h3 { font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }

/* Кнопки — как .home_final_cta_btn; второстепенное — текстовая ссылка с подчёркиванием */
.ksl-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ksl-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border: 0;
    border-radius: 12px;
    background: var(--acc);
    color: var(--ink);
    font-family: var(--font_family);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.ksl-btn:hover { background: var(--acc-h); color: var(--ink); }
.ksl-btn--ghost { background: transparent; border: 1px solid rgba(43, 43, 43, .35); }
.ksl-btn--ghost:hover { background: transparent; border-color: var(--ink); }
.ksl-link
{
    display: inline-block;
    padding: 8px 0;
    border-bottom: 1px solid var(--acc);
    font-size: 13px;
    text-decoration: none;
    color: var(--ink);
}
.ksl-link:hover { color: var(--gold); }
.ksl-btn:focus-visible,
.ksl-link:focus-visible,
.ksl-callout:focus-visible,
.ksl-pin:focus-visible,
.ksl-pos-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Глава: секция с воздухом и тонкой линией снизу (как .chapter у Озерной) */
.ksl-hero,
.ksl-zone,
.ksl-block { position: relative; }
.ksl-hero > .ksl-cont,
.ksl-zone > .ksl-cont,
.ksl-block > .ksl-cont
{
    padding-top: 82px;
    padding-bottom: 82px;
    border-bottom: 1px solid var(--line);
}
.ksl-zone { scroll-margin-top: calc(var(--head) + 8px); }

/* Заголовок главы: слева 8 колонок, справа текст */
.ksl-hero-head,
.ksl-zone-head
{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 52px;
}
.ksl-zone-lead,
.ksl-hero-lead > p { font-size: 16px; line-height: 1.55; max-width: 400px; }
/* первый экран: заголовок — по верху правого абзаца */
.ksl-hero-head { align-items: start; }
.ksl-hero-lead > p { margin-top: 2px; }

.ksl-caption
{
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}

/* ════════════ Первый экран ════════════ */
.ksl-hero > .ksl-cont { padding-top: 56px; }
.ksl-hero-head { margin-bottom: 40px; }
.ksl-hero-lead .ksl-btns { margin-top: 28px; }
.ksl-hero-lead .ksl-btn { padding-left: 24px; padding-right: 24px; }

.ksl-hero-sheet { position: relative; }
.ksl-hero-drawing { position: relative; }
.ksl-hero-drawing .ksl-scene { display: block; width: 100%; height: auto; }

.ksl-pin
{
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translate(-13px, -50%);
    text-decoration: none;
    color: var(--ink);
}
.ksl-pin-num
{
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(43, 43, 43, .5);
    border-radius: 50%;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    transition: background .25s ease, border-color .25s ease;
}
.ksl-pin-label
{
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity .25s ease, transform .35s var(--ease);
}
.ksl-pin:hover .ksl-pin-num,
.ksl-pin.is-hot .ksl-pin-num { background: var(--acc); border-color: var(--acc); }
.ksl-pin:hover .ksl-pin-label,
.ksl-pin.is-hot .ksl-pin-label,
.ksl-pin:focus-visible .ksl-pin-label { opacity: 1; transform: none; }

.ksl-zone-index
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin-top: 36px;
}
.ksl-zone-index a
{
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
.ksl-zone-index b { font-size: 10px; font-weight: 400; }
.ksl-zone-index a:hover,
.ksl-zone-index a.is-hot { color: var(--ink); border-bottom-color: var(--acc); }

.ksl-facts
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.ksl-facts div { display: flex; gap: 6px; }
.ksl-facts b { font-weight: 500; color: var(--ink); }

/* ════════════ Как читать схемы ════════════ */
.ksl-legend > .ksl-cont
{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.ksl-legend-title { display: none; }
.ksl-legend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.ksl-legend-list li { display: grid; grid-template-columns: 10px auto; gap: 2px 12px; align-items: baseline; font-size: 13px; }
.ksl-legend-list b { font-weight: 500; }
.ksl-legend-list span { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.4; }
.ksl-legend-hint { font-size: 13px; line-height: 1.55; color: var(--muted); }

.ksl-swatch,
.ksl-dot
{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lc, var(--l-nav));
    flex: 0 0 auto;
}
[data-layer="nav"] { --lc: var(--l-nav); }
[data-layer="odi"] { --lc: var(--l-odi); }
[data-layer="fes"] { --lc: var(--l-fes); }
[data-layer="rel"] { --lc: var(--l-rel); }

/* ════════════ Кадр зоны ════════════ */
.ksl-frame
{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
}
.ksl-stage { grid-column: 1 / 9; min-width: 0; }
.ksl-side  { grid-column: 9 / -1; min-width: 0; }

.ksl-scroll { position: relative; }
.ksl-scroll-hint { display: none; }
.ksl-drawing { position: relative; width: 100%; aspect-ratio: 1200 / 760; }
.ksl-drawing > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* Конструкции — тонко и светло, цвет несут только изделия */
.ksl-scene .s-line   { fill: none; stroke: #a9a9a2; stroke-width: 1.1; stroke-linejoin: round; }
.ksl-scene .s-thin   { fill: none; stroke: #d3d3cc; stroke-width: .9; }
.ksl-scene .s-hair   { fill: none; stroke: #e2e2dc; stroke-width: .9; }
.ksl-scene .s-wall   { fill: #fdfdfb; }
.ksl-scene .s-white  { fill: #fff; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-facade { fill: url(#ksl-brick); }
.ksl-scene .s-plinth { fill: #efe9e2; }
.ksl-scene .s-slab   { fill: url(#ksl-hatch); }
.ksl-scene .s-ground { fill: #efefea; }
.ksl-scene .s-frame  { fill: #fbfbf8; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-door   { fill: #fff; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-wood   { fill: #f1e8d8; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-glass  { fill: #eef3f3; stroke: #b9bdbd; stroke-width: .9; }
.ksl-scene .s-lift   { fill: #f2f2ee; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-portal { fill: #f7f3ee; stroke: #a9a9a2; stroke-width: 1; }
.ksl-scene .s-canopy { fill: #fff; stroke: #a9a9a2; stroke-width: 1.1; }
.ksl-scene .s-post   { fill: #ecece6; stroke: #a9a9a2; stroke-width: .9; }
.ksl-scene .s-stair  { fill: #f4f4f0; stroke: #a9a9a2; stroke-width: 1.1; }
.ksl-scene .s-rail      { fill: none; stroke: #8f8f88; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ksl-scene .s-rail-thin { fill: none; stroke: #8f8f88; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ksl-scene .s-rail-hl   { fill: none; stroke: transparent; stroke-width: 12; stroke-linecap: round; }
.ksl-scene .s-glow   { fill: none; stroke: #7fd99a; stroke-width: 2.2; stroke-linecap: round; }
.ksl-scene .s-cord   { stroke: #e8463b; stroke-width: 1.2; }
.ksl-scene .s-dim    { stroke: #b5b5ae; stroke-width: 1; }
.ksl-scene .s-dimtxt { font: italic 400 17px var(--font_family); fill: var(--muted); }
.ksl-scene .s-note   { font: 400 17px var(--font_family); fill: #9a9a92; }
.ksl-scene .s-mark   { font: italic 400 13px var(--font_family); fill: #9a9a92; }
.ksl-scene .s-label  { font: 400 13px var(--font_family); fill: var(--ink); }
.ksl-scene .s-tiny   { font: 700 7px var(--font_family); fill: var(--ink); }
.ksl-scene .s-plate-num { font: 700 15px var(--font_family); fill: var(--ink); }
.ksl-scene .s-plate-txt { font: 700 13px var(--font_family); fill: #fff; }
.ksl-scene .s-bignum { font: 600 72px var(--font_family); fill: var(--ink); }
.ksl-scene .s-wallcut { stroke: #8f8f88; stroke-width: 2.4; }
.ksl-scene .s-person { fill: none; stroke: #b4b4ac; stroke-width: 2.2; stroke-linecap: round; }
.ksl-scene .s-personfill { fill: #b4b4ac; }
.ksl-scene .it { transition: opacity .45s ease, filter .45s ease; transform-box: fill-box; transform-origin: center; }

/* Выноски, линии привязки, размер */
.ksl-overlay { pointer-events: none; }
.ksl-leader
{
    stroke: #b1b1aa;
    stroke-width: 1;
    stroke-dasharray: 1 4;
    stroke-linecap: round;
    transition: opacity .3s ease, stroke .3s ease;
}
.ksl-dim { opacity: 0; transition: opacity .35s ease; }
.ksl-dim-ext   { stroke: var(--acc); stroke-width: 1.4; stroke-dasharray: 4 4; }
.ksl-dim-line  { stroke: var(--ink); stroke-width: 1.2; }
.ksl-dim-arrow { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.ksl-dim-txt   { font: italic 500 18px var(--font_family); fill: var(--ink); }
.ksl-dim.is-on { opacity: 1; }
.ksl-dim.is-on .ksl-dim-line { animation: ksl-grow .8s var(--ease) both; }
@keyframes ksl-grow { from { stroke-dasharray: 0 999; } to { stroke-dasharray: 999 0; } }

.ksl-callout
{
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    padding: 0;
    border: 1px solid rgba(43, 43, 43, .45);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: transform .35s var(--ease), background .25s ease, border-color .25s ease, opacity .35s ease;
}
.ksl-callout:hover,
.ksl-callout.is-hover { transform: scale(1.12); border-color: var(--ink); }
.ksl-callout.is-on { background: var(--acc); border-color: var(--acc); transform: scale(1.1); }

/* Выбранная позиция: остальное отступает */
.ksl-zone.has-active .ksl-scene .it { opacity: .45; }
.ksl-zone.has-active .ksl-scene .it.is-on { opacity: 1; filter: drop-shadow(0 0 5px rgba(248, 178, 51, .9)); }
.ksl-zone.has-active .ksl-leader { opacity: .35; }
.ksl-zone.has-active .ksl-leader.is-on { opacity: 1; stroke: var(--ink); stroke-dasharray: 2 3; }
.ksl-scene .it.is-on .s-rail-hl { stroke: rgba(248, 178, 51, .5); }

/* Список позиций справа — строки, как этапы карты у Озерной */
.ksl-tag
{
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}
.ksl-pos-list { margin-top: 18px; border-top: 1px solid var(--line); }
.ksl-pos { border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.ksl-pos.is-on { border-bottom-color: var(--acc); }
.ksl-pos-head
{
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 0 4px;
    align-items: baseline;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.ksl-pos-head b { font-size: 10px; font-weight: 400; color: var(--muted); }
.ksl-pos-head h3 { font-size: 14px; line-height: 1.35; font-weight: 400; letter-spacing: 0; color: var(--muted); transition: color .2s ease; }
.ksl-pos-head small { padding-left: 12px; font-size: 10px; letter-spacing: .04em; color: #a3a39b; white-space: nowrap; }
.ksl-pos-head:hover h3,
.ksl-pos.is-on .ksl-pos-head h3 { color: var(--ink); }
.ksl-pos.is-on .ksl-pos-head h3 { font-weight: 500; }
.ksl-pos.is-on .ksl-pos-head b { color: var(--gold); }

.ksl-pos-detail { padding: 0 0 20px 26px; }
.ksl.is-js .ksl-pos:not(.is-on) .ksl-pos-detail { display: none; }
.ksl.is-js .ksl-pos.is-on .ksl-pos-detail { animation: ksl-fade .45s var(--ease) both; }
@keyframes ksl-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ksl-pos-layer
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
.ksl-why { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.ksl-params
{
    display: grid;
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
    gap: 5px 14px;
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.4;
}
.ksl-params dt { color: var(--muted); }
.ksl-spec-norm { margin-top: 12px; font-size: 11px; line-height: 1.45; letter-spacing: .02em; color: var(--gold); }
.ksl-note
{
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--acc);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}
.ksl-prods { display: grid; gap: 8px; margin-top: 16px; }
.ksl-prod
{
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 6px 10px 6px 6px;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: box-shadow .3s ease;
}
.ksl-prod:hover { box-shadow: 0 0 0 1px rgba(43, 43, 43, .18); }
.ksl-prod-img { width: 44px; height: 44px; border-radius: 6px; background: #f2f2ee; overflow: hidden; }
.ksl-prod-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ksl-prod-name
{
    font-size: 12.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ksl-prod-price { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ksl-caselink
{
    display: inline-block;
    margin-top: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--acc);
    font-size: 12px;
    text-decoration: none;
}
.ksl-caselink:hover { color: var(--gold); }

/* Рельс зон — номера справа на широких экранах */
.ksl-rail
{
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 40;
    display: none;
    flex-direction: column;
    gap: 2px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.ksl-rail.is-visible { opacity: 1; pointer-events: auto; }
.ksl-rail a
{
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 22px;
    font-size: 10px;
    color: #a3a39b;
    text-decoration: none;
    transition: color .25s ease;
}
.ksl-rail a::after
{
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 2px;
    height: 2px;
    background: var(--acc);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.ksl-rail a span
{
    position: absolute;
    right: 32px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.ksl-rail a:hover { color: var(--ink); }
.ksl-rail a:hover span { opacity: 1; }
.ksl-rail a.is-on { color: var(--ink); }
.ksl-rail a.is-on::after { transform: scaleX(1); }
@media (min-width: 1760px) { .ksl-rail { display: flex; } }

/* ════════════ Блоки ниже зон ════════════ */
.ksl-block-head { margin-bottom: 48px; }
.ksl-block-head > p:not(.ksl-eyebrow)
{
    margin-top: 20px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.55;
}
.ksl-block-head--row
{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
}
.ksl-block-head--row > div > p:not(.ksl-eyebrow) { margin-top: 20px; max-width: 560px; font-size: 16px; line-height: 1.55; }
.ksl-block-head--row > .ksl-btn { justify-self: start; }
/* заголовок слева, абзац справа — по верху, как в кадрах зон */
.ksl-block-head--top { align-items: start; }
.ksl .ksl-block-head--top > p:not(.ksl-eyebrow) { margin-top: -3px; max-width: 420px; font-size: 15px; line-height: 1.55; }

/* Три документа */
.ksl-system-grid
{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: center;
}
.ksl-venn { grid-column: 1 / 6; margin: 0; }
.ksl-venn svg { width: 100%; max-width: 520px; height: auto; display: block; overflow: visible; }
.ksl-venn circle { stroke-width: 1.2; }
.ksl-venn .v-nav { fill: rgba(43, 43, 43, .035); stroke: var(--l-nav); }
.ksl-venn .v-odi { fill: rgba(47, 109, 181, .05); stroke: var(--l-odi); }
.ksl-venn .v-fes { fill: rgba(31, 157, 85, .05); stroke: var(--l-fes); }
.ksl-venn .v-core { fill: var(--acc); stroke: #fff; stroke-width: 6; }
.ksl-venn text { font-family: var(--font_family); fill: var(--ink); }
.ksl-venn .v-h { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.ksl-venn .v-s { font-size: 11.5px; fill: var(--muted); }
.ksl-venn .v-x { font-size: 10.5px; fill: var(--muted); font-style: italic; }
.ksl-venn .v-core-h { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ksl-venn .v-core-t { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.ksl-system-docs { grid-column: 7 / -1; display: grid; }
.ksl-system-docs .ksl-doc:first-of-type { border-top: 1px solid var(--line); }
.ksl-system-lead
{
    margin-bottom: 8px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    border-left: 3px solid var(--acc);
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -.01em;
}

.ksl-doc { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ksl-doc b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.ksl-doc span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.ksl-cross
{
    margin-top: 64px;
    padding: 36px 40px;
    border: 1px solid rgba(43, 43, 43, .1);
    border-radius: 20px;
    background: #fff;
}
.ksl-cross-title { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.ksl-cross ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.ksl-cross li { display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ksl-cross li b { color: var(--ink); font-size: 15px; font-weight: 500; }

/* Как работаем */
.ksl-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.ksl-steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.ksl-steps li::before
{
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc);
}
.ksl-steps b { font-size: 10px; font-weight: 400; color: var(--muted); }
.ksl-steps h3 { font-size: 17px; }
.ksl-steps p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ksl-steps span
{
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.45;
}

/* Объекты */
.ksl-cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ksl-case { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.ksl-case-img { display: block; aspect-ratio: 16 / 10; border-radius: 14px; background: #ecece6; overflow: hidden; }
.ksl-case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.ksl-case:hover .ksl-case-img img { transform: scale(1.03); }
.ksl-case-body { display: grid; gap: 10px; padding-top: 20px; }
.ksl-case-tag { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.ksl-case-title { font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.ksl-case-text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.ksl-case-kpi { justify-self: start; padding: 6px 0; border-bottom: 1px solid var(--acc); font-size: 13px; }
.ksl-case-kpi i { font-style: normal; }

/* Каталог */
.ksl-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ksl-cat { display: grid; gap: 8px; text-decoration: none; }
.ksl-cat-img { display: block; aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .3s ease; }
.ksl-cat:hover .ksl-cat-img { box-shadow: 0 0 0 1px rgba(43, 43, 43, .16); }
.ksl-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ksl-cat-name { font-size: 14px; line-height: 1.35; margin-top: 6px; }
.ksl-cat-price { font-size: 13px; font-weight: 600; }
.ksl-pills { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.ksl-pills a { padding: 6px 0; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.ksl-pills a:hover { color: var(--ink); border-bottom-color: var(--acc); }
.ksl-pills .ksl-pills-all { color: var(--ink); border-bottom-color: var(--acc); margin-left: auto; }

/* Вопросы — видимым текстом, без аккордеона */
.ksl-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--line); }
.ksl-faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ksl-faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.ksl-faq-item p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Нормы */
.ksl-norm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.ksl-norm { display: flex; flex-direction: column; gap: 8px; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.ksl-norm b { font-size: 14px; font-weight: 500; }
.ksl-norm span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ksl-norm a { margin-top: auto; padding-top: 6px; font-size: 12px; line-height: 1.45; text-decoration: none; color: var(--gold); }
.ksl-norm a:hover { color: var(--ink); }
.ksl-norm-more { margin-top: 24px; font-size: 14px; }
.ksl-norm-more a { text-decoration: none; border-bottom: 1px solid var(--acc); }

/* Финальный призыв — белая карточка, как у Озерной */
.ksl-final > .ksl-cont { border-bottom: 0; padding-bottom: 96px; }
.ksl-final-card
{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    padding: 48px 56px;
    border: 1px solid rgba(43, 43, 43, .14);
    border-radius: 20px;
    background: #fff;
}
.ksl-final-card p:not(.ksl-eyebrow) { margin-top: 20px; max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.ksl-final-card .ksl-btns { flex-direction: column; align-items: stretch; }
.ksl-other { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; }
.ksl-other a { padding: 6px 0; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.ksl-other a:hover { color: var(--ink); border-bottom-color: var(--acc); }

/* ════════════ Появление ════════════ */
@media (prefers-reduced-motion: no-preference)
{
    .ksl.is-motion .ksl-zone:not(.is-drawn) .ksl-scene .it,
    .ksl.is-motion .ksl-zone:not(.is-drawn) .ksl-callout,
    .ksl.is-motion .ksl-zone:not(.is-drawn) .ksl-leader { opacity: 0; }
    .ksl.is-motion .ksl-zone:not(.is-drawn) .ksl-callout { transform: scale(.5); }
    .ksl.is-motion .ksl-zone.is-drawn:not(.is-settled) .ksl-scene .it { animation: ksl-pop .8s var(--ease) both; animation-delay: calc(.6s + var(--i, 0) * .1s); }
    .ksl.is-motion .ksl-zone.is-drawn:not(.is-settled) .ksl-callout { transition-delay: calc(.9s + var(--i, 0) * .08s); }
    .ksl.is-motion .ksl-zone.is-drawn:not(.is-settled) .ksl-leader { transition: opacity .6s ease calc(.85s + var(--i, 0) * .08s); }
    .ksl.is-motion .dl { transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1); }

    .ksl.is-motion .ksl-hero:not(.is-drawn) .ksl-pin { opacity: 0; }
    .ksl.is-motion .ksl-hero:not(.is-settled) .ksl-pin { transition: opacity .6s ease; transition-delay: calc(1s + var(--i, 0) * .08s); }
}
@keyframes ksl-pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ════════════ Адаптив ════════════ */
@media (max-width: 1050px)
{
    .ksl-frame { display: block; }
    .ksl-side { margin-top: 36px; }
    .ksl-hero-head,
    .ksl-zone-head,
    .ksl-legend > .ksl-cont,
    .ksl-block-head--row,
    .ksl-final-card { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .ksl-zone-lead, .ksl-hero-lead > p { max-width: 640px; }
    .ksl-venn, .ksl-system-docs { grid-column: 1 / -1; }
    .ksl-venn { margin-bottom: 32px; }
    .ksl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .ksl-norm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ksl-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ksl-cross ul { grid-template-columns: 1fr; }
    .ksl-final-card .ksl-btns { flex-direction: row; }
}

@media (max-width: 767px)
{
    .ksl-hero > .ksl-cont,
    .ksl-zone > .ksl-cont,
    .ksl-block > .ksl-cont { padding-top: 52px; padding-bottom: 52px; }
    .ksl-hero > .ksl-cont { padding-top: 28px; }
    .ksl-eyebrow { margin-bottom: 16px; }
    .ksl-hero-head, .ksl-zone-head { margin-bottom: 32px; }
    .ksl-zone-lead, .ksl-hero-lead > p { font-size: 15px; }

    .ksl-hero-sheet { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--cont_padding, 10px) * -1); padding: 0 var(--cont_padding, 10px); }
    .ksl-hero-drawing { min-width: 640px; }
    .ksl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--cont_padding, 10px) * -1); padding: 0 var(--cont_padding, 10px); }
    .ksl-scroll-hint
    {
        display: block;
        position: sticky;
        left: 0;
        margin-bottom: 4px;
        font-size: 11px;
        color: var(--muted);
        transition: opacity .3s ease;
    }
    .ksl-drawing { width: 660px; }
    .ksl-callout { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

    .ksl-zone-index,
    .ksl-cases-grid,
    .ksl-faq-list,
    .ksl-norm-grid,
    .ksl-steps,
    .ksl-legend-list { grid-template-columns: 1fr; }
    .ksl-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ksl-cross { padding: 24px 20px; }
    .ksl-final-card { padding: 28px 20px; }
    .ksl-final-card .ksl-btns { flex-direction: column; }
    .ksl-btn { width: 100%; }
    .ksl-pills .ksl-pills-all { margin-left: 0; }
}

/* Тема даёт любому <aside> сайдбар-flex, а <nav> внутри лендинга — ширину: сбрасываем */
.ksl nav { width: auto; }

/* ════════════ Кадр-слайд зоны v3: развёртка «как в альбоме» ════════════
   Разметка — blocks/kits-shkoly-slide.php, развёртки — images/kits-shkoly/v3/zone-NN.svg.
   Кадр на всю ширину экрана; номера над листом; по номеру лист приближается к изделию,
   проявляются его размеры, справа выезжает карточка позиции. */
.k3
{
    --k3-blue: #283d90;
    --k3-card: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--head));
    min-height: calc(100svh - var(--head));
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--line);
    scroll-snap-align: start;
}
.k3 > .ksl-cont { padding-top: 0; padding-bottom: 0; border-bottom: 0; }
.k3-head
{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;            /* заголовок — по верху правого абзаца */
}
.k3-head .ksl-eyebrow { margin-bottom: 14px; }
.ksl .k3-head h2 { font-size: clamp(28px, 2.6vw, 40px); }
.k3-lead { margin-top: -3px; font-size: 14px; line-height: 1.55; color: var(--ink); max-width: 420px; }

/* лист — во всю ширину, но так, чтобы слайд целиком входил в экран под шапкой сайта */
.k3-stage
{
    width: min(100% - 48px, 1800px, (100vh - var(--head) - 250px) * var(--k3-r, 2.7));
    width: min(100% - 48px, 1800px, (100svh - var(--head) - 250px) * var(--k3-r, 2.7));
    min-width: min(100% - 48px, 960px);
    margin: 22px auto 0;
}
.k3-frame { position: relative; }
.k3-view
{
    position: relative;
    width: 100%;
    overflow: visible;                 /* номера над листом не режутся; рисунок обрезает сам svg */
    --k3-paper: var(--paper);
    user-select: none;
    -webkit-user-select: none;
}
.k3-svg
{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.k3-hl
{
    fill: none;
    stroke: var(--acc);
    stroke-width: 1.6;
    stroke-dasharray: 6 4;
    vector-effect: non-scaling-stroke;
    opacity: 0;
    transition: opacity .35s ease;
}
.k3-it.is-hover .k3-hl,
.k3-it.is-on .k3-hl { opacity: 1; }
.k3-it { cursor: pointer; }
.k3-dims { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.k3-dims.is-on { opacity: 1; transition: opacity .5s ease .45s; }
.k3-leader { transition: opacity .3s ease; }
.k3-leader.is-hover { stroke: var(--ink); stroke-dasharray: 2 3; }
.k3.is-zoom .k3-leader { opacity: 0; }

/* номера позиций */
.k3-marks { position: absolute; inset: 0; pointer-events: none; }
.k3-lbls { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.k3-co
{
    position: absolute;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: background .2s ease, border-color .2s ease, transform .35s var(--ease), opacity .3s ease;
}
.k3-co-n
{
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.k3-co::after                                   /* мягкий пульс: «нажми меня» до первого клика */
{
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--acc);
    opacity: 0;
    pointer-events: none;
}
.k3 .k3-view.is-settled .k3-co::after { animation: k3-pulse 3.2s ease-out infinite; animation-delay: calc(var(--i, 0) * .2s); }
@keyframes k3-pulse { 0% { opacity: 1; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
.k3-co:hover,
.k3-co.is-hover,
.k3-co:focus-visible { background: var(--acc); border-color: var(--acc); outline: 0; }
.k3-co-tip
{
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    transform: translate(-50%, -4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.k3-co:hover .k3-co-tip,
.k3-co.is-hover .k3-co-tip,
.k3-co:focus-visible .k3-co-tip { opacity: 1; transform: translate(-50%, 0); }
.k3.is-zoom .k3-co { opacity: 0; transform: scale(.6); pointer-events: none; }

/* подписи размеров (ставит скрипт) */
.k3-lbl
{
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: var(--k3-blue);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.k3-lbl.is-on { opacity: 1; transition: opacity .5s ease .55s; }
.k3-lbl[data-a="l"] { transform: translate(calc(-100% - 6px), -50%); }
.k3-lbl[data-a="r"] { transform: translate(6px, -50%); }
.k3-lbl[data-a="t"] { transform: translate(-50%, calc(-100% - 4px)); }
.k3-lbl[data-a="b"] { transform: translate(-50%, 4px); }
.k3-lbl[data-a="c"] { transform: translate(-50%, calc(-100% - 12px)); font-size: 11px; font-weight: 400; font-style: italic; }
/* отметка уровня ▽ +1,400: вершина треугольника — на выносной линии */
.k3-lbl[data-a="v"] { transform: translate(-50%, -100%); padding-bottom: 9px; }
.k3-lbl[data-a="v"]::after
{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--k3-blue);
}
.k3-lbl[data-a="v"]::before
{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1.5px;
    margin-left: -2.5px;
    border-left: 2.5px solid transparent;
    border-right: 2.5px solid transparent;
    border-top: 4px solid #fff;
    z-index: 1;
}

/* штамп листа — под листом, вместе со ссылкой на следующую зону */
.k3-stamp { flex: 1 1 auto; font-size: 11px; line-height: 1.4; color: var(--muted); }

/* «Весь лист» */
.k3-all
{
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px 0 12px;
    border: 0;
    border-radius: 20px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px -10px rgba(43, 43, 43, .5);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
}
.k3-all[hidden] { display: none; }
.k3-all svg { width: 14px; height: 14px; }
.k3-all:hover { background: #000; }
.k3-all kbd, .k3-x kbd
{
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    font: 500 10px/1.4 var(--font_family);
    letter-spacing: .04em;
}
.k3-all kbd { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.k3.is-zoom .k3-all { opacity: 1; transform: none; pointer-events: auto; }

/* карточка позиции (без скрипта — список под листом) */
.k3-card { margin-top: 32px; }
.k3-items { display: grid; gap: 28px; }
.k3-item
{
    padding: 26px 28px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(43, 43, 43, .08);
}
.k3-item-top
{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--muted);
}
.k3-item-n { color: var(--gold); font-size: 11px; letter-spacing: .07em; }
.k3-item-n i { font-style: normal; color: #b4b4ac; }
.k3-item-layer { display: inline-flex; align-items: center; gap: 7px; }
.k3-x
{
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px 0 12px;
    border: 1px solid rgba(43, 43, 43, .16);
    border-radius: 17px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.k3-x:hover { border-color: var(--ink); background: var(--paper); }
.k3-x svg { display: block; width: 12px; height: 12px; }
.k3-x kbd { background: var(--paper); color: var(--muted); }
.k3-item h3
{
    font-size: 23px;
    line-height: 1.18;
    font-weight: 400;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.k3-why { margin-top: 12px; font-size: 14px; line-height: 1.55; }
.k3-params
{
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 7px 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.4;
}
.k3-params dt { color: var(--muted); }
.k3-norm { margin-top: 14px; font-size: 11.5px; letter-spacing: .02em; color: var(--gold); }
.k3-norm::before { content: "§ "; }
.k3-note
{
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--acc);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}
.k3-prods { display: grid; gap: 8px; margin-top: 18px; }
.k3-prod
{
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 7px 12px 7px 7px;
    border-radius: 12px;
    background: var(--paper);
    text-decoration: none;
    transition: background .2s ease;
}
.k3-prod:hover { background: #efefe8; }
.k3-prod-img { width: 52px; height: 52px; border-radius: 8px; background: #fff; overflow: hidden; }
.k3-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.k3-prod-name { font-size: 13px; line-height: 1.3; }
.k3-prod-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.k3-caselink
{
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid var(--acc);
}
.k3-caselink + .k3-caselink { margin-left: 18px; }
.k3-item-nav { display: none; }

/* полоса позиций под листом */
.k3-bar
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 32px;
    margin-top: 12px;
}
.k3-chips { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 100%; }
.k3-chip
{
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    font-size: 13px;
    line-height: 1.3;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.k3-chip b { font-size: 10px; font-weight: 400; color: #b4b4ac; }
.k3-chip:hover,
.k3-chip.is-hover { color: var(--ink); }
.k3-chip.is-on { color: var(--ink); border-bottom-color: var(--acc); }
.k3-caption { margin-top: 0; }

.k3-next
{
    margin-left: auto;
    font-size: 13px;
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}
.k3-next span { color: var(--gold); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; margin-right: 6px; }
.k3-next i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform .3s var(--ease); }
.k3-next:hover { color: var(--ink); }
.k3-next:hover i { transform: translateY(3px); }

/* ── со скриптом: карточка — поверх листа справа, видна только выбранная позиция ── */
.ksl.is-js .k3-card
{
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    width: var(--k3-card);
    margin: 0;
    pointer-events: none;
}
.ksl.is-js .k3-items { display: block; position: relative; }
.ksl.is-js .k3-item
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 18px;
    box-shadow: 0 24px 60px -24px rgba(43, 43, 43, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .3s ease, transform .5s var(--ease), visibility 0s linear .5s;
}
.ksl.is-js .k3-item.is-on
{
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .4s ease .15s, transform .6s var(--ease) .1s, visibility 0s;
}
.ksl.is-js .k3-x { display: inline-flex; }
.ksl.is-js .k3-item h3 { font-size: 21px; }
.ksl.is-js .k3-why { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.ksl.is-js .k3-params { margin-top: 12px; padding-top: 10px; gap: 5px 14px; }
.ksl.is-js .k3-norm { margin-top: 10px; }
.ksl.is-js .k3-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.ksl.is-js .k3-prod { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px;
    row-gap: 2px; padding: 6px 8px 6px 6px; }
.ksl.is-js .k3-prod-img { width: 40px; height: 40px; grid-row: 1 / 3; }
.ksl.is-js .k3-prod-name { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; }
.ksl.is-js .k3-prod-price { font-size: 12px; }
.ksl.is-js .k3-prods > .k3-prod:only-child { grid-column: 1 / -1; }
.ksl.is-js .k3-item-nav
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.k3-prev,
.k3-nxt
{
    height: 34px;
    border: 1px solid rgba(43, 43, 43, .14);
    border-radius: 17px;
    background: none;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.k3-prev { width: 34px; padding: 0; }
.k3-nxt { margin-left: auto; padding: 0 14px; }
.k3-prev:hover,
.k3-nxt:hover { border-color: var(--ink); }
.k3-prev:disabled,
.k3-nxt:disabled { opacity: .35; pointer-events: none; }

/* ── появление листа: конструкции «прочерчиваются» слева направо, затем изделия и номера ── */
@media (prefers-reduced-motion: no-preference)
{
    .ksl.is-motion .k3-view .k3-build,
    .ksl.is-motion .k3-view .k3-people { clip-path: inset(-1% -1% -1% -1%); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1) .1s; }
    .ksl.is-motion .k3-view:not(.is-in) .k3-build,
    .ksl.is-motion .k3-view:not(.is-in) .k3-people { clip-path: inset(-1% 101% -1% -1%); }
    .ksl.is-motion .k3-view .k3-it { transition: opacity .7s ease calc(1.1s + var(--i, 0) * .09s); }
    .ksl.is-motion .k3-view:not(.is-in) .k3-it { opacity: 0; }
    .ksl.is-motion .k3-view.is-settled .k3-it,
    .ksl.is-motion .k3-view.is-settled .k3-build,
    .ksl.is-motion .k3-view.is-settled .k3-people { transition: none; clip-path: none; }
    .ksl.is-motion .k3-view:not(.is-in) .k3-leader { opacity: 0; }
    .ksl.is-motion .k3-view:not(.is-in) .k3-co { opacity: 0; transform: scale(.4); }
    .ksl.is-motion .k3-view.is-in:not(.is-settled) .k3-co { transition-delay: calc(1.4s + var(--i, 0) * .07s); }
    .ksl.is-motion .k3-view.is-in:not(.is-settled) .k3-leader { transition: opacity .6s ease calc(1.3s + var(--i, 0) * .07s); }
}

@media (max-width: 1050px)
{
    .k3-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .k3-lead { max-width: 640px; }
    .k3-stage { width: calc(100% - 48px); }
    .k3 { --k3-card: 340px; }
}

/* ── телефон: лист выше, карточка — под листом ── */
@media (max-width: 767px)
{
    .k3 { min-height: 0; padding: 56px 0 32px; scroll-snap-align: none; }
    .k3-stage { width: 100%; min-width: 0; margin-top: 24px; }
    .k3-view { aspect-ratio: 3 / 2 !important; }
    .k3-co { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
    .k3-co-tip { display: none; }
    .ksl.is-js .k3-card { position: static; width: auto; margin: 0 16px; pointer-events: auto; }
    .ksl.is-js .k3-item.is-on { box-shadow: 0 1px 0 rgba(43, 43, 43, .04); }
    .ksl.is-js .k3-items { height: auto; }
    .ksl.is-js .k3-item { position: relative; display: none; max-height: none; box-shadow: none; transform: none; }
    .ksl.is-js .k3-item.is-on { display: block; margin-top: 16px; }
    .k3-bar { padding: 0 16px; margin-top: 14px; }
    .k3.is-zoom .k3-chips { display: none; }
    .k3-chips
    {
        flex-wrap: nowrap;
        gap: 18px;
        margin: 0 -16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .k3-chips::-webkit-scrollbar { display: none; }
    .k3-chip { white-space: nowrap; }
    .k3-stamp { flex-basis: 100%; }
    .k3-all { left: 10px; top: 10px; }
}

/* подсказка «Esc» — только там, где есть клавиатура */
.k3-item-n { white-space: nowrap; }
@media (max-width: 767px), (hover: none) { .k3-all kbd, .k3-x kbd { display: none; } }
