﻿

.flat-icon {
    border-radius: 2rem;
    display: flex;
    width: 5rem;
    height: 5rem;
    justify-content: center;
    align-items: center;
}

    .flat-icon img {
        width: 4.5rem;
        height: 4.5rem;
    }


.footer-cert-badges {
    margin-top: 40px;
    margin-bottom: 24px;
    margin-inline: 20px;
}

.cert-title-wrapper {
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
}

.cert-line {
    flex: 1;
    height: 1px;
    background-color: var(--light-clr-3);
    max-width: 260px;
}

.cert-title-inner {
    gap: 8px;
    white-space: nowrap;
    color: var(--light-clr-9);
    font-weight: 500;
}

    .cert-title-inner i {
        width: 20px;
        height: 20px;
        background-image: var(--shield-tick-40);
    }

.cert-items-wrapper {
    margin-top: 16px;
    gap: 48px;
    flex-wrap: nowrap;
    justify-content: center;
}

.main-footer .footer-desc-sec p {
    color: var(--light-clr-9);
    line-height: 28px;
}

.footer-legal-links {
    gap: 10px;
}

    .footer-legal-links a {
        color: var(--light-clr-10);
    }

.main-footer .flex-j-center.vertical-stretch {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.main-footer .footer-sec {
    flex: 1;
    min-width: 0;
}

.developed-with-link {
    color: var(--light-clr-9);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
}

    .developed-with-link b {
        font-weight: 700;
    }

.developed-with-desktop {
    display: block;
    margin-top: 12px;
}

.developed-with-mobile {
    display: none;
}



@media screen and (max-width: 990px) {
    .main-footer .flex-j-center.vertical-stretch {
        flex-wrap: wrap;
    }

    .main-footer .footer-sec {
        flex: unset;
        width: 100%;
    }

    .cert-items-wrapper {
        flex-wrap: wrap;
        gap: 24px;
    }

    .cert-line {
        display: none;
    }

    .footer-cert-badges .cert-title-wrapper {
        justify-content: center;
    }

    .developed-with-desktop {
        display: none;
    }

    .developed-with-mobile {
        display: block;
        text-align: center;
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .developed-with-link {
        font-size: 13px;
        padding: 6px 16px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

        .developed-with-link:hover {
            background-color: rgba(255, 0, 0, 0.05);
            border-color: rgba(255, 0, 0, 0.2);
        }
}


@media screen and (max-width:576px) {

    .footer-cert-badges {
        margin: 10px 10px 16px;
    }

    .cert-items-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

        .cert-items-wrapper .flat-item {
            width: calc(25% - 4px);
            max-width: 120px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
            padding: 0;
            flex: none;
        }

    .flat-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .flat-icon img {
            width: 48px;
            height: 48px;
        }

    .flat-item {
        position: relative;
        cursor: pointer;
    }

        .flat-item > span:last-child {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            border-radius: 10px;
            padding: 8px 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,.15);
            opacity: 0;
            visibility: hidden;
            transition: .2s;
            white-space: nowrap;
            z-index: 20;
            min-width: 120px;
            text-align: center;
            pointer-events: none;
        }

            .flat-item > span:last-child::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                border: 6px solid transparent;
                border-top-color: #fff;
            }

            .flat-item > span:last-child h3 {
                margin: 0;
                font-size: 13px;
                color: #333;
            }

            .flat-item > span:last-child p {
                margin: 4px 0 0;
                font-size: 11px;
                color: #666;
            }

        .flat-item:active > span:last-child,
        .flat-item:focus > span:last-child,
        .flat-item:focus-within > span:last-child {
            opacity: 1;
            visibility: visible;
        }

        .flat-item:focus > span:last-child {
            opacity: 1;
            visibility: visible;
        }

        .flat-item.touched > span:last-child {
            opacity: 1;
            visibility: visible;
        }

    .copyright-text {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .developed-with-mobile {
        margin-top: 20px;
        margin-bottom: 4px;
    }

    .developed-with-link {
        font-size: 12px;
        padding: 4px 12px;
    }
}


@media screen and (max-width:400px) {

    .cert-items-wrapper {
        gap: 18px;
    }

    .flat-icon {
        width: 4rem;
        height: 4rem;
    }

        .flat-icon img {
            width: 3.6rem;
            height: 3.6rem;
        }

    .flat-item > span:last-child {
        white-space: normal;
        width: 150px;
    }
}

.copyright-text {
    margin-bottom: 0;
}
