/* Shared footer polish for the Simple tool, calculator and writer pages. */

footer[role="contentinfo"],
.footer_new,
.main_fpt {
    --footer-border: rgba(148, 163, 184, .24);
    --footer-muted: #64748b;
    --footer-surface: rgba(255, 255, 255, .72);
}

/* The classic tool footer: three compact columns, matching the HeyCal layout. */
.footer_new {
    margin-top: clamp(2.75rem, 7vw, 5.5rem);
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--footer-border);
}

.footer_new .footer_container {
    width: 100%;
}

.footer_new .footer_container > div.other {
    display: grid !important;
    grid-template-columns: minmax(190px, .8fr) minmax(260px, 1fr) minmax(300px, 1.5fr);
    align-items: start;
    gap: 2rem;
}

.footer_new .copyright {
    min-width: 0;
    padding-top: .15rem;
}

.footer_new .copyright .info {
    margin: 0;
    line-height: 1.6;
}

.footer_new .footer-group-label {
    margin: 0 0 .65rem;
    color: var(--text-light, #94a3b8);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer_new .footer-primary-nav,
.footer_new .footer-network {
    min-width: 0;
}

.footer_new .footer-primary-nav .menu_list,
.footer_new .footer_container > div.other > .menu_list:not([style]) {
    display: flex !important;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_new .footer-network > .menu_list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_new .footer-network .menu_body {
    min-width: 0;
}

.footer_new .footer-network .menu_body a {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer_new .footer-primary-nav .menu_body a,
.footer_new .footer-network .menu_body a,
.footer_new .footer_container > div.other > .menu_list:not([style]) .menu_body a,
.footer_new .footer_container > .menu_list .menu_body a {
    display: inline-flex;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    padding: .42rem .68rem;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: var(--footer-surface);
    color: inherit;
    font-size: .82rem;
    line-height: 1.3;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.footer_new .footer-primary-nav .menu_body a:hover,
.footer_new .footer-network .menu_body a:hover,
.footer_new .footer_container > div.other > .menu_list:not([style]) .menu_body a:hover,
.footer_new .footer_container > .menu_list .menu_body a:hover {
    transform: translateY(-1px);
    border-color: currentColor;
    background: rgba(148, 163, 184, .12);
    text-decoration: none;
}

.footer_new .footer-primary-nav .menu_body a:focus-visible,
.footer_new .footer-network .menu_body a:focus-visible,
.footer_new .menu_body a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

.footer_new .footer_container > div.other > .menu_list[style],
.footer_new .footer_container > .menu_list[style] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.footer_new details.footer-network {
    display: block !important;
    margin-top: .25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-border);
}

.footer_new details.footer-network summary {
    cursor: pointer;
    color: inherit;
    font-weight: 700;
}

.footer_new details.footer-network .menu_list[style] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem !important;
    margin: 1rem 0 0 !important;
    padding: 0 !important;
}

.footer_new .footer-inline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .7rem;
}

.footer_new .footer-inline-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: .38rem .62rem;
    border: 1px solid var(--footer-border);
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.footer_new .footer-inline-nav a:hover {
    background: rgba(148, 163, 184, .1);
    text-decoration: none;
}

.footer_new .footer-inline-nav a:focus-visible {
    outline-offset: 2px;
}

.footer_new .footer-inline-nav a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
}

/* Calculator footer: keep the compact three-column layout close to the content. */
.calculator-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}

.calculator-footer .calculator-footer-description {
    max-width: 290px;
    margin-top: .5rem;
    color: var(--footer-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.calculator-footer-disclaimer {
    margin-top: .9rem;
    padding-top: .7rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
    font-size: .72rem;
    line-height: 1.5;
}

.calculator-footer-disclaimer summary {
    cursor: pointer;
    font-weight: 600;
}

.calculator-footer-disclaimer p {
    margin: .45rem 0 0;
}

/* AI tool footers use the same rhythm while preserving each product's color. */
footer[role="contentinfo"] .footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(auto-fit, minmax(155px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

footer[role="contentinfo"] .footer-column {
    min-width: 0;
}

footer[role="contentinfo"] .footer-links {
    display: grid;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer[role="contentinfo"] .footer-links a {
    display: block;
    min-height: 36px;
    padding: .45rem .6rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: inherit;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

footer[role="contentinfo"] .footer-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, .28);
    background: rgba(148, 163, 184, .1);
    text-decoration: none;
}

footer[role="contentinfo"] .footer-links a:focus-visible,
footer[role="contentinfo"] .footer-bottom a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

footer[role="contentinfo"] .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

footer[role="contentinfo"] .footer-bottom p {
    margin: 0;
    line-height: 1.55;
}

/* Calculator: convert the old pipe-separated footer into readable clusters. */
#footer {
    margin-top: clamp(2.75rem, 7vw, 5.5rem);
    border-top: 1px solid #e5e7eb;
}

#footer #footerin {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 1.5rem;
}

#footer #footernav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    text-align: center;
}

#footer #footernav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: .35rem .62rem;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

#footer #footernav a:hover {
    background: #f8fafc;
    text-decoration: none;
}

#footer #footernav a:focus-visible,
#footer .copyright a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

#footer .trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.25rem;
}

#footer .trust-badges > span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
}

#footer .disclaimer {
    max-width: 900px;
    margin: 1.5rem auto 0 !important;
    padding: 1rem 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    color: #64748b !important;
    line-height: 1.65;
}

#footer .disclaimer p {
    margin: .35rem 0 !important;
}

#footer .copyright {
    margin-top: 1.5rem;
}

#footer .copyright .menu_list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#footer .copyright .menu_list a {
    display: block;
    padding: .45rem .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

/* Writer footer: links become a small, scannable navigation group. */
.main_fpt.site-footer-unified {
    display: block;
    margin-top: clamp(2.75rem, 7vw, 5.5rem);
    padding: clamp(1.75rem, 4vw, 2.75rem) 1rem 1.5rem !important;
    border-top: 1px solid var(--footer-border);
}

.main_fpt.site-footer-unified .footer_links {
    max-width: 1200px;
    margin: 0 auto !important;
    color: inherit;
}

.main_fpt.site-footer-unified .footer-copy {
    margin: 0 0 .75rem !important;
}

.main_fpt.site-footer-unified .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.main_fpt.site-footer-unified .footer-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: .42rem .68rem;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.main_fpt.site-footer-unified .footer-nav-label {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: .42rem .68rem;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
}

.main_fpt.site-footer-unified .footer-nav a:hover {
    background: rgba(148, 163, 184, .1);
    text-decoration: none;
}

.main_fpt.site-footer-unified .footer-nav a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

.main_fpt.site-footer-unified .footer-disclaimer,
.main_fpt.site-footer-unified .footer-description {
    max-width: 900px;
    margin-right: auto !important;
    margin-left: auto !important;
    line-height: 1.65;
}

@media (max-width: 820px) {
    .footer_new .footer_container > div.other {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer_new .footer_container > div.other > .copyright,
    .footer_new .footer_container > div.other > .footer-primary-nav,
    .footer_new .footer_container > div.other > .footer-network {
        grid-column: auto;
    }

    .footer_new .footer_container > div.other > .copyright {
        grid-column: 1 / -1;
    }

    .footer_new .footer_container > div.other > .menu_list[style],
    .footer_new .footer_container > .menu_list[style],
    .footer_new details.footer-network .menu_list[style],
    .footer_new .footer-network > .menu_list,
    #footer .copyright .menu_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .footer_new .footer_container > div.other,
    footer[role="contentinfo"] .footer-content {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .footer_new .footer_container > div.other > .copyright,
    .footer_new .footer_container > div.other > .footer-primary-nav,
    .footer_new .footer_container > div.other > .footer-network {
        grid-column: 1;
    }

    .footer_new .footer_container > div.other > .menu_list[style],
    .footer_new .footer_container > .menu_list[style],
    .footer_new details.footer-network .menu_list[style],
    .footer_new .footer-network > .menu_list,
    #footer .copyright .menu_list {
        grid-template-columns: 1fr;
    }

    #footer #footernav {
        justify-content: flex-start;
    }

    #footer #footernav a {
        flex: 1 1 auto;
        justify-content: center;
    }

    #footer .trust-badges {
        justify-content: flex-start;
    }

    #footer .trust-badges > span {
        flex: 1 1 calc(50% - .55rem);
        justify-content: center;
    }

    .main_fpt.site-footer-unified .footer-nav {
        justify-content: flex-start;
    }

    .main_fpt.site-footer-unified .footer-nav a {
        flex: 1 1 calc(50% - .5rem);
        justify-content: center;
    }

    .main_fpt.site-footer-unified .footer-nav-label {
        flex: 1 1 calc(50% - .5rem);
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer_new a,
    footer[role="contentinfo"] a,
    #footer a,
    .main_fpt.site-footer-unified a {
        transition: none;
    }
}

/* Footer language menus open upward so they never push content below the
   viewport or get clipped by the page bottom. */
footer .lang {
    position: relative;
    z-index: 20;
}

footer .lang .sub_menu {
    top: auto !important;
    right: 0 !important;
    /* Keep a tiny overlap so the pointer never crosses a hover-breaking gap. */
    bottom: calc(100% - 1px);
    left: auto !important;
    width: min(220px, calc(100vw - 2rem));
    max-height: min(70vh, 520px);
    margin: 0 !important;
    overflow-y: auto;
    transform: translateY(0);
}

footer .lang .sub_menu .frame {
    max-height: inherit;
    overflow-y: auto;
}

/* ImageFK and Text2Vid use a restrained product footer: one brand card,
   three navigation groups and a quiet meta row. */
footer.ai-footer {
    position: relative;
    padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.25rem;
    background: #08111f;
    color: #d8e2f0;
}

footer.ai-footer::before {
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 48%, rgba(96, 165, 250, 0) 100%);
}

footer.ai-footer > .container {
    width: min(1240px, calc(100% - 3rem));
    max-width: none;
    padding: 0;
}

footer.ai-footer .footer-content {
    display: grid !important;
    grid-template-columns: minmax(245px, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3.5rem);
    margin-bottom: 2.25rem;
}

footer.ai-footer .footer-column {
    min-width: 0;
}

footer.ai-footer .footer-column:first-child {
    padding: 1.35rem 1.45rem 1.25rem;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30, 64, 175, .24), rgba(15, 23, 42, .2));
    box-shadow: 0 16px 36px rgba(2, 8, 23, .16);
}

footer.ai-footer .footer-title {
    position: relative;
    margin: 0 0 1rem;
    color: #9fb2cb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

footer.ai-footer .footer-column:first-child .footer-title {
    color: #fff;
    font-size: 1.12rem;
    letter-spacing: -.02em;
    line-height: 1.25;
    text-transform: none;
}

footer.ai-footer .footer-title::after {
    bottom: -.55rem;
    width: 24px;
    height: 2px;
    background: #3b82f6;
}

footer.ai-footer .footer-subtitle {
    margin: 1.4rem 0 .45rem;
    color: #9fb2cb;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

footer.ai-footer .footer-column > p:not(.mt10) {
    max-width: 31ch;
    margin: 0;
    color: #b7c6d9;
    font-size: .84rem;
    line-height: 1.65;
}

footer.ai-footer .footer-column:first-child .mt10 {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 1.15rem 0 0;
    padding-top: .9rem;
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: #dce8f7;
    font-size: .8rem;
}

footer.ai-footer .footer-column:first-child .mt10 a {
    color: #dce8f7 !important;
}

footer.ai-footer .footer-links {
    display: grid !important;
    gap: .12rem;
    margin: 0;
    padding: 0;
    columns: 1;
    list-style: none;
}

footer.ai-footer .footer-links li {
    margin: 0;
    transition: none;
}

footer.ai-footer .footer-links a {
    min-height: 0;
    padding: .34rem .5rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b7c6d9;
    font-size: .82rem;
    line-height: 1.4;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

footer.ai-footer .footer-links a:hover {
    background: rgba(96, 165, 250, .1);
    color: #fff;
    transform: translateX(3px);
}

footer.ai-footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem 2rem;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, .2);
    text-align: left;
    font-size: .74rem;
}

footer.ai-footer .footer-legal {
    min-width: 0;
}

footer.ai-footer .footer-legal p {
    margin: 0;
    color: #91a3bb;
    line-height: 1.6;
}

footer.ai-footer .footer-legal .footer-security {
    max-width: 72ch;
    margin-top: .3rem;
    color: #71849c;
    font-size: .7rem;
}

footer.ai-footer .footer-locale {
    justify-self: end;
}

footer.ai-footer .footer-locale .lang {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    box-sizing: border-box;
    padding: .35rem .65rem;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 999px;
    color: #b7c6d9;
    font-size: .76rem;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

footer.ai-footer .footer-locale .lang:hover,
footer.ai-footer .footer-locale .lang:focus-within {
    border-color: rgba(96, 165, 250, .65);
    background: rgba(96, 165, 250, .1);
    color: #fff;
}

footer.ai-footer .footer-bottom a {
    color: #aebed2;
    text-decoration: none;
}

footer.ai-footer .footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    footer.ai-footer .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    footer.ai-footer .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    footer.ai-footer {
        padding: 2rem 0 1rem;
    }

    footer.ai-footer > .container {
        width: min(100% - 2rem, 1240px);
    }

    footer.ai-footer .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
    }

    footer.ai-footer .footer-column:first-child {
        grid-column: 1 / -1;
    }

    footer.ai-footer .footer-links a {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    footer.ai-footer .footer-bottom {
        grid-template-columns: 1fr;
    }

    footer.ai-footer .footer-locale {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    footer.ai-footer .footer-content {
        grid-template-columns: 1fr;
    }

    footer.ai-footer .footer-column:first-child {
        grid-column: auto;
    }
}

/* CalculatorFree home/footer refresh: center the content and match the new card language. */
footer.footer_new.calculator-footer {
    margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
    padding: 1rem 1rem .65rem;
    border-top-color: #dfe5f0;
    background: #f8faff;
}

footer.footer_new.calculator-footer .footer_container {
    width: min(100%, 1180px);
    margin: 0 auto;
}

footer.footer_new.calculator-footer .footer-layout {
    grid-template-columns: minmax(220px, .85fr) minmax(300px, 1fr) minmax(390px, 1.65fr);
    gap: .9rem 1.75rem;
    align-content: start;
}

footer.footer_new.calculator-footer .copyright .info:first-child {
    color: #263654;
    font-size: 1rem;
    font-weight: 700;
}

footer.footer_new.calculator-footer .calculator-footer-description {
    max-width: 285px;
    color: #71809a;
    font-size: .84rem;
    line-height: 1.65;
}

footer.footer_new.calculator-footer .footer-group-label {
    position: relative;
    width: fit-content;
    margin-bottom: .4rem;
    padding-bottom: .45rem;
    color: #91a0b9;
}

footer.footer_new.calculator-footer .footer-group-label::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4050b5, #aebcff);
    content: "";
}

footer.footer_new.calculator-footer .footer-primary-nav,
footer.footer_new.calculator-footer .footer-network {
    text-align: left;
}

footer.footer_new.calculator-footer .footer-primary-nav .menu_list {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    width: fit-content;
    gap: .2rem 1.25rem;
}

footer.footer_new.calculator-footer .footer-network > .menu_list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem .8rem !important;
    align-content: start;
    grid-auto-rows: auto;
}

footer.footer_new.calculator-footer .menu_body {
    margin: 0;
}

footer.footer_new.calculator-footer .footer-primary-nav .menu_body a,
footer.footer_new.calculator-footer .footer-network .menu_body a {
    display: inline-flex;
    width: auto;
    height: auto;
    align-items: center;
    gap: .45rem;
    min-height: 32px;
    padding: .1rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #52627e;
    transition: color .18s ease, opacity .18s ease;
}

footer.footer_new.calculator-footer .footer-primary-nav .menu_body a::before,
footer.footer_new.calculator-footer .footer-network .menu_body a::before {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #aebcff;
    content: "";
    transition: background-color .18s ease, transform .18s ease;
}

footer.footer_new.calculator-footer .footer-primary-nav .menu_body a:hover,
footer.footer_new.calculator-footer .footer-network .menu_body a:hover,
footer.footer_new.calculator-footer .footer-primary-nav .menu_body a:focus-visible,
footer.footer_new.calculator-footer .footer-network .menu_body a:focus-visible {
    background: transparent;
    color: #4050b5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transform: none;
}

footer.footer_new.calculator-footer .footer-primary-nav .menu_body a:hover::before,
footer.footer_new.calculator-footer .footer-primary-nav .menu_body a:focus-visible::before,
footer.footer_new.calculator-footer .footer-network .menu_body a:hover::before,
footer.footer_new.calculator-footer .footer-network .menu_body a:focus-visible::before {
    background: #4050b5;
    transform: scale(1.35);
}

footer.footer_new.calculator-footer .calculator-footer-disclaimer {
    margin-top: .45rem;
    padding-top: .4rem;
    color: #71809a;
}

@media (max-width: 900px) {
    footer.footer_new.calculator-footer .footer-layout {
        grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
        gap: 1.25rem 1.5rem;
    }

    footer.footer_new.calculator-footer .footer-network {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    footer.footer_new.calculator-footer {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    footer.footer_new.calculator-footer .footer-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    footer.footer_new.calculator-footer .footer-network {
        grid-column: 1;
    }

    footer.footer_new.calculator-footer .footer-primary-nav .menu_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: .35rem 1rem;
    }

    footer.footer_new.calculator-footer .footer-network > .menu_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
