:root {
    --brand: #021946;
    --accent: #ffd600;
    --footer: #b40c10;
    --content-width: 984px;
    --text: #111;
    --muted: #666;
    --surface: #ffffff;
    --surface-alt: #f5f7f9;
    --border: #d8dee5;
    --radius: 4px;
    --shadow: 0 3px 14px rgba(15, 31, 52, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #f7f8fa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.15em; transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease; }
a:hover { color: #0a3f78; text-decoration-thickness: 0.14em; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin-block: 0 0.65em; }
p { margin-block: 0 1em; }
.container { width: min(calc(100% - 24px), var(--content-width)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 9999; top: 0.5rem; left: 0.5rem; padding: 0.7rem 1rem;
    color: #fff; background: #111; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.topbar { padding: 0.35rem 0; color: #fff; background: #263238; font-size: 0.9rem; }
.site-header { position: relative; z-index: 50; background: var(--surface); border: 0; box-shadow: 0 2px 12px rgba(12, 30, 55, 0.06); }
.has-sticky-header .site-header { position: sticky; top: 0; box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06); }
.header-inner { display: grid; min-height: 118px; grid-template-columns: 220px minmax(0, 1fr) 220px; align-items: center; gap: 12px; }
.header-left { justify-self: start; }
.header-right { justify-self: end; text-align: right; }
.brand { justify-self: center; text-align: center; }
.brand-name { color: var(--brand); font-size: 32px; font-weight: 700; text-decoration: none; }
.brand-logo { display: block; line-height: 0; }
.brand-logo img { display: block; width: 291px; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.demo-social { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; color: #46639a; line-height: 1.05; }
.demo-facebook { grid-row: 1 / 3; width: 32px; height: 32px; margin-right: 8px; color: #fff; background: #46639a; font: bold 25px/35px Arial; text-align: center; }
.demo-social strong { font-size: 14px; }
.demo-social small { font-size: 10px; }
.demo-search { display: flex; gap: 6px; margin-top: 18px; color: #222; font-size: 8px; }
.demo-search span { width: 118px; padding: 3px 6px; border: 1px solid #c2c9d1; border-radius: 3px; background: #fff; }
.demo-search b, .demo-login { padding: 3px 7px; border: 1px solid #b9c1ca; border-radius: 3px; font-size: 8px; background: #fff; }
.demo-login { display: inline-block; min-width: 90px; padding: 8px 12px; color: #001b4c; font-size: 11px; text-align: center; box-shadow: 0 2px 7px rgba(15, 31, 52, 0.06); }
.navigation-bar { position: relative; z-index: 45; min-height: 43px; color: #fff; background: linear-gradient(180deg, #062454 0%, var(--brand) 100%); box-shadow: 0 3px 10px rgba(2, 25, 70, 0.18); }
.navigation-inner { min-height: 43px; }
.main-navigation { width: 100%; }
.main-navigation ul { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation a, .main-navigation .nav-header {
    display: block; padding: 14px 11px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 700; line-height: 15px; text-decoration: none; text-transform: uppercase;
}
.main-navigation a:hover, .main-navigation .active > a { color: var(--accent); background: rgba(0, 0, 0, 0.22); }
.demo-menu li > span { display: block; padding: 14px 11px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 700; line-height: 15px; }
.demo-menu li.active > span { color: var(--accent); }
.main-navigation li > ul {
    position: absolute; top: 100%; left: 0; display: none; min-width: 14rem; padding: 0.35rem;
    background: var(--brand); border: 1px solid #183560; border-radius: 0; box-shadow: var(--shadow);
}
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: block; }
.main-navigation li > ul ul { top: 0; left: 100%; }
.menu-toggle { display: none; width: 2.8rem; height: 2.8rem; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after {
    display: block; width: 100%; height: 2px; background: currentColor; content: "";
}
.menu-toggle-icon::before { transform: translateY(-7px); }
.menu-toggle-icon::after { transform: translateY(5px); }
.hero { padding: 12px 0 0; color: var(--text); background: transparent; }
.slider-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 10px; align-items: start; }
.slider-main { min-width: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.slider-main > div, .slider-main .moduletable, .slider-main .djslider, .slider-main .djslider-loader { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.slider-main img { max-width: 100%; height: auto; }
.slider-side { display: grid; gap: 10px; align-content: start; }
.slider-side .card { margin: 0; }
.breadcrumbs { padding-block: 11px; color: var(--muted); font-size: 11px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 10px 16px; }
.content-grid.has-left { grid-template-columns: minmax(13rem, 0.28fr) minmax(0, 1fr); }
.content-grid.has-right { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
.content-grid.has-left.has-right { grid-template-columns: minmax(12rem, 0.23fr) minmax(0, 1fr) minmax(12rem, 0.23fr); }
.main-content { min-width: 0; }
.above-content, .below-content { margin-block: 1.5rem; }
.card, .sidebar .moduletable { padding: 9px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar .moduletable + .moduletable { margin-top: 10px; }
.module-title, .sidebar .moduletable > h3 { margin: -5px -5px 9px; padding: 8px; border-top: 3px solid #aeb8c4; border-bottom: 1px solid #e3e7eb; border-radius: 3px 3px 0 0; color: #000; font-size: 13px; text-transform: uppercase; }
.button, button, input[type="submit"] {
    display: inline-block; padding: 0.7rem 1.1rem; color: #fff; background: var(--brand);
    border: 0; border-radius: var(--radius); box-shadow: 0 2px 7px rgba(2, 25, 70, 0.16); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.button:hover, button:hover, input[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(2, 25, 70, 0.22); }
input, select, textarea { width: 100%; max-width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #aab8c2; border-radius: 0.35rem; background: #fff; }
label { display: block; margin-top: 0.8rem; margin-bottom: 0.25rem; font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.alert { margin-block: 1rem; padding: 1rem; border-left: 0.3rem solid var(--brand); background: var(--surface-alt); }
.pagination, .pagination ul { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; list-style: none; }
.pagination a, .pagination span { display: block; padding: 0.45rem 0.7rem; border: 1px solid var(--border); border-radius: 0.3rem; text-decoration: none; }
.site-footer { margin-top: 0; padding-block: 18px 10px; color: #fff; background: linear-gradient(180deg, #c20e15 0%, var(--footer) 100%); box-shadow: 0 -3px 14px rgba(96, 0, 4, 0.13); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.footer-grid h1, .footer-grid h2, .footer-grid h3, .footer-grid h4 { margin: 0 0 7px; padding-bottom: 5px; border-bottom: 1px solid #fff; color: #fff; font-size: 14px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 0 0 4px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.error-page, .offline-page { display: grid; min-height: 100vh; place-items: center; padding: 1rem; background: var(--surface-alt); }
.error-box, .offline-box { width: min(100%, 38rem); padding: 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.offline-box form { text-align: left; }
.offline-box button { width: 100%; margin-top: 1rem; }
.error-code { margin: 0; color: var(--brand); font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; line-height: 1; }
.component-view { padding: 1rem; }
.demo-portal { padding: 12px 0 8px; }
.demo-lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 8px; }
.demo-slider { display: grid; min-height: 390px; place-items: end start; padding: 12px; overflow: hidden; border: 1px solid #c7cdd4; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #46556a, #9aa3ad 48%, #18243a); box-shadow: var(--shadow); font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-weight: 700; }
.demo-slider span { padding: 8px 11px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
.demo-side { display: grid; align-content: start; gap: 8px; }
.demo-box { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.demo-box > strong { display: block; padding: 8px; border-top: 3px solid #aeb8c4; border-bottom: 1px solid #e1e5e9; font-size: 11px; background: #fbfcfd; }
.demo-box p { margin: 0 7px; padding: 9px 2px; border-bottom: 1px dotted #bbb; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.demo-calendar { display: grid; min-height: 150px; margin: 7px; place-items: center; border: 1px solid #bbb; color: #777; letter-spacing: 2px; }
.demo-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.demo-news article { min-width: 0; padding-bottom: 5px; border-radius: 4px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.demo-news article:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(15, 31, 52, 0.11); }
.demo-thumb { display: grid; aspect-ratio: 1.55; place-items: center; overflow: hidden; border-radius: 4px 4px 2px 2px; color: #fff; background: linear-gradient(135deg, #73879b, #c2c8cd); font-size: 10px; letter-spacing: 1px; }
.demo-news article:nth-child(3n + 2) .demo-thumb { background: linear-gradient(135deg, #3d5265, #86945d); }
.demo-news article:nth-child(3n + 3) .demo-thumb { background: linear-gradient(135deg, #802d2d, #c7765f); }
.demo-news h2 { margin: 8px 5px 5px; color: #001744; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.1; }
.demo-news p { margin: 0 5px; color: #4e5965; font-size: 10px; line-height: 1.3; }
.demo-footer { display: flex; flex-direction: column; gap: 4px; }
.demo-footer span { font-size: 10px; }

@media (max-width: 900px) {
    .header-inner { display: grid; min-height: 76px; grid-template-columns: 46px 1fr 46px; gap: 5px; padding-block: 6px; }
    .header-left, .header-right { overflow: hidden; }
    .brand-name { font-size: 24px; }
    .brand-logo img { max-height: 68px; }
    .navigation-inner { padding-block: 5px; }
    .menu-toggle { display: block; }
    .main-navigation { display: none; flex-basis: 100%; width: 100%; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { display: block; }
    .main-navigation li > ul { position: static; display: block; margin-left: 1rem; padding: 0; border: 0; box-shadow: none; }
    .main-navigation a, .main-navigation .nav-header { padding: 10px 12px; }
    .demo-menu li > span { padding: 10px 12px; }
    .demo-lead { grid-template-columns: 1fr; }
    .slider-layout { grid-template-columns: 1fr; }
    .demo-slider { min-height: 300px; }
    .demo-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid, .content-grid.has-left, .content-grid.has-right, .content-grid.has-left.has-right { grid-template-columns: 1fr; }
    .sidebar-left { order: 2; }
    .main-content { order: 1; }
    .sidebar-right { order: 3; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 520px) {
    .container { width: min(calc(100% - 16px), var(--content-width)); }
    .footer-grid { grid-template-columns: 1fr; }
    .demo-news { grid-template-columns: 1fr; }
}
