.footer {
    --footer-text: #f5f7fa;
    --footer-muted: #aab4c2;
    --footer-line: rgba(255, 255, 255, 0.12);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 0;
    color: var(--footer-text);
    background-image:
        radial-gradient(ellipse at 86% 0, rgba(44, 100, 157, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(8, 15, 28, 0.08), rgba(8, 15, 28, 0.22));
}

.footer-hero {
    position: relative;
    min-height: 385px;
    display: flex;
    align-items: center;
    background-color: #111827;
    background-image: var(--footer-hero-image);
    background-position: center 54%;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer-hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: flex-start;
}

.footer-hero__card {
    width: min(100%, 430px);
    padding: 27px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(5, 11, 20, 0.78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.footer .footer-brand-logo {
    display: inline-flex;
    margin-bottom: 20px;
}

.footer .footer-brand-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.footer-hero__card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
}

.footer-hero__card p {
    max-width: 34ch;
    margin: 0 0 21px;
    color: rgba(245, 247, 250, 0.76);
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer-hero__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid var(--primary-color, #db1d23);
    border-radius: 3px;
    background: var(--primary-color, #db1d23);
    color: #fff;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-hero__button:hover {
    transform: translateY(-2px);
    border-color: var(--hover-color, #cd380f);
    background: var(--hover-color, #cd380f);
    color: #fff;
}

.footer .inner-footer {
    padding: 55px 0 38px;
}

.footer .inner-footer > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.82fr));
    gap: 42px 58px;
    margin: 0;
}

.footer .inner-footer > .container > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.footer .inner-footer .footer-cl-1,
.footer .inner-footer .footer-cl-2,
.footer .inner-footer .footer-cl-3,
.footer .inner-footer .footer-cl-4 {
    margin: 0;
}

.footer .footer-section-title,
.footer .inner-footer .footer-cl-3 > .fw-7,
.footer .inner-footer .footer-cl-4 > .fw-7 {
    margin: 0 0 12px;
    color: var(--footer-text);
    font-family: var(--heading-font, inherit);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.5;
}

.footer .inner-footer .footer-cl-1 > p,
.footer .inner-footer .footer-cl-4 > p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.footer .inner-footer .footer-cl-1 > ul {
    display: grid;
    gap: 11px;
    margin: 21px 0 0;
    padding: 0;
    list-style: none;
}

.footer .inner-footer .footer-cl-1 > ul li {
    align-items: flex-start;
    margin: 0;
    color: var(--footer-muted);
    line-height: 1.65;
}

.footer .inner-footer .footer-cl-1 > ul li p,
.footer .inner-footer .footer-cl-1 > ul li a {
    margin: 0;
    color: inherit;
    overflow-wrap: anywhere;
}

.footer .inner-footer .footer-cl-1 > ul li a:hover {
    color: var(--footer-text);
}

.footer .inner-footer .row > [class*="col-"]:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 23px;
    border-top: 1px solid var(--footer-line);
}

.footer .inner-footer .row > [class*="col-"]:nth-child(4) > .footer-cl-4 {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(240px, 0.8fr);
    align-items: center;
    gap: 12px 36px;
}

.footer .inner-footer .footer-cl-4 > .fw-7 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.footer .inner-footer .footer-cl-4 > p {
    grid-column: 2;
    grid-row: 1;
}

.footer .footer-cl-4 .subscribe-form {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
}

.footer .footer-cl-4 .subscribe-form input {
    min-height: 44px;
    padding: 8px 4px;
    padding-inline-start: 30px;
    padding-inline-end: 36px;
    border: 0;
    border-bottom: 1px solid var(--footer-line);
    border-radius: 0;
    color: var(--footer-text);
}

.footer .footer-cl-4 .subscribe-form input:focus {
    border-bottom-color: var(--primary-color, #db1d23);
}

.footer .footer-cl-4 .subscribe-form input::placeholder,
.footer .footer-cl-4 .subscribe-form .icon-left,
.footer .footer-cl-4 .subscribe-form button .icon {
    color: var(--footer-muted);
}

.footer .footer-cl-4 .subscribe-form .icon-left {
    right: auto;
    left: auto;
    inset-inline-start: 0;
}

.footer .footer-cl-4 .subscribe-form button {
    padding: 8px 0;
}

.footer .footer-social {
    padding: 0 0 22px;
}

.footer .footer-social .content-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
}

.footer .footer-social .footer-logo {
    display: none;
}

.footer .footer-social .wd-social {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.footer .footer-social .wd-social > span {
    color: var(--footer-muted);
    font-size: 0.8rem;
}

.footer .footer-social .list-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .footer-social .box-icon.social {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    color: var(--footer-text);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer .footer-social .box-icon.social:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #db1d23);
    background-color: var(--primary-color, #db1d23);
    color: #fff;
}

.footer .bottom-footer {
    padding: 16px 0 19px;
    border-top: 1px solid var(--footer-line);
}

.footer .content-footer-bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.footer .content-footer-bottom .copyright {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
}

.footer .content-footer-bottom .menu-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .navigation-menu-footer {
    display: grid;
    gap: 10px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.footer .navigation-menu-footer li {
    margin: 0;
}

.footer .navigation-menu-footer li a,
.footer .menu-bottom a {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--footer-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    transition: color 180ms ease;
}

.footer .navigation-menu-footer li a::after {
    right: auto;
    left: 0;
    height: 1px;
    transition: width 180ms ease;
    background: var(--primary-color, #db1d23);
}

body[dir="rtl"] .footer .navigation-menu-footer li a::after {
    right: 0;
    left: auto;
}

.footer .navigation-menu-footer li a:hover,
.footer .navigation-menu-footer li a:focus-visible,
.footer .menu-bottom a:hover,
.footer .menu-bottom a:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--footer-text);
}

.footer .navigation-menu-footer li a:focus-visible {
    outline: 0;
}

.footer .navigation-menu-footer li a:hover::after,
.footer .navigation-menu-footer li a:focus-visible::after {
    right: auto;
    left: 0;
    width: 100%;
}

body[dir="rtl"] .footer .navigation-menu-footer li a:hover::after,
body[dir="rtl"] .footer .navigation-menu-footer li a:focus-visible::after {
    right: 0;
    left: auto;
}

.footer a:focus-visible {
    outline: 2px solid var(--primary-color, #db1d23);
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .footer-hero {
        min-height: 340px;
    }

    .footer .inner-footer > .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 32px;
    }

    .footer .inner-footer .row > [class*="col-"]:nth-child(4) > .footer-cl-4 {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 12px 24px;
    }

    .footer .footer-cl-4 .subscribe-form {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .footer .inner-footer .footer-cl-4 > p {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 575px) {
    .footer-hero {
        min-height: 315px;
        background-position: 54% center;
    }

    body[dir="rtl"] .footer-hero {
        background-position: 46% center;
    }

    .footer-hero__container {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .footer-hero__card {
        padding: 22px;
    }

    .footer .footer-brand-logo img {
        max-width: 138px;
        max-height: 38px;
    }

    .footer .inner-footer {
        padding: 36px 0 28px;
    }

    .footer .inner-footer > .container > .row {
        gap: 28px 20px;
    }

    .footer .inner-footer > .container > .row > :first-child,
    .footer .inner-footer .row > [class*="col-"]:nth-child(4) {
        grid-column: 1 / -1;
    }

    .footer .inner-footer .row > [class*="col-"]:nth-child(4) {
        display: grid;
        margin-top: 0;
        padding-top: 22px;
    }

    .footer .inner-footer .row > [class*="col-"]:nth-child(4) > .footer-cl-4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .footer .inner-footer .footer-cl-4 > .fw-7,
    .footer .inner-footer .footer-cl-4 > p,
    .footer .footer-cl-4 .subscribe-form {
        grid-column: 1;
        grid-row: auto;
    }

    .footer .footer-cl-4 .subscribe-form {
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer *,
    .footer *::before,
    .footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
