/* RESET */
.ftx-footer,
.ftx-footer * {
    box-sizing: border-box;
}

/* FOOTER BASE */
.ftx-footer {
    margin-top: 40px;
    background: #111111;
    color: #ffffff;
    border-top: 1px solid rgba(255, 102, 0, 0.20);
}

/* BRAND LINE */
.ftx-footer::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #cc0000 0%, #ff6600 100%);
}

/* LAYOUT */
.ftx-footer__top {
    padding: 56px 0 32px;
}

.ftx-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ftx-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* CARDS */
.ftx-footer__section {
    background: #1a1a1a;
    border: 1px solid rgba(255, 102, 0, 0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
}

.ftx-footer__section:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 0, 0.30);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

/* HEADERS */
.ftx-footer__toggle {
    width: 100%;
    padding: 20px 22px 16px;
    background: none;
    border: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: default;
}

/* CONTENT */
.ftx-footer__content {
    padding: 0 22px 22px;
}

/* LOGO */
.ftx-footer__logo {
    margin-bottom: 14px;
}

.ftx-footer__logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* TITLE */
.ftx-footer__title-main {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

/* LIST */
.ftx-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ftx-footer__list li {
    margin-bottom: 12px;
    color: #e7e7e7;
    font-size: 15px;
    line-height: 1.6;
}

.ftx-footer__list li:last-child {
    margin-bottom: 0;
}

/* LINKS */
.ftx-footer__link {
    color: #ff7a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ftx-footer__link:hover,
.ftx-footer__link:focus {
    color: #ffffff;
}

/* CONTACT ITEMS */
.ftx-footer__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ftx-footer__item-icon {
    margin-top: 2px;
    color: #ff6600;
    flex: 0 0 auto;
}

.ftx-footer__item-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.ftx-footer__item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ftx-footer__contact-link {
    display: inline-block;
    line-height: 1.5;
}

/* ACCORDION ICON */
.ftx-footer__icon {
    display: none;
    width: 12px;
    height: 12px;
    position: relative;
    flex: 0 0 12px;
}

.ftx-footer__icon::before,
.ftx-footer__icon::after {
    content: "";
    position: absolute;
    background: #ff6600;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ftx-footer__icon::before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

.ftx-footer__icon::after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

.ftx-footer__section.is-open .ftx-footer__icon::after {
    opacity: 0;
    transform: scaleY(0);
}

/* BOTTOM AREA */
.ftx-footer__compliance {
    padding: 28px 0 38px;
    border-top: 1px solid rgba(255, 102, 0, 0.14);
}

/* PARTNERS ROW DESKTOP */
.ftx-footer__partners {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.ftx-footer__partners > * {
    flex: 0 0 auto;
}

.ftx-footer__partners a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ftx-footer__partners::-webkit-scrollbar {
    height: 6px;
}

.ftx-footer__partners::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.45);
    border-radius: 10px;
}

/* NORMAL LOGOS */
.ftx-footer__partners img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

/* HOVER */
.ftx-footer__partners a:hover img,
.ftx-footer__partners a:focus img {
    transform: scale(1.03);
}

/* ANPC / SOL */
.ftx-footer__partner-item img {
    height: 56px;
}

/* TABLET */
@media (max-width: 1024px) {
    .ftx-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .ftx-footer {
        margin-top: 30px;
    }

    .ftx-footer__top {
        padding: 32px 0 20px;
    }

    .ftx-footer__container {
        padding: 0 16px;
    }

    .ftx-footer__grid {
        gap: 14px;
    }

    .ftx-footer__toggle {
        cursor: pointer;
        font-size: 14px;
    }

    .ftx-footer__icon {
        display: block;
    }

    .ftx-footer__logo img {
        max-width: 150px;
    }

    /* LOGOS ON MOBILE: 2 PE RAND */
    .ftx-footer__partners {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        overflow: visible;
        padding-bottom: 0;
    }

    .ftx-footer__partners > * {
        min-width: 0;
        width: 100%;
    }

    .ftx-footer__partners a {
        width: 100%;
    }

    /* PE MOBILE MAI MARE: 3 PE RAND */
    @media (min-width: 480px) {
        .ftx-footer__partners {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .ftx-footer__partners img {
        height: 36px;
        max-width: 100%;
        margin: 0 auto;
    }

    .ftx-footer__partner-item img {
        height: 44px;
    }
}