/* Поправки под WordPress: разметка блоков не должна менять раскладку прежнего сайта (assets/site.css). */

[hidden]{display:none!important}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto!important;clip-path:none;height:auto;width:auto;left:12px;top:12px;z-index:100000;background:#fff;color:var(--teal);padding:12px 18px;border-radius:12px;box-shadow:0 4px 18px #0002}

/* абзац-обёртка для строчных элементов (метка, кнопка-ссылка) — не создаёт своего блока */
.iwu-inline{display:contents}
/* …и не навязывает строчным элементам оформление абзацев (цвет, кегль) из правил вида «.editorial p» */
p.iwu-inline:not(#iwu){color:inherit;font:inherit;letter-spacing:inherit;text-align:inherit;max-width:none;margin:0;padding:0}

/* картинка-блок вместо голого <img>: обёртка figure не участвует в раскладке */
figure.wp-block-image.iwu-img{display:contents!important}
figure.wp-block-image{margin:0}
/* WordPress ставит картинкам width/height (атрибут width работает как CSS width) — где прежние стили ширину не задают, она снова естественная */
:where(.wp-block-image) img{width:auto}
figure.wp-block-image:not(.iwu-img)>img{display:block;max-width:100%}

/* цитата-блок: текст абзаца наследует оформление цитаты */
.wp-block-quote>p{color:inherit;font:inherit;letter-spacing:inherit;margin:0}

/* карточка-ссылка целиком (проекты, услуги): ссылка в заголовке растягивается на карточку */
.iwu-card-link{position:relative;cursor:pointer}
.iwu-card-link a.iwu-stretch{color:inherit;text-decoration:none}
.iwu-card-link a.iwu-stretch::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.iwu-card-link:hover a.iwu-stretch{color:inherit}
.iwu-card-link a.iwu-stretch:focus-visible{outline:none}
.iwu-card-link:has(a.iwu-stretch:focus-visible){outline:3px solid #d4a447;outline-offset:5px}

/* вопросы об участии: <details> вместо кнопки-раскрывашки */
details.faq>summary{text-align:left;justify-content:space-between;align-items:center;gap:30px;width:100%;padding:24px 0;font-size:16.2px;line-height:1.6;display:flex;cursor:pointer;list-style:none;color:var(--ink)}
details.faq>summary::-webkit-details-marker{display:none}
details.faq>summary::after{content:"Подробнее";color:var(--teal);font-size:13px;flex:none}
html[lang^="en"] details.faq>summary::after{content:"Learn more"}
details.faq[open]>summary::after{content:"Скрыть"}
html[lang^="en"] details.faq[open]>summary::after{content:"Hide"}
@media (max-width:600px){details.faq>summary{gap:15px;padding:22px 0;font-size:15.3px;line-height:1.7}details.faq>summary::after{font-size:12px}}

/* переключатель языка — ссылка вместо кнопки */
a.language-switch{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
a.language-switch:hover{color:#fff}

/* дни программы */
.iwu-day[hidden]{display:none!important}

/* панель администратора не перекрывает шапку */
body.admin-bar .chat-panel{top:calc(var(--wp-admin--admin-bar--height,32px) + 0px)}

/* выравнивания из редактора */
.alignwide{max-width:1200px;margin-left:auto;margin-right:auto}
.alignfull{width:100%}
.aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.wp-element-caption,figcaption{overflow-wrap:anywhere}

/* телефон: страница не сдвигается вбок, даже если какой-то блок шире экрана (лента логотипов в Safari) — правка 21.11 */
html,body{overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
.logo-marquee{isolation:isolate;transform:translateZ(0)}
/* без повтора заголовка первый абзац не отодвигается от названия страницы — правка 21.11 */
.editorial>p:first-child{margin-top:0}

/* ---- раздел «Новости» (21.11) ---- */
.news-grid{margin-top:6px}
.news-card .project-content p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.news-card time{font-variant-numeric:tabular-nums}
.news-empty{border:1px dashed var(--line);border-radius:var(--radius);padding:40px 24px;text-align:center}
.news-empty p{margin:0 auto;max-width:520px}
.news-pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:32px 0 0}
.news-pager a,.news-pager span{min-width:44px;height:44px;padding:0 12px;border-radius:22px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-variant-numeric:tabular-nums}
.news-pager a:hover{border-color:var(--teal);color:var(--teal)}
.news-pager .cur{background:var(--teal);border-color:var(--teal);color:#fff}
.news-single .page-title h1{max-width:980px}
.news-meta{color:var(--muted);font-size:13.5px;margin:-8px 0 22px}
.news-hero{margin:0 0 30px}
.news-hero img{width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:var(--radius)}
.news-hero figcaption{color:var(--muted);font-size:13px;margin-top:10px}
.news-body{max-width:820px}
.news-body>*+*{margin-top:18px}
.news-body p{font-size:15.3px;line-height:1.95}
.news-body h2{font-size:26px;margin-top:34px}
.news-body h3{font-size:20px;margin-top:28px}
.news-body ul,.news-body ol{padding-left:22px;color:var(--muted);line-height:1.9}
.news-body a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.news-body img{height:auto;border-radius:24px}
.news-body figure{margin-left:0;margin-right:0}
.news-body figcaption{color:var(--muted);font-size:13px}
.news-body blockquote{border-left:3px solid var(--teal);margin-left:0;padding:2px 0 2px 18px;color:var(--teal);font-size:18px}
.news-back{margin:36px 0 0}
.news-more-list{margin-top:46px}
@media (max-width:600px){.news-body h2{font-size:22px}.news-hero img{border-radius:24px}}
