/* School Actual KB */
.act-wrap{margin:20px 0;--act-gutter:16px}
.act{--act-c:#1f3b73;--act-on:#fff;--act-ink:#1f3b73;--act-min:250px;--act-h:150px;--act-container:1400px;
    --act-sh:0 4px 14px rgba(0,0,0,.10);--act-sh-h:0 12px 26px rgba(0,0,0,.22);--act-lines:2;
    width:100%;max-width:var(--act-container);margin:0 auto;color:#1f2937}
/* боковой отступ у внешней обёртки, как у блока «Герой» (fit=box): края плиток совпадают с краями главного блока; 0 — без отступа */
.act-wrap{padding-left:var(--act-gutter);padding-right:var(--act-gutter)}
.act-sh-none{--act-sh:none;--act-sh-h:none}
.act-sh-soft{--act-sh:0 4px 14px rgba(0,0,0,.10);--act-sh-h:0 12px 26px rgba(0,0,0,.22)}
.act-sh-medium{--act-sh:0 8px 22px rgba(0,0,0,.18);--act-sh-h:0 16px 34px rgba(0,0,0,.30)}
.act-sh-strong{--act-sh:0 14px 34px rgba(0,0,0,.30);--act-sh-h:0 20px 44px rgba(0,0,0,.42)}
.act-preview{max-width:none;margin:0}
.act *,.act *::before,.act *::after{box-sizing:border-box}
.act-size-s{--act-min:200px;--act-h:112px}
.act-size-l{--act-min:300px;--act-h:200px}
.act-heading{margin:0 0 16px;color:var(--act-ink)}
.act-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin:0 0 16px}
.act-head .act-heading{margin:0}
.act-head-center{flex-direction:column;align-items:center;text-align:center}
.act-head-center .act-more{margin-left:0}
.act .act-more{font-weight:600;color:var(--act-ink);text-decoration:none;white-space:nowrap;margin-left:auto}
.act .act-more:hover,.act .act-more:focus-visible{text-decoration:underline}
.act .act-more:focus-visible{outline:3px solid #1f6feb;outline-offset:3px;border-radius:4px}
.act-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--act-min),1fr));gap:18px}
.act-cols-1 .act-grid{grid-template-columns:1fr}
.act-cols-2 .act-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.act-cols-3 .act-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.act-cols-4 .act-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.act-cols-5 .act-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.act-cols-6 .act-grid{grid-template-columns:repeat(6,minmax(0,1fr))}

.act-item{position:relative;display:flex;min-width:0;transition:transform .2s,box-shadow .2s,filter .2s}
.act-cover{position:absolute;inset:0;z-index:3;border-radius:inherit}
.act .act-cover a{display:block;width:100%;height:100%;border-radius:inherit;text-decoration:none;box-shadow:none}
.act .act-cover a:focus-visible{outline:3px solid #1f6feb;outline-offset:3px;box-shadow:0 0 0 6px rgba(255,255,255,.85)}
.act-body{position:relative;z-index:2;display:flex;flex:1;min-width:0}
.act-title{font-weight:700;line-height:1.25;overflow-wrap:break-word}
.act-desc{line-height:1.4;overflow-wrap:break-word}
.act-icon{flex:none;display:flex;align-items:center;justify-content:center}
.act-icon .act-svg{display:block}
.act-icon.act-has-img img{display:block;width:100%;height:100%;object-fit:cover}
.act-arrow{flex:none;font-weight:700;align-self:flex-end;opacity:.85;transition:transform .2s}
.act-badge{position:absolute;top:10px;right:10px;z-index:4;max-width:calc(100% - 20px);padding:2px 11px;border-radius:14px;font-size:.78em;font-weight:700;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.act-linked:hover,.act-linked:focus-within{transform:translateY(-3px)}
.act-linked:hover .act-arrow,.act-linked:focus-within .act-arrow{transform:translateX(4px)}
.act-noarrow .act-arrow{display:none!important}
.act-nolift.act .act-linked:hover,.act-nolift .act-linked:hover,.act-nolift .act-linked:focus-within{transform:none}

/* ----- цветные плитки ----- */
.act-d-tiles .act-item{background:var(--act-c);color:var(--act-on);border-radius:18px;min-height:var(--act-h);box-shadow:var(--act-sh)}
.act-d-tiles .act-linked:hover,.act-d-tiles .act-linked:focus-within{box-shadow:var(--act-sh-h);filter:brightness(1.06)}
.act-d-tiles .act-body{flex-direction:column;justify-content:flex-start;gap:8px;padding:20px 22px;position:relative}
.act-d-tiles .act-icon{width:48px;height:48px;border-radius:14px;background:color-mix(in srgb,var(--act-on) 20%,transparent);margin-bottom:4px}
.act-d-tiles .act-icon.act-has-img{background:#fff;overflow:hidden}
.act-d-tiles .act-title{font-size:1.18em;min-height:calc(var(--act-lines) * 1.25em)}
.act-d-tiles .act-desc{font-size:.9em;opacity:.92}
.act-d-tiles .act-arrow{position:absolute;right:18px;bottom:14px;font-size:1.3em}
.act-d-tiles .act-text{padding-right:26px}
.act-d-tiles .act-badge{background:var(--act-on);color:var(--act-c)}

/* ----- карточки ----- */
.act-d-cards .act-item{background:#fff;border:1px solid #dfe6f1;border-top:5px solid var(--act-c);border-radius:14px;box-shadow:var(--act-sh)}
.act-d-cards .act-linked:hover,.act-d-cards .act-linked:focus-within{box-shadow:var(--act-sh-h)}
.act-d-cards .act-body{flex-direction:column;gap:10px;padding:20px 20px 16px}
.act-d-cards .act-icon{width:52px;height:52px;border-radius:50%;background:color-mix(in srgb,var(--act-c) 12%,#fff);color:var(--act-ink)}
.act-d-cards .act-icon.act-has-img{overflow:hidden;background:#fff}
.act-d-cards .act-title{font-size:1.12em;color:#1f2937;min-height:calc(var(--act-lines) * 1.25em)}
.act-d-cards .act-desc{font-size:.92em;color:#5b6472}
.act-d-cards .act-arrow{color:var(--act-ink);font-size:1.2em;margin-top:auto}
.act-d-cards .act-badge{background:var(--act-c);color:var(--act-on)}

/* ----- список ----- */
.act-d-list .act-grid{grid-template-columns:1fr;gap:0}
.act-d-list .act-item{background:#fff;border-bottom:1px solid #e3e9f3}
.act-d-list .act-grid .act-item:first-child{border-top:1px solid #e3e9f3}
.act-d-list .act-linked:hover,.act-d-list .act-linked:focus-within{transform:none;background:color-mix(in srgb,var(--act-c) 7%,#fff)}
.act-d-list .act-body{align-items:center;gap:16px;padding:14px 12px}
.act-d-list .act-icon{width:42px;height:42px;border-radius:10px;background:color-mix(in srgb,var(--act-c) 12%,#fff);color:var(--act-ink)}
.act-d-list .act-icon.act-has-img{overflow:hidden}
.act-d-list .act-text{flex:1;min-width:0}
.act-d-list .act-title{font-size:1.05em;color:#1f2937}
.act-d-list .act-desc{font-size:.9em;color:#5b6472;margin-top:2px}
.act-d-list .act-arrow{align-self:center;order:4;color:var(--act-ink);font-size:1.2em}
.act-d-list .act-badge{position:static;order:3;flex:none;background:var(--act-c);color:var(--act-on)}

/* ----- фото-плитки ----- */
.act-d-photo .act-item{min-height:calc(var(--act-h) + 90px);border-radius:18px;overflow:hidden;background:var(--act-c);color:#fff;box-shadow:var(--act-sh)}
.act-d-photo .act-linked:hover,.act-d-photo .act-linked:focus-within{box-shadow:var(--act-sh-h)}
.act-d-photo .act-media{position:absolute;inset:0;z-index:0}
.act-d-photo .act-media .act-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.act-d-photo .act-linked:hover .act-img,.act-d-photo .act-linked:focus-within .act-img{transform:scale(1.06)}
.act-d-photo .act-item::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.05) 62%);pointer-events:none}
.act-d-photo .act-item:not(.act-has-media)::after{background:linear-gradient(to top,rgba(0,0,0,.35),rgba(0,0,0,0))}
.act-d-photo .act-body{flex-direction:column;justify-content:flex-end;gap:4px;padding:44px 22px 26px;z-index:2}
.act-d-photo .act-title{font-size:1.2em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5);min-height:calc(var(--act-lines) * 1.25em)}
.act-d-photo .act-text{padding-right:46px}
.act-d-photo .act-desc{font-size:.9em;color:#f1f5f9;text-shadow:0 1px 3px rgba(0,0,0,.5)}
/* стрелка-«кружок» в углу фото-плитки: подсказка, что плитка нажимается */
.act-d-photo .act-arrow{position:absolute;right:14px;bottom:16px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.94);color:var(--act-ink);font-size:1.05em;line-height:1;opacity:1;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:transform .2s,background .2s,color .2s}
.act-d-photo .act-linked:hover .act-arrow,.act-d-photo .act-linked:focus-within .act-arrow{background:var(--act-c);color:var(--act-on)}
.act-d-photo .act-badge{background:#fff;color:var(--act-c)}
.act-d-photo .act-icon{display:none}

/* ----- телефон ----- */
@media (max-width:700px){
    /* лента с прокруткой вбок (настройка «На телефоне») */
    .act-mob-scroll:not(.act-d-list) .act-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding:4px 2px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
    .act-mob-scroll:not(.act-d-list) .act-item{flex:0 0 78%;scroll-snap-align:start}
    .act-cols-3 .act-grid,.act-cols-4 .act-grid,.act-cols-5 .act-grid,.act-cols-6 .act-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
    .act-grid,.act[class*="act-cols-"] .act-grid{grid-template-columns:1fr}
    .act-mob-scroll:not(.act-d-list) .act-grid{display:flex}
    .act-d-tiles .act-item,.act-d-photo .act-item{min-height:0}
    .act-d-tiles .act-body{padding:16px 18px}
}

@media (prefers-reduced-motion:reduce){.act-item,.act-arrow,.act-img{transition:none}.act-linked:hover,.act-linked:focus-within{transform:none}}
html.svi-on .act-d-tiles .act-item,html.svi-on .act-d-photo .act-item{box-shadow:none;border:2px solid currentColor}
html.svi-on .act{--act-sh:none;--act-sh-h:none}
html.svi-on .act-d-photo .act-arrow{background:#fff;color:#000;border:2px solid #000}
