/* =========================================================
   PREMIUM UI ROADMAP + APPLIED PATCH (v1.0) — 2026-02-15 15:49 (Astana)
   Scope: global CSS polish without breaking SPA structure.
   ---------------------------------------------------------
   PLAN (next iterations are incremental; only append/override when possible):
   1) Foundations: unify shadows, radii, glass tokens, focus rings (DONE).
   2) Layout: container rhythm (padding, max-width, gutters), section spacing, grid clamps (PARTIAL).
   3) Header/Topbar: premium glass, stable spacing, title wrapping, controls alignment (IN PROGRESS).
   4) Cards: depth hierarchy, consistent paddings, hover lift, micro-shine tuned per surface (IN PROGRESS).
   5) Components: buttons, chips, inputs, tables (sticky), modals/sheets (DONE for modal; inputs next).
   6) Pages: hero premium lighting, anti-corruption tiles, specialties cards, news cards (PARTIAL).
   7) Performance: reduce heavy blur on low-end/mobile, prefers-reduced-motion, fallbacks (NEXT).
   8) Accessibility: focus-visible, contrast checks for muted text, tap targets (NEXT).
   ---------------------------------------------------------
   THIS FILE: v1 adds premium polish specifically for:
   - .card (glass surface + tuned shine)
   - .container and .container.topbar-layout (better rhythm)
   - .topbar-layout area (header spacing, alignment, no jumps)
   ========================================================= */

.tile h3 {
    display: flex;
    align-items: center;
}
    
.grid-3, .hubGrid  {
    display: grid;
    gap: 15px;
}

span {}

span i.fa-solid {
    font-size: 26px;
    margin-right: 11px;
    color: #6d7073;
}

.tile h3 span {
    font-size: 18px;
}
.ds-nav a.side-link  span {
    padding-left: 7px;
}


/* 1) Скролл-контейнер: он главный */
.ts-table-wrap{
  max-height: 420px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}






img.ac-thumb-img {
    display: inline-block;
    margin-top: 10px;
}

.ac-desc {
    text-align: left;
    line-height: 18px;
    padding: 0px 10px;
    height: 36px;
    overflow: hidden;
}

.ac-dur {
    text-align: left;
    padding-top: 10px;
    color: black;
    font-weight: 700;
}

h4.ac-title {
    line-height: 20px;
    margin: 0px;
}
:root{
  --shards-w: clamp(84px, 12vw, 160px);
  --shards-offset: clamp(-44px, -6vw, -16px);
  --shards-opacity: 0.8815;


/* ===== Unified shadow system (premium) ===== */
--shadow-1: 0 6px 18px rgba(12,18,28,.06);
--shadow-2: 0 10px 28px rgba(12,18,28,.10);
--shadow-3: 0 18px 55px rgba(12,18,28,.14);
--shadow-4: 0 30px 80px rgba(12,18,28,.18);
--shadow-soft: var(--shadow-1);
--shadow-medium: var(--shadow-2);
--shadow-strong: var(--shadow-3);
--shadow1: var(--shadow-2);
}

.card.card-pad.ac-hero,.card.ac-hero{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 10px;
  opacity: 1;
}


.card.ac-hero::before,
.card.ac-hero::after{
  /* content:""; */
  /* position: absolute; */
  top: 0;
  bottom: 0;
  width: 124%;
  pointer-events: none;
  opacity: var(--shards-opacity);
  z-index: -5;
  background-image: url("../img/shards/shards_strip2.png");
  background-repeat: inherit;
  background-position: center center;
  opacity: .45;
  background-size: auto 100%;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.35));
}
.card.ac-hero::before{ left: var(--shards-offset); }
.card.ac-hero::after{/* right: var(--shards-offset); *//* transform: scaleX(-1); */}

@media (max-width: 520px){
  :root{
    --shards-w: clamp(64px, 18vw, 120px);
    --shards-offset: clamp(-52px, -10vw, -20px);
  }
}

/* 2) Таблица НЕ должна иметь overflow:hidden, иначе sticky ломается */
#tsTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: visible !important;
  
}


.ac-stat-label  span {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    display: inline-block;
}
/* 3) Липкий заголовок */
#tsTable thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f9fafb;               /* обязательно, иначе просвечивает */
  box-shadow: inset 0 -1px 0 var(--border);
}

/* 4) (опционально) чтобы скругление выглядело красиво */
.ts-table-wrap table{
  border-radius: 14px;
}
.ts-table-wrap thead th:first-child{ border-top-left-radius: 14px; }
.ts-table-wrap thead th:last-child{ border-top-right-radius: 14px; }


/* Layout spacing guarantees */
#view{overflow-x:hidden;}
.section{padding:18px 0;}
.section + .section{margin-top:12px;}
.section-head{gap:12px;}
.card-pad{padding:16px;}
@media (min-width: 980px){
  .section{padding:22px 0;}
  .card-pad{padding:18px;}
}
/* KARETA / College Info Site — single global CSS (mobile-first) */
:root{
  /* Light theme (default) */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel2:#fbfcfe;
  --text:#0b0f14;
  --muted:#55657a;
  --line:rgba(12,18,28,.10);
  --brand:#ff7a18;
  --brand2: #f08718;
  --brandBlue:#2a63ff;
  --brandBlue2:#6aa6ff;
  --brandInk:#101828;
  --ok:#1e9b62;
  --warn:#c97a00;
  --bad:#d93232;
  --shadow:0 18px 55px rgba(12,18,28,.12);
  --shadow2:0 10px 28px rgba(12,18,28,.10);
  --r1:14px;
  --r2:18px;
  --r3:24px;
  --max:1180px;
  --focus:0 0 0 3px rgba(255,122,24,.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  width:100%;
  overflow-x:hidden; /* prevent global horizontal scroll */
}



body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  -webkit-user-select:none;
  user-select:none; /* disable text selection globally (UX choice) */
}

/* Allow selection/interaction where it must remain editable */
input, textarea, [contenteditable="true"], .allow-select{
  -webkit-user-select:text;
  user-select:text;
}

/* Media should never overflow the viewport */
img, svg, video, canvas, iframe{max-width:100%;}

/* Background video stack (mobile-first, performance-safe)
   - Video is optional; if it fails, layers still provide a clean light backdrop.
*/
.bg-video-stack{
  position:fixed; inset:0;
  z-index:-1;
  overflow:hidden;
  background: #ffffff;
}
/* YouTube host (iframe is mounted by JS) */
.bg-yt{position:absolute; inset:0; pointer-events:none}
.bg-yt-iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  pointer-events:none;
  /* make the 16:9 frame cover the viewport */
  transform:scale(1.2);
  filter:saturate(1.05) contrast(1.02);
}
.container.topbar-layout{
	padding-top: 15px;
	padding-bottom: 15px;
}
.bg-layer{position:absolute; inset:-2px; pointer-events:none}
/* Base gradients (match your light style) */
.bg-layer-1{
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(246,248,251,.75));
}
/* Soft white glass layer */
.bg-layer-2{background:rgba(255,255,255,.34); backdrop-filter: blur(6px)}
/* Fine grain via subtle gradient bands */
.bg-layer-3{background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08))}
/* Vignette for readability */
.bg-layer-4{background:radial-gradient(1200px 680px at 50% 35%, transparent 30%, rgba(255,255,255,.55) 75%)}
/* Extra readable band under topbar */
.bg-layer-5{background:linear-gradient(180deg, rgba(255,255,255,.85), transparent 28%)}

@media (prefers-reduced-motion: reduce){
  .bg-yt{display:none}
}

a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:16px}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  /* backdrop-filter: blur(12px); */
  /* background:rgba(255,255,255,.78); */
  /* border-bottom:1px solid var(--line); */
}
.topbar-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
}

.topbar-row{width:100%}

.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap: nowrap;
  align-content: center;
  flex: 1 1 auto;
}

.topbar-actions{display:flex; align-items:center; gap:10px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:auto;
  padding:0;
  width:auto;
  flex-direction:row;
  justify-content:flex-start;
  flex:0 1 auto;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow: none;
  display:grid;
  background: none;
  place-items:center;
}
.brand-mark svg{width:20px; height:20px; fill:#1a0f06}
.brand-title{
  display:flex; flex-direction:column; min-width:0;
}
.brand-title strong{font-size:14px; line-height:1.1; letter-spacing:.2px}
.brand-title span{font-size: 14px;color:var(--muted)}
@media (min-width:900px){
  .brand-mark{width: 70px;height: 70px;}
  .brand-title strong{font-size: 18px;}
}

.nav{
  display:flex;
  gap:6px;
  align-items:center;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  /* padding:8px 0; */
}

/* Second row (desktop only) */
.topbar-row--nav{display:none}

.nav-actions--desktop{display:none}
.nav-actions--desktop .nav-actions__text{display:inline}
.nav-actions--desktop .db-btn{white-space:nowrap}

@media (min-width:980px){
  .topbar-row--nav{display:flex; justify-content:center; align-items:center}
  .brand{justify-content:flex-start; flex:0 1 auto}
  .nav{overflow:visible}
  .nav-burger{display:none}

  .nav-tree{flex:1 1 auto; min-width:0}
  .nav-actions--desktop{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:12px;width:auto;justify-content:flex-end;}
}
.nav::-webkit-scrollbar{height:8px}
.nav::-webkit-scrollbar-thumb{background:rgba(12,18,28,.10); border-radius:99px}
.nav a{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
  background:transparent;
  white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav a.is-active{
  background:rgba(255,122,24,.12);
  border-color:rgba(255,122,24,.35);
  color:var(--text);
}
.nav a:focus{outline:none; box-shadow:var(--focus)}

/* Desktop hierarchical menu (built from assets/data/menu.v1.0.json)
   - shown on desktop, fallback pills hidden when ready */
.nav-tree{display:none; align-items:center; gap:10px; flex-wrap:wrap; min-width:0}
.nav-tree.is-ready{display:flex}
.nav-fallback.is-hide{display:none}

.nav-tree .dt-item{position:relative}
.nav-tree .dt-link,
.nav-tree .dt-group{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-tree .dt-link:hover,
.nav-tree .dt-group:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav-tree .dt-link.is-active{background:rgba(255,122,24,.12); border-color:rgba(255,122,24,.35); color:var(--text)}
.nav-tree .dt-link:focus,
.nav-tree .dt-group:focus{outline:none; box-shadow:var(--focus)}

.nav-tree .dt-popup{
  position:absolute;
  z-index: 99999999;
  top:calc(100% + 8px);
  left:0;
  min-width:280px;
  max-width:380px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.nav-tree .dt-item.is-open > .dt-popup{display:block}
.nav-tree .dt-popup a{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
}
.nav-tree .dt-popup a:hover{background:rgba(12,18,28,.05)}
.nav-tree .dt-popup .dt-sub{font-size:12px; color:var(--muted)}

.nav-burger{margin-left:auto}
.nav-burger{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color:var(--text);
}
.nav-burger:hover{background:rgba(255,255,255,.72);}
.nav-burger:focus{outline:none; box-shadow:var(--focus)}
.nav-burger .burger-ic{display:block;width: 30px;height: 30px;}
.nav-burger{
	display: none;
}
@media (max-width: 980px){
  .nav-tree{display:none !important}
  .nav-fallback, .nav-burger{
	  display: flex;
	  position: absolute;
	  right: 10px;
	  top: 16px;
	  box-shadow: none;
	  border: none;
	  background: none;
	 }
}
@media (min-width: 981px){
  .nav-fallback{display:flex}
}

.actions{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{background:rgba(12,18,28,.06); transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border-color:rgba(255,122,24,.35);
  background:linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,178,74,.10));
}
.btn-ghost{background:transparent}
.btn-sm{padding:8px 10px; border-radius:10px; font-size:13px}
.kbd{
  font-size:12px; padding:2px 7px; border-radius:8px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
}

.hero{
  padding:20px 0 6px;
}
.hero-grid{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .hero-grid{grid-template-columns: 1.3fr .7fr; gap:16px}
  .hero{padding:26px 0 8px}
}
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  border-radius:var(--r3);
  box-shadow: var(--shadow2);
}
.card-pad{padding:16px}
@media (min-width:900px){ .card-pad{padding:18px} }

.h1{
  font-size:22px; margin:0 0 8px; letter-spacing:.2px;
}
@media (min-width:900px){ .h1{font-size:28px} }
.p{
  margin:0; color:var(--muted); line-height:1.45;
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text); font-weight:600}

.grid{
  display:grid; gap:12px;
}
@media (min-width:900px){ .grid{gap:16px} }
.grid-3, .hubGrid {grid-template-columns:1fr}
@media (min-width:900px){ .grid-3, .hubGrid {grid-template-columns:repeat(3,1fr)} }

.section{padding:14px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin:0 0 12px;
}
.h2{margin:0; font-size:18px}
.sub{color:var(--muted); font-size:13px}
@media (min-width:900px){
  .h2{font-size:20px}
}

.tile{
  padding:14px;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  min-height:120px;
}
.tile h3{margin:0 0 8px; font-size:15px}
.tile p{margin:0; color:var(--muted); font-size:13px; line-height:1.4}
.tile .meta{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:12px;
}

.hr{height:1px; background:var(--line); margin:14px 0}

.view{
  /* min-height:55vh; */
}

.toast{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:70;
  display:none;
}
.toast-inner{
  max-width:var(--max);
  margin:0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius:16px;
  padding:12px 12px;
  box-shadow: var(--shadow);
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
}
.toast p{margin:0; color:var(--text); font-size:13px; line-height:1.35}
.toast .muted{color:var(--muted)}
.toast .btn{white-space:nowrap}

.modal-backdrop{
  position:fixed; inset:0; z-index:80;
  display:none;
  background:rgba(12,18,28,.45);
  backdrop-filter: blur(2px);
  padding:16px;
}
.modal{
  max-width:920px;
  margin:40px auto;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.modal-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.modal-title strong{font-size:15px}
.modal-title span{font-size:12px; color:var(--muted)}
.modal-body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.modal-body::-webkit-scrollbar{width:10px}
.modal-body::-webkit-scrollbar-thumb{background:rgba(12,18,28,.12); border-radius:99px}
.modal-foot{
  display:flex; gap:10px; justify-content:flex-end;
  padding:12px 14px;
  border-top:1px solid var(--line);
  background:rgba(12,18,28,.04);
}


/* Fullscreen modal mode */
.modal-backdrop.is-fullscreen{align-items:stretch;}
.modal-backdrop.is-fullscreen .modal{
  max-width:none;
  width:100%;
  height:100vh;
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
}
.modal-backdrop.is-fullscreen .modal-head{
  position:sticky;
  top:0;
  z-index:3;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-fullscreen .modal-body{
  height:calc(100vh - 64px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Make internal sheet truly hidden unless open (avoids "two windows") */
.cm-sheet{display:none;}
.cm-sheet.is-open{display:block;}

/* Card media stability */
.card-media{aspect-ratio: 16 / 9; overflow:hidden;}
.card-media img{width:100%; height:100%; object-fit:cover; display:block;}

/* Icon stability */
.mb-tab i, .card i, .kicker i{
  width:1.25em;
  text-align:center;
  display:inline-block;
  line-height:1;
}
.mb-tabbar .mb-tab i{font-size:18px;}
@media (min-width: 720px){
  .mb-tabbar .mb-tab i{font-size:20px;}
}

/* Home news cards */
.news-card .h3{margin-top:6px;}
.filters{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
  min-width:180px;
}
.search{
  flex:1 1 220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
}
.small{font-size:12px; color:var(--muted)}

.news-layout{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .news-layout{grid-template-columns:1.15fr .85fr; gap:16px}
}

.swiper{
  position:relative;
}
.swiper-viewport{
  overflow:hidden;
  border-radius:var(--r3);
}
.swiper-track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.swiper-slide{
  min-width:100%;
  padding:0;
}
@media (min-width:900px){
  .swiper-slide{min-width: 50%}
}
.news-card{
  height:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:var(--r3);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow2);
}
.news-card .cover{
  height:140px;
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(255,122,24,.28), transparent 55%),
    radial-gradient(500px 200px at 90% 20%, rgba(72,162,255,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.95));
  border-bottom:1px solid var(--line);
}
.news-card .body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.news-card h3{margin:0 0 8px; font-size:15px; line-height:1.2}
.news-card p{margin:0; color:var(--muted); font-size:13px; line-height:1.35}
.news-card .row{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between}
.news-card .row .meta{display:flex; gap:8px; flex-wrap:wrap}

.swiper-controls{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px;
}
.dots{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.dot{
  width:10px; height:10px; border-radius:99px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.06);
  display: contents;
}
.dot.is-active{background:rgba(255,122,24,.55); border-color:rgba(255,122,24,.5)}
.icon{
  width:16px; height:16px; display:inline-block;
  fill:currentColor;
}

.featured-list{
  display:grid; gap:10px;
}
.featured-item{
  display:flex; gap:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:18px;
  padding:12px;
  align-items:flex-start;
}
.featured-thumb{
  width:52px; height:52px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,122,24,.25), rgba(72,162,255,.12));
  border:1px solid var(--line);
  flex:0 0 auto;
  display:grid; place-items:center;
}
.featured-item h4{margin:0 0 6px; font-size:14px; line-height:1.2}
.featured-item p{margin:0; color:var(--muted); font-size:12.5px; line-height:1.35}
.featured-item .mini{
  margin-top:8px;
  color:rgba(233,238,246,.86);
  font-size:12px;
}
.footer{
  padding:20px 0 26px;
  color:var(--muted);
  font-size:12.5px;
}
.footer .row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.hidden{display:none !important}


/* Loading overlay */
.loader-backdrop{
  position:fixed; inset:0; z-index:60;
  display:none;
  background:rgba(12,18,28,.20);
  backdrop-filter: blur(4px);
}
.loader{
  max-width:420px;
  margin:18vh auto 0;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px 14px;
}
.loader-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.spinner{
  width:34px; height:34px;
  border-radius:999px;
  border:3px solid rgba(12,18,28,.12);
  border-top-color: rgba(255,122,24,.75);
  animation: spin .9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.skeleton{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(12,18,28,.05), rgba(12,18,28,.10), rgba(12,18,28,.05));
  background-size:200% 100%;
  animation: sk 1.3s ease infinite;
  margin-top:10px;
}
@keyframes sk{ 0%{background-position:0 0} 100%{background-position:-200% 0} }



/* Light-theme final overrides */
.card, .modal, .toast-inner, .loader{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98)) !important;
}
.tile, .news-card, .featured-item{
  background: rgba(255,255,255,.92) !important;
}
.chip, .badge, .kbd{
  background: rgba(12,18,28,.04) !important;
}
.select, .search{
  background: rgba(255,255,255,.92) !important;
}
.topbar{
  /* box-shadow: 0 10px 30px rgba(12,18,28,.08); */
}

/* ==============================
   UX / Responsive refinements 1.3.0
   ============================== */

:root{
  --container-pad: clamp(14px, 3vw, 24px);
  --fs-base: clamp(14px, 1.35vw, 16px);
  --fs-h1: clamp(22px, 3.6vw, 34px);
  --fs-h2: clamp(18px, 2.4vw, 22px);
  --fs-h3: clamp(16px, 2.0vw, 18px);
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.06);
}

html{ scroll-behavior: smooth; }
body{ font-size: var(--fs-base); line-height: 1.55; }

.container{padding: var(--container-pad);padding-top: 15px;}

.hero h1{ font-size: var(--fs-h1); letter-spacing: -0.02em; }
.section-title{ font-size: var(--fs-h2); }
.card h3{ font-size: var(--fs-h3); }

/* Tablet-first grids */
.grid-3, .hubGrid { grid-template-columns: 1fr; }
@media (min-width: 700px){
  .grid-3, .hubGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .grid-3, .hubGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Readability & touch targets */
.nav{gap: 8px;overflow-x: auto;-webkit-overflow-scrolling: touch;scrollbar-width: none;overflow: visible;}
.nav::-webkit-scrollbar{ display:none; }
.nav a{ padding: 10px 12px; min-height: 40px; display:inline-flex; align-items:center; border-radius: 999px; }

.topbar{/* backdrop-filter: saturate(180%) blur(10px); *//* box-shadow: 0 6px 20px rgba(0,0,0,.04); */}

.card{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card:hover{ transform: translateY(-1px); }

/* Modal: comfortable reading + scroll */
.modal-panel{ border-radius: 20px; }
.modal-body{
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 14px;
}
@media (max-width: 520px){
  .modal-panel{
    width: calc(100vw - 18px);
    border-radius: 18px;
  }
  .modal-body{ max-height: calc(100vh - 190px); }
}

/* Focus visibility (accessibility) */
:focus{ outline: none; }
:focus-visible{ outline: 3px solid rgba(242, 119, 0, .35); outline-offset: 2px; }

/* Back to top FAB */
.fab-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  color: #111;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.fab-top.is-show{ display: inline-flex; }
.fab-top:hover{ transform: translateY(-1px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ===== Mobile navigation upgrade: bottom tab bar + cleaner header ===== */
.mb-tabbar{display:none}
@media (max-width: 860px){
  /* Hide long top nav links on mobile; keep burger + logo */
  .site-header .nav{display:none}
  body{padding-bottom:72px}
  .mb-tabbar{
    display:flex;
    position:fixed; left:0; right:0; bottom:0;
    z-index:1200;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    backdrop-filter:saturate(180%) blur(14px);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    gap:6px;
  }
  .mb-tab{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    border-radius:14px;
    color:var(--muted);
    text-decoration:none;
    border:1px solid transparent;
    background:transparent;
    font-weight:700;
    font-size:11px;
    line-height:1;
    user-select:none;
  }
  .mb-tab i{font-size:16px}
  .mb-tab:active{transform:scale(.98)}
  .mb-tab.is-active{
    color:var(--ink);
    background:linear-gradient(180deg, rgba(255,122,31,.12), rgba(255,122,31,.06));
    border-color:rgba(255,122,31,.22);
  }
  .mb-tab-menu{cursor:pointer}
  .mb-tab-menu{appearance:none; border:none}
}

/* Tablet: keep header nav, but reduce density */
@media (min-width: 861px) and (max-width: 1120px){
  .nav-links{gap:10px}
  .nav-links a{padding:8px 10px}
}

/* ===== Mobile drawer (hamburger) ===== */
.mm-overlay{
  position:fixed; inset:0;
  background:rgba(17,24,39,.35);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:1300;
}
.mm-overlay.is-open{opacity:1; pointer-events:auto;}
.mm-drawer{
  position:fixed; top:0; left:0; height:100%;
  width:min(86vw, 360px);
  background:#fff;
  border-right:1px solid var(--line);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:1400;
  display:flex;
  flex-direction:column;
}
.mm-drawer.is-open{transform:translateX(0);}
.mm-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.mm-drawer-title{font-weight:900; letter-spacing:.2px}
.mm-drawer-close{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.mm-drawer-body{padding:10px 8px; overflow:auto}
.mm-list{list-style:none; padding:0; margin:0}
.mm-list li{margin:4px 0}
.mm-list a{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid transparent;
}
.mm-list a:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-list a.is-active{background:rgba(255,122,31,.12); border-color:rgba(255,122,31,.22)}
/* prevent background scroll when drawer open */
body.mm-open{overflow:hidden}

/* Drawer class mapping (project markup) */
.mm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(12px);
}

.mm-head-brand{display:flex; align-items:center; gap:12px; min-width:0}
.mm-logo{
  width:38px; height:38px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(255,178,74,.95));
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid; place-items:center;
  flex:0 0 auto;
}
.mm-logo img{width:100%; height:100%; object-fit:cover}

.mm-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.mm-title .mm-brand{font-weight:900; letter-spacing:.2px; line-height:1.1}
.mm-title .mm-sub{font-size:12px; color:var(--muted); line-height:1.2}

.mm-close{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.86);
  display:grid; place-items:center;
}
.mm-close i{font-size:16px}
.mm-body{padding:10px 8px; overflow:auto}

/* Mobile menu search (mm-search) */
.mm-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(12,18,28,.12);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12,18,28,.08);
  margin:8px 6px 10px;
}
.mm-search > span{
  width:30px; height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,122,24,.10);
  color:rgba(12,18,28,.72);
  flex:0 0 auto;
}
.mm-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.mm-search input::placeholder{color:rgba(85,101,122,.85)}
.mm-search:focus-within{
  border-color: rgba(255,122,24,.35);
  box-shadow: var(--focus), 0 10px 28px rgba(12,18,28,.10);
}

/* ===== Drawer hierarchy (menu.v1.0.json) ===== */
.mm-item.is-hide{display:none}
.mm-row{display:flex; align-items:center; gap:8px}
.mm-group-btn{
  flex:1;
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.mm-group-btn:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-group-go{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  white-space:nowrap;
}
.mm-dot{width:8px; height:8px; border-radius:999px; background:rgba(255,122,31,.9)}
.mm-caret{margin-left:auto; transition:transform .18s ease; opacity:.7}
.mm-item.is-open .mm-caret{transform:rotate(180deg)}
.mm-sublist{list-style:none; padding:6px 0 6px 14px; margin:2px 0 6px 12px; border-left:1px dashed rgba(0,0,0,.14)}
.mm-item:not(.is-open) > .mm-sublist{display:none}
.mm-sublist a{padding:10px 12px; border-radius:12px}
.mm-external{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(0,0,0,.55);
  border:1px dashed rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}
.mm-external:hover{background:rgba(255,255,255,.75)}

/* Drawer CTA for big sections (anti-corruption) */
.mm-item.mm-cta{margin:6px 0 10px}
.mm-cta-link{
  display:flex; align-items:center; gap:10px;
  padding:14px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid rgba(255,122,24,.22);
  background: linear-gradient(180deg, rgba(255,122,24,.12), rgba(255,255,255,.92));
  box-shadow: 0 14px 30px rgba(12,18,28,.12);
}
.mm-cta-link i{font-size:16px; width:18px; text-align:center; flex:0 0 18px}
.mm-cta-link span{font-weight:800; letter-spacing:.2px}
.mm-cta-badge{
  margin-left:auto;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(12,18,28,.12);
  background: rgba(255,255,255,.85);
  color:rgba(12,18,28,.72);
  font-weight:700;
}
.mm-cta-link:hover{transform:translateY(-1px)}



/* Desktop hover dropdown for hierarchical menu */
@media (min-width: 980px){
  .nav-tree .dt-item:hover > .dt-popup{display:block;}
  .nav-tree .dt-item:focus-within > .dt-popup{display:block;}
}


/* ==== Specialties page (added v1.6.3) ==== */
.spc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}

/* ==== Anti-corruption hub page ==== */
.ac-hero{background:rgba(255,255,255,.92)}
.ac-hero-grid{display:grid; grid-template-columns: 1.4fr .6fr; gap:16px; align-items:stretch}
.ac-stats{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
.ac-stat{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgb(255 255 255);
  padding:12px;
  text-align:center;
}
.ac-stat-num{font-size:22px; font-weight:900; letter-spacing:.2px}
.ac-grid{margin-top:14px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
@media (max-width: 980px){ .ac-hero-grid{grid-template-columns:1fr} .ac-grid{grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .ac-grid{grid-template-columns: 1fr; } }

.ac-durations{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}
.ac-dur-k{opacity:.8; font-weight:800; margin-right:6px}
.ac-tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.ac-card{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow1);
  overflow:hidden;
}
.ac-card-head{display:flex; align-items:center; gap:10px; padding:14px 14px 10px}
.ac-ic{width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:rgba(255,122,24,.12); color:rgba(12,18,28,.75)}
.ac-card-head h4{margin:0; font-size:15px}
.ac-card-body{padding:0 14px 14px}
.ac-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.ac-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.92);
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
}
.ac-btn:hover{background:rgba(255,122,24,.08); border-color:rgba(255,122,24,.26)}
.ac-btn i{width:16px; text-align:center}
.ac-subgrid{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px}
@media (max-width: 980px){
  .spc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .spc-grid{ grid-template-columns: 1fr; }
}
.spc-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.spc-card:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }
.spc-img{ aspect-ratio: 16/10; background: rgba(12,18,28,.03); }
.spc-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.spc-title{
  padding:12px 12px 14px;
  font-size:14px;
  line-height:1.25;
  text-align:center;
  color: var(--text);
}



/* Catalog cards (specialties/courses) */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{font-size:12px;line-height:1;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06)}
.cat-card{position:relative;display:flex;flex-direction:column;gap:10px;border-radius:18px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden;cursor:pointer;transform:translateZ(0);transition:transform .18s ease, box-shadow .18s ease}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.10)}
.cat-cover{height:140px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.85))}
.cat-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cat-body{padding:14px 14px 16px}
.cat-title{font-size:15px;font-weight:800;line-height:1.2;margin:0}
.cat-sub{margin-top:6px;color:rgba(0,0,0,.62);font-size:12.5px}
.cat-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;color:rgba(0,0,0,.65);font-size:12px}
.cat-pill{padding:6px 10px;border-radius:999px;background:rgba(255,126,0,.10);border:1px solid rgba(255,126,0,.20)}

/* Card modal blocks */
.modal-block{padding:14px;border-radius:16px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.06);margin-bottom:12px}
.modal-block h4{margin:0 0 8px;font-size:14px}
.modal-block p{margin:0;color:rgba(0,0,0,.72);line-height:1.55}
.modal-block ul{margin:0;padding-left:18px;color:rgba(0,0,0,.72)}
.gallery-snap{display:flex;gap:10px;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.gallery-snap::-webkit-scrollbar{height:8px}
.gallery-snap::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:999px}
.gallery-snap a{flex:0 0 auto;width:240px;height:150px;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.06);scroll-snap-align:start}
.gallery-snap img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width: 520px){
  .gallery-snap a{width:78vw;height:44vw}
  .cat-cover{height:120px}
}

/* Ensure desktop dropdown doesn't shift layout */
.dt-item{position:relative}
.dt-link{display:flex;align-items:center;gap:8px}
.dt-link-cta{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,122,24,.28) !important;
  background: rgba(255,122,24,.10);
  font-weight:800;
}
.dt-link-cta:hover{background: rgba(255,122,24,.14)}
.dt-item.is-open .dt-link{transform:none}


/* v1.7.1 visual polish: brand palette + cards + full-screen modal */
body{
  background:
    radial-gradient(1100px 680px at 14% -12%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(980px 620px at 92% 0%, rgba(42,99,255,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
}

.card.card-click{
  position: relative;
  overflow: hidden;
}
.card.card-click::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,122,24,.25), transparent 60%),
    radial-gradient(420px 240px at 88% 16%, rgba(42,99,255,.20), transparent 60%);
  opacity:.55;
  pointer-events:none;
  filter: blur(0.2px);
}
.card.card-click::after{
  content:"";
  position:absolute; inset:0;
  border:1px solid rgba(255,255,255,.32);
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:.65;
}

.card-compact .card-body{position:relative;z-index:1;padding: 0 10px 15px 10px;}
.card-compact .card-media{ position:relative; z-index:1; }
.card-compact .card-title{font-weight: 900;letter-spacing:.1px;overflow: hidden;line-height: 18px;text-overflow: clip;padding-bottom: 10px;}
.card-compact .card-sub{color: var(--muted);line-height: 16px;font-size: 14px;text-align: justify;}

.card-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.meta-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--brandInk);
}
.meta-chip i{ color: var(--brand); }
.meta-chip.is-blue i{ color: var(--brandBlue); }

.tag-chip{
  border: 1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(6px);
}
.tag-chip i{ color: var(--brand); }

/* Search polish */
.mm-search{
  border: 1px solid rgba(12,18,28,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(12,18,28,.08);
}
.mm-search input{
  font-weight: 700;
}
.mm-search .mm-ic{
  background: radial-gradient(220px 120px at 20% 20%, rgba(255,122,24,.22), transparent 55%),
              radial-gradient(220px 120px at 80% 30%, rgba(42,99,255,.18), transparent 55%),
              rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,28,.10);
}

/* Fullscreen modal for card details */
.modal-backdrop{
  z-index: 9999;
  padding: 0 !important;
}
.modal-backdrop .modal{
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display:flex;
  flex-direction:column;
}
.modal-backdrop .modal-head{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  backdrop-filter: blur(10px);
}
.modal-backdrop .modal-body{
  flex: 1;
  max-height: none !important;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}
.modal-backdrop .modal-foot{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.modal-hero{
  border:0;
  background: transparent;
  box-shadow:none;
}
.modal-hero-media img{
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,18,28,.18);
}
@media (max-width: 520px){
  .modal-hero-media img{ border-radius: 14px; }
}

/* ===== Filters (Courses) ===== */
.mm-filters{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.mm-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mm-chip .fa-solid{ color: var(--brand); }
.mm-chip:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(12,18,28,.14); }
.mm-chip.is-active{
  border-color: rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 42px rgba(255,122,24,.18), 0 14px 30px rgba(12,18,28,.12);
}
.mm-chip.is-active .fa-solid{ color: var(--brandBlue); }

@media (max-width: 720px){
  .mm-filters{ justify-content:flex-start; }
}

/* ===== Fullscreen modal actions ===== */
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.modal-actions .btn{ border-radius: 999px; }
.btn-icon{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Similar cards inside modal */
.similar-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.similar-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
  cursor:pointer;
  box-shadow: 0 12px 26px rgba(12,18,28,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.similar-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px rgba(12,18,28,.14); }
.similar-card .thumb{ height: 92px; background: #f3f6ff; }
.similar-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.similar-card .b{ padding: 10px 12px; }
.similar-card h4{ margin:0; font-size: 12px; line-height:1.2; }
.similar-card .small{ margin-top:6px; font-size:11px; opacity:.8; }

@media (max-width: 980px){
  .similar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .similar-grid{ grid-template-columns: 1fr; }
}


/* ===== UX polish v1.7.3 ===== */
:root{
  --brandA: var(--brandOrange, #ff7a00);
  --brandB: var(--brandBlue, #1e66ff);
}

/* prevent icon/layout jumps */
i.fa-solid, i.fa-regular, i.fa-brands{
  display:inline-block;
  width:1.15em;
  text-align:center;
  line-height:1;
  vertical-align:-0.12em;
}
.btn-icon i{ width:1.15em; }
.meta-chip i{ width:1.15em; }
.mb-tab i{ width:1.15em; }

/* Fullscreen modal: no margins, always on top */
#modalBackdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  padding:0 !important;
  align-items:stretch !important;
}
#modalBackdrop .modal{
  width:100vw;
  height:100vh;
  border-radius:0 !important;
  max-width:none !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
}
#modalBackdrop .modal-body{
  flex:1;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
body.is-scroll-locked{
  position:fixed;
  width:100%;
  overflow:hidden;
}

/* Modal content layout */
.card-modal{
  padding:14px 14px 18px;
}
.card-modal-hero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.card-modal-hero .cm-media{
  flex:0 0 108px;
  height:108px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.card-modal-hero .cm-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-modal-hero .cm-body{ min-width:0; flex:1; }
.card-modal-hero .cm-kicker{
  display:flex; flex-wrap:wrap; gap:8px;
  color:rgba(20,20,20,.7);
  font-size:12px;
  margin-bottom:6px;
}
.card-modal-hero .cm-title{
  font-size:18px;
  line-height:1.15;
  margin:0 0 6px;
}
.card-modal-hero .cm-desc{
  font-size:13px;
  line-height:1.45;
  color:rgba(20,20,20,.78);
}
.cm-metas{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.cm-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:12px 0 10px;
}
.cm-actions .btn{ border-radius:14px; }
.cm-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 700px){
  .card-modal{ padding:18px 18px 22px; }
  .card-modal-hero .cm-media{ flex-basis:132px; height:132px; border-radius:22px; }
  .card-modal-hero .cm-title{ font-size:22px; }
  .cm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .cm-grid{ grid-template-columns: 1.2fr .8fr; }
}

/* small chart bars */
.cm-bars{ display:grid; gap:8px; }
.cm-bar{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:10px 12px;
}
.cm-bar .lbl{ font-size:12px; color:rgba(20,20,20,.75); width:110px; }
.cm-bar .track{
  flex:1; height:10px; border-radius:999px;
  background:rgba(0,0,0,.08);
  overflow:hidden;
}
.cm-bar .fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--brandA), var(--brandB)); }
.cm-bar .val{ font-size:12px; color:rgba(20,20,20,.75); width:42px; text-align:right; }

/* in-modal sheets (no second modal backdrop) */
.cm-sheet{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
}
.cm-sheet.is-open{ display:block; }
.cm-sheet .sh-mask{
  position:absolute; inset:0;
  background:rgba(0,0,0,.35);
}
.cm-sheet .sh-panel{
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.cm-sheet .sh-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.cm-sheet .sh-head strong{ font-size:14px; }
.cm-sheet .sh-body{
  padding:12px 14px 18px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.cm-mini-list{ display:grid; gap:10px; }
.cm-mini-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.06);
}
.cm-mini-item .ic{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,122,0,.20), rgba(30,102,255,.14));
  flex:0 0 auto;
}
.cm-mini-item h4{ margin:0; font-size:13px; line-height:1.2; }
.cm-mini-item p{ margin:4px 0 0; font-size:12px; color:rgba(20,20,20,.72); }


/* Account modal */
.acc-shell{padding:16px;}
.acc-hero{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 12px; border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,122,24,.12), rgba(42,99,255,.10));
}
.acc-brand{display:flex; gap:12px; align-items:center;}
.acc-logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brandBlue));
  color:#fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.acc-title{font-weight:800; font-size:18px; letter-spacing:.2px;}
.acc-grid{margin-top:14px; display:grid; gap:12px; grid-template-columns:1fr;}
@media (min-width: 720px){ .acc-grid{grid-template-columns:repeat(3, 1fr);} }
.acc-note{margin-top:12px;}



/* ===== v1.8.1 UX polish ===== */
:root{
  --spcCoverH: 110px;
}

.mb-tab i, .btn i, .meta-chip i, .dt-link i{
  width: 1.15em;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.card-media{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  border-radius: var(--r3);
  background: linear-gradient(135deg, rgba(255,122,24,.10), rgba(72,162,255,.08));
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Specialties: stronger card identity */
.spc-card{
  position:relative;
  text-align:left;
  border:1px solid rgba(255,122,24,.18);
  box-shadow: var(--shadow2);
}
.spc-card .card-kicker{
  font-weight: 700;
  letter-spacing: .2px;
}
.spc-card .card-title{
  font-size: 15px;
  line-height: 1.25;
}
.spc-card .card-sub{
  margin-top: 6px;
  color: rgba(15,20,26,.78);
}
.spc-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: var(--r3);
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(600px 220px at 90% 0%, rgba(72,162,255,.10), transparent 55%);
  opacity:.55;
}

/* Courses: slightly different accent */
.crs-card{
  border:1px solid rgba(72,162,255,.18);
}

/* News KPI grid: responsive, no overflow */
.kpi-grid{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  min-width:0;
}

/* News & text wrapping safeguards */
.news-card, .news-card *{
  min-width:0;
}
.news-card h3, .news-card p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Swiper: allow horizontal scroll inside viewport only (no body overflow) */
.swiper{ max-width:100%; min-width:0; }
.swiper-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
.swiper-track{
  display:flex;
  gap: 12px;
  padding: 2px 2px 10px;
  transition:none;
  transform:none !important;
}
.swiper-slide{
  flex: 0 0 clamp(260px, 86vw, 420px);
  min-width:auto;
  scroll-snap-align:start;
}

/* Ensure no accidental horizontal page scroll */
html, body{ overflow-x:hidden; }
.section, .card, .grid{ max-width:100%; min-width:0; }


/* Desktop nav: avoid layout shift on hover */
.dt-item, .dt-link{ box-sizing:border-box; }
.dt-item .dt-link{ border:1px solid transparent; }
.dt-item:hover .dt-link, .dt-item.is-open .dt-link{ border-color: rgba(255,122,24,.22); }

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:720px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.75);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:800;font-size:22px;line-height:1.15}
.home-logo-sub{text-align:center;margin-top:10px;color:var(--muted);font-size:13px}

/* Hub pages */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
.hub-card{display:flex;align-items:stretch;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 10px 26px rgba(0,0,0,.10);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}

/* HUB: search / filters / sort */
.hub-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.hub-search{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:220px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-search i{color:var(--muted)}
.hub-search-input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-weight:700;color:inherit}
.hub-search-clear{border:0;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.hub-search-clear:hover{background:rgba(0,0,0,.06);color:inherit}

.hub-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.hub-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.60);padding:8px 10px;border-radius:999px;font-weight:800;color:inherit}
.hub-filter i{color:var(--brand-2)}
.hub-filter span{font-size:12px;line-height:1}
.hub-filter:hover{background:rgba(255,255,255,.78)}
.hub-filter.is-active{background:rgba(0,0,0,.88);border-color:rgba(0,0,0,.88);color:#fff}
.hub-filter.is-active i{color:#fff}

.hub-sort{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-sort i{color:var(--muted)}
.hub-sort-select{border:0;outline:0;background:transparent;font-weight:800}

/* HUB cover styles: always look like a cover even without image */
.hub-cover{position:relative;background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.hub-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);mix-blend-mode:overlay;pointer-events:none}
.hub-cover i{position:relative;z-index:1;font-size:20px}
.hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,127,80,.22), rgba(255,255,255,.00))}
.hub-cover.theme-2{background:linear-gradient(135deg, rgba(0,173,181,.18), rgba(255,255,255,.00))}
.hub-cover.theme-3{background:linear-gradient(135deg, rgba(99,102,241,.18), rgba(255,255,255,.00))}
.hub-cover.theme-4{background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(255,255,255,.00))}
.hub-cover.theme-5{background:linear-gradient(135deg, rgba(245,158,11,.18), rgba(255,255,255,.00))}
.hub-cover.theme-6{background:linear-gradient(135deg, rgba(236,72,153,.16), rgba(255,255,255,.00))}

/* HUB empty state */
.hub-empty{padding:16px;border-radius:18px;background:rgba(255,255,255,.78);border:1px dashed rgba(0,0,0,.12);text-align:center}
.hub-empty .h3{margin:0 0 6px}
.hub-empty .muted{margin:0}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:950;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted)}

/* Hub */
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:880px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08);transition:transform .12s ease, box-shadow .12s ease;text-decoration:none;color:inherit}
.hub-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:900;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Feedback floating button */
.feedback-fab{position:fixed;right:16px;bottom:88px;z-index:2200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(90deg,var(--brand-2),var(--brand-3));color:#111;border:0;box-shadow:0 16px 36px rgba(0,0,0,.18);font-weight:900}
.feedback-fab i{font-size:16px}
@media (min-width:980px){.feedback-fab{bottom:18px}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:20px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:6px;color:var(--muted)}

/* Hub cards */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 12px 34px rgba(0,0,0,.10);border:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Fixed feedback button */
.feedback-fab{position:fixed;right:16px;bottom:92px;z-index:1200;display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.86);box-shadow:0 14px 40px rgba(0,0,0,.16);backdrop-filter:blur(10px);cursor:pointer}
.feedback-fab i{color:var(--brand-2)}
@media (min-width:960px){.feedback-fab{bottom:18px;}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;color:var(--muted);margin-top:8px}

/* Feedback FAB */
.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:9999}
@media (min-width: 980px){.feedback-fab{bottom:20px}}
.feedback-fab .fab-btn{display:inline-flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.88);backdrop-filter:blur(10px);box-shadow:0 14px 32px rgba(0,0,0,.16);font-weight:800}
.feedback-fab .fab-btn i{color:var(--brand-2)}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted);font-size:14px}

/* Floating feedback */
.feedback-fab{position:fixed;right:16px;bottom:90px;z-index:1200;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.9);box-shadow:0 12px 28px rgba(0,0,0,.18);backdrop-filter:blur(8px);display:flex;align-items:center;gap:10px;font-weight:800}
.feedback-fab i{color:var(--brand-2)}
@media (min-width: 900px){.feedback-fab{bottom:24px}}

.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:1200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brand-2),var(--brand-1));color:#fff;text-decoration:none;box-shadow:0 18px 40px rgba(0,0,0,.22)}
.feedback-fab i{font-size:16px}
.feedback-fab span{font-weight:800;font-size:13px;white-space:nowrap}
@media (min-width: 980px){.feedback-fab{bottom:20px}}




#topNavMount {
    margin: 15px;
    text-align: center;
    z-index: 40;
    display: flex;
    width: 100%;
    backdrop-filter: blur(12px);
    justify-content: center;
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-desc{font-size:13px}
}


/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}


/* Drawer HUB link (no expansion; deep navigation happens on hub pages) */
.mm-link-hub{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
}
.mm-link-hub:hover{ background: rgba(255,255,255,.55); }
.mm-link-hub .mm-ico{ opacity:.9; }
.mm-link-hub .mm-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mm-link-hub .mm-title{ font-weight:800; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-meta{ font-size:12px; opacity:.72; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-go-ico{ margin-left:auto; opacity:.65; }

/* HUB: cover themes and stable sizing (обложки) */
.hub-card .hub-cover{height:140px;border-radius:16px;margin:12px;overflow:hidden;display:grid;place-items:center}
@media (max-width: 920px){.hub-card .hub-cover{height:124px;margin:10px}}
@media (max-width: 520px){.hub-card .hub-cover{height:118px;margin:10px}}
.hub-card .hub-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.02)}
.hub-card .hub-cover i{font-size:42px;color:rgba(255,255,255,.92);text-shadow:0 18px 32px rgba(0,0,0,.35)}
.hub-card .hub-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);}
.hub-card .hub-cover i, .hub-card .hub-cover img{position:relative;z-index:1}

.hub-card .hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,114,76,.95), rgba(255,197,116,.92));}
.hub-card .hub-cover.theme-2{background:linear-gradient(135deg, rgba(20,35,60,.95), rgba(255,114,76,.85));}
.hub-card .hub-cover.theme-3{background:linear-gradient(135deg, rgba(46,125,50,.92), rgba(0,188,212,.82));}
.hub-card .hub-cover.theme-4{background:linear-gradient(135deg, rgba(103,58,183,.92), rgba(244,67,54,.82));}
.hub-card .hub-cover.theme-5{background:linear-gradient(135deg, rgba(0,121,107,.92), rgba(255,235,59,.82));}
.hub-card .hub-cover.theme-6{background:linear-gradient(135deg, rgba(1,87,155,.92), rgba(255,152,0,.82));}

/* HUB: filters look */
.hub-filters{display:flex;flex-wrap:wrap;gap:8px}
.hub-filter{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.74);box-shadow:0 10px 22px rgba(0,0,0,.08);font-weight:800}
.hub-filter i{opacity:.9}
.hub-filter.is-active{background:rgba(255,114,76,.14);border-color:rgba(255,114,76,.28)}
.hub-sort{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08)}
.hub-sort-select{border:0;background:transparent;font-weight:900;outline:0}


#topNav{justify-content:center}


/* === Topbar layout fixes (desktop) === */
.topbar-layout{
  display:flex;
  align-items:center;
  gap:14px;
}
.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.topbar-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.topbar-brand img{
  display:block;
}
.topbar-account{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
}
.topbar-row--nav{
  display:flex;
  justify-content:center;
}
#topNavFallback{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
#desktopMenuTree{
  width:100%;
  display:flex;
  justify-content:center;
}
#desktopMenuTree .menu-root{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Make desktop nav truly centered in viewport (if both left/right blocks differ) */
@media (min-width: 1024px){
  .topbar-layout{ position:relative; }
  .topbar-row--nav{
    width:100%;
    position:relative;
  }
  /* If fallback is visible, center it; if tree is visible, center tree */
  #topNavFallback, #desktopMenuTree{
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 25px;
    margin-top: 10px;
  }
}


/* DocsBinder v1.0 */
.docs-block{ margin-top:16px; }
.docs-block__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.docs-block__title{ margin:0; font-size:18px; }
.docs-block__tools .input{ min-width:240px; }

.doc-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:10px; }
.doc-card__left{ display:flex; align-items:center; gap:12px; min-width:0; }
.doc-ic{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:rgba(0,0,0,.04); flex:0 0 auto; }
.doc-meta{ min-width:0; }
.doc-title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-card__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.pdf-modal{ position:fixed; inset:0; z-index:9999; display:none; }
.pdf-modal.is-open{ display:block; }
.pdf-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.pdf-modal__panel{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1100px, 94vw); height:min(80vh, 780px); background:var(--card); border-radius:16px; border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; }
.pdf-modal__head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pdf-modal__title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:50vw; }
.pdf-modal__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pdf-modal__body{ flex:1 1 auto; }
.pdf-modal__body iframe{ width:100%; height:100%; border:0; background:#fff; }
body.modal-open{ overflow:hidden; }

@media (max-width: 720px){
  .doc-title,.doc-sub{ max-width:70vw; }
  .pdf-modal__panel{ height:min(86vh, 900px); }
  .pdf-modal__title{ max-width:44vw; }
}


/* Home (JSON-driven) */
.home-hero{padding:28px 0}
.home-hero__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-hero__badge{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-hero__badge .dot{width:8px;height:8px;border-radius:50%;background:var(--brand-2)}
.home-hero__title{margin:14px 0 0;font-size:34px;line-height:1.08;font-weight:900;letter-spacing:-.02em}
@media (min-width:900px){.home-hero__title{font-size:44px}}
.home-hero__sub{margin:10px 0 0;color:var(--muted);max-width:64ch}
.home-hero__actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgb(0 94 168);color:rgba(255,255,255,.92);text-decoration:none}
.btn:hover{border-color:rgba(255,122,24,.35);background:rgba(255,122,24,.08)}
.btn-sm{padding:8px 12px;border-radius:12px;font-size:13px}
.btn-primary{border-color: rgb(240 137 28);background: white;color: rgb(240 135 24);}
.btn-ghost{background: rgb(0 0 0 / 64%);margin-top: 15px;margin-bottom: 10px;}

.home-import{padding:18px 0}
.home-import__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-import__head{padding:16px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-import__k{font-weight:900;font-size:18px}
.home-import__p{margin-top:8px;color:var(--muted);max-width:90ch}
.home-import__meta{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,122,24,.14);border:1px solid rgba(255,122,24,.25);font-size:12px}
.home-muted{color:var(--muted);font-size:12px}
.home-import__actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

.home-import__grid{margin-top:12px;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
@media (min-width:860px){.home-import__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.home-card{display:flex;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.home-card__ic{width:38px;height:38px;border-radius:14px;border:1px solid rgba(255,122,24,.25);background:rgba(255,122,24,.10);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.home-card__t{font-weight:800}
.home-card__d{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.35}


/* ===== Home v1.3 sections (events/tabs/education/projects/partners/next) ===== */
.home-section{margin-top:28px}
.home-section__head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 14px}
.home-lead{color:var(--muted);max-width:920px;margin:0 0 16px;line-height:1.55}

.home-events__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
@media (max-width: 960px){.home-events__grid{grid-template-columns:1fr}}
.home-slider{position:relative}
.home-slider__track{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.home-slider__track::-webkit-scrollbar{height:8px}
.home-slider__track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.home-slider__track>*{scroll-snap-align:start;flex:0 0 min(520px, 92%)}
.home-slider__nav{position:absolute;right:6px;top:-42px;display:flex;gap:8px}
@media (max-width: 560px){.home-slider__nav{position:static;margin-top:10px}}

.home-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;backdrop-filter: blur(8px)}
.home-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.home-card__title{font-weight:800;letter-spacing:-.01em}
.home-card__meta{color:var(--muted);font-size:13px;margin-top:6px}
.home-card__text{margin-top:10px;color:rgba(255,255,255,.9);line-height:1.5}
.home-card__actions{margin-top:14px;display:flex;gap:10px}

.theme-red{background:linear-gradient(135deg, rgba(193,18,31,.35), rgba(255,255,255,.04));border-color:rgba(193,18,31,.35)}
.theme-blue{background:linear-gradient(135deg, rgba(30,58,138,.35), rgba(255,255,255,.04));border-color:rgba(30,58,138,.35)}
.theme-dark{background:linear-gradient(135deg, rgba(0,0,0,.55), rgba(255,255,255,.03));border-color:rgba(255,255,255,.10)}
.theme-light{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}

.tabs-ui{background:rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px}
.tabs-ui__bar{display:flex;gap:8px;flex-wrap:wrap;padding:4px}
.tabs-ui__tab{appearance:none;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.tabs-ui__tab.is-active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.tabs-ui__panes{padding:10px 4px 4px}
.tabs-ui__pane{display:none}
.tabs-ui__pane.is-active{display:block}

.home-cardlist{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 760px){.home-cardlist{grid-template-columns:1fr}}

.home-news-card{display:grid;grid-template-columns:160px 1fr;gap:12px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
@media (max-width: 560px){.home-news-card{grid-template-columns:1fr}}
.home-news-card__media{background:rgba(0,0,0,.25);min-height:110px}
.home-news-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-news-card__body{padding:12px}
.home-news-card__date{font-size:12px;color:var(--muted);margin-bottom:6px}
.home-news-card__title{font-weight:800;line-height:1.2}
.home-news-card__text{margin-top:6px;color:rgba(255,255,255,.88);line-height:1.45}
.home-more{margin-top:14px}

.edu-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 1020px){.edu-grid{grid-template-columns:repeat(2, 1fr)}}
@media (max-width: 640px){.edu-grid{grid-template-columns:1fr}}
.edu-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);min-height:220px}
.edu-card.is-2{grid-column:span 2}
@media (max-width: 640px){.edu-card.is-2{grid-column:span 1}}
.edu-card__bg{position:absolute;inset:0;opacity:.35}
.edu-card__bg img{width:100%;height:100%;object-fit:cover}
.edu-card__inner{position:relative;padding:16px}
.edu-card__title{font-weight:900;font-size:18px;letter-spacing:-.01em}
.edu-card__text{margin-top:8px;color:rgba(255,255,255,.9);line-height:1.5}
.edu-facts{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.edu-fact{background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px}
.edu-fact__v{font-weight:900;font-size:18px}
.edu-fact__l{font-size:12px;color:var(--muted);margin-top:2px}
.edu-card__actions{margin-top:12px}

.home-card--project{padding:0;overflow:hidden}
.home-card--project .home-card__media{height:170px;background:rgba(0,0,0,.25)}
.home-card--project .home-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-card--project .home-card__top{padding:14px 14px 0}
.home-card--project .home-card__text{padding:0 14px 14px}

.partners-logos{display:grid;grid-template-columns:repeat(6, 1fr);gap:12px}
@media (max-width: 1020px){.partners-logos{grid-template-columns:repeat(4, 1fr)}}
@media (max-width: 640px){.partners-logos{grid-template-columns:repeat(2, 1fr)}}
.partner-logo{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;min-height:74px;text-decoration:none;color:inherit;overflow:hidden}
.partner-logo img{max-width:86%;max-height:46px;object-fit:contain;display:block;filter:grayscale(1) contrast(1.05);opacity:.9}
.partner-logo:hover{border-color:rgba(255,255,255,.18);transform:translateY(-1px)}

.next-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 960px){.next-grid{grid-template-columns:1fr}}
.next-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);min-height:160px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04)}
.next-card__bg{position:absolute;inset:0;opacity:.35}
.next-card__bg img{width:100%;height:100%;object-fit:cover}
.next-card__title{position:relative;padding:16px;font-weight:900;font-size:20px;letter-spacing:-.01em}



/* ===== Home (Moscow Polytech inspired blocks) ===== */
.home-block{margin-top:24px}
.home-block__heading{margin:16px 0}
.offset-after-hero{margin-top:16px}
.events__container{width:100%}
.events__row{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}
@media (max-width: 900px){.events__row{grid-template-columns:1fr}}
.events__slider{position:relative;border-radius:20px;overflow:hidden}
.nav-arrows{display:flex;gap:10px;position:absolute;right:12px;bottom:12px;z-index:2}
.nav-arrows__button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px);cursor:pointer}
.nav-arrows__button:hover{transform:translateY(-1px)}
.nav-arrows.is-red .nav-arrows__button{border-color:rgba(193,18,31,.25)}
.card-event{position:relative;border-radius:20px;overflow:hidden;min-height:240px;color:#fff;background:#0A2647}
.card-event.is-red{background:#C1121F}
.card-event.is-white{background:#fff;color:#111}
.card-event .video,.card-event__bg-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.card-event__inner{position:relative;z-index:1;padding:18px}
.card-event__date{opacity:.9;margin-bottom:10px}
.card-event__heading{margin:0 0 10px 0}
.card-event__description{max-width:56ch;opacity:.95}
.card-event__link{position:absolute;inset:0;z-index:2}
.button-group{display:flex;gap:10px;margin-top:14px}
.btn.text-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.card-event.is-white .btn.text-button{border-color:rgba(0,0,0,.15);background:rgba(0,0,0,.04)}
.bloat{display:none}

/* Tabs */
.tabs{display:flex;gap:16px;flex-wrap:wrap}
.tabs .h1{cursor:pointer;opacity:.6}
.tabs .h1.active{opacity:1}
.tabs__pane{display:none}
.tabs__pane.active{display:block}
.card-news-small-list{display:grid;gap:14px}
.card-news-small-list.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){.card-news-small-list.cols-2{grid-template-columns:1fr}}
.card-news-small{position:relative;border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px;min-height:120px}
.card-news-small__link{position:absolute;inset:0}
.card-news-small__meta{opacity:.7;margin-bottom:8px}
.card-news-small__title{margin:0 0 8px 0}
.card-news-small__text{opacity:.9}

/* Generic cards */
.card-generic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 900px){.card-generic-grid{grid-template-columns:1fr}}
.card-generic{border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px}

/* Education */
.card-education-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-education-group{grid-template-columns:1fr}}
.card-education{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff}
.card-education.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-education .video,.card-education .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.card-education__inner{position:relative;z-index:1;padding:16px}
.card-education__head{display:flex;align-items:flex-start;gap:10px}
.card-education__toggle{width:38px;height:38px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.85);cursor:pointer}
.card-education.is-red .card-education__toggle{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12)}
.card-education__title{margin:0}
.card-education__roll{margin-top:12px}
.card-education__numerical-item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.numerical-item__number{font-weight:700}

/* Partners */
.section-partners{border-radius:22px;padding:22px}
.bg-white{background:#fff}
.section-partners__heading{margin:0 0 10px 0}
.section-partners__button{margin-bottom:10px}
.slider-logos-wrap{position:relative}
.slider-logos .swiper-wrapper{display:flex;transition:transform 350ms ease}
.slider-logos .swiper-slide{flex:0 0 25%;padding:8px}
@media(max-width:900px){.slider-logos .swiper-slide{flex:0 0 50%}}
.partner-logo{display:flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:84px;padding:12px;text-decoration:none;color:inherit}
.partner-logo.is-highlight{border-color:rgba(193,18,31,.35)}
.partner-logo img{max-width:100%;max-height:48px;object-fit:contain}

/* Next step */
.card-panel-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-panel-group{grid-template-columns:1fr}}
.card-panel{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:180px}
.card-panel.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-panel .video,.card-panel .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22}
.card-panel__inner{position:relative;z-index:1;padding:18px;display:flex;align-items:flex-end;min-height:180px}
.card-panel__title{margin:0}
.card-panel__link{position:absolute;inset:0}


/* === Home: Map / Feedback / Director / News Columns (v1.5.2-p2) === */
.home-map{display:grid;gap:14px;grid-template-columns:1.5fr .9fr;align-items:stretch}
.home-map__frame{min-height:340px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
.home-map__placeholder{height:100%;min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px}
.home-map__aside{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__row{margin-bottom:12px}
.home-map__row .k{font-size:12px;opacity:.75;margin-bottom:4px}
.home-map__row .v{font-size:14px}
@media (max-width: 900px){.home-map{grid-template-columns:1fr}}

.home-feedback{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-feedback .grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.home-feedback .field{display:flex;flex-direction:column;gap:6px}
.home-feedback .field--full{grid-column:1/-1}
.home-feedback .label{font-size:12px;opacity:.8}
.home-feedback input,.home-feedback select,.home-feedback textarea{border-radius:12px}
.home-feedback__foot{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
.home-feedback__status{margin-top:10px;opacity:.85}
@media (max-width: 700px){.home-feedback .grid{grid-template-columns:1fr}}

.home-director{display:grid;gap:16px;grid-template-columns:160px 1fr;align-items:center;border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-director__media img{width:160px;height:160px;object-fit:cover;border-radius:18px;display:block}
.home-director__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
@media (max-width: 700px){.home-director{grid-template-columns:1fr}.home-director__media img{width:100%;height:220px}}

.home-news-columns{display:grid;gap:14px;grid-template-columns:repeat(3,1fr)}
.home-news-col__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.home-news-col__body{display:grid;gap:10px}
@media (max-width: 1000px){.home-news-columns{grid-template-columns:1fr}}



/* ===== Desktop Left Sidebar (product navigation) ===== */
.layout-shell{ display:block; }
.desktop-sidebar{ display:none; }

@media (min-width: 1024px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
  }

  /* Fix container width behavior */
  .layout-shell > main.container{
    flex: 1 1 auto;
    min-width: 0;
  }

  .desktop-sidebar{
    display:block;
    position: sticky;
    top: 47px;
    width: 320px;
    flex: 0 0 320px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    margin: 30px 0px 0px 30px;
  }

  .desktop-sidebar .ds-head{
    background:#ffffff;
    border-radius: 20px;
    padding: 14px 14px 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 10px;
  }
  .desktop-sidebar .ds-title{
    font-weight: 800;
    font-size: 14px;
    color: #121826;
    letter-spacing: .2px;
  }
  .desktop-sidebar .ds-sub{
    margin-top: 2px;
    font-size: 12px;
    color: rgba(18,24,38,.60);
  }

  .desktop-sidebar .ds-nav{
    background:#ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    padding: 10px;
    overflow:auto;
    max-height: calc(100vh - 32px - 84px);
  }

  .ds-nav .side-sec{ padding: 6px 6px 10px; }
  .ds-nav .side-sec + .side-sec{ border-top: 1px solid rgba(0,0,0,.06); }

  .ds-nav .side-sec-h{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px 6px;
    font-weight: 800;
    font-size: 12px;
    color:#121826;
    text-transform: none;
  }
  .ds-nav .side-sec-h i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }

  .ds-nav .side-sec-b{
    display:flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 10px;
  }

  .ds-nav a.side-link{
    display:flex;
    align-items:center;
    gap: 10px;
    border: 2px #327db8 solid;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration:none;
    border: 2px #327db8 solid;
    color:#121826;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.02);
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
    font-weight: 600;
  }
  .ds-nav a.side-link i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }
  .ds-nav a.side-link:hover{
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.10);
    transform: translateY(-1px);
  }
  .ds-nav a.side-link.is-active{
    background: rgba(17, 24, 39, .06);
    border-color: rgba(17, 24, 39, .16);
  }
  .ds-nav a.side-link.is-active span{
    font-weight: 800;
  }
}


/* KARETA PATCH v1.5.9: hide desktop sidebar header (ds-head) */
.desktop-sidebar .ds-head{display:none !important;}



/* ===== Visual distinction: compact blocks containing documents/external resources ===== */
.db-block.db-block-compact.db-block--links{
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.db-block.db-block-compact.db-block--links .db-sub{
  opacity: .95;
  color: #474747;
  font-weight: 700;
}
.db-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  text-decoration: none;
}
.db-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.db-link--external::after{ content: "↗"; font-size: 12px; opacity: .85; }
.db-link--pdf::before{ content: "PDF"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--doc::before{ content: "DOC"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--xls::before{ content: "XLS"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.filters .chip.is-active{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}



/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.10);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.10);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
a.tile:before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 145, 0, .26), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.tile {
    position: relative;
    overflow: hidden;
}


nav#desktopSidebarMenu {}

a.side-link:before {
    content: "";
    position: absolute;
    inset: 0px -112px 0 -12px;
    width: 138px;
    height: 190px;
    background: radial-gradient(circle at 30% 30%, rgb(26 110 177 / 17%), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.side-link {
    position: relative;
    overflow: hidden;
}






/* Layout spacing guarantees */
#view{overflow: hidden;}
.section{padding:18px 0;}
.section + .section{margin-top:12px;}
.section-head{gap:12px;}
.card-pad{padding:16px;}
@media (min-width: 980px){
  .section{padding:22px 0;}
  .card-pad{padding:18px;}
}
/* KARETA / College Info Site — single global CSS (mobile-first) */
:root{
  /* Light theme (default) */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel2:#fbfcfe;
  --text:#0b0f14;
  --muted: #005ea8;
  --line:rgba(12,18,28,.10);
  --brand:#ff7a18;
  --brand2: #f08718;
  --brandBlue:#2a63ff;
  --brandBlue2:#6aa6ff;
  --brandInk:#101828;
  --ok:#1e9b62;
  --warn:#c97a00;
  --bad:#d93232;
  --shadow:0 18px 55px rgba(12,18,28,.12);
  --shadow2:0 10px 28px rgba(12,18,28,.10);
  --r1: 10px;
  --r2: 14px;
  --r3: 18px;
  --max:1180px;
  --focus:0 0 0 3px rgba(255,122,24,.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  width:100%;
  overflow-x:hidden; /* prevent global horizontal scroll */
}



body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:transparent;
  -webkit-user-select:none;
  user-select:none; /* disable text selection globally (UX choice) */
}

/* Allow selection/interaction where it must remain editable */
input, textarea, [contenteditable="true"], .allow-select{
  -webkit-user-select:text;
  user-select:text;
}

/* Media should never overflow the viewport */
img, svg, video, canvas, iframe{max-width:100%;}

/* Background video stack (mobile-first, performance-safe)
   - Video is optional; if it fails, layers still provide a clean light backdrop.
*/
.bg-video-stack{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  background: #797979;
  opacity: 1;
  z-index: 0;
  background-image: url(../img/shards/shards_strip2.png);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100%;
}
/* YouTube host (iframe is mounted by JS) */
.bg-yt{position:absolute; inset:0; pointer-events:none}
.bg-yt-iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  pointer-events:none;
  /* make the 16:9 frame cover the viewport */
  transform:scale(1.2);
  filter:saturate(1.05) contrast(1.02);
}
.container.topbar-layout{
	padding-top: 15px;
	padding-bottom: 15px;
	/* margin: 20px; */
	z-index: 40;
	backdrop-filter: blur(12px);
	border-radius: var(--radius-lg);
	box-shadow: -1px -1px 9px 3px rgb(0 0 0 / 6%);
	background: rgb(255 255 255);
	border-bottom: 1px solid var(--line);
	max-width: 1500px;
}
.bg-layer{position:absolute; inset:-2px; pointer-events:none}
/* Base gradients (match your light style) */
.bg-layer-1{
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(246,248,251,.75));
}
/* Soft white glass layer */
.bg-layer-2{background:rgba(255,255,255,.34); backdrop-filter: blur(6px)}
/* Fine grain via subtle gradient bands */
.bg-layer-3{background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08))}
/* Vignette for readability */
.bg-layer-4{background:radial-gradient(1200px 680px at 50% 35%, transparent 30%, rgba(255,255,255,.55) 75%)}
/* Extra readable band under topbar */
.bg-layer-5{background:linear-gradient(180deg, rgba(255,255,255,.85), transparent 28%)}

@media (prefers-reduced-motion: reduce){
  .bg-yt{display:none}
}

a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:16px}

.topbar{
  position:sticky;
  top: 0px;
  /* border-radius: 52px; */
  margin: 20px;
  z-index: 90;
  /* backdrop-filter: blur(12px); */
  /* border-radius: var(--radius-lg); */
  /* box-shadow: var(--shadow-soft); */
  /* background:rgba(255,255,255,.78); */
  /* border-bottom:1px solid var(--line); */
}
.topbar-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
}

.topbar-row{width:100%}

.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap: nowrap;
  align-content: center;
  flex: 1 1 auto;
}

.topbar-actions{display:flex; align-items:center; gap:10px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:auto;
  padding:0;
  width:auto;
  flex-direction:row;
  justify-content:flex-start;
  flex:0 1 auto;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow: none;
  display:grid;
  background: none;
  place-items:center;
}
.brand-mark svg{width:20px; height:20px; fill:#1a0f06}
.brand-title{
  display:flex; flex-direction:column; min-width:0;
}
.brand-title strong{font-size:14px; line-height:1.1; letter-spacing:.2px}
.brand-title span{font-size: 14px;color:var(--muted)}
@media (min-width:900px){
  .brand-mark{width: 70px;height: 70px;}
  .brand-title strong{font-size: 18px;}
}

.nav{
  display:flex;
  gap:6px;
  align-items:center;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  /* padding:8px 0; */
}

/* Second row (desktop only) */
.topbar-row--nav{display:none}

.nav-actions--desktop{display:none}
.nav-actions--desktop .nav-actions__text{display:inline}
.nav-actions--desktop .db-btn{white-space:nowrap}

@media (min-width:980px){
  .topbar-row--nav{display:flex; justify-content:center; align-items:center}
  .brand{justify-content:flex-start; flex:0 1 auto}
  .nav{overflow:visible}
  .nav-burger{display:none}

  .nav-tree{flex:1 1 auto; min-width:0}
  .nav-actions--desktop{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:12px;width:auto;justify-content:flex-end;}
}
.nav::-webkit-scrollbar{height:8px}
.nav::-webkit-scrollbar-thumb{background:rgba(12,18,28,.10); border-radius:99px}
.nav a{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
  background:transparent;
  white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav a.is-active{
  background:rgba(255,122,24,.12);
  border-color:rgba(255,122,24,.35);
  color:var(--text);
}
.nav a:focus{outline:none; box-shadow:var(--focus)}

/* Desktop hierarchical menu (built from assets/data/menu.v1.0.json)
   - shown on desktop, fallback pills hidden when ready */
.nav-tree{display:none; align-items:center; gap:10px; flex-wrap:wrap; min-width:0}
.nav-tree.is-ready{display:flex}
.nav-fallback.is-hide{display:none}

.nav-tree .dt-item{padding: 0px;max-width: 100%;overflow: hidden;position:relative;backdrop-filter: blur(12px);border-radius: var(--radius-lg);box-shadow: var(--shadow-soft);background: rgb(255 255 255);border-bottom: 1px solid var(--line);justify-content: center;align-items: center;padding: 5px 10px;box-shadow: -1px -1px 9px 3px rgb(0 0 0 / 11%);background: rgb(255 255 255);border-bottom: 1px solid var(--line);}
.nav-tree .dt-link,
.nav-tree .dt-group{
  display:inline-flex;
  align-items:center;
  gap: 0;
  font-weight: 600;
  padding: 10px 7px;
  border-radius: 9px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-tree .dt-link:hover,
.nav-tree .dt-group:hover{background:rgba(12,18,28,.05); color:var(--text)}
.nav-tree .dt-link.is-active{background: rgb(253 253 253);/* border-color: rgb(0 94 168); */color: #005ea8;/* color: #505359; */font-weight: 800;}
.nav-tree .dt-link:focus,
.nav-tree .dt-group:focus{outline:none; box-shadow:var(--focus)}

.nav-tree .dt-popup{
  position:absolute;
  z-index: 99999999;
  top:calc(100% + 8px);
  left:0;
  min-width:280px;
  max-width:380px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.nav-tree .dt-item.is-open > .dt-popup{display:block}
.nav-tree .dt-popup a{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
}
.nav-tree .dt-popup a:hover{background:rgba(12,18,28,.05)}
.nav-tree .dt-popup .dt-sub{font-size:12px; color:var(--muted)}

.nav-burger{margin-left:auto}
.nav-burger{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color:var(--text);
}
.nav-burger:hover{background:rgba(255,255,255,.72);}
.nav-burger:focus{outline:none; box-shadow:var(--focus)}
.nav-burger .burger-ic{display:block}
.nav-burger{
	display: none;
}
@media (max-width: 980px){
	
	.topbar-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    margin-right: 60px;
}
	  .tb-group.topbar-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    margin-right: 60px;
}[aria-label="Accessibility"]{display:none !important}

	
	.layout-shell-center-migrace {
    display: flex;
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: center;
}
  .nav-tree{display:none !important}
  .nav-fallback, .nav-burger{
	  display: flex;
	  position: absolute;
	  right: 10px;
	  top: 25px;
	  box-shadow: none;
	  border: none;
	  background: none;
	 }
}
@media (min-width: 981px){
  .nav-fallback{display:flex}
}

.actions{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{background:rgba(12,18,28,.06); transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border-color:rgba(255,122,24,.35);
  background:linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,178,74,.10));
}
.btn-ghost{background:transparent}
.btn-sm{padding:8px 10px; border-radius:10px; font-size:13px}
.kbd{
  font-size:12px; padding:2px 7px; border-radius:8px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color:var(--muted);
}

.hero{
  padding:20px 0 6px;
}
.hero-grid{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .hero-grid{grid-template-columns: 1.3fr .7fr; gap:16px}
  .hero{padding:26px 0 8px}
}
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  border-radius:var(--r3);
  box-shadow: var(--shadow2);
}
.card-pad{padding:16px}
@media (min-width:900px){ .card-pad{padding:18px} }

.h1{
  font-size:22px; margin:0 0 8px; letter-spacing:.2px;
}
@media (min-width:900px){ .h1{font-size:28px} }
.p{
  margin:0; color:var(--muted); line-height:1.45;
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(12,18,28,.04);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text); font-weight:600}

.grid{
  display:grid; gap:12px;
}
@media (min-width:900px){ .grid{gap:16px} }
.grid-3, .hubGrid {grid-template-columns:1fr}
@media (min-width:900px){ .grid-3, .hubGrid {grid-template-columns:repeat(3,1fr)} }

.section{padding:14px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin:0 0 12px;
}
.h2{margin:0; font-size:18px}
.sub{color:var(--muted); font-size:13px}
@media (min-width:900px){
  .h2{font-size:20px}
}

.tile{
  padding:14px;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  min-height:120px;
}
.tile h3{margin:0 0 8px; font-size:15px}
.tile p{margin:0; color:var(--muted); font-size:13px; line-height:1.4}
.tile .meta{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.04);
  color: #484b4d;
  font-size:12px;
}

.hr{height:1px; background:var(--line); margin:14px 0}

.view{
  /* min-height:55vh; */
}

.toast{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:70;
  display:none;
}
.toast-inner{
  max-width:var(--max);
  margin:0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius:16px;
  padding:12px 12px;
  box-shadow: var(--shadow);
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
}
.toast p{margin:0; color:var(--text); font-size:13px; line-height:1.35}
.toast .muted{color:var(--muted)}
.toast .btn{white-space:nowrap}

.modal-backdrop{
  position:fixed; inset:0; z-index:80;
  display:none;
  background:rgba(12,18,28,.45);
  backdrop-filter: blur(2px);
  padding:16px;
}
.modal{
  max-width:920px;
  margin:40px auto;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.modal-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.modal-title strong{font-size:15px}
.modal-title span{font-size:12px; color:var(--muted)}
.modal-body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.modal-body::-webkit-scrollbar{width:10px}
.modal-body::-webkit-scrollbar-thumb{background:rgba(12,18,28,.12); border-radius:99px}
.modal-foot{
  display:flex; gap:10px; justify-content:flex-end;
  padding:12px 14px;
  border-top:1px solid var(--line);
  background:rgba(12,18,28,.04);
}


/* Fullscreen modal mode */
.modal-backdrop.is-fullscreen{align-items:stretch;}
.modal-backdrop.is-fullscreen .modal{
  max-width:none;
  width:100%;
  height:100vh;
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
}
.modal-backdrop.is-fullscreen .modal-head{
  position:sticky;
  top:0;
  z-index:3;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-fullscreen .modal-body{
  height:calc(100vh - 64px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Make internal sheet truly hidden unless open (avoids "two windows") */
.cm-sheet{display:none;}
.cm-sheet.is-open{display:block;}

/* Card media stability */
.card-media{aspect-ratio: 16 / 9; overflow:hidden;}
.card-media img{width:100%; height:100%; object-fit:cover; display:block;}

/* Icon stability */
.mb-tab i, .card i, .kicker i{
  width:1.25em;
  text-align:center;
  display:inline-block;
  line-height:1;
}
.mb-tabbar .mb-tab i{font-size: 14px;}
@media (min-width: 720px){
  .mb-tabbar .mb-tab i{font-size:20px;}
}

/* Home news cards */
.news-card .h3{margin-top:6px;}
.filters{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 15px;
}
.select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
  min-width:180px;
}
.search{
  flex:1 1 220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  color:var(--text);
}
.small{font-size:12px; color:var(--muted)}

.news-layout{
  display:grid; gap:12px;
}
@media (min-width:900px){
  .news-layout{gap:16px;display: block;}
}

.swiper{
  position:relative;
}
.swiper-viewport{
  overflow:hidden;
  border-radius:var(--r3);
}
.swiper-track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.swiper-slide{
  min-width:100%;
  padding:0;
}
@media (min-width:900px){
  .swiper-slide{min-width: 50%}
}
.news-card{
  height:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:var(--r3);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow2);
}
.news-card .cover{
  height:140px;
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(255,122,24,.28), transparent 55%),
    radial-gradient(500px 200px at 90% 20%, rgba(72,162,255,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.95));
  border-bottom:1px solid var(--line);
}
.news-card .body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(72,162,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.news-card h3{margin:0 0 8px; font-size:15px; line-height:1.2}
.news-card p{margin:0; color:var(--muted); font-size:13px; line-height:1.35}
.news-card .row{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between}
.news-card .row .meta{display:flex; gap:8px; flex-wrap:wrap}

.swiper-controls{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px;
}
.dots{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.dot{
  width:10px; height:10px; border-radius:99px;
  border:1px solid var(--line);
  background:rgba(12,18,28,.06);
}
.dot.is-active{background:rgba(255,122,24,.55); border-color:rgba(255,122,24,.5)}
.icon{
  width:16px; height:16px; display:inline-block;
  fill:currentColor;
}

.featured-list{
  display:grid; gap:10px;
}
.featured-item{
  display:flex; gap:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:18px;
  padding:12px;
  align-items:flex-start;
}
.featured-thumb{
  width:52px; height:52px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,122,24,.25), rgba(72,162,255,.12));
  border:1px solid var(--line);
  flex:0 0 auto;
  display:grid; place-items:center;
}
.featured-item h4{margin:0 0 6px; font-size:14px; line-height:1.2}
.featured-item p{margin:0; color:var(--muted); font-size:12.5px; line-height:1.35}
.featured-item .mini{
  margin-top:8px;
  color:rgba(233,238,246,.86);
  font-size:12px;
}
.footer{
  padding:20px 0 26px;
  color:var(--muted);
  font-size:12.5px;
}
.footer .row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.hidden{display:none !important}


/* Loading overlay */
.loader-backdrop{
  position:fixed; inset:0; z-index:60;
  display:none;
  background:rgba(12,18,28,.20);
  backdrop-filter: blur(4px);
}
.loader{
  max-width:420px;
  margin:18vh auto 0;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px 14px;
}
.loader-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.spinner{
  width:34px; height:34px;
  border-radius:999px;
  border:3px solid rgba(12,18,28,.12);
  border-top-color: rgba(255,122,24,.75);
  animation: spin .9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.skeleton{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(12,18,28,.05), rgba(12,18,28,.10), rgba(12,18,28,.05));
  background-size:200% 100%;
  animation: sk 1.3s ease infinite;
  margin-top:10px;
}
@keyframes sk{ 0%{background-position:0 0} 100%{background-position:-200% 0} }



/* Light-theme final overrides */
.card, .modal, .toast-inner, .loader{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98)) !important;
}
.tile, .news-card, .featured-item{
  background: rgba(255,255,255,.92) !important;
}
.chip, .badge, .kbd{
  background: rgba(12,18,28,.04) !important;
}
.select, .search{
  background: rgba(255,255,255,.92) !important;
}
.topbar{
  /* box-shadow: 0 10px 30px rgba(12,18,28,.08); */
  position: fixed;
  width: calc(100% - 40px);
}

/* ==============================
   UX / Responsive refinements 1.3.0
   ============================== */

:root{
  --container-pad: clamp(14px, 3vw, 24px);
  --fs-base: clamp(14px, 1.35vw, 16px);
  --fs-h1: clamp(22px, 3.6vw, 34px);
  --fs-h2: clamp(18px, 2.4vw, 22px);
  --fs-h3: clamp(16px, 2.0vw, 18px);
  --radius-lg: 10px;
  --shadow-soft: 0 10px 30px rgb(0 0 0 / 26%26%);
}

html{ scroll-behavior: smooth; }
body{ font-size: var(--fs-base); line-height: 1.55; }

.container{padding: var(--container-pad);padding-top: 15px;}

.hero h1{ font-size: var(--fs-h1); letter-spacing: -0.02em; }
.section-title{ font-size: var(--fs-h2); }
.card h3{ font-size: var(--fs-h3); }

/* Tablet-first grids */
.grid-3, .hubGrid { grid-template-columns: 1fr; }
@media (min-width: 940px){
  .grid-3, .hubGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1140px){
  .grid-3, .hubGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Readability & touch targets */
.nav{gap: 8px;overflow-x: auto;-webkit-overflow-scrolling: touch;scrollbar-width: none;overflow: visible;}
.nav::-webkit-scrollbar{ display:none; }
.nav a{ padding: 10px 12px; min-height: 40px; display:inline-flex; align-items:center; border-radius: 999px; }

.topbar{/* backdrop-filter: saturate(180%) blur(10px); */box-shadow: NONE;MARGIN-BOTTOM: 0;}

.card{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card:hover{ transform: translateY(-1px); }

/* Modal: comfortable reading + scroll */
.modal-panel{ border-radius: 20px; }
.modal-body{
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 14px;
}
@media (max-width: 520px){
  .modal-panel{
    width: calc(100vw - 18px);
    border-radius: 18px;
  }
  .modal-body{ max-height: calc(100vh - 190px); }
}

/* Focus visibility (accessibility) */
:focus{ outline: none; }
:focus-visible{outline: 1px solid rgb(0 0 0 / 50%);outline-offset: 2px;}

/* Back to top FAB */
.fab-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  color: #111;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.fab-top.is-show{ display: inline-flex; }
.fab-top:hover{ transform: translateY(-1px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ===== Mobile navigation upgrade: bottom tab bar + cleaner header ===== */
.mb-tabbar{display:none}
@media (max-width: 860px){
  /* Hide long top nav links on mobile; keep burger + logo */
  .site-header .nav{display:none}
  body{padding-bottom: 0;}
  .mb-tabbar{
    display:flex;
    position:fixed; left:0; right:0; bottom:0;
    z-index:1200;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    backdrop-filter:saturate(180%) blur(14px);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    gap:6px;
  }
  .mb-tab{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    border-radius:14px;
    color:var(--muted);
    text-decoration:none;
    border:1px solid transparent;
    background:transparent;
    font-weight: 400;
    font-size: 9px;
    line-height:1;
    user-select:none;
  }
  .mb-tab i{font-size:16px}
  .mb-tab:active{transform:scale(.98)}
  .mb-tab.is-active{
    color:var(--ink);
    background:linear-gradient(180deg, rgba(255,122,31,.12), rgba(255,122,31,.06));
    border-color:rgba(255,122,31,.22);
  }
  .mb-tab-menu{cursor:pointer}
  .mb-tab-menu{appearance:none; border:none}
}

/* Tablet: keep header nav, but reduce density */
@media (min-width: 861px) and (max-width: 1120px){
  .nav-links{gap:10px}
  .nav-links a{padding:8px 10px}
}

/* ===== Mobile drawer (hamburger) ===== */
.mm-overlay{
  position:fixed; inset:0;
  background:rgba(17,24,39,.35);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:1300;
}
.mm-overlay.is-open{opacity:1; pointer-events:auto;}
.mm-drawer{
  position:fixed; top:0; left:0; height:100%;
  width:min(86vw, 360px);
  background:#fff;
  border-right:1px solid var(--line);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:1400;
  display:flex;
  flex-direction:column;
}
.mm-drawer.is-open{transform:translateX(0);}
.mm-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.mm-drawer-title{font-weight:900; letter-spacing:.2px}
.mm-drawer-close{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.mm-drawer-body{padding:10px 8px; overflow:auto}
.mm-list{list-style:none; padding:0; margin:0}
.mm-list li{margin:4px 0}
.mm-list a{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid transparent;
}
.mm-list a:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-list a.is-active{background:rgba(255,122,31,.12); border-color:rgba(255,122,31,.22)}
/* prevent background scroll when drawer open */
body.mm-open{overflow:hidden}

/* Drawer class mapping (project markup) */
.mm-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(12px);
}

.mm-head-brand{display:flex; align-items:center; gap:12px; min-width:0}
.mm-logo{
  width:38px; height:38px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(255,178,74,.95));
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid; place-items:center;
  flex:0 0 auto;
}
.mm-logo img{width:100%; height:100%; object-fit:cover}

.mm-title{display:flex; flex-direction:column; gap:2px; min-width:0}
.mm-title .mm-brand{font-weight:900; letter-spacing:.2px; line-height:1.1}
.mm-title .mm-sub{font-size:12px; color:var(--muted); line-height:1.2}

.mm-close{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.86);
  display:grid; place-items:center;
}
.mm-close i{font-size:16px}
.mm-body{padding:10px 8px; overflow:auto}

/* Mobile menu search (mm-search) */
.mm-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(12,18,28,.12);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12,18,28,.08);
  margin:8px 6px 10px;
}
.mm-search > span{
  width:30px; height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,122,24,.10);
  color:rgba(12,18,28,.72);
  flex:0 0 auto;
}

.ac-stat-label  span {s
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    display: inline-block;
}
.mm-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.mm-search input::placeholder{color:rgba(85,101,122,.85)}
.mm-search:focus-within{
  border-color: rgba(255,122,24,.35);
  box-shadow: var(--focus), 0 10px 28px rgba(12,18,28,.10);
}

/* ===== Drawer hierarchy (menu.v1.0.json) ===== */
.mm-item.is-hide{display:none}
.mm-row{display:flex; align-items:center; gap:8px}
.mm-group-btn{
  flex:1;
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.mm-group-btn:hover{background:rgba(255,122,31,.08); border-color:rgba(255,122,31,.15)}
.mm-group-go{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  white-space:nowrap;
}
.mm-dot{width:8px; height:8px; border-radius:999px; background:rgba(255,122,31,.9)}
.mm-caret{margin-left:auto; transition:transform .18s ease; opacity:.7}
.mm-item.is-open .mm-caret{transform:rotate(180deg)}
.mm-sublist{list-style:none; padding:6px 0 6px 14px; margin:2px 0 6px 12px; border-left:1px dashed rgba(0,0,0,.14)}
.mm-item:not(.is-open) > .mm-sublist{display:none}
.mm-sublist a{padding:10px 12px; border-radius:12px}
.mm-external{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(0,0,0,.55);
  border:1px dashed rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}
.mm-external:hover{background:rgba(255,255,255,.75)}

/* Drawer CTA for big sections (anti-corruption) */
.mm-item.mm-cta{margin:6px 0 10px}
.mm-cta-link{
  display:flex; align-items:center; gap:10px;
  padding:14px 12px;
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid rgba(255,122,24,.22);
  background: linear-gradient(180deg, rgba(255,122,24,.12), rgba(255,255,255,.92));
  box-shadow: 0 14px 30px rgba(12,18,28,.12);
}
.mm-cta-link i{font-size:16px; width:18px; text-align:center; flex:0 0 18px}
.mm-cta-link span{font-weight:800; letter-spacing:.2px}
.mm-cta-badge{
  margin-left:auto;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(12,18,28,.12);
  background: rgba(255,255,255,.85);
  color:rgba(12,18,28,.72);
  font-weight:700;
}
.mm-cta-link:hover{transform:translateY(-1px)}



/* Desktop hover dropdown for hierarchical menu */
@media (min-width: 980px){
  .nav-tree .dt-item:hover > .dt-popup{display:block;}
  .nav-tree .dt-item:focus-within > .dt-popup{display:block;}
}


/* ==== Specialties page (added v1.6.3) ==== */
.spc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}

/* ==== Anti-corruption hub page ==== */
.ac-hero{background:rgba(255,255,255,.92)}
.ac-hero-grid{display:grid;grid-template-columns: 1.4fr 0.7fr;gap:16px;align-items:stretch;margin: 5px;border-radius: 10px;background: #ffffff;padding: 20px;border: 1px solid var(--border);}
.ac-stats{display:grid;grid-template-columns: repeat(3, minmax(0,1fr));ga;gap: 5px;justify-content: center;justify-items: center;align-items: start;align-content: stretch;}
.ac-stat{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,122,24,.07);
  padding:12px;
  text-align:center;
  max-width: max-content;
  width: calc(100% - 10px);
  /* display: -webkit-box; */
  /* -webkit-line-clamp: 2; */   /* количество строк */
  /* -webkit-box-orient: vertical; */
  /* overflow: hidden; */
}
.ac-stat-num{font-size:22px; font-weight:900; letter-spacing:.2px}
.ac-grid{margin-top:14px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
@media (max-width: 980px){ .ac-hero-grid{grid-template-columns:1fr} .ac-grid{grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .ac-grid{grid-template-columns: 1fr; } }
.ac-card{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow1);
  overflow:hidden;
  padding: 20px;
  text-align: center;
  font-size: 10px;
  line-height: 11px;
}
.ac-card-head{display:flex; align-items:center; gap:10px; padding:14px 14px 10px}
.ac-ic{width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:rgba(255,122,24,.12); color:rgba(12,18,28,.75)}
.ac-card-head h4{margin:0; font-size:15px}
.ac-card-body{padding:0 14px 14px}
.ac-actions{display:flex;flex-wrap: nowrap;gap:10px;margin-top: 20px;flex-direction: column;}
.ac-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(12,18,28,.12);
  background:rgba(255,255,255,.92);
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
}
.ac-btn:hover{background:rgba(255,122,24,.08); border-color:rgba(255,122,24,.26)}
.ac-btn i{width:16px; text-align:center}
.ac-subgrid{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px}
@media (max-width: 980px){
  .spc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .spc-grid{ grid-template-columns: 1fr; }
}
.spc-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow1);
  transition: box-shadow .15s ease, transform .15s ease;
}
.spc-card:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }
.spc-img{ aspect-ratio: 16/10; background: rgba(12,18,28,.03); }
.spc-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.spc-title{
  padding:12px 12px 14px;
  font-size:14px;
  line-height:1.25;
  text-align:center;
  color: var(--text);
}



/* Catalog cards (specialties/courses) */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{font-size:12px;line-height:1;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06)}
.cat-card{position:relative;display:flex;flex-direction:column;gap:10px;border-radius:18px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden;cursor:pointer;transform:translateZ(0);transition:transform .18s ease, box-shadow .18s ease}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.10)}
.cat-cover{height:140px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.85))}
.cat-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cat-body{padding:14px 14px 16px}
.cat-title{font-size:15px;font-weight:800;line-height:1.2;margin:0}
.cat-sub{margin-top:6px;color:rgba(0,0,0,.62);font-size:12.5px}
.cat-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;color:rgba(0,0,0,.65);font-size:12px}
.cat-pill{padding:6px 10px;border-radius:999px;background:rgba(255,126,0,.10);border:1px solid rgba(255,126,0,.20)}

/* Card modal blocks */
.modal-block{padding:14px;border-radius:16px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.06);margin-bottom:12px}
.modal-block h4{margin:0 0 8px;font-size:14px}
.modal-block p{margin:0;color:rgba(0,0,0,.72);line-height:1.55}
.modal-block ul{margin:0;padding-left:18px;color:rgba(0,0,0,.72)}
.gallery-snap{display:flex;gap:10px;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.gallery-snap::-webkit-scrollbar{height:8px}
.gallery-snap::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:999px}
.gallery-snap a{flex:0 0 auto;width:240px;height:150px;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.06);scroll-snap-align:start}
.gallery-snap img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width: 520px){
  .gallery-snap a{width:78vw;height:44vw}
  .cat-cover{height:120px}
}

/* Ensure desktop dropdown doesn't shift layout */
.dt-item{position:relative}
.dt-link{display:flex;align-items:center;gap:8px}
.dt-link-cta{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,122,24,.28) !important;
  background: rgba(255,122,24,.10);
  font-weight:800;
}
.dt-link-cta:hover{background: rgba(255,122,24,.14)}
.dt-item.is-open .dt-link{transform:none}


/* v1.7.1 visual polish: brand palette + cards + full-screen modal */
body{
  background:
    radial-gradient(1100px 680px at 14% -12%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(980px 620px at 92% 0%, rgba(42,99,255,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
}

.card.card-click{
  position: relative;
  overflow: hidden;
}
.card.card-click::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,122,24,.25), transparent 60%),
    radial-gradient(420px 240px at 88% 16%, rgba(42,99,255,.20), transparent 60%);
  opacity:.55;
  pointer-events:none;
  filter: blur(0.2px);
}
.card.card-click::after{
  content:"";
  position:absolute; inset:0;
  border:1px solid rgba(255,255,255,.32);
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: overlay;
  opacity:.65;
}

.card-compact .card-body{position:relative;z-index:1;padding: 0 10px 15px 10px;}
.card-compact .card-media{ position:relative; z-index:1; }
.card-compact .card-title{font-weight: 900;letter-spacing:.1px;overflow: hidden;line-height: 18px;text-overflow: clip;padding-bottom: 10px;}
.card-compact .card-sub{color: var(--muted);line-height: 16px;font-size: 14px;text-align: justify;}

.card-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.meta-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--brandInk);
}
.meta-chip i{ color: var(--brand); }
.meta-chip.is-blue i{ color: var(--brandBlue); }

.tag-chip{
  border: 1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(6px);
}
.tag-chip i{ color: var(--brand); }

/* Search polish */
.mm-search{
  border: 1px solid rgba(12,18,28,.10);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(12,18,28,.08);
}
.mm-search input{
  font-weight: 700;
}
.mm-search .mm-ic{
  background: radial-gradient(220px 120px at 20% 20%, rgba(255,122,24,.22), transparent 55%),
              radial-gradient(220px 120px at 80% 30%, rgba(42,99,255,.18), transparent 55%),
              rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,28,.10);
}

/* Fullscreen modal for card details */
.modal-backdrop{
  z-index: 9999;
  padding: 0 !important;
}
.modal-backdrop .modal{
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  display:flex;
  flex-direction:column;
}
.modal-backdrop .modal-head{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  backdrop-filter: blur(10px);
}
.modal-backdrop .modal-body{
  flex: 1;
  max-height: none !important;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}
.modal-backdrop .modal-foot{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.modal-hero{
  border:0;
  background: transparent;
  box-shadow:none;
}
.modal-hero-media img{
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,18,28,.18);
}
@media (max-width: 520px){
  .modal-hero-media img{ border-radius: 14px; }
}

/* ===== Filters (Courses) ===== */
.mm-filters{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.mm-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mm-chip .fa-solid{ color: var(--brand); }
.mm-chip:hover{ transform: translateY(-1px); box-shadow: 0 16px 34px rgba(12,18,28,.14); }
.mm-chip.is-active{
  border-color: rgba(255,122,24,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 42px rgba(255,122,24,.18), 0 14px 30px rgba(12,18,28,.12);
}
.mm-chip.is-active .fa-solid{ color: var(--brandBlue); }

@media (max-width: 720px){
  .mm-filters{ justify-content:flex-start; }
}

/* ===== Fullscreen modal actions ===== */
.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.modal-actions .btn{ border-radius: 999px; }
.btn-icon{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Similar cards inside modal */
.similar-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.similar-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
  cursor:pointer;
  box-shadow: 0 12px 26px rgba(12,18,28,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.similar-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px rgba(12,18,28,.14); }
.similar-card .thumb{ height: 92px; background: #f3f6ff; }
.similar-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.similar-card .b{ padding: 10px 12px; }
.similar-card h4{ margin:0; font-size: 12px; line-height:1.2; }
.similar-card .small{ margin-top:6px; font-size:11px; opacity:.8; }

@media (max-width: 980px){
  .similar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .similar-grid{ grid-template-columns: 1fr; }
}


/* ===== UX polish v1.7.3 ===== */
:root{
  --brandA: var(--brandOrange, #ff7a00);
  --brandB: var(--brandBlue, #1e66ff);
}

/* prevent icon/layout jumps */
i.fa-solid, i.fa-regular, i.fa-brands{
  display:inline-block;
  width:1.15em;
  text-align:center;
  line-height:1;
  vertical-align:-0.12em;
}
.btn-icon i{ width:1.15em; }
.meta-chip i{ width:1.15em; }
.mb-tab i{ width:1.15em; }

/* Fullscreen modal: no margins, always on top */
#modalBackdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  padding:0 !important;
  align-items:stretch !important;
}
#modalBackdrop .modal{
  width:100vw;
  height:100vh;
  border-radius:0 !important;
  max-width:none !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
}
#modalBackdrop .modal-body{
  flex:1;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
body.is-scroll-locked{
  position:fixed;
  width:100%;
  overflow:hidden;
}

/* Modal content layout */
.card-modal{
  padding:14px 14px 18px;
}
.card-modal-hero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.card-modal-hero .cm-media{
  flex:0 0 108px;
  height:108px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.card-modal-hero .cm-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-modal-hero .cm-body{ min-width:0; flex:1; }
.card-modal-hero .cm-kicker{
  display:flex; flex-wrap:wrap; gap:8px;
  color:rgba(20,20,20,.7);
  font-size:12px;
  margin-bottom:6px;
}
.card-modal-hero .cm-title{
  font-size:18px;
  line-height:1.15;
  margin:0 0 6px;
}
.card-modal-hero .cm-desc{
  font-size:13px;
  line-height:1.45;
  color:rgba(20,20,20,.78);
}
.cm-metas{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px;
}
.cm-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:12px 0 10px;
}
.cm-actions .btn{ border-radius:14px; }
.cm-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 700px){
  .card-modal{ padding:18px 18px 22px; }
  .card-modal-hero .cm-media{ flex-basis:132px; height:132px; border-radius:22px; }
  .card-modal-hero .cm-title{ font-size:22px; }
  .cm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .cm-grid{ grid-template-columns: 1.2fr .8fr; }
}

/* small chart bars */
.cm-bars{ display:grid; gap:8px; }
.cm-bar{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:10px 12px;
}
.cm-bar .lbl{ font-size:12px; color:rgba(20,20,20,.75); width:110px; }
.cm-bar .track{
  flex:1; height:10px; border-radius:999px;
  background:rgba(0,0,0,.08);
  overflow:hidden;
}
.cm-bar .fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--brandA), var(--brandB)); }
.cm-bar .val{ font-size:12px; color:rgba(20,20,20,.75); width:42px; text-align:right; }

/* in-modal sheets (no second modal backdrop) */
.cm-sheet{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
}
.cm-sheet.is-open{ display:block; }
.cm-sheet .sh-mask{
  position:absolute; inset:0;
  background:rgba(0,0,0,.35);
}
.cm-sheet .sh-panel{
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.cm-sheet .sh-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.cm-sheet .sh-head strong{ font-size:14px; }
.cm-sheet .sh-body{
  padding:12px 14px 18px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.cm-mini-list{ display:grid; gap:10px; }
.cm-mini-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.06);
}
.cm-mini-item .ic{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,122,0,.20), rgba(30,102,255,.14));
  flex:0 0 auto;
}
.cm-mini-item h4{ margin:0; font-size:13px; line-height:1.2; }
.cm-mini-item p{ margin:4px 0 0; font-size:12px; color:rgba(20,20,20,.72); }


/* Account modal */
.acc-shell{padding:16px;}
.acc-hero{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 12px; border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,122,24,.12), rgba(42,99,255,.10));
}
.acc-brand{display:flex; gap:12px; align-items:center;}
.acc-logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brandBlue));
  color:#fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.acc-title{font-weight:800; font-size:18px; letter-spacing:.2px;}
.acc-grid{margin-top:14px; display:grid; gap:12px; grid-template-columns:1fr;}
@media (min-width: 720px){ .acc-grid{grid-template-columns:repeat(3, 1fr);} }
.acc-note{margin-top:12px;}



/* ===== v1.8.1 UX polish ===== */
:root{
  --spcCoverH: 110px;
}

.mb-tab i, .btn i, .meta-chip i, .dt-link i{
  width: 1.15em;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.card-media{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  border-radius: var(--r3);
  background: linear-gradient(135deg, rgba(255,122,24,.10), rgba(72,162,255,.08));
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Specialties: stronger card identity */
.spc-card{
  position:relative;
  text-align:left;
  border:1px solid rgba(255,122,24,.18);
  box-shadow: var(--shadow2);
}
.spc-card .card-kicker{
  font-weight: 700;
  letter-spacing: .2px;
}
.spc-card .card-title{
  font-size: 15px;
  line-height: 1.25;
}
.spc-card .card-sub{
  margin-top: 6px;
  color: rgba(15,20,26,.78);
}
.spc-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: var(--r3);
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(600px 220px at 90% 0%, rgba(72,162,255,.10), transparent 55%);
  opacity:.55;
}

/* Courses: slightly different accent */
.crs-card{
  border:1px solid rgba(72,162,255,.18);
}

/* News KPI grid: responsive, no overflow */
.kpi-grid{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  min-width:0;
}

/* News & text wrapping safeguards */
.news-card, .news-card *{
  min-width:0;
}
.news-card h3, .news-card p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Swiper: allow horizontal scroll inside viewport only (no body overflow) */
.swiper{ max-width:100%; min-width:0; }
.swiper-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
.swiper-track{
  display:flex;
  gap: 12px;
  padding: 2px 2px 10px;
  transition:none;
  transform:none !important;
}
.swiper-slide{
  flex: 0 0 clamp(260px, 86vw, 420px);
  min-width:auto;
  scroll-snap-align:start;
}

/* Ensure no accidental horizontal page scroll */
html, body{ overflow-x:hidden; }
.section, .card, .grid{ max-width:100%; min-width:0; }


/* Desktop nav: avoid layout shift on hover */
.dt-item, .dt-link{ box-sizing:border-box; }
.dt-item .dt-link{border: 1px solid #45313100;text-decoration: none;max-width: 100%;}
.dt-item:hover .dt-link, .dt-item.is-open .dt-link{ border-color: rgba(255,122,24,.22); }

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:720px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.75);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:800;font-size:22px;line-height:1.15}
.home-logo-sub{text-align:center;margin-top:10px;color:var(--muted);font-size:13px}

/* Hub pages */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
.hub-card{display:flex;align-items:stretch;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 10px 26px rgba(0,0,0,.10);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}

/* HUB: search / filters / sort */
.hub-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.hub-search{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:220px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-search i{color:var(--muted)}
.hub-search-input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-weight:700;color:inherit}
.hub-search-clear{border:0;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.hub-search-clear:hover{background:rgba(0,0,0,.06);color:inherit}

.hub-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.hub-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.60);padding:8px 10px;border-radius:999px;font-weight:800;color:inherit}
.hub-filter i{color:var(--brand-2)}
.hub-filter span{font-size:12px;line-height:1}
.hub-filter:hover{background:rgba(255,255,255,.78)}
.hub-filter.is-active{background:rgba(0,0,0,.88);border-color:rgba(0,0,0,.88);color:#fff}
.hub-filter.is-active i{color:#fff}

.hub-sort{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.hub-sort i{color:var(--muted)}
.hub-sort-select{border:0;outline:0;background:transparent;font-weight:800}

/* HUB cover styles: always look like a cover even without image */
.hub-cover{position:relative;background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.hub-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);mix-blend-mode:overlay;pointer-events:none}
.hub-cover i{position:relative;z-index:1;font-size:20px}
.hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,127,80,.22), rgba(255,255,255,.00))}
.hub-cover.theme-2{background:linear-gradient(135deg, rgba(0,173,181,.18), rgba(255,255,255,.00))}
.hub-cover.theme-3{background:linear-gradient(135deg, rgba(99,102,241,.18), rgba(255,255,255,.00))}
.hub-cover.theme-4{background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(255,255,255,.00))}
.hub-cover.theme-5{background:linear-gradient(135deg, rgba(245,158,11,.18), rgba(255,255,255,.00))}
.hub-cover.theme-6{background:linear-gradient(135deg, rgba(236,72,153,.16), rgba(255,255,255,.00))}

/* HUB empty state */
.hub-empty{padding:16px;border-radius:18px;background:rgba(255,255,255,.78);border:1px dashed rgba(0,0,0,.12);text-align:center}
.hub-empty .h3{margin:0 0 6px}
.hub-empty .muted{margin:0}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:950;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted)}

/* Hub */
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:880px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08);transition:transform .12s ease, box-shadow .12s ease;text-decoration:none;color:inherit}
.hub-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:900;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Feedback floating button */
.feedback-fab{position:fixed;right:16px;bottom:88px;z-index:2200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;background:linear-gradient(90deg,var(--brand-2),var(--brand-3));color:#111;border:0;box-shadow:0 16px 36px rgba(0,0,0,.18);font-weight:900}
.feedback-fab i{font-size:16px}
@media (min-width:980px){.feedback-fab{bottom:18px}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:20px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:6px;color:var(--muted)}

/* Hub cards */
.hub-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-top:14px}
@media (min-width:720px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1100px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
.hub-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 12px 34px rgba(0,0,0,.10);border:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;overflow:hidden}
.hub-card:hover{transform:translateY(-1px)}
.hub-cover{width:54px;height:54px;border-radius:14px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden}
.hub-cover img{width:100%;height:100%;object-fit:cover}
.hub-cover i{font-size:20px;color:var(--brand-2)}
.hub-body{min-width:0;flex:1}
.hub-title{font-weight:800;line-height:1.2}
.hub-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.hub-go{display:flex;align-items:center;justify-content:center;width:34px;flex:0 0 auto;color:var(--muted)}
.hub-group-head{margin-top:18px}
.hub-h2{margin:0 0 10px;font-size:15px;font-weight:900;display:flex;gap:10px;align-items:center}

/* Fixed feedback button */
.feedback-fab{position:fixed;right:16px;bottom:92px;z-index:1200;display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.86);box-shadow:0 14px 40px rgba(0,0,0,.16);backdrop-filter:blur(10px);cursor:pointer}
.feedback-fab i{color:var(--brand-2)}
@media (min-width:960px){.feedback-fab{bottom:18px;}}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;color:var(--muted);margin-top:8px}

/* Feedback FAB */
.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:9999}
@media (min-width: 980px){.feedback-fab{bottom:20px}}
.feedback-fab .fab-btn{display:inline-flex;align-items:center;gap:10px;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.88);backdrop-filter:blur(10px);box-shadow:0 14px 32px rgba(0,0,0,.16);font-weight:800}
.feedback-fab .fab-btn i{color:var(--brand-2)}

/* Home logo only */
.home-logo{padding:28px 0}
.home-logo-inner{max-width:760px;margin:0 auto;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 14px 40px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.home-logo-badge{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--brand-1),var(--brand-2),var(--brand-3));margin-bottom:14px}
.home-logo-title{text-align:center;font-weight:900;font-size:22px;letter-spacing:.2px}
.home-logo-sub{text-align:center;margin-top:8px;color:var(--muted);font-size:14px}

/* Floating feedback */
.feedback-fab{position:fixed;right:16px;bottom:90px;z-index:1200;padding:12px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.9);box-shadow:0 12px 28px rgba(0,0,0,.18);backdrop-filter:blur(8px);display:flex;align-items:center;gap:10px;font-weight:800}
.feedback-fab i{color:var(--brand-2)}
@media (min-width: 900px){.feedback-fab{bottom:24px}}

.feedback-fab{position:fixed;right:16px;bottom:84px;z-index:1200;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius: 9px;background: white;border-width: 1px;border-color: #005ea8;color: #005ea8;text-decoration:none;box-shadow:0 18px 40px rgba(0,0,0,.22)}
.feedback-fab i{font-size:16px}
.feedback-fab span{font-weight:800;font-size:13px;white-space:nowrap}
@media (min-width: 980px){.feedback-fab{bottom:20px}}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-desc{font-size:13px}
}


/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:22px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px}
}

/* v1.9.1 hubs: description line + more stable cards */
.hub-desc{margin-top:4px;font-size:12px;line-height:1.35;color:rgba(0,0,0,.68);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-body{min-width:0}
.hub-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-meta{flex-wrap:wrap}
@media (min-width: 980px){
  .hub-cover{width:64px;height:64px;border-radius:16px}
  .hub-cover i{font-size:24px}
  .hub-card{padding:14px}
  .hub-desc{font-size:13px;-webkit-line-clamp:3}
}


/* Drawer HUB link (no expansion; deep navigation happens on hub pages) */
.mm-link-hub{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
}
.mm-link-hub:hover{ background: rgba(255,255,255,.55); }
.mm-link-hub .mm-ico{ opacity:.9; }
.mm-link-hub .mm-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mm-link-hub .mm-title{ font-weight:800; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-meta{ font-size:12px; opacity:.72; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-link-hub .mm-go-ico{ margin-left:auto; opacity:.65; }

/* HUB: cover themes and stable sizing (обложки) */
.hub-card .hub-cover{height:140px;border-radius:16px;margin:12px;overflow:hidden;display:grid;place-items:center}
@media (max-width: 920px){.hub-card .hub-cover{height:124px;margin:10px}}
@media (max-width: 520px){.hub-card .hub-cover{height:118px;margin:10px}}
.hub-card .hub-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.02)}
.hub-card .hub-cover i{font-size:42px;color:rgba(255,255,255,.92);text-shadow:0 18px 32px rgba(0,0,0,.35)}
.hub-card .hub-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);}
.hub-card .hub-cover i, .hub-card .hub-cover img{position:relative;z-index:1}

.hub-card .hub-cover.theme-1{background:linear-gradient(135deg, rgba(255,114,76,.95), rgba(255,197,116,.92));}
.hub-card .hub-cover.theme-2{background:linear-gradient(135deg, rgba(20,35,60,.95), rgba(255,114,76,.85));}
.hub-card .hub-cover.theme-3{background:linear-gradient(135deg, rgba(46,125,50,.92), rgba(0,188,212,.82));}
.hub-card .hub-cover.theme-4{background:linear-gradient(135deg, rgba(103,58,183,.92), rgba(244,67,54,.82));}
.hub-card .hub-cover.theme-5{background:linear-gradient(135deg, rgba(0,121,107,.92), rgba(255,235,59,.82));}
.hub-card .hub-cover.theme-6{background:linear-gradient(135deg, rgba(1,87,155,.92), rgba(255,152,0,.82));}

/* HUB: filters look */
.hub-filters{display:flex;flex-wrap:wrap;gap:8px}
.hub-filter{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.74);box-shadow:0 10px 22px rgba(0,0,0,.08);font-weight:800}
.hub-filter i{opacity:.9}
.hub-filter.is-active{background:rgba(255,114,76,.14);border-color:rgba(255,114,76,.28)}
.hub-sort{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 22px rgba(0,0,0,.08)}
.hub-sort-select{border:0;background:transparent;font-weight:900;outline:0}


#topNav{justify-content: center;max-width: 1550px;display: flex;align-content: center;flex-wrap: nowrap;width: 100%;/* backdrop-filter: blur(12px); *//* border-radius: var(--radius-lg); *//* box-shadow: var(--shadow-soft); *//* background: rgba(255, 255, 255, .78); *//* border-bottom: 1px solid var(--line); *//* justify-content: center; *//* align-items: center; */}


/* === Topbar layout fixes (desktop) === */
.topbar-layout{
  display:flex;
  align-items:center;
  gap:14px;
}
.topbar-row--brand{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.topbar-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.topbar-brand img{
  display:block;
}
.topbar-account{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
}
.topbar-row--nav{
  display:flex;
  justify-content:center;
}
#topNavFallback{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
#desktopMenuTree{
  width:100%;
  display:flex;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  justify-content:center;
}
#desktopMenuTree .menu-root{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Make desktop nav truly centered in viewport (if both left/right blocks differ) */
@media (min-width: 1024px){
  .topbar-layout{ position:relative; }
  .topbar-row--nav{
    width:100%;
    position:relative;
  }
  /* If fallback is visible, center it; if tree is visible, center tree */
  #topNavFallback, #desktopMenuTree{
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 14px;
    margin-top: 10px;
  }
}


/* DocsBinder v1.0 */
.docs-block{ margin-top:16px; }
.docs-block__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.docs-block__title{ margin:0; font-size:18px; }
.docs-block__tools .input{ min-width:240px; }

.doc-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:10px; }
.doc-card__left{ display:flex; align-items:center; gap:12px; min-width:0; }
.doc-ic{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:rgba(0,0,0,.04); flex:0 0 auto; }
.doc-meta{ min-width:0; }
.doc-title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.doc-card__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.pdf-modal{ position:fixed; inset:0; z-index:9999; display:none; }
.pdf-modal.is-open{ display:block; }
.pdf-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.pdf-modal__panel{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1100px, 94vw); height:min(80vh, 780px); background:var(--card); border-radius:16px; border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; }
.pdf-modal__head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pdf-modal__title{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:50vw; }
.pdf-modal__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pdf-modal__body{ flex:1 1 auto; }
.pdf-modal__body iframe{ width:100%; height:100%; border:0; background:#fff; }
body.modal-open{ overflow:hidden; }

@media (max-width: 720px){
  .doc-title,.doc-sub{ max-width:70vw; }
  .pdf-modal__panel{ height:min(86vh, 900px); }
  .pdf-modal__title{ max-width:44vw; }
}


/* Home (JSON-driven) */
.home-hero{padding:28px 0}
.home-hero__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-hero__badge{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-hero__badge .dot{width:8px;height:8px;border-radius:50%;background:var(--brand-2)}
.home-hero__title{margin:14px 0 0;font-size:34px;line-height:1.08;font-weight:900;letter-spacing:-.02em}
@media (min-width:900px){.home-hero__title{font-size:44px}}
.home-hero__sub{margin:10px 0 0;color:var(--muted);max-width:64ch}
.home-hero__actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgb(0 94 168);color:rgba(255,255,255,.92);text-decoration:none}
.btn:hover{border-color:rgba(255,122,24,.35);background:rgba(255,122,24,.08)}
.btn-sm{padding:8px 12px;border-radius:12px;font-size:13px}
.btn-primary{border-color: rgb(240 137 28);background: white;color: rgb(240 135 24);height: 50px;margin-top: 15px;margin-bottom: 10px;}
.btn-ghost{background: rgb(0 0 0 / 64%);margin-top: 15px;margin-bottom: 10px;}

.home-import{padding:18px 0}
.home-import__inner{max-width:1100px;margin:0 auto;padding:0 16px}
.home-import__head{padding:16px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.home-import__k{font-weight:900;font-size:18px}
.home-import__p{margin-top:8px;color:var(--muted);max-width:90ch}
.home-import__meta{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,122,24,.14);border:1px solid rgba(255,122,24,.25);font-size:12px}
.home-muted{color:var(--muted);font-size:12px}
.home-import__actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

.home-import__grid{margin-top:12px;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
@media (min-width:860px){.home-import__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.home-card{display:flex;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.home-card__ic{width:38px;height:38px;border-radius:14px;border:1px solid rgba(255,122,24,.25);background:rgba(255,122,24,.10);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.home-card__t{font-weight:800}
.home-card__d{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.35}


/* ===== Home v1.3 sections (events/tabs/education/projects/partners/next) ===== */
.home-section{margin-top:28px}
.home-section__head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 14px}
.home-lead{color:var(--muted);max-width:920px;margin:0 0 16px;line-height:1.55}

.home-events__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
@media (max-width: 960px){.home-events__grid{grid-template-columns:1fr}}
.home-slider{position:relative}
.home-slider__track{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.home-slider__track::-webkit-scrollbar{height:8px}
.home-slider__track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.home-slider__track>*{scroll-snap-align:start;flex:0 0 min(520px, 92%)}
.home-slider__nav{position:absolute;right:6px;top:-42px;display:flex;gap:8px}
@media (max-width: 560px){.home-slider__nav{position:static;margin-top:10px}}

.home-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;backdrop-filter: blur(8px)}
.home-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.home-card__title{font-weight:800;letter-spacing:-.01em}
.home-card__meta{color:var(--muted);font-size:13px;margin-top:6px}
.home-card__text{margin-top:10px;color:rgba(255,255,255,.9);line-height:1.5}
.home-card__actions{margin-top:14px;display:flex;gap:10px}

.theme-red{background:linear-gradient(135deg, rgba(193,18,31,.35), rgba(255,255,255,.04));border-color:rgba(193,18,31,.35)}
.theme-blue{background:linear-gradient(135deg, rgba(30,58,138,.35), rgba(255,255,255,.04));border-color:rgba(30,58,138,.35)}
.theme-dark{background:linear-gradient(135deg, rgba(0,0,0,.55), rgba(255,255,255,.03));border-color:rgba(255,255,255,.10)}
.theme-light{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}

.tabs-ui{background:rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px}
.tabs-ui__bar{display:flex;gap:8px;flex-wrap:wrap;padding:4px}
.tabs-ui__tab{appearance:none;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.tabs-ui__tab.is-active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.tabs-ui__panes{padding:10px 4px 4px}
.tabs-ui__pane{display:none}
.tabs-ui__pane.is-active{display:block}

.home-cardlist{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 760px){.home-cardlist{grid-template-columns:1fr}}

.home-news-card{display:grid;grid-template-columns:160px 1fr;gap:12px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
@media (max-width: 560px){.home-news-card{grid-template-columns:1fr}}
.home-news-card__media{background:rgba(0,0,0,.25);min-height:110px}
.home-news-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-news-card__body{padding:12px}
.home-news-card__date{font-size:12px;color:var(--muted);margin-bottom:6px}
.home-news-card__title{font-weight:800;line-height:1.2}
.home-news-card__text{margin-top:6px;color:rgba(255,255,255,.88);line-height:1.45}
.home-more{margin-top:14px}

.edu-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 1020px){.edu-grid{grid-template-columns:repeat(2, 1fr)}}
@media (max-width: 640px){.edu-grid{grid-template-columns:1fr}}
.edu-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);min-height:220px}
.edu-card.is-2{grid-column:span 2}
@media (max-width: 640px){.edu-card.is-2{grid-column:span 1}}
.edu-card__bg{position:absolute;inset:0;opacity:.35}
.edu-card__bg img{width:100%;height:100%;object-fit:cover}
.edu-card__inner{position:relative;padding:16px}
.edu-card__title{font-weight:900;font-size:18px;letter-spacing:-.01em}
.edu-card__text{margin-top:8px;color:rgba(255,255,255,.9);line-height:1.5}
.edu-facts{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.edu-fact{background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px}
.edu-fact__v{font-weight:900;font-size:18px}
.edu-fact__l{font-size:12px;color:var(--muted);margin-top:2px}
.edu-card__actions{margin-top:12px}

.home-card--project{padding:0;overflow:hidden}
.home-card--project .home-card__media{height:170px;background:rgba(0,0,0,.25)}
.home-card--project .home-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.home-card--project .home-card__top{padding:14px 14px 0}
.home-card--project .home-card__text{padding:0 14px 14px}

.partners-logos{display:grid;grid-template-columns:repeat(6, 1fr);gap:12px}
@media (max-width: 1020px){.partners-logos{grid-template-columns:repeat(4, 1fr)}}
@media (max-width: 640px){.partners-logos{grid-template-columns:repeat(2, 1fr)}}
.partner-logo{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;min-height:74px;text-decoration:none;color:inherit;overflow:hidden}
.partner-logo img{max-width:86%;max-height:46px;object-fit:contain;display:block;filter:grayscale(1) contrast(1.05);opacity:.9}
.partner-logo:hover{border-color:rgba(255,255,255,.18);transform:translateY(-1px)}

.next-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
@media (max-width: 960px){.next-grid{grid-template-columns:1fr}}
.next-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.08);min-height:160px;text-decoration:none;color:inherit;background:rgba(255,255,255,.04)}
.next-card__bg{position:absolute;inset:0;opacity:.35}
.next-card__bg img{width:100%;height:100%;object-fit:cover}
.next-card__title{position:relative;padding:16px;font-weight:900;font-size:20px;letter-spacing:-.01em}



/* ===== Home (Moscow Polytech inspired blocks) ===== */
.home-block{margin-top:24px}
.home-block__heading{margin:16px 0}
.offset-after-hero{margin-top:16px}
.events__container{width:100%}
.events__row{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}
@media (max-width: 900px){.events__row{grid-template-columns:1fr}}
.events__slider{position:relative;border-radius:20px;overflow:hidden}
.nav-arrows{display:flex;gap:10px;position:absolute;right:12px;bottom:12px;z-index:2}
.nav-arrows__button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px);cursor:pointer}
.nav-arrows__button:hover{transform:translateY(-1px)}
.nav-arrows.is-red .nav-arrows__button{border-color:rgba(193,18,31,.25)}
.card-event{position:relative;border-radius:20px;overflow:hidden;min-height:240px;color:#fff;background:#0A2647}
.card-event.is-red{background:#C1121F}
.card-event.is-white{background:#fff;color:#111}
.card-event .video,.card-event__bg-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.card-event__inner{position:relative;z-index:1;padding:18px}
.card-event__date{opacity:.9;margin-bottom:10px}
.card-event__heading{margin:0 0 10px 0}
.card-event__description{max-width:56ch;opacity:.95}
.card-event__link{position:absolute;inset:0;z-index:2}
.button-group{display:flex;gap:10px;margin-top:14px}
.btn.text-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.card-event.is-white .btn.text-button{border-color:rgba(0,0,0,.15);background:rgba(0,0,0,.04)}
.bloat{display:none}

/* Tabs */
.tabs{display:flex;gap:16px;flex-wrap:wrap}
.tabs .h1{cursor:pointer;opacity:.6}
.tabs .h1.active{opacity:1}
.tabs__pane{display:none}
.tabs__pane.active{display:block}
.card-news-small-list{display:grid;gap:14px}
.card-news-small-list.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){.card-news-small-list.cols-2{grid-template-columns:1fr}}
.card-news-small{position:relative;border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px;min-height:120px}
.card-news-small__link{position:absolute;inset:0}
.card-news-small__meta{opacity:.7;margin-bottom:8px}
.card-news-small__title{margin:0 0 8px 0}
.card-news-small__text{opacity:.9}

/* Generic cards */
.card-generic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 900px){.card-generic-grid{grid-template-columns:1fr}}
.card-generic{border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:18px;padding:16px}

/* Education */
.card-education-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-education-group{grid-template-columns:1fr}}
.card-education{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff}
.card-education.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-education .video,.card-education .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}
.card-education__inner{position:relative;z-index:1;padding:16px}
.card-education__head{display:flex;align-items:flex-start;gap:10px}
.card-education__toggle{width:38px;height:38px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.85);cursor:pointer}
.card-education.is-red .card-education__toggle{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12)}
.card-education__title{margin:0}
.card-education__roll{margin-top:12px}
.card-education__numerical-item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.numerical-item__number{font-weight:700}

/* Partners */
.section-partners{border-radius:22px;padding:22px}
.bg-white{background:#fff}
.section-partners__heading{margin:0 0 10px 0}
.section-partners__button{margin-bottom:10px}
.slider-logos-wrap{position:relative}
.slider-logos .swiper-wrapper{display:flex;transition:transform 350ms ease}
.slider-logos .swiper-slide{flex:0 0 25%;padding:8px}
@media(max-width:900px){.slider-logos .swiper-slide{flex:0 0 50%}}
.partner-logo{display:flex;align-items:center;justify-content:center;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:84px;padding:12px;text-decoration:none;color:inherit}
.partner-logo.is-highlight{border-color:rgba(193,18,31,.35)}
.partner-logo img{max-width:100%;max-height:48px;object-fit:contain}

/* Next step */
.card-panel-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.card-panel-group{grid-template-columns:1fr}}
.card-panel{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;min-height:180px}
.card-panel.is-red{background:#C1121F;color:#fff;border-color:rgba(193,18,31,.25)}
.card-panel .video,.card-panel .video__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22}
.card-panel__inner{position:relative;z-index:1;padding:18px;display:flex;align-items:flex-end;min-height:180px}
.card-panel__title{margin:0}
.card-panel__link{position:absolute;inset:0}


/* === Home: Map / Feedback / Director / News Columns (v1.5.2-p2) === */
.home-map{display:grid;gap:14px;grid-template-columns:1.5fr .9fr;align-items:stretch}
.home-map__frame{min-height:340px;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
.home-map__placeholder{height:100%;min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px}
.home-map__aside{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-map__row{margin-bottom:12px}
.home-map__row .k{font-size:12px;opacity:.75;margin-bottom:4px}
.home-map__row .v{font-size:14px}
@media (max-width: 900px){.home-map{grid-template-columns:1fr}}

.home-feedback{border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-feedback .grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.home-feedback .field{display:flex;flex-direction:column;gap:6px}
.home-feedback .field--full{grid-column:1/-1}
.home-feedback .label{font-size:12px;opacity:.8}
.home-feedback input,.home-feedback select,.home-feedback textarea{border-radius:12px}
.home-feedback__foot{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
.home-feedback__status{margin-top:10px;opacity:.85}
@media (max-width: 700px){.home-feedback .grid{grid-template-columns:1fr}}

.home-director{display:grid;gap:16px;grid-template-columns:160px 1fr;align-items:center;border-radius:16px;padding:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.home-director__media img{width:160px;height:160px;object-fit:cover;border-radius:18px;display:block}
.home-director__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
@media (max-width: 700px){.home-director{grid-template-columns:1fr}.home-director__media img{width:100%;height:220px}}

.home-news-columns{display:grid;gap:14px;grid-template-columns:repeat(3,1fr)}
.home-news-col__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.home-news-col__body{display:grid;gap:10px}
@media (max-width: 1000px){.home-news-columns{grid-template-columns:1fr}}



/* ===== Desktop Left Sidebar (product navigation) ===== */
.layout-shell{ display:block; }
.desktop-sidebar{ display:none; }



@media (min-width: 500px){
	.layout-shell > main.container{}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    padding-top: 0px;
    top: 0px;
    /* max-width: 100vw; */
 }}

@media (min-width: 700px){
	.layout-shell > main.container{}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 101px;
    /* max-width: 100vw; */
 }}
@media (min-width: 800px){
	.layout-shell > main.container {
        /* display: flex; */
        min-width: calc(100% - 339px);
        flex: 1 1 auto;
        min-width: calc(100% - 280px);
        /* max-height: 1500px; */
        /* position: absolute; */
        /* overflow: hidden; */
        height: calc(100vh - 302px);
        padding: 15px;
        overflow-y: scroll;
        margin-top: 10px;
        min-height: calc(100% - 330px);
        /* height: 1100px; */
        flex: 1 1 auto;
        min-width: calc(100% - 330px);
        /* max-height: 1500px; */
        position: relative;
        /* overflow: hidden; */
        height: calc(100vh - 138px);
        overflow-y: scroll;
        margin-top: 0px;
        max-height: calc(100% - 165px);
    }
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 90px;
    /* max-width: 100vw; */
    /* overflow: scroll; */
    max-height: calc(100% - 40px);
 }

	.layout-shell > main.container{
    /* overflow-y: scroll; */
    /* height: calc(100% - 200px); */
    /* position: relative; */
    /* max-height: calc(100% - 250px); */
    /* display: block; */
}
	


}

@media (min-width: 900px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 135px;
    /* max-width: 100vw; */
    /* overflow: scroll; */
    max-height: calc(100% - 40px);
 }
}
@media (min-width: 980px){
	.layout-shell > main.container{}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 199px;
    /* max-width: 100vw; */
 }}
@media (min-width: 1000px){
	.layout-shell > main.container{}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 198px;
    /* max-width: 100vw; */
    height: calc(100% - 36px);
 }}


@media (min-width: 1100px){
	.layout-shell > main.container{}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 250px;
    /* max-width: 100vw; */
 }}






@media (min-width: 1024px){
  .layout-shell{
    /* display:flex; */
    width: 100%;
    align-items:flex-start;
    /* gap: 18px; */
    position: fixed;
    max-width: calc(100% - 20px);
    top: 210px;
    /* max-width: 100vw; */
    /* display: flex; */
    /* align-items: flex-start; */
    gap: 10px;
    /* position: fixed; */
    height: 100%;
  }

  /* Fix container width behavior */
  .layout-shell > main.container{
    flex: 1 1 auto;
    min-width: calc(100% - 340px);
    /* max-height: 1500px; */
    position: relative;
    /* overflow: hidden; */
    height: calc(100vh - 199px);
    overflow-y: scroll;
    margin-top: 10px;
    /* max-height: calc(100% - 200px); */
    /* height: calc(100% - 900px); */
  }

  .desktop-sidebar{
    display:block;
    position: sticky;
    top: 0px;
    width: 320px;
    left: 0px;
    flex: 0 0 320px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    margin: 10px 0px 0px 0px;
  }

  .desktop-sidebar .ds-head{
    background:#ffffff;
    border-radius: 20px;
    padding: 14px 14px 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 10px;
  }
  .desktop-sidebar .ds-title{
    font-weight: 800;
    font-size: 14px;
    color: #121826;
    letter-spacing: .2px;
  }
  .desktop-sidebar .ds-sub{
    margin-top: 2px;
    font-size: 12px;
    color: rgba(18,24,38,.60);
  }

  .desktop-sidebar .ds-nav{
    background: #41414100;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    padding: 10px;
    overflow:auto;
    max-height: calc(100vh - 32px - 84px);
  }

  .ds-nav .side-sec{ padding: 6px 6px 10px; }
  .ds-nav .side-sec + .side-sec{ border-top: 1px solid rgba(0,0,0,.06); }

  .ds-nav .side-sec-h{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 10px 6px;
    font-weight: 800;
    font-size: 12px;
    color:#121826;
    text-transform: none;
  }
  .ds-nav .side-sec-h i{
    width: 18px;
    text-align:center;
    color: rgba(18,24,38,.75);
  }

  .ds-nav .side-sec-b{
    display:flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 10px;
  }

  .ds-nav a.side-link{
    display:flex;
    align-items:center;
    gap: 10px;
    box-shadow: -1px -1px 9px 3px rgb(0 0 0 / 6%);
    background: rgb(255 255 255);
    border-bottom: 1px solid var(--line);
    padding: 15px 9px;
    border-radius: 14px;
    text-decoration:none;
    border: 2px #327db8 solid;
    color: #005ea8;
    border: 2px solid rgba(0,0,0,.06);
    background: rgb(255 255 255);
    transition: transform .18s ease, background .12s ease, border-color .12s ease;
    margin-bottom: 15px;
    box-shadow: -1px -1px 9px 3px rgb(0 0 0 / 20%);
    background: rgb(255 255 255);
    border-bottom: 1px solid var(--line);
  }
  .ds-nav a.side-link i{
    width: 18px;
    text-align:center;
    z-index: 9;
    color: rgb(6 98 170);
  }
  .ds-nav a.side-link:hover{
	  color:white;
	  border: 2px white solid;
	  background: rgb(0 0 0 / 44%);
	  border-color: rgba(0,0,0,.10);
	  transform: translateY(-1px);
	 }
  .ds-nav a.side-link.is-active{
    background: rgb(51 48 48);
    border-color: rgb(223 218 218);
    border: 2px #327db8 solid;
    background: rgb(0 0 0 / 44%);
  }
  .ds-nav a.side-link.is-active span{
    font-weight: 800;
    color: white;
  }
}


/* KARETA PATCH v1.5.9: hide desktop sidebar header (ds-head) */
.desktop-sidebar .ds-head{display:none !important;}
@media (min-width: 1300px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    max-width: calc(100% - 20px);
    top: 260px;
    /* max-width: 100vw; */
	}}
@media (min-width: 1600px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    max-width: calc(100% - 20px);
    top: 260px;
    /* max-width: 100vw; */
	}}




@media (max-width: 160px){
.layout-shell > main.container{
	/* display: flex; */
	min-width: calc(100% - 339px);
	flex: 1 1 auto;
	min-width: calc(100% - 280px);
	/* max-height: 1500px; */
	/* position: absolute; */
	/* overflow: hidden; */
	height: calc(100vh - 302px);
	padding: 15px;
	overflow-y: scroll;
	margin-top: 10px;
	height: calc(100% - 70px);
	/* height: 1100px; */
	flex: 1 1 auto;
	
	}}
@media (max-width: 860px){
.layout-shell > main.container{
	/* display: flex; */
	min-width: calc(100% - 339px);
	flex: 1 1 auto;
	min-width: calc(100% - 280px);
	/* max-height: 1500px; */
	/* position: absolute; */
	/* overflow: hidden; */
	height: calc(100vh - 302px);
	padding: 15px;
	overflow-y: scroll;
	margin-top: 10px;
	height: calc(100% - 70px);
	/* height: 1100px; */
	flex: 1 1 auto;
	
	}}






@media (max-width: 1300px){
.layout-shell > main.container{
	/* display: flex; */
	min-width: calc(100% - 339px);
	flex: 1 1 auto;
	min-width: calc(100% - 280px);
	/* max-height: 1500px; */
	/* position: absolute; */
	/* overflow: hidden; */
	height: calc(100vh - 302px);
	padding: 15px;
	overflow-y: scroll;
	margin-top: 10px;
	min-height: calc(100% - 330px);
	/* height: 1100px; */
	flex: 1 1 auto;
	min-width: calc(100% - 330px);
	/* max-height: 1500px; */
	position: relative;
	/* overflow: hidden; */
	height: calc(100vh - 90px);
	overflow-y: scroll;
	margin-top: 20px;
	max-height: calc(100% - 165px);
	}
}



@media (max-width: 1180px){
    .tb-chip--a11y {
        display: none;
      
    }


}
/* ===== Visual distinction: compact blocks containing documents/external resources ===== */
.db-block.db-block-compact.db-block--links{
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.db-block.db-block-compact.db-block--links .db-sub{
  opacity: .95;
  color: #474747;
  font-weight: 700;
}
.db-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  text-decoration: none;
}
.db-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.db-link--external::after{ content: "↗"; font-size: 12px; opacity: .85; }
.db-link--pdf::before{ content: "PDF"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--doc::before{ content: "DOC"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.db-link--xls::before{ content: "XLS"; font-size: 11px; letter-spacing: .08em; opacity: .85; }
.filters .chip.is-active{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}



/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}



@media (min-width: 1300px){
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 10px;
    position: fixed;
    max-width: calc(100% - 20px);
    top: 245px;
    /* max-width: 100vw; */
  }
}



@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.10);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgba(255,255,255,.88);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== Contacts page (UMO-like) ===== */
.contacts-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

@media (min-width: 100px){.nav-fallback, .nav-burger {
        display: flex;
        position: absolute;
        right: 10px;
        top: 7px;
        box-shadow: none;
        border: none;
        background: none;
    }
}
@media (min-width: 700px){.nav-fallback, .nav-burger {
        display: flex;
        position: absolute;
        right: 17px;
        top: 8px;
        box-shadow: none;
        border: none;
        background: none;
    }
}
@media (min-width: 980px){.nav-fallback, .nav-burger {
        display: none;
	
        position: absolute;
        right: 10px;
        top: 25px;
        box-shadow: none;
        border: none;
        background: none;
    }
}
@media (max-width: 920px){
  .contacts-grid{ grid-template-columns: 1fr; }
}
.contacts-card .contacts-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
}
@media (max-width: 520px){
  .contacts-card .contacts-kv{ grid-template-columns: 1fr; }
}
.contacts-k{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.contacts-v{ font-size: 15px; line-height: 1.4; }
.contacts-links{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-map-frame{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
}
.contacts-map{
  overflow: hidden;
}
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px 12px;
  background: rgb(255 255 255);
}
.faq-q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}@media (min-width: 1324px) {


.layout-shell {
    top: 200px;
    max-width: 1600px;
    width: 100%;
}

.tb-group[aria-label="Accessibility"] {
    display: none;
}

}





.faq-q::-webkit-details-marker{ display:none; }
.faq-a{
  margin-top: 8px;
  color: rgb(0 0 0 / 88%);
}
.contacts-form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px){
	p.mono-text,.brand-title strong,.brand-title span {
    display: none;
}
	    .layout-shell > main.container {
      min-width: calc(100% - 339px);
      flex: 1 1 auto;
      min-width: calc(100% - 280px);
      height: calc(100vh - 50px);
      padding: 10px;
      overflow-y: scroll;
      padding-top: 90px;
      min-height: calc(100% - 50px);
      padding: 15px;
      padding-top: 90px;
      }
   }
@media (min-width: 680px){
	p.mono-text {
    display: inline;
}
 }




@media (max-width: 820px){
  .contacts-form .form-grid{ grid-template-columns: 1fr; }
}
.field--full{ grid-column: 1 / -1; }
.field input, .field textarea{
  width: 100%;
}
.form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
a.tile:before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 145, 0, .26), transparent 60%);
    transform: rotate(10deg);
    pointer-events: none;
}

a.tile {
    position: relative;
    overflow: hidden;
    box-shadow: -1px -1px 9px 3px rgb(0 0 0 / 16%);
    background: rgb(255 255 255);
    border-bottom: 1px solid var(--line);
}


nav#desktopSidebarMenu {}

a.side-link:before {
    content: "";
    position: absolute;
    inset: 0px -210px 0 -53px;
    width: 91px;
    border-radius: 32px;
    height: 71px;
    background: radial-gradient(circle at -121% 66%, rgb(0 0 0), #d1c9c9ad 60%);
    transform: rotate(
180deg);
    pointer-events: none;
}

a.side-link {
    position: relative;
    overflow: hidden;
}



/* =========================================================
   Teaching staff page (#/teaching-staff)
   Scoped + safe: targets only elements used on this page
   ========================================================= */

:root{
  --ts-bg: rgba(255,255,255,.06);
  --ts-br: rgba(255,255,255,.12);
  --ts-br-2: rgba(255,255,255,.18);
  --ts-txt: rgba(255,255,255,.92);
  --ts-muted: rgba(255,255,255,.65);
  --ts-accent: rgba(255,140,0,.95);
  --ts-shadow: 0 12px 34px rgba(0,0,0,.22);
}

/* Card “frame” refinement */
.db-block[aria-label="Педагогический состав"] .card.card-pad{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--ts-br);
  box-shadow: var(--ts-shadow);
  border-radius: 18px;
}

/* Head grid inside hero */
.db-block[aria-label="Педагогический состав"] .ac-hero-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

/* Hero badge */
.db-block[aria-label="Педагогический состав"] .meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--ts-br);
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  color: var(--ts-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Педагогический состав"] .meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.db-block[aria-label="Педагогический состав"] .chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--ts-br);
  background: rgba(0,0,0,.10);
  color: rgb(0 0 0 / 65%);
  font-size: 12px;
}

/* Hero art */
.db-block[aria-label="Педагогический состав"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--ts-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.10));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.db-block[aria-label="Педагогический состав"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ts-br);
  background: rgba(0,0,0,.14);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-size: 22px;
}

/* Divider */
.db-block[aria-label="Педагогический состав"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ts-br-2), transparent);
  margin: 14px 0;
}

/* Inputs (search/select) – only if your global .input/.select exist, this improves them */
#tsSearch.input,
#tsCategory.select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgb(0 0 0 / 12%);
  /* background: rgb(0 0 0); */
  color: rgb(0 0 0 / 92%);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
#tsSearch.input::placeholder{ color: rgba(255,255,255,.45); }

#tsSearch.input:focus,
#tsCategory.select:focus{
  border-color: rgba(255,140,0,.55);
  box-shadow: 0 0 0 4px rgba(255,140,0,.16);
}

/* Buttons (optional refinement) */
#tsReset.btn{
  border-radius: 14px;
  border: 1px solid var(--ts-br);
  background: rgba(0,0,0,.10);
  color: var(--ts-txt);
  padding: 10px 12px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#tsReset.btn:hover{
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* Table container */
#tsTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--ts-br);
  background: rgba(0,0,0,.10);
}

/* Sticky header */
#tsTable thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ts-br);
  padding: 12px 12px;
  white-space: nowrap;
}

/* Cells */
#tsTable tbody td{
  padding: 12px 12px;
  color: rgb(0 0 0 / 86%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
}
#tsTable tbody tr:nth-child(odd) td{
  background: rgba(255,255,255,.03);
}
#tsTable tbody tr:hover td{
  background: rgba(255,140,0,.07);
}

/* Category column emphasis (4th column) */
#tsTable tbody td:nth-child(4){
  color: rgb(0 0 0);
  font-size: 13px;
}
#tsTable tbody td:nth-child(4):not(:empty){
  position: relative;
}
#tsTable tbody td:nth-child(4):not(:empty)::before{
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  margin-right: 8px;
  transform: translateY(-1px);
  background: rgba(255,140,0,.85);
  box-shadow: 0 0 0 3px rgba(255,140,0,.12);
}

/* Make table text more compact on small screens */
@media (max-width: 880px){
  .db-block[aria-label="Педагогический состав"] .ac-hero-grid{
    grid-template-columns: 1fr;
  }
  .db-block[aria-label="Педагогический состав"] .ac-hero-art{
    width: 78px; height: 78px; min-width: 78px;
    justify-self: start;
  }
}

/* Mobile: transform table into row-cards */
@media (max-width: 640px){
  #tsTable thead{ display:none; }
  #tsTable, #tsTable tbody, #tsTable tr, #tsTable td{ display:block; width:100%; }
  #tsTable tbody tr{
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  #tsTable tbody td{
    border-bottom: none;
    padding: 10px 12px;
    background: transparent !important;
  }
  #tsTable tbody td::before{
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 4px;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  /* add spacing between pseudo-cards */
  #tsTable tbody tr{
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
  }
}

/* Optional: smooth scrollbars for table wrapper if present */
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]::-webkit-scrollbar{
  height: 10px;
}
.db-block[aria-label="Педагогический состав"] .card.card-pad > div[style*="overflow:auto"]::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}



.db-block[aria-label="Библиотека"] .card.card-pad{
  border: 1px solid var(--lib-br);
  border-radius: 18px;
  box-shadow: var(--lib-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
}

.db-block[aria-label="Библиотека"] .ac-hero{
  position: relative;
  overflow: hidden;
}

.db-block[aria-label="Библиотека"] .ac-hero::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255,140,0,.20), transparent 70%);
  pointer-events:none;
}

.db-block[aria-label="Библиотека"] .ac-hero-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.db-block[aria-label="Библиотека"] .h3{
  color: var(--lib-txt);
}

.db-block[aria-label="Библиотека"] .muted{
  color: var(--lib-muted);
}

.db-block[aria-label="Библиотека"] .meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-block[aria-label="Библиотека"] .chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--lib-br);
  background: rgba(0,0,0,.03);
  color: var(--lib-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Библиотека"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--lib-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display:grid;
  place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.db-block[aria-label="Библиотека"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--lib-br);
  background: rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.db-block[aria-label="Библиотека"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lib-br2), transparent);
  margin: 14px 0;
}

/* Tiles refinement (only inside Library page) */
.db-block[aria-label="Библиотека"] .tile{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.72);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.db-block[aria-label="Библиотека"] .tile:hover{
  transform: translateY(-1px);
  border-color: rgba(255,140,0,.28);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.db-block[aria-label="Библиотека"] .tile--soft{
  background: rgba(255,255,255,.62);
}

.db-block[aria-label="Библиотека"] .tile h3{
  margin: 0 0 8px;
  color: var(--lib-txt);
}

.db-block[aria-label="Библиотека"] .tile p{
  margin: 0;
  color: var(--lib-muted);
  line-height: 1.5;
}

/* Lists inside tiles */
.db-block[aria-label="Библиотека"] .list{
  margin: 0;
  padding-left: 18px;
  color: var(--lib-muted);
}
.db-block[aria-label="Библиотека"] .list li{
  margin: 6px 0;
}
.db-block[aria-label="Библиотека"] .mono{
  color: rgba(0,0,0,.72);
}

/* Responsive */
@media (max-width: 880px){
  .db-block[aria-label="Библиотека"] .ac-hero-grid{
    grid-template-columns: 1fr;
  }
  .db-block[aria-label="Библиотека"] .ac-hero-art{
    width: 78px;
    height: 78px;
    min-width: 78px;
    justify-self: start;
  }
}
.layout-shell-center-migrace {
    display: flex;
    width: 100vw;
    justify-content: center;
    width: 100%;
    /* position: absolute; */
    height: 100%;
    align-content: center;
    flex-wrap: wrap;
}
/* =========================================================
   Methodical Service page (#/methodical-service)
   Scoped: .ms-page
   ========================================================= */

.ms-page{
  --ms-br: rgba(0,0,0,.12);
  --ms-br2: rgba(0,0,0,.18);
  --ms-txt: rgba(0,0,0,.92);
  --ms-muted: rgba(0,0,0,.62);
  --ms-bg: rgba(255,255,255,.92);
  --ms-bg2: rgba(255,255,255,.86);
  --ms-soft: rgba(0,0,0,.03);
  --ms-accent: rgba(255,140,0,.95);
  --ms-shadow: 0 12px 34px rgba(0,0,0,.12);
}

/* Cards */
.ms-page .card.card-pad{
  border: 1px solid var(--ms-br);
  border-radius: 18px;
  background: var(--ms-bg);
  box-shadow: var(--ms-shadow);
}

























.card.card-pad.ac-hero, .card.card-pad {
    position: relative;
    /* top: 300px; */
    background: white;
    margin-bottom: 15px;
}






div#topNavMount {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
    align-content: center;
}
div#topNavMount {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    align-content: flex-end;
    flex-wrap: nowrap;
    margin: 0px;
    margin-top: 20px;
}
div#abiturChipSort {}img.ac-thumb-img {
    display: inline-block;
    margin-top: 0px;
}

.ac-desc {
    text-align: left;
    line-height: 9px;
    padding: 0px 10px;
    height: 20px;
    font-size: 8px;
    overflow: hidden;
}

.ac-dur {
    text-align: left;
    padding-top: 10px;
    color: black;
    font-weight: 700;
}

.ac-thumb-img-list {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-direction: row;
    justify-content: center;
}

.ac-thumb-img-list-text {
    text-align: left;
    padding-bottom: 10px;
}

h4.ac-title {}

.ac-thumb {
    margin-right: 20px;
}

.ac-code {
    display: inline-block;
    padding-left: 10px;
}













.ms-hero{ overflow:hidden; }
.ms-hero-grid{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
.ms-kicker{ display:flex; flex-wrap:wrap; gap:8px; }

.ms-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--ms-br);
  background: rgba(0,0,0,.03);
  color: var(--ms-txt);
  font-size: 12px;
  line-height: 1;
}
.ms-chip--muted{ color: var(--ms-muted); }

.ms-page .h3{ color: var(--ms-txt); margin: 0; }
.ms-page .muted{ color: var(--ms-muted); line-height: 1.55; }

.ms-actions{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ms-actions .btn{ border-radius: 14px; }
.ms-actions .btn.is-ok{ box-shadow: 0 0 0 4px rgba(255,140,0,.16); }

.ms-hero-aside{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.ms-hero-art{
  width: 100%;
  height: 120px;
  border-radius: 18px;
  border: 1px solid var(--ms-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display:grid;
  place-items:center;
}
.ms-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--ms-br);
  background: rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.ms-hero-note{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  padding: 12px 12px;
}
.ms-hero-note-ttl{
  font-weight: 700;
  color: rgba(0,0,0,.78);
  margin-bottom: 6px;
}
.ms-hero-note-txt{
  color: var(--ms-muted);
  line-height: 1.5;
  font-size: 13px;
}

/* Quote */
.ms-quote{
  margin-top: 14px;
  border: 1px solid var(--ms-br);
  background: linear-gradient(180deg, rgba(255,140,0,.10), rgba(0,0,0,.02));
  border-radius: 16px;
  padding: 12px 12px;
  display:flex;
  gap: 10px;
}
.ms-quote-mark{
  font-size: 34px;
  line-height: 1;
  color: rgba(255,140,0,.75);
  transform: translateY(-2px);
}
.ms-quote-text{
  color: rgba(0,0,0,.84);
  line-height: 1.55;
  font-weight: 600;
}
.ms-quote-author{
  margin-top: 6px;
  color: rgba(0,0,0,.58);
  font-size: 13px;
}

/* Body layout */
.ms-body{ margin-top: 14px; }
.ms-layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

/* TOC */
.ms-toc{
  position: sticky;
  top: 12px;
  align-self: start;
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  padding: 12px 12px;
}
.ms-toc-title{
  font-weight: 700;
  color: rgba(0,0,0,.78);
  margin-bottom: 10px;
}
.ms-toc-nav{ display:flex; flex-direction: column; gap: 6px; }
.ms-toc-link{
  text-decoration: none;
  color: rgba(0,0,0,.72);
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.ms-toc-link:hover{
  background: rgba(255,140,0,.10);
  border-color: rgba(255,140,0,.18);
  transform: translateY(-1px);
}

/* Sections */
.ms-content{ min-width: 0; }
.ms-sec{ padding: 6px 2px 10px; }
.ms-h4{
  margin: 0 0 10px;
  font-size: 16px;
  color: rgba(0,0,0,.86);
  letter-spacing: .01em;
}
.ms-page .p{ color: rgba(0,0,0,.78); line-height: 1.65; margin: 0 0 10px; }

.ms-list, .ms-ol{
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,.78);
  line-height: 1.65;
}
.ms-list li, .ms-ol li{ margin: 6px 0; }

.ms-callout{
  display:flex;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--ms-br);
  background: rgba(0,0,0,.02);
}
.ms-callout-ico{
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--ms-br);
  background: rgba(255,140,0,.10);
  display:grid;
  place-items:center;
  color: rgba(0,0,0,.82);
}
.ms-callout-txt{ color: rgba(0,0,0,.78); line-height: 1.6; }

/* Cards inside sections */
.ms-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.ms-card{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  padding: 12px 12px;
}
.ms-card-ttl{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}

/* Two columns for directions */
.ms-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ms-split-card{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  padding: 12px 12px;
}
.ms-split-ttl{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}

/* Principles badges */
.ms-badges{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.ms-badge{
  border: 1px solid var(--ms-br);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  padding: 12px 12px;
  display:flex;
  align-items: baseline;
  gap: 10px;
}
.ms-badge b{ color: rgba(0,0,0,.82); }
.ms-badge span{ color: rgba(0,0,0,.66); line-height: 1.45; }
.ms-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,140,0,.85);
  box-shadow: 0 0 0 3px rgba(255,140,0,.12);
  transform: translateY(2px);
}

/* Responsive */
@media (max-width: 980px){
  .ms-hero-grid{ grid-template-columns: 1fr; }
  .ms-layout{ grid-template-columns: 1fr; }
  .ms-toc{ position: relative; top: auto; }
  .ms-grid-3{ grid-template-columns: 1fr; }
  .ms-split{ grid-template-columns: 1fr; }
  .ms-badges{ grid-template-columns: 1fr; }
}



/* =========================================================
   UMO composition page (#/umo/sostav-umo)
   Scoped: affects only aria-label="Состав УМО"
   ========================================================= */



.db-block[aria-label="Состав УМО"] .card.card-pad{
  border: 1px solid var(--umo-br);
  border-radius: 18px;
  box-shadow: var(--umo-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  margin-bottom: 20px;
}

.db-block[aria-label="Состав УМО"] .ac-hero-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.db-block[aria-label="Состав УМО"] .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.db-block[aria-label="Состав УМО"] .meta-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--umo-br);
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  color: var(--umo-muted);
  font-size: 12px;
  line-height: 1;
}

.db-block[aria-label="Состав УМО"] .ac-hero-art{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--umo-br);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,140,0,.22), rgba(0,0,0,.04));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.db-block[aria-label="Состав УМО"] .ac-hero-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--umo-br);
  background: rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.82);
  font-size: 22px;
}

.db-block[aria-label="Состав УМО"] .hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--umo-br2), transparent);
  margin: 14px 0;
}

/* Leader */
.db-block[aria-label="Состав УМО"] .umo-leader{
  display:flex;
  justify-content:center;
  margin-top: 8px;
}
.db-block[aria-label="Состав УМО"] .umo-person{
  display:flex;
  gap: 14px;
  align-items:center;
}
.db-block[aria-label="Состав УМО"] .umo-person--leader{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,140,0,.22);
  background: rgba(255,140,0,.06);
  max-width: 860px;
  width: 100%;
}

.db-block[aria-label="Состав УМО"] .umo-avatar{
  width: 86px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--umo-br);
  background: rgba(0,0,0,.03);
  flex: 0 0 auto;
}
.db-block[aria-label="Состав УМО"] .umo-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.db-block[aria-label="Состав УМО"] .umo-name{
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--umo-txt);
  line-height: 1.2;
}
.db-block[aria-label="Состав УМО"] .umo-role{
  margin-top: 6px;
  color: var(--umo-muted);
  line-height: 1.35;
}

/* Team */
.db-block[aria-label="Состав УМО"] .umo-team-head{
  margin-bottom: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-card{
  border: 1px solid var(--umo-br);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.78);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.db-block[aria-label="Состав УМО"] .umo-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,140,0,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.db-block[aria-label="Состав УМО"] .umo-card .umo-avatar{
  width: 100%;
  height: 210px;
  border-radius: 16px;
  margin-bottom: 10px;
}

/* Contacts */
.db-block[aria-label="Состав УМО"] .umo-contact-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.db-block[aria-label="Состав УМО"] .umo-contact{
  border: 1px solid var(--umo-br);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.78);
}
.db-block[aria-label="Состав УМО"] .umo-contact-ttl{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0,0,0,.82);
  margin-bottom: 8px;
}
.db-block[aria-label="Состав УМО"] .umo-contact-val{
  color: var(--umo-muted);
  line-height: 1.45;
}
.db-block[aria-label="Состав УМО"] .umo-link{
  color: rgba(0,0,0,.86);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,140,0,.55);
}
.db-block[aria-label="Состав УМО"] .umo-link:hover{
  border-bottom-style: solid;
}

/* Responsive */
@media (max-width: 980px){
  .db-block[aria-label="Состав УМО"] .umo-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-block[aria-label="Состав УМО"] .umo-contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .db-block[aria-label="Состав УМО"] .ac-hero-grid{ grid-template-columns: 1fr; }
  .db-block[aria-label="Состав УМО"] .ac-hero-art{ justify-self: start; width: 78px; height: 78px; min-width: 78px; }
  .db-block[aria-label="Состав УМО"] .umo-grid{ grid-template-columns: 1fr; }
  .db-block[aria-label="Состав УМО"] .umo-person{ align-items: flex-start; }
  .db-block[aria-label="Состав УМО"] .umo-avatar{ width: 74px; height: 74px; border-radius: 16px; }
  .db-block[aria-label="Состав УМО"] .umo-card .umo-avatar{ height: 190px; }
}

/* =====================================================================
   Courses modal — content blocks inside .card-modal -> .cm-grid
   (Описание / Программа / Материалы)
   ===================================================================== */

/* Make columns stack nicely and create consistent vertical rhythm */
#modalBackdrop .cm-grid{align-items:start;}
#modalBackdrop .cm-grid > div{display:flex; flex-direction:column; gap:14px;}

/* Generic block card */
#modalBackdrop .cb{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

#modalBackdrop .cb-title{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap:8px;
}

#modalBackdrop .cb-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
}

#modalBackdrop .cb-text-body{
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  font-size: 14px;
}

/* Bullets */
#modalBackdrop .cb-ul{list-style:none; padding:0; margin:0; display:grid; gap:8px;}
#modalBackdrop .cb{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 10px 26px rgba(17,24,39,.10);
}
#modalBackdrop .cb-title{
  color: rgba(17,24,39,.92);
  display:flex;
  align-items:center;
  gap:10px;
}
#modalBackdrop .cb-title::before{
  content:"05a"; /* fa-circle-info */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  color: var(--accent, #ff7a00);
  font-size: 14px;
}
#modalBackdrop .cb-text .cb-title::before{ content:"0f6"; } /* fa-file-lines */
#modalBackdrop .cb-bullets .cb-title::before{ content:"0ae"; } /* fa-list-check */
#modalBackdrop .cb-gallery .cb-title::before{ content:"03e"; } /* fa-image */
#modalBackdrop .cb-ul li{
  padding-left: 28px;
  position:relative;
  color: rgba(17,24,39,.86);
  line-height: 1.55;
}
#modalBackdrop .cb-ul li::before{
  content:"00c"; /* fa-check */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  left:0;
  top:2px;
  color: var(--accent, #ff7a00);
  opacity:.95;
}
#modalBackdrop .cb-text-body,
#modalBackdrop .cm-desc,
#modalBackdrop .gal-hint{
  color: rgba(17,24,39,.74);
}

/* Gallery */
#modalBackdrop .cb-gallery .gal{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
#modalBackdrop .cb-gallery .gal-track{gap:12px; padding: 12px;}
#modalBackdrop .cb-gallery .gal-slide{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
#modalBackdrop .cb-gallery .gal-slide img{
  display:block;
  width:100%;
  height: 180px;
  object-fit: cover;
}
#modalBackdrop .cb-gallery .gal-hint,
#modalBackdrop .gal-hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

/* Similar cards inside modal */
#modalBackdrop .similar-grid{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px;}
#modalBackdrop .similar-card{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
#modalBackdrop .similar-card:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05);}
#modalBackdrop .similar-card .thumb{width:46px; height:46px; border-radius: 12px; overflow:hidden; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); flex: 0 0 46px;}
#modalBackdrop .similar-card .thumb img{width:100%; height:100%; object-fit: cover; display:block;}
#modalBackdrop .similar-card h4{margin:0; font-size: 13px; line-height:1.25; color: rgba(255,255,255,.90);}
#modalBackdrop .similar-card .small{margin-top:4px; font-size: 12px; color: rgba(255,255,255,.62);}

@media (max-width: 980px){
  #modalBackdrop .similar-grid{grid-template-columns: 1fr;}
}

@media (max-width: 640px){
  #modalBackdrop .cb{padding: 12px; border-radius: 14px;}
  #modalBackdrop .cb-gallery .gal-slide img{height: 150px;}
}

a.dt-link, a, a.dt-link {
    text-decoration: none!important;
}


/* dpx cards (global) */
.pageDocsBlock{ margin-top: 14px; }
.pageDocsHead{ display:flex; align-items:center; justify-content:space-between; margin: 6px 0 10px; }
.pageDocsTitle{ margin:0; font-size: 16px; line-height: 1.25; }
.pageDocsGrid{ display:grid; gap:12px; grid-template-columns: repeat(3, minmax(250px, 1fr)); }
@media (max-width: 980px){ .pageDocsGrid{ grid-template-columns: repeat(2, minmax(250px, 1fr)); } }
@media (max-width: 640px){ .pageDocsGrid{ grid-template-columns: 1fr; } }
.dpxWrap{ max-width: 1120px; margin: 0 auto; }
.dpxTop{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.dpxSearch{ min-width: 260px; flex: 1 1 320px; display:flex; gap:10px; align-items:center; }
.dpxSearch input{ width:100%; }
.dpxFilters{ display:flex; flex-wrap:wrap; gap:8px; }
.dpxChip{ border-radius: 999px; padding: 7px 10px; border: 1px solid rgba(15,23,42,.10); background: rgba(15,23,42,.04); cursor:pointer; font-size: 13px; }
.dpxChip[aria-pressed="true"]{ background: rgba(15,23,42,.10); border-color: rgba(15,23,42,.18); }

.dpxCard{ border: 1px solid rgba(15,23,42,.10); border-radius: 16px; overflow:hidden; background: #fff;  min-height: 250px; display:flex; flex-direction:column; }
.dpxCardHead{ display:flex; gap:12px; padding: 12px 12px 8px; align-items:flex-start; }
.dpxIco{ width:42px; height:42px; border-radius: 14px; display:grid; place-items:center; flex:0 0 auto;}
.dpxTitle{ margin:0; font-size: 14px; line-height: 1.3; color: #0f172a; }
.dpxMeta{ margin-top:6px; display:flex; flex-wrap:wrap; gap:6px; }
.dpxTag{ display:inline-flex; align-items:center; padding: 4px 8px; border-radius: 999px;}
.dpxBody{ padding: 0 12px 12px;  flex:1 1 auto; }
.dpxActions{ display:flex; gap:8px; justify-content:flex-end; margin-top: 10px; }
html.dpxModalOpen{ overflow:hidden; }

#dpxDocModalHeader .dpxHTitle{ margin:0; font-size: 15px; line-height: 1.25; }
#dpxDocModalHeader .dpxHSub{ margin:6px 0 0; font-size: 12px; opacity: .88; }
#dpxDocModalBody{ padding: 14px 16px; flex:1 1 auto; overflow:auto; background:#fff; }
#dpxDocFrame{ width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; }
#dpxDocFallback{ display:none; padding: 10px 0 0; color: rgba(15,23,42,.85); }
#dpxDocFallback a{ word-break: break-all; }
.dpxWrap{ max-width: 1120px; margin: 0 auto; }
.mm-search{ position: relative; }
.mm-search > span{ position:absolute; left:14px; top:50%; transform:translateY(-50%); opacity:.75; }
  .dpxGrid{ grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .dpxGrid{grid-template-columns: repeat(2, minmax(250px, 1fr));}

.dpxCardHead{ display:flex; gap:12px; padding: 12px 12px 8px; align-items:flex-start; }
.dpxIco{ width:42px; height:42px; border-radius: 14px; display:grid; place-items:center; flex:0 0 auto;}
.dpxTitle{ margin:0; font-size: 14px; line-height: 1.3; color: #0f172a; }
.dpxMeta{ margin-top:6px; display:flex; flex-wrap:wrap; gap:6px; }

.dpxBody{ padding: 0 12px 12px; flex:1 1 auto; display:flex; flex-direction:column; }
.dpxActions{ margin-top:auto; display:flex; gap:10px; justify-content:flex-end; }
.dpxFModal[hidden]{ display:none !important; }

.dpxFTitle{ font-weight: 800; color:#0f172a; }
.dpxFBody{ padding: 12px 14px 16px; }
.dpxFilters{ display:flex; flex-wrap:wrap; gap:8px; max-height: 55vh; overflow:auto; padding-right:6px; }
	.dpxChip{ border-radius: 999px; padding: 7px 10px; border: 1px solid rgba(15,23,42,.10); background: rgba(15,23,42,.04);}
.dpxChip[aria-pressed="true"]{ background: rgba(15,23,42,.10); border-color: rgba(15,23,42,.18); }


/* === Admin Auth Modal (AJAX) === */

#adminAuthModal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55);z-index:9999}
#adminAuthModal.is-open{display:flex}
#adminAuthModal .auth-card{width:min(460px,100%);background:rgba(20,20,24,.92);border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.5);backdrop-filter:blur(10px);padding:18px}
#adminAuthModal .auth-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
#adminAuthModal .auth-title{font-size:18px;font-weight:800;margin:0}
#adminAuthModal .auth-close{background:transparent;border:1px solid rgba(255,255,255,.16);color:inherit;border-radius:10px;padding:8px 10px;cursor:pointer}
#adminAuthModal .auth-row{display:flex;flex-direction:column;gap:6px;margin:10px 0}
#adminAuthModal label{font-size:12px;opacity:.85}
#adminAuthModal input{width:100%;padding:12px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit;outline:none}
#adminAuthModal input:focus{border-color:rgba(255,255,255,.28)}
#adminAuthModal .auth-error{margin-top:6px;color:#ff8a8a;font-size:12px;min-height:16px}
#adminAuthModal .auth-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:14px}
#adminAuthModal .auth-btn{border-radius:12px;padding:10px 14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.10);color:inherit;cursor:pointer}
#adminAuthModal .auth-btn.primary{background:rgba(255,140,0,.18);border-color:rgba(255,140,0,.35)}
#adminAuthModal .auth-btn.is-loading{opacity:.75;pointer-events:none}

}}

.dt-item {}

div#desktopMenuTree {}

a.dt-link {
    padding: 0px 10px;
    font-weight: 500;
}

span.m-label {
    font-weight: 700;
}


@media (min-width: 890px){
	.layout-shell > main.container {
        /* display: flex; */
        min-width: calc(100% - 339px);
        flex: 1 1 auto;
        min-width: calc(100% - 280px);
        /* max-height: 1500px; */
        /* position: absolute; */
        /* overflow: hidden; */
        height: calc(100vh - 302px);
        padding: 15px;
        overflow-y: scroll;
        margin-top: 10px;
        min-height: calc(100% - 330px);
	}
  .layout-shell{
    display:flex;
    align-items:flex-start;
    gap: 18px;
    position: fixed;
    /* max-width: calc(100% - 260px); */
    top: 70px;
    /* max-width: 100vw; */
    /* overflow: scroll; */
    max-height: calc(100% - 40px);
 }
}

a.side-link {
    font-weight: 700;
}
section.db-block.db-block-compact {
    padding-top: 20px;
}

/* =========================================================
   PREMIUM PATCH — Glass UI v2 + Brand Glow + Depth Layers
   (append-only overrides; safe for existing SPA structure)
   ========================================================= */

:root{
  --glass-bg: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.45);
  --glass-shadow: 0 20px 60px rgba(12,18,28,.14);
  --glass-inset: inset 0 1px 0 rgba(255,255,255,.6);
  --blur-strong: blur(18px) saturate(180%);
}

/* Apple-like depth layers */
.depth-1{ box-shadow: var(--shadow-1) !important; }
.depth-2{ box-shadow: var(--shadow-2) !important; }
.depth-3{ box-shadow: var(--shadow-3) !important; }
.depth-4{ box-shadow: var(--shadow-4) !important; }

.layer-floating{
  transform: translateZ(0);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}
.layer-floating:hover{ transform: translateY(-3px); }

/* Brand glow helper (optional class to add in markup when you want) */
.glow-brand{ position:relative; }
.glow-brand::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(500px 240px at 30% 20%, rgba(255,122,24,.45), transparent 60%),
    radial-gradient(500px 260px at 70% 30%, rgba(42,99,255,.35), transparent 60%);
  filter: blur(60px);
  opacity:.35;
  z-index:-1;
  pointer-events:none;
}

/* Glass cards v2 */
.card{
  position:relative;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(12,18,28,.20), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

/* Micro-shine on cards (luxury highlight) */
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.40), transparent 42%);
  opacity:.40;
  pointer-events:none;
}

/* Anti-corruption + specialties: stronger identity */
.ac-card, .spc-card, .news-card, .featured-item, .tile{
  background: rgba(255,255,255,.62) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
}

.ac-card, .spc-card{
  box-shadow: var(--shadow-2) !important;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}
.ac-card:hover, .spc-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-3) !important;
}

/* Buttons: premium glass pills */
.btn{
  border-radius: 999px !important;
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.40) !important;
  box-shadow: var(--shadow-1) !important;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s cubic-bezier(.22,.61,.36,1), filter .2s cubic-bezier(.22,.61,.36,1);
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2) !important;
}
.btn:active{ transform: translateY(0px) scale(.99); }

.btn-primary{
  background: linear-gradient(135deg, rgba(255,122,24,.68), rgba(42,99,255,.55)) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 16px 44px rgba(255,122,24,.18), 0 12px 34px rgba(12,18,28,.14) !important;
}

/* Modal: premium glass fullscreen */
.modal{
  background: rgba(255,255,255,.74) !important;
  border: 1px solid rgba(255,255,255,.46) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 40px 120px rgba(0,0,0,.25) !important;
}

/* Hero premium boost */
.hero{
  position:relative;
  overflow:hidden;
  padding: 40px 0 20px !important;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(900px 480px at 20% -10%, rgba(255,122,24,.35), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(42,99,255,.28), transparent 60%);
  filter: blur(80px);
  opacity:.50;
  z-index:-1;
  pointer-events:none;
}
.hero h1, .h1{
  letter-spacing:-.03em !important;
  font-weight:900 !important;
}
.hero h1{
  font-size: clamp(28px, 4vw, 48px) !important;
  background: linear-gradient(135deg, #0b0f14, rgba(11,15,20,.72));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Topbar glass (keeps existing layout; only visuals) */
.topbar{
  background: rgba(255,255,255,.62) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.42) !important;
}

/* Optional: subtle glow on primary hero cards */
.card.ac-hero{ isolation:isolate; }
.card.ac-hero::before,
.card.ac-hero::after{
  opacity: .45 !important;
}

/* =========================================================
   APPLIED IMPROVEMENTS — Cards + Container + Topbar Layout
   ========================================================= */

/* Layout rhythm: consistent gutters + premium breathing */
:root{
  --gutter: clamp(14px, 2.6vw, 26px);
  --header-pad-y: clamp(12px, 2.2vw, 18px);
  --header-gap: clamp(10px, 1.6vw, 14px);
  --card-pad: clamp(14px, 2.2vw, 18px);
  --card-gap: clamp(10px, 1.8vw, 14px);
}

/* Container: stable max width + nicer padding */
.container{
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
}

/* Header container: precise spacing and alignment */
.container.topbar-layout{
  padding-top: var(--header-pad-y) !important;
  padding-bottom: var(--header-pad-y) !important;
}

/* Topbar inner spacing: prevent crowding, keep premium rhythm */
.topbar-inner{
  gap: var(--header-gap) !important;
}

/* Brand row: ensure logo/title don’t squeeze awkwardly */
.topbar-row--brand{
  align-items: center !important;
}

/* Brand mark: subtle depth (keeps your SVG) */
.brand-mark{
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 10px 26px rgba(12,18,28,.10) !important;
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* Cards: consistent inner padding helper (do not force if you already use .card-pad) */
.card-pad{
  padding: var(--card-pad) !important;
}

/* Cards: premium edge + softer shine (avoid over-gloss on large surfaces) */
.card{
  border-color: rgba(255,255,255,.42) !important;
}

/* Micro-shine tuned down (looks more Apple, less plastic) */
.card::after{
  opacity: .28 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.36), transparent 46%) !important;
}

/* Hover lift: slightly calmer for readability */
.card:hover{
  transform: translateY(-3px) !important;
}

/* Small cards (news/tile/featured): reduce blur to keep text crisp */
.tile, .news-card, .featured-item{
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
}

/* Navigation pills: make glass consistent */
.nav a, .nav-tree .dt-link, .nav-tree .dt-group{
  background: rgba(255,255,255,.26) !important;
  border-color: rgba(255,255,255,.00) !important;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.nav a:hover, .nav-tree .dt-link:hover, .nav-tree .dt-group:hover{
  background: rgba(255,255,255,.40) !important;
}

/* Buttons: slightly more tactile */
.btn{
  box-shadow: 0 10px 26px rgba(12,18,28,.10) !important;
}
.btn:hover{
  box-shadow: 0 16px 40px rgba(12,18,28,.14) !important;
}

/* Topbar title readability: keep glass but ensure contrast */
.topbar{
  box-shadow: 0 10px 34px rgba(12,18,28,.08) !important;
}
.brand-title span{
  color: rgba(85,101,122,.92) !important;
}

/* 2K/desktop: slightly more breathing for topbar layout */
@media (min-width: 1400px){
  .container.topbar-layout{
    padding-top: calc(var(--header-pad-y) + 2px) !important;
    padding-bottom: calc(var(--header-pad-y) + 2px) !important;
  }
  .topbar-inner{
    gap: calc(var(--header-gap) + 2px) !important;
  }
}

/* Mobile: prevent header overlap with burger */
@media (max-width: 980px){
  .topbar-row--brand{
    padding-right: 44px !important; /* space for burger */
  }
  .nav-burger{
    right: var(--gutter) !important;
    top: calc(var(--header-pad-y) + 2px) !important;
  }
}










.card.card-pad.admission-hero.glass-surface.glow-surface {
    margin-bottom: 20px;
}

a.side-link.is-active {}

.ds-nav a.side-link {
    margin-bottom: 15px;
}

span.m-label {
    padding-left: 10px;
}















































/* Admission page — scoped polish (works with global KARETA premium system) */
.admission-page{position:relative}
.admission-bg{
  position:absolute;
  inset:-60px -20px auto -20px;
  height: 420px;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(760px 460px at 92% 0%, rgba(42,99,255,.14), transparent 55%),
    radial-gradient(760px 460px at 50% 100%, rgba(120,214,255,.10), transparent 55%);
  filter: blur(0px);
  opacity:.95;
}

.admission-head{align-items:flex-start;background: white;padding: 20px;border-radius: 25px;margin: 10px 0;margin-bottom: 25px;}
.admission-title{min-width:0}
.admission-chip{margin-bottom:8px}
.badge--glass{
  border:1px solid rgba(255,122,24,.22);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px) saturate(170%);
  -webkit-backdrop-filter: blur(10px) saturate(170%);
}
.admission-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.admission-hero{border-radius:24px}
.admission-hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:stretch;
}
@media (max-width: 980px){
  .admission-hero-grid{grid-template-columns:1fr}
}

.admission-kpi{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.kpi-item{
  flex:1 1 140px;
  border:1px solid rgba(12,18,28,.10);
  border-radius:16px;
  padding:10px 12px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.kpi-num{font-weight:900; font-size:20px; letter-spacing:.2px}
.kpi-lbl{font-size:12px; color:rgba(15,20,26,.72); font-weight:800}

.admission-search .adm-search-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.admission-search .search{flex:1 1 260px}
.admission-hint{margin-top:8px}

.admission-mini{
  display:flex;
  gap:10px;
  border:1px solid rgba(12,18,28,.10);
  border-radius:16px;
  padding:10px 12px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admission-mini-ic{
  width:36px; height:36px;
  border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,122,24,.20), rgba(42,99,255,.14));
}
.admission-mini-ic i{color: rgba(12,18,28,.78)}
.admission-mini-b{min-width:0}
.admission-mini-b strong{display:block; font-weight:900; letter-spacing:.2px}
.admission-mini-b .small{opacity:.9}

.tile-glass{
  background: rgba(255,255,255,.62) !important;
  border: 1px solid rgba(12,18,28,.10) !important;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.chip-glass{
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(12,18,28,.10) !important;
}

.doc-card .doc-head{display:flex; gap:12px; align-items:flex-start}
.doc-card .doc-ic{
  width:48px; height:48px;
  border-radius:16px;
  display:grid; place-items:center;
  font-weight:900;
  letter-spacing:.4px;
  background: linear-gradient(135deg, rgba(255,122,24,.20), rgba(42,99,255,.14));
  border:1px solid rgba(12,18,28,.10);
}
.doc-card .doc-txt{min-width:0}
.doc-card .doc-title{margin:0; font-size:15px; line-height:1.2}
.doc-card .doc-meta{margin-top:6px; color:rgba(15,20,26,.68); font-size:12.5px; line-height:1.35}
.doc-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.doc-actions .btn{border-radius:999px}

.adm-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.adm-card:hover{
  transform: translateY(-2px);
}
.adm-card.is-hit{
  border-color: rgba(255,122,24,.55) !important;
  box-shadow: 0 18px 42px rgba(255,122,24,.16), 0 14px 34px rgba(12,18,28,.10) !important;
}
.adm-mark{
  background: rgba(255,122,24,.18);
  border-radius: 6px;
  padding: 0 3px;
}

/* ===== Admission modal (Training application) ===== */
.adm-modal{
  position:fixed;
  inset:0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(14px, 3vw, 28px);
}

.adm-modal[hidden]{ display:none !important; }

.adm-modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(10,14,18,.42);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.adm-modal__dialog{
  position:relative;
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  overflow:auto;
  border-radius: 22px;
  padding: clamp(14px, 2.6vw, 18px);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 40px 120px rgba(0,0,0,.26);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.adm-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(12,18,28,.08);
}

.adm-modal__title{ margin: 6px 0 0; }

.adm-form{ padding-top: 4px; }
.adm-form__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adm-field{ display:flex; flex-direction:column; gap:8px; }
.adm-field__lbl{ font-size: 12px; color: rgba(85,101,122,.92); }
.adm-field__in{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(12,18,28,.10);
  background: rgba(255,255,255,.62);
  padding: 12px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.adm-field__in:focus{
  border-color: rgba(255,122,24,.35);
  box-shadow: 0 0 0 4px rgba(255,122,24,.16), inset 0 1px 0 rgba(255,255,255,.75);
}
.adm-field__in:invalid{ }
.adm-field__err{
  display:none;
  font-size: 12px;
  color: rgba(200,48,48,.92);
}

.adm-field--wide{ grid-column: 1 / -1; }

.adm-consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(12,18,28,.08);
}

.adm-form__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px;
  margin-top: 14px;
}

.adm-form__status{
  margin-left:auto;
  font-size: 13px;
  color: rgba(38,132,62,.95);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(38,132,62,.10);
  border: 1px solid rgba(38,132,62,.18);
  display:none;
}

.adm-form.is-error .adm-form__status{
  display:block;
  color: rgba(200,48,48,.92);
  background: rgba(200,48,48,.10);
  border-color: rgba(200,48,48,.18);
}

.adm-form.is-ok .adm-form__status{
  display:block;
}

.adm-note{
  margin-top: 12px;
  opacity:.92;
}

/* FAB */
.adm-fab{
  position: fixed;
  right: clamp(14px, 2.6vw, 22px);
  bottom: clamp(14px, 2.6vw, 22px);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.40);
  background: linear-gradient(135deg, rgba(255,122,24,.72), rgba(42,99,255,.55));
  color: #fff;
  box-shadow: 0 18px 55px rgba(12,18,28,.22), 0 14px 40px rgba(255,122,24,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9998;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.adm-fab:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.adm-fab:active{ transform: translateY(0px) scale(.99); }

/* Mobile layout */
@media (max-width: 720px){
  .adm-form__grid{ grid-template-columns: 1fr; }
  .adm-modal__dialog{ border-radius: 18px; }
  .adm-form__status{ margin-left: 0; width: 100%; text-align:center; }
}

html.is-modal-open, body.is-modal-open{ overflow:hidden; }

/* =========================================================
   Admission — required utility classes (self-contained)
   Fix: page used classes but they had no styles in scoped CSS
   ========================================================= */

/* Local tokens (fallbacks if global tokens absent) */
.admission-page{
  --r2: 16px;
  --r3: 22px;
  --shadow-1: 0 6px 18px rgba(12,18,28,.06);
  --shadow-2: 0 10px 28px rgba(12,18,28,.10);
  --shadow-3: 0 18px 55px rgba(12,18,28,.14);
  --glass-bg: rgba(255,255,255,.56);
  --glass-strong: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.42);
  --blur-strong: blur(18px) saturate(180%);
}

/* Generic glass surface */
.admission-page .glass-surface{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.65);
}

/* Brand glow surface helper */
.admission-page .glow-surface{ position:relative; isolation:isolate; }
.admission-page .glow-surface::before{
  content:"";
  position:absolute;
  inset:-38%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(520px 260px at 28% 18%, rgba(255,122,24,.42), transparent 62%),
    radial-gradient(520px 280px at 72% 22%, rgba(42,99,255,.30), transparent 64%),
    radial-gradient(620px 320px at 52% 92%, rgba(120,214,255,.14), transparent 66%);
  filter: blur(60px);
  opacity:.38;
}

/* Card base (local) */
.admission-page .card{
  border-radius: var(--r3);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              box-shadow .22s cubic-bezier(.22,.61,.36,1);
}
.admission-page .card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.70);
}

/* Card padding helper */
.admission-page .card-pad{ padding: clamp(14px, 2.2vw, 18px); }

/* Hero surface */
.admission-page .admission-hero{
  border-radius: clamp(18px, 2.6vw, 28px);
  padding: clamp(16px, 2.8vw, 26px);
}
.admission-page .admission-hero .admission-hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(12px, 2.2vw, 18px);
  align-items: start;
}
@media (max-width: 980px){
  .admission-page .admission-hero .admission-hero__grid{
    grid-template-columns: 1fr;
  }
}

/* Hero typography polish */
.admission-page .admission-hero h1,
.admission-page .admission-hero .h1{
  letter-spacing: -.03em;
  font-weight: 900;
  line-height: 1.04;
}
.admission-page .admission-hero p{
  color: rgba(85,101,122,.92);
}

/* Subtle shine on glass cards (micro-luxury) */
.admission-page .glass-surface.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 46%);
  opacity:.26;
}

/* =========================================================
   v1.3 — Apple-card hierarchy + Sticky Hero + Premium Form
   ========================================================= */

/* Depth hierarchy for page cards */
.admission-page .card.depth-1{ box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62) !important; }
.admission-page .card.depth-2{ box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.62) !important; }
.admission-page .card.depth-3{ box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.62) !important; }

/* Auto-apply hierarchy to known blocks (no HTML changes required) */
.admission-page .admission-hero{ box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.70) !important; }
.admission-page .adm-card{ box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.62) !important; }
.admission-page .doc-card,
.admission-page .tile,
.admission-page .tile-glass{ box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.58) !important; }

/* Hero layout polish */
.admission-page .admission-hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(12px, 2.4vw, 20px);
  align-items: start;
}
@media (max-width: 980px){
  .admission-page .admission-hero-grid{ grid-template-columns: 1fr; }
}

/* Sticky hero top (search + KPI stays visible while scrolling inside hero content on mobile) */
.admission-page .admission-hero-left{
  display:flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 14px);
}
.admission-page .admission-search{
  position: sticky;
  top: 10px;
  z-index: 2;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
}
@media (max-width: 980px){
  .admission-page .admission-search{ top: 6px; }
}

/* KPI: Apple-like pills */
.admission-page .admission-kpi{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admission-page .kpi-item{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(255,255,255,.40);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
}
.admission-page .kpi-num{
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(42,99,255,.12));
  border: 1px solid rgba(255,122,24,.18);
}
.admission-page .kpi-lbl{
  font-weight: 800;
  color: rgba(85,101,122,.92);
}

/* Tiles/docs: clearer hover */
.admission-page .doc-card:hover,
.admission-page .tile:hover,
.admission-page .tile-glass:hover,
.admission-page .adm-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

/* ===== Premium form controls (modal + page) ===== */
.admission-page .adm-field{ display:flex; flex-direction:column; gap: 6px; }
.admission-page .adm-field__lbl{ font-weight: 800; color: rgba(85,101,122,.92); }
.admission-page .adm-field__in,
.admission-page input.search,
.admission-page input,
.admission-page select,
.admission-page textarea{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
  outline: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}
.admission-page .adm-field__in:focus,
.admission-page input.search:focus,
.admission-page input:focus,
.admission-page select:focus,
.admission-page textarea:focus{
  border-color: rgba(255,122,24,.42);
  box-shadow: 0 0 0 4px rgba(255,122,24,.14), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.68);
  background: rgba(255,255,255,.70);
}
.admission-page .adm-field__err{ color: rgba(188,28,28,.90); font-weight: 800; }
.admission-page .adm-search-row{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Modal sheet polish (if your modal uses these classes) */
.admission-page .adm-modal,
.admission-page .modal,
.admission-page .sheet{
  border-radius: clamp(18px, 2.6vw, 26px);
}

/* =========================================================
   v1.4 — Hero highlight (subtle motion) + Performance Guards
   ========================================================= */

/* Soft animated light sweep inside hero (premium, non-distracting) */
.admission-page .admission-hero{
  position: relative;
  isolation: isolate;
}
.admission-page .admission-hero::before{
  /* content:""; */
  /* position:absolute; */
  inset:-30%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(700px 360px at 20% 20%, rgba(255,122,24,.22), transparent 60%),
    radial-gradient(720px 380px at 80% 30%, rgba(42,99,255,.18), transparent 62%),
    radial-gradient(720px 420px at 55% 85%, rgba(120,214,255,.12), transparent 66%);
  filter: blur(52px);
  opacity: .75;
}
.admission-page .admission-hero::after{
  content:"";
  position:absolute;
  inset:-40%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(520px 280px at 10% 15%, rgba(255,255,255,.42), transparent 55%),
    radial-gradient(520px 280px at 90% 20%, rgba(255,255,255,.36), transparent 58%);
  filter: blur(34px);
  opacity: .22;
  transform: translate3d(-6%, -2%, 0);
  animation: admHeroGlow 10.5s ease-in-out infinite;
}

/* keep content above animated layer */
.admission-page .admission-hero > *{ position:relative; z-index:1; }

@keyframes admHeroGlow{
  0%   { transform: translate3d(-6%, -2%, 0); opacity:.20; }
  50%  { transform: translate3d(6%, 2%, 0);  opacity:.26; }
  100% { transform: translate3d(-6%, -2%, 0); opacity:.20; }
}

/* Smooth hover (reduce jitter on some GPUs) */
.admission-page .card,
.admission-page .tile,
.admission-page .doc-card,
.admission-page .adm-card{
  will-change: transform;
  transform: translateZ(0);
}

/* Performance guards:
   - reduce blur on weaker devices / mobile
   - disable motion if user prefers reduced motion
*/
@media (max-width: 980px){
  .admission-page .glass-surface{
    backdrop-filter: blur(14px) saturate(165%);
    -webkit-backdrop-filter: blur(14px) saturate(165%);
  }
  .admission-page .glow-surface::before{
    filter: blur(48px);
    opacity: .30;
  }
  .admission-page .admission-hero::before{ filter: blur(44px); opacity:.68; }
}

@media (max-width: 520px){
  .admission-page .glass-surface{
    backdrop-filter: blur(12px) saturate(155%);
    -webkit-backdrop-filter: blur(12px) saturate(155%);
  }
  .admission-page .admission-hero::after{ opacity:.16; }
}

/* Respect system preference */
@media (prefers-reduced-motion: reduce){
  .admission-page .admission-hero::after{ animation: none !important; }
  .admission-page .card,
  .admission-page .tile,
  .admission-page .doc-card,
  .admission-page .adm-card{
    transition: none !important;
  }
}

/* =========================================================
   v1.5 — Flagship modal-sheet UX + Controls (select/phone) 
   ========================================================= */

.admission-page .adm-modal{ position: fixed; inset: 0; z-index: 9999; }
.admission-page .adm-modal[hidden]{ display:none !important; }

.admission-page .adm-modal__overlay{
  position:absolute; inset:0;
  background: rgba(12,18,28,.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admission-page .adm-modal__dialog{
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 20px auto;
  border-radius: clamp(18px, 2.8vw, 26px);
  overflow: hidden;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 46px 140px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.admission-page .adm-modal__head{
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 16px 16px 12px;
  background: rgba(255,255,255,.76);
  border-bottom: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
}

.admission-page .adm-form{
  padding: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.admission-page .adm-form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admission-page .adm-field--wide{ grid-column: 1 / -1; }

@media (max-width: 820px){
  .admission-page .adm-modal__dialog{ width: calc(100% - 16px); margin: 10px auto; max-height: calc(100vh - 20px); }
  .admission-page .adm-form__grid{ grid-template-columns: 1fr; }
}

.admission-page .adm-form__actions{
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.46);
  backdrop-filter: blur(16px) saturate(175%);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admission-page .adm-form__status{
  flex: 1 1 220px;
  min-height: 22px;
  font-weight: 800;
  color: rgba(85,101,122,.92);
}

.admission-page .adm-consent{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
}
.admission-page .adm-consent input{ margin-top: 3px; }

.admission-page select.adm-field__in{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(135deg, rgba(255,122,24,.18), rgba(42,99,255,.12)),
    radial-gradient(8px 8px at calc(100% - 18px) 50%, rgba(12,18,28,.22), transparent 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 16px 16px;
  background-position: 0 0, calc(100% - 18px) 50%;
}

.admission-page input[type="tel"].adm-field__in{
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.admission-page .adm-field__err{ display:none; }
.admission-page .adm-field.is-invalid .adm-field__in{
  border-color: rgba(188,28,28,.46);
  box-shadow: 0 0 0 4px rgba(188,28,28,.12), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.66);
}
.admission-page .adm-field.is-invalid .adm-field__err{ display:block; }

.admission-page .adm-field.is-valid .adm-field__in{
  border-color: rgba(24,138,70,.36);
  box-shadow: 0 0 0 4px rgba(24,138,70,.10), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.66);
}

@media (max-width: 520px){
  .admission-page .adm-modal__dialog{
    width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    position: absolute;
    left: 0; right: 0; bottom: 0;
  }
  .admission-page .adm-modal__head{ padding: 14px 14px 10px; }
  .admission-page .adm-form{ padding: 14px; }
}

/* =========================================================
   v1.6 — Success screen + Smart program prefill
   ========================================================= */

.admission-page .adm-success{
  padding: 18px 16px 20px;
}
.admission-page .adm-success__card{
  border-radius: 22px;
  padding: 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.admission-page .adm-success__ic{
  width: 56px; height: 56px;
  border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(24,138,70,.18), rgba(42,99,255,.10));
  border: 1px solid rgba(24,138,70,.22);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
  font-size: 26px;
}
.admission-page .adm-success__title{
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 22px;
  line-height: 1.1;
}
.admission-page .adm-success__sub{
  color: rgba(85,101,122,.92);
  font-weight: 800;
}
.admission-page .adm-success__meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.admission-page .adm-success__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admission-page .adm-success__actions .btn{
  flex: 1 1 220px;
}

/* =========================================================
   v1.7 — Program picker cards (modal) + Smart message autofill
   ========================================================= */

.admission-page .adm-program-picker{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.admission-page .adm-program-picker__title{
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 16px;
}

.admission-page .adm-program-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 520px){
  .admission-page .adm-program-grid{ grid-template-columns: 1fr; }
}

.admission-page .adm-program-card{
  text-align: left;
  width: 100%;
  border-radius: 18px;
  padding: 12px 12px 12px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s cubic-bezier(.22,.61,.36,1), border-color .2s ease;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(255,255,255,.56);
}
.admission-page .adm-program-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.70);
}
.admission-page .adm-program-card.is-active{
  border-color: rgba(255,122,24,.46);
  box-shadow: 0 0 0 4px rgba(255,122,24,.12), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.70);
}

.admission-page .adm-program-card__top{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.admission-page .adm-program-card__badge{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(42,99,255,.10));
  border: 1px solid rgba(255,122,24,.18);
}
.admission-page .adm-program-card__time{
  font-weight: 900;
  color: rgba(85,101,122,.92);
  font-size: 12px;
}
.admission-page .adm-program-card__name{
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.admission-page .adm-program-card__desc{
  color: rgba(85,101,122,.92);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

/* =========================================================
   v1.8 — Doc card layout fix (no overlap) + Mobile actions
   ========================================================= */

.admission-page .doc-card{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.admission-page .doc-head{
  display:flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.admission-page .doc-ic{
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .02em;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
}

.admission-page .doc-txt{
  flex: 1 1 auto;
  min-width: 0;
}

.admission-page .doc-title{
  margin: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admission-page .doc-meta{
  margin-top: 4px;
  color: rgba(85,101,122,.92);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admission-page .doc-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.admission-page .doc-actions .btn{
  flex: 1 1 190px; /* prevents overlap, wraps when narrow */
  justify-content: center;
}

@media (max-width: 520px){
  .admission-page .doc-actions .btn{
    flex: 1 1 100%;
    width: 100%;
  }
}

/* =========================================================
   v1.9 — Responsive grids (Docs: 2 cols <1200) + Steps icons
   ========================================================= */

/* Docs grid: keep 3 cols on wide, switch to 2 cols under 1200px, then 1 col on mobile */
@media (max-width: 1199px){
  .admission-page .admission-docs .grid.grid-3, .hubGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px){
  .admission-page .admission-docs .grid.grid-3, .hubGrid {
    grid-template-columns: 1fr !important;
  }
}

/* Steps grid: 3 -> 2 -> 1 for better readability */
@media (max-width: 1199px){
  .admission-page .admission-steps.grid.grid-3, .hubGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px){
  .admission-page .admission-steps.grid.grid-3, .hubGrid {
    grid-template-columns: 1fr !important;
  }
}

/* Step cards: add head row with icon + title + arrow */
.admission-page .adm-step-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.admission-page .adm-step-ic{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.62);
}
.admission-page .adm-step-ic i{ font-size: 16px; }
.admission-page .adm-step-title{
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.admission-page .adm-step-arrow{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(255,255,255,.38);
  color: rgba(85,101,122,.92);
}
.admission-page .tile:hover .adm-step-arrow{
  transform: translateX(2px);
  transition: transform .18s ease;
}
/* HOME page custom styling (keeps global KARETA/MB style) */
.home-page{padding-top:8px}
/* Neon title */
.home-neon-title{
  position:relative;
  margin:12px 0 18px;
  padding:18px 14px 14px;
  border-radius:18px;
  text-align:center;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
}
.home-neon-ring{
  position:absolute; inset:-40px -60px auto -60px;
  height:220px;
  background:radial-gradient(circle at 50% 50%, rgba(128,226,255,.22), rgba(255,140,0,.14), transparent 60%);
  filter: blur(18px);
  pointer-events:none;
}
.home-neon-title::before,
.home-neon-title::after{
  content:"";
  position:absolute;
  inset:auto -40px -60px -40px;
  height:220px;
  background:radial-gradient(circle at 50% 30%, rgba(255,140,0,.18), rgba(128,226,255,.10), transparent 62%);
  filter: blur(20px);
  pointer-events:none;
}
.home-neon-h2{
  margin:0;
  font-size: clamp(20px, 3vw, 34px);
  line-height:1.15;
  letter-spacing:.2px;
}
.home-neon-sub{
  margin-top:8px;
  color:var(--muted);
  font-size: clamp(12px, 1.8vw, 14px);
}

/* Section head */
.home-sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:14px 0 14px;
}
.home-sec-head__h{
  margin:0;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height:1.15;
}
.home-sec-head__sub{ margin-top:6px; color:var(--muted); }

/* Visit card */
.home-visit{ margin:14px 0; }
.home-visit__hero{
  display:flex; gap:14px; align-items:flex-start;
}
.home-visit__badge{
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(255,140,0,.22), rgba(128,226,255,.16));
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.home-visit__badge i{font-size:18px}
.home-visit__title{ margin:0; font-size: clamp(18px, 2.6vw, 24px); line-height:1.2; }
.home-visit__lead{ margin-top:8px; color:var(--muted); }
.home-visit__chips{ margin-top:10px; display:flex; flex-wrap:wrap; gap:10px; }

/* Metrics grid: 2 rows x 3 (on wide screens) */
.home-visit__grid{
  margin-top:14px;
  display:grid;
  gap:12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .home-visit__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .home-visit__grid{ grid-template-columns: 1fr; }
  .home-visit__hero{ flex-direction:column; }
}
.home-metric{
  padding:14px 14px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.home-metric__k{ color:var(--muted); font-size:13px; }
.home-metric__v{ margin-top:6px; font-size: clamp(18px, 2.6vw, 28px); font-weight:800; letter-spacing:.2px; }

/* Cards shadow upgrades */
.home-cards .tile,
.home-event.card{
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.home-cards .tile:hover,
.home-event.card:hover{
  transform: translateY(-1px);
  box-shadow:0 16px 34px rgba(0,0,0,.26);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* News cards image */
.home-news-cover{
  width:100%;
  border-radius:14px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:linear-gradient(135deg, rgba(128,226,255,.10), rgba(255,140,0,.10));
  border:1px solid var(--border);
}
.home-news-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Events */
.home-event__top{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.home-event__h{ margin-top:10px; margin-bottom:8px; }
.home-event__meta{ margin-top:10px; }

/* spacing between db-block sections (10-20px) */
.home-page .db-block{ margin-top:14px; margin-bottom:14px; }  
.card.card-pad.ac-hero
Specificity: (0,3,0)
 {
    display: none;
}

/* =========================================================
   HOME PREMIUM DECOR — style every visible element on HOME
   ========================================================= */

.home-page{
  padding-top: 10px;
  padding-bottom: 20px;
}

/* ===== Neon title (upgraded) ===== */
.home-neon-title{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.38);
  background:
    radial-gradient(900px 340px at 20% -10%, rgba(255,122,24,.26), transparent 60%),
    radial-gradient(820px 320px at 90% 0%, rgba(42,99,255,.20), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow:
    0 18px 50px rgba(12,18,28,.14),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.home-neon-ring{
  filter: blur(1px);
  opacity: .85;
}

.home-neon-h2{
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: -.02em;
  font-weight: 950;
  margin: 0 0 6px;
}

.home-neon-sub{
  font-size: clamp(12px, 1.8vw, 14px);
  color: rgba(85,101,122,.92);
}

/* ===== Section head (news/events) ===== */
.home-sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 16px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  position:relative;
}

.home-sec-head::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -1px;
  width: min(240px, 46%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,122,24,.65), rgba(42,99,255,.45), transparent);
  opacity: .85;
}

.home-sec-head__h{
  margin:0;
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing:-.02em;
  font-weight: 900;
}

.home-sec-head__sub{
  margin-top: 4px;
  color: rgba(85,101,122,.92);
  font-size: 13px;
}

.home-sec-head .btn{
  white-space: nowrap;
}

/* ===== Visit card (hero card) ===== */
.home-visit{
  overflow:hidden;
  border-radius: 22px;
}

.home-visit__hero{
  display:grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
}

.home-visit__badge{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 14px 38px rgba(12,18,28,.14);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.home-visit__badge i{
  font-size: 18px;
  color: rgba(255,122,24,.92);
}

.home-visit__title{
  margin: 2px 0 8px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 950;
  letter-spacing: -.02em;
}

.home-visit__lead{
  margin: 0 0 12px;
  color: rgba(85,101,122,.92);
  line-height: 1.45;
}

.home-visit__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.home-visit__chips .chip{
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.48);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12.5px;
}

.home-visit__chips .chip i{
  opacity:.9;
}

.home-visit__links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 2px;
}

.home-visit__links a.btn{
  padding: 10px 14px;
}

/* ===== Metrics ===== */
.home-metrics{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.home-metric{
  border-radius: 18px;
  padding: 14px 12px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 14px 42px rgba(12,18,28,.12);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

.home-metric:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 58px rgba(12,18,28,.16);
}

.home-metric__k{
  color: rgba(85,101,122,.92);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.home-metric__v{
  margin-top: 6px;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 950;
  letter-spacing: -.02em;
}

/* ===== News cards grid mount ===== */
#homeNewsList{
  min-height: 120px;
}

.home-cards{
  gap: 14px;
}

/* generic styling for cards created by JS */
.home-cards .card{
  border-radius: 20px;
  overflow:hidden;
}

.home-cards .card .news-title,
.home-cards .card h4{
  font-weight: 900;
  letter-spacing: -.02em;
}

/* ===== Events ===== */
.home-events{
  gap: 14px;
}

.home-event{
  border-radius: 20px;
}

.home-event__top{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.home-event .chip{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.50);
  box-shadow: 0 10px 26px rgba(12,18,28,.10);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12.5px;
}

.home-event__h{
  margin: 6px 0 8px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.home-event__p{
  margin: 0;
  color: rgba(85,101,122,.92);
  line-height: 1.45;
}

/* ===== Hubs (hubGrid renderer unknown) — style safely by container ===== */
#homeHubs{
  margin-top: 6px;
}

#homeHubs .grid{
  gap: 14px;
}

#homeHubs a,
#homeHubs article,
#homeHubs .card{
  border-radius: 20px;
}

#homeHubs a{
  display:block;
  text-decoration:none;
}

#homeHubs a:hover{
  text-decoration:none;
}

#homeHubs .hub-card,
#homeHubs .hub-item,
#homeHubs .hub-tile{
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 16px 48px rgba(12,18,28,.12);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

#homeHubs .hub-card:hover,
#homeHubs .hub-item:hover,
#homeHubs .hub-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(12,18,28,.16);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .home-visit__hero{ grid-template-columns: 1fr; }
  .home-visit__badge{ width: 44px; height: 44px; border-radius: 14px; }
  .home-metrics{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px){
  .home-sec-head{ align-items:flex-start; flex-direction:column; }
  .home-sec-head::after{ width: 62%; }
  .home-visit__links a.btn{ width: 100%; justify-content:center; }
  .home-metrics{ grid-template-columns: 1fr; }
}

/* =========================================================
   HOME UX — Skeleton loaders + Micro-interactions (Premium)
   ========================================================= */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .lift, .press, .shine, .glow-hover{ transition:none !important; transform:none !important; animation:none !important; }
}

/* Micro interactions helpers */
.lift{ transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1); }
.lift:hover{ transform: translateY(-3px); }
.press{ transition: transform .14s cubic-bezier(.22,.61,.36,1); }
.press:active{ transform: translateY(0px) scale(.99); }

.glow-hover{ position:relative; overflow:hidden; }
.glow-hover::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(520px 240px at 30% 20%, rgba(255,122,24,.26), transparent 60%),
    radial-gradient(520px 260px at 70% 30%, rgba(42,99,255,.20), transparent 60%);
  filter: blur(58px);
  opacity: .00;
  transition: opacity .22s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
  z-index:0;
}
.glow-hover:hover::before{ opacity:.55; }
.glow-hover > *{ position:relative; z-index:1; }

/* Skeleton base */
@keyframes skShimmer{
  0%{ transform: translateX(-40%); }
  100%{ transform: translateX(140%); }
}

.skeleton{
  position:relative;
  overflow:hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 14px 42px rgba(12,18,28,.10);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.skeleton::after{
  content:"";
  position:absolute;
  top:-20%;
  left:-60%;
  width: 60%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.40), transparent);
  animation: skShimmer 1.25s ease-in-out infinite;
  opacity:.9;
}

.sk-line{
  height: 10px;
  border-radius: 999px;
  background: rgba(12,18,28,.08);
  margin: 10px 12px;
}

.sk-line.sm{ width: 44%; height: 9px; opacity:.75; }
.sk-line.md{ width: 70%; }
.sk-line.lg{ width: 88%; height: 11px; }

.sk-chiprow{
  display:flex;
  gap: 8px;
  padding: 12px;
}
.sk-chip{
  width: 86px;
  height: 26px;
  border-radius: 999px;
  background: rgba(12,18,28,.08);
  opacity:.85;
}

/* Skeleton cards grid sizing */
.home-skel-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.home-skel-card{ min-height: 150px; }
@media (max-width: 980px){
  .home-skel-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .home-skel-grid{ grid-template-columns: 1fr; }
}

/* Apply micro-interactions to existing blocks */
.home-visit, .home-event, .home-metric, #homeHubs a, #homeHubs article, #homeHubs .card{
  will-change: transform;
}
.home-visit, .home-event, #homeHubs a, #homeHubs article, #homeHubs .card{
  /* lift + glow */
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}
.home-visit:hover, .home-event:hover, #homeHubs a:hover, #homeHubs article:hover, #homeHubs .card:hover{
  transform: translateY(-3px);
}
.home-visit:active, .home-event:active, #homeHubs a:active{
  transform: translateY(-1px) scale(.995);
}

/* =========================================================
   HOME UX v3 — Metrics skeleton + Reveal animation (Premium)
   ========================================================= */

/* Metrics skeleton state */
.home-metric.is-skel .home-metric__v{
  position:relative;
  color: transparent !important;
}
.home-metric.is-skel .home-metric__v::before{
  content:"";
  display:block;
  height: 22px;
  width: 64%;
  border-radius: 999px;
  background: rgba(12,18,28,.10);
}
.home-metric.is-skel .home-metric__v::after{
  content:"";
  position:absolute;
  inset:-20% -10%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: translateX(-40%);
  animation: skShimmer 1.25s ease-in-out infinite;
  opacity:.8;
}

/* Reveal animation (subtle, Apple-like) */
.reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s cubic-bezier(.22,.61,.36,1), transform .34s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* =========================================================
   HOME PREMIUM VIBRANCE v5 — less boring, more "wow"
   Notes: uses only CSS (no new assets). Keeps readability.
   ========================================================= */

/* Ambient animated gradient under everything (very subtle) */
@keyframes homeAura{
  0%{ transform: translate3d(-2%, -1%, 0) scale(1.02); filter: hue-rotate(0deg); }
  50%{ transform: translate3d(2%, 1%, 0) scale(1.04); filter: hue-rotate(10deg); }
  100%{ transform: translate3d(-2%, -1%, 0) scale(1.02); filter: hue-rotate(0deg); }
}

.home-page{
  position: relative;
  isolation: isolate;
}

.home-page::before{
  content:"";
  position: absolute;
  inset: -40px -20px;
  z-index: -1;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 12% 6%, rgba(255,122,24,.22), transparent 60%),
    radial-gradient(920px 480px at 88% 8%, rgba(42,99,255,.18), transparent 62%),
    radial-gradient(860px 420px at 18% 92%, rgba(120,214,255,.14), transparent 60%),
    radial-gradient(820px 420px at 92% 92%, rgba(255,214,120,.12), transparent 62%);
  filter: blur(28px);
  opacity: .95;
  animation: homeAura 14s ease-in-out infinite;
}

/* Premium separator accents */
.home-sec-head{
  border-bottom-color: rgba(255,255,255,.34) !important;
}
.home-sec-head::after{
  height: 3px !important;
  opacity: .95 !important;
}

/* Card "chrome" edge + glossy highlight */
.card, .home-metric, .home-event, .home-visit{
  position: relative;
}
.card::before, .home-metric::before, .home-event::before, .home-visit::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.08));
  opacity: .18;
  mix-blend-mode: overlay;
}

.card::after{
  opacity: .34 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.46), transparent 44%) !important;
}

/* Neon glow on hover (brand) */
.card:hover, .home-metric:hover, .home-event:hover, .home-visit:hover,
#homeHubs a:hover, #homeHubs article:hover, #homeHubs .card:hover{
  box-shadow:
    0 22px 70px rgba(12,18,28,.16),
    0 0 0 1px rgba(255,255,255,.16),
    0 0 44px rgba(255,122,24,.12),
    0 0 58px rgba(42,99,255,.10) !important;
}

/* Buttons: more premium gradient & glow */
.btn{
  position: relative;
  overflow: hidden;
}
.btn::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(520px 260px at 30% 30%, rgba(255,122,24,.30), transparent 60%),
    radial-gradient(520px 260px at 70% 20%, rgba(42,99,255,.22), transparent 60%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity .22s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
}
.btn:hover::after{ opacity: .65; }
.btn > *{ position:relative; z-index:1; }

/* News cards: title accent underline */
#homeNewsList .card h4, #homeNewsList .card .news-title{
  position: relative;
}
#homeNewsList .card h4::after, #homeNewsList .card .news-title::after{
  content:"";
  display:block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(255,122,24,.72), rgba(42,99,255,.46), transparent);
  opacity: .85;
}

/* Chips: more colorful border */
.home-visit__chips .chip, .home-event .chip{
  border-color: rgba(255,255,255,.52) !important;
  box-shadow:
    0 10px 26px rgba(12,18,28,.10),
    0 0 0 1px rgba(255,122,24,.10) !important;
}

/* Reveal: add tiny blur fade for premium */
.reveal{
  filter: blur(1.6px);
}
.reveal.is-in{
  filter: blur(0px);
}

/* Mobile: reduce glow to keep clean */
@media (max-width: 520px){
  .home-page::before{ filter: blur(22px); opacity:.85; }
  .card:hover, .home-metric:hover, .home-event:hover, .home-visit:hover{
    box-shadow: 0 18px 56px rgba(12,18,28,.14) !important;
  }
}

/* =========================================================
   HOME HUBS — explicit label for compact hub block
   ========================================================= */

.home-sec-head--hubs{
  margin-top: 18px;
}

/* Renderer wrappers: make compact block feel like a separate, signed section */
.db-block.db-block-compact{
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(255,122,24,.10), transparent 58%),
    radial-gradient(720px 320px at 90% 0%, rgba(42,99,255,.08), transparent 60%),
    rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 18px 56px rgba(12,18,28,.12);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}

/* If the renderer outputs block head, make it premium */
.db-block.db-block-compact .db-block-head,
.db-block.db-block-compact .db-block__head{
  margin-bottom: 12px;
}

.db-block.db-block-compact .db-block-title,
.db-block.db-block-compact .db-block__title{
  font-weight: 950;
  letter-spacing: -.02em;
}

.db-block.db-block-compact .db-block-subtitle,
.db-block.db-block-compact .db-block__subtitle{
  color: rgba(85,101,122,.92);
}

/* =========================================================
   USP (Benefits) — Premium grid after metrics
   ========================================================= */

.usp{
  margin-top: 14px;
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(800px 360px at 18% 10%, rgba(255,122,24,.16), transparent 62%),
    radial-gradient(820px 360px at 86% 18%, rgba(42,99,255,.12), transparent 62%),
    rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 22px 70px rgba(12,18,28,.14);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}

.usp__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.usp__item{
  border-radius: 22px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 16px 46px rgba(12,18,28,.12);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

.usp__item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 70px rgba(12,18,28,.16),
    0 0 0 1px rgba(255,255,255,.16),
    0 0 44px rgba(255,122,24,.10),
    0 0 56px rgba(42,99,255,.10);
}

.usp__ico{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 14px 36px rgba(12,18,28,.12);
  margin-bottom: 10px;
  font-size: 22px;
}

.usp__t{
  margin: 0 0 6px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.usp__d{
  margin: 0;
  color: rgba(85,101,122,.92);
  line-height: 1.45;
}

@media (max-width: 720px){
  .usp__grid{ grid-template-columns: 1fr; }
}


/* FontAwesome inside USP */
.usp__ico i{
  font-size: 20px;
  color: #ff7a18;
  filter: drop-shadow(0 4px 10px rgba(255,122,24,.35));
}
.usp__item:hover .usp__ico i{
  color: #2a63ff;
  filter: drop-shadow(0 4px 14px rgba(42,99,255,.35));
}

/* =========================================================
   Section headings — semantic icons + optional thumbs
   - Uses Font Awesome for meaning
   - Provides image slot (secH__thumb) with safe fallback
   ========================================================= */

.home-sec-head__h{
  display: flex;
  align-items: center;
  gap: 10px;
}

.secH__ico{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 14px 36px rgba(12,18,28,.12);
  flex: 0 0 auto;
}

.secH__ico i{
  font-size: 16px;
  color: #ff7a18;
  filter: drop-shadow(0 4px 10px rgba(255,122,24,.35));
}

.secH__t{
  flex: 1 1 auto;
  min-width: 0;
}

.secH__thumb{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 16px 44px rgba(12,18,28,.12);
  flex: 0 0 auto;
}

.secH__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
  transform: translateZ(0);
}

/* If the image is missing, keep the slot clean */
.secH__thumb img:not([src]), .secH__thumb img[src=""]{
  display:none;
}

/* hover brand shift */
.home-sec-head:hover .secH__ico i{
  color: #2a63ff;
  filter: drop-shadow(0 4px 14px rgba(42,99,255,.35));
}

@media (max-width: 520px){
  .secH__thumb{ width: 40px; height: 40px; }
  .secH__ico{ width: 32px; height: 32px; }
}

/* =========================================================
   HOME — HERO / FILTERS / HUB TILES (for provided markup)
   Premium glass + depth layers + brand glow
   ========================================================= */

/* base container */
.view{
  padding: 18px 16px 26px;
}

/* Hero card */
.ac-hero{
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255,122,24,.20), transparent 62%),
    radial-gradient(820px 380px at 86% 18%, rgba(42,99,255,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(255,255,255,.40));
  border: 1px solid rgba(255,255,255,.48);
  box-shadow:
    0 30px 90px rgba(12,18,28,.18),
    0 0 0 1px rgba(255,255,255,.14) inset;
  backdrop-filter: blur(16px) saturate(185%);
  -webkit-backdrop-filter: blur(16px) saturate(185%);
}

.ac-hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(520px 280px at 92% 10%, rgba(42,99,255,.14), transparent 60%);
  filter: blur(10px);
  opacity:.9;
}

.ac-hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 920px){
  .ac-hero-grid{ grid-template-columns: 1fr; }
}

/* meta chip */
.meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 14px 36px rgba(12,18,28,.12);
  backdrop-filter: blur(10px) saturate(170%);
  -webkit-backdrop-filter: blur(10px) saturate(170%);
}

.meta-chip i{
  color: #2a63ff;
  filter: drop-shadow(0 4px 10px rgba(42,99,255,.32));
}

.ac-hero .h3{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 10px 0 0;
  letter-spacing: -.02em;
}

.ac-hero .h3 i{
  color:#ff7a18;
  filter: drop-shadow(0 5px 14px rgba(255,122,24,.28));
}

/* stats */
.ac-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 0 0;
}

@media (max-width: 520px){
  .ac-stats{ grid-template-columns: 1fr; }
}

.ac-stat{
  border-radius: 22px;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 18px 52px rgba(12,18,28,.14);
  backdrop-filter: blur(14px) saturate(165%);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
}

.ac-stat-num{
  font-weight: 1000;
  font-size: 30px;
  letter-spacing: -.03em;
  line-height: 1.05;
  background: linear-gradient(90deg, rgba(255,122,24,1), rgba(42,99,255,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ac-stat-label{
  margin-top: 6px;
  color: rgba(85,101,122,.92);
}

/* divider */
.ac-hero .hr{
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.60), transparent);
  opacity: .9;
}

/* Filters */
.filters{
  display:flex;
  align-items:center;
  gap: 10px;
}

.mm-search{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 18px 52px rgba(12,18,28,.14);
  backdrop-filter: blur(14px) saturate(175%);
  -webkit-backdrop-filter: blur(14px) saturate(175%);
}

.mm-search span{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 12px 34px rgba(12,18,28,.10);
}

.mm-search i{
  color:#2a63ff;
  filter: drop-shadow(0 4px 10px rgba(42,99,255,.28));
}

.mm-search input[type="search"]{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: rgba(20,28,40,.92);
}

.mm-search input::placeholder{
  color: rgba(92,108,128,.85);
}

/* chips */
.chip{
  border-radius: 999px;
  padding: 10px 12px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 14px 44px rgba(12,18,28,.12);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .18s cubic-bezier(.22,.61,.36,1);
}

.chip i{
  color:#ff7a18;
  filter: drop-shadow(0 4px 12px rgba(255,122,24,.28));
}

.chip:hover{
  transform: translateY(-1px);
  box-shadow:
    0 22px 70px rgba(12,18,28,.16),
    0 0 44px rgba(255,122,24,.10),
    0 0 56px rgba(42,99,255,.10);
}

/* HUB tiles */
.db-block-compact{
  margin-top: 12px;
}

.db-block-compact .tile{
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 18px 18px 16px;
  text-decoration: none;
  background:
    radial-gradient(620px 260px at 20% 0%, rgba(255,122,24,.14), transparent 60%),
    radial-gradient(520px 240px at 92% 10%, rgba(42,99,255,.12), transparent 60%),
    rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 22px 70px rgba(12,18,28,.14);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

.db-block-compact .tile::after{
  content:"";
  position:absolute;
  inset:-1px;
  background: linear-gradient(120deg, rgba(255,122,24,.12), rgba(42,99,255,.10), rgba(255,255,255,0));
  opacity:.0;
  transition: opacity .22s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
}

.db-block-compact .tile:hover{
  transform: translateY(-3px);
  box-shadow:
    0 32px 96px rgba(12,18,28,.18),
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 52px rgba(255,122,24,.10),
    0 0 64px rgba(42,99,255,.10);
}

.db-block-compact .tile:hover::after{
  opacity: .9;
}

.db-block-compact .tile h3{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.db-block-compact .tile h3 i{
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 14px 36px rgba(12,18,28,.12);
  color: #2a63ff;
  filter: drop-shadow(0 4px 12px rgba(42,99,255,.24));
}

.db-block-compact .tile p{
  margin: 0 0 12px;
  color: rgba(85,101,122,.92);
}

.db-block-compact .tile .meta{
  display:flex;
  justify-content:flex-end;
}

/* slight coherence with home-sec-head icons */
.home-sec-head{
  border-radius: 28px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 18px 54px rgba(12,18,28,.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.card.card-pad.admission-hero.glass-surface.glow-surface {
    margin-bottom: 20px;
	margin-top: 20px;
}    /* Global DPX cards + modal (used by docsAttachAPI) */
.dpxSection{margin:18px 0}
.dpxGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.dpxCard{border:1px solid rgba(0,0,0,.12);border-radius:14px;background:#fff;overflow:hidden}
.dpxCardHead{display:flex;gap:12px;align-items:flex-start;padding:14px}
.dpxIco{min-width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;border:1px solid rgba(0,0,0,.12)}
.dpxTitle{margin:0;font-size:16px;line-height:1.25}
.dpxMeta{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.dpxTag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:12px;opacity:.9}
.dpxBody{padding:0 14px 14px}
.dpxActions{display:flex;gap:10px;flex-wrap:wrap}
.dpxModal.hidden{display:none}
.dpxModal{position:fixed;inset:0;z-index:9999}
.dpxModalOverlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.dpxModalPanel{position:absolute;inset:4% 4%;background:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
.dpxModalHead{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.12)}
.dpxModalTitle{font-weight:700}
.dpxModalBody{flex:1}
.dpxModalFrame{width:100%;height:100%;border:0}
@media(max-width:720px){.dpxModalPanel{inset:2% 2%}}


/* modal lock */
body.uk-modal-open{overflow:hidden}
a.side-link span {
    padding-left: 4px;
    font-weight: 600;
}



.ac-stat-label  span {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    display: inline-block;
}

span.m-label {
    padding-left: 10px;
}
.ds-nav a.side-link  span {
    padding-left: 5px;
}

/* === POLITEX Templates compatibility & history nav (2026-02-19) === */
.soc--tg{border-color:rgba(36,161,222,.35); background:rgba(36,161,222,.08)}
.soc--ig{border-color:rgba(193,53,132,.35); background:rgba(193,53,132,.08)}
.soc--wa{border-color:rgba(37,211,102,.35); background:rgba(37,211,102,.08)}

.nav-history{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.nav-history__left,.nav-history__right{display:flex; gap:8px; align-items:center}
.nav-history .btn[disabled]{opacity:.45; cursor:not-allowed; transform:none}
.nav-history__hint{color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}



/* POLITEX: JSON richText */
.rt{max-width: 72ch}
.rt .p{margin: 0 0 10px 0}
.rt-ul{margin: 8px 0 0 18px; padding:0}
.rt-ul li{margin: 6px 0}


/* STEP7: crumbs (history nav) */
.nav-history{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nav-history__crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.nav-history__crumbs .crumb{opacity:.9;text-decoration:none}
.nav-history__crumbs .crumb:hover{opacity:1;text-decoration:underline}
.nav-history__crumbs .crumb-sep{opacity:.35}

/* STEP7: docList + tableSchedule */
.dpxDocsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
@media (max-width:900px){.dpxDocsGrid{grid-template-columns:1fr;}}

.tblCard .table{width:100%;border-collapse:collapse;}
.tblCard .table th,.tblCard .table td{padding:10px;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap;}
.tblCard .table th{font-weight:700}


/* p50: soft i18n head title slot */
.db-block-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.db-block-head-title{flex:1 1 auto;min-width:0}
.db-block-head-title__t{font-weight:800;font-size:22px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.db-block-head-title__s{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:700px){.db-block-head-title__t{font-size:18px}}
/* p15: remove db-block-head-left; make right full width */
.db-block-head-full{flex:1 1 auto; width:100;}
.db-block-head-right{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.db-block-head-part-title{min-width:220px;flex:1 1 auto;}
.db-block-head-part-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex:0 0 auto;flex-wrap:wrap;}


/* p55: docs modal tools */
.dpxModalTools{display:flex;gap:8px;align-items:center;justify-content:flex-start}
.dpxModalFrame{width:100%;min-height:60vh;border:0;border-radius:12px}


/* === LEVEL 2 ROUTES (base/tail) — docs showcase polish === */
body[data-route-level="2"] .db-block { 
  margin-top: 14px;
}
body[data-route-level="2"] .card.card-pad { 
  border-radius: 16px;
}
body[data-route-level="2"] .docGrid,
body[data-route-level="2"] [data-docs-mount="1"] .grid {
  gap: 10px;
}
body[data-route-level="2"] .docCard,
body[data-route-level="2"] .doc-card {
  transform: translateZ(0);
}
body[data-route-level="2"] .doc-card:hover {
  transform: translateY(-1px);
}
body[data-route-level="2"] .secHead__lead { 
  max-width: 72ch;
}

/* Head parts inside your standard head card */
.db-block-head-part-title { display:flex; flex-direction:column; gap:2px; }
.db-block-head-title__t { font-weight: 800; line-height: 1.15; }
.db-block-head-title__s { opacity: .72; line-height: 1.15; }


/* === Level2 polish (p57) === */
.level2-breadcrumb{border:1px solid rgba(255,255,255,0.06)}
.level2-breadcrumb .link{text-decoration:none}
.level2-breadcrumb .link:hover{text-decoration:underline}


/* HEAD TOOLS (pageHeadAPI v0.7.2) */
.db-block-head-part-tools{display:flex;gap:10px;align-items:center;justify-content:flex-start;flex:1 1 auto;min-width:240px;flex-wrap:wrap}
.dbHeadSearch{display:flex;gap:8px;align-items:center;flex:1 1 auto;max-width:520px}
.dbHeadSearchInput{width:100%;min-width:220px}
.dbHeadFilters{display:flex;gap:8px;align-items:center;flex:0 0 auto;flex-wrap:wrap}
.dbHeadSelect{min-width:160px}
@media (max-width:720px){
  .db-block-head-part-tools{min-width:unset}
  .dbHeadSearch{max-width:100%}
  .dbHeadSearchInput{min-width:160px}
  .dbHeadSelect{min-width:140px}
}

.homeSliderHead:after {}

.homeSliderHead {}

.homeSliderHead:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(240px, 46%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 122, 24, .65), rgba(42, 99, 255, .45), transparent);
    opacity: .85;
}

h3.home-visit__title {}

h3.home-visit__title {}

.page[data-route="home"] .home-metric__k span {
    font-size: 13px;
    color: #000000;
    font-weight: 400;
}

article.home-event.card.card-pad:after {
    content: "";
}
/* === v4.1.0 DESIGN UPGRADE: home + slider === */
:root{
  --ui-bg: #f6f8fb;
  --ui-surface: #ffffff;
  --ui-text: #0f172a;
  --ui-muted: rgba(15,23,42,.68);
  --ui-border: rgba(15,23,42,.10);
  --ui-shadow: 0 14px 40px rgba(2,6,23,.10);
  --ui-shadow-soft: 0 10px 26px rgba(2,6,23,.08);
  --ui-radius: 18px;
}

body{
  background: var(--ui-bg);
  color: var(--ui-text);
}

.container{ max-width: 1180px; }
.card, .panel, .surface{
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-soft);
}

/* section head */
.homeSecHead{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin: 8px 0 14px; }
.homeSecHead__t{ font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.homeSecHead__s{ font-size: 13px; color: var(--ui-muted); margin-top: 2px; }

/* Home slider */
.homeSliderSec{
  display:block;
  margin: 18px 0 26px;
}
.homeSliderHead{ margin-bottom: 10px; }
.homeSliderHead__t{ font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.homeSliderHead__s{ font-size: 13px; color: var(--ui-muted); margin-top: 2px; }

.hs{
  position: relative;
  border-radius: var(--ui-radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--ui-shadow);
  border: 1px solid rgba(255,255,255,.10);
}

.hsViewport{ position: relative; width:100%; aspect-ratio: 16/9; overflow:hidden; }
@media (max-width: 720px){
  .hsViewport{ aspect-ratio: 4/3; }
}
.hsTrack{
  display:flex;
  height:100%;
  width:100%;
  transform: translate3d(0,0,0);
  transition: transform .45s ease;
}
.hsSlide{ min-width: 100%; height: 100%; position: relative; }
.hsImg{ width: 100%; height: 100%; object-fit: cover; display:block; filter: saturate(1.03) contrast(1.03); }

.hsOverlay{
  pointer-events:none;
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 500px at 10% 10%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,.52), rgba(0,0,0,0) 55%);
}
.hsOverlay__in{
  position:absolute;
  inset:auto 14px 14px 14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.hsCounter{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

/* nav */
.hsNav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  cursor:pointer;
}
.hsNav:hover{ background: rgba(0,0,0,.48); }
.hsPrev{ left: 12px; }
.hsNext{ right: 12px; }
@media (max-width: 720px){
  .hsNav{ width: 38px; height: 38px; }
}

/* dots */
.hsDots{
  position:absolute;
  inset:auto 12px 12px 12px;
  display:flex;
  gap:8px;
  justify-content:flex-start;
  align-items:center;
}
.hsDot{
  width: 22px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.18);
  padding:0;
  cursor:pointer;
}
.hsDot.isActive{ background: rgba(255,255,255,.80); }

/* Quick links */
.homeQuickLinks{ margin: 10px 0 30px; }
.hqlGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 980px){ .hqlGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .hqlGrid{ grid-template-columns: 1fr; } }

.hql{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  text-decoration:none;
  color: inherit;
  box-shadow: var(--ui-shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hql:hover{ transform: translateY(-1px); box-shadow: var(--ui-shadow); border-color: rgba(15,23,42,.16); }
.hql__ico{
  width: 42px; height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,59,102,.10);
  color: #0d3b66;
  flex: 0 0 auto;
}
.hql__t{ font-weight: 800; letter-spacing:.2px; }
.hql__d{ font-size: 13px; color: var(--ui-muted); margin-top: 2px; }
.hql__go{ margin-left:auto; color: rgba(15,23,42,.45); }

@media (prefers-reduced-motion: reduce){
  .hsTrack{ transition: none !important; }
  .hql{ transition: none !important; }
  .hql:hover{ transform:none; }
}

