.footer {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: url("../images/footer.png") center center / cover no-repeat;
    color: #ffffff;
    padding: 14px 0 0;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.55;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}


/* Brand */
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo {
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-texts {
    padding-top: 39px;
}

.footer-brand-subtitle {
    margin: 0 0 2px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
}

.footer-brand-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.22;
    color: #ffffff;
}

/* Link columns */
.footer-links-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.18fr 1.08fr 1.08fr max-content;
    column-gap: 38px;
    margin-bottom: 34px;
    padding-left: 18px;
    padding-right: 0;
    box-sizing: border-box;
}

.footer-column {
    min-width: 0;
    justify-self: start;
}

.footer-column:last-child {
    justify-self: start;
}

.footer-column-title {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-bottom: 5px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #d8f1ff;
}

/* Contact row */
.footer-middle {
    width: 100%;
    display: grid;
    grid-template-columns: 1.18fr 1.08fr 1.08fr max-content;
    column-gap: 38px;
    margin-bottom: 18px;
    padding-left: 18px;
    padding-right: 0;
    box-sizing: border-box;
}

.footer-contact-box {
    position: relative;
    min-width: 0;
    justify-self: start;
}

.footer-contact-box:last-child {
    justify-self: start;
}

.footer-contact-icon {
    position: absolute;
    left: -38px;
    top: 17px;
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
}

.footer-contact-content h5 {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.footer-contact-content p {
    margin: 0 0 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.92);
}

.footer-hotline-box {
    padding-left: 0;
    margin-right: 20px;
}

.footer-hotline-content h5 {
    margin-bottom: 8px;
}

.footer-hotline-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    margin-left: 15px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
}

.footer-hotline-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Sosial şəbəkələr */
.footer-social-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 10px;
    padding-right: 8px;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.footer-socials a {
    width: auto;
    height: auto;
    border-radius: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.footer-socials a:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.footer-copyright {
    margin: 0;
    max-width: 620px;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-bottom-links a,
.footer-bottom-links span {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom-links a:hover {
    color: #d8f1ff;
}

.footer-last-update {
    text-align: right;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.86);
}

/* Footer alt qısa keçidlər */
.footer-shortcuts {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e6e9ee;
    border-bottom: 1px solid #e6e9ee;
    overflow: hidden;
}

.footer-shortcuts-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
    min-height: 44px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.footer-shortcuts-grid {
    width: min(50%, 760px);
    min-width: 680px;
    margin-left: auto;
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr 1.45fr 1.3fr 0.85fr 0.72fr 0.72fr;
    box-sizing: border-box;
}

.footer-shortcut-item {
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-left: 1px solid #e6e9ee;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    text-decoration: none;
    color: #173f67;
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.footer-shortcut-item:first-child {
    border-left: none;
}

.footer-shortcut-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-shortcut-item span {
    min-width: 0;
    color: #173f67;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.footer-shortcut-item:hover {
    background: #f6f8fa;
    color: #173f67;
}

.footer-shortcut-danger:hover {
    background: #fff5f5;
}

.footer-shortcut-icon-only {
    padding-left: 0;
    padding-right: 0;
}

/* Popup */
.footer-warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.footer-warning-overlay[hidden] {
    display: none;
}

.footer-warning-popup {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 20px 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
    animation: footerPopupFade 0.22s ease;
}

@keyframes footerPopupFade {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-warning-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f2f4f6;
    color: #475569;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.footer-warning-close:hover {
    background: #e7ebef;
    color: #1f2937;
}

.footer-warning-popup h2 {
    margin: 0 0 8px;
    padding-right: 34px;
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.22;
    color: #3c3c3c;
}

.footer-warning-text {
    margin: 0 0 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a4a4a;
}

.footer-warning-text strong {
    font-weight: 800;
    color: #343434;
}

.footer-warning-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-warning-contact-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: flex-start;
}

.footer-warning-contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    margin-top: 2px;
}

.footer-warning-contact-item h3 {
    margin: 0 0 5px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: #185a78;
}

.footer-warning-contact-item p {
    margin: 0 0 2px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #4a4a4a;
}

/* 1320px */
@media (max-width: 1320px) {
    .footer-container,
    .footer-shortcuts-container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* 1200px */
@media (max-width: 1200px) {
    .footer-links-grid,
    .footer-middle {
        grid-template-columns: 1.18fr 1.08fr 1.08fr max-content;
        column-gap: 32px;
        padding-left: 18px;
    }

    .footer-contact-icon {
        left: -28px;
    }

    .footer-shortcuts-grid {
        width: min(55%, 720px);
        min-width: 650px;
        grid-template-columns: 1fr 1.4fr 1.25fr 0.85fr 0.72fr 0.72fr;
    }

    .footer-shortcut-item {
        font-size: 11px;
        padding: 0 7px;
    }
}

/* 992px - TABLET CENTER FIX */
@media (max-width: 992px) {
    .footer {
        padding-top: 18px;
    }

    .footer-container,
    .footer-shortcuts-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 24px;
        gap: 8px;
    }

    .footer-brand-texts {
        padding-top: 0;
        text-align: center;
    }

    .footer-brand-title {
        max-width: 100%;
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 24px;
        padding-left: 0;
        margin-bottom: 30px;
        text-align: center;
        justify-items: center;
    }

    .footer-column,
    .footer-column:last-child {
        width: 100%;
        max-width: 260px;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column-title {
        text-align: center;
    }

    .footer-column a {
        width: auto;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-middle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 24px;
        padding-left: 0;
        margin-bottom: 18px;
        text-align: center;
        justify-items: center;
    }

    .footer-contact-box,
    .footer-contact-box:last-child {
        width: 100%;
        max-width: 280px;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-right: 0;
        padding-left: 0;
    }

    .footer-contact-icon {
        position: static;
        width: 16px;
        height: 16px;
        margin: 0 0 6px;
    }

    .footer-contact-content {
        width: 100%;
        text-align: center;
    }

    .footer-contact-content h5,
    .footer-contact-content p {
        text-align: center;
    }

    .footer-hotline-row {
        justify-content: center;
    }

    .footer-social-row {
        justify-content: center;
        padding-right: 0;
        margin: 4px 0 12px;
    }

    .footer-socials {
        justify-content: center;
        gap: 12px;
    }

    .footer-social-icon {
        width: 30px;
        height: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .footer-copyright {
        max-width: 100%;
        text-align: center;
    }

    .footer-bottom-right {
        align-items: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        text-align: center;
    }

    .footer-last-update {
        text-align: center;
    }

    .footer-shortcuts-container {
        width: 100%;
        min-height: auto;
        justify-content: stretch;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-shortcuts-grid {
        width: 100%;
        min-width: 0;
        min-height: auto;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .footer-shortcut-item {
        min-height: 42px;
        border-left: 1px solid #e6e9ee;
        border-bottom: none;
        font-size: 10.5px;
        gap: 5px;
        padding: 0 6px;
    }

    .footer-shortcut-item:first-child {
        border-left: none;
    }

    .footer-shortcut-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 768px */
@media (max-width: 768px) {
    .footer {
        padding: 18px 0 0;
    }

    .footer-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-logo {
        width: 54px;
        height: 54px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
        margin-bottom: 28px;
        padding-left: 0;
        text-align: center;
        justify-items: center;
    }

    .footer-column,
    .footer-column:last-child {
        width: 100%;
        max-width: 300px;
        justify-self: center;
        align-items: center;
        text-align: center;
    }

    .footer-column-title {
        font-size: 13.5px;
        margin-bottom: 8px;
    }

    .footer-column a {
        width: auto;
        text-align: center;
        margin-bottom: 5px;
        font-size: 11.5px;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        row-gap: 22px;
        margin-bottom: 18px;
        padding-left: 0;
        text-align: center;
        justify-items: center;
    }

    .footer-contact-box,
    .footer-contact-box:last-child {
        width: 100%;
        max-width: 320px;
        align-items: center;
        text-align: center;
        justify-self: center;
    }

    .footer-contact-content h5 {
        margin-bottom: 7px;
    }

    .footer-contact-content p {
        margin-bottom: 3px;
    }

    .footer-hotline-box {
        align-items: center;
        margin-right: 0;
    }

    .footer-hotline-row {
        justify-content: center;
    }

    .footer-social-row {
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-socials {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .footer-social-icon {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
        gap: 7px;
        padding: 8px 0;
    }

    .footer-bottom-right {
        align-items: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .footer-last-update {
        text-align: center;
    }

    .footer-shortcuts-container {
        width: 100%;
    }

    .footer-shortcuts-grid {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-shortcut-item {
        min-height: 44px;
        border-left: 1px solid #e6e9ee;
        border-bottom: 1px solid #e6e9ee;
        font-size: 11px;
        padding: 0 8px;
    }

    .footer-shortcut-item:nth-child(3n + 1) {
        border-left: none;
    }

    .footer-shortcut-item:nth-child(n + 4) {
        border-bottom: none;
    }

    .footer-shortcut-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-warning-overlay {
        padding: 14px;
        align-items: center;
    }

    .footer-warning-popup {
        width: min(100%, 500px);
        padding: 18px 16px 18px;
        max-height: calc(100vh - 28px);
    }

    .footer-warning-popup h2 {
        font-size: 20px;
    }

    .footer-warning-text {
        font-size: 13px;
    }

    .footer-warning-contact-item h3 {
        font-size: 14px;
    }

    .footer-warning-contact-item p {
        font-size: 12.5px;
    }
}

/* 576px */
@media (max-width: 576px) {
    .footer-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-links-grid {
        row-gap: 18px;
        margin-bottom: 24px;
    }

    .footer-middle {
        row-gap: 20px;
        margin-bottom: 16px;
    }

    .footer-shortcuts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-shortcut-item {
        min-height: 42px;
        justify-content: center;
        gap: 7px;
        font-size: 11px;
        border-left: 1px solid #e6e9ee;
        border-bottom: 1px solid #e6e9ee;
    }

    .footer-shortcut-item:nth-child(3n + 1) {
        border-left: 1px solid #e6e9ee;
    }

    .footer-shortcut-item:nth-child(odd) {
        border-left: none;
    }

    .footer-shortcut-item:nth-child(n + 4) {
        border-bottom: 1px solid #e6e9ee;
    }

    .footer-shortcut-item:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .footer-socials {
        gap: 9px;
    }

    .footer-social-icon {
        width: 27px;
        height: 27px;
    }
}

/* 390px */
@media (max-width: 390px) {
    .footer {
        padding-top: 16px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-brand-subtitle {
        font-size: 12px;
    }

    .footer-brand-title {
        font-size: 12.5px;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-social-icon {
        width: 26px;
        height: 26px;
    }

    .footer-shortcut-item {
        min-height: 40px;
        gap: 6px;
        font-size: 10.5px;
        padding: 0 7px;
    }

    .footer-shortcut-icon {
        width: 14px;
        height: 14px;
    }

    .footer-bottom-links {
        gap: 5px;
    }
}

/* 340px */
@media (max-width: 340px) {
    .footer-shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .footer-shortcut-item,
    .footer-shortcut-item:nth-child(odd),
    .footer-shortcut-item:nth-child(3n + 1),
    .footer-shortcut-item:nth-last-child(-n + 2) {
        border-left: none;
        border-bottom: 1px solid #e6e9ee;
    }

    .footer-shortcut-item:last-child {
        border-bottom: none;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-social-icon {
        width: 25px;
        height: 25px;
    }
}
