/* «Жизнь школы» (27.11.2026): страница новости из жизни школы — шаблон «Жизнь школы — страница», includes/school-stories.php.
   Стиль — как у страниц школы и программы: белые карточки со скруглением на светлом фоне, голубой акцент, «таблетки». */
html, body.jsn-page { overflow-x: clip; } /* «прилипающая» колонка справа (hidden ломает sticky — как у школы и каталога) */

.jsn-hero, .jsn-blocks, .jsn-aside, .jsn-more {
  --jsn-blue: #00ADEF; --jsn-blue-d: #0090C8; --jsn-ink: #1E2A33; --jsn-text: #2B3640; --jsn-muted: #5B6670; --jsn-soft: #EAF6FC;
  --jsn-line: #E6EBEF; --jsn-r: 16px; --jsn-shadow: 0 2px 14px rgba(30, 42, 51, .06);
  font-family: "Open Sans", sans-serif;
}
.jsn-hidden { display: none !important; }

/* ---------- шапка ---------- */
.jsn-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "body media"; min-height: 420px;
  background: #fff; border: 1px solid var(--jsn-line); border-radius: var(--jsn-r); box-shadow: var(--jsn-shadow); overflow: hidden; }
.jsn-hero--nophoto { grid-template-columns: 1fr; grid-template-areas: "body"; min-height: 0; }
.jsn-hero__body { grid-area: body; display: flex; flex-direction: column; gap: 14px; padding: 34px 36px 30px; min-width: 0; }
.jsn-hero__media { grid-area: media; display: grid; gap: 4px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; min-height: 100%; }
.jsn-hero__media--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.jsn-hero__media--2 { grid-template-rows: 1fr; }
.jsn-hero__main { grid-row: 1 / -1; }
.jsn-hero__media .jsn-ph { position: relative; display: block; overflow: hidden; min-height: 0; background: #DDE6EC; }
.jsn-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jsn-hero__media .jsn-ph:hover img { transform: scale(1.03); }
.jsn-hero__more { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 12px;
  border-radius: 20px; background: rgba(255, 255, 255, .94); color: var(--jsn-ink); font: 600 13.5px/1.2 "Open Sans", sans-serif; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.jsn-hero__more svg { width: 18px; height: 18px; color: var(--jsn-blue); }
.jsn-hero__count { display: none; }

.jsn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jsn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 14px; background: #F1F4F6; color: var(--jsn-muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
.jsn-chip--photo, .jsn-chip--video { background: var(--jsn-soft); color: #0B7FAE; }
.jsn-chip--upd { background: #FFF3E6; color: #B4590E; }
.jsn-chip--photo::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7h3l2-2h6l2 2h3v12H4z' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7h3l2-2h6l2 2h3v12H4z' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.jsn-chip--video::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

.jsn-hero__title, .jsn-block__title, .jsn-hero__lead, .jsn-block__text { text-align: left !important; } /* общие стили сайта центрируют h1/h2 на телефоне */
.jsn-hero__title { margin: 0; color: var(--jsn-ink); font: 700 26px/1.25 "Open Sans", sans-serif; } /* как H1 страницы школы: 26 / телефон 22 */
.jsn-hero__lead { margin: 0; color: var(--jsn-muted); font-size: 17px; line-height: 1.6; }
.jsn-school { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 14px 10px 10px; border: 1px solid var(--jsn-line); border-radius: 14px;
  color: var(--jsn-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.jsn-school:hover { border-color: #BFE6F7; box-shadow: 0 3px 12px rgba(0, 173, 239, .12); color: var(--jsn-ink); }
.jsn-school__img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--jsn-soft); }
.jsn-school__txt { display: flex; flex-direction: column; min-width: 0; }
.jsn-school__txt small { color: var(--jsn-muted); font-size: 12px; line-height: 1.3; }
.jsn-school__txt b { font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.jsn-school__go { margin-left: auto; color: var(--jsn-blue); font-size: 18px; }

/* ---------- оглавление и блоки ---------- */
.jsn-blocks { display: flex; flex-direction: column; gap: 20px; }
.jsn-toc { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.jsn-toc__label { color: var(--jsn-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jsn-toc__list { display: flex; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.jsn-toc a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 18px; background: #F4F7F9; color: var(--jsn-ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .2s; }
.jsn-toc a:hover { background: var(--jsn-soft); color: var(--jsn-ink); }
.jsn-toc em { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--jsn-blue); font-size: 11px; font-style: normal; font-weight: 700; }

.jsn-block { padding: 28px 32px 30px; background: #fff; border: 1px solid var(--jsn-line); border-radius: var(--jsn-r); box-shadow: var(--jsn-shadow); scroll-margin-top: 90px; }
.jsn-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jsn-block__num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--jsn-soft); color: var(--jsn-blue); font-size: 13px; font-weight: 700; }
.jsn-block__title { margin: 0; color: var(--jsn-ink); font: 700 20px/1.3 "Open Sans", sans-serif; }
.jsn-block__text { color: var(--jsn-text); font-size: 16.5px; line-height: 1.7; }
.jsn-block__text p { margin: 0 0 .8em; }
.jsn-block__text p:last-child { margin-bottom: 0; }
.jsn-block__text a { color: var(--jsn-blue); text-decoration: none; border-bottom: 1px solid rgba(0, 173, 239, .35); }
.jsn-block__text a:hover { color: var(--jsn-blue-d); border-bottom-color: currentColor; }

/* мозаика фото: 1 — широко; 2 — рядом; 3 — крупное + 2; 4 — 2×2; 5+ — крупное + 4, у последнего «+N» (в просмотре — все) */
.jsn-galw { position: relative; margin-top: 18px; }
.jsn-gal { display: grid; gap: 8px; min-width: 0; }
.jsn-gal .jsn-ph { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 12px; background: #DDE6EC; aspect-ratio: 4 / 3; }
.jsn-gal img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s ease; }
.jsn-gal .jsn-ph:hover img { transform: scale(1.04); }
.jsn-gal--1 .jsn-ph { aspect-ratio: 16 / 10; }
.jsn-gal--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.jsn-gal--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, 190px); }
.jsn-gal--3 .jsn-ph { aspect-ratio: auto; }
.jsn-gal--3 .jsn-ph:first-child { grid-row: 1 / 3; }
.jsn-gal--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.jsn-gal--5 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, 165px); }
.jsn-gal--5 .jsn-ph { aspect-ratio: auto; }
.jsn-gal--5 .jsn-ph:first-child { grid-row: 1 / 3; }
.jsn-gal__item--extra { display: none !important; }
.jsn-gal__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 30, 38, .55); color: #fff; font-size: 26px; font-weight: 700; transition: background .2s; }
.jsn-ph:hover .jsn-gal__more { background: rgba(20, 30, 38, .45); }
.jsn-gal__count { display: none; }

.jsn-vids { display: grid; gap: 10px; margin-top: 14px; }
.jsn-vids--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jsn-video { position: relative; display: block; max-width: 640px; overflow: hidden; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.jsn-video img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s, transform .5s; }
.jsn-video:hover img { opacity: 1; transform: scale(1.02); }
.jsn-video__play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: rgba(0, 173, 239, .95); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.jsn-video__play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.jsn-video__dur { position: absolute; right: 12px; top: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); font-size: 13px; font-weight: 600; }
.jsn-video__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); font-size: 14px; font-weight: 600; }
.jsn-video:hover, .jsn-video:focus { color: #fff; }

/* ---------- «Поделиться»: сервисы без их скриптов; на телефоне — системная кнопка ---------- */
.jsn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 24px; background: #fff; border: 1px solid var(--jsn-line); border-radius: var(--jsn-r); }
.jsn-share__label { color: var(--jsn-ink); font-size: 15px; font-weight: 700; }
.jsn-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.jsn-share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; font: 700 13px/1 "Open Sans", sans-serif; text-decoration: none; transition: transform .15s, filter .15s; }
.jsn-share__btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }
.jsn-share__btn svg { width: 20px; height: 20px; }
.jsn-share__btn--vk { background: #0077FF; }
.jsn-share__btn--ok { background: #EE8208; }
.jsn-share__btn--tg { background: #27A6E5; }
.jsn-share__btn--wa { background: #25D366; }
.jsn-share__btn--copy { background: #EEF2F5; color: var(--jsn-muted); }
.jsn-share__btn--copy:hover { color: var(--jsn-ink); }
.jsn-share__btn--native { display: none; width: auto; padding: 0 16px 0 12px; border-radius: 20px; background: var(--jsn-blue); grid-auto-flow: column; gap: 6px; font-size: 14px; }
.jsn-share--native .jsn-share__btn--native { display: inline-grid; }
/* телефон с системным «Поделиться» — в нём и ВК, и Telegram, и WhatsApp: отдельные значки не нужны */
.jsn-share--native .jsn-share__btn--vk, .jsn-share--native .jsn-share__btn--ok, .jsn-share--native .jsn-share__btn--tg, .jsn-share--native .jsn-share__btn--wa { display: none; }
.jsn-share__ok { position: absolute; bottom: calc(100% + 8px); right: 0; padding: 5px 10px; border-radius: 8px; background: var(--jsn-ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.jsn-share__btn--copy.is-done .jsn-share__ok { opacity: 1; }

/* ---------- сбоку: школа ---------- */
/* две колонки: блоки сжимаются, справа 320 px (размеры Elementor «grow» не дают колонке сжиматься — задаём здесь) */
@media (min-width: 992px) {
  .e-con.jsn-main-col { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
  .e-con.jsn-aside-col { flex: 0 0 320px !important; width: 320px !important; align-self: flex-start; position: sticky; top: 96px; }
}
@media (max-width: 991px) {
  .e-con.jsn-main-col, .e-con.jsn-aside-col { width: 100% !important; flex: none !important; }
}
.jsn-aside { display: flex; flex-direction: column; gap: 16px; }
.jsn-card { overflow: hidden; background: #fff; border: 1px solid var(--jsn-line); border-radius: var(--jsn-r); box-shadow: var(--jsn-shadow); }
.jsn-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #DDE6EC; }
.jsn-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jsn-card__img:hover img { transform: scale(1.03); }
.jsn-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 18px; }
.jsn-card__kicker { display: block; color: var(--jsn-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jsn-card--tutors { padding: 16px 20px 12px; }
.jsn-card__title { color: var(--jsn-ink); font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.jsn-card__title:hover { color: var(--jsn-blue); }
.jsn-card__row { position: relative; padding-left: 24px; color: var(--jsn-text); font-size: 14.5px; line-height: 1.45; text-decoration: none; }
.jsn-card__row::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--jsn-blue); }
.jsn-card__row--addr::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.jsn-card__row--tel::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.jsn-card__row--tel:hover { color: var(--jsn-blue); }
.jsn-card__link { margin-top: 4px; color: var(--jsn-blue); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.jsn-card__link:hover { color: var(--jsn-blue-d); }
.jsn-card--tutors ul { margin: 10px 0 0; padding: 0; list-style: none; }
.jsn-card--tutors li + li { border-top: 1px solid #F0F3F5; }
.jsn-card--tutors a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--jsn-ink); text-decoration: none; }
.jsn-card--tutors a:hover b { color: var(--jsn-blue); }
.jsn-card--tutors img, .jsn-ava { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--jsn-soft); }
.jsn-card--tutors span { display: flex; flex-direction: column; min-width: 0; }
.jsn-card--tutors b { font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.jsn-card--tutors small { color: var(--jsn-muted); font-size: 12.5px; line-height: 1.4; }

/* ---------- «Ещё из жизни школ JandS»: компактные плитки, 4 в ряд; у других школ — метка школы ---------- */
.jsn-more { margin-top: 44px; }
.jsn-more__h { margin: 0 0 14px; color: var(--jsn-ink); font: 700 22px/1.25 "Open Sans", sans-serif; text-align: left !important; }
.jsn-more__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jsn-more__card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--jsn-line); border-radius: 14px;
  box-shadow: var(--jsn-shadow); color: var(--jsn-ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.jsn-more__card:hover { color: var(--jsn-ink); box-shadow: 0 8px 22px rgba(30, 42, 51, .12); transform: translateY(-2px); }
.jsn-more__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #DDE6EC; }
.jsn-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jsn-more__card:hover .jsn-more__img img { transform: scale(1.04); }
.jsn-more__n { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--jsn-ink); font-size: 11.5px; font-weight: 600; }
.jsn-more__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; flex: 1; }
.jsn-more__date { color: #8A949C; font-size: 12.5px; }
.jsn-more__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jsn-more__school { align-self: flex-start; margin-top: auto; padding: 2px 9px; border-radius: 10px; background: var(--jsn-soft); color: #0B7FAE; font-size: 12px; font-weight: 600; line-height: 1.4; }
.jsn-more__title + .jsn-more__school { margin-top: 6px; }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
  .jsn-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 380px; }
  .jsn-hero__body { padding: 28px 28px 24px; }
  .jsn-hero__title { font-size: 24px; }
  .jsn-hero__lead { font-size: 16px; }
}
@media (max-width: 991px) {
  .jsn-more__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jsn-gal--3 { grid-template-rows: repeat(2, 170px); }
  .jsn-gal--5 { grid-template-rows: repeat(2, 150px); }
  .jsn-aside { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- телефон: шапка во всю ширину, фото — лентой с листанием, крупные зоны нажатия ---------- */
@media (max-width: 767px) {
  .jsn-hero { display: block; min-height: 0; margin: -6px -15px 0; border: 0; border-radius: 0; box-shadow: none; }
  .jsn-hero__media { display: block; position: relative; aspect-ratio: 4 / 3; min-height: 0; }
  .jsn-hero__media .jsn-ph { position: absolute; inset: 0; }
  .jsn-hero__side { display: none !important; }
  .jsn-hero__more { left: 12px; bottom: 12px; padding: 7px 12px 7px 10px; font-size: 13px; }
  .jsn-hero__count { display: block; position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 600; }
  .jsn-hero__body { gap: 12px; padding: 18px 16px 20px; }
  .jsn-hero__title { font-size: 22px; line-height: 1.25; }
  .jsn-hero__lead { font-size: 15.5px; line-height: 1.55; }
  .jsn-school { margin-top: 4px; padding: 10px 12px 10px 10px; }
  .jsn-chip { font-size: 12.5px; }

  .jsn-blocks { gap: 14px; }
  /* оглавление — переносом строк, без ухода за край экрана (владелец 27.11.2026) */
  .jsn-toc a { white-space: normal; }
  .jsn-toc a { padding: 6px 13px 6px 5px; font-size: 13.5px; }

  .jsn-block { padding: 20px 16px 22px; border-radius: 14px; scroll-margin-top: 70px; }
  .jsn-block__head { gap: 10px; margin-bottom: 10px; }
  .jsn-block__num { width: 32px; height: 32px; font-size: 12px; }
  .jsn-block__title { font-size: 18px; }
  .jsn-block__text { font-size: 15.5px; line-height: 1.65; }

  /* фото — лента: следующий кадр выглядывает справа, листается пальцем, счётчик «2 / 6» */
  .jsn-galw { margin: 16px -16px 0; }
  .jsn-gal, .jsn-gal--2, .jsn-gal--3, .jsn-gal--4, .jsn-gal--5 { grid-template-rows: none; display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .jsn-gal::-webkit-scrollbar { display: none; }
  .jsn-gal .jsn-ph, .jsn-gal--3 .jsn-ph:not(:first-child), .jsn-gal--5 .jsn-ph { flex: 0 0 86%; aspect-ratio: 4 / 3; min-height: 0; grid-row: auto; scroll-snap-align: start; border-radius: 12px; }
  .jsn-gal--1 .jsn-ph { flex-basis: 100%; }
  .jsn-gal--3 .jsn-ph:first-child, .jsn-gal--5 .jsn-ph:first-child { aspect-ratio: 4 / 3; }
  .jsn-gal__item--extra { display: block !important; }
  .jsn-gal__more { display: none; }
  .jsn-gal .jsn-ph:hover img { transform: none; }
  .jsn-gal__count { display: block; position: absolute; top: 10px; right: 26px; padding: 3px 9px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
  .jsn-vids { margin-top: 12px; }
  .jsn-vids--2 { display: flex; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; gap: 8px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .jsn-vids--2::-webkit-scrollbar { display: none; }
  .jsn-vids--2 .jsn-video { flex: 0 0 86%; scroll-snap-align: start; }
  .jsn-video__play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .jsn-video__play::after { left: 23px; top: 18px; border-width: 11px 0 11px 17px; }

  .jsn-aside { display: flex; }
  .jsn-share { padding: 14px 16px; gap: 10px 12px; border-radius: 14px; }
  .jsn-share__label { width: 100%; font-size: 14.5px; }
  .jsn-share__btn { width: 44px; height: 44px; }
  .jsn-share--native .jsn-share__btn--native { width: auto; padding: 0 18px 0 14px; }
  .jsn-more { margin-top: 32px; }
  /* ещё новости — лентой с листанием */
  .jsn-more__h { font-size: 19px; margin-bottom: 10px; }
  .jsn-more__list { display: flex; gap: 10px; overflow-x: auto; margin: 0 -15px; padding: 2px 15px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 15px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .jsn-more__list::-webkit-scrollbar { display: none; }
  .jsn-more__card { flex: 0 0 68%; scroll-snap-align: start; }
  .jsn-more__card:hover { transform: none; }
  .jsn-card { border-radius: 14px; }
  .jsn-card__body { padding: 14px 16px 16px; }
  .jsn-card--tutors { padding: 14px 16px 8px; }
  .jsn-card__row, .jsn-card__link { padding-top: 2px; padding-bottom: 2px; }
}
@media (hover: none) { .jsn-ph:hover img, .jsn-card__img:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .jsn-hero__media img, .jsn-gal img, .jsn-video img, .jsn-card__img img { transition: none; } }

/* ---------- фото без обрезки (владелец 30.11.2026: кадр уже выбран в ВК; рамки резали лица) ---------- */
/* рамка фиксированной формы: фото целиком, по краям — размытая копия того же фото */
.jsn-fill { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(22px) brightness(.9) saturate(1.1); }
.jsn-ph--fill img, .jsn-more__img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain !important; object-position: center !important; }
.jsn-hero__media .jsn-ph--fill:hover img, .jsn-gal .jsn-ph--fill:hover img, .jsn-more__card:hover .jsn-more__img img { transform: none; }
.jsn-hero__more, .jsn-hero__count, .jsn-more__n { z-index: 2; }
/* галерея из 2+ фото — ряды (раскладка на сервере, jands_core_story_rows): в ряду фото одной высоты ровно по ширине, без обрезки */
.jsn-gal--rows { display: flex; flex-direction: column; gap: 8px; }
.jsn-row { display: flex; gap: 8px; width: 100%; margin: 0 auto; }
.jsn-gal--rows .jsn-ph { aspect-ratio: var(--ar); flex: var(--ar) 1 0; min-width: 0; }
.jsn-gal--rows img { object-fit: cover; object-position: center !important; }
.jsn-gal--1 .jsn-ph { aspect-ratio: 16 / 10; }
@media (max-width: 767px) {
  /* лента: высота кадра одна, ширина — по пропорциям фото (не шире 86 % экрана) */
  .jsn-gal--rows { flex-direction: row; }
  .jsn-row { display: contents; }
  .jsn-gal--rows .jsn-ph { flex: 0 0 auto; width: min(86vw, calc(62vw * var(--ar))); aspect-ratio: var(--ar); }
}

/* «Ещё из жизни школ» — как плитка новости (30.11.2026): метка рубрики со значком (стили плитки — в шаблоне «Новость — плитка»), школа рядом с датой, текст анонса */
.jsn-more .jands-nk { position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; font: 600 12px/1.3 "Open Sans", sans-serif; color: #1E2A33; background: rgba(255, 255, 255, .94); border-radius: 14px; box-shadow: 0 1px 6px rgba(30, 42, 51, .18); }
.jsn-more .jands-nk::before { content: ""; width: 15px; height: 15px; flex: none; background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E2A33%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l3%203v15H6z%22%2F%3E%3Cpath%20d%3D%22M9%2010h6M9%2014h6M9%2018h4%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain; }
.jsn-more .jands-nk--fotootchety::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E2A33%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h3l2-3h6l2%203h3v11H4z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%223.5%22%2F%3E%3C%2Fsvg%3E"); }
.jsn-more .jands-nk--video::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E2A33%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M10%208.5l5.5%203.5-5.5%203.5z%22%20fill%3D%22%231E2A33%22%2F%3E%3C%2Fsvg%3E"); }
.jsn-more__date { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.jsn-more__date .jsn-more__school { margin: 0; }
.jsn-more__lead { color: #5B6670; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
