/* ═══════════════════════════════════════
   Степанківська СТГ — New Vision
   Main Stylesheet
   ═══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --stg-primary: #1a5276;
    --stg-primary-light: #2980b9;
    --stg-primary-dark: #0e3a55;
    --stg-accent: #f39c12;
    --stg-success: #1f8c54;
    --stg-danger: #c0392b;
    --stg-text: #1c2833;
    --stg-text-muted: #5d6d7e;
    --stg-bg: #f8f9fa;
    --stg-bg-alt: #eef2f7;
    --stg-white: #ffffff;
    --stg-border: #dce1e8;
    --stg-shadow: 0 2px 12px rgba(0,0,0,.06);
    --stg-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --stg-radius: 12px;
    --stg-radius-sm: 8px;
    --stg-transition: .3s cubic-bezier(.4,0,.2,1);
    --stg-font: 'e-Ukraine', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --stg-font-alt: 'Proba Pro', 'e-Ukraine', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow: hidden; height: 100vh; }

body {
    font-family: var(--stg-font);
    color: var(--stg-text);
    background: var(--stg-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
}

::selection { background: var(--stg-primary); color: #fff; }

a { color: var(--stg-primary); text-decoration: none; transition: color var(--stg-transition); }
a:hover { color: var(--stg-primary-light); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--stg-font);
}

/* ── App Container ── */
.stg-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Progress Bar ── */
.stg-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    opacity: 0;
    transition: opacity .2s;
}
.stg-progress.active { opacity: 1; }
.stg-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--stg-accent), var(--stg-primary-light));
    width: 0;
    transition: width .4s ease;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */

.stg-hero {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stg-hero--hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}
.stg-hero--fading {
    opacity: 0;
    pointer-events: none;
}

/* Slides */
.stg-hero__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.stg-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}
.stg-hero__slide--active { opacity: 1; }

/* Semi-transparent colored gradient overlay on each slide */
.stg-hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.65;
    transition: opacity 1.5s ease-in-out;
}
.stg-hero__slide--1::before { background: linear-gradient(135deg, #1a5276 0%, #0e3a55 50%, #1a3a5c 100%); }
.stg-hero__slide--2::before { background: linear-gradient(135deg, #2894c3 0%, #0d465c 50%, #102748 100%); }
.stg-hero__slide--3::before { background: linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #2c3e50 100%); }

/* Overlay */
.stg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
}

/* Topbar */
.stg-hero__topbar {
    position: relative;
    z-index: 5;
    padding: 12px 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
}
.stg-hero__contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.stg-hero__contact-link {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}
.stg-hero__contact-link:hover { color: #fff; }
.stg-hero__sep { color: rgba(255,255,255,0.3); }
.stg-hero__location { color: rgba(255,255,255,0.65); }
.stg-hero__socials {
    display: flex;
    gap: 12px;
}
.stg-hero__social {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    transition: color .2s, transform .2s;
}
.stg-hero__social:hover { color: #fff; transform: scale(1.1); }

/* Content */
.stg-hero__content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 0;
}
.stg-hero__logo {
    margin-bottom: 24px;
    animation: stgFadeInUp 0.8s ease both;
}
.stg-hero__logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.stg-hero__title {
    animation: stgFadeInUp 0.8s 0.2s ease both;
}
.stg-hero__title-main {
    display: block;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}
.stg-hero__title-sub {
    display: block;
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.stg-hero__desc {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: stgFadeInUp 0.8s 0.4s ease both;
}

/* Navigation */
.stg-hero__nav {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px 0 50px;
    animation: stgFadeInUp 0.8s 0.6s ease both;
}
.stg-hero__nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.stg-hero__nav-inner a:hover {
    color: #fff;
}
.stg-hero__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: all var(--stg-transition);
    min-width: 100px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
.stg-hero__nav-item i {
    font-size: 24px;
    opacity: 0.95;
    transition: transform 0.2s ease;
}
.stg-hero__nav-item span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.stg-hero__nav-item:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.stg-hero__nav-item:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.stg-hero__nav-menu-btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Dots */
.stg-hero__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.stg-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all .3s;
}
.stg-hero__dot--active,
.stg-hero__dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* ═══════════════════════════════════════
   MENU BUTTON
   ═══════════════════════════════════════ */

.stg-menu-btn {
    display: none;
}

/* ═══════════════════════════════════════
   FULLSCREEN MENU OVERLAY
   ═══════════════════════════════════════ */

.stg-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.stg-menu-overlay--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.stg-menu-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--stg-bg-alt);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all var(--stg-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stg-text);
}
.stg-menu-close:hover {
    background: var(--stg-primary);
    color: #fff;
    transform: rotate(90deg);
}

.stg-menu-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

.stg-menu-header {
    text-align: center;
    margin-bottom: 48px;
}
.stg-menu-header img {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}
.stg-menu-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--stg-primary);
}

.stg-menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.stg-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--stg-white);
    border: 2px solid var(--stg-border);
    border-radius: var(--stg-radius);
    text-decoration: none;
    transition: all var(--stg-transition);
}
.stg-menu-item:hover {
    border-color: var(--stg-primary);
    box-shadow: var(--stg-shadow-lg);
    transform: translateX(4px);
}
.stg-menu-item i {
    font-size: 32px;
    color: var(--stg-primary);
    flex-shrink: 0;
}
.stg-menu-item span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--stg-text);
    margin-bottom: 4px;
}
.stg-menu-item small {
    display: block;
    font-size: 13px;
    color: var(--stg-text-muted);
    font-family: var(--stg-font-alt);
}

.stg-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--stg-border);
}
.stg-menu-contacts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.stg-menu-contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--stg-text);
    font-size: 14px;
}
.stg-menu-contacts a:hover { color: var(--stg-primary); }
.stg-menu-socials {
    display: flex;
    gap: 16px;
}
.stg-menu-socials a {
    font-size: 24px;
    color: var(--stg-text-muted);
    transition: color .2s;
}
.stg-menu-socials a:hover { color: var(--stg-primary); }

/* ═══════════════════════════════════════
   CONTENT WRAPPER
   ═══════════════════════════════════════ */

.stg-content-wrapper {
    position: fixed;
    inset: 0;
    background: var(--stg-bg);
    z-index: 50;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.stg-content-wrapper--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stg-content-header {
    flex-shrink: 0;
}

.stg-content-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px 0 80px;
}
.stg-content-body .row {
    align-items: flex-start;
}

/* Sidebar Navigation */
.stg-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--stg-border, #dce1e8);
    border-radius: var(--stg-radius, 12px);
    padding: 16px 0;
    margin-bottom: 24px;
}

.stg-sidebar__back {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--stg-primary, #1a5276);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid var(--stg-border, #dce1e8);
    margin-bottom: 8px;
    transition: background .2s;
}

.stg-sidebar__back:hover {
    background: #f6f8fa;
}

.stg-sidebar__back i {
    font-size: .9rem;
}

.stg-sidebar__title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--stg-text, #1c2833);
    padding: 4px 16px 10px;
    margin: 0;
    border-bottom: 1px solid var(--stg-border, #dce1e8);
}

.stg-sidebar__nav {
    display: flex;
    flex-direction: column;
}

.stg-sidebar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: .84rem;
    color: var(--stg-text, #1c2833);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}

.stg-sidebar__link:hover {
    background: #f6f8fa;
    color: var(--stg-primary, #1a5276);
}

.stg-sidebar__link.active {
    background: #eef4fb;
    border-left-color: var(--stg-primary, #1a5276);
    color: var(--stg-primary, #1a5276);
    font-weight: 500;
}

.stg-sidebar__link span {
    flex: 1;
}

.stg-sidebar__arrow {
    font-size: .7rem;
    opacity: .5;
    margin-left: auto;
}

@media (max-width: 991px) {
    .stg-sidebar-col {
        display: none !important;
    }
    #stgMainCol {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Content Header */
.stg-content-header {
    background: var(--stg-white);
    border-bottom: 1px solid var(--stg-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}
.stg-content-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.stg-content-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stg-content-header__logo {
    border-radius: 8px;
    width: 32px;
    height: 32px;
}
.stg-content-header__title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--stg-text);
    margin: 0;
}

/* Content Body */
.stg-content-body {
    position: relative;
    padding: 32px 0 80px;
    min-height: calc(100vh - 100px);
}
.stg-content-body .row {
    align-items: flex-start;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */

.stg-sidebar {
    position: sticky;
    top: 120px;
    width: 280px;
    flex-shrink: 0;
    background: var(--stg-white);
    border-radius: var(--stg-radius);
    border: 1px solid var(--stg-border);
    padding: 0;
    max-height: calc(100vh - 160px);
    overflow: visible;
    transition: transform 0.4s ease;
}

.stg-sidebar__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stg-sidebar__nav {
    overflow: visible;
}

.stg-sidebar__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--stg-border);
}

.stg-sidebar__close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--stg-bg-alt);
    border: 1px solid var(--stg-border);
    border-radius: 50%;
    color: var(--stg-text);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--stg-transition);
    align-self: flex-start;
}
.stg-sidebar__close-btn:hover {
    background: var(--stg-primary);
    color: #fff;
    border-color: var(--stg-primary);
}

.stg-sidebar__nav-btns {
    display: flex;
    gap: 8px;
}

.stg-sidebar__back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--stg-bg-alt);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-sm);
    color: var(--stg-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--stg-transition);
    width: 100%;
}
.stg-sidebar__back-btn:hover {
    background: var(--stg-primary);
    color: #fff;
    border-color: var(--stg-primary);
}
.stg-sidebar__back-btn i {
    font-size: 16px;
}

.stg-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--stg-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--stg-text-secondary);
    cursor: pointer;
    transition: all var(--stg-transition);
    flex-shrink: 0;
}
.stg-back-btn:hover {
    background: var(--stg-primary);
    color: #fff;
    border-color: var(--stg-primary);
}
.stg-back-btn i { font-size: 14px; }

.stg-sidebar__title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--stg-primary);
    border-bottom: 1px solid var(--stg-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.stg-sidebar__title i {
    font-size: 20px;
}

.stg-sidebar__nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.stg-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--stg-radius-sm);
    color: var(--stg-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--stg-transition);
    cursor: pointer;
}
.stg-sidebar__link i {
    font-size: 18px;
    color: var(--stg-primary);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.stg-sidebar__link span {
    flex: 1;
}
.stg-sidebar__arrow {
    font-size: 12px;
    color: var(--stg-text-muted);
    margin-left: auto;
    transition: transform 0.2s;
}
.stg-sidebar__link:hover {
    background: var(--stg-bg-alt);
    color: var(--stg-primary);
}
.stg-sidebar__link:hover .stg-sidebar__arrow {
    transform: translateX(4px);
}
.stg-sidebar__link.active {
    background: rgba(26, 82, 118, 0.1);
    color: var(--stg-primary);
    font-weight: 600;
}
.stg-sidebar__link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--stg-primary);
    border-radius: 0 2px 2px 0;
}
.stg-sidebar__link {
    position: relative;
}

.stg-sidebar__submenu {
    margin-left: 36px;
    padding-left: 12px;
    border-left: 2px solid var(--stg-border);
}
.stg-sidebar__sublink {
    display: block;
    padding: 8px 12px;
    color: var(--stg-text-muted);
    font-size: 13px;
    border-radius: var(--stg-radius-sm);
    transition: all var(--stg-transition);
}
.stg-sidebar__sublink:hover,
.stg-sidebar__sublink--active {
    color: var(--stg-primary);
    background: rgba(26, 82, 118, 0.05);
}

/* Main Content */
.stg-main-content {
    flex: 1;
    min-width: 0;
}

/* Responsive embeds (YouTube, video, etc.) */
.stg-main-content iframe,
.stg-main-content video,
.stg-main-content embed,
.page-content iframe,
.page-content video,
.page-content embed,
.wp-block-embed iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════
   CONTENT CARDS & SECTIONS
   ═══════════════════════════════════════ */

.stg-section {
    margin-bottom: 40px;
}
.stg-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--stg-border);
}
.stg-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--stg-text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.stg-section__title i { color: var(--stg-primary); }
.stg-section__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--stg-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.stg-section__more:hover { gap: 10px; }

/* Post Cards Grid */
.stg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Post Card */
.stg-card {
    background: var(--stg-white);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius);
    overflow: hidden;
    box-shadow: var(--stg-shadow);
    transition: transform var(--stg-transition), box-shadow var(--stg-transition);
}
.stg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--stg-shadow-lg);
}
.stg-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.stg-card__thumb--placeholder {
    background: linear-gradient(135deg, var(--stg-bg-alt) 0%, var(--stg-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--stg-text-muted);
}
.stg-card__body {
    padding: 20px;
}
.stg-card__date {
    font-size: 12px;
    color: var(--stg-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stg-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.stg-card__title a { color: var(--stg-text); }
.stg-card__title a:hover { color: var(--stg-primary); }
.stg-card__excerpt {
    font-size: 14px;
    color: var(--stg-text-muted);
    line-height: 1.6;
}

/* Document List */
.stg-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stg-doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--stg-white);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-sm);
    transition: all var(--stg-transition);
}
.stg-doc-item:hover {
    border-color: var(--stg-primary);
    box-shadow: var(--stg-shadow);
}
.stg-doc-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--stg-radius-sm);
    background: var(--stg-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--stg-primary);
    flex-shrink: 0;
}
.stg-doc-item__info { flex: 1; min-width: 0; }
.stg-doc-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--stg-text);
    margin-bottom: 4px;
}
.stg-doc-item__meta {
    font-size: 12px;
    color: var(--stg-text-muted);
}
.stg-doc-item__download {
    padding: 8px 16px;
    background: var(--stg-primary);
    color: #fff;
    border-radius: var(--stg-radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--stg-transition);
}
.stg-doc-item__download:hover {
    background: var(--stg-primary-light);
    color: #fff;
}

/* Contact Card */
.stg-contact-card {
    background: var(--stg-white);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius);
    padding: 32px;
}
.stg-contact-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--stg-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--stg-primary);
}
.stg-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}
.stg-contact-item i {
    font-size: 20px;
    color: var(--stg-primary);
    width: 24px;
    text-align: center;
    margin-top: 2px;
}
.stg-contact-item__content { flex: 1; }
.stg-contact-item__label {
    font-size: 12px;
    color: var(--stg-text-muted);
    margin-bottom: 2px;
}
.stg-contact-item__value {
    font-size: 15px;
    color: var(--stg-text);
}

/* ═══════════════════════════════════════
   CONTENT TRANSITIONS
   ═══════════════════════════════════════ */

.stg-content-loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.stg-content-enter {
    animation: stgContentFadeIn 0.4s ease both;
}

/* ── Post Layout: article + sidebar ── */
.stg-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 700px) 280px;
    gap: 28px;
    align-items: start;
    justify-content: center;
    max-width: 1020px;
    margin: 0 auto;
}
.stg-post-article {
    min-width: 0;
}
.stg-post-sidebar {
    align-self: start;
    position: sticky;
    top: 16px;
}
.stg-post-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Sidebar Blocks ── */
.stg-sidebar-block {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 20px;
}
.stg-sidebar-block__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--stg-primary, #1a5276);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stg-sidebar-block__title i {
    color: var(--stg-primary, #1a5276);
}

/* ── Share Buttons ── */
.stg-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.stg-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stg-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #fff;
}
.stg-share-btn--fb { background: #1877f2; }
.stg-share-btn--fb:hover { background: #0d65d9; }
.stg-share-btn--tg { background: #0088cc; }
.stg-share-btn--tg:hover { background: #006daa; }
.stg-share-btn--viber { background: #7360f2; }
.stg-share-btn--viber:hover { background: #5a45d9; }
.stg-share-btn--email { background: #5a6a7a; }
.stg-share-btn--email:hover { background: #445566; }

/* ── Sidebar Recent Posts ── */
.stg-sidebar-recent__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stg-sidebar-recent__item {
    margin: 0;
}
.stg-sidebar-recent__link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.stg-sidebar-recent__link:hover {
    background: #f4f7fa;
}
.stg-sidebar-recent__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3f7;
}
.stg-sidebar-recent__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stg-sidebar-recent__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    color: #bdc3c7;
}
.stg-sidebar-recent__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.stg-sidebar-recent__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a2a3a;
}
.stg-sidebar-recent__link:hover .stg-sidebar-recent__title {
    color: var(--stg-primary, #1a5276);
}
.stg-sidebar-recent__date {
    font-size: 11px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 3px;
}

@media (max-width: 992px) {
    .stg-post-layout {
        grid-template-columns: 1fr;
    }
    .stg-post-sidebar__inner {
        position: static;
    }
    .stg-post-article {
        max-width: 100%;
    }
}

/* ── Post Meta Bar ── */
.stg-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 28px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f4f7fa 0%, #eef3f8 100%);
    border-left: 4px solid var(--stg-primary, #1a5276);
    border-radius: 0 8px 8px 0;
}
.stg-post-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a5568;
}
.stg-post-meta__item i {
    font-size: 14px;
    color: var(--stg-primary, #1a5276);
}
.stg-post-meta__cat {
    background: var(--stg-primary, #1a5276);
    color: #fff;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}
.stg-post-meta__cat:hover {
    background: var(--stg-primary-dark, #0e3a53);
    color: #fff;
    transform: translateY(-1px);
}
.stg-post-meta__actions {
    margin-left: auto;
}
.stg-post-meta__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #d5dce4;
    border-radius: 6px;
    padding: 5px 14px;
    cursor: pointer;
    color: #5a6a7a;
    font-size: 13px;
    transition: all 0.2s;
}
.stg-post-meta__action:hover {
    background: var(--stg-primary, #1a5276);
    color: #fff;
    border-color: var(--stg-primary, #1a5276);
}

/* ── Post Navigation (prev/next) ── */
.stg-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
    border-top: 2px solid #e8edf2;
}
.stg-post-nav__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.stg-post-nav__link:hover {
    background: #f4f7fa;
    border-bottom-color: var(--stg-primary, #1a5276);
}
.stg-post-nav__prev {
    border-right: 1px solid #e8edf2;
}
.stg-post-nav__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3f7;
    color: var(--stg-primary, #1a5276);
    font-size: 18px;
    transition: all 0.3s;
}
.stg-post-nav__link:hover .stg-post-nav__icon {
    background: var(--stg-primary, #1a5276);
    color: #fff;
}
.stg-post-nav__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.stg-post-nav__next .stg-post-nav__info {
    text-align: right;
    margin-left: auto;
}
.stg-post-nav__dir {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stg-primary, #1a5276);
    font-weight: 700;
}
.stg-post-nav__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.stg-post-nav__date {
    font-size: 11px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stg-post-nav__next .stg-post-nav__date {
    justify-content: flex-end;
}

/* ── WordPress Gallery Grid ── */
.page-content .gallery,
.page-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}
.page-content .gallery-item,
.page-content .wp-block-image {
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}
.page-content .gallery-item img,
.page-content .wp-block-image img,
.page-content .gallery img {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.page-content .gallery-item img:hover,
.page-content .wp-block-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.page-content .gallery-caption,
.page-content figcaption {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    padding: 6px 4px;
}
.page-content .gallery br {
    display: none;
}

@media (max-width: 768px) {
    .stg-post-nav {
        grid-template-columns: 1fr;
    }
    .stg-post-nav__prev {
        border-right: none;
        border-bottom: 1px solid #e8edf2;
    }
    .stg-post-nav__next .stg-post-nav__info {
        text-align: left;
        margin-left: 0;
    }
    .stg-post-nav__next .stg-post-nav__date {
        justify-content: flex-start;
    }
    .page-content .gallery,
    .page-content .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-thumbnail {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.page-content {
    animation: stgContentFadeIn 0.5s ease both;
    font-size: 15px;
    line-height: 1.75;
    color: #2c3e50;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #1a2a3a;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: 600;
}
.page-content h1 { font-size: 24px; }
.page-content h2 { font-size: 20px; border-bottom: 2px solid var(--stg-primary, #1a5276); padding-bottom: 8px; }
.page-content h3 { font-size: 17px; }
.page-content h4 { font-size: 15px; }
.page-content p {
    margin-bottom: 1em;
    text-align: justify;
}
.page-content ul,
.page-content ol {
    margin-bottom: 1em;
    padding-left: 24px;
}
.page-content li {
    margin-bottom: 0.4em;
}
.page-content a {
    /*color: var(--stg-primary, #1a5276);
    text-decoration: underline;*/
    text-underline-offset: 2px;
}
.page-content a:hover {
    color: #caba2a;
}
.page-content img {
    max-width: 100%;
    height: auto !important;
    width: auto;
    border-radius: 8px;
    margin: 16px auto;
    display: block;
}
.page-content p > img:only-child,
.page-content > img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.page-content th,
.page-content td {
    border: 1px solid #d5dce4;
    padding: 10px 14px;
    text-align: left;
}
.page-content th {
    background: #eef3f7;
    font-weight: 600;
    color: #1a2a3a;
}
.page-content tr:nth-child(even) {
    background: #f8fafb;
}
.page-content blockquote {
    border-left: 4px solid var(--stg-primary, #1a5276);
    margin: 16px 0;
    padding: 12px 20px;
    background: #f0f5fa;
    color: #34495e;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}
.page-content .wp-caption {
    max-width: 100%;
    margin: 12px 0;
}
.page-content .wp-caption-text {
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 4px;
}

@keyframes stgContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   LOADING SPINNER
   ═══════════════════════════════════════ */

.stg-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: stgFadeIn 0.2s ease both;
}

.stg-loading-spinner--hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stg-loading-spinner span {
    font-size: 14px;
    color: var(--stg-text-muted);
    font-weight: 500;
}

.stg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--stg-border);
    border-top-color: var(--stg-primary);
    border-radius: 50%;
    animation: stgSpinRotate 0.8s linear infinite;
}

@keyframes stgSpinRotate {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════ */

.stg-skeleton {
    background: linear-gradient(90deg, var(--stg-bg-alt) 25%, #e8ecf2 50%, var(--stg-bg-alt) 75%);
    background-size: 200% 100%;
    animation: stgShimmer 1.5s infinite;
    border-radius: var(--stg-radius-sm);
}
@keyframes stgShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
.stg-skeleton--text { height: 16px; margin-bottom: 10px; }
.stg-skeleton--title { height: 28px; width: 60%; margin-bottom: 16px; }
.stg-skeleton--thumb { aspect-ratio: 16/9; width: 100%; border-radius: var(--stg-radius); }
.stg-skeleton--card {
    height: 280px;
    border-radius: var(--stg-radius);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.stg-footer {
    background: var(--stg-primary-dark);
    color: rgba(255,255,255,0.85);
    margin-top: auto;
}
.stg-footer__top {
    padding: 48px 0 32px;
}
.stg-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stg-footer__logo {
    border-radius: 12px;
}
.stg-footer__name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.stg-footer__desc {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.5;
}
.stg-footer__heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stg-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}
.stg-footer__list li {
    padding: 6px 0;
}
.stg-footer__list a {
    color: rgba(255,255,255,0.75);
    transition: color .2s;
}
.stg-footer__list a:hover { color: #fff; }
.stg-footer__socials {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.stg-footer__socials a {
    font-size: 24px;
    color: rgba(255,255,255,0.6);
    transition: color .2s;
}
.stg-footer__socials a:hover { color: #fff; }
.stg-footer__bottom {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* Back to Top */
.stg-btt {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--stg-primary);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--stg-transition);
    pointer-events: none;
}
.stg-btt--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.stg-btt:hover {
    background: var(--stg-primary-light);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

@keyframes stgFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stg-animate-fade-in {
    animation: stgFadeIn 0.5s ease both;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1199.98px) {
    .stg-sidebar {
        width: 240px;
    }
}

@media (max-width: 991.98px) {
    .stg-hero__nav-inner {
        gap: 8px 16px;
    }
    .stg-hero__nav-item {
        min-width: 100px;
        padding: 12px 16px;
    }
    .stg-hero__nav-item i { font-size: 24px; }
    .stg-hero__nav-item span { font-size: 12px; }

    .stg-sidebar {
        display: none;
    }
    .stg-sidebar--open {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 300px;
        height: 100vh;
        z-index: 120;
        border-radius: 0;
        max-height: 100vh;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .stg-menu-content {
        padding: 80px 24px 40px;
    }
    .stg-menu-list {
        grid-template-columns: 1fr;
    }
    .stg-menu-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .stg-hero__topbar { display: none; }
    
    .stg-hero__content {
        padding: 40px 20px;
    }
    .stg-hero__logo img {
        width: 90px;
        height: 90px;
    }
    .stg-hero__title-main { font-size: 24px; }
    .stg-hero__title-sub { font-size: 16px; }

    .stg-hero__nav-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stg-hero__nav-item {
        min-width: unset;
        padding: 12px;
    }
    .stg-hero__nav-item span { font-size: 11px; }

    .stg-menu-btn {
        display: none;
    }

    .stg-content-header {
        padding: 12px 0;
    }
    .stg-content-header__inner {
        gap: 12px;
    }
    .stg-content-header__left {
        gap: 10px;
    }
    .stg-content-header__logo { 
        width: 28px; 
        height: 28px; 
    }
    .stg-content-header__title { 
        font-size: 16px; 
    }
    .stg-back-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    .stg-back-btn span {
        display: none;
    }

    .stg-cards-grid {
        grid-template-columns: 1fr;
    }

    .stg-footer__top { padding: 32px 0 24px; }
}

@media (max-width: 575.98px) {
    .stg-hero__nav-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 12px;
    }
    .stg-hero__nav-item i { font-size: 20px; }
    .stg-hero__nav-item span { font-size: 10px; }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

:focus-visible {
    outline: 3px solid var(--stg-accent);
    outline-offset: 2px;
}

/* Skip link positioning */
.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.visually-hidden-focusable:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--stg-primary);
    color: #fff;
    font-weight: 600;
    z-index: 10000;
    border-radius: var(--stg-radius-sm);
}

/* ═══════════════════════════════════════
   PRINT
   ═══════════════════════════════════════ */

@media print {
    .stg-hero,
    .stg-menu-btn,
    .stg-menu-overlay,
    .stg-back-btn,
    .stg-footer,
    .stg-btt,
    .stg-sidebar { display: none !important; }

    .stg-content-wrapper {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .stg-main-content { width: 100%; }
}

/* ═══════════════════════════════════════
   WORDPRESS ADMIN BAR FIX
   ═══════════════════════════════════════ */

.admin-bar .stg-content-header {
    top: 32px;
}

/* HTML hidden attribute support */
[hidden] {
    display: none !important;
}

/* Icon utilities */
.stg-icon-large {
    font-size: 3rem;
}

.stg-icon-muted {
    color: #aaa;
}

.stg-icon-light {
    color: #ccc;
}

/* ═══════════════════════════════════════
   DECISIONS ACCORDION STYLES
   ═══════════════════════════════════════ */

.rishennya-wrapper {
    font-family: inherit;
    margin-bottom: 50px;
}

.rish-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.rish-search-wrap input {
    width: 100%;
    padding: 11px 46px 11px 16px;
    border: 1px solid #c8d0d8;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.rish-search-wrap input:focus {
    border-color: #5a88c8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(90,136,200,.13);
}
.rish-search-wrap .rish-search-icon {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    color: #aab0bb;
    pointer-events: none;
}
.rish-search-info {
    font-size: 12.5px;
    color: #7a8898;
    margin-bottom: 14px;
    min-height: 18px;
}
.search-hl {
    background: #fff3b0;
    border-radius: 2px;
    padding: 0 1px;
}

.acc-year {
    margin-bottom: 5px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #d3dbe5;
}
.acc-year-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e8edf3;
    cursor: pointer;
    user-select: none;
    transition: background .18s;
}
.acc-year-hd:hover { background: #dde3ed; }
.acc-year-hd.open  { background: #d5dde8; border-bottom: 1px solid #c0cad8; }
.acc-year-hd .yr-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2a3a50;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.acc-year-hd .yr-count {
    font-size: 0.8rem;
    background: #b7c6d8;
    color: #2a3a50;
    border-radius: 20px;
    padding: 2px 9px;
    font-weight: 500;
    flex-shrink: 0;
}
.acc-year-bd {
    display: none;
    background: #f5f7fa;
    padding: 8px;
}

.acc-session {
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d8e0ea;
}
.acc-session-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #edf2f8;
    cursor: pointer;
    user-select: none;
    transition: background .18s;
}
.acc-session-hd:hover { background: #e2eaf4; }
.acc-session-hd.open  { background: #d8e4f0; border-bottom: 1px solid #c5d3e0; }
.acc-session-hd .sess-label {
    font-size: 1.05rem;
    color: #2a3a50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.acc-session-hd .sess-count {
    font-size: 0.85rem;
    color: #6a7f96;
    margin-left: 4px;
    font-weight: 400;
    flex-shrink: 0;
}
.acc-session-bd {
    display: none;
    background: #fff;
    padding: 6px;
}

.acc-post {
    margin-bottom: 3px;
    border-radius: 4px;
    border: 1px solid #e5eaef;
    overflow: hidden;
}
.acc-post-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    background: #fafbfc;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.acc-post-hd:hover { background: #f0f4fa; }
.acc-post-hd.open  { background: #eaf0f8; border-bottom: 1px solid #d0daea; }
.acc-post-hd .post-label {
    font-size: 1.05rem;
    color: #1e3050;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.acc-post-hd .post-label > svg { flex-shrink: 0; margin-top: 3px; }
.post-label-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.post-title-main {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e3050;
    margin: 0;
}
.post-title-about {
    font-size: 1rem;
    font-weight: 400;
    color: #1b1e21;
    line-height: 1.4;
    margin: 0;
}
.acc-post-bd {
    display: none;
    padding: 18px 18px 14px;
    background: #fff;
}
.acc-post-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #1e2a38;
}
.acc-post-content img { max-width: 100%; height: auto; }
.acc-post-content table { max-width: 100%; overflow-x: auto; display: block; }
.acc-orig-link {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e8edf3;
    font-size: 1rem;
    font-weight: 600;
}
.acc-orig-link a {
    color: #4a78b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.acc-orig-link a:hover { text-decoration: underline; color: #2a5898; }

.acc-arr-icon {
    width: 20px; min-width: 20px;
    flex-shrink: 0;
    transition: transform .3s;
    color: #7a90aa;
    margin-left: 8px;
}

.acc-loading {
    padding: 16px;
    text-align: center;
    color: #8a9aaa;
    font-size: 13px;
}
.acc-loading::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #d0dae6;
    border-top-color: #5a88c8;
    border-radius: 50%;
    animation: stgSpin .7s linear infinite;
    margin-right: 7px;
    vertical-align: middle;
}
@keyframes stgSpin { to { transform: rotate(360deg); } }
.acc-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #a0aab6;
}
.rish-no-results {
    text-align: center;
    padding: 40px 0;
    color: #a0aab6;
    font-size: 14px;
}

.rish-no-results[hidden] {
    display: none;
}

/* Decision Document Styles */
.rish-doc-inner {
    font-family: 'Times New Roman', serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.rish-doc-inner .doc-gerb {
    text-align: center;
    margin-bottom: 20px;
}
.rish-doc-inner .doc-gerb .img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23ffd700" stroke="%23b8860b" stroke-width="2"/><text x="50" y="60" text-anchor="middle" font-size="40">🏛</text></svg>') center/contain no-repeat;
}
.rish-doc-inner .country {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.rish-doc-inner .name-rada {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.rish-doc-inner .district {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}
.rish-doc-inner .number-sesii {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.rish-doc-inner .about-doc {
    font-weight: bold;
    margin-bottom: 15px;
}
.rish-doc-inner .vidpovidno {
    margin-bottom: 15px;
}
.rish-doc-inner .text-rish {
    margin-bottom: 20px;
}
.rish-doc-inner .PIB {
    text-align: right;
    font-style: italic;
}
.rish-doc-inner .files {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}
.rish-doc-inner .files a {
    display: block;
    padding: 8px 0;
    color: #4a78b8;
}

@media (max-width: 600px) {
    .acc-year-hd .yr-label { font-size: 1rem; }
    .acc-session-hd .sess-label { font-size: 0.95rem; }
    .post-title-main { font-size: 0.95rem; }
    .post-title-about { font-size: 0.85rem; }
    .acc-post-bd { padding: 12px; }
    .rish-doc-inner { padding: 10px; }
}

/* ═══════════════════════════════════════
   SPA SECTION STYLES
   ═══════════════════════════════════════ */

.stg-section {
    padding: 30px 0;
}

.stg-section__header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--stg-primary);
}

.stg-section__header h2 {
    color: var(--stg-primary);
    font-size: 1.75rem;
    margin: 0;
}

.stg-section__content {
    background: var(--stg-white);
    padding: 25px;
    border-radius: var(--stg-radius);
    box-shadow: var(--stg-shadow);
}

.stg-card {
    background: var(--stg-white);
    border-radius: var(--stg-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--stg-shadow);
    transition: transform var(--stg-transition), box-shadow var(--stg-transition);
    height: 100%;
}

.stg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--stg-shadow-lg);
}

.stg-card__icon {
    font-size: 48px;
    color: var(--stg-primary);
    margin-bottom: 15px;
}

.stg-card__icon i {
    display: inline-block;
}

.stg-card h4 {
    color: var(--stg-text);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.stg-card p {
    color: var(--stg-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stg-card--primary {
    background: var(--stg-primary);
    color: #fff;
}

.stg-card--primary h4,
.stg-card--primary p,
.stg-card--primary .stg-card__icon {
    color: #fff;
}

.stg-card--success {
    background: var(--stg-success);
    color: #fff;
}

.stg-card--success h4,
.stg-card--success p,
.stg-card--success .stg-card__icon {
    color: #fff;
}

.stg-service-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--stg-white);
    border-radius: var(--stg-radius);
    box-shadow: var(--stg-shadow);
    transition: all var(--stg-transition);
    text-align: center;
    color: var(--stg-text);
}

.stg-service-link:hover {
    background: var(--stg-primary);
    color: #fff;
    transform: translateY(-3px);
}

.stg-service-link i {
    font-size: 32px;
    margin-bottom: 10px;
}

.stg-contact-card {
    background: var(--stg-white);
    padding: 20px;
    border-radius: var(--stg-radius);
    box-shadow: var(--stg-shadow);
}

.stg-contact-card h4 {
    color: var(--stg-primary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stg-contact-card h4 i {
    margin-right: 8px;
}

.stg-contact-card p {
    margin: 0;
    line-height: 1.6;
}

.stg-map {
    border-radius: var(--stg-radius);
    overflow: hidden;
    box-shadow: var(--stg-shadow);
}

.stg-aside .card {
    border: none;
    border-radius: var(--stg-radius);
    box-shadow: var(--stg-shadow);
}

.stg-aside .card-title {
    color: var(--stg-primary);
}

.stg-aside .list-unstyled li {
    padding: 5px 0;
    border-bottom: 1px solid var(--stg-border);
}

.stg-aside .list-unstyled li:last-child {
    border-bottom: none;
}

.news-tabs .nav-tabs {
    border-bottom: 2px solid var(--stg-border);
    margin-bottom: 20px;
}

.news-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--stg-text-muted);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 0;
    transition: all var(--stg-transition);
}

.news-tabs .nav-tabs .nav-link:hover {
    color: var(--stg-primary);
    border-color: transparent;
}

.news-tabs .nav-tabs .nav-link.active {
    color: var(--stg-primary);
    background: transparent;
    border-bottom: 3px solid var(--stg-primary);
}

.news-box {
    background: var(--stg-white);
    border-radius: var(--stg-radius-sm);
    box-shadow: var(--stg-shadow);
    overflow: hidden;
    transition: all var(--stg-transition);
}

.news-box:hover {
    box-shadow: var(--stg-shadow-lg);
}

.news-box a {
    display: block;
    padding: 15px;
    color: var(--stg-text);
}

.news-box .img-box {
    border-radius: var(--stg-radius-sm);
    overflow: hidden;
    height: 100%;
}

.news-box .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-box .short-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-box .title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--stg-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-box .date {
    font-size: 0.8rem;
    color: var(--stg-text-muted);
}

.news-box .category-badge {
    display: inline-block;
    background: var(--stg-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   ENHANCED SIDEBAR MULTI-LEVEL LAYOUT
   ══════════════════════════════════════════════ */

.stg-sidebar-levels {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.stg-sidebar-levels::-webkit-scrollbar {
    height: 6px;
}

.stg-sidebar-levels::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.stg-sidebar-levels::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.stg-sidebar-level {
    flex: 0 0 auto;
    width: 280px;
    background: var(--stg-bg-light, #f8f9fa);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stg-sidebar-level:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

.stg-sidebar-level__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--stg-primary, #0d6efd);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stg-sidebar-level__title i {
    font-size: 0.9em;
    opacity: 0.8;
}

.stg-sidebar-level__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ══════════════════════════════════════════════
   ENHANCED SIDEBAR LINKS
   ══════════════════════════════════════════════ */

.stg-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    color: var(--stg-text, #212529);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.stg-sidebar__link:hover {
    background: var(--stg-primary-light, rgba(13, 110, 253, 0.05));
    color: var(--stg-primary, #0d6efd);
    border-color: rgba(13, 110, 253, 0.2);
    transform: translateX(4px);
}

.stg-sidebar__link--active {
    background: var(--stg-primary, #0d6efd);
    color: white;
    border-color: var(--stg-primary, #0d6efd);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.stg-sidebar__link--active:hover {
    background: var(--stg-primary-dark, #0b5ed7);
    color: white;
    transform: none;
}

.stg-sidebar__link i:first-child {
    margin-right: 0.5rem;
    font-size: 0.9em;
    opacity: 0.8;
}

.stg-sidebar__arrow {
    font-size: 0.8em;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.stg-sidebar__link:hover .stg-sidebar__arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ══════════════════════════════════════════════
   ENHANCED BREADCRUMBS
   ══════════════════════════════════════════════ */

.stg-breadcrumbs {
    background: var(--stg-bg-light, #f8f9fa);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.stg-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.stg-breadcrumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.95rem;
}

.stg-breadcrumbs .breadcrumb-item.active {
    color: var(--stg-primary, #0d6efd);
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stg-breadcrumbs .breadcrumb-separator {
    color: rgba(0,0,0,0.3);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.stg-breadcrumb-link {
    color: var(--stg-text, #212529);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.stg-breadcrumb-link:hover {
    color: var(--stg-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.05);
}

.stg-breadcrumb-link i {
    font-size: 0.9em;
    opacity: 0.7;
}

/* ══════════════════════════════════════════════
   ENHANCED BACK BUTTON
   ══════════════════════════════════════════════ */

.stg-sidebar-back {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--stg-bg-light, #f8f9fa);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    color: var(--stg-text, #212529);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.stg-sidebar-back:hover {
    background: white;
    border-color: var(--stg-primary, #0d6efd);
    color: var(--stg-primary, #0d6efd);
    transform: translateX(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.stg-sidebar-back__icon {
    font-size: 1.1em;
    opacity: 0.8;
}

.stg-sidebar-back__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   ENHANCED ANIMATIONS
   ══════════════════════════════════════════════ */

@keyframes stgSlideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stg-content-animate {
    animation: stgFadeInUp 0.3s ease forwards;
}

.stg-sidebar-animate {
    animation: stgSlideInRight 0.3s ease forwards;
}

/* ══════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
    .stg-sidebar-levels {
        gap: 1rem;
    }

    .stg-sidebar-level {
        width: 240px;
        padding: 1rem;
    }
}

@media (max-width: 991.98px) {
    .stg-sidebar-levels {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .stg-sidebar-level {
        width: 100%;
        margin-bottom: 1rem;
    }

    .stg-sidebar-col {
        order: -1;
        margin-bottom: 2rem;
    }

    .stg-main-col {
        order: 1;
    }
}

@media (max-width: 767.98px) {
    .stg-breadcrumbs .breadcrumb {
        font-size: 0.9rem;
    }

    .stg-sidebar__link {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }

    .stg-sidebar-back {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* ══════════════════════════════════════════════
   DEEP NAVIGATION INDICATOR
   ══════════════════════════════════════════════ */

.stg-depth-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    font-weight: 500;
}

.stg-depth-indicator i {
    font-size: 0.7em;
}

/* ══════════════════════════════════════════════
   LOADING STATES
   ══════════════════════════════════════════════ */

.stg-loading {
    position: relative;
    overflow: hidden;
}

.stg-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%);
    animation: stgShimmer 1.5s infinite;
    z-index: 1;
}

@keyframes stgShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════
   NO CONTENT MESSAGE
   ══════════════════════════════════════════════ */

.stg-no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(0,0,0,0.5);
}

.stg-no-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.stg-no-content h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgba(0,0,0,0.7);
}

.stg-no-content p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════
   CARD NAVIGATION
   ══════════════════════════════════════════════ */

.stg-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--stg-bg-alt);
    border-radius: var(--stg-radius-sm);
    font-size: 14px;
    margin-top: 15px;
}

.stg-breadcrumbs a {
    color: var(--stg-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stg-breadcrumbs a:hover {
    text-decoration: underline;
}

.stg-breadcrumbs .separator {
    color: var(--stg-text-muted);
}

.stg-breadcrumbs .current {
    color: var(--stg-text);
    font-weight: 500;
}

/* Cards Section */
.stg-cards-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--stg-border);
}

.stg-cards-grid .stg-card {
    animation: stgCardAppear 0.4s ease both;
}
.stg-cards-grid .stg-card:nth-child(1) { animation-delay: 0s; }
.stg-cards-grid .stg-card:nth-child(2) { animation-delay: 0.05s; }
.stg-cards-grid .stg-card:nth-child(3) { animation-delay: 0.1s; }
.stg-cards-grid .stg-card:nth-child(4) { animation-delay: 0.15s; }
.stg-cards-grid .stg-card:nth-child(5) { animation-delay: 0.2s; }
.stg-cards-grid .stg-card:nth-child(6) { animation-delay: 0.25s; }
.stg-cards-grid .stg-card:nth-child(7) { animation-delay: 0.3s; }
.stg-cards-grid .stg-card:nth-child(8) { animation-delay: 0.35s; }

@keyframes stgCardAppear {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stg-cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stg-cards-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--stg-text);
    margin: 0;
}

/* Search Box */
.stg-cards-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.stg-cards-search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-sm);
    font-size: 14px;
    background: var(--stg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stg-cards-search input:focus {
    outline: none;
    border-color: var(--stg-primary);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.stg-cards-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--stg-text-muted);
    pointer-events: none;
}

/* Cards Grid */
.stg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Individual Card */
.stg-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--stg-white);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    justify-content: center;
}

.stg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--stg-shadow-lg);
    border-color: var(--stg-primary);
}

.stg-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.stg-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--stg-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.stg-card__desc {
    font-size: 14px;
    color: var(--stg-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.stg-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--stg-text-muted);
    justify-content: center;
}

.stg-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--stg-bg-alt);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stg-card__arrow {
    margin-left: auto;
    color: var(--stg-primary);
    transition: transform 0.2s;
    margin: 0;
}

.stg-card:hover .stg-card__arrow {
    transform: translateX(4px);
}

/* Card Highlight for Search */
.stg-card[hidden] {
    display: none;
}

.stg-card.highlight {
    border-color: var(--stg-accent);
    background: rgba(243, 156, 18, 0.05);
}

/* Empty State */
.stg-cards-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--stg-text-muted);
}

.stg-cards-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.stg-cards-empty p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stg-cards-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stg-cards-search {
        max-width: none;
    }
    
    .stg-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stg-card {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════
   NEWS SECTION
   ═══════════════════════════════════════ */

.stg-news {
    padding-bottom: 40px;
}

/* Tabs */
.stg-news__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--stg-border);
}

.stg-news__tab {
    padding: 8px 18px;
    border: 1px solid var(--stg-border);
    border-radius: 24px;
    background: var(--stg-white);
    color: var(--stg-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--stg-transition);
    white-space: nowrap;
}

.stg-news__tab:hover {
    border-color: var(--stg-primary);
    color: var(--stg-primary);
}

.stg-news__tab--active {
    background: var(--stg-primary);
    border-color: var(--stg-primary);
    color: #fff;
}

.stg-news__tab--active:hover {
    background: var(--stg-primary-light);
    border-color: var(--stg-primary-light);
    color: #fff;
}

/* Grid */
.stg-news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-height: 200px;
}

/* Card */
.stg-news-card {
    background: var(--stg-white);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius);
    overflow: hidden;
    transition: all var(--stg-transition);
    animation: stgCardAppear 0.4s ease both;
}

.stg-news-card:hover {
    box-shadow: var(--stg-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--stg-primary);
}

.stg-news-card__link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.stg-news-card__img {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--stg-bg-alt);
}

.stg-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stg-news-card:hover .stg-news-card__img img {
    transform: scale(1.05);
}

.stg-news-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--stg-border);
}

.stg-news-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.stg-news-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--stg-text);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stg-news-card__date {
    font-size: 13px;
    color: var(--stg-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Loading & Empty */
.stg-news__loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--stg-text-muted);
    font-size: 14px;
}

.stg-news__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--stg-text-muted);
    font-size: 15px;
}

/* Load More */
.stg-news__more {
    text-align: center;
    margin-top: 32px;
}

.stg-news__more[hidden] {
    display: none;
}

.stg-news__more-btn {
    padding: 12px 40px;
    background: var(--stg-primary);
    color: #fff;
    border: none;
    border-radius: var(--stg-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--stg-transition);
}

.stg-news__more-btn:hover {
    background: var(--stg-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 82, 118, 0.3);
}

.stg-news__more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* News Responsive */
@media (max-width: 991.98px) {
    .stg-news-card__img {
        width: 160px;
    }
}

@media (max-width: 767.98px) {
    .stg-news__grid {
        grid-template-columns: 1fr;
    }

    .stg-news-card__link {
        flex-direction: column;
    }

    .stg-news-card__img {
        width: 100%;
        height: 180px;
        min-height: unset;
    }

    .stg-news__tabs {
        gap: 6px;
    }

    .stg-news__tab {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════
   DECISIONS ACCORDION
   ═══════════════════════════════════════ */
.rishennya-wrapper {
    font-family: inherit;
    margin-bottom: 50px;
}
.rish-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.rish-search-wrap input {
    width: 100%;
    padding: 11px 46px 11px 16px;
    border: 1px solid #c8d0d8;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.rish-search-wrap input:focus {
    border-color: #5a88c8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(90,136,200,.13);
}
.rish-search-wrap .rish-search-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab0bb;
    pointer-events: none;
}
.rish-search-info {
    font-size: 12.5px;
    color: #7a8898;
    margin-bottom: 14px;
    min-height: 18px;
}
.search-hl {
    background: #fff3b0;
    border-radius: 2px;
    padding: 0 1px;
}
.acc-year {
    margin-bottom: 5px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #d3dbe5;
}
.acc-year-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e8edf3;
    cursor: pointer;
    user-select: none;
    transition: background .18s;
}
.acc-year-hd:hover { background: #dde3ed; }
.acc-year-hd.open { background: #d5dde8; border-bottom: 1px solid #c0cad8; }
.acc-year-hd .yr-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2a3a50;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.acc-year-hd .yr-label svg { margin: 0; }
.acc-year-hd .yr-count {
    font-size: 0.8rem;
    background: #b7c6d8;
    color: #2a3a50;
    border-radius: 20px;
    padding: 2px 9px;
    font-weight: 500;
    flex-shrink: 0;
}
.acc-year-bd {
    display: none;
    background: #f5f7fa;
    padding: 8px;
}
.acc-session {
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d8e0ea;
}
.acc-session-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #edf2f8;
    cursor: pointer;
    user-select: none;
    transition: background .18s;
}
.acc-session-hd:hover { background: #e2eaf4; }
.acc-session-hd.open { background: #d8e4f0; border-bottom: 1px solid #c5d3e0; }
.acc-session-hd .sess-label {
    font-size: 1.05rem;
    color: #2a3a50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.acc-session-hd .sess-label svg { margin: 0; }
.acc-session-hd .sess-count {
    font-size: 0.85rem;
    color: #6a7f96;
    margin-left: 4px;
    font-weight: 400;
    flex-shrink: 0;
}
.acc-session-bd {
    display: none;
    background: #fff;
    padding: 6px;
}
.acc-post {
    margin-bottom: 3px;
    border-radius: 4px;
    border: 1px solid #e5eaef;
    overflow: hidden;
}
.acc-post-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    background: #fafbfc;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.acc-post-hd:hover { background: #f0f4fa; }
.acc-post-hd.open { background: #eaf0f8; border-bottom: 1px solid #d0daea; }
.acc-post-hd .post-label {
    font-size: 1.05rem;
    color: #1e3050;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.acc-post-hd .post-label > svg {
    flex-shrink: 0;
    margin-top: 3px;
}
.post-label-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.post-title-main {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e3050;
    margin: 0;
}
.post-title-about {
    font-size: 1rem;
    font-weight: 400;
    color: #1b1e21;
    line-height: 1.4;
    margin: 0;
}
.acc-post-bd {
    display: none;
    padding: 18px 18px 14px;
    background: #fff;
}
.acc-post-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #1e2a38;
}
.acc-post-content img { max-width: 100%; height: auto; }
.acc-post-content table { max-width: 100%; overflow-x: auto; display: block; }
.acc-orig-link {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e8edf3;
    font-size: 1rem;
    font-weight: 600;
}
.acc-orig-link a {
    color: #4a78b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.acc-orig-link a:hover { text-decoration: underline; color: #2a5898; }
.acc-arr {
    width: 20px;
    min-width: 20px;
    flex-shrink: 0;
    transition: transform .3s;
    color: #7a90aa;
    margin-left: 8px;
}
.acc-arr svg { width: 14px; height: 14px; display: block; }
.open .acc-arr { transform: rotate(180deg); }
.acc-loading {
    padding: 16px;
    text-align: center;
    color: #8a9aaa;
    font-size: 13px;
}
.acc-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #d0dae6;
    border-top-color: #5a88c8;
    border-radius: 50%;
    animation: accSpin .7s linear infinite;
    margin-right: 7px;
    vertical-align: middle;
}
@keyframes accSpin { to { transform: rotate(360deg); } }
.acc-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #a0aab6;
}
.rish-no-results {
    text-align: center;
    padding: 40px 0;
    color: #a0aab6;
    font-size: 14px;
    display: none;
}
.rish-hidden { display: none !important; }
.rish-doc-inner {
    text-align: center;
    line-height: 1.8;
}
.rish-doc-inner .row { text-align: left; }
.rish-doc-inner .country,
.rish-doc-inner .name-rada,
.rish-doc-inner .district,
.rish-doc-inner .number-sesii {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}
.rish-doc-inner .about-doc,
.rish-doc-inner .vidpovidno,
.rish-doc-inner .text-rish {
    text-align: left;
}
.rish-doc-inner .files { text-align: left; margin-top: 16px; }
.rish-doc-inner .files a { color: #4a78b8; text-decoration: none; }
.rish-doc-inner .files a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   FILE CARDS — auto-enhanced file links
   ═══════════════════════════════════════ */
.stg-file-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: box-shadow .2s, border-color .2s;
}
.stg-file-card:hover {
    border-color: #c8d6e5;
    box-shadow: 0 2px 12px rgba(26,79,138,.08);
}
.stg-file-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.stg-file-badge--pdf { background: #e74c3c; }
.stg-file-badge--doc,
.stg-file-badge--docx { background: #3498db; }
.stg-file-badge--xls,
.stg-file-badge--xlsx { background: #27ae60; }
.stg-file-badge--ppt,
.stg-file-badge--pptx { background: #e67e22; }
.stg-file-badge--zip,
.stg-file-badge--rar { background: #8e44ad; }
.stg-file-badge--txt { background: #7f8c8d; }
.stg-file-badge--img { background: #1abc9c; }
.stg-file-badge--other { background: #95a5a6; }
.stg-file-name {
    flex: 1 1 150px;
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
}
.stg-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.stg-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s, box-shadow .2s;
    white-space: nowrap;
    min-height: 38px;
}
.stg-file-btn svg {
    flex-shrink: 0;
}
.stg-file-btn__label {
    font-size: 13px;
}
.stg-file-btn:active { transform: scale(0.97); }
.stg-file-btn--download {
    background: var(--stg-primary, #1a5276);
    color: #fff;
}
.stg-file-btn--download:hover {
    background: var(--stg-primary-dark, #0e3a53);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(26,82,118,.25);
}
.stg-file-btn--preview {
    background: #f0f4f8;
    color: var(--stg-primary, #1a5276);
    border: 1px solid #d0dae6;
}
.stg-file-btn--preview:hover {
    background: #e2eaf4;
    color: var(--stg-primary-dark, #0e3a53);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.stg-file-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.stg-file-modal.stg-file-modal--visible {
    opacity: 1;
    visibility: visible;
}
.stg-file-modal__inner {
    background: #fff;
    border-radius: 14px;
    width: 92vw;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,.25);
    transform: scale(0.95);
    transition: transform .25s;
}
.stg-file-modal.stg-file-modal--visible .stg-file-modal__inner {
    transform: scale(1);
}
.stg-file-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #e8ecf2;
    flex-shrink: 0;
}
.stg-file-modal__title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.stg-file-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f3f6;
    color: #5a6c7e;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    margin-left: 12px;
}
.stg-file-modal__close:hover {
    background: #e2e8ee;
    color: #2c3e50;
}
.stg-file-modal__body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.stg-file-modal__body iframe,
.stg-file-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 14px 14px;
}
.stg-file-modal__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 0 0 14px 14px;
}
.stg-file-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafb;
    color: #8a9aaa;
    font-size: 14px;
}
/* ── Post Meta responsive ── */
@media (max-width: 992px) {
    .stg-post-meta {
        gap: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }
    .stg-post-meta__actions {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}
@media (max-width: 768px) {
    .stg-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    .stg-post-meta__cat {
        font-size: 10px;
        padding: 2px 10px;
    }
    .stg-post-meta__action {
        padding: 4px 10px;
        font-size: 12px;
    }
    .stg-file-card {
        padding: 10px 14px;
        gap: 10px;
    }
    .stg-file-badge {
        min-width: 40px;
        height: 40px;
        font-size: 10px;
    }
    .stg-file-name {
        font-size: 13px;
        min-width: 100px;
    }
    .stg-file-actions {
        width: 100%;
    }
    .stg-file-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 12px;
        min-height: 34px;
    }
    .stg-file-modal__inner {
        width: 98vw;
        height: 90vh;
        border-radius: 10px;
    }
}
@media (max-width: 480px) {
    .stg-post-meta {
        padding: 8px 12px;
        font-size: 11px;
    }
    .stg-post-meta__item i {
        font-size: 12px;
    }
    .stg-post-meta__action {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 5px;
    }
    .stg-file-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .stg-file-badge {
        min-width: 36px;
        height: 36px;
        font-size: 9px;
        border-radius: 8px;
    }
    .stg-file-name {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 12px;
    }
    .stg-file-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 30px;
        gap: 4px;
    }
    .stg-file-btn__label {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .acc-year-hd .yr-label { font-size: 1rem; }
    .acc-session-hd .sess-label { font-size: 0.95rem; }
    .post-title-main { font-size: 0.95rem; }
    .post-title-about { font-size: 0.85rem; }
    .acc-post-bd { padding: 12px; }
}
.stg-slider-forBaner {
    width: 100%;
    padding: 15px 0px;
    overflow: hidden;
}
/* =============================================================================
   fullscreen-menu-addon.css
   Доповнення до main.css — стилі для нових елементів повноекранного меню.
   НЕ перезаписує .stg-menu-overlay, .stg-menu-close, .stg-menu-footer тощо.
   ============================================================================= */


/* ── Змінні (лише нові) ── */
:root {
    --stg-ticker-border: rgba(26, 82, 118, 0.12);
}


/* =============================================================================
   HEADER: компонування логотип + стрічка
   Перевизначаємо лише flex-поведінку, не чіпаємо відступи з main.css
   ============================================================================= */

.stg-menu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;           /* main.css ставить center — скасовуємо */
    margin-bottom: 24px;
}

.stg-menu-header img {
    flex-shrink: 0;
    margin: 0;                  /* main.css ставить margin: 0 auto 20px */
    width: 48px  !important;
    height: 72px !important;
    border-radius: 0;
    object-fit: contain;
}

/* Логотип-посилання */
.stg-menu-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


/* =============================================================================
   БІГУЧА СТРІЧКА НОВИН (.stg-line-news)
   ============================================================================= */

.stg-line-news {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    border-left: 2px solid var(--stg-accent, #f39c12);
    padding-left: 14px;
}

.stg-ticker-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.stg-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    font-size: .78rem;
    letter-spacing: .03em;
    color: var(--stg-text-muted, #5d6d7e);
    position: relative;
}

.stg-ticker-item::after {
    content: '▸';
    position: absolute;
    right: 8px;
    color: var(--stg-accent, #f39c12);
    font-size: .55rem;
}

.stg-ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--stg-transition, .3s);
}

.stg-ticker-item a:hover {
    color: var(--stg-primary, #1a5276);
}


/* =============================================================================
   ЗАГОЛОВОК "МЕНЮ" — роздільник
   ============================================================================= */

.stg-menu-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

/* .stg-menu-title вже стилізований в main.css — лише скидаємо margin */
.stg-menu-title-row .stg-menu-title {
    margin: 0;
    white-space: nowrap;
}

.stg-menu-title-line {
    flex: 1;
    height: 1px;
    background: var(--stg-border, #dce1e8);
}


/* =============================================================================
   СЛАЙДЕРИ — два в рядок
   ============================================================================= */

.stg-slider-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.stg-slider-col {
    overflow: hidden;
    border-radius: var(--stg-radius-sm);
    border: 1px solid var(--stg-border);
    min-height: 120px;
}

/* News More Button */
.stg-news-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stg-border);
}

.stg-news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--stg-primary);
    color: #fff;
    border-radius: var(--stg-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--stg-transition);
    border: 1px solid var(--stg-primary);
}

.stg-news-more-btn:hover {
    background: var(--stg-primary-light);
    border-color: var(--stg-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,82,118,.3);
}

.stg-news-more-btn i {
    font-size: 16px;
    opacity: 0.9;
}

/* SmartSlider може генерувати ширші обгортки — примусово обмежуємо */
.stg-slider-col > *,
.stg-slider-col .ss-slider-wrapper {
    max-width: 100% !important;
}

/* Видаляємо старий клас якщо залишився */
.stg-slider-forBaner {
    display: none;
}


/* =============================================================================
   ДЕРЖ. БІГУЧА СТРІЧКА (.stg-gov-ticker)
   ============================================================================= */

.stg-gov-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--stg-ticker-border);
    border-bottom: 1px solid var(--stg-ticker-border);
    overflow: hidden;
    margin-bottom: 24px;
}

.stg-gov-ticker__label {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stg-primary-light, #2980b9);
    white-space: nowrap;
    padding-right: 6px;
    border-right: 2px solid var(--stg-primary-light, #2980b9);
}

.stg-gov-ticker__wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.stg-gov-ticker__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.stg-gov-ticker__item {
    display: inline-block;
    padding: 0 4px;
    font-size: .78rem;
    color: var(--stg-text-muted, #5d6d7e);
    text-decoration: none;
    transition: color var(--stg-transition, .3s);
}

.stg-gov-ticker__item:hover {
    color: var(--stg-primary, #1a5276);
    text-decoration: underline;
}

.stg-gov-ticker__sep {
    display: inline-block;
    padding: 0 10px;
    color: var(--stg-border, #dce1e8);
    user-select: none;
    font-size: .8rem;
}


/* =============================================================================
   КОНТАКТИ — дрібний рефакторинг для нових класів у PHP
   ============================================================================= */

/* .stg-contact-link і .stg-social-link — нові класи з нашого PHP */
.stg-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    color: var(--stg-text, #1c2833);
    text-decoration: none;
    transition: color var(--stg-transition, .3s);
}
.stg-contact-link:hover { color: var(--stg-primary, #1a5276); }

.stg-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--stg-border, #dce1e8);
    font-size: 1rem;
    color: var(--stg-text-muted, #5d6d7e);
    text-decoration: none;
    transition: background var(--stg-transition, .3s),
                border-color var(--stg-transition, .3s),
                color var(--stg-transition, .3s),
                transform var(--stg-transition, .3s);
}
.stg-social-link:hover {
    background: var(--stg-primary, #1a5276);
    border-color: var(--stg-primary, #1a5276);
    color: #fff;
    transform: scale(1.1);
}


/* Анімація тікерів керується через JS (ticker.js) */


/* =============================================================================
   HERO SEARCH BAR
   ============================================================================= */

.stg-hero__search {
    margin-top: 20px;
    width: 100%;
    max-width: 520px;
}

.stg-hero__search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: text;
    transition: background .3s, border-color .3s, box-shadow .3s;
}

.stg-hero__search-inner:hover,
.stg-hero__search-inner:focus-within {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.stg-hero__search-icon {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    flex-shrink: 0;
}

.stg-hero__search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: .92rem;
    font-family: inherit;
}

.stg-hero__search input::placeholder {
    color: rgba(255,255,255,.55);
}

.stg-hero__search-kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.6);
    font-size: .7rem;
    font-family: inherit;
    border: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
}


/* =============================================================================
   AI SEARCH OVERLAY (POPUP MODAL)
   ============================================================================= */

#ai-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    background: rgba(10,15,30,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

#ai-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

#ai-search-modal {
    width: 94%;
    max-width: 620px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    overflow: hidden;
    transform: translateY(-20px) scale(.97);
    transition: transform .25s;
}

#ai-search-overlay.active #ai-search-modal {
    transform: translateY(0) scale(1);
}

#ai-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #eaedf2;
}

#ai-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7a90;
}

#ai-search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .95rem;
    font-family: inherit;
    background: transparent;
    color: #1c2833;
}

#ai-search-header input::placeholder {
    color: #a0aab5;
}

#ai-search-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7a90;
    transition: background .2s, color .2s;
}

#ai-search-close svg {
    width: 18px;
    height: 18px;
}

#ai-search-close:hover {
    background: #f0f2f5;
    color: #1c2833;
}

/* Body */
#ai-search-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    min-height: 120px;
}

#ai-search-empty,
#ai-search-loading,
#ai-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    color: #7f8c9b;
    text-align: center;
}

#ai-search-empty svg,
#ai-search-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #c5cdd6;
}

#ai-search-empty p,
#ai-search-no-results p {
    margin: 0;
    font-size: .9rem;
}

#ai-search-empty .hint,
#ai-search-no-results .hint {
    font-size: .8rem;
    color: #a0aab5;
    margin-top: 6px;
}

#ai-search-no-results .hint a {
    color: var(--stg-primary, #1a5276);
    text-decoration: underline;
}

/* Spinner */
.ai-search-spinner {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.ai-search-spinner span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stg-primary, #1a5276);
    animation: aiSearchBounce .6s infinite alternate;
}

.ai-search-spinner span:nth-child(2) { animation-delay: .15s; }
.ai-search-spinner span:nth-child(3) { animation-delay: .3s; }

@keyframes aiSearchBounce {
    from { opacity: .3; transform: translateY(0); }
    to   { opacity: 1;  transform: translateY(-6px); }
}

#ai-search-loading p {
    margin: 0;
    font-size: .85rem;
    color: #7f8c9b;
}

/* AI Answer */
#ai-answer-block {
    background: linear-gradient(135deg, #eef4fb, #f6f0ff);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-left: 3px solid var(--stg-primary, #1a5276);
}

#ai-answer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--stg-primary, #1a5276);
    margin-bottom: 8px;
}

#ai-answer-label svg {
    width: 14px;
    height: 14px;
}

#ai-answer-text {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #2c3e50;
}

/* Results list */
#ai-results-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7f8c9b;
    margin-bottom: 8px;
}

#ai-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ai-results-list li {
    border-bottom: 1px solid #f0f2f5;
}

#ai-results-list li:last-child { border-bottom: none; }

.ai-result-item {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.ai-result-item:hover {
    background: #f6f8fa;
}

.ai-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ai-result-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ai-result-tag--news { background: #e8f6ee; color: #1e7e46; }
.ai-result-tag--doc  { background: #eef0fb; color: #3b5998; }
.ai-result-tag--page { background: #f5f5f5; color: #666; }

.ai-result-date {
    font-size: .72rem;
    color: #a0aab5;
}

.ai-result-title {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    color: #1c2833;
    margin-bottom: 2px;
}

.ai-result-snippet {
    display: block;
    font-size: .78rem;
    color: #7f8c9b;
    line-height: 1.4;
}

/* "Розширений пошук" button */
#ai-search-more {
    padding-top: 12px;
    text-align: center;
}

.ai-search-all-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--stg-primary, #1a5276);
    border-radius: 8px;
    background: transparent;
    color: var(--stg-primary, #1a5276);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.ai-search-all-btn:hover {
    background: var(--stg-primary, #1a5276);
    color: #fff;
}

/* Footer */
#ai-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-top: 1px solid #eaedf2;
    font-size: .72rem;
    color: #a0aab5;
}

.ai-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
}

#ai-search-footer kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #dce1e8;
    border-radius: 3px;
    background: #f6f8fa;
    font-size: .65rem;
    font-family: inherit;
    color: #7f8c9b;
}


/* =============================================================================
   AI CHAT PANEL
   ============================================================================= */

#ai-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

#ai-chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

#ai-chat-panel {
    position: fixed;
    right: -420px;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 95vw;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
}

#ai-chat-panel.active {
    right: 0;
}

#ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eaedf2;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
}

#ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-chat-avatar svg {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

#ai-chat-name {
    font-size: .92rem;
    font-weight: 600;
}

#ai-chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    opacity: .85;
}

#ai-chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

#ai-chat-dot.busy {
    background: #f39c12;
    animation: aiChatPulse .8s infinite alternate;
}

@keyframes aiChatPulse {
    from { opacity: .4; }
    to   { opacity: 1;  }
}

#ai-chat-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: background .2s;
}

#ai-chat-close svg {
    width: 18px;
    height: 18px;
}

#ai-chat-close:hover {
    background: rgba(255,255,255,.3);
}

/* Messages */
#ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.ai-chat-msg--user {
    align-self: flex-end;
}

.ai-chat-msg--bot {
    align-self: flex-start;
}

.ai-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.5;
    word-break: break-word;
}

.ai-chat-msg--user .ai-chat-bubble {
    background: var(--stg-primary, #1a5276);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-chat-msg--bot .ai-chat-bubble {
    background: #f0f2f5;
    color: #1c2833;
    border-bottom-left-radius: 4px;
}

.ai-chat-inline-link {
    color: var(--stg-primary, #1a5276);
    text-decoration: underline;
}

.ai-chat-msg--user .ai-chat-inline-link {
    color: #bbe0ff;
}

.ai-chat-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    padding-left: 4px;
}

.ai-chat-source-link {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e4e8ed;
    font-size: .7rem;
    line-height: 1.4;
    color: var(--stg-primary, #1a5276);
    text-decoration: none;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s;
}

.ai-chat-source-link:hover {
    background: #d0d6de;
}

/* Typing indicator */
.ai-chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.ai-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a0aab5;
    animation: aiChatTyping .6s infinite alternate;
}

.ai-chat-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes aiChatTyping {
    from { opacity: .3; transform: translateY(0); }
    to   { opacity: 1;  transform: translateY(-4px); }
}

/* Suggestions */
#ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    border-top: 1px solid #f0f2f5;
}

.ai-chat-suggest {
    padding: 5px 12px;
    border: 1px solid #dce1e8;
    border-radius: 16px;
    background: #fff;
    font-size: .78rem;
    color: var(--stg-primary, #1a5276);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.ai-chat-suggest:hover {
    background: #f0f4fa;
    border-color: var(--stg-primary, #1a5276);
}

/* Input area */
#ai-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eaedf2;
}

#ai-chat-input {
    flex: 1;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: .88rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.4;
    transition: border-color .2s;
}

#ai-chat-input:focus {
    border-color: var(--stg-primary, #1a5276);
}

#ai-chat-send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--stg-primary, #1a5276);
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

#ai-chat-send svg {
    width: 18px;
    height: 18px;
}

#ai-chat-send:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Trigger button */
#ai-chat-trigger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99996;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,82,118,.35);
    transition: transform .2s, box-shadow .2s;
}

#ai-chat-trigger svg {
    width: 22px;
    height: 22px;
}

#ai-chat-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(26,82,118,.45);
}


/* =============================================================================
   SEARCH RESULTS PAGE (renderSearchPage)
   ============================================================================= */

.stg-search-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0;
}

.stg-search-filters {
    margin-bottom: 24px;
}

.stg-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f6f8fa;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    margin-bottom: 14px;
}

.stg-search-bar i {
    color: #7f8c9b;
    font-size: 1rem;
}

.stg-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .95rem;
    font-family: inherit;
    color: #1c2833;
}

.stg-search-bar input::placeholder {
    color: #a0aab5;
}

.stg-search-submit {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--stg-primary, #1a5276);
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.stg-search-submit:hover {
    background: #2980b9;
}

.stg-search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.stg-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stg-filter-group label {
    font-size: .8rem;
    font-weight: 500;
    color: #5d6d7e;
    white-space: nowrap;
}

.stg-filter-group select,
.stg-filter-group input[type="date"] {
    padding: 5px 10px;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    font-size: .82rem;
    font-family: inherit;
    color: #1c2833;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.stg-filter-group select:focus,
.stg-filter-group input[type="date"]:focus {
    border-color: var(--stg-primary, #1a5276);
}

/* AI Answer on search page */
.stg-search-ai-answer {
    background: linear-gradient(135deg, #eef4fb, #f6f0ff);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--stg-primary, #1a5276);
}

.stg-search-ai-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--stg-primary, #1a5276);
    margin-bottom: 8px;
}

.stg-search-ai-answer p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #2c3e50;
}

/* Status */
.stg-search-status {
    font-size: .85rem;
    color: #5d6d7e;
    margin-bottom: 14px;
}

.stg-search-loading {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stg-search-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stg-primary, #1a5276);
    animation: aiSearchBounce .6s infinite alternate;
}

.stg-search-loading span:nth-child(2) { animation-delay: .15s; }
.stg-search-loading span:nth-child(3) { animation-delay: .3s; }

/* Result items */
.stg-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stg-search-item {
    padding: 14px 16px;
    border-radius: 10px;
    transition: background .15s;
}

.stg-search-item:hover {
    background: #f6f8fa;
}

.stg-search-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stg-search-item__tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stg-search-item__tag--news { background: #e8f6ee; color: #1e7e46; }
.stg-search-item__tag--doc  { background: #eef0fb; color: #3b5998; }
.stg-search-item__tag--page { background: #f5f5f5; color: #666; }

.stg-search-item__date {
    font-size: .72rem;
    color: #a0aab5;
}

.stg-search-item__title {
    display: block;
    font-size: .95rem;
    font-weight: 500;
    color: var(--stg-primary, #1a5276);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color .2s;
}

.stg-search-item__title:hover {
    color: #2980b9;
    text-decoration: underline;
}

.stg-search-item__snippet {
    margin: 0;
    font-size: .82rem;
    color: #7f8c9b;
    line-height: 1.45;
}

/* Pagination */
.stg-search-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.stg-search-pg {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    color: #5d6d7e;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.stg-search-pg:hover {
    background: #f0f4fa;
    border-color: var(--stg-primary, #1a5276);
}

.stg-search-pg.active {
    background: var(--stg-primary, #1a5276);
    border-color: var(--stg-primary, #1a5276);
    color: #fff;
}


/* =============================================================================
   АДАПТИВ
   ============================================================================= */

@media (max-width: 768px) {
    .stg-menu-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stg-line-news {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--stg-accent, #f39c12);
        padding-left: 0;
        padding-top: 10px;
    }

    .stg-slider-row {
        grid-template-columns: 1fr;  /* слайдери один під одним */
    }

    .stg-gov-ticker {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stg-gov-ticker__label {
        border-right: none;
        border-bottom: 2px solid var(--stg-primary-light, #2980b9);
        padding-right: 0;
        padding-bottom: 4px;
    }

    .stg-gov-ticker__wrap {
        width: 100%;
    }

    /* Search responsive */
    .stg-hero__search { max-width: 100%; }
    .stg-hero__search-kbd { display: none; }

    #ai-search-overlay { padding-top: 4vh; }
    #ai-search-modal { max-height: 85vh; border-radius: 12px; }

    #ai-chat-panel { width: 100%; max-width: 100vw; }
    #ai-chat-trigger-label { display: none; }
    #ai-chat-trigger { padding: 12px; border-radius: 50%; }

    .stg-search-options { flex-direction: column; gap: 8px; }
    .stg-filter-group { width: 100%; }
    .stg-filter-group select,
    .stg-filter-group input[type="date"] { flex: 1; }
    .stg-search-bar input { font-size: .88rem; }
}
