/* Inner pages (services, news, tenders in numbers): rendered by the API (functions/pages.js). Same identity as the home page. */
:root {
  --navy-900: #081a36; --navy-800: #0e2a56; --navy: #1a478c; --navy-100: #e6edf8;
  --gold: #d4af37; --gold-700: #8a6d14; --gold-100: #f7ecc6;
  --cream: #fdf6e3; --ink: #13213a; --muted: #4f5d73; --line: #e8e2cf;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pg { margin: 0; font-family: 'Readex Pro', system-ui, sans-serif; color: var(--ink); background: #fbfaf6; line-height: 1.75; font-size: 17px; }
.pg a { color: var(--navy); }
.pg a:hover { color: var(--navy-800); }
.pg-wrap { width: min(100% - 32px, 960px); margin-inline: auto; }

.pg-head { background: var(--navy-800); color: var(--cream); }
.pg-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.pg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream) !important; }
.pg-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(212,175,55,.55); }
.pg-brand b { display: block; font-size: 1.15rem; line-height: 1.2; }
.pg-brand small { display: block; font-size: .78rem; color: var(--gold-100); }
.pg-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-nav a { color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.pg-nav a:hover, .pg-nav a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }

.pg-main { padding-block: 28px 56px; }
.pg-crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.pg-crumbs i { font-style: normal; opacity: .6; }
[dir="rtl"] .pg-crumbs i { transform: scaleX(-1); display: inline-block; }
.pg h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.25; margin: 0 0 12px; color: var(--navy-800); }
.pg h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--navy-800); }
.pg-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.pg-article { max-width: 760px; }
.pg-article p { margin: 0 0 16px; }
.pg-tag { font-size: .9rem; font-weight: 600; color: var(--gold-700); margin-bottom: 8px !important; }
.pg-figure { margin: 8px 0 24px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-100); }
.pg-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-list { padding: 0; margin: 0 0 28px; list-style: none; display: grid; gap: 10px; }
.pg-list li { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }

.pg-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pg-cards a { display: block; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.pg-cards a:hover, .pg-cards a:focus-visible { border-color: var(--gold); box-shadow: 0 10px 30px -14px rgba(14,42,86,.35); }
.pg-cards h2 { margin: 4px 0 8px; font-size: 1.15rem; }
.pg-cards p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.pg-cards small, .pg-cards time { font-size: .85rem; color: var(--gold-700); font-weight: 600; }

.pg-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--navy-900) !important; font-weight: 600; text-decoration: none; }
.pg-btn:hover, .pg-btn:focus-visible { background: #e8cd72; }

.pg-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 0 0 28px; padding: 0; list-style: none; }
.pg-stats li { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pg-stats b { display: block; font-size: 2rem; line-height: 1.2; color: var(--navy-800); }
.pg-stats span { color: var(--muted); font-size: .92rem; }
.pg-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pg-table th, .pg-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.pg-table th { background: var(--navy-100); color: var(--navy-800); font-weight: 600; }
.pg-table td:last-child, .pg-table th:last-child { text-align: end; }
.pg-note { font-size: .88rem; color: var(--muted); }

.pg-foot { background: var(--navy-900); color: var(--navy-100); padding-block: 28px; font-size: .92rem; }
.pg-foot a { color: var(--gold-100); }
.pg-foot p { margin: 12px 0 0; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pg-cards a { transition: none; } }
