/* =========================================================
   AKTABE – Public Stylesheet
   Base putih/terang + satu warna utama (ungu AKTABE).
   Warna utama bisa diganti dari Panel Admin > Pengaturan.
   ========================================================= */

:root {
    --primary: #7b1f7f;
    --primary-rgb: 123, 31, 127;
    --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
    --primary-soft: rgba(var(--primary-rgb), .08);
    --primary-soft-2: rgba(var(--primary-rgb), .14);

    --ink: #1d1626;
    --ink-2: #4a4453;
    --muted: #7b7584;
    --line: #ece8f0;
    --bg: #ffffff;
    --bg-soft: #faf8fc;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(29, 22, 38, .05);
    --shadow: 0 12px 40px -12px rgba(29, 22, 38, .16);
    --shadow-primary: 0 14px 34px -12px rgba(var(--primary-rgb), .5);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --container: 1200px;
    --header-h: 80px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
    color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em; justify-content: center;
    padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
    white-space: nowrap;
}
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn-sm { padding: .6em 1.25em; font-size: .88rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.btn-light:hover { color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary-soft-2); color: var(--primary); background: #fff; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span { color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact i { color: var(--primary); }
.topbar-contact a:hover { color: var(--primary); }
.topbar-links { display: flex; gap: 6px; }
.topbar-links a {
    color: var(--primary); font-weight: 700; padding: 4px 12px; border-radius: 999px;
    background: var(--primary-soft); font-size: .78rem; letter-spacing: .02em;
}
.topbar-links a:hover { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 30px -12px rgba(29,22,38,.18); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; color: var(--primary); }
.brand-text small { font-size: .7rem; color: var(--muted); font-weight: 500; max-width: 210px; }
.brand:hover { color: var(--ink); }

.main-nav { margin-left: auto; }
.main-nav-head, .mobile-quick { display: none; }
.nav-list, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: 10px;
    color: var(--ink); font-weight: 600; font-size: .92rem; background: none; border: 0; white-space: nowrap;
}
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--primary); background: var(--primary-soft); }
.nav-caret { font-size: .7rem; transition: transform .25s; }
.nav-ext { font-size: .7rem; opacity: .6; }
.sub-toggle { display: none; }

.sub-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); z-index: 10;
}
.sub-menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.sub-menu .nav-link { display: flex; width: 100%; justify-content: space-between; white-space: normal; font-weight: 500; padding: 9px 12px; }
.sub-menu .sub-menu { top: -9px; left: calc(100% + 6px); }
.sub-menu .sub-menu::before { inset: 0 auto 0 -10px; width: 10px; height: auto; }
.sub-menu .nav-caret { transform: rotate(-90deg); }
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover > .nav-link .nav-caret { transform: rotate(180deg); }
.sub-menu .nav-item:hover > .nav-link .nav-caret { transform: rotate(-90deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(29,22,38,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 150; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(460px, 78vh, 760px); overflow: hidden; background: var(--ink); }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .88) 0%, rgba(var(--primary-rgb), .55) 45%, rgba(29,22,38,.15) 100%),
                linear-gradient(0deg, rgba(29,22,38,.45), transparent 50%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: var(--container); }
.hero-content > * { max-width: 640px; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .3s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .45s; }
.hero-eyebrow {
    display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; margin-bottom: 18px; background: rgba(255,255,255,.08);
}
.hero-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .92; margin-bottom: 30px; }
.hero-nav {
    position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem;
    backdrop-filter: blur(6px); transition: .25s;
}
.hero-nav:hover { background: #fff; color: var(--primary); }
.hero-prev { left: 24px; } .hero-next { right: 24px; }
.hero-dots { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: .35s var(--ease); }
.hero-dots button.is-active { width: 34px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; margin-bottom: 14px;
}
.eyebrow::before, .section-head.center .eyebrow::after { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* About boxes (Swan "01. 02. 03. 04.") */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-box {
    position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden;
}
.about-box::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); transition: width .45s var(--ease);
}
.about-box:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.about-box:hover::after { width: 100%; }
.about-num { position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--primary-soft-2); line-height: 1; }
.about-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
    background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; transition: .35s var(--ease);
}
.about-box:hover .about-icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.about-box h3 { font-size: 1.15rem; }
.about-box p { font-size: .93rem; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; }
.link-more i { transition: transform .25s var(--ease); }
.link-more:hover i, a:hover .link-more i { transform: translateX(4px); }

/* Stats band */
.stats-section { position: relative; padding: 80px 0; color: #fff; background: var(--bg) center/cover fixed; background-image: var(--bg); }
.stats-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(var(--primary-rgb), .94), rgba(29,22,38,.86)); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-value { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { opacity: .85; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* Units split */
.units-section { background: var(--bg-soft); }
.units-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.units-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.units-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; box-shadow: var(--shadow-sm); }
.units-media figure:nth-child(2) { transform: translateY(32px); }
.units-media figure:nth-child(4) { transform: translateY(32px); }
.units-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.units-media figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--primary-rgb), .35), transparent 60%); opacity: 0; transition: .4s; }
.units-media figure:hover img { transform: scale(1.08); }
.units-media figure:hover::after { opacity: 1; }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.unit-list a {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #fff;
    border: 1px solid var(--line); color: var(--ink); transition: .3s var(--ease);
}
.unit-list a:hover { border-color: rgba(var(--primary-rgb), .35); box-shadow: var(--shadow); transform: translateX(6px); }
.unit-icon {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; transition: .3s;
}
.unit-list a:hover .unit-icon, .link-card:hover .unit-icon { background: var(--primary); color: #fff; }
.unit-body { display: flex; flex-direction: column; line-height: 1.4; flex: 1; min-width: 0; }
.unit-body strong { font-size: .98rem; }
.unit-body small { color: var(--muted); font-size: .84rem; }
.unit-arrow { color: var(--muted); transition: .3s; }
.unit-list a:hover .unit-arrow { color: var(--primary); transform: rotate(45deg); }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); display: block; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-thumb-empty { display: grid; place-items: center; height: 100%; font-size: 2.5rem; color: var(--primary); }
.news-date {
    position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--primary); font-weight: 700;
    font-size: .78rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.12rem; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--muted); font-size: .92rem; flex: 1; }

/* CTA band */
.cta-section { position: relative; padding: clamp(80px, 10vw, 120px) 0; color: #fff; text-align: center; background: var(--ink) center/cover fixed; background-image: var(--bg); }
.cta-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(var(--primary-rgb), .92), rgba(var(--primary-rgb), .75) 50%, rgba(29,22,38,.85)); }
.cta-inner { position: relative; max-width: 720px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-inner p { font-size: 1.1rem; opacity: .92; margin-bottom: 30px; }

/* ---------- Inner pages ---------- */
.page-hero {
    position: relative; padding: clamp(56px, 8vw, 96px) 0; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.page-hero[style] { background: var(--primary) center/cover; background-image: var(--bg); }
.page-hero[style]::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(var(--primary-rgb), .92), rgba(29,22,38,.7)); }
.page-hero::after {
    content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; max-width: 860px; }
.page-hero p { opacity: .88; margin: 0; }
.page-hero.small { padding: clamp(44px, 6vw, 72px) 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; margin-bottom: 16px; opacity: .9; }
.breadcrumb a, .breadcrumb span { color: #fff; }
.breadcrumb > * + *::before { content: '›'; margin-right: 8px; opacity: .6; }
.breadcrumb a:hover { text-decoration: underline; }

.page-layout { display: grid; gap: 48px; }
.page-layout.has-aside { grid-template-columns: minmax(0, 1fr) 320px; }
.page-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 14px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-card li a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; line-height: 1.4; }
.aside-card li a i { color: var(--primary); }
.aside-card li a:hover, .aside-card li a.is-active { background: var(--primary-soft); color: var(--primary); }
.aside-card li a.is-active { font-weight: 700; }
.aside-news li a { align-items: flex-start !important; }
.aside-news img { width: 68px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.aside-news span { display: flex; flex-direction: column; }
.aside-news small { color: var(--muted); font-size: .78rem; }
.aside-cta { border-radius: var(--radius); padding: 26px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.aside-cta h2 { color: #fff; font-size: 1.2rem; }
.aside-cta p { font-size: .9rem; opacity: .9; }

.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose blockquote {
    margin: 1.4em 0; padding: 22px 26px; border-left: 4px solid var(--primary); background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.12rem; color: var(--ink); font-weight: 500; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--primary-soft); color: var(--ink); }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }

.empty-state {
    text-align: center; padding: 56px 28px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.empty-state > i { font-size: 2.8rem; color: var(--primary); display: inline-block; margin-bottom: 12px; }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .3s var(--ease); }
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink-2); border-color: transparent; }
.link-card .unit-icon { margin-bottom: 10px; }
.link-card h3 { font-size: 1.05rem; margin: 0; }
.link-card p { font-size: .9rem; color: var(--muted); flex: 1; margin: 0 0 8px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.contact-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.contact-card > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; margin-bottom: 14px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .93rem; word-break: break-word; }
.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; margin-bottom: 28px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.pagination a.is-active, .pagination a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #1b1222; color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 20px 48px; }
.footer-col h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }
.brand-light img { background: #fff; border-radius: 50%; padding: 2px; }
.footer-about p { margin: 18px 0 20px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.7); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; padding-left: 4px; }
.footer-links a { transition: .2s; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: color-mix(in srgb, var(--primary) 45%, #fff); margin-top: 2px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: .25s; }
.social a:hover { background: var(--primary); transform: translateY(-3px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-mark, .footer-mark:hover { color: inherit; cursor: default; }
.to-top { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; flex-shrink: 0; }
.to-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
    .brand-text small { display: none; }
    .nav-link { padding: 10px 10px; font-size: .9rem; }
}

@media (max-width: 1024px) {
    :root { --header-h: 70px; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 200;
        transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 0 0 24px;
        display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
    }
    body.nav-open .main-nav { transform: none; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .main-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--ink); position: sticky; top: 0; background: #fff; z-index: 2; }
    .nav-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
    .nav-list { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
    .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
    .nav-item > .nav-link { flex: 1; padding: 13px 14px; font-size: 1rem; white-space: normal; justify-content: space-between; }
    .nav-item > a.nav-link .nav-caret { display: none; }
    .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); border-radius: 10px; }
    .sub-toggle i, .nav-item > button.nav-link .nav-caret { transition: transform .3s; }
    .nav-item.is-open > .sub-toggle i, .nav-item.is-open > button.nav-link .nav-caret { transform: rotate(180deg); }
    .sub-menu, .sub-menu .sub-menu {
        position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: 0; border-left: 2px solid var(--primary-soft-2); border-radius: 0; margin: 2px 0 6px 16px; padding: 0 0 0 8px;
        display: none; background: transparent;
    }
    .nav-item.is-open > .sub-menu { display: block; }
    .sub-menu .nav-link { font-size: .94rem; }
    .sub-menu .nav-caret { transform: none; }
    .mobile-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 0; margin-top: auto; }
    .mobile-quick a { padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); font-weight: 700; font-size: .85rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .units-grid { grid-template-columns: 1fr; gap: 56px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-layout.has-aside { grid-template-columns: 1fr; }
    .page-aside { position: static; }
    .stats-section, .cta-section { background-attachment: scroll; }
}

@media (max-width: 720px) {
    .topbar-contact { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-links { width: 100%; justify-content: center; }
    .header-cta { display: none; }
    .brand img { width: 44px; height: 44px; }
    .hero { height: clamp(440px, 82vh, 620px); }
    .hero-overlay { background: linear-gradient(0deg, rgba(var(--primary-rgb), .92) 0%, rgba(var(--primary-rgb), .6) 55%, rgba(29,22,38,.25) 100%); }
    .hero-content { justify-content: flex-end; padding-bottom: 80px; }
    .hero-nav { display: none; }
    .about-grid, .news-grid { grid-template-columns: 1fr; }
    .units-media { gap: 10px; }
    .units-media figure:nth-child(2), .units-media figure:nth-child(4) { transform: translateY(18px); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
    .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
