:root {
    --abm-ink: #20354a;
    --abm-ink-deep: #17283a;
    --abm-purple: #7d68b4;
    --abm-purple-dark: #66539d;
    --abm-text: #445464;
    --abm-muted: #7a8794;
    --abm-line: #dfe5eb;
    --abm-soft: #f7f9fb;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--abm-text);
    background: #fff;
    font-family: "Open Sans", sans-serif;
    line-height: 1.65;
}

/* Keep scroll reveals subtle and fast. The legacy template defaults to long
   slide/bounce transitions, which makes the page feel blocked on load. */
.wow {
    animation-timing-function: ease-out !important;
    animation-fill-mode: both !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.fables-transparent {
    padding: 0 !important;
    background: rgba(23, 40, 58, .92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

.fables-transparent .container,
.fables-transparent .row,
.fables-transparent .col-12 {
    min-height: 0;
}

.fables-transparent .navbar {
    min-height: 76px;
}

.fables-logo {
    width: 108px;
    height: auto;
}

.fables-nav .nav-link {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 27px 13px !important;
    margin: 0;
    transition: color .2s ease, background-color .2s ease;
}

.fables-nav .nav-link:hover,
.fables-nav .nav-link:focus {
    color: #d8cdf8 !important;
    background: rgba(255, 255, 255, .06);
}

.fables-header.index-traingle {
    min-height: 620px;
    height: auto;
    padding: 170px 0 100px;
    display: flex;
    align-items: center;
    background-position: center;
}

.fables-header.index-traingle::before {
    display: none;
}

.fables-header.overlay-lighter::after {
    background: linear-gradient(90deg, rgba(23, 40, 58, .9) 0%, rgba(23, 40, 58, .67) 48%, rgba(23, 40, 58, .45) 100%);
}

.fables-header .container,
.fables-header .row,
.fables-header .index-carousel {
    position: relative;
    z-index: 4;
}

.fables-header .index-carousel {
    margin-top: 0;
}

/* Keep the first hero copy available while Owl Carousel initializes. */
.fables-header .owl-carousel {
    display: block;
}

.fables-header h1 {
    color: #fff !important;
    font-size: clamp(2.15rem, 4vw, 4rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    max-width: 680px;
}

.fables-header h1 span {
    color: #d2c5f4 !important;
}

.fables-header-slider-details {
    color: rgba(255, 255, 255, .86) !important;
    font-size: 16px;
    max-width: 580px;
    line-height: 1.8;
}

.fables-header .btn {
    border-radius: 4px !important;
    padding: 11px 22px !important;
    font-size: 13px;
    font-weight: 700;
    background-color: var(--abm-purple) !important;
    border-color: var(--abm-purple) !important;
}

.fables-header .btn:hover {
    background-color: #fff !important;
    color: var(--abm-purple) !important;
}

#why,
#achievements,
#business {
    padding-top: 72px;
    padding-bottom: 72px;
}

#why {
    max-width: none;
    background: #f7f9fb;
}

#why > h2 {
    width: min(1180px, calc(100% - 30px));
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
}

#why > h2::after {
    margin-left: 0;
    margin-right: 0;
}

#why > h2,
#achievements h2,
#business > div > h2,
.fables-testimonial h2,
section > .container > .row h2 {
    color: var(--abm-ink) !important;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

#why > h2::after,
#achievements h2::after,
#business > div > h2::after,
.fables-testimonial h2::after,
section > .container > .row h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--abm-purple);
}

#why .row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: min(1180px, calc(100% - 30px));
    margin: 34px auto 0 !important;
    overflow: visible;
}

#why .row > div {
    grid-column: span 2;
    min-width: 0;
    width: auto;
    max-width: none;
    flex: none;
    margin-bottom: 0 !important;
    padding: 24px 24px 22px;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 53, 74, .05);
    text-align: left;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#why .row > div:nth-child(4) {
    grid-column: 2 / span 2;
}

#why .row > div:nth-child(5) {
    grid-column: 4 / span 2;
}

#why .row > div:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 104, 180, .52);
    box-shadow: 0 16px 30px rgba(32, 53, 74, .1);
}

#why .why-choice-item > div {
    align-items: center;
    min-height: 48px;
}

#why .why-choice-title {
    color: var(--abm-ink) !important;
    flex: 1 1 auto;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#why .why-choice-number {
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 7px !important;
    text-align: center;
    font-size: 12px;
    line-height: 24px;
    border-radius: 8px;
    background: var(--abm-purple) !important;
    flex: 0 0 38px;
    color: #fff;
}

#why svg {
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    color: var(--abm-purple);
    stroke-width: 1.5;
}

#why .why-choice-item > p,
#vision .card-body,
#achievements p,
#business p {
    color: var(--abm-text) !important;
    font-size: 14px;
    line-height: 1.75;
    margin: 18px 0 0;
    text-align: left !important;
}

#vision {
    background: var(--abm-soft) !important;
    padding: 80px 0 !important;
}

#vision .image-container img {
    min-height: 390px;
    object-fit: cover;
}

#vision .col-lg-6.bg-white {
    padding: 48px 52px !important;
}

#vision h2 {
    color: var(--abm-ink) !important;
    font-size: 27px;
    margin-bottom: 28px;
}

#vision .card-header {
    border-color: var(--abm-line) !important;
}

#vision .card-header button {
    color: var(--abm-ink) !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
}

#vision .fables-lus-icon {
    background: var(--abm-purple) !important;
}

#achievements {
    background: #fff;
}

#achievements .row.mt-4 {
    margin-top: 34px !important;
}

#achievements .fables-counter {
    border-right: 1px solid var(--abm-line);
    min-height: 108px;
}

#achievements .col-12:last-child .fables-counter {
    border-right: 0;
}

#achievements .font-40 {
    color: var(--abm-purple) !important;
    border: 0 !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
    justify-content: center;
    font-size: 36px;
}

#achievements h3 {
    color: var(--abm-text) !important;
    text-align: center;
    font-size: 13px;
    letter-spacing: .02em;
}

.fables-index-services {
    background-position: center;
}

.fables-index-services::after {
    background: rgba(23, 40, 58, .88);
}

.fables-index-services p,
.fables-index-services h2 {
    position: relative;
    z-index: 2;
}

.fables-sqr-rotation-services {
    top: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fables-sqr-rotation-services h2 {
    line-height: 1.2;
}

.fables-testimonial {
    background-color: var(--abm-ink-deep);
}

.fables-testimonial::after {
    background: rgba(23, 40, 58, .86);
}

.fables-testimonial h2 {
    color: #fff !important;
}

.fables-testimonial .card {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    box-shadow: none;
}

.fables-testimonial .fables-main-background-color {
    background: var(--abm-ink) !important;
}

.fables-testimonial .fables-second-text-color,
.fables-testimonial h3 {
    color: var(--abm-purple) !important;
}

.transaction-flow-section {
    min-height: 0;
    background-position: center;
    background-size: cover;
}

.transaction-flow-title {
    margin-bottom: 34px !important;
}

.transaction-flow-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    background: #a58be3;
}

.transaction-flow-diagram {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin: 0 auto 42px;
}

.transaction-flow-node {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    min-width: 0;
    flex: 1 1 0px;
    box-sizing: border-box;
    padding: 14px 24px 14px 32px;
    color: #fff;
    background: rgba(31, 55, 78, .86);
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .01em;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
    animation: transaction-flow-reveal .6s ease-out both;
}

.transaction-flow-node:first-child {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.transaction-flow-node:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
}

.transaction-flow-node:nth-of-type(odd) {
    background: #29465c;
}

.transaction-flow-node:nth-of-type(even) {
    background: linear-gradient(135deg, #8b63d4, #6246a7);
}

.transaction-flow-node > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
}

.transaction-flow-node .flow-node-index {
    flex-shrink: 0;
}

.transaction-flow-node:nth-of-type(1) { animation-delay: .05s; }
.transaction-flow-node:nth-of-type(2) { animation-delay: .15s; }
.transaction-flow-node:nth-of-type(3) { animation-delay: .25s; }
.transaction-flow-node:nth-of-type(4) { animation-delay: .35s; }
.transaction-flow-node:nth-of-type(5) { animation-delay: .45s; }

.transaction-flow-node--active {
    background: linear-gradient(135deg, #8b63d4, #6246a7);
    box-shadow: 0 0 0 4px rgba(125, 104, 180, .16), 0 10px 24px rgba(0, 0, 0, .18);
    animation-name: transaction-flow-active;
}

.flow-node-index {
    color: #d4c5f3;
    font-size: 11px;
    letter-spacing: .08em;
}

.transaction-flow-arrow {
    display: none;
}

.transaction-flow-support {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(420px, 1.8fr) minmax(170px, .8fr);
    gap: 20px;
    align-items: stretch;
}

.transaction-flow-panel {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(185, 202, 238, .72);
    border-radius: 10px;
    background: rgba(19, 38, 59, .82);
    color: #fff;
    animation: transaction-flow-reveal .7s ease-out .25s both;
}

.transaction-flow-panel--edge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.transaction-flow-panel--edge:nth-child(3) {
    animation-delay: .45s;
}

.transaction-flow-panel--edge img {
    width: 100%;
    max-height: 180px;
    margin: 0 auto 14px;
    object-fit: contain;
    border-radius: 6px;
}

.transaction-flow-panel--edge h3 {
    margin: 0;
    color: #fff !important;
    font-size: 19px;
    line-height: 1.25;
}

.transaction-flow-panel--core {
    padding: 28px;
    border-color: rgba(165, 139, 227, .92);
    background: rgba(16, 33, 53, .9);
}

.transaction-flow-core-label {
    width: max-content;
    margin: -44px auto 22px;
    padding: 7px 28px;
    border: 1px solid #c7a8ff;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b63d4, #6246a7);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
}

.transaction-flow-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.transaction-flow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-flow-list + .transaction-flow-list {
    padding-left: 24px;
    border-left: 1px solid rgba(199, 168, 255, .5);
}

.transaction-flow-list div {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(185, 202, 238, .68);
    border-radius: 7px;
    color: #fff;
    background: rgba(31, 55, 78, .7);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.transaction-flow-list div:hover {
    transform: translateY(-2px);
    border-color: #c7a8ff;
    background: rgba(125, 104, 180, .34);
}

@keyframes transaction-flow-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes transaction-flow-active {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes transaction-flow-arrow {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: .82; transform: translateX(0); }
}

.gallery-timeline .cd-timeline-content {
    border: 1px solid var(--abm-line);
    border-radius: 4px;
    box-shadow: none;
}

.gallery-timeline .cd-timeline-content::before {
    border-left-color: var(--abm-line) !important;
}

/* The timeline contains a leading .line span, so the first card is an
   :nth-child(even) element. Reset the inherited left border so each card has
   one connector triangle instead of two overlapping triangles. */
#cd-timeline.gallery-timeline .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    border-left: 0 !important;
    border-right: 25px solid var(--abm-line) !important;
}

.gallery-timeline .cd-timeline-img,
.gallery-timeline .line,
.gallery-timeline#cd-timeline::before {
    background-color: var(--abm-purple) !important;
}

.gallery-timeline .cd-timeline-content h2 a {
    color: var(--abm-purple) !important;
}

.partner-image {
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(12%);
    opacity: .86;
    transition: opacity .2s ease, filter .2s ease;
}

.partner-image:hover {
    filter: grayscale(0);
    opacity: 1;
}

.fables-footer-image {
    background-color: var(--abm-ink-deep);
}

.fables-footer-image::after {
    background: rgba(23, 40, 58, .92);
}

.fables-footer-image .container,
.fables-footer-image h2,
.fables-footer-image a,
.fables-footer-image span,
.fables-footer-image p {
    position: relative;
    z-index: 2;
}

.fables-footer-image h2 {
    font-size: 16px;
    letter-spacing: .03em;
}

.copyright {
    padding: 13px 15px !important;
    background: #132231 !important;
}

#scrollToTopBtn {
    background: var(--abm-purple) !important;
    border-radius: 4px;
    border: 0;
}

.abm-social-rail {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
}

@media (max-width: 767px) {
    .fables-transparent .navbar {
        min-height: 66px;
    }

    .fables-transparent .navbar-collapse {
        background: var(--abm-ink-deep);
        margin: 0 -15px;
        padding: 6px 15px 12px;
    }

    .fables-nav .nav-link {
        padding: 10px 4px !important;
    }

    .fables-header.index-traingle {
        min-height: 560px;
        padding: 120px 0 58px;
        background-position: 62% center;
    }

    .fables-header h1 {
        max-width: 340px;
        font-size: 2rem;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    .fables-header h1 span,
    .fables-header-slider-details {
        white-space: normal !important;
    }

    .fables-header h1 span {
        display: inline-block;
        max-width: 100%;
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .fables-header-slider-details {
        max-width: 340px;
        font-size: 14px;
    }

    #why,
    #achievements,
    #business {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    #why .row > div {
        grid-column: 1 / -1 !important;
        padding: 20px;
    }

    #why > h2 {
        width: calc(100% - 30px);
    }

    #why .row {
        display: grid;
        grid-template-columns: 1fr;
        width: calc(100% - 30px);
    }

    #vision {
        padding: 52px 15px !important;
    }

    #vision .image-container img {
        min-height: 240px;
    }

    #vision .col-lg-6.bg-white {
        padding: 32px 24px !important;
    }

    #achievements .fables-counter {
        border-right: 0;
        border-bottom: 1px solid var(--abm-line);
        padding: 16px 0;
    }

    #achievements .col-12:last-child .fables-counter {
        border-bottom: 0;
    }

    .fables-sqr-rotation-services {
        min-height: 120px;
    }

    .fables-index-services {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .fables-testimonial .w-100.position-relative {
        padding: 18px !important;
    }

    .transaction-flow-diagram {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 30px;
    }

    .transaction-flow-node {
        min-height: 56px;
        padding: 14px 18px;
        border: 1px solid rgba(185, 202, 238, .82);
        border-radius: 9px;
        clip-path: none;
    }

    .transaction-flow-node:first-child,
    .transaction-flow-node:last-child {
        clip-path: none;
    }

    .transaction-flow-arrow {
        display: block;
        justify-self: center;
        transform: rotate(90deg);
        font-size: 22px;
    }

    .transaction-flow-support {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .transaction-flow-panel--core {
        padding: 22px 16px;
    }

    .transaction-flow-core-label {
        margin-top: -38px;
    }

    .transaction-flow-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .transaction-flow-list + .transaction-flow-list {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid rgba(199, 168, 255, .5);
    }

    .abm-social-rail {
        top: auto;
        bottom: 72px;
        left: 10px;
        transform: none;
        padding: 6px !important;
        flex-direction: row !important;
        gap: 6px !important;
        background: transparent;
        box-shadow: none !important;
    }

    .fables-footer-image {
        padding: 44px 0 !important;
    }
}

/* Responsive content typography; scoped to avoid changing counters or icons. */
body {
    font-size: 16px;
}

#why > h2,
#vision h2,
#achievements h2,
#business > div > h2,
.transaction-flow-title,
section.bg-white > .container > .row h2 {
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

#why > h2::after {
    margin-left: 0;
    margin-right: 0;
}

#why .why-choice-title {
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
}

#why .why-choice-title > span:last-child {
    overflow-wrap: break-word;
}

#why .why-choice-item > div {
    gap: 12px;
}

#why .why-choice-item > p,
#vision .card-body p,
.fables-index-services p,
#business .cd-timeline-content p,
.fables-header-slider-details {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    text-align: left !important;
    overflow-wrap: break-word;
}

#business .cd-timeline-content h2,
#business .cd-timeline-content h2 a {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

#achievements > .row > div > p,
#achievements h3,
.copyright p {
    text-align: center !important;
}

#vision .card-header button {
    white-space: normal;
    text-overflow: clip;
    line-height: 1.5;
}

.transaction-flow-node,
.transaction-flow-list div {
    font-size: 14px;
    line-height: 1.5;
}

.fables-footer-image a,
.fables-footer-image p {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #why .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #why .row > div {
        grid-column: auto;
    }

    #why .row > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .fables-header h1 {
        max-width: 100%;
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.2;
        overflow-wrap: normal;
    }

    .fables-header h1 span {
        font-size: inherit;
        line-height: inherit;
    }

    .fables-header-slider-details {
        max-width: 100%;
    }

    #why .row,
    #why > h2 {
        width: 100%;
    }

    #why .why-choice-title {
        font-size: 16px;
        gap: 10px;
    }

    #why svg {
        width: 30px !important;
        height: 30px !important;
    }

    .fables-header .btn,
    .fables-nav .nav-link {
        font-size: 15px;
    }

    .transaction-flow-panel--edge h3 {
        font-size: 18px;
    }
}

/* Achievement values must override the generic paragraph size. */
#achievements .fables-counter .font-40 {
    align-items: baseline;
    gap: 2px;
    font-size: clamp(36px, 3.2vw, 48px);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

#achievements .fables-counter .fables-counter-value,
#achievements .fables-counter .font-40 > span {
    margin: 0;
    color: inherit !important;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
}

#achievements .fables-counter h3 {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

#achievements > .row > div > p {
    font-size: 16px;
}

/* Replace the oversized rotated service tile with a stable title column. */
#services {
    padding: 64px max(24px, calc((100% - 1140px) / 2));
    background: linear-gradient(rgba(23, 40, 58, .88), rgba(23, 40, 58, .88)), url('../images/index-services-bg.webp') center / cover;
}

#services > .row {
    align-items: center;
    margin: 0;
}

#services > .row > .col-lg-2 {
    flex: 0 0 25%;
    max-width: 25%;
}

#services > .row > .col-lg-10 {
    flex: 0 0 75%;
    max-width: 75%;
}

#services .fables-sqr-rotation-services,
#services .text-rotate {
    position: static;
    width: auto;
    height: auto !important;
    min-height: 0;
    margin: 0;
    transform: none;
    background: transparent !important;
    border: 0;
    justify-content: flex-start !important;
}

#services .fables-sqr-rotation-services::after,
#services .fables-index-services::after {
    display: none;
}

#services .text-rotate h2 {
    margin: 0 !important;
    text-align: left;
    font-size: 26px;
    line-height: 1.3;
}

#services .text-rotate h2 span {
    font-size: clamp(32px, 3vw, 42px);
}

#services .fables-index-services {
    margin: 0 !important;
    padding: 0 0 0 32px !important;
    background: none;
}

#services .fables-index-services .container {
    padding: 0;
}

#services .offset-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
}

#services .fables-index-services .row.mt-5 {
    margin: 28px 0 0 !important;
    row-gap: 20px;
}

#services .fables-index-services .col-sm-4 {
    margin-top: 0 !important;
    padding: 0 12px 0 0 !important;
}

#services .fables-index-services .col-sm-4 .row {
    margin: 0;
}

#services .fables-index-services .col-sm-4 h2 {
    font-size: 17px;
    line-height: 1.4;
}

#services svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
    color: #b8a4e4;
}

.transaction-flow-columns {
    align-items: stretch;
}

.transaction-flow-list {
    justify-content: center;
}

#partners {
    padding: 64px 0 !important;
}

#fables-partner-carousel {
    padding: 0 !important;
}

#partners .partner-item {
    height: 170px;
    padding: 16px;
}

#partners .owl-item .partner-image {
    width: 100%;
    max-width: 220px;
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    opacity: 1;
    filter: none;
}

#scrollToTopBtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    box-shadow: 0 6px 22px rgba(32, 53, 74, .25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, box-shadow .2s ease;
}

#scrollToTopBtn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(32, 53, 74, .35);
}

#scrollToTopBtn:focus-visible {
    outline: 3px solid #b8a4e4;
    outline-offset: 4px;
}

#scrollToTopBtn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    #services {
        padding: 40px 24px;
    }

    #services > .row > .col-lg-2,
    #services > .row > .col-lg-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #services .fables-index-services {
        padding: 24px 0 0 !important;
    }

    #services .fables-index-services .row.mt-5 {
        margin-top: 24px !important;
    }

    #partners .partner-item {
        height: 140px;
    }

    #scrollToTopBtn {
        width: 46px;
        height: 46px;
        right: 16px;
        bottom: 16px;
    }
}

/* Values: independent layout so template overlays and image transforms cannot
   obscure the accordion or create mismatched column heights. */
#vision.values-section {
    padding: 80px 0 !important;
    background: linear-gradient(rgba(32, 53, 74, .68), rgba(32, 53, 74, .68)), url('../images/choose-us-background.webp') center / cover !important;
    scroll-margin-top: 90px;
}

.values-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .64));
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 50px rgba(16, 33, 53, .15);
}

.values-photo {
    position: relative;
    min-width: 0;
    min-height: 440px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(125, 104, 180, .2);
}

.values-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.values-content {
    min-width: 0;
    width: 100%;
    padding: 24px 8px 24px 40px;
}

#vision #values-title {
    margin: 0 0 28px;
    text-align: center;
}

#values-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin: 16px auto 0;
    background: var(--abm-purple);
}

.values-item {
    position: relative;
    width: 100%;
    margin-top: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 16px rgba(32, 53, 74, .04);
    border-radius: 12px;
}

.values-item h3 {
    margin: 0;
    font-size: inherit;
}

.values-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 66px;
    padding: 18px 22px;
    border: 0;
    background: transparent;
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    color: var(--abm-ink);
    font: 700 17px/1.4 'Open Sans', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.values-toggle[aria-expanded='true'],
.values-toggle:hover {
    background: rgba(255, 255, 255, .48);
    color: var(--abm-purple-dark);
}

.values-toggle:focus {
    outline: none;
    box-shadow: none;
}

.values-toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--abm-purple);
}

.values-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.values-toggle svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--abm-purple);
}

.values-chevron {
    transition: transform .2s ease;
}

.values-toggle[aria-expanded='true'] .values-chevron {
    transform: rotate(180deg);
}

.values-body {
    display: grid;
    gap: 20px;
    padding: 22px;
}

.values-point {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.values-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2eef9;
    color: var(--abm-purple-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

#vision .values-point p {
    margin: 0;
    color: var(--abm-text);
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .values-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .values-content {
        padding: 0;
    }

    .values-photo img {
        position: static;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 340px;
    }

    .values-photo {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    #vision.values-section {
        padding: 44px 8px !important;
    }

    .values-toggle {
        padding: 16px;
        font-size: 16px;
    }

    .values-layout {
        padding: 16px;
        border-radius: 16px;
    }

    .values-body {
        padding: 18px 16px;
    }

    .values-point {
        gap: 10px;
    }
}

.values-accordion {
    width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    .values-accordion {
        height: var(--values-accordion-height, auto);
        overflow: clip;
    }
}
