/* ============ Base ============ */

:root {
    --primary: #1a5276;
    --secondary: #2e86c1;
    --accent: #f39c12;
    --dark: #0d1b2a;
    --light-bg: #f8f9fa;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    color: #333;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============ Top Bar — Premium Gradient ============ */

.topbar {
    position: relative;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.07), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(46, 134, 193, 0.08), transparent 40%),
        linear-gradient(180deg, #0d1b2a 0%, #0a1422 100%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 44px;
    overflow: hidden;
    z-index: 1001;
}

.topbar-shimmer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.06), transparent);
    animation: topbarShimmer 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes topbarShimmer {
    0%, 100% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(380%); opacity: 0; }
}

/* Bottom accent line */
.topbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 107, 53, 0.35) 30%,
        rgba(46, 134, 193, 0.35) 70%,
        transparent);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Pulse announcement pill */
.topbar-announce {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 999px;
    color: #ffd8c2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.topbar-announce:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.32), rgba(255, 107, 53, 0.14));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(255, 107, 53, 0.4);
}

.topbar-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    animation: topbarPulse 2.2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes topbarPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.topbar-contact {
    display: flex;
    align-items: center;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-contact a {
    position: relative;
    color: rgba(255, 255, 255, 0.65);
    padding: 0 14px;
    transition: color 0.25s;
    font-weight: 500;
}
.topbar-contact a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 10px;
    height: 1px;
    background: #ff6b35;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.topbar-contact a:hover { color: #fff; }
.topbar-contact a:hover::after { transform: scaleX(1); }

.topbar-contact i {
    color: #ff6b35;
    margin-right: 7px;
    font-size: 10px;
}

.topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 11px;
    line-height: 1;
}
.topbar-social a:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.topbar-links {
    display: flex;
    align-items: center;
}
.topbar-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 14px;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.25s;
}
.topbar-links a + a { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.topbar-links a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 10px;
    height: 1px;
    background: #ff6b35;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.topbar-links a:hover { color: #fff; }
.topbar-links a:hover::after { transform: scaleX(1); }


/* ============ Header — Floating Glass Pill ============ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 0;
    transition: padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 80px;
    gap: 24px;
    padding: 0 12px;
    background: #fff;
    position: relative;
    transition:
        height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 6px 24px -10px rgba(13, 27, 42, 0.12);
}

/* Subtle bottom gradient line under header (non-scrolled) */
.header-inner::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(13, 27, 42, 0.08) 30%,
        rgba(13, 27, 42, 0.08) 70%,
        transparent);
    transition: opacity 0.4s;
}

/* ----- Scrolled: floating glass pill ----- */
.site-header.scrolled { padding: 14px 24px 0; }
.site-header.scrolled .header-inner {
    height: 66px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 12px 0 18px;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
            backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 100px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(13, 27, 42, 0.04),
        0 18px 50px -18px rgba(13, 27, 42, 0.28);
}
.site-header.scrolled .header-inner::after { opacity: 0; }

/* ----- Logo with subtle gradient halo ----- */
.header-logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 6px 16px 6px 14px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Animated gradient ring (shows on hover) */
.header-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.55) 0%,
        rgba(46, 134, 193, 0.4) 50%,
        rgba(255, 107, 53, 0.15) 100%);
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
            mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}
.header-logo:hover::before { opacity: 1; }

.header-logo img {
    height: 54px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-logo:hover img { transform: scale(1.04); }
.site-header.scrolled .header-logo img { height: 42px; }

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    position: relative;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 55%, #ff6b35 130%);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 18px -6px rgba(46, 134, 193, 0.55);
    transition: width 0.4s, height 0.4s, font-size 0.4s,
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), rgba(46, 134, 193, 0.25));
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.45s;
    z-index: -1;
}
.header-logo:hover .logo-icon { transform: rotate(-3deg) scale(1.05); }
.header-logo:hover .logo-icon::after { opacity: 1; }
.site-header.scrolled .logo-icon { width: 38px; height: 38px; font-size: 16px; }

.logo-text strong {
    display: block;
    color: #0d1b2a;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    transition: font-size 0.4s;
}
.logo-text small {
    display: block;
    color: #5e6d7e;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.1px;
    transition: opacity 0.3s, max-height 0.4s;
    max-height: 24px;
    overflow: hidden;
}
.site-header.scrolled .logo-text strong { font-size: 16px; }
.site-header.scrolled .logo-text small { opacity: 0; max-height: 0; }


/* ----- Navigation: pill-grouped menu ----- */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(13, 27, 42, 0.025);
    border: 1px solid rgba(13, 27, 42, 0.04);
    border-radius: 100px;
    transition: background 0.4s, border-color 0.4s;
}
.site-header.scrolled .main-menu {
    background: transparent;
    border-color: transparent;
    padding: 2px;
}

.main-menu > li { position: relative; }

/* Hover bridge for dropdown/mega — keeps hover alive across the gap */
.has-dropdown > a::before,
.has-mega > a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 28px;
}

.main-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    color: #1a2332;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: -0.01em;
    border-radius: 100px;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    isolation: isolate;
}

/* Sliding pill background (replaces underline) */
.main-menu > li > a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(26, 82, 118, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.18);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.main-menu > li > a i.fa-chevron-down {
    font-size: 9px;
    opacity: 0.55;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}

.main-menu > li:hover > a,
.main-menu > li:focus-within > a {
    color: #ff6b35;
}
.main-menu > li:hover > a::after,
.main-menu > li:focus-within > a::after {
    opacity: 1;
    transform: scale(1);
}
.main-menu > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.has-dropdown > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 4px 12px rgba(13, 27, 42, 0.05),
        0 20px 50px rgba(13, 27, 42, 0.12);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
    list-style: none;
    margin-top: 14px;
    border: 1px solid rgba(13, 27, 42, 0.06);
}

/* Малък orange "стрелка" триъгълник над dropdown-а */
.has-dropdown > .sub-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid rgba(13, 27, 42, 0.06);
    border-top: 1px solid rgba(13, 27, 42, 0.06);
    transform: rotate(45deg);
}

.has-dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 22px;
    color: #1a2332;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    border-radius: 8px;
    position: relative;
}

/* Малка orange точка преди текста — появява се на hover */
.sub-menu li a::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b35;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}

.sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.08), transparent);
    color: #1a5276;
    padding-left: 28px;
}

.sub-menu li a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Mega Menu Panel */
.has-mega {
    position: static !important;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 4px 16px rgba(13, 27, 42, 0.06),
        0 30px 80px rgba(13, 27, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
    margin-top: 14px;
    border: 1px solid rgba(13, 27, 42, 0.06);
    overflow: hidden;
}

/* Декоративен gradient акцент отгоре */
.mega-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5276, #2e86c1 35%, #ff6b35);
}

.has-mega:hover > .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-panel-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 32px 36px;
    max-width: 1280px;
    margin: 0 auto;
}

.mega-col {
    padding: 0 22px;
    border-right: 1px solid rgba(13, 27, 42, 0.06);
}

.mega-col:last-child { border-right: none; }
.mega-col:first-child { padding-left: 6px; }

.mega-col h6 {
    color: #1a5276;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mega-col h6::before {
    content: '';
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f39c12);
    border-radius: 2px;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: #4a5a6b;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    position: relative;
}

.mega-col ul li a::before {
    content: '';
    width: 0;
    height: 1.5px;
    background: #ff6b35;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.mega-col ul li a:hover {
    color: #1a5276;
}
.mega-col ul li a:hover::before {
    width: 14px;
}

/* ----- Header CTA: glowing magnetic button ----- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff8b48 0%, #f39c12 55%, #e07e0a 100%);
    border-radius: 100px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 107, 53, 0.25),
        0 8px 22px -6px rgba(243, 156, 18, 0.55),
        0 4px 12px -4px rgba(255, 107, 53, 0.4);
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    isolation: isolate;
}

/* Soft radial halo behind the button — appears on hover */
.header-cta-glow {
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: radial-gradient(closest-side, rgba(255, 140, 70, 0.65), transparent 75%);
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -2;
    pointer-events: none;
}

.header-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.header-cta-label i { font-size: 12px; }

.header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.header-cta:hover {
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 0 0 1px rgba(255, 107, 53, 0.45),
        0 14px 34px -8px rgba(243, 156, 18, 0.7),
        0 8px 20px -4px rgba(255, 107, 53, 0.55);
}
.header-cta:hover .header-cta-glow {
    opacity: 1;
    transform: scale(1.15);
}
.header-cta:active {
    transform: scale(0.97) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu */
/* ============================================
   Mobile menu — Modern navy gradient design
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 360px;
    max-width: 88vw;
    background: linear-gradient(180deg, #0d1b2a 0%, #1a3a5c 60%, #1a5276 100%);
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}
.mobile-menu-overlay.active .mobile-menu-panel { transform: translateX(0); }

/* Decorative orange blob */
.mobile-menu-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.5), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.mobile-menu-panel::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(76, 168, 232, 0.3), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.mobile-menu-panel > * { position: relative; z-index: 1; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-header img {
    height: 38px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}
.mobile-menu-header strong { color: #fff; font-size: 17px; letter-spacing: -0.01em; }
.mobile-menu-header a { color: #fff; text-decoration: none; }

.mobile-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-close:hover {
    background: var(--m-orange-bright, #ff6b35);
    border-color: transparent;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.mobile-nav {
    padding: 24px 0;
    flex: 1;
    counter-reset: nav-counter;
}

.mobile-link,
.mobile-accordion {
    counter-increment: nav-counter;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-overlay.active .mobile-link,
.mobile-menu-overlay.active .mobile-accordion {
    opacity: 1;
    transform: translateX(0);
}
.mobile-menu-overlay.active .mobile-nav > *:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(2) { transition-delay: 0.20s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(6) { transition-delay: 0.40s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(7) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(8) { transition-delay: 0.50s; }
.mobile-menu-overlay.active .mobile-nav > *:nth-child(9) { transition-delay: 0.55s; }

.mobile-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    position: relative;
    transition: all 0.3s, opacity 0.5s, transform 0.5s;
    letter-spacing: -0.01em;
}
.mobile-link::before {
    content: counter(nav-counter, decimal-leading-zero);
    color: rgba(255, 107, 53, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-right: 14px;
    font-feature-settings: "tnum";
    min-width: 22px;
}
.mobile-link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    transition: transform 0.3s, color 0.3s;
}
.mobile-link:hover,
.mobile-link:focus {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.02));
    padding-left: 30px;
}
.mobile-link:hover::after {
    color: #ff6b35;
    transform: translateX(4px);
}

.mobile-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-accordion-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    text-align: left;
    letter-spacing: -0.01em;
}
.mobile-accordion-btn::before {
    content: counter(nav-counter, decimal-leading-zero);
    color: rgba(255, 107, 53, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-right: 14px;
    font-feature-settings: "tnum";
    min-width: 22px;
}
.mobile-accordion-btn i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    margin-left: auto;  /* push към края, точно както стрелката в .mobile-link */
}
.mobile-accordion-btn:hover,
.mobile-accordion-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.02));
    padding-left: 30px;
}
.mobile-accordion-btn.active i {
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-accordion-content {
    display: none;
    background: rgba(0, 0, 0, 0.22);
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-accordion-content.active { display: block; animation: accordionSlide 0.35s ease; }
@keyframes accordionSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-accordion-content a {
    display: flex;
    align-items: center;
    padding: 11px 24px 11px 56px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
}
.mobile-accordion-content a::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1px;
    background: rgba(255, 107, 53, 0.5);
    transition: width 0.25s;
}
.mobile-accordion-content a:hover {
    color: #fff;
    padding-left: 64px;
    background: rgba(255, 255, 255, 0.03);
}
.mobile-accordion-content a:hover::before {
    width: 14px;
    background: #ff6b35;
}

.mobile-group-title {
    padding: 14px 24px 6px 36px;
    font-size: 11px;
    text-transform: uppercase;
    color: #ff6b35;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.mobile-menu-footer {
    padding: 20px 24px 26px;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mobile-menu-footer a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.25s;
}
.mobile-menu-footer a:hover { color: #ff6b35; }
.mobile-menu-footer a i {
    color: #ff6b35;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 11px;
}

/* ============ Scroll Animations ============ */

[data-anim] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-left"] { transform: translateX(40px); }

[data-anim].anim-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============ Hero Slider ============ */

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: opacity 1s ease;
    width: 100%;
    top: 0;
    left: 0;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,0.8) 0%, rgba(26,82,118,0.6) 50%, rgba(46,134,193,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.1);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 19px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 25px; }
.slider-next { right: 25px; }

/* Slider Progress */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 3;
    width: 0%;
    transition: width 7s linear;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.hero-btn-primary {
    background: var(--accent);
    color: white;
}

.hero-btn-primary:hover {
    background: #e08e0b;
    color: white;
}

.hero-btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

.hero-btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
}

.slider-dot.active {
    background: var(--accent);
}

/* ============ Sections ============ */

.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--light-bg);
}

.section-dark {
    background: var(--primary);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-dark .section-title h2 {
    color: white;
}

.section-title .title-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

/* ============ News/Blog Cards ============ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.content-card-public {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card-public:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.content-card-public .card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.content-card-public .card-body-public {
    padding: 20px;
}

.content-card-public .card-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.content-card-public .card-title-public {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.content-card-public .card-title-public:hover {
    color: var(--secondary);
}

/* ============ Specialties ============ */

.specialty-card {
    text-align: center;
    padding: 30px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.3s;
}

.specialty-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.specialty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.specialty-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

/* ============ About Section ============ */

.about-section {
    background: var(--primary);
    color: white;
    padding: 60px 0;
}

.about-section h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.about-section .title-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 20px;
}

.about-section p {
    opacity: 0.9;
    line-height: 1.8;
}

/* ============ Page Header ============ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-top: 10px;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--accent);
}

/* ============ Content Page ============ */

.page-content {
    padding: 50px 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============ Contact Form ============ */

.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info-card h5 {
    margin-bottom: 20px;
}

.contact-info-card p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.contact-info-card i {
    color: var(--accent);
    margin-right: 10px;
    width: 20px;
}

/* ============ View All Link ============ */

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all a {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}

.view-all a:hover {
    color: var(--accent);
}

/* ============ Footer ============ */

.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 0;
}

.footer-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-text i {
    color: var(--accent);
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ============ Pagination ============ */

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============ Gallery Grid ============ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

/* ============ Responsive ============ */

/* ============ Stats Bar ============ */

.stats-bar {
    background: var(--primary);
    padding: 25px 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    color: white;
    padding: 10px;
}

.stat-item i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label-public {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ Section Subtitle ============ */

.section-subtitle {
    color: #777;
    font-size: 16px;
    margin-top: 10px;
}

/* ============ Specialty Description ============ */

.specialty-desc {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

/* ============ About Image Grid ============ */

.about-image-grid {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-img-small {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    border-radius: 10px;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.about-text {
    opacity: 0.9;
    line-height: 1.8;
    font-size: 15px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--accent);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.about-btn:hover {
    background: #e08e0b;
    transform: translateX(5px);
}

/* ============ Project Cards Home ============ */

.project-card-home {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-decoration: none;
}

.project-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

/* ============ CTA Section ============ */

.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 70px 0;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .hero-btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============ About Extras ============ */

.about-experience-badge {
    position: absolute;
    top: 20px;
    left: -15px;
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(243,156,18,0.4);
}

.exp-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.about-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(243,156,18,0.2);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.about-feature {
    font-size: 15px;
    color: #1a2332;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.about-feature i {
    color: #ff6b35;
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* ============ Card Placeholder ============ */

.card-img-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

/* ============ Specialty Hover Line ============ */

.specialty-hover-line {
    width: 0;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.specialty-card:hover .specialty-hover-line {
    width: 50px;
}

/* ============ CTA Icon ============ */

.cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--accent);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============ Hero Buttons ============ */

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h2 {
        font-size: 28px;
    }
    .topbar { display: none; }
    .header-nav { display: none; }
    .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    /* Burger вдясно — пуска actions до края, не плътно до logo */
    .header-actions { margin-left: auto; }

    /* Mobile: nullify floating-pill — стандартен пълен хедър */
    .site-header,
    .site-header.scrolled { padding: 0; }
    .site-header.scrolled .header-inner {
        height: 72px;
        max-width: none;
        margin: 0;
        padding: 0 12px;
        background: #fff;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        border: 0;
        border-radius: 0;
        box-shadow: 0 6px 24px -10px rgba(13, 27, 42, 0.12);
    }
    .site-header.scrolled .header-inner::after { opacity: 1; }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h2 {
        font-size: 22px;
    }
    .hero-slide {
        min-height: 350px;
    }
}

/* ============================================
   Modern Homepage 2026 — Hero, Stats, Sections
   ============================================ */

:root {
    --m-navy-deep: #0d1b2a;
    --m-navy: #1a5276;
    --m-navy-light: #2e86c1;
    --m-blue-soft: #4ca8e8;
    --m-orange: #f39c12;
    --m-orange-bright: #ff6b35;
    --m-orange-glow: rgba(255, 107, 53, 0.4);
    --m-purple: #6c5ce7;
    --m-glass: rgba(13, 27, 42, 0.55);
    --m-glass-border: rgba(255, 255, 255, 0.12);
    --m-radius: 18px;
    --m-radius-sm: 12px;
}

/* ----- Animations base ----- */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-anim="fade-up"].anim-visible { opacity: 1; transform: translateY(0); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim="fade-left"].anim-visible { opacity: 1; transform: translateX(0); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-right"].anim-visible { opacity: 1; transform: translateX(0); }

/* ============================================
   HERO MODERN
   ============================================ */
.hero-modern {
    position: relative;
    min-height: 92vh;
    max-height: 900px;
    overflow: hidden;
    color: #fff;
    background: var(--m-navy-deep);
    display: flex;
    align-items: center;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.0);
}
.hero-bg.is-active {
    opacity: 1;
    animation: heroKenBurns 12s ease-out forwards;
}
@keyframes heroKenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(76, 168, 232, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 30%, rgba(108, 92, 231, 0.18) 0%, transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.35) 50%, rgba(13, 27, 42, 0.75) 100%),
        linear-gradient(180deg, transparent 0%, rgba(13, 27, 42, 0.7) 100%);
    pointer-events: none;
}

.hero-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: heroBlob 20s ease-in-out infinite;
}
.hero-blob--1 {
    background: var(--m-blue-soft);
    top: -200px;
    left: -150px;
}
.hero-blob--2 {
    background: var(--m-orange-bright);
    bottom: -250px;
    right: -150px;
    animation-delay: -10s;
}
@keyframes heroBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
}

.hero-modern-inner {
    position: relative;
    z-index: 3;
    padding-top: 80px;
    padding-bottom: 140px;
    /* horizontal padding идва от Bootstrap .container */
}

.hero-modern-content {
    max-width: 720px;
    position: relative;
}

.hero-slide-content {
    display: none;
    animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide-content.is-active { display: block; }
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--m-orange-bright);
    box-shadow: 0 0 0 0 var(--m-orange-glow);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--m-orange-glow); }
    50% { box-shadow: 0 0 0 10px transparent; }
}

.hero-title-modern {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero-title-accent {
    background: linear-gradient(90deg, #fff 0%, var(--m-blue-soft) 70%, var(--m-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-sub-modern {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px;
    max-width: 600px;
    font-weight: 400;
}

.hero-cta-modern {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ----- Modern button system ----- */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-modern i { font-size: 14px; transition: transform 0.3s; }
.btn-modern:hover i { transform: translateX(4px); }
.btn-modern--primary {
    background: linear-gradient(135deg, var(--m-orange-bright), var(--m-orange));
    color: #fff;
    box-shadow: 0 8px 30px var(--m-orange-glow);
}
.btn-modern--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
}
.btn-modern--accent {
    background: linear-gradient(135deg, var(--m-orange-bright), #ff8255);
    color: #fff;
    box-shadow: 0 8px 30px var(--m-orange-glow);
}
.btn-modern--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255, 107, 53, 0.55); }
.btn-modern--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-modern--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-modern--ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.btn-modern--ghost-light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ----- Slider progress indicators ----- */
.hero-progress-bar {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.hero-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    min-width: 140px;
}
.hero-progress-item.is-active { color: #fff; }
.hero-progress-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-feature-settings: "tnum";
}
.hero-progress-track {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.hero-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--m-orange-bright);
}

/* ----- Scroll indicator ----- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.hero-scroll-indicator:hover { color: #fff; }
.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6));
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 1px;
    height: 30px;
    background: var(--m-orange-bright);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -30px; }
    100% { top: 60px; }
}
.hero-scroll-text {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .hero-modern { min-height: 78vh; }
    .hero-modern-inner {
        padding-top: 60px;
        padding-bottom: 130px;  /* повече място отдолу за progress bar */
    }
    /* Центрирано съдържание на mobile + допълнителен horizontal breathing room */
    .hero-modern-content {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
        margin: 0 auto;
    }
    .hero-badge-modern {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-sub-modern {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta-modern {
        justify-content: center;
    }
    .hero-cta-modern .btn-modern { padding: 12px 22px; font-size: 14px; }

    /* Progress bar — compact full-width долу */
    .hero-progress-bar {
        bottom: 22px;
        left: 14px;
        right: 14px;
        transform: none;
        max-width: calc(100% - 28px);
        gap: 10px;
        justify-content: space-between;
    }
    .hero-progress-item {
        min-width: 0;
        flex: 1;
        gap: 8px;
    }
    .hero-progress-num { font-size: 10px; }

    /* Scroll indicator — над progress bar, по-малък */
    .hero-scroll-indicator {
        bottom: 80px;
        right: 16px;
        gap: 8px;
    }
    .hero-scroll-line { height: 36px; }
    .hero-scroll-text { font-size: 9px; letter-spacing: 1.5px; }
}

/* ============================================
   STATS MODERN — Glass cards
   ============================================ */
.stats-modern {
    background: linear-gradient(180deg, var(--m-navy-deep) 0%, #0a1929 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.stats-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--m-radius);
    padding: 32px 26px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.stat-glass::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, transparent, rgba(255, 107, 53, 0.3));
    border-radius: var(--m-radius);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}
.stat-glass:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}
.stat-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 168, 232, 0.2), rgba(255, 107, 53, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--m-orange-bright);
    transition: all 0.4s;
}
.stat-glass:hover .stat-icon-wrap {
    background: linear-gradient(135deg, rgba(76, 168, 232, 0.3), rgba(255, 107, 53, 0.25));
    transform: scale(1.08);
}
.stats-modern .stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--m-blue-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-feature-settings: "tnum";
}
.stat-label-modern {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-modern { padding: 60px 0; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SECTION SHARED — Headers, eyebrows
   ============================================ */
.section-modern {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.section-header-center {
    justify-content: center;
    text-align: center;
}
.section-header-center > div { max-width: 720px; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--m-orange-bright);
    margin-bottom: 14px;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--m-orange-bright);
}
.section-header-center .section-eyebrow {
    justify-content: center;
}
.section-title-modern {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--m-navy-deep);
    margin: 0;
}
.section-subtitle-modern {
    margin: 18px 0 0;
    color: #5a6c7d;
    font-size: 1.05rem;
    line-height: 1.65;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--m-navy);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    border: 2px solid rgba(26, 82, 118, 0.15);
    transition: all 0.3s;
    font-size: 14px;
}
.section-link i { transition: transform 0.3s; }
.section-link:hover {
    background: var(--m-navy);
    color: #fff;
    border-color: var(--m-navy);
}
.section-link:hover i { transform: translateX(4px); }

/* ============================================
   NEWS — Asymmetric layout
   ============================================ */
.section-news {
    background: #f8fafc;
}
.news-asymmetric {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}
.news-featured {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    min-height: 480px;
    color: #fff;
    text-decoration: none;
    display: block;
    box-shadow: 0 20px 60px rgba(13, 27, 42, 0.15);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-featured:hover { transform: translateY(-6px); color: #fff; }
.news-featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-featured:hover .news-featured-img { transform: scale(1.06); }
.news-featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0) 30%, rgba(13, 27, 42, 0.9) 100%);
}
.news-featured-placeholder {
    background: linear-gradient(135deg, var(--m-navy), var(--m-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 80px;
}
.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    z-index: 2;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.news-tag {
    background: var(--m-orange-bright);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.news-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
.news-date i { margin-right: 6px; }
.news-featured-title {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 50px 0 0;
    letter-spacing: -0.01em;
}
.news-arrow {
    position: absolute;
    bottom: 36px;
    right: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--m-orange-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.4s;
}
.news-featured:hover .news-arrow { transform: rotate(-45deg); }

.news-side-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}
.news-side-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    background: #fff;
    border-radius: var(--m-radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--m-navy-deep);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(13, 27, 42, 0.06);
}
.news-side-card:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--m-navy-deep);
}
.news-side-img {
    background-size: cover;
    background-position: center;
    min-height: 100%;
}
.news-side-placeholder {
    background: linear-gradient(135deg, var(--m-navy), var(--m-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
}
.news-side-body {
    padding: 16px 18px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-date-small {
    font-size: 12px;
    color: var(--m-orange-bright);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.news-side-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .news-asymmetric { grid-template-columns: 1fr; }
    .news-featured { min-height: 380px; }
}
@media (max-width: 480px) {
    .news-side-card { grid-template-columns: 100px 1fr; }
    .news-featured-content { padding: 24px; }
    .news-arrow { right: 24px; bottom: 24px; width: 42px; height: 42px; }
}

/* ============================================
   SPECIALTIES — Modern cards
   ============================================ */
.section-specialties {
    background: #fff;
    position: relative;
}
.section-bg-decor {
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 168, 232, 0.08), transparent 70%);
    pointer-events: none;
}
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.specialty-modern {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: var(--m-radius);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--m-navy-deep);
    position: relative;
    overflow: hidden;
}
.specialty-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--m-orange-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.specialty-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(13, 27, 42, 0.12);
    border-color: transparent;
    color: var(--m-navy-deep);
}
.specialty-modern:hover::before { transform: scaleX(1); }
.specialty-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.specialty-modern:hover .specialty-icon-modern {
    transform: rotate(-8deg) scale(1.08);
}
.specialty-blue   .specialty-icon-modern { background: linear-gradient(135deg, var(--m-navy), var(--m-navy-light)); }
.specialty-cyan   .specialty-icon-modern { background: linear-gradient(135deg, var(--m-navy-light), var(--m-blue-soft)); }
.specialty-navy   .specialty-icon-modern { background: linear-gradient(135deg, var(--m-navy-deep), var(--m-navy)); }
.specialty-orange .specialty-icon-modern { background: linear-gradient(135deg, var(--m-orange-bright), var(--m-orange)); }
.specialty-modern-body { flex: 1; }
.specialty-modern-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.specialty-modern-desc {
    color: #5a6c7d;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}
.specialty-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m-navy);
    transition: all 0.4s;
    flex-shrink: 0;
}
.specialty-modern:hover .specialty-arrow {
    background: var(--m-orange-bright);
    color: #fff;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .specialty-grid { grid-template-columns: 1fr; }
    .specialty-modern { grid-template-columns: 70px 1fr; gap: 18px; padding: 22px; }
    .specialty-arrow { display: none; }
    .specialty-icon-modern { width: 70px; height: 70px; font-size: 28px; }
}

/* ============================================
   ABOUT (refresh — мек fit към новия look)
   ============================================ */
.section-about { background: #f8fafc; }

/* ============================================
   PROJECTS — Modern overlay cards
   ============================================ */
.section-projects { background: #fff; }
.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.project-modern {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    min-height: 320px;
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(13, 27, 42, 0.22);
    color: #fff;
}
.project-modern-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-modern:hover .project-modern-img { transform: scale(1.1); }
.project-modern-placeholder {
    background: linear-gradient(135deg, var(--m-navy), var(--m-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 60px;
}
.project-modern-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0) 30%, rgba(13, 27, 42, 0.85) 100%);
    z-index: 2;
}
.project-modern-tag {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.project-modern-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.project-modern-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-orange-bright);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s 0.05s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-modern-link i { transition: transform 0.3s; }
.project-modern:hover .project-modern-link { opacity: 1; transform: translateY(0); }
.project-modern:hover .project-modern-link i { transform: translateX(4px); }

@media (max-width: 992px) {
    .projects-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .projects-grid-modern { grid-template-columns: 1fr; }
    .project-modern { min-height: 260px; }
}

/* ============================================
   CTA MODERN — Final "Прием 2026"
   ============================================ */
.cta-modern {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--m-navy-deep) 0%, var(--m-navy) 60%, #0a1f3a 100%);
    overflow: hidden;
    color: #fff;
}
.cta-modern-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.cta-modern-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
}
.cta-modern-blob--1 {
    background: var(--m-orange-bright);
    top: -200px;
    left: 10%;
    animation: heroBlob 16s ease-in-out infinite;
}
.cta-modern-blob--2 {
    background: var(--m-blue-soft);
    bottom: -200px;
    right: 10%;
    animation: heroBlob 18s ease-in-out infinite reverse;
}
.cta-modern-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.cta-modern-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.cta-modern-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--m-orange-bright);
    animation: pulse 2s infinite;
}
.cta-modern-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 22px;
}
.cta-modern-accent {
    color: var(--m-orange-bright);
}
.cta-modern-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px;
}
.cta-modern-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-modern { padding: 80px 0; }
}

/* ============================================
   Section vertical rhythm на mobile
   ============================================ */
@media (max-width: 768px) {
    .section-modern { padding: 70px 0; }
    .section-header-modern { margin-bottom: 40px; }
}

/* ============================================
   COOKIE CONSENT (GDPR) — bottom floating banner
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-consent[hidden] { display: none; }

.cookie-consent-inner {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.96), rgba(26, 82, 118, 0.94));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 26px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.cookie-consent-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ff6b35;
    flex-shrink: 0;
}

.cookie-consent-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.cookie-consent-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}
.cookie-consent-text a {
    color: #ff8255;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    margin-left: 4px;
}
.cookie-consent-text a:hover { color: #fff; }

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 11px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    font-family: inherit;
}
.cookie-btn--accept {
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}
.cookie-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 53, 0.5);
}
.cookie-btn--reject {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.cookie-btn--reject:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    .cookie-consent-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon text"
            "actions actions";
        padding: 18px 20px;
        gap: 16px;
    }
    .cookie-consent-icon { grid-area: icon; }
    .cookie-consent-text { grid-area: text; }
    .cookie-consent-actions {
        grid-area: actions;
        justify-content: stretch;
    }
    .cookie-btn { flex: 1; padding: 12px 16px; }
}

@media (max-width: 380px) {
    .cookie-consent-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "actions";
    }
    .cookie-consent-icon { display: none; }
}

/* ============================================
   AI CHAT WIDGET — Floating bubble + panel
   ============================================ */
.chat-fab {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b35 0%, #f39c12 100%);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.45);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(255, 107, 53, 0.6); }
.chat-fab:active { transform: scale(0.96); }

.chat-fab-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-fab-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chat-fab.is-active .chat-fab-icon--default { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chat-fab.is-active .chat-fab-icon--close { opacity: 1; transform: rotate(0) scale(1); }

.chat-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ff6b35;
    opacity: 0.5;
    animation: chatPulse 2s ease-out infinite;
    pointer-events: none;
}
.chat-fab.is-active .chat-fab-pulse { display: none; }
@keyframes chatPulse {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.7); opacity: 0; }
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 26px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 580px;
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(13, 27, 42, 0.25);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-panel[hidden] { display: none; }

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a5276 100%);
    color: #fff;
    flex-shrink: 0;
}
.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-panel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.chat-panel-title strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.chat-panel-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}
.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.6);
    animation: pulse 2s infinite;
}
.chat-panel-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.chat-panel-close:hover { background: rgba(255, 255, 255, 0.2); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
    background: #f8fafc;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(13, 27, 42, 0.15); border-radius: 3px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(13, 27, 42, 0.3); }

.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    animation: msgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg--user {
    flex-direction: row-reverse;
}
.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
}
.chat-msg-bubble {
    max-width: 80%;
    padding: 11px 15px;
    border-radius: 16px;
    background: #fff;
    color: #1a2332;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
    border: 1px solid rgba(13, 27, 42, 0.05);
}
.chat-msg-bubble p { margin: 0 0 8px; }
.chat-msg-bubble p:last-child { margin-bottom: 0; }
.chat-msg-bubble a {
    color: #1a5276;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.chat-msg-bubble a:hover { color: #ff6b35; }

.chat-msg--user .chat-msg-bubble {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: #fff;
    border: none;
    border-bottom-right-radius: 4px;
}
.chat-msg--user .chat-msg-bubble a { color: #fff; }
.chat-msg--bot .chat-msg-bubble { border-bottom-left-radius: 4px; }

.chat-typing { padding: 14px 18px; display: inline-flex; gap: 4px; }
.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b0c4d8;
    animation: typingBounce 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-suggestions {
    padding: 0 18px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f8fafc;
    border-top: 1px solid rgba(13, 27, 42, 0.06);
    padding-top: 12px;
}
.chat-suggestion {
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.1);
    color: #1a5276;
    padding: 7px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.chat-suggestion:hover {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
    transform: translateY(-1px);
}

.chat-input-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 6px;
    background: #fff;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
}
.chat-input {
    flex: 1;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.45;
    transition: border-color 0.2s, background 0.2s;
}
.chat-input:focus {
    border-color: #ff6b35;
    background: #fff;
}
.chat-input:disabled { opacity: 0.6; }
.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(255, 107, 53, 0.5); }
.chat-send:active { transform: scale(0.94); }

.chat-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #8a9aab;
    padding: 4px 14px 10px;
    background: #fff;
}
.chat-disclaimer a {
    color: #1a5276;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .chat-fab {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
        font-size: 19px;
        z-index: 9999;  /* над panel-а — за да остане кликаем като "затвори" */
    }
    .chat-panel {
        bottom: 84px;       /* над FAB-а с margin */
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 100%;
        /* dynamic viewport height (dvh) се справя с iOS address bar */
        height: calc(100dvh - 110px);
        max-height: calc(100vh - 110px);
        border-radius: 18px;
    }
}

/* ============================================
   Rich content (CKEditor 5 output)
   Стилизира HTML-а генериран от редактора в админ панела.
   ============================================ */

.rich-content {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    word-wrap: break-word;
}

.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }

/* Заглавия */
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: #1a5276;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0 0.6em;
}
.rich-content h1 { font-size: 2.2em; }
.rich-content h2 { font-size: 1.8em; }
.rich-content h3 { font-size: 1.5em; }
.rich-content h4 { font-size: 1.25em; }
.rich-content h5 { font-size: 1.1em; }
.rich-content h6 { font-size: 1em; text-transform: uppercase; letter-spacing: 0.5px; }

/* Параграфи */
.rich-content p { margin: 0 0 1em; }

/* Линкове */
.rich-content a {
    color: #2e86c1;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-content a:hover { color: #1a5276; }

/* Списъци */
.rich-content ul,
.rich-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}
.rich-content li { margin: 0.3em 0; }
.rich-content ul ul,
.rich-content ol ol,
.rich-content ul ol,
.rich-content ol ul { margin-bottom: 0; }

/* To-do списък */
.rich-content ul.todo-list { list-style: none; margin-left: 0; }
.rich-content ul.todo-list li { padding-left: 1.8em; position: relative; }
.rich-content ul.todo-list .todo-list__label > input {
    position: absolute; left: 0; top: 0.35em;
    width: 1em; height: 1em; margin: 0;
}

/* Цитат */
.rich-content blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #f39c12;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
}

/* Хоризонтална линия */
.rich-content hr {
    border: 0;
    border-top: 2px solid #e0e0e0;
    margin: 2em 0;
}

/* Inline код и code block */
.rich-content code {
    background: #f4f4f4;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.92em;
}
.rich-content pre {
    background: #0d1b2a;
    color: #e8e8e8;
    padding: 1em 1.2em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.2em 0;
}
.rich-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Подравняване (CKEditor 5: class-based) */
.rich-content .text-tiny { font-size: 0.7em; }
.rich-content .text-small { font-size: 0.85em; }
.rich-content .text-big { font-size: 1.4em; }
.rich-content .text-huge { font-size: 1.8em; }

.rich-content [style*="text-align:right" i],
.rich-content .align-right { text-align: right; }
.rich-content [style*="text-align:center" i],
.rich-content .align-center { text-align: center; }
.rich-content [style*="text-align:left" i],
.rich-content .align-left { text-align: left; }
.rich-content [style*="text-align:justify" i],
.rich-content .align-justify { text-align: justify; }

/* Маркиране (highlight) */
.rich-content mark.marker-yellow { background: #fdfd77; }
.rich-content mark.marker-green  { background: #63f963; }
.rich-content mark.marker-pink   { background: #fc7999; }
.rich-content mark.marker-blue   { background: #72cdfd; }
.rich-content mark.pen-red   { background: transparent; color: #e91313; }
.rich-content mark.pen-green { background: transparent; color: #128a00; }

/* Таблици */
.rich-content figure.table {
    margin: 1.2em 0;
    overflow-x: auto;
}
.rich-content table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
}
.rich-content table td,
.rich-content table th {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    vertical-align: top;
}
.rich-content table th {
    background: #f4f6f9;
    font-weight: 700;
    text-align: left;
}

/* Снимки */
.rich-content figure.image {
    display: table;
    clear: both;
    margin: 1em auto;
    max-width: 100%;
}
.rich-content figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
}
.rich-content figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    background: #f4f6f9;
    color: #555;
    font-size: 0.9em;
    padding: 6px 10px;
    text-align: center;
}

/* Подравняване на изображения (CKEditor 5 styles) */
.rich-content .image-style-align-left,
.rich-content .image-style-block-align-left {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}
.rich-content .image-style-align-right,
.rich-content .image-style-block-align-right {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}
.rich-content .image-style-align-center,
.rich-content .image-style-block-align-center {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}
.rich-content .image-style-side {
    float: right;
    margin: 0.5em 0 1em 1.5em;
    max-width: 50%;
}
.rich-content .image-inline {
    display: inline-flex;
    max-width: 100%;
    align-items: flex-start;
}

/* Media embed (YouTube, Vimeo, etc.) */
.rich-content figure.media {
    margin: 1.2em 0;
}
.rich-content .media oembed {
    position: relative;
    display: block;
    padding-bottom: 56.25%;
    height: 0;
}
.rich-content .media iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Embedded iframes — responsive (вградени видеа, PDF файлове и др.)
   HTML attribute width="..." е по-нисък приоритет от CSS, max-width прибира
   iframe-ите в рамките на container-а на mobile/таблет. */
.rich-content iframe {
    max-width: 100%;
    border: 0;
    margin: 1.2em 0;
    background: #f8fafc;
    border-radius: 8px;
    display: block;
}

/* PDF iframes — fixed responsive height (тъй като PDF няма aspect ratio) */
.rich-content iframe[src*=".pdf"],
.rich-content iframe[src*=".PDF"] {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 900px;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.1);
}

/* YouTube / Vimeo / други видео iframe-и — 16:9 aspect ratio */
.rich-content iframe[src*="youtube.com"],
.rich-content iframe[src*="youtu.be"],
.rich-content iframe[src*="vimeo.com"],
.rich-content iframe[src*="player."] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

@media (max-width: 768px) {
    .rich-content iframe[src*=".pdf"],
    .rich-content iframe[src*=".PDF"] {
        height: 70vh;
        min-height: 380px;
    }
}

/* clearfix след float-нати елементи */
.rich-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .rich-content { font-size: 15px; }
    .rich-content h1 { font-size: 1.8em; }
    .rich-content h2 { font-size: 1.5em; }
    .rich-content h3 { font-size: 1.3em; }
    .rich-content .image-style-align-left,
    .rich-content .image-style-align-right,
    .rich-content .image-style-side {
        float: none;
        margin: 1em auto;
        max-width: 100%;
    }
}


/* ============================================
   Page Content Components (2026)
   Reusable building blocks for restyled CMS pages.
   All scoped to .rich-content so they don't leak.
   ============================================ */

/* ---------- Page Hero (eyebrow + title + intro) ---------- */
.rich-content .page-hero {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 2.6rem 2.4rem 2.4rem;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 107, 53, 0.08), transparent 55%),
        radial-gradient(120% 100% at 100% 100%, rgba(46, 134, 193, 0.1), transparent 55%),
        linear-gradient(135deg, #f7faff 0%, #fbf4ef 100%);
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 20px;
    overflow: hidden;
}
.rich-content .page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5276, #2e86c1 35%, #ff6b35);
}
.rich-content .page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.85rem;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 999px;
    color: #d65a20;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.rich-content .page-hero__eyebrow i { font-size: 10px; }
.rich-content .page-hero__title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0d1b2a;
    line-height: 1.15;
}
.rich-content .page-hero__lead {
    margin: 0;
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4a5a6b;
}

/* ---------- Info Callout (info / warning / success / note) ---------- */
.rich-content .info-callout {
    position: relative;
    display: flex;
    gap: 16px;
    margin: 1.6rem 0;
    padding: 18px 22px 18px 20px;
    background: #f0f7ff;
    border: 1px solid #cfe2f7;
    border-left: 4px solid #2e86c1;
    border-radius: 12px;
    line-height: 1.55;
}
.rich-content .info-callout__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #2e86c1;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.rich-content .info-callout__body { flex: 1; }
.rich-content .info-callout__body > *:first-child { margin-top: 0; }
.rich-content .info-callout__body > *:last-child { margin-bottom: 0; }
.rich-content .info-callout__title {
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.rich-content .info-callout--warning {
    background: #fff7ed;
    border-color: #fde2c8;
    border-left-color: #ff6b35;
}
.rich-content .info-callout--warning .info-callout__icon { background: #ff6b35; }

.rich-content .info-callout--success {
    background: #effbf3;
    border-color: #c7eed6;
    border-left-color: #2ea66a;
}
.rich-content .info-callout--success .info-callout__icon { background: #2ea66a; }

.rich-content .info-callout--note {
    background: #f6f4fd;
    border-color: #ddd5f5;
    border-left-color: #6c5ce7;
}
.rich-content .info-callout--note .info-callout__icon { background: #6c5ce7; }

/* ---------- Fact Grid (stat cards) ---------- */
.rich-content .fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 1.8rem 0;
    padding: 0;
    list-style: none;
}
.rich-content .fact-grid li,
.rich-content .fact-card {
    margin: 0;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.07);
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.rich-content .fact-grid li::before,
.rich-content .fact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f39c12);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rich-content .fact-grid li:hover,
.rich-content .fact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 12px 28px -10px rgba(13, 27, 42, 0.14);
}
.rich-content .fact-grid li:hover::before,
.rich-content .fact-card:hover::before { transform: scaleX(1); }

.rich-content .fact-card__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1a5276;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.rich-content .fact-card__label {
    display: block;
    color: #4a5a6b;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ---------- Doc Card (single download) ---------- */
.rich-content .doc-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 1.4rem 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.rich-content .doc-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff6b35, #f39c12);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rich-content .doc-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 12px 28px -10px rgba(13, 27, 42, 0.18);
    color: inherit;
}
.rich-content .doc-card:hover::after { transform: scaleY(1); }
.rich-content .doc-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 60px;
    background: linear-gradient(160deg, #ff6b35 0%, #f39c12 100%);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 6px 14px -4px rgba(255, 107, 53, 0.45);
    position: relative;
}
.rich-content .doc-card__icon::after {
    content: 'PDF';
    position: absolute;
    bottom: 6px;
    left: 0; right: 0;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 800;
    opacity: 0.9;
}
.rich-content .doc-card__icon i { font-size: 22px; margin-bottom: 8px; }
.rich-content .doc-card__body { flex: 1; min-width: 0; }
.rich-content .doc-card__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.3;
}
.rich-content .doc-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6c7a89;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.rich-content .doc-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rich-content .doc-card__cta {
    flex-shrink: 0;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s;
}
.rich-content .doc-card:hover .doc-card__cta { transform: translateX(4px); }

/* Compact variant for dense doc lists */
.rich-content .doc-list {
    display: grid;
    gap: 10px;
    margin: 1.4rem 0;
    padding: 0;
    list-style: none;
}
.rich-content .doc-list li { margin: 0; padding: 0; }
.rich-content .doc-list .doc-card { margin: 0; padding: 14px 18px; }
.rich-content .doc-list .doc-card__icon {
    width: 38px; height: 44px; font-size: 16px;
}
.rich-content .doc-list .doc-card__icon::after { font-size: 8px; bottom: 4px; }
.rich-content .doc-list .doc-card__title { font-size: 0.98rem; }

/* ---------- Document Group Header ---------- */
.rich-content .doc-group-title {
    margin: 2rem 0 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(13, 27, 42, 0.07);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a5276;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rich-content .doc-group-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff6b35, #f39c12);
    border-radius: 2px;
}

/* ---------- Timeline (history, schedules) ---------- */
.rich-content .timeline {
    position: relative;
    margin: 1.8rem 0;
    padding: 0 0 0 32px;
    list-style: none;
}
.rich-content .timeline::before {
    content: '';
    position: absolute;
    top: 8px; bottom: 8px; left: 8px;
    width: 2px;
    background: linear-gradient(180deg,
        #ff6b35 0%,
        #2e86c1 50%,
        rgba(46, 134, 193, 0.2) 100%);
    border-radius: 2px;
}
.rich-content .timeline li {
    position: relative;
    margin: 0 0 1.4rem;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.07);
    border-radius: 12px;
    transition: all 0.3s;
}
.rich-content .timeline li:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(4px);
    box-shadow: 0 6px 18px -8px rgba(13, 27, 42, 0.15);
}
.rich-content .timeline li::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}
.rich-content .timeline__date {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 10px;
    background: rgba(255, 107, 53, 0.1);
    color: #d65a20;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    text-transform: uppercase;
}
.rich-content .timeline__title {
    margin: 4px 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0d1b2a;
}
.rich-content .timeline li p:last-child { margin-bottom: 0; }

/* ---------- Feature Grid (specialties, services, programs) ---------- */
.rich-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 1.8rem 0;
    padding: 0;
    list-style: none;
}
.rich-content .feature-grid li {
    margin: 0;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.07);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.rich-content .feature-grid li::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.rich-content .feature-grid li:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 18px 36px -14px rgba(13, 27, 42, 0.18);
}
.rich-content .feature-grid li:hover::before { opacity: 1; }
.rich-content .feature-grid__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(46, 134, 193, 0.12));
    color: #ff6b35;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    z-index: 1;
}
.rich-content .feature-grid__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d1b2a;
    position: relative;
    z-index: 1;
}
.rich-content .feature-grid li p {
    margin: 0;
    color: #4a5a6b;
    font-size: 0.95rem;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* ---------- Two-column key-value list (schedules, hours, contacts) ---------- */
.rich-content .kv-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(13, 27, 42, 0.07);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.rich-content .kv-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
    transition: background 0.2s;
}
.rich-content .kv-list li:last-child { border-bottom: none; }
.rich-content .kv-list li:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.04), transparent);
}
.rich-content .kv-list__key {
    flex: 0 0 auto;
    min-width: 180px;
    font-weight: 600;
    color: #0d1b2a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rich-content .kv-list__key i {
    color: #ff6b35;
    width: 18px;
    text-align: center;
}
.rich-content .kv-list__value {
    flex: 1;
    color: #4a5a6b;
}

/* ---------- Section separator with title ---------- */
.rich-content .section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 2.4rem 0 1.4rem;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c7a89;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.rich-content .section-divider::before,
.rich-content .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, 0.12), transparent);
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 768px) {
    .rich-content .page-hero { padding: 1.8rem 1.4rem; }
    .rich-content .doc-card { flex-wrap: wrap; }
    .rich-content .doc-card__cta { width: 100%; justify-content: flex-end; }
    .rich-content .kv-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .rich-content .kv-list__key { min-width: 0; }
    .rich-content .timeline { padding-left: 24px; }
    .rich-content .timeline li::before { left: -22px; }
}
