.reference-footer {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #071b2b !important;
    color: #f5f7f8 !important;
}

.reference-footer::before,
.reference-footer::after {
    display: none !important;
}

.reference-footer .footer-cta-zone {
    position: relative;
    z-index: 2;
    padding: 58px 20px 28px;
    background: #f4f6f7;
}

.reference-footer .footer-cta-zone::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -5%;
    bottom: -54px;
    width: 110%;
    height: 90px;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: #f4f6f7;
}

.footer-cta {
    display: flex;
    width: min(100%, 980px);
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px solid rgba(9, 30, 46, 0.05);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 13px 38px rgba(12, 31, 44, 0.13);
}

.footer-cta__copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 18px;
}

.footer-cta__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 50%;
    background: #071b2b;
    color: #f7bd16;
    font-size: 21px;
}

.footer-cta h2 {
    margin: 0 0 4px !important;
    color: #0b1e2d !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.footer-cta p {
    margin: 0 !important;
    color: #7a838a !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.footer-cta__button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 13px 25px;
    border-radius: 3px;
    background: #f7bd16;
    color: #0b1e2d !important;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.025em;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 9px 22px rgba(247, 189, 22, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-cta__button:hover,
.footer-cta__button:focus-visible {
    transform: translateY(-2px);
    background: #ffd13f;
    outline: none;
}

.reference-footer__main {
    position: relative;
    z-index: 1;
    padding: 118px 0 72px;
    background:
        linear-gradient(98deg, rgba(5, 24, 38, 0.98), rgba(5, 24, 38, 0.91)),
        url("../img/indexphoto2.jpg") center 58% / cover no-repeat;
}

.reference-footer__main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 28%, rgba(247, 189, 22, 0.09), transparent 28%),
        radial-gradient(circle at 88% 100%, rgba(247, 189, 22, 0.08), transparent 24%);
}

.reference-footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 40px), 1260px);
    grid-template-columns: 1.45fr 0.78fr 1fr 0.9fr 1.2fr;
    gap: 45px;
    align-items: start;
    margin: 0 auto;
}

.footer-brand__logo {
    display: block;
    width: 128px;
    height: 118px;
    margin: 0 0 18px;
    object-fit: contain;
    filter: drop-shadow(0 9px 22px rgba(0, 0, 0, 0.3));
}

.footer-brand h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 850 !important;
    line-height: 1.16 !important;
}

.footer-brand__tagline {
    margin: 7px 0 16px !important;
    color: rgba(255, 255, 255, 0.73) !important;
    font-size: 12px !important;
    font-weight: 650;
}

.footer-brand__rule,
.footer-column__rule {
    display: block;
    width: 34px;
    height: 2px;
    margin: 13px 0 16px;
    background: #f7bd16;
}

.footer-brand__description {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

.footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.footer-socials a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    border-color: #f7bd16;
    background: #f7bd16;
    color: #071b2b !important;
    outline: none;
}

.reference-footer__column h3 {
    margin: 41px 0 0 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

.reference-footer__column ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.reference-footer__column li {
    margin: 0 0 13px !important;
}

.reference-footer__column li:last-child { margin-bottom: 0 !important; }

.reference-footer__column li a,
.reference-footer__column li span {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.reference-footer__column li a::before {
    content: "›";
    color: #f7bd16;
    font-weight: 900;
}

.reference-footer__column li a:hover,
.reference-footer__column li a:focus-visible {
    color: #fff !important;
    transform: translateX(3px);
    outline: none;
}

.reference-footer__column--contact li a::before,
.reference-footer__column--contact li span::before {
    width: 18px;
    flex: 0 0 18px;
    color: #f7bd16;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.reference-footer__column--contact li:nth-child(1) a::before { content: "\f3c5"; }
.reference-footer__column--contact li:nth-child(2) a::before { content: "\f095"; }
.reference-footer__column--contact li:nth-child(3) a::before { content: "\f095"; }
.reference-footer__column--contact li:nth-child(4) a::before { content: "\f0e0"; }
.reference-footer__column--contact li:nth-child(5) a::before { content: "\f0ac"; }

.footer-location {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    margin-top: 19px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background:
        radial-gradient(circle at 70% 40%, rgba(247, 189, 22, 0.15), transparent 23%),
        rgba(255, 255, 255, 0.035);
    color: #f7bd16;
    font-size: 28px;
}

.reference-footer__bottom {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    min-height: 64px;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px max(20px, calc((100vw - 1260px) / 2)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #051621 !important;
    color: rgba(255, 255, 255, 0.58) !important;
    text-align: left !important;
}

.reference-footer__bottom p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.reference-footer .footer-to-top {
    display: grid !important;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.reference-footer .footer-to-top:hover,
.reference-footer .footer-to-top:focus-visible {
    border-color: #f7bd16;
    background: #f7bd16;
    color: #071b2b;
    outline: none;
}

.reference-footer .footer-to-top svg { width: 17px; height: 17px; }

@media (max-width: 1120px) {
    .reference-footer__grid {
        grid-template-columns: 1.35fr repeat(2, 1fr);
        gap: 38px 50px;
    }

    .footer-brand { grid-row: span 2; }
}

@media (max-width: 760px) {
    .reference-footer .footer-cta-zone { padding: 44px 16px 24px; }

    .footer-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .footer-cta__button { width: 100%; }

    .reference-footer__main { padding: 104px 0 58px; }

    .reference-footer__grid {
        width: min(calc(100% - 32px), 1260px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .footer-brand__logo { width: 112px; height: 105px; }
    .reference-footer__column h3 { margin-top: 0 !important; }
    .reference-footer__column--contact { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .footer-cta__copy { align-items: flex-start; }
    .footer-cta__icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 18px; }
    .footer-cta h2 { font-size: 15px !important; }

    .reference-footer__grid { grid-template-columns: 1fr; }
    .footer-brand,
    .reference-footer__column--contact { grid-column: 1; }
    .footer-brand__description { max-width: 360px; }

    .reference-footer__bottom { padding: 14px 16px !important; }
    .reference-footer__bottom p { max-width: 265px; font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta__button,
    .footer-socials a,
    .reference-footer__column li a {
        transition: none !important;
    }
}
