.sdx-site-footer-template-part {
    width: 100%;
    margin: 0;
}

.sdx-site-footer {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-top: 2px solid var(--wp--preset--color--field-green);
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--light);
}

.sdx-site-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(4rem, 8vw, 8rem);
    height: clamp(4rem, 8vw, 8rem);
    background: var(--wp--preset--color--field-green-dark);
    content: "";
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    pointer-events: none;
}

.sdx-site-footer__main,
.sdx-site-footer__legal {
    position: relative;
    z-index: 1;
}

.sdx-site-footer__inner,
.sdx-site-footer__legal-inner {
    width: calc(100% - var(--sdx-site-gutter) - var(--sdx-site-gutter));
    max-width: var(--sdx-content-width);
    margin-inline: auto;
}

.sdx-site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    align-items: start;
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.sdx-site-footer__brand-column {
    min-width: 0;
    max-width: 48rem;
}

.sdx-site-footer__brand {
    display: inline-grid;
    width: auto;
    max-width: 100%;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    column-gap: clamp(0.85rem, 1.8vw, 1.35rem);
}

.sdx-site-footer__brand-mark {
    display: block;
    width: var(--sdx-footer-logo-width, 160px);
    min-width: 0;
    max-width: 300px;
}

.sdx-site-footer__brand .custom-logo-link {
    display: block;
    width: 100% !important;
    max-width: none !important;
    line-height: 0;
}

.sdx-site-footer__brand .custom-logo {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}

.sdx-site-footer__site-name {
    display: inline-block;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: none;
}

.sdx-site-footer__site-name:visited {
    color: var(--wp--preset--color--white);
}

.sdx-site-footer__brand-name {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: 0.035em;
    text-transform: none;
    white-space: nowrap;
}

.sdx-site-footer__callback {
    max-width: 38rem;
    margin-top: clamp(1.1rem, 2vw, 1.6rem);
}

.sdx-site-footer__callback-copy {
    max-width: 36rem;
}

.sdx-site-footer__callback-heading {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.1;
}

.sdx-site-footer__callback-text {
    max-width: 34rem;
    margin: 0.55rem 0 0;
    color: var(--wp--preset--color--silver);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sdx-site-footer__callback-form {
    min-width: 0;
    margin-top: 0.8rem;
}

.sdx-site-footer__callback-form .wpcf7,
.sdx-site-footer__callback-form .wpcf7-form {
    width: 100%;
    margin: 0;
}

.sdx-site-footer__callback-form .sdx-footer-callback-form {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    margin: 0;
}

.sdx-site-footer__callback-form .sdx-footer-callback-field {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    margin: 0;
    color: var(--wp--preset--color--silver);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sdx-site-footer__callback-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.sdx-site-footer__callback-form input[type="tel"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 3.25rem;
    min-height: 3.25rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgb(167 173 170 / 38%);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--wp--preset--color--white);
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.sdx-site-footer__callback-form input[type="tel"]:focus {
    border-color: var(--wp--preset--color--light);
}

.sdx-site-footer__callback-form .sdx-footer-callback-submit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.sdx-site-footer__callback-form .sdx-footer-callback-submit .sdx-button,
.sdx-site-footer__callback-form .sdx-footer-callback-submit .wpcf7-submit {
    box-sizing: border-box;
    width: auto;
    min-width: 13.75rem;
    height: 3.25rem;
    min-height: 3.25rem;
    margin: 0;
    justify-content: space-between;
    white-space: nowrap;
}

.sdx-site-footer__callback-form .wpcf7-spinner {
    position: absolute;
}

.sdx-site-footer__callback-form .wpcf7-not-valid-tip {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.sdx-site-footer__callback-form .wpcf7-response-output {
    margin: 0.75rem 0 0 !important;
    color: var(--wp--preset--color--light);
    font-size: 0.82rem;
}

.sdx-site-footer__callback-placeholder {
    margin: 0;
    color: var(--wp--preset--color--silver);
    font-size: 0.82rem;
}

.sdx-site-footer__heading {
    margin: 0 0 var(--wp--preset--spacing--30);
    color: var(--wp--preset--color--silver);
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sdx-site-footer__nav-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--wp--preset--color--field-green-dark);
    list-style: none;
}

.sdx-site-footer__nav-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--wp--preset--color--field-green-dark);
}

.sdx-site-footer__nav-link {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    gap: var(--wp--preset--spacing--30);
    color: var(--wp--preset--color--light);
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.sdx-site-footer__nav-link:visited {
    color: var(--wp--preset--color--light);
}

.sdx-site-footer__nav-link:hover,
.sdx-site-footer__nav-link:focus-visible {
    color: var(--wp--preset--color--white);
}

.sdx-site-footer__nav-arrow {
    flex: 0 0 auto;
    color: var(--wp--preset--color--field-green);
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.sdx-site-footer__nav-link:hover .sdx-site-footer__nav-arrow,
.sdx-site-footer__nav-link:focus-visible .sdx-site-footer__nav-arrow {
    transform: translateX(0.25rem);
}

.sdx-site-footer__legal {
    border-top: 1px solid var(--wp--preset--color--field-green-dark);
    background: var(--wp--preset--color--dark);
}

.sdx-site-footer__legal-inner {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.8rem;
    gap: 2rem;
}

.sdx-site-footer__company-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 1rem;
}

.sdx-site-footer__copyright,
.sdx-site-footer__company-details {
    margin: 0;
    color: var(--wp--preset--color--silver);
    font-size: 0.75rem;
    line-height: 1.5;
}

.sdx-site-footer__legal-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1.5rem;
}

.sdx-site-footer__legal-link {
    color: var(--wp--preset--color--silver);
    font-size: 0.75rem;
    line-height: 1.5;
    text-decoration: none;
}

.sdx-site-footer__legal-link:visited {
    color: var(--wp--preset--color--silver);
}

.sdx-site-footer__legal-link:hover,
.sdx-site-footer__legal-link:focus-visible {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .sdx-site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
        gap: 2.5rem;
    }

}

@media (max-width: 760px) {
    .sdx-site-footer__inner {
        grid-template-columns: 1fr;
        padding-block: 2.25rem;
        gap: 2.25rem;
    }

    .sdx-site-footer__brand-column {
        max-width: none;
    }

    .sdx-site-footer__brand {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.9rem;
    }

    .sdx-site-footer__brand-mark {
        width: min(var(--sdx-footer-logo-width, 160px), 38vw);
    }

    .sdx-site-footer__brand-name {
        font-size: clamp(1rem, 5vw, 1.35rem);
        white-space: normal;
    }

    .sdx-site-footer__callback {
        margin-top: 1.5rem;
    }

    .sdx-site-footer__callback-form .sdx-footer-callback-form {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.75rem;
    }

    .sdx-site-footer__callback-form .sdx-footer-callback-submit .sdx-button,
    .sdx-site-footer__callback-form .sdx-footer-callback-submit .wpcf7-submit {
        width: 100%;
        min-width: 0;
    }

    .sdx-site-footer__legal-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
        gap: 0.75rem;
    }

    .sdx-site-footer__company-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .sdx-site-footer__legal-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdx-site-footer__nav-arrow {
        transition: none;
    }
}


/* Contact information and registration particulars below the right-hand links. */
.sdx-site-footer__right-column {
    min-width: 0;
}

.sdx-site-footer__contact-details,
.sdx-site-footer__registration-details {
    margin-top: clamp(1.3rem, 2.5vw, 2rem);
}

.sdx-site-footer__contact-details .sdx-site-footer__heading,
.sdx-site-footer__registration-details .sdx-site-footer__heading {
    margin-bottom: 0.6rem;
}

.sdx-site-footer__contact-values {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.4rem;
    row-gap: 0.15rem;
    color: var(--wp--preset--color--light);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sdx-site-footer__contact-values a,
.sdx-site-footer__contact-values a:visited {
    color: var(--wp--preset--color--light);
    text-decoration: none;
}

.sdx-site-footer__contact-values a:hover,
.sdx-site-footer__contact-values a:focus-visible {
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

.sdx-site-footer__contact-separator {
    color: var(--wp--preset--color--silver);
}

.sdx-site-footer__registered-copy {
    margin: 0;
    color: var(--wp--preset--color--silver);
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
