/* =========================================
   ГЛОБАЛНИ СТИЛОВЕ И ПРОМЕНЛИВИ
   ========================================= */
   :root {
    --primary-color: linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%);
    --transition-speed: 0.4s;
    --header-bg: rgba(61, 49, 52, 0.94);
--header-bg-scrolled: rgba(61, 49, 52, 0.58);
    --header-text: rgba(255, 255, 255, 0.88);
    --header-text-hover: #ffffff;
    --header-underline: rgba(255, 255, 255, 0.72);
    --header-underline-soft: rgba(255, 255, 255, 0.28);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Playfair Display', serif;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
#main-navbar {
    background: var(--header-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        padding 0.3s ease,
        border-color 0.3s ease;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

#main-navbar.bg-white {
    background: var(--header-bg-scrolled) !important;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18) !important;
}

#main-navbar.bg-light {
    background: var(--header-bg) !important;
}

#main-navbar .navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: opacity var(--transition-speed) ease;
}

#main-navbar .navbar-brand:hover {
    opacity: 0.9;
}

#main-navbar .navbar-toggler {
    border: 0;
    padding: 0.4rem 0.6rem;
}

#main-navbar .navbar-toggler:focus {
    box-shadow: none;
}

#main-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

#main-navbar .navbar-nav {
    align-items: center;
    gap: 0.2rem;
}

#main-navbar .navbar-nav .nav-item {
    position: relative;
}

#main-navbar .navbar-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text) !important;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.7rem 0.55rem;
    transition:
        color 0.28s ease,
        opacity 0.28s ease,
        transform 0.28s ease;
}

#main-navbar .navbar-nav .nav-link:hover {
    color: var(--header-text-hover) !important;
}

#main-navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.28rem;
    width: 30px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        var(--header-underline-soft) 20%,
        var(--header-underline-soft) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease;
}

#main-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.28rem;
    width: 22px;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 0%,
        var(--header-underline) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease;
}

#main-navbar .navbar-nav .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

#main-navbar .navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(0.72);
    opacity: 0.9;
}

#main-navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600 !important;
}

#main-navbar .navbar-nav .nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

#main-navbar .navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

#main-navbar .navbar-collapse {
    align-items: center;
}

#main-navbar .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    #main-navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    #main-navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    #main-navbar .navbar-nav {
        align-items: flex-start;
        gap: 0.15rem;
    }

    #main-navbar .navbar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 0;
    }

    #main-navbar .navbar-nav .nav-link::before,
    #main-navbar .navbar-nav .nav-link::after {
        left: 0;
        transform: scaleX(0);
        transform-origin: left center;
    }

    #main-navbar .navbar-nav .nav-link:hover::before,
    #main-navbar .navbar-nav .nav-link:hover::after,
    #main-navbar .navbar-nav .nav-link.active::before,
    #main-navbar .navbar-nav .nav-link.active::after {
        transform: scaleX(1);
    }

    #main-navbar .d-flex.ms-lg-4 {
        width: 100%;
        margin-top: 1rem !important;
    }

    #main-navbar .d-flex.ms-lg-4 .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   БУТОНИ
   ========================================= */
.custom-hover-btn {
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-hover-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%) !important;
}

/* =========================================
   ГАЛЕРИЯ / PORTFOLIO (Hover ефекти)
   ========================================= */
.gallery-card {
    position: relative;
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    z-index: 1;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4,
.gallery-overlay .badge {
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease-in-out;
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay .badge {
    transform: translateY(0);
}

/* =========================================
   LENIS СТАНДАРТНИ СТИЛОВЕ (ЗА ПРОИЗВОДИТЕЛНОСТ)
   ========================================= */
html.lenis,
html.lenis body {
    height: auto;
    width: 100%;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* =========================================
   PREMIUM FOOTER (Тъмен градиент)
   ========================================= */
.custom-footer {
    background: linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%);
    color: #e0e0e0;
}

.custom-footer .footer-brand {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.custom-footer .footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-links a {
    color: #a39ca3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact i {
    color: #a39ca3;
    width: 20px;
    text-align: center;
}

.footer-contact span {
    font-size: 0.95rem;
    color: #a39ca3;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-circle:hover {
    background-color: #8b5cf6;
    color: #ffffff;
    transform: translateY(-3px);
}

.custom-footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #8b5cf6;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background-color: #7c3aed;
    color: #ffffff;
    transform: translateY(-4px);
}

/* =========================================
   ФИКСИРАН БУТОН BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8b5cf6;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #7c3aed;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* =========================================
   БУТОНИ С PREMIUM ГРАДИЕНТ
   ========================================= */
.btn-primary,
.custom-hover-btn {
    background: linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary:hover,
.custom-hover-btn:hover {
    filter: brightness(1.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 28, 36, 0.4) !important;
    color: #ffffff !important;
}

.navbar .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.back-to-top {
    background: linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-primary {
    background: linear-gradient(135deg, #1e131d 0%, #2a1c24 50%, #150d14 100%) !important;
}

.text-primary {
    color: #8b5cf6 !important;
}

/* =========================================
   DEMO RIBBON / MUSTERSEITE BADGE
   ========================================= */
   .template-demo-ribbon {
    position: fixed;
    top: 28px;
    right: -78px;
    z-index: 1200;
    width: 320px;
    min-height: 74px;
    transform: rotate(45deg);
    pointer-events: auto;
    isolation: isolate;
}

.template-demo-ribbon__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    width: 100%;
    min-height: 74px;
    padding: 0.78rem 2.7rem 0.72rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(30, 19, 29, 0.86) 0%,
            rgba(72, 48, 68, 0.78) 36%,
            rgba(139, 92, 246, 0.54) 70%,
            rgba(30, 19, 29, 0.86) 100%
        );
    background-size: 220% 220%;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(139, 92, 246, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    transition:
        background-position 0.85s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease,
        transform 0.45s ease;
    animation: demoRibbonBreath 7s ease-in-out infinite;
}

.template-demo-ribbon__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 28%,
            rgba(255, 255, 255, 0.34) 48%,
            rgba(255, 255, 255, 0.08) 68%,
            transparent 100%
        );
    transform: translateX(-130%) skewX(-18deg);
    animation: demoRibbonShimmer 6.8s ease-in-out infinite;
}

.template-demo-ribbon__inner::after {
    content: '';
    position: absolute;
    inset: 7px 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 22%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.1) 78%,
            rgba(255, 255, 255, 0) 100%
        );
    opacity: 0.65;
}

.template-demo-ribbon__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.template-demo-ribbon__subtitle {
    display: block;
    font-size: 0.70rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.template-demo-ribbon:hover .template-demo-ribbon__inner {
    background-position: 100% 50%;
    filter: saturate(1.28) brightness(1.1);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.32),
        0 0 42px rgba(139, 92, 246, 0.28),
        0 0 34px rgba(236, 72, 153, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(0, 0, 0, 0.14);
    animation: demoRibbonChameleon 2.6s linear infinite;
}

.template-demo-ribbon:hover .template-demo-ribbon__inner::before {
    animation-duration: 2.2s;
}

@keyframes demoRibbonShimmer {
    0% {
        transform: translateX(-130%) skewX(-18deg);
        opacity: 0;
    }

    16% {
        opacity: 0.85;
    }

    34% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }

    100% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes demoRibbonBreath {
    0%,
    100% {
        filter: saturate(1) brightness(1);
    }

    50% {
        filter: saturate(1.08) brightness(1.05);
    }
}

@keyframes demoRibbonChameleon {
    0% {
        background:
            linear-gradient(
                135deg,
                rgba(30, 19, 29, 0.88) 0%,
                rgba(139, 92, 246, 0.72) 34%,
                rgba(236, 72, 153, 0.62) 68%,
                rgba(30, 19, 29, 0.88) 100%
            );
    }

    25% {
        background:
            linear-gradient(
                135deg,
                rgba(30, 19, 29, 0.88) 0%,
                rgba(236, 72, 153, 0.68) 34%,
                rgba(245, 158, 11, 0.58) 68%,
                rgba(30, 19, 29, 0.88) 100%
            );
    }

    50% {
        background:
            linear-gradient(
                135deg,
                rgba(30, 19, 29, 0.88) 0%,
                rgba(245, 158, 11, 0.62) 34%,
                rgba(34, 197, 94, 0.54) 68%,
                rgba(30, 19, 29, 0.88) 100%
            );
    }

    75% {
        background:
            linear-gradient(
                135deg,
                rgba(30, 19, 29, 0.88) 0%,
                rgba(34, 197, 94, 0.58) 34%,
                rgba(14, 165, 233, 0.6) 68%,
                rgba(30, 19, 29, 0.88) 100%
            );
    }

    100% {
        background:
            linear-gradient(
                135deg,
                rgba(30, 19, 29, 0.88) 0%,
                rgba(139, 92, 246, 0.72) 34%,
                rgba(236, 72, 153, 0.62) 68%,
                rgba(30, 19, 29, 0.88) 100%
            );
    }
}

@media (max-width: 767.98px) {
    .template-demo-ribbon {
        top: 18px;
        right: -78px;
        width: 270px;
        min-height: 62px;
    }

    .template-demo-ribbon__inner {
        min-height: 62px;
        padding: 0.64rem 2.3rem 0.60rem;
    }

    .template-demo-ribbon__label {
        font-size: 0.76rem;
        letter-spacing: 0.11em;
    }

    .template-demo-ribbon__subtitle {
        font-size: 0.61rem;
        letter-spacing: 0.07em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .template-demo-ribbon__inner,
    .template-demo-ribbon__inner::before {
        animation: none !important;
    }

    .template-demo-ribbon:hover .template-demo-ribbon__inner {
        animation: none !important;
    }
}

section {
    padding: 100px 0;
}
/* =======================================================
   Reinigungsservice Template Overrides
   Bewusst auf dem stabilen agency-template Standard aufgebaut.
   ======================================================= */

:root {
    --clean-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --clean-gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --clean-text: #333333;
    --clean-text-muted: #666666;
    --clean-surface: rgba(255, 255, 255, 0.96);
    --clean-border: rgba(15, 23, 42, 0.08);
    --clean-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --clean-shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.16);
}

body {
    color: var(--clean-text);
    background: #ffffff;
}

#main-navbar {
    background: var(--clean-surface) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

#main-navbar .navbar-brand {
    background: var(--clean-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#main-navbar .btn-primary,
.btn-primary,
.btn-clean-accent {
    color: #ffffff !important;
    border: 0;
    background: var(--clean-gradient-accent) !important;
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.3);
}

.btn-clean-outline {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.68) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-clean-outline:hover,
.btn-clean-outline:focus-visible {
    color: #333333 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.94) !important;
}

.text-primary,
.section-eyebrow,
#main-navbar .navbar-nav .nav-link.active {
    color: #667eea !important;
}

.clean-hero {
    padding: calc(84px + 48px) 0 72px;
    isolation: isolate;
}

.clean-hero__image {
    object-fit: cover;
    z-index: 0;
}

.clean-hero__overlay {
    z-index: 1;
}

.clean-hero__content {
    z-index: 3;
    max-width: 980px;
}

.clean-hero__eyebrow {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.clean-hero__title {
    font-size: clamp(2.35rem, 6vw, 4.35rem);
    line-height: 1.08;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.clean-hero__lead {
    max-width: 780px;
    font-size: clamp(1.05rem, 2.3vw, 1.45rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.94);
}

.clean-hero__trust li {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.clean-hero__trust i {
    color: #ffffff;
}

.clean-hero__bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.clean-hero__bubbles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: cleanBubbleFloat 6s ease-in-out infinite;
}

.clean-hero__bubbles span:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.clean-hero__bubbles span:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 62%;
    right: 15%;
    animation-delay: 2s;
}

.clean-hero__bubbles span:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 18%;
    left: 20%;
    animation-delay: 4s;
}

.clean-services {
    background:
        linear-gradient(135deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.94) 100%),
        url("https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
    background-size: cover;
    background-position: center;
}

.clean-service-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    box-shadow: var(--clean-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clean-service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: var(--clean-gradient-primary);
    z-index: 3;
}

.clean-service-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.86) 0%, rgba(118, 75, 162, 0.86) 100%);
    transition: background 0.3s ease;
}

.clean-service-card__body {
    position: relative;
    z-index: 2;
    min-height: 340px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #ffffff;
}

.clean-service-card__icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.clean-service-card__title {
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
    line-height: 1.22;
    font-weight: 800;
}

.clean-service-card__text {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

.clean-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--clean-shadow-strong);
}

.clean-service-card:hover .clean-service-card__overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.76) 0%, rgba(118, 75, 162, 0.76) 100%);
}

.clean-about__image {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
}

.clean-about__media::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -18px;
    width: 44%;
    height: 44%;
    border-radius: 1.5rem;
    background: var(--clean-gradient-primary);
    opacity: 0.16;
    z-index: 0;
}

.clean-about__media > img,
.clean-about__stat {
    position: relative;
    z-index: 1;
}

.clean-about__stat {
    background: linear-gradient(135deg, #222222 0%, #111827 100%);
    transform: translate(-10%, 15%);
}

.clean-about__stat strong {
    color: #ffb3a8;
}

#contact {
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.92) 0%, rgba(118, 75, 162, 0.92) 100%),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
    background-size: cover;
    background-position: center;
}

#contact .section-eyebrow,
#contact h2,
#contact .lead,
#contact .form-label,
#contact .form-check-label,
#contact .form-check-label a {
    color: #ffffff !important;
}

#contact .bg-light {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#contact .bg-light h3,
#contact .bg-light h6,
#contact .bg-light p {
    color: #ffffff !important;
}

#contact form {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#contact .form-control {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #333333;
}

.custom-footer {
    margin-top: 0 !important;
}

@keyframes cleanBubbleFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.58;
    }

    25% {
        transform: translate3d(8px, -10px, 0) rotate(120deg);
        opacity: 0.82;
    }

    50% {
        transform: translate3d(0, -22px, 0) rotate(240deg);
        opacity: 0.94;
    }

    75% {
        transform: translate3d(-8px, -10px, 0) rotate(360deg);
        opacity: 0.82;
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(480deg);
        opacity: 0.58;
    }
}

@media (max-width: 991.98px) {
    .clean-hero {
        padding-top: calc(76px + 56px);
        min-height: auto !important;
    }

    .clean-service-card,
    .clean-service-card__body {
        min-height: 320px;
    }

    .clean-about__image {
        min-height: 340px;
    }
}

@media (max-width: 575.98px) {
    .clean-hero__trust {
        flex-direction: column;
        align-items: stretch;
    }

    .clean-hero__trust li {
        justify-content: center;
    }

    .clean-service-card,
    .clean-service-card__body {
        min-height: auto;
    }

    .clean-service-card__body {
        padding: 1.5rem;
    }

    #contact form {
        padding: 1.35rem;
    }
}

@media (hover: none) {
    .clean-service-card:hover {
        transform: none;
    }
}


/* =======================================================
   Der Messerschleifer Template Overrides
   Стиловете надграждат стабилния PHP шаблон без да променят структурата.
   ======================================================= */

:root {
    --clean-gradient-primary: linear-gradient(135deg, #111827 0%, #243244 52%, #0b1018 100%);
    --clean-gradient-accent: linear-gradient(135deg, #f4c76c 0%, #d4a04d 42%, #9f6419 100%);
    --clean-text: #1f2937;
    --clean-text-muted: #64748b;
    --clean-surface: rgba(10, 15, 23, 0.90);
    --clean-border: rgba(212, 160, 77, 0.20);
    --clean-shadow-soft: 0 18px 46px rgba(15, 23, 42, 0.14);
    --clean-shadow-strong: 0 26px 64px rgba(15, 23, 42, 0.26);
}

body {
    background: #f8fafc;
}

#main-navbar {
    background: rgba(8, 12, 19, 0.88) !important;
    border-bottom: 1px solid rgba(212, 160, 77, 0.18);
}

#main-navbar.bg-white,
#main-navbar.bg-light {
    background: rgba(8, 12, 19, 0.76) !important;
    border-bottom-color: rgba(212, 160, 77, 0.28);
}

#main-navbar .navbar-brand {
    background: linear-gradient(135deg, #ffffff 0%, #f4c76c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.01em;
}

.text-primary,
.section-eyebrow,
.clean-eyebrow,
#main-navbar .navbar-nav .nav-link.active {
    color: #d4a04d !important;
}

#main-navbar .btn-primary,
.btn-primary,
.btn-clean-accent {
    color: #111827 !important;
    background: var(--clean-gradient-accent) !important;
    box-shadow: 0 14px 34px rgba(212, 160, 77, 0.30);
}

.btn-clean-outline {
    color: #ffffff !important;
    border: 1px solid rgba(244, 199, 108, 0.64) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.btn-clean-outline:hover,
.btn-clean-outline:focus-visible {
    color: #111827 !important;
    background: #f4c76c !important;
    border-color: #f4c76c !important;
}

.clean-hero__eyebrow,
.clean-hero__trust li {
    border-color: rgba(244, 199, 108, 0.28);
    background: rgba(9, 13, 20, 0.36);
}

.clean-hero__title {
    max-width: 980px;
    margin-inline: auto;
}

.clean-hero__bubbles span {
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(244, 199, 108, 0.28);
    background:
        radial-gradient(circle at 50% 50%, rgba(17, 24, 39, 0.72) 0 18%, rgba(244, 199, 108, 0.12) 19% 23%, transparent 24%),
        repeating-conic-gradient(
            from 0deg,
            rgba(244, 199, 108, 0.34) 0deg 10deg,
            rgba(255, 255, 255, 0.10) 10deg 18deg,
            rgba(17, 24, 39, 0.26) 18deg 30deg
        ),
        radial-gradient(circle at 50% 50%, rgba(244, 199, 108, 0.20) 0%, rgba(244, 199, 108, 0.10) 58%, rgba(17, 24, 39, 0.26) 100%);
    box-shadow:
        0 0 0 6px rgba(244, 199, 108, 0.04),
        0 18px 38px rgba(0, 0, 0, 0.24),
        inset 0 0 18px rgba(255, 255, 255, 0.10),
        inset 0 0 28px rgba(17, 24, 39, 0.26);
    opacity: 0.78;
    transform: translate3d(0, 0, 0) rotate(0deg);
}

.clean-hero__bubbles span::before {
    content: '';
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.72) 0%, rgba(244, 199, 108, 0.42) 18%, rgba(17, 24, 39, 0.80) 52%, rgba(17, 24, 39, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(244, 199, 108, 0.34),
        inset 0 0 10px rgba(0, 0, 0, 0.38);
}

.clean-hero__bubbles span::after {
    content: '';
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 18px rgba(244, 199, 108, 0.12);
}

.clean-services {
    background:
        radial-gradient(circle at 15% 15%, rgba(212, 160, 77, 0.12) 0%, transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.clean-service-card {
    border: 1px solid rgba(212, 160, 77, 0.16);
}

.clean-service-card::before {
    background: var(--clean-gradient-accent);
}

.clean-service-card__overlay,
.clean-service-card:hover .clean-service-card__overlay {
    background:
        linear-gradient(135deg, rgba(8, 12, 19, 0.86) 0%, rgba(17, 24, 39, 0.78) 48%, rgba(120, 78, 28, 0.70) 100%);
}

.clean-service-card__icon {
    color: #f4c76c;
    background: rgba(244, 199, 108, 0.13);
    border: 1px solid rgba(244, 199, 108, 0.22);
}

.clean-about {
    background:
        radial-gradient(circle at 82% 12%, rgba(212, 160, 77, 0.10) 0%, transparent 30%),
        #ffffff !important;
}

.clean-about__media::before,
.clean-about__stat {
    background: var(--clean-gradient-primary);
}

.clean-about__stat strong,
.clean-about__features i {
    color: #f4c76c !important;
}

.clean-section {
    padding: var(--section-padding-y) 0;
}

.clean-section-heading {
    margin-bottom: 3rem;
}

.clean-section-heading--center {
    max-width: 840px;
    margin-inline: auto;
    text-align: center;
}

.clean-section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 2rem;
    align-items: end;
}

.clean-section-heading h2 {
    margin: 0.65rem 0 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
    font-weight: 800;
}

.clean-section-heading p {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 1.08rem;
    line-height: 1.75;
}

.clean-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.clean-eyebrow--light {
    color: #f4c76c !important;
}

.clean-proof {
    background: #ffffff;
}

.clean-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.clean-proof-card {
    height: 100%;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--clean-shadow-soft);
}

.clean-proof-card__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    color: #111827;
    background: var(--clean-gradient-accent);
    box-shadow: 0 12px 28px rgba(212, 160, 77, 0.22);
}

.clean-proof-card h3,
.clean-process-card h3 {
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 800;
}

.clean-proof-card p,
.clean-process-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.clean-process {
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 199, 108, 0.16) 0%, transparent 30%),
        linear-gradient(135deg, #090d14 0%, #172033 54%, #090d14 100%);
}

.clean-process .clean-section-heading h2,
.clean-process .clean-section-heading p {
    color: #ffffff;
}

.clean-process .clean-section-heading p {
    color: rgba(255, 255, 255, 0.74);
}

.clean-process__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.clean-process-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 2rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(244, 199, 108, 0.18);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.clean-process-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--clean-gradient-accent);
}

.clean-process-card span {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: #f4c76c;
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    line-height: 0.9;
    font-weight: 800;
}

.clean-process-card h3 {
    color: #ffffff;
}

.clean-process-card p {
    color: rgba(255, 255, 255, 0.76);
}

#contact {
    background:
        radial-gradient(circle at 84% 12%, rgba(244, 199, 108, 0.18) 0%, transparent 34%),
        linear-gradient(135deg, rgba(9, 13, 20, 0.96) 0%, rgba(23, 32, 51, 0.94) 100%),
        url('../images/hero/hero-1920.avif');
    background-size: cover;
    background-position: center;
}

#contact .bg-light,
#contact form {
    border: 1px solid rgba(244, 199, 108, 0.16);
    background: rgba(255, 255, 255, 0.10) !important;
}

#contact .contact-icon-box,
#contact .bg-primary {
    color: #111827 !important;
    background: var(--clean-gradient-accent) !important;
}

.custom-footer {
    background:
        radial-gradient(circle at 18% 0%, rgba(244, 199, 108, 0.12) 0%, transparent 34%),
        linear-gradient(135deg, #070a10 0%, #111827 100%) !important;
}

@media (max-width: 991.98px) {
    .clean-section-heading--split,
    .clean-proof__grid,
    .clean-process__grid {
        grid-template-columns: 1fr;
    }

    .clean-proof-card,
    .clean-process-card {
        min-height: auto;
    }
}

/* =======================================================
   Masonry Galerie
   Demo nutzt Bilder aus assets/images/services/.
   Für echte Kundenprojekte echte Projektfotos aus assets/images/gallery/ verwenden.
   ======================================================= */
.masonry-gallery-section {
    position: relative;
    overflow: hidden;
}

.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-gallery__item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.masonry-gallery__figure {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #111827;
    box-shadow: var(--clean-shadow-soft, 0 18px 46px rgba(15, 23, 42, 0.14));
    isolation: isolate;
    transform: translateZ(0);
}

.masonry-gallery__image {
    display: block;
    width: 100%;
    min-height: 260px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition:
        transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.masonry-gallery__item:nth-child(3n + 1) .masonry-gallery__image {
    aspect-ratio: 4 / 5;
}

.masonry-gallery__item:nth-child(3n + 2) .masonry-gallery__image {
    aspect-ratio: 1 / 1;
}

.masonry-gallery__item:nth-child(3n + 3) .masonry-gallery__image {
    aspect-ratio: 5 / 4;
}

.masonry-gallery__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.82) 100%);
    opacity: 1;
    transition: background 0.35s ease;
}

.masonry-gallery__badge {
    align-self: flex-start;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.masonry-gallery__title {
    color: #ffffff;
    line-height: 1.18;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
    transform: translateY(0);
}

.masonry-gallery__figure:hover .masonry-gallery__image {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.masonry-gallery__figure:hover .masonry-gallery__overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 10%, rgba(0, 0, 0, 0.26) 42%, rgba(0, 0, 0, 0.88) 100%);
}

@media (max-width: 991.98px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .masonry-gallery {
        column-count: 1;
        column-gap: 0;
    }

    .masonry-gallery__item {
        margin-bottom: 1rem;
    }

    .masonry-gallery__image,
    .masonry-gallery__item:nth-child(3n + 1) .masonry-gallery__image,
    .masonry-gallery__item:nth-child(3n + 2) .masonry-gallery__image,
    .masonry-gallery__item:nth-child(3n + 3) .masonry-gallery__image {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }
}

