/* VOEVODA — useful/news section */
/* Hero is intentionally identical in scale to the Contacts page. */
.page-useful .useful-hero {
  min-height:176px !important;
  padding:22px 0 24px !important;
  align-items:center !important;
}
.page-useful .useful-hero .page-hero__inner {
  width:min(1180px,calc(100% - 48px)) !important;
  max-width:1180px !important;
  margin-inline:auto !important;
}
.page-useful .useful-hero .breadcrumbs { margin:0 0 6px !important;font-size:10px !important;font-weight:700 !important; }
.page-useful .useful-hero .kicker { margin-bottom:6px !important;font-size:10px !important; }
.page-useful .useful-hero h1 { margin:0 0 9px !important;font-size:clamp(38px,4vw,58px) !important;line-height:.95 !important; }
.page-useful .useful-hero p { max-width:760px !important;margin:0 !important;font-size:13px !important;line-height:1.5 !important; }
.page-useful .useful-content { padding-top:30px !important;padding-bottom:72px !important; }
.useful-filter{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 24px}
.useful-filter a{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--line);color:var(--muted);font-size:11px;letter-spacing:.035em;transition:.18s ease}
.useful-filter a:hover,.useful-filter a.is-active{border-color:var(--gold);color:var(--gold2);background:rgba(213,179,106,.07)}
.useful-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.useful-card{position:relative;min-width:0;aspect-ratio:1/1;border:1px solid var(--line);background:#0b0c09;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.useful-card:hover{transform:translateY(-3px);border-color:rgba(213,179,106,.55);box-shadow:0 22px 55px rgba(0,0,0,.30)}
.useful-card__media{position:absolute;inset:0;display:block;overflow:hidden;background:#0b0c09}
.useful-card__media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease,filter .35s ease}
.useful-card:hover .useful-card__media img{transform:scale(1.035)}
.useful-card__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,4,.06) 24%,rgba(5,6,4,.38) 52%,rgba(5,6,4,.96) 100%);pointer-events:none}
.useful-card__type{position:absolute;left:14px;top:14px;z-index:1;padding:6px 9px;border:1px solid rgba(213,179,106,.5);background:rgba(8,9,7,.75);backdrop-filter:blur(8px);color:#e2c582;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.useful-card__body{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:18px 20px 20px;color:#f3efe6;pointer-events:none}
.useful-card__body a{pointer-events:auto}
.useful-card__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:rgba(243,239,230,.7);font-size:10px}
.useful-card h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 8px;font-size:clamp(18px,1.55vw,23px);line-height:1.12;color:#fff}
.useful-card h2 a{color:inherit}
.useful-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;color:rgba(243,239,230,.78);font-size:12px;line-height:1.45}
.useful-card__link{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:11px;color:#e2c582;font-size:11px;font-weight:800;letter-spacing:.03em}
.useful-card__link::after{content:"→";transition:transform .18s ease}.useful-card:hover .useful-card__link::after{transform:translateX(4px)}
.useful-empty{padding:46px 24px;text-align:center;border:1px dashed var(--line);color:var(--muted)}
.article-shell{max-width:980px;margin:0 auto}
.article-head{padding:54px 0 30px;border-bottom:1px solid var(--line)}
.article-head__meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:18px 0 0;color:var(--muted);font-size:12px}
.article-head__type{color:var(--gold2);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.article-head h1{max-width:900px;margin:14px 0 0;font-size:clamp(34px,5vw,62px);line-height:.98}
.article-head__lead{max-width:780px;margin:20px 0 0;color:var(--muted);font-size:17px;line-height:1.7}
.article-cover{margin:30px 0 0;border:1px solid var(--line);background:#0a0b08;overflow:hidden}
.article-cover img{display:block;width:100%;max-height:680px;object-fit:cover}
.article-content{padding:38px 0 70px;font-size:17px;line-height:1.82;color:#ddd6ca}
.article-content>*:first-child{margin-top:0}.article-content>*:last-child{margin-bottom:0}
.article-content p{margin:0 0 1.15em}.article-content h2,.article-content h3{color:var(--text);line-height:1.15;margin:1.8em 0 .65em}.article-content h2{font-size:30px}.article-content h3{font-size:23px}
.article-content ul,.article-content ol{padding-left:1.4em;margin:0 0 1.25em}.article-content li{margin:.35em 0}
.article-content a{color:var(--gold2);text-decoration:underline;text-underline-offset:3px}.article-content blockquote{margin:1.5em 0;padding:4px 0 4px 20px;border-left:2px solid var(--gold);color:var(--muted)}
.article-content table{display:table;width:100%;margin:28px 0;border:1px solid rgba(207,171,108,.28);border-collapse:separate;border-spacing:0;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.018);font-size:15px;line-height:1.45}
.article-content th,.article-content td{padding:14px 16px;border-right:1px solid rgba(207,171,108,.20);border-bottom:1px solid rgba(207,171,108,.20);text-align:left;vertical-align:top}.article-content th:last-child,.article-content td:last-child{border-right:0}.article-content tbody tr:last-child td{border-bottom:0}
.article-content th{background:rgba(201,163,91,.14);color:var(--gold2);font-size:12px;letter-spacing:.035em;text-transform:uppercase}.article-content tbody tr:nth-child(even){background:rgba(255,255,255,.025)}
.article-content tbody tr:hover{background:rgba(201,163,91,.07)}
.article-back{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 0 60px;border-top:1px solid var(--line)}
html[data-theme="light"] .article-content{color:var(--text)}
html[data-theme="light"] .article-content table{background:#fff;border-color:rgba(96,70,34,.22);box-shadow:0 8px 26px rgba(70,49,20,.06)}html[data-theme="light"] .article-content th{background:#efe1c5;color:#4b3921}html[data-theme="light"] .article-content th,html[data-theme="light"] .article-content td{border-color:rgba(96,70,34,.17)}html[data-theme="light"] .article-content tbody tr:nth-child(even){background:#fbf7ef}html[data-theme="light"] .article-content tbody tr:hover{background:#f5ead7}
@media(max-width:620px){.page-useful .useful-hero{min-height:150px!important;padding:16px 0 18px!important}.page-useful .useful-hero .page-hero__inner{width:min(100%,calc(100% - 24px))!important}.page-useful .useful-hero h1{font-size:32px!important}.page-useful .useful-hero p{font-size:11px!important}.page-useful .useful-content{padding-top:22px!important;padding-bottom:50px!important}.useful-filter{margin-bottom:18px;gap:6px}.useful-filter a{min-height:32px;padding:5px 10px;font-size:10px}}
@media(max-width:980px){.useful-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.useful-card h2{font-size:21px}}
@media(max-width:640px){.useful-grid{grid-template-columns:1fr;gap:16px}.useful-card__body{padding:17px}.useful-card h2{font-size:20px}.article-head{padding-top:36px}.article-head h1{font-size:clamp(32px,11vw,48px)}.article-content{font-size:16px;padding-top:28px}.article-back{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.article-content table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:9px;font-size:14px}.article-content th,.article-content td{min-width:170px;padding:12px 13px}.article-content th:first-child,.article-content td:first-child{min-width:220px}}
.useful-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:34px;color:var(--muted);font-size:12px}.useful-pagination a{display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;border:1px solid var(--line);color:var(--gold2)}.useful-pagination a:hover{border-color:var(--gold)}
@media(max-width:520px){.useful-pagination{justify-content:space-between;gap:8px}.useful-pagination span{font-size:11px}}

/* VOEVODA 1.0.88 — useful card text contrast.
   The global light-theme typography has higher specificity than the base
   useful-card rules, so lock overlay copy to a readable light palette. */
body.page-useful .useful-card .useful-card__media::after {
  background: linear-gradient(180deg, rgba(5,6,4,.08) 18%, rgba(5,6,4,.42) 48%, rgba(5,6,4,.98) 100%);
}
body.page-useful .useful-card .useful-card__body,
html[data-theme="light"] body.page-useful .useful-card .useful-card__body {
  color: #ffffff !important;
}
body.page-useful .useful-card .useful-card__meta,
html[data-theme="light"] body.page-useful .useful-card .useful-card__meta {
  color: rgba(255,255,255,.82) !important;
}
body.page-useful .useful-card h2,
body.page-useful .useful-card h2 a,
html[data-theme="light"] body.page-useful .useful-card h2,
html[data-theme="light"] body.page-useful .useful-card h2 a {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
body.page-useful .useful-card p,
html[data-theme="light"] body.page-useful .useful-card p {
  color: rgba(255,255,255,.90) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
body.page-useful .useful-card .useful-card__link,
html[data-theme="light"] body.page-useful .useful-card .useful-card__link {
  color: #f0cf87 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}


/* VOEVODA 1.0.91 — attribution for automatically prepared materials. */
.article-source{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px 16px;margin:-36px 0 52px;padding:18px 20px;border:1px solid var(--line);background:rgba(213,179,106,.05);font-size:12px;color:var(--muted)}
.article-source strong{color:var(--gold2);text-transform:uppercase;letter-spacing:.06em;font-size:10px}
.article-source span{color:var(--text);font-weight:700}
.article-source a{color:var(--gold2);font-weight:800;text-decoration:none}
.article-source small{grid-column:1/-1;line-height:1.55;color:var(--muted)}
@media(max-width:640px){.article-source{grid-template-columns:1fr;margin:-18px 0 36px}.article-source small{grid-column:auto}}

.article-source--multi{grid-template-columns:auto 1fr}.article-source__links{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:flex-end}.article-source__links a{white-space:nowrap}.article-source--multi small{grid-column:1/-1}@media(max-width:640px){.article-source--multi{grid-template-columns:1fr}.article-source__links{justify-content:flex-start}.article-source--multi small{grid-column:auto}}
