/* =========================================
   ГЛОБАЛНИ СТИЛОВЕ И ПРОМЕНЛИВИ
   ========================================= */
   :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;
}
/* =======================================================
   Hausmeister Services Demo: HTML-zu-PHP Visual Layer
   Basis-Standards bleiben aus agency-template erhalten.
   ======================================================= */

html {
    scroll-padding-top: 96px;
}

body {
    color: var(--hm-gray-dark);
    background: var(--hm-white);
}

#main-navbar {
    min-height: 84px;
    background: rgba(44, 90, 160, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#main-navbar.bg-white,
#main-navbar.bg-light {
    background: rgba(44, 90, 160, 0.95) !important;
}

#main-navbar.shadow-sm {
    background: var(--hm-primary) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14) !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

#main-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--hm-white) !important;
    letter-spacing: -0.03em;
}

#main-navbar .navbar-brand::before {
    content: "\f7d9";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--hm-accent);
}

#main-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    letter-spacing: 0.04em;
}

#main-navbar .navbar-nav .nav-link:hover,
#main-navbar .navbar-nav .nav-link.active,
#main-navbar .navbar-nav .nav-link:focus-visible {
    color: var(--hm-accent) !important;
}

#main-navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--hm-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

#main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-width: 48px;
    min-height: 48px;
}

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

#main-navbar .custom-hover-btn {
    background: var(--hm-accent) !important;
    border-color: var(--hm-accent) !important;
    color: var(--hm-primary) !important;
}

#main-navbar .custom-hover-btn:hover,
#main-navbar .custom-hover-btn:focus-visible {
    color: var(--hm-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.hm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(84px + 4rem) 0 5rem;
    color: var(--hm-white);
    isolation: isolate;
}

.hm-hero__background,
.hm-hero__overlay,
.hm-hero__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hm-hero__background {
    object-fit: cover;
    z-index: -4;
}

.hm-hero__overlay {
    z-index: -3;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(74, 144, 164, 0.86) 100%);
}

.hm-hero__pattern {
    z-index: -2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpolygon fill='rgba(255,255,255,0.055)' points='0,1000 1000,0 1000,1000'/%3E%3C/svg%3E");
    background-size: cover;
}

.hm-floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.hm-floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: hmFloat 6s ease-in-out infinite;
}

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

.hm-floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.hm-floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hm-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hm-hero__text h1 {
    max-width: 720px;
    color: var(--hm-white);
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.hm-hero__text h1 span {
    color: var(--hm-accent);
}

.hm-hero__text p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    margin-bottom: 2rem;
}

.hm-hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hm-hero .btn-primary,
.hm-about .btn-primary,
.hm-contact .btn-primary {
    background: var(--hm-accent);
    border-color: var(--hm-accent);
    color: var(--hm-primary);
}

.hm-hero .btn-primary:hover,
.hm-about .btn-primary:hover,
.hm-contact .btn-primary:hover,
.hm-hero .btn-primary:focus-visible,
.hm-about .btn-primary:focus-visible,
.hm-contact .btn-primary:focus-visible {
    background: var(--hm-white);
    border-color: var(--hm-white);
    color: var(--hm-primary);
}

.hero-outline-btn:hover,
.hero-outline-btn:focus-visible {
    background: var(--hm-white) !important;
    color: var(--hm-primary) !important;
}

.hm-hero__image-card,
.hm-about__image-card {
    position: relative;
    min-height: 400px;
    border-radius: var(--image-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hm-hero__image-card img,
.hm-about__image-card img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.hm-hero__image-overlay,
.hm-about__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.3), rgba(133, 193, 233, 0.3));
}

.hm-hero__image-card > i,
.hm-about__image-card > i {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 3rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hm-services {
    position: relative;
    padding: var(--section-padding-y) 0;
    background:
        linear-gradient(rgba(232, 244, 248, 0.95), rgba(232, 244, 248, 0.95)),
        var(--hm-services-bg-image) center/cover no-repeat;
    scroll-margin-top: 100px;
}

.hm-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hm-section-header h2,
.hm-about__text h2,
.hm-contact__info h2 {
    color: var(--hm-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hm-section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--hm-gray-dark);
    font-size: 1.1rem;
}

.hm-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.hm-service-card {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    overflow: hidden;
    background: var(--hm-white);
    background-image: var(--hm-card-bg-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hm-service-card__veil {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    z-index: 0;
}

.hm-service-card__content {
    position: relative;
    z-index: 1;
}

.hm-service-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-secondary));
    color: var(--hm-white);
    font-size: 2rem;
}

.hm-service-card h3 {
    color: var(--hm-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hm-service-card p {
    color: var(--hm-gray-dark);
    margin-bottom: 0;
}

.hm-about {
    padding: var(--section-padding-y) 0;
    background: var(--hm-white);
    scroll-margin-top: 100px;
}

.hm-about__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 4rem;
    align-items: center;
}

.hm-about__text p {
    color: var(--hm-gray-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hm-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.hm-features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.hm-features-list i {
    color: var(--hm-success);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hm-about__image-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hm-contact {
    position: relative;
    padding: var(--section-padding-y) 0;
    color: var(--hm-white);
    background:
        linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 90, 160, 0.95) 100%),
        var(--hm-contact-bg-image) center/cover no-repeat;
    background-blend-mode: overlay;
    scroll-margin-top: 100px;
}

.hm-contact__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 4rem;
}

.hm-contact__info h2 {
    color: var(--hm-white);
}

.hm-contact__info p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hm-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hm-contact-details i {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--hm-white);
    font-size: 1.2rem;
}

.hm-contact__form {
    padding: 2rem;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hm-contact__form .form-group {
    margin-bottom: 1.5rem;
}

.hm-contact__form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--hm-white);
    font-weight: 600;
}

.hm-contact__form label span,
.hm-privacy-check span {
    color: var(--hm-accent);
}

.hm-contact__form input,
.hm-contact__form textarea {
    width: 100%;
    padding: 1rem;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hm-gray-dark);
    font: inherit;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hm-contact__form input:focus,
.hm-contact__form textarea:focus {
    outline: none;
    background: var(--hm-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hm-contact__form textarea {
    min-height: 120px;
    resize: vertical;
}

.hm-privacy-check {
    margin: 1.5rem 0;
}

.hm-privacy-check label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.hm-privacy-check a {
    color: var(--hm-accent);
    text-decoration: none;
}

.hm-submit-btn {
    min-width: 220px;
}

.template-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.custom-footer {
    margin-top: 0 !important;
    background: var(--hm-dark-blue);
}

.custom-footer .footer-brand,
.custom-footer .footer-heading,
.custom-footer .footer-contact i,
.custom-footer .footer-links a:hover,
.custom-footer .social-circle:hover {
    color: var(--hm-accent);
}

.custom-footer .social-circle:hover {
    border-color: var(--hm-accent);
}

@keyframes hmFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 991.98px) {
    .hm-hero,
    .hm-services,
    .hm-about,
    .hm-contact {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .hm-hero {
        padding-top: calc(78px + 4rem);
    }

    .hm-hero__content,
    .hm-about__content,
    .hm-contact__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hm-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #main-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 16px;
        background: var(--hm-primary);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    #main-navbar .navbar-nav .nav-link::after {
        display: none;
    }

    #main-navbar .navbar-nav .nav-link:hover,
    #main-navbar .navbar-nav .nav-link.active,
    #main-navbar .navbar-nav .nav-link:focus-visible {
        color: var(--hm-white) !important;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    .hm-hero {
        min-height: auto;
        padding-top: calc(78px + 3rem);
    }

    .hm-services__grid {
        grid-template-columns: 1fr;
    }

    .hm-hero__image-card,
    .hm-about__image-card,
    .hm-hero__image-card img,
    .hm-about__image-card img {
        min-height: 320px;
    }

    .hm-contact__form {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hm-hero__text h1 {
        font-size: 2rem;
    }

    .hm-hero__buttons .btn,
    .hm-submit-btn {
        width: 100%;
    }
}

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