.services-sidebar {
    position: sticky;
    top: 118px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.services-sidebar-widget {
    position: relative;
    margin: 0;
}

.services-sidebar-drawer-head,
.services-sidebar-close,
.services-sidebar-toggle,
.services-sidebar-backdrop {
    display: none;
}


.services-sidebar-links {
    position: relative;
    overflow: hidden;
    padding: 24px 20px;
    border: 1px solid var(--theme-border-soft);
    border-radius: 26px 26px 26px 9px;
    background:
        radial-gradient(circle at 100% 0%, rgba(77, 169, 255, 0.07), transparent 40%),
        var(--theme-gradient-panel);
    box-shadow: 0 18px 40px rgba(40, 76, 109, 0.06);
}

.dark-mode .services-sidebar-links {
    background:
        radial-gradient(circle at 100% 0%, rgba(77, 169, 255, 0.09), transparent 40%),
        var(--theme-gradient-dark-panel);
    box-shadow: 0 18px 40px rgba(0, 8, 19, 0.16);
}

.services-sidebar-links::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 72px;
    height: 48px;
    opacity: 0.18;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(73, 111, 201, 0.75) 1.2px, transparent 1.6px);
    background-size: 12px 12px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 90%);
            mask-image: linear-gradient(135deg, #000, transparent 90%);
}

.services-sidebar-links a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 42px 12px 16px;
    border-bottom: 1px solid rgba(61, 113, 151, 0.09);
    color: var(--theme-text-muted);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.services-sidebar-links a:last-child {
    border-bottom: 0;
}

.services-sidebar-links a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-gradient-primary);
    opacity: 0.42;
    transform: translateY(-50%);
    transition: opacity 220ms ease, box-shadow 220ms ease;
}

.services-sidebar-links a::after {
    content: "\e82d";
    position: absolute;
    top: 50%;
    right: 14px;
    color: #496fc9;
    font: 400 normal 12px / 1 "fontello";
    opacity: 0;
    transform: translate(-8px, -50%);
    transition: opacity 220ms ease, transform 220ms ease;
}

.services-sidebar-links a:hover,
.services-sidebar-links a:focus-visible {
    color: var(--theme-text-strong);
    transform: translateX(5px);
}

.services-sidebar-links a:hover::before,
.services-sidebar-links a:focus-visible::before {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(77, 169, 255, 0.08), 0 0 12px rgba(45, 189, 187, 0.22);
}

.services-sidebar-links a:hover::after,
.services-sidebar-links a:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}


.services-sidebar-brochure {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 34px 28px 30px;
    border: 1px solid rgba(122, 174, 218, 0.13);
    border-radius: 27px 27px 27px 9px;
    background:
        radial-gradient(circle at 88% 10%, rgba(77, 169, 255, 0.22), transparent 36%),
        radial-gradient(circle at 8% 100%, rgba(45, 189, 187, 0.12), transparent 42%),
        linear-gradient(145deg, #071a2d 0%, #0a2850 57%, #081d34 100%);
    color: var(--color-white);
}

.services-sidebar-brochure::before,
.services-sidebar-brochure::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.services-sidebar-brochure::before {
    top: -34px;
    right: -42px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(113, 196, 246, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(113, 196, 246, 0.025), 0 0 0 42px rgba(130, 88, 200, 0.02);
}

.services-sidebar-brochure::after {
    right: 24px;
    bottom: 22px;
    width: 54px;
    height: 38px;
    opacity: 0.26;
    background-image: radial-gradient(circle, rgba(134, 217, 255, 0.9) 1.1px, transparent 1.5px);
    background-size: 10px 10px;
}

.services-sidebar-brochure-subtitle,
.services-sidebar-strategy-overtitle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #93dcff;
    font-family: var(--font-secondary);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-sidebar-brochure-subtitle::before,
.services-sidebar-strategy-overtitle::before {
    content: "";
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, #7657ca, #2dbdbb);
}

.services-sidebar-brochure-subtitle::after,
.services-sidebar-strategy-overtitle::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2dbdbb;
    transform: translate(50%, -50%);
    box-shadow: 0 0 8px rgba(45, 189, 187, 0.55);
}

.services-sidebar-brochure-title {
    position: relative;
    z-index: 1;
    margin: 0 0 26px;
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.services-sidebar-brochure .feature-section-button,
.services-sidebar-strategy .feature-section-button {
    position: relative;
    z-index: 2;
    min-width: 0;
    height: 52px;
    padding-left: 18px;
    padding-right: 18px;
}


.services-sidebar-strategy {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--theme-border-soft);
    border-radius: 27px 27px 27px 9px;
    background:
        radial-gradient(circle at 82% 16%, rgba(45, 189, 187, 0.14), transparent 36%),
        linear-gradient(145deg, #07192c 0%, #0a2441 100%);
}

.services-sidebar-strategy-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.services-sidebar-strategy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 15, 27, 0.05) 18%, rgba(3, 15, 27, 0.86) 80%, rgba(3, 15, 27, 0.96) 100%),
        linear-gradient(135deg, rgba(118, 87, 202, 0.12), rgba(45, 189, 187, 0.06));
}

.services-sidebar-strategy::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    width: 62px;
    height: 42px;
    opacity: 0.25;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(125, 211, 255, 0.9) 1.1px, transparent 1.5px);
    background-size: 10px 10px;
}

.services-sidebar-strategy:hover .services-sidebar-strategy-image {
    transform: scale(1.035);
}

.services-sidebar-strategy.no-image::before {
    background:
        linear-gradient(150deg, transparent 0 44%, rgba(77, 169, 255, 0.1) 44.2% 44.6%, transparent 44.8% 66%, rgba(45, 189, 187, 0.09) 66.2% 66.6%, transparent 66.8%),
        radial-gradient(circle at 72% 24%, rgba(130, 88, 200, 0.16), transparent 35%);
}

.services-sidebar-strategy-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 30px 26px;
}

.services-sidebar-strategy-overtitle {
    color: #a9e3ff;
}

.services-sidebar-strategy-title {
    margin: 0 0 20px;
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.services-sidebar-strategy-content p {
    margin: 0;
    color: rgba(229, 244, 252, 0.82);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}


@media (max-width: 1199px) {
    .services-sidebar {
        position: fixed;
        top: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 1000000101;
        display: block;
        width: min(390px, calc(100vw - 28px));
        height: auto;
        padding: 74px 18px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--theme-border-soft);
        border-radius: 28px 28px 28px 11px;
        background:
            radial-gradient(circle at 90% 0%, rgba(77, 169, 255, 0.09), transparent 22rem),
            var(--theme-page-background);
        box-shadow: -28px 0 70px rgba(7, 26, 45, 0.18);
        transform: translateX(calc(100% + 32px));
        visibility: hidden;
        pointer-events: none;
        transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 360ms ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(73, 111, 201, 0.42) transparent;
    }

    .dark-mode .services-sidebar {
        background:
            radial-gradient(circle at 90% 0%, rgba(77, 169, 255, 0.1), transparent 22rem),
            var(--theme-color-3);
        box-shadow: -28px 0 70px rgba(0, 0, 0, 0.34);
    }

    .services-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .services-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .services-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: linear-gradient(180deg, #7657ca, #2f93c6, #2dbdbb);
    }

    .services-sidebar.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .services-sidebar-drawer-head {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 66px;
        padding: 0 16px 0 20px;
        border-bottom: 1px solid var(--theme-border-soft);
        background: rgba(255, 255, 255, 0.38);
        -webkit-backdrop-filter: blur(14px);
                backdrop-filter: blur(14px);
    }

    .dark-mode .services-sidebar-drawer-head {
        background: rgba(7, 27, 43, 0.6);
    }

    .services-sidebar-drawer-signal {
        position: relative;
        width: 62px;
        height: 12px;
        background: linear-gradient(90deg, rgba(118, 87, 202, 0.7), rgba(77, 169, 255, 0.76), rgba(45, 189, 187, 0.72)) 0 50% / 54px 1px no-repeat;
    }

    .services-sidebar-drawer-signal::before,
    .services-sidebar-drawer-signal::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        transform: translateY(-50%);
    }

    .services-sidebar-drawer-signal::before {
        left: 0;
        background: #7657ca;
    }

    .services-sidebar-drawer-signal::after {
        right: 2px;
        background: #2dbdbb;
        box-shadow: 0 0 9px rgba(45, 189, 187, 0.42);
    }

    .services-sidebar-close {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--theme-border-soft);
        border-radius: 14px 14px 14px 6px;
        color: var(--theme-text-strong);
        background: var(--theme-surface-control);
        outline: none;
        cursor: pointer;
        transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
    }

    .dark-mode .services-sidebar-close {
        background: var(--theme-dark-control);
    }

    .services-sidebar-close::before {
        content: "\e803";
        font: 400 normal 15px / 1 "fontello";
    }

    .services-sidebar-close:hover {
        transform: rotate(6deg);
        border-color: rgba(73, 142, 201, 0.28);
    }

    .services-sidebar-widget + .services-sidebar-widget {
        margin-top: 18px;
    }

    .services-sidebar-toggle {
        position: fixed;
        top: 42%;
        right: 0;
        z-index: 999;
        display: inline-flex;
        width: 48px;
        height: 68px;
        padding: 0;
        border: 0;
        border-radius: 17px 0 0 7px;
        background: var(--theme-gradient-primary);
        box-shadow: 0 14px 30px rgba(43, 82, 157, 0.22);
        cursor: pointer;
        transition: transform 220ms ease, box-shadow 220ms ease;
    }

    .services-sidebar-toggle::before,
    .services-sidebar-toggle::after {
        content: "";
        position: absolute;
        left: 15px;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--color-white);
    }

    .services-sidebar-toggle::before {
        top: 27px;
        box-shadow: 0 6px 0 var(--color-white);
    }

    .services-sidebar-toggle::after {
        top: 39px;
        width: 12px;
    }

    .services-sidebar-toggle:hover {
        transform: translateX(-3px);
        box-shadow: 0 18px 38px rgba(43, 82, 157, 0.28);
    }

    .services-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000000100;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(3, 14, 25, 0.38);
        opacity: 0;
        visibility: hidden;
        -webkit-backdrop-filter: blur(2px);
                backdrop-filter: blur(2px);
        transition: opacity 260ms ease, visibility 260ms ease;
    }

    .services-sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .services-sidebar {
        top: 10px;
        right: 10px;
        bottom: 10px;
        width: min(370px, calc(100vw - 20px));
        padding: 70px 14px 18px;
        border-radius: 24px 24px 24px 9px;
    }

    .services-sidebar-drawer-head {
        height: 62px;
    }

    .services-sidebar-links {
        padding: 20px 16px;
    }

    .services-sidebar-brochure {
        padding: 30px 24px 26px;
    }

    .services-sidebar-strategy {
        min-height: 300px;
    }

    .services-sidebar-toggle {
        top: 46%;
        width: 44px;
        height: 62px;
    }

    .services-sidebar-toggle::before,
    .services-sidebar-toggle::after {
        left: 14px;
        width: 16px;
    }

    .services-sidebar-toggle::before {
        top: 24px;
    }

    .services-sidebar-toggle::after {
        top: 36px;
        width: 11px;
    }
}

@media (max-width: 480px) {
    .services-sidebar {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border: 0;
        border-radius: 0;
    }

    .services-sidebar-brochure-title {
        font-size: 28px;
    }

    .services-sidebar-strategy-content {
        padding: 26px 22px;
    }

    .services-sidebar-strategy-title {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-sidebar,
    .services-sidebar-backdrop,
    .services-sidebar-links a,
    .services-sidebar-links a::before,
    .services-sidebar-links a::after,
    .services-sidebar-close,
    .services-sidebar-toggle,
    .services-sidebar-strategy-image {
        transition: none !important;
    }
}
