/* ================= PowerIT: сторінка статті та новини ================= */
:root { --pi-acc: #C2410C; --pi-acc-soft: #FFF1E7; --pi-blue: #1D4E89; --pi-blue-soft: #EAF1FA; --pi-ink: #161616; --pi-line: #D8D2C6; }

/* без рамок і підкладок; фокус лише з клавіатури */
a:focus, button:focus, summary:focus, [tabindex]:focus, .wp-block-navigation-item__content:focus { outline: none !important; box-shadow: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, .wp-block-navigation-item__content:focus-visible {
  outline: 1px dotted currentColor !important; outline-offset: 3px !important; box-shadow: none !important; background: none !important; }
.wp-block-navigation-item__content, .wp-block-navigation a { background: none !important; box-shadow: none !important; border: 0 !important; }
.current-menu-item > a, .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content { background: none !important; border: 0 !important; }
a { -webkit-tap-highlight-color: transparent; }
::selection { background: #E9E4DA; color: inherit; }

/* прогрес читання */
.pi-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 9999; pointer-events: none; }
.pi-progress span { display: block; height: 100%; width: 0; background: var(--pi-acc); transition: width .08s linear; }

/* шапка статті */
.pi-art { padding-bottom: 4rem; }
.pi-art-head { max-width: 860px; margin: 0 auto; padding: 2.2rem 1.25rem 1.4rem; text-align: left; }
.pi-art-head .pi-crumbs ol { margin-bottom: 1.2rem; }
.pi-art-head .pi-cat { display: inline-block; font-size: .78rem; letter-spacing: .1em; padding: 0 0 .1rem; border-bottom: 2px solid var(--pi-acc); }
.pi-art-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem) !important; line-height: 1.08 !important; margin: .9rem 0 1rem !important; color: var(--pi-ink); }
.pi-art-lead, .pi-art-lead p { font-family: var(--pi-serif); font-size: clamp(1.2rem, 1.9vw, 1.42rem) !important; line-height: 1.5; color: #3B3733 !important; font-style: normal; }
.pi-art-lead .wp-block-post-excerpt__more-text { display: none; }
.pi-art-meta { margin-top: 1.4rem !important; padding-top: .9rem; border-top: 1px solid var(--pi-ink); gap: .3rem 1.2rem !important; font-size: .88rem; color: #6F6A63; }
.pi-art-meta > * { margin: 0 !important; font-size: inherit !important; }
.pi-art-by { color: var(--pi-ink); font-weight: 700; }
.pi-art-meta .pi-read::before { content: "◷ "; color: var(--pi-acc); }

/* обкладинка на всю ширину */
.pi-art-cover { max-width: 1200px; margin: .6rem auto 0 !important; padding: 0 1.25rem; }
.pi-art-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 0 !important; display: block; }

/* сітка: зміст збоку + текст */
.pi-art-grid { max-width: 1120px; margin: 2.6rem auto 0 !important; padding: 0 1.25rem; display: grid; grid-template-columns: 240px minmax(0, 700px); gap: 3.5rem; justify-content: center; }
.pi-art-grid:not(:has(.pi-toc)) { grid-template-columns: minmax(0, 700px); }
.pi-art-grid:not(:has(.pi-toc)) .pi-art-aside { display: none; }
.pi-art-aside { position: relative; }
.pi-art-aside .pi-toc { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; margin: 0 !important; padding: 0 0 0 1rem !important;
  border-left: 2px solid var(--pi-line) !important; background: none !important; }
.pi-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pi-ink); margin: 0 0 .7rem; font-family: "Onest", system-ui, sans-serif; }
.pi-toc ol { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: .1rem; counter-reset: t; }
.pi-toc li { counter-increment: t; }
.pi-toc a { display: grid; grid-template-columns: 1.6rem 1fr; padding: .3rem 0; font-size: .86rem; line-height: 1.35; color: #5C5852 !important; text-decoration: none;
  font-family: "Onest", system-ui, sans-serif; transition: color .15s; }
.pi-toc a::before { content: counter(t, decimal-leading-zero); color: #B3AC9F; font-size: .74rem; padding-top: .1rem; }
.pi-toc a:hover { color: var(--pi-ink) !important; }
.pi-toc a.is-active { color: var(--pi-acc) !important; font-weight: 600; }
.pi-toc a.is-active::before { color: var(--pi-acc); }
@media (max-width: 980px) {
  .pi-art-grid { grid-template-columns: minmax(0, 700px) !important; gap: 1.5rem; }
  .pi-art-aside .pi-toc { position: static; max-height: none; border-left: 0 !important; border-top: 2px solid var(--pi-ink) !important; padding: .8rem 0 0 !important; }
}

/* текст */
.pi-art-body { font-family: var(--pi-serif); font-size: 1.2rem !important; line-height: 1.75 !important; color: #1F1D1A; }
.pi-art-body > * { max-width: 700px; }
.pi-art-body > * + * { margin-block-start: 1.25em !important; }
.pi-art-body > p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .86; padding: .06em .1em 0 0; color: var(--pi-acc); font-weight: 700; }
.pi-art-body h2 { position: relative; font-size: clamp(1.55rem, 2.4vw, 1.95rem) !important; line-height: 1.2 !important; margin-block-start: 2.4em !important;
  padding-top: .9rem; scroll-margin-top: 1.5rem; }
.pi-art-body h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.4rem; height: 3px; background: var(--pi-acc); }
.pi-art-body h3 { font-size: 1.3rem !important; margin-block-start: 1.8em !important; scroll-margin-top: 1.5rem; }
.pi-art-body a { color: var(--pi-acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pi-art-body a:hover { text-decoration-thickness: 2px; }
.pi-art-body strong { color: var(--pi-ink); }
.pi-art-body ul, .pi-art-body ol { padding-left: 1.4rem; }
.pi-art-body ul li::marker { color: var(--pi-acc); }
.pi-art-body ol li::marker { color: var(--pi-acc); font-weight: 700; }
.pi-art-body li + li { margin-top: .45em; }
.pi-art-body blockquote, .pi-art-body .wp-block-pullquote { border: 0; border-left: 4px solid var(--pi-acc); padding: .2rem 0 .2rem 1.4rem; font-size: 1.45rem; line-height: 1.4;
  font-style: italic; color: var(--pi-ink); }

/* врізки */
.pi-art-body .pi-keybox { background: var(--pi-acc-soft) !important; border: 0 !important; border-left: 4px solid var(--pi-acc) !important; padding: 1.2rem 1.4rem !important;
  font-family: "Onest", system-ui, sans-serif; font-size: 1.02rem; line-height: 1.6; }
.pi-art-body .pi-keybox-title { color: var(--pi-acc) !important; font-size: .74rem !important; letter-spacing: .12em; }
.pi-art-body .pi-tip { background: var(--pi-blue-soft) !important; border: 0 !important; border-left: 4px solid var(--pi-blue) !important; padding: 1rem 1.3rem !important;
  font-family: "Onest", system-ui, sans-serif; font-size: 1.02rem; line-height: 1.6; }
.pi-art-body .pi-tip strong { color: var(--pi-blue) !important; }

/* таблиці */
.pi-art-body table { width: 100%; border-collapse: collapse !important; border: 0 !important; font-family: "Onest", system-ui, sans-serif; font-size: .95rem; line-height: 1.45; }
.pi-art-body thead th { background: var(--pi-ink) !important; color: #fff !important; text-transform: none; letter-spacing: 0; font-size: .88rem; padding: .7rem .8rem; }
.pi-art-body tbody td { padding: .7rem .8rem; border-bottom: 1px solid var(--pi-line); }
.pi-art-body tbody tr:nth-child(even) td { background: #EFEBE3 !important; }
.pi-art-body tbody td:first-child { font-weight: 600; }

/* схеми й фото ширші за текст */
.pi-art-body .pi-figure { max-width: 860px !important; margin: 2.2em 0 2.2em !important; }
@media (min-width: 1200px) { .pi-art-grid:not(:has(.pi-toc)) .pi-art-body .pi-figure { margin-left: -80px !important; margin-right: -80px !important; max-width: none !important; } }
.pi-art-body .pi-figure img { border-radius: 2px !important; }
.pi-art-body .pi-figure figcaption { font-family: "Onest", system-ui, sans-serif; font-size: .84rem; color: #6F6A63; border-left: 2px solid var(--pi-acc); padding-left: .7rem; margin-top: .7rem; }

/* низ статті */
.pi-art-foot { margin-top: 3rem !important; padding-top: 1.2rem; border-top: 1px solid var(--pi-ink); font-family: "Onest", system-ui, sans-serif; }
.pi-art-foot .pi-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pi-art-foot .pi-tags a { border: 1px solid var(--pi-ink) !important; padding: .25rem .7rem !important; font-size: .82rem; color: var(--pi-ink) !important; text-decoration: none; margin: 0 !important; }
.pi-art-foot .pi-tags a:hover { background: var(--pi-ink); color: #fff !important; }
.pi-art-foot .pi-editorial { font-size: .92rem; color: #5C5852; margin-top: 1.2rem !important; }
.pi-postnav { margin-top: 1.6rem !important; gap: 1.5rem; border-top: 1px solid var(--pi-line); padding-top: 1.2rem; }
.pi-postnav > div { flex: 1; }
.pi-postnav a { color: var(--pi-ink) !important; font-family: var(--pi-serif); font-size: 1.05rem; line-height: 1.35; text-decoration: none; }
.pi-postnav a:hover { color: var(--pi-acc) !important; }
.pi-postnav .post-navigation-link__label { font-family: "Onest", system-ui, sans-serif; color: #8A857D; font-size: .72rem; letter-spacing: .1em; }

/* Читайте також */
.pi-related { max-width: 1120px; margin: 4rem auto 0 !important; padding: 1.2rem 1.25rem 0; border-top: 3px double var(--pi-ink) !important; }
.pi-related h2 { font-family: "Onest", system-ui, sans-serif !important; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.2rem !important; }
.pi-related .pi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1.8rem !important; }
@media (max-width: 800px) { .pi-related .pi-grid { grid-template-columns: 1fr !important; } }
.pi-related .pi-card { border: 0 !important; padding: 0 !important; }
.pi-rel-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; margin-bottom: .7rem; }
.pi-related .pi-card-title { font-size: 1.15rem !important; }
.pi-related .pi-card-title a { color: var(--pi-ink); }
.pi-related .pi-card-excerpt { font-size: .9rem; }

/* старі обгортки шаблону, які могли лишитися */
.pi-article-cover, .pi-article-head { display: none; }

/* ================= Подвал ================= */
footer.wp-block-template-part { margin-top: 0 !important; }
.pi-foot { background: #161616; color: #D9D4CA; font-family: "Onest", system-ui, sans-serif; border-top: 4px solid var(--pi-acc); margin-top: 4rem; }
.pi-foot-in { max-width: 1200px; margin: 0 auto; padding: 3.2rem 1.5rem 1.6rem; }
.pi-foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid #2E2C29; }
@media (max-width: 1000px) { .pi-foot-top { grid-template-columns: 1fr 1fr; } .pi-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pi-foot-top { grid-template-columns: 1fr; } }
.pi-foot-logo img { height: 34px; width: auto; display: block; margin-bottom: 1rem; }
.pi-foot-brand p { font-size: .93rem; line-height: 1.6; color: #B9B3A8; margin: 0 0 .8rem; max-width: 26rem; }
.pi-foot-mail a { color: #fff !important; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--pi-acc); }
.pi-foot h3 { font-family: "Onest", system-ui, sans-serif !important; font-size: .74rem !important; font-weight: 700 !important; letter-spacing: .14em !important;
  text-transform: uppercase; color: #fff; margin: 0 0 1rem !important; min-height: 1em; }
.pi-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pi-foot-col a { color: #D9D4CA !important; text-decoration: none; font-size: .93rem; }
.pi-foot-col a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.pi-foot-follow p { font-size: .9rem; line-height: 1.55; color: #B9B3A8; margin: 0 0 .7rem; }
.pi-foot-rss { display: inline-flex; align-items: center; gap: .45rem; color: #fff !important; font-weight: 600; }
.pi-foot-rss::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--pi-acc); }
.pi-foot-bottom { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; padding-top: 1.3rem; font-size: .82rem; color: #8F897F; }
.pi-foot-bottom a { color: #8F897F !important; text-decoration: none; }
.pi-foot-bottom a:hover { color: #fff !important; }
.oscar-footer { display: none !important; }

/* ================= Шапка ================= */
.oscar-header { display: none !important; }
header.wp-block-template-part { margin: 0 !important; position: relative; z-index: 50; }
.pi-hdr { font-family: "Onest", system-ui, sans-serif; background: #F5F3EE; color: #161616; }
.pi-hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.pi-hdr a { text-decoration: none; }

.pi-hdr-top { background: #161616; color: #CFC9BE; font-size: .78rem; }
.pi-hdr-top .pi-hdr-in { min-height: 34px; justify-content: space-between; }
.pi-hdr-date::first-letter { text-transform: uppercase; }
.pi-hdr-util { display: flex; gap: 1.3rem; }
.pi-hdr-util a { color: #CFC9BE !important; }
.pi-hdr-util a:hover { color: #fff !important; }
.pi-hdr-rss { display: inline-flex; align-items: center; gap: .35rem; }
.pi-hdr-rss::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #C2410C; }

.pi-hdr-main .pi-hdr-in { min-height: 96px; }
.pi-hdr-logo img { height: 46px; width: auto; display: block; }
.pi-hdr-tag { margin: 0; padding-left: 1.4rem; border-left: 1px solid #CFC8BB; font-family: Georgia, "Noto Serif", serif; font-style: italic;
  font-size: .98rem; line-height: 1.3; color: #5C5852; }
.pi-search { margin-left: auto; display: flex; align-items: center; border-bottom: 1.5px solid #161616; min-width: 260px; }
.pi-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: .95rem; padding: .5rem .2rem; color: #161616; outline: none; }
.pi-search input::placeholder { color: #8A857D; }
.pi-search button { border: 0; background: none; color: #161616; padding: .3rem; cursor: pointer; display: flex; }
.pi-search button:hover { color: #C2410C; }

.pi-hdr-nav { background: #F5F3EE; border-top: 2px solid #161616; border-bottom: 1px solid #161616; }
.pi-hdr-nav .pi-hdr-in { min-height: 48px; gap: 0; }
.pi-hdr-mini { display: none; margin-right: 1.2rem; }
.pi-hdr-mini img { height: 24px; width: auto; display: block; }
.pi-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pi-nav::-webkit-scrollbar { display: none; }
.pi-nav li { flex: none; }
.pi-nav a { display: block; padding: .85rem .95rem; font-size: .93rem; font-weight: 600; color: #161616 !important; position: relative; white-space: nowrap; }
.pi-nav li:first-child a { padding-left: 0; }
.pi-nav a::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: -1px; height: 3px; background: #C2410C; transform: scaleX(0);
  transition: transform .18s ease; transform-origin: left; }
.pi-nav li:first-child a::after { left: 0; }
.pi-nav a:hover::after, .pi-nav a.is-current::after { transform: scaleX(1); }
.pi-nav a.is-current { color: #C2410C !important; }

.pi-mega-wrap { margin-left: auto; position: static; }
.pi-mega-btn { border: 0; background: #161616; color: #fff; font: inherit; font-size: .86rem; font-weight: 600; padding: .5rem .9rem; cursor: pointer; }
.pi-mega-btn span { display: inline-block; transition: transform .15s; }
.pi-mega-wrap.is-open .pi-mega-btn span { transform: rotate(180deg); }
.pi-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 2px solid #161616; border-bottom: 1px solid #161616;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.25); display: none; z-index: 60; }
.pi-mega-wrap.is-open .pi-mega { display: block; }
.pi-hdr-nav { position: relative; }
.pi-mega-grid { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.5rem 1.8rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.pi-mega-h { display: block; font-family: Georgia, "Noto Serif", serif; font-weight: 700; font-size: 1.05rem; color: #161616 !important;
  padding-bottom: .4rem; margin-bottom: .5rem; border-bottom: 1px solid #D8D2C6; }
.pi-mega-h:hover { color: #C2410C !important; }
.pi-mega-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.pi-mega-col li a { color: #5C5852 !important; font-size: .86rem; }
.pi-mega-col li a:hover { color: #C2410C !important; }

/* закріплена компактна навігація */
.pi-hdr-nav.is-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 70; box-shadow: 0 6px 18px -12px rgba(0,0,0,.35); }
.pi-hdr-nav.is-stuck .pi-hdr-mini { display: block; }
.admin-bar .pi-hdr-nav.is-stuck { top: 32px; }
.pi-progress { z-index: 80 !important; }

/* стрічка «Головне зараз» */
.pi-ticker { border-bottom: 1px solid #D8D2C6; background: #F5F3EE; font-size: .86rem; overflow: hidden; }
.pi-ticker .pi-hdr-in { min-height: 38px; gap: 1rem; }
.pi-ticker-label { flex: none; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #C2410C; padding: .25rem .55rem; }
.pi-ticker-track { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.pi-ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.4rem; width: max-content; animation: pi-tick 70s linear infinite; }
.pi-ticker:hover ul { animation-play-state: paused; }
.pi-ticker li { white-space: nowrap; display: flex; gap: .55rem; align-items: baseline; }
.pi-ticker time { color: #8A857D; font-size: .78rem; }
.pi-ticker a { color: #161616 !important; font-weight: 500; }
.pi-ticker a:hover { color: #C2410C !important; }
@keyframes pi-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pi-ticker ul { animation: none; } }

/* мобільне меню */
.pi-burger { display: none; border: 0; background: none; padding: .4rem; cursor: pointer; flex-direction: column; gap: 5px; }
.pi-burger span { display: block; width: 22px; height: 2px; background: #161616; transition: transform .2s, opacity .2s; }
.pi-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pi-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pi-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pi-drawer { border-bottom: 2px solid #161616; background: #fff; }
.pi-drawer-in { max-width: 1200px; margin: 0 auto; padding: 1.2rem 1.5rem 1.6rem; }
.pi-drawer .pi-search { margin: 0 0 1.2rem; min-width: 0; }
.pi-drawer-h { display: block; font-weight: 700; color: #C2410C !important; margin-bottom: 1rem; }
.pi-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.pi-drawer-grid ul { display: none; }
.pi-drawer-grid .pi-mega-h { font-size: .98rem; margin: 0; }
.pi-drawer-util { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #D8D2C6; font-size: .9rem; }
.pi-drawer-util a { color: #5C5852 !important; }

@media (max-width: 1000px) {
  .pi-hdr-tag { display: none; }
  .pi-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pi-hdr-top .pi-hdr-util { display: none; }
  .pi-hdr-main .pi-hdr-in { min-height: 64px; justify-content: space-between; }
  .pi-hdr-main .pi-search { display: none; }
  .pi-hdr-logo { margin: 0 auto 0 .2rem; }
  .pi-hdr-logo img { height: 34px; }
  .pi-burger { display: flex; }
  .pi-mega-wrap { display: none; }
  .pi-nav a { padding: .75rem .7rem; font-size: .88rem; }
  .pi-hdr-nav.is-stuck .pi-hdr-mini { display: none; }
}

/* ================= Кольори рубрик ================= */
.pi-c-enerhozalezhnist-it { --rc: #D97706; } .pi-c-zalizo-ta-servery { --rc: #475569; } .pi-c-merezhi { --rc: #0E7490; }
.pi-c-kiberbezpeka { --rc: #B91C1C; } .pi-c-khmary-ta-devops { --rc: #2563EB; } .pi-c-dani-ta-rezervuvannia { --rc: #7C3AED; }
.pi-c-shi-ta-avtomatyzatsiia { --rc: #DB2777; } .pi-c-pz-ta-operatsiini-systemy { --rc: #059669; } .pi-c-it-menedzhment { --rc: #92400E; }
.pi-c-novyny { --rc: #C2410C; } .pi-c-dumka-redaktsii { --rc: #161616; } .pi-c-tekhnolohiyi { --rc: #C2410C; }

.pi-plaque, a.pi-cat[class*="pi-c-"] { display: inline-block; background: var(--rc, #C2410C) !important; color: #fff !important; font-family: "Onest", system-ui, sans-serif;
  font-size: .68rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .5rem !important; line-height: 1.1;
  border: 0 !important; text-decoration: none !important; align-self: flex-start; }
a.pi-cat[class*="pi-c-"]:hover { filter: brightness(1.1); text-decoration: none !important; }
.pi-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rc); margin-right: .45rem; vertical-align: .1em; }

/* ================= Плитки з фото ================= */
.pi-tile { position: relative; min-width: 0; }
.pi-tile-link { display: block; color: #161616 !important; text-decoration: none !important; height: 100%; }
.pi-tile-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #DDD7CC; transition: transform .35s ease; }
.pi-tile-link:hover .pi-tile-title { color: #C2410C; }
.pi-tile-body { display: flex; flex-direction: column; gap: .45rem; padding-top: .7rem; }
.pi-tile-title { font-family: Georgia, "Noto Serif", serif; font-weight: 700; font-size: 1.08rem; line-height: 1.28; }
.pi-tile-ex { font-size: .92rem; color: #4A4640; line-height: 1.5; }
.pi-tile-date { font-family: "Onest", system-ui, sans-serif; font-size: .76rem; color: #8A857D; }
/* великі плитки: текст поверх фото */
.pi-tile-xl, .pi-tile-l { overflow: hidden; background: #161616; }
.pi-tile-xl .pi-tile-link, .pi-tile-l .pi-tile-link { position: relative; color: #fff !important; }
.pi-tile-xl .pi-tile-img, .pi-tile-l .pi-tile-img { aspect-ratio: auto; height: 100%; min-height: 100%; position: absolute; inset: 0; opacity: .95; }
.pi-tile-xl .pi-tile-link:hover .pi-tile-img, .pi-tile-l .pi-tile-link:hover .pi-tile-img { transform: scale(1.03); }
.pi-tile-xl .pi-tile-body, .pi-tile-l .pi-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem 1.3rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.82) 100%); }
.pi-tile-xl .pi-tile-title, .pi-tile-l .pi-tile-title { color: #fff; }
.pi-tile-xl .pi-tile-link:hover .pi-tile-title, .pi-tile-l .pi-tile-link:hover .pi-tile-title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pi-tile-xl .pi-tile-title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.pi-tile-l .pi-tile-title { font-size: 1.35rem; }
.pi-tile-xl .pi-tile-ex, .pi-tile-l .pi-tile-ex { color: rgba(255,255,255,.88); font-size: 1rem; max-width: 46rem; }
.pi-tile-xl .pi-tile-date, .pi-tile-l .pi-tile-date { color: rgba(255,255,255,.75); }

/* ================= Головна ================= */
.ph { padding-top: 1.5rem !important; }
.ph2 { max-width: 1200px; margin: 0 auto; }
.ph2 > section { margin-top: 2.6rem; }
.ph2 > section:first-child { margin-top: .5rem; }
.ph2-h { font-family: "Onest", system-ui, sans-serif !important; font-size: .85rem !important; font-weight: 800 !important; letter-spacing: .12em !important;
  text-transform: uppercase; margin: 0 0 1rem !important; padding-bottom: .5rem; border-bottom: 3px solid #161616; }
.ph2-more { display: inline-block; margin-top: .8rem; font-family: "Onest", system-ui, sans-serif; font-size: .85rem; font-weight: 700; color: #C2410C !important; text-decoration: none; }
.ph2-more::after { content: " →"; }

.ph2-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; min-height: 520px; }
.ph2-hero > .pi-tile-xl { min-height: 520px; }
.ph2-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.ph2-hero-side .pi-tile-l { min-height: 254px; }

.ph2-latest { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr); gap: 2.2rem; }
.ph2-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
.ph2-feed ul { list-style: none; margin: 0; padding: 0; }
.ph2-feed li { padding: .6rem 0; border-bottom: 1px solid #D8D2C6; font-family: "Onest", system-ui, sans-serif; }
.ph2-feed time { display: block; font-size: .72rem; color: #8A857D; margin-bottom: .15rem; }
.ph2-feed a { color: #161616 !important; text-decoration: none; font-size: .93rem; font-weight: 600; line-height: 1.35; }
.ph2-feed a:hover { color: #C2410C !important; }

.ph2-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem; }
.ph2-opinion { background: #161616; color: #F5F3EE; padding: 1.6rem 1.6rem 1.8rem; }
.ph2-opinion .pi-plaque { background: #C2410C !important; }
.ph2-opinion h3 { font-family: Georgia, serif !important; font-style: italic; font-size: 1.8rem !important; line-height: 1.2 !important; color: #fff; margin: 1rem 0 .8rem !important; }
.ph2-opinion a { color: #fff !important; text-decoration: none; }
.ph2-opinion p { font-family: Georgia, serif; color: #CFC9BE; font-size: 1.02rem; line-height: 1.6; }
.ph2-opinion .ph2-more { color: #FDBA74 !important; }
.ph2-picks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }

.ph2-sec { border-top: 6px solid var(--rc); padding-top: 0; }
.ph2-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.1rem; }
.ph2-sec-h a:first-child { background: var(--rc); color: #fff !important; text-decoration: none; font-family: "Onest", system-ui, sans-serif; font-weight: 800;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; padding: .5rem .9rem; }
.ph2-sec-all { font-family: "Onest", system-ui, sans-serif; font-size: .85rem; font-weight: 700; color: var(--rc) !important; text-decoration: none; }
.ph2-sec-all::after { content: " →"; }
.ph2-sec-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 1.2rem; }
.ph2-sec-grid > .pi-tile-l { grid-row: span 2; min-height: 430px; }
.ph2-sec-grid .pi-tile-s .pi-tile-img { aspect-ratio: 16/9; }
.ph2-sec .pi-tile-s .pi-tile-title { font-size: 1rem; }

.ph2-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.8rem; border-top: 3px solid #161616; padding-top: 1.6rem; }
.ph2-mini-col .pi-plaque { margin-bottom: .8rem; font-size: .74rem !important; padding: .35rem .6rem !important; }
.ph2-mini-col ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.ph2-mini-col li { border-top: 1px solid #D8D2C6; padding: .55rem 0; }
.ph2-mini-col li a { color: #161616 !important; text-decoration: none; font-family: Georgia, serif; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.ph2-mini-col li a:hover { color: #C2410C !important; }

@media (max-width: 1000px) {
  .ph2-hero, .ph2-latest, .ph2-duo { grid-template-columns: 1fr; }
  .ph2-hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .ph2-grid4, .ph2-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph2-sec-grid { grid-template-columns: 1fr 1fr; }
  .ph2-sec-grid > .pi-tile-l { grid-column: span 2; grid-row: auto; min-height: 360px; }
  .ph2-mini { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ph2-hero > .pi-tile-xl { min-height: 420px; }
  .ph2-hero-side { grid-template-columns: 1fr; }
  .ph2-mini, .ph2-grid4, .ph2-picks-grid { grid-template-columns: 1fr; }
}

/* ================= Стрічка та рубрики з фото ================= */
.pi-list .pi-card { grid-template-columns: 260px minmax(0, 1fr) !important; column-gap: 1.6rem !important; }
.pi-list .pi-card > .pi-list-img { grid-column: 1; grid-row: 1 / span 4; margin: 0 !important; }
.pi-list .pi-card > .pi-list-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; border-radius: 0 !important; }
.pi-list .pi-card > .pi-meta { grid-column: 2 !important; grid-row: auto !important; display: flex !important; padding-top: 0 !important; }
.pi-list .pi-card > .pi-meta > * { display: inline !important; }
.pi-list .pi-card > .pi-meta > * + *::before { content: "·" !important; margin: 0 .5rem; }
.pi-list .pi-grid > li:nth-child(3n+2) .pi-card-excerpt { display: block !important; }
.pi-list .pi-grid { max-width: 920px !important; }
@media (max-width: 640px) { .pi-list .pi-card { grid-template-columns: 1fr !important; } .pi-list .pi-card > .pi-list-img { grid-row: auto; } }
.pi-top-grid > li:not(:first-child) .wp-block-post-featured-image { display: block !important; }
.pi-top-grid .wp-block-post-featured-image img { aspect-ratio: 16/10 !important; }
.pi-art-head .pi-cat[class*="pi-c-"] { border-bottom: 0 !important; font-size: .74rem !important; }
.pi-art-body h2::before { background: var(--pi-acc); }
.ph { padding-left: 1.25rem; padding-right: 1.25rem; }
.pi-tile-s .pi-tile-img, .ph2 .pi-tile-s img { aspect-ratio: 16/10 !important; height: auto !important; width: 100% !important; object-fit: cover; }
.pi-list .pi-card > .pi-list-img img, .pi-top-grid .wp-block-post-featured-image img { height: auto !important; }
a.pi-cat[class*="pi-c-"], .pi-plaque { justify-self: start; width: fit-content; max-width: 100%; }
.ph2-picks-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.ph2-picks-grid .pi-tile-title { font-size: .98rem; }
@media (max-width: 1000px) { .ph2-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Світлий білий фон ===== */
:root:root { --wp--preset--color--base: #FFFFFF; --wp--preset--color--accent-2: #F4F5F7; --wp--preset--color--accent-6: #E3E5E8; }
body, body.oscar-mode-dark, .pi-hdr, .pi-hdr-nav, .pi-ticker, .wp-site-blocks { background: #FFFFFF !important; }
.pi-ticker { background: #F7F8FA !important; border-bottom-color: #E8EAED !important; }
.pi-hdr-nav { border-bottom-color: #E3E5E8 !important; }
.pi-keybox, .ph-col, .pi-subscribe, .pi-art-body tbody tr:nth-child(even) td { background: #F4F5F7 !important; }
.pi-art-body .pi-keybox { background: #FFF4EC !important; }
.pi-art-body .pi-tip { background: #EEF3FA !important; }
.pi-tile-img, .pi-noimg { background: #EEF0F2; }
.ph2-feed li, .ph2-mini-col li, .pi-list .pi-grid > li, .pi-postnav, .pi-crumbs li + li::before { border-color: #E6E8EB !important; }
.pi-list .pi-grid > li { border-top-color: #E6E8EB !important; }
.pi-mega { background: #FFFFFF !important; }

/* ================= Про проєкт ================= */
body.page-id-5 h1.wp-block-post-title, body.page-id-5 .wp-block-post-featured-image { display: none !important; }
body.page-id-5 .wp-block-post-content { max-width: none !important; font-family: "Onest", system-ui, sans-serif !important; font-size: 1rem !important; }
body.page-id-5 main.wp-block-group { padding-top: 0 !important; }
.pa { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 2rem; }
.pa-hero { position: relative; margin: 1.2rem 0 0; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: #161616;
  background-image: linear-gradient(90deg, rgba(22,22,22,.92) 0%, rgba(22,22,22,.75) 45%, rgba(22,22,22,.25) 100%), var(--pa-bg); background-size: cover; background-position: center; }
.pa-hero-in { padding: 3rem 2.6rem; max-width: 760px; }
.pa-hero h1 { font-family: Georgia, "Noto Serif", serif !important; font-size: clamp(2.2rem, 4.6vw, 3.6rem) !important; line-height: 1.08 !important; color: #fff; margin: 1rem 0 1rem !important; }
.pa-hero p { font-size: 1.15rem; line-height: 1.6; color: #E4DFD6; max-width: 600px; }
.pa-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.pa-btn { display: inline-block; background: #C2410C; color: #fff !important; text-decoration: none !important; font-weight: 700; padding: .8rem 1.3rem; }
.pa-btn:hover { background: #A3360A; }
.pa-btn-ghost { background: transparent; border: 1.5px solid #fff; }
.pa-btn-ghost:hover { background: #fff; color: #161616 !important; }
.pa-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #E3E5E8; }
.pa-stats > div { padding: 1.6rem 1.2rem; border-right: 1px solid #E3E5E8; }
.pa-stats > div:last-child { border-right: 0; }
.pa-stats strong { display: block; font-family: Georgia, serif; font-size: 2.8rem; line-height: 1; color: #C2410C; }
.pa-stats span { display: block; margin-top: .4rem; color: #5C5852; font-size: .92rem; }
.pa-block { margin-top: 3rem; }
.pa-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pa-topic { position: relative; display: flex; flex-direction: column; gap: .4rem; min-height: 170px; padding: 1.1rem 1.1rem 1.2rem; background: var(--rc); color: #fff !important;
  text-decoration: none !important; transition: transform .15s ease; overflow: hidden; }
.pa-topic:hover { transform: translateY(-3px); }
.pa-topic-n { font-family: Georgia, serif; font-size: 2.2rem; line-height: 1; opacity: .9; }
.pa-topic-t { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.pa-topic-d { font-size: .82rem; line-height: 1.4; opacity: .88; }
.pa-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; position: relative; }
.pa-steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 10%; height: 2px; background: #E3E5E8; }
.pa-steps li { position: relative; padding-right: 1.4rem; }
.pa-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #161616; color: #fff; font-weight: 800; font-size: 1.1rem; }
.pa-steps li:nth-child(1) .pa-step-n { background: #C2410C; }
.pa-steps h3 { font-family: Georgia, serif !important; font-size: 1.2rem !important; margin: .9rem 0 .4rem !important; }
.pa-steps p { margin: 0; color: #4A4640; font-size: .93rem; line-height: 1.55; }
.pa-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pa-pr { background: #F4F5F7; padding: 1.4rem 1.4rem 1.5rem; border-top: 4px solid #161616; }
.pa-pr:nth-child(3n+1) { border-top-color: #C2410C; } .pa-pr:nth-child(3n+2) { border-top-color: #2563EB; } .pa-pr:nth-child(3n) { border-top-color: #059669; }
.pa-pr-i { font-size: 1.8rem; line-height: 1; }
.pa-pr h3 { font-family: Georgia, serif !important; font-size: 1.15rem !important; margin: .8rem 0 .4rem !important; }
.pa-pr p { margin: 0; color: #4A4640; font-size: .93rem; line-height: 1.55; }
.pa-contact { margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: #161616; color: #fff; padding: 2rem 2.2rem; }
.pa-contact h2 { font-family: Georgia, serif !important; color: #fff; font-size: 1.7rem !important; margin: 0 0 .4rem !important; }
.pa-contact p { margin: 0; color: #CFC9BE; max-width: 640px; line-height: 1.55; }
@media (max-width: 1000px) {
  .pa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pa-stats > div { border-bottom: 1px solid #E3E5E8; }
  .pa-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-steps { grid-template-columns: 1fr; gap: 1.2rem; } .pa-steps::before { display: none; }
  .pa-principles { grid-template-columns: 1fr; }
  .pa-hero-in { padding: 2rem 1.4rem; }
}

/* ================= Матеріал: новинний формат ================= */
.ta { padding: 1.4rem 1.25rem 3rem; font-family: "Onest", system-ui, sans-serif; }
.ta-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.ta-main { min-width: 0; max-width: 780px; }
.ta .pi-crumbs ol { font-size: .82rem; margin-bottom: 1rem; }
.ta-head .pi-plaque { font-size: .74rem !important; padding: .35rem .6rem !important; }
.ta-title { font-family: "Onest", system-ui, sans-serif !important; font-weight: 800 !important; font-size: clamp(1.9rem, 3.6vw, 2.75rem) !important;
  line-height: 1.15 !important; letter-spacing: -.02em !important; color: #111; margin: .8rem 0 .9rem !important; }
.ta-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; color: #6B6F76; }
.ta-meta time { color: #111; font-weight: 600; }
.ta-meta .pi-read::before { content: "◷ "; }
.ta-share { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 0; }
.ta-share > span { font-size: .82rem; color: #6B6F76; margin-right: .2rem; }
.ta-sh { display: inline-flex; align-items: center; padding: .38rem .7rem; font: inherit; font-size: .8rem; font-weight: 700; color: #fff !important; text-decoration: none !important;
  border: 0; border-radius: 4px; cursor: pointer; }
.ta-sh-tg { background: #229ED9; } .ta-sh-fb { background: #1877F2; } .ta-sh-x { background: #111; } .ta-sh-in { background: #0A66C2; }
.ta-sh-copy { background: #EEF0F2; color: #111 !important; }
.ta-sh:hover { filter: brightness(1.08); }
.ta-cover { margin: 1.3rem 0 0 !important; }
.ta-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 6px; }
.ta-lead, .ta-lead p { font-family: "Onest", system-ui, sans-serif !important; font-weight: 700; font-size: 1.22rem !important; line-height: 1.5 !important; color: #111 !important;
  font-style: normal !important; margin: 1.3rem 0 0 !important; }
.ta-lead .wp-block-post-excerpt__more-text { display: none; }
.ta .pi-toc { margin: 1.4rem 0 0 !important; padding: 1rem 1.2rem !important; background: #F4F5F7 !important; border: 0 !important; border-left: 4px solid #C2410C !important; border-radius: 0 6px 6px 0; position: static; max-height: none; }
.ta .pi-toc ol { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
@media (max-width: 700px) { .ta .pi-toc ol { grid-template-columns: 1fr; } }

.ta-body { font-family: "Onest", system-ui, sans-serif !important; font-size: 1.1rem !important; line-height: 1.68 !important; color: #1C1D20; margin-top: 1.4rem; }
.ta-body > * { max-width: 780px; }
.ta-body > * + * { margin-block-start: 1.05em !important; }
.ta-body h2 { font-family: "Onest", system-ui, sans-serif !important; font-weight: 800 !important; font-size: 1.55rem !important; line-height: 1.25 !important; letter-spacing: -.01em !important;
  margin-block-start: 1.9em !important; scroll-margin-top: 70px; }
.ta-body h3 { font-family: "Onest", system-ui, sans-serif !important; font-weight: 700 !important; font-size: 1.25rem !important; scroll-margin-top: 70px; }
.ta-body a { color: #C2410C; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ta-body ul li::marker, .ta-body ol li::marker { color: #C2410C; font-weight: 700; }
.ta-body li + li { margin-top: .4em; }
.ta-body blockquote { border-left: 4px solid #C2410C; margin-left: 0; padding: .3rem 0 .3rem 1.2rem; font-size: 1.25rem; font-weight: 600; color: #111; }
.ta-body .pi-keybox { background: #FFF4EC !important; border: 0 !important; border-left: 4px solid #C2410C !important; border-radius: 0 6px 6px 0; padding: 1.1rem 1.3rem !important; font-size: 1rem; }
.ta-body .pi-keybox-title { color: #C2410C !important; }
.ta-body .pi-tip { background: #EEF3FA !important; border: 0 !important; border-left: 4px solid #2563EB !important; border-radius: 0 6px 6px 0; padding: 1rem 1.2rem !important; font-size: 1rem; }
.ta-body .pi-tip strong { color: #1D4E89 !important; }
.ta-body table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.ta-body thead th { background: #111; color: #fff; text-align: left; padding: .65rem .75rem; font-size: .86rem; }
.ta-body tbody td { padding: .65rem .75rem; border-bottom: 1px solid #E6E8EB; vertical-align: top; }
.ta-body tbody tr:nth-child(even) td { background: #F7F8FA; }
.ta-body .pi-figure { margin: 1.8em 0 !important; max-width: 780px !important; }
.ta-body .pi-figure img { border-radius: 6px; width: 100%; height: auto; }
.ta-body .pi-figure figcaption { font-size: .84rem; color: #6B6F76; margin-top: .5rem; }
.ta-body p:first-child::first-letter { all: unset; }
/* вбудоване «Читайте також» */
.ta-also { margin: 1.6em 0 !important; }
.ta-also a { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .8rem; background: #F4F5F7; border-left: 4px solid #C2410C;
  text-decoration: none !important; color: #111 !important; border-radius: 0 6px 6px 0; }
.ta-also img { width: 120px; height: 80px; object-fit: cover; display: block; border-radius: 4px; }
.ta-also em { display: block; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C2410C; margin-bottom: .25rem; }
.ta-also strong { font-size: 1.02rem; line-height: 1.3; }
.ta-also a:hover strong { color: #C2410C; }
/* inline code */
.ta-body :not(pre) > code { font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, Menlo, monospace; font-size: .88em; background: #F1F3F5; color: #B42318;
  padding: .12em .38em; border-radius: 4px; border: 1px solid #E4E7EA; }
/* блоки коду */
.ta-code { margin: 1.6em 0 !important; background: #1E2127; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px -12px rgba(0,0,0,.4); max-width: 780px; }
.ta-code-bar { display: flex; align-items: center; gap: .8rem; padding: .55rem .9rem; background: #16181D; border-bottom: 1px solid #2C313A; font-family: "Onest", system-ui, sans-serif; }
.ta-code-dots { display: flex; gap: 6px; } .ta-code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .ta-code-dots i:nth-child(2) { background: #FEBC2E; } .ta-code-dots i:nth-child(3) { background: #28C840; }
.ta-code-lang { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8B93A1; }
.ta-code-copy { margin-left: auto; border: 1px solid #3A404B; background: #252932; color: #D7DAE0; font: inherit; font-size: .78rem; padding: .3rem .7rem; border-radius: 4px; cursor: pointer; }
.ta-code-copy:hover { background: #2F3440; color: #fff; }
.ta-code pre { margin: 0 !important; padding: 1rem 1.1rem !important; background: transparent !important; border: 0 !important; overflow-x: auto; white-space: pre; tab-size: 4; }
.ta-code pre code { display: block; background: none !important; border: 0 !important; padding: 0 !important; color: #ABB2BF !important;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, Menlo, monospace !important; font-size: .9rem !important; line-height: 1.65; white-space: pre; }
.ta-code pre.has-lines code { counter-reset: ln; }
.ta-code .ln { display: inline-block; width: 100%; }
.ta-code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; margin-right: 1em; text-align: right; color: #4B5263; user-select: none; }
.tk-c { color: #7F848E; font-style: italic; } .tk-k { color: #E06C75; } .tk-v, .tk-str { color: #98C379; } .tk-s { color: #E5C07B; font-weight: 700; }
.tk-kw { color: #C678DD; } .tk-var { color: #E5C07B; } .tk-fl { color: #61AFEF; } .tk-n { color: #D19A66; }
.ta-code ::selection { background: #3E4451; }

.ta-foot { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid #E6E8EB; }
.ta-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.ta-tags .pi-plaque { text-transform: none; letter-spacing: 0; font-size: .8rem !important; border-radius: 3px; }
.ta-note { font-size: .9rem; color: #6B6F76; margin-top: 1rem !important; }
.ta-note a { color: #C2410C; }

/* бокова колонка */
.ta-side-in { position: sticky; top: 64px; display: grid; gap: 1.8rem; }
.ta-side-h { font-family: "Onest", system-ui, sans-serif !important; font-size: .85rem !important; font-weight: 800 !important; letter-spacing: .1em !important; text-transform: uppercase;
  margin: 0 0 .6rem !important; padding: .55rem .8rem; background: #111; color: #fff; display: inline-block; }
.ta-side-box ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid #111; }
.ta-side-box li { border-bottom: 1px solid #E6E8EB; }
.ta-side-box a { display: block; padding: .65rem 0; text-decoration: none; color: #111 !important; }
.ta-side-box a:hover .ta-side-t { color: #C2410C; }
.ta-side-box li.has-img a { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; align-items: start; }
.ta-side-img img { width: 96px; height: 64px; object-fit: cover; display: block; border-radius: 4px; }
.ta-side-t { font-size: .93rem; font-weight: 600; line-height: 1.35; }
.ta-side-t time { display: block; font-size: .74rem; font-weight: 500; color: #C2410C; margin-bottom: .15rem; }

.ta-more { max-width: 1200px; margin: 3rem auto 0; }
@media (max-width: 1000px) { .ta-wrap { grid-template-columns: 1fr; } .ta-side-in { position: static; } .ta-main { max-width: none; } }
@media (max-width: 560px) { .ta-also a { grid-template-columns: 84px 1fr; } .ta-also img { width: 84px; height: 60px; } }
.pad-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pad-note { margin-top: 1rem; color: #4A4640; font-size: .98rem; line-height: 1.6; max-width: 900px; }
.pad .pa-topic { min-height: 120px; }
.pad .pa-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pad-rules ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.pad-rules li { padding: 1rem 1.2rem; border-left: 4px solid #C2410C; background: #F4F5F7; line-height: 1.55; font-size: .98rem; }
body.page-id-16 h1.wp-block-post-title, body.page-id-16 .wp-block-post-featured-image { display: none !important; }
body.page-id-16 .wp-block-post-content { max-width: none !important; font-family: "Onest", system-ui, sans-serif !important; font-size: 1rem !important; }
body.page-id-16 main.wp-block-group { padding-top: 0 !important; }
@media (max-width: 1000px) { .pad-rules ul { grid-template-columns: 1fr; } .pad .pa-steps { grid-template-columns: 1fr; } }
/* новий логотип */
.pi-hdr-logo img { height: 56px !important; width: auto; }
.pi-hdr-mini img { height: 28px !important; width: auto; }
.pi-foot-logo img { height: 44px !important; width: auto; }
@media (max-width: 760px) { .pi-hdr-logo img { height: 40px !important; } }
.pi-foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr !important; } @media (max-width:1000px){ .pi-foot-top { grid-template-columns: 1fr 1fr !important; } } @media (max-width:560px){ .pi-foot-top { grid-template-columns: 1fr !important; } }
