/* School Actual KB */
.act-wrap{margin:20px 0}
.act{--act-c:#1f3b73;--act-on:#fff;--act-ink:#1f3b73;--act-min:250px;--act-h:150px;--act-container:1400px;
    width:100%;max-width:var(--act-container);margin:0 auto;color:#1f2937}
.act-wide .act{padding-left:16px;padding-right:16px}
.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-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}
.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}
.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-d-tiles .act-item{background:var(--act-c);color:var(--act-on);border-radius:18px;min-height:var(--act-h);box-shadow:0 6px 16px rgba(0,0,0,.14)}
.act-d-tiles .act-linked:hover,.act-d-tiles .act-linked:focus-within{box-shadow:0 12px 26px rgba(0,0,0,.24);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}
.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:0 3px 12px rgba(31,59,115,.09)}
.act-d-cards .act-linked:hover,.act-d-cards .act-linked:focus-within{box-shadow:0 10px 24px rgba(31,59,115,.18)}
.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}
.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:0 6px 16px rgba(0,0,0,.16)}
.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 20px;z-index:2}
.act-d-photo .act-title{font-size:1.2em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.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{display:none}
.act-d-photo .act-badge{background:#fff;color:var(--act-c)}
.act-d-photo .act-icon{display:none}

/* ----- телефон ----- */
@media (max-width:700px){
    .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-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}
