:root {
    --amf-red: #cb0b10;
    --amf-red-hover: #b1080d;
    --amf-red-soft: rgba(203, 11, 16, 0.14);

    --amf-dark: #111214;
    --amf-dark-soft: #17181b;
    --amf-dark-card: #1d1f22;

    --amf-white: #ffffff;
    --amf-text: rgba(255, 255, 255, 0.76);
    --amf-text-soft: rgba(255, 255, 255, 0.56);

    --amf-border: rgba(255, 255, 255, 0.1);
    --amf-border-strong: rgba(255, 255, 255, 0.16);

    --amf-shell: 1380px;
}

#amf-footer,
#amf-footer *,
#amf-footer *::before,
#amf-footer *::after {
    box-sizing: border-box;
}

#amf-footer {
    width: 100%;
    color: var(--amf-white);
    background: var(--amf-dark);
    font-family: inherit;
    overflow: hidden;
}

#amf-footer a {
    color: inherit;
    text-decoration: none;
}

#amf-footer button {
    font: inherit;
}

.amf-shell {
    width: min(100% - 40px, var(--amf-shell));
    margin-inline: auto;
}

/* CTA */

.amf-quote {
    padding: 22px 0;
    background:
        radial-gradient(
            circle at 84% 20%,
            rgba(203, 11, 16, 0.24),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #202225 0%,
            #151618 72%
        );
    border-top: 1px solid var(--amf-border);
    border-bottom: 1px solid var(--amf-border);
}

.amf-quote__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.amf-quote__content {
    min-width: 0;
}

.amf-quote__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #ff6f73;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.amf-quote__eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.amf-quote__title {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.amf-quote__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amf-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.amf-button:hover {
    transform: translateY(-1px);
}

.amf-button--outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.22);
}

.amf-button--outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.38);
}

.amf-button--primary {
    color: #fff;
    background: var(--amf-red);
    border-color: var(--amf-red);
    box-shadow: 0 14px 30px rgba(203, 11, 16, 0.18);
}

.amf-button--primary:hover {
    background: var(--amf-red-hover);
    border-color: var(--amf-red-hover);
}

.amf-button__icon {
    width: 12px;
    height: 15px;
    display: inline-flex;
}

.amf-button__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* Footer principal */

.amf-main {
    padding: 26px 0 18px;
    background: var(--amf-dark);
}

.amf-main > .amf-shell {
    padding: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.02)
        );
    border: 1px solid var(--amf-border);
    border-radius: 20px;
}

.amf-main__grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.95fr)
        minmax(500px, 2.15fr)
        minmax(170px, 0.68fr);
    align-items: start;
    gap: 30px;
}

/* Brand */

.amf-brand {
    min-width: 0;
}

.amf-brand__logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.amf-brand__logo {
    width: auto;
    max-width: 150px;
    max-height: 56px;
    display: block;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: none;
}

.amf-brand__description {
    max-width: 315px;
    margin: 0;
    color: var(--amf-text);
    font-size: 13px;
    line-height: 1.6;
}

.amf-contact-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.amf-contact {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.amf-contact:hover {
    color: #ff7276;
}

.amf-contact__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff7276;
    background: var(--amf-red-soft);
    border: 1px solid rgba(255, 111, 115, 0.2);
    border-radius: 50%;
}

.amf-contact__icon svg {
    width: 12px;
    height: 12px;
    display: block;
    fill: currentColor;
}

.amf-contact__content small,
.amf-contact__content strong {
    display: block;
}

.amf-contact__content small {
    margin-bottom: 2px;
    color: var(--amf-text-soft);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.amf-contact__content strong {
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

/* Navigație */

.amf-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.amf-nav-column__toggle {
    display: none;
}

.amf-nav-column__title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.amf-nav-column__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--amf-red);
    border-radius: 999px;
}

.amf-nav-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.amf-nav-list li {
    margin: 0;
    padding: 0;
}

.amf-nav-list a {
    display: inline-block;
    color: var(--amf-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.amf-nav-list a:hover {
    color: #ff7276;
    transform: translateX(3px);
}

/* Hartă și certificare */

.amf-side {
    display: grid;
    gap: 10px;
    align-content: start;
}

.amf-map-card {
    display: grid;
    gap: 6px;
    padding: 10px;
    color: var(--amf-text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--amf-border);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.amf-map-card:hover {
    color: #fff;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.18);
}

.amf-map-card img {
    width: 100%;
    height: 78px;
    display: block;
    object-fit: contain;
}

.amf-award {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.amf-award:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.amf-award img {
    width: auto;
    max-width: 88px;
    max-height: 43px;
    display: block;
    object-fit: contain;
}

/* De ce AMASS */

.amf-main-proof {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--amf-border);
}

.amf-main-proof__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 11px;
}

.amf-main-proof__title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.amf-main-proof__title span {
    color: #ff7276;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.amf-main-proof__title strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.amf-main-proof__link {
    color: #ff7276 !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.amf-main-proof__link:hover {
    color: #fff !important;
}

.amf-main-proof__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.amf-main-proof__item {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--amf-border);
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.amf-main-proof__item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.16);
}

.amf-main-proof__item img {
    display: block;
    width: 100%;
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

/* Informații suplimentare */

.amf-extra {
    background: var(--amf-dark-soft);
    border-top: 1px solid var(--amf-border);
    border-bottom: 1px solid var(--amf-border);
}

.amf-extra__toggle {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
}

.amf-extra__toggle-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff7276;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--amf-border);
    border-radius: 50%;
    transition:
        transform 0.25s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.amf-extra__toggle:hover .amf-extra__toggle-icon {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--amf-border-strong);
}

.amf-extra__toggle[aria-expanded="true"] .amf-extra__toggle-icon {
    transform: rotate(180deg);
}

.amf-extra__toggle-icon svg {
    width: 8px;
    height: 8px;
    display: block;
    fill: currentColor;
}

.amf-extra__panel {
    padding: 0 0 22px;
}

.amf-extra__description {
    max-width: 850px;
    margin: 0 0 13px;
    color: var(--amf-text);
    font-size: 12px;
    line-height: 1.6;
}

.amf-extra__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.amf-extra__links li {
    margin: 0;
    padding: 0;
}

.amf-extra__links a {
    position: relative;
    display: block;
    padding: 6px 0 6px 12px;
    color: var(--amf-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    line-height: 1.45;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.amf-extra__links a::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--amf-red);
    border-radius: 50%;
}

.amf-extra__links a:hover {
    padding-left: 15px;
    color: #ff7276;
}

/* ANPC SAL / SOL */

.amf-anpc {
    padding: 12px 0;
    background: var(--amf-dark-soft);
    border-top: 1px solid var(--amf-border);
}

.amf-anpc__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.amf-anpc__label {
    color: var(--amf-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.amf-anpc__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.amf-anpc__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.amf-anpc__link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.amf-anpc__link img {
    width: auto;
    height: 34px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Copyright */

.amf-bottom {
    padding: 13px 0;
    color: #fff;
    background: linear-gradient(
        180deg,
        #d10d12 0%,
        #be0a0f 100%
    );
}

.amf-bottom__inner {
    position: relative;
    min-height: 34px;
    padding-right: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.amf-bottom__copyright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.amf-bottom__powered {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.amf-bottom__separator {
    display: inline-block;
    margin: 0 3px;
    color: rgba(255, 255, 255, 0.66);
}

.amf-bottom__ddm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.amf-bottom__ddm:hover {
    opacity: 0.8;
}

.amf-bottom__ddm img {
    width: auto;
    height: 20px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.amf-bottom__ddm span {
    display: inline-block;
}

.amf-bottom__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.amf-bottom__links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.amf-bottom__links a:hover {
    opacity: 0.75;
}

.amf-back-top {
    position: absolute;
    top: 50%;
    right: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--amf-red);
    background: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.amf-back-top:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-54%);
}

.amf-back-top svg {
    width: 10px;
    height: 10px;
    display: block;
    fill: currentColor;
}

/* Tablet */

@media (max-width: 1100px) {
    .amf-main__grid {
        grid-template-columns:
            minmax(220px, 0.8fr)
            minmax(450px, 2fr);
    }

    .amf-side {
        grid-column: 1 / -1;
        grid-template-columns: 210px 110px;
        justify-content: start;
    }

    .amf-map-card img {
        height: 65px;
    }

    .amf-main-proof__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .amf-quote__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .amf-main__grid {
        grid-template-columns: 1fr;
    }

    .amf-brand__description {
        max-width: 600px;
    }

    .amf-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .amf-side {
        grid-column: auto;
    }

    .amf-extra__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    .amf-shell {
        width: min(100% - 30px, var(--amf-shell));
    }

    .amf-quote {
        padding: 18px 0;
    }

    .amf-quote__eyebrow {
        font-size: 10px;
    }

    .amf-quote__title {
        font-size: 23px;
    }

    .amf-quote__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .amf-button {
        width: 100%;
        min-height: 42px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .amf-main {
        padding: 22px 0 16px;
    }

    .amf-main > .amf-shell {
        padding: 16px;
        border-radius: 16px;
    }

    .amf-brand {
        margin-bottom: 18px;
    }

    .amf-brand__logo {
        max-width: 135px;
        max-height: 52px;
        background: transparent;
        filter: none;
    }

    .amf-brand__description {
        font-size: 13px;
        line-height: 1.6;
    }

    .amf-contact__content small {
        font-size: 10px;
    }

    .amf-contact__content strong {
        font-size: 14px;
    }

    .amf-navigation {
        display: block;
    }

    .amf-nav-column {
        border-top: 1px solid var(--amf-border);
    }

    .amf-nav-column:last-child {
        border-bottom: 1px solid var(--amf-border);
    }

    .amf-nav-column__toggle {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 0;
        color: #fff;
        background: transparent;
        border: 0;
        cursor: pointer;
        text-align: left;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
    }

    .amf-nav-column__toggle svg {
        width: 10px;
        height: 10px;
        display: block;
        fill: currentColor;
        transition: transform 0.25s ease;
    }

    .amf-nav-column__toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .amf-nav-column__panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            padding 0.25s ease;
    }

    .amf-nav-column.is-open .amf-nav-column__panel {
        max-height: 600px;
        padding: 2px 0 18px;
        opacity: 1;
    }

    .amf-nav-column__title {
        display: none;
    }

    .amf-nav-list {
        gap: 9px;
    }

    .amf-nav-list a {
        display: block;
        padding: 3px 0;
        color: var(--amf-text);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.5;
    }

    .amf-side {
        grid-template-columns: minmax(0, 1fr) 95px;
        margin-top: 17px;
    }

    .amf-map-card {
        font-size: 11px;
    }

    .amf-map-card img {
        height: 62px;
    }

    .amf-award {
        min-height: 100%;
    }

    .amf-award img {
        max-width: 72px;
        max-height: 40px;
    }

    .amf-main-proof {
        margin-top: 18px;
        padding-top: 15px;
    }

    .amf-main-proof__heading {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .amf-main-proof__title {
        display: grid;
        gap: 3px;
    }

    .amf-main-proof__title span {
        font-size: 10px;
    }

    .amf-main-proof__title strong {
        font-size: 15px;
    }

    .amf-main-proof__link {
        font-size: 11px;
    }

    .amf-main-proof__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .amf-main-proof__item {
        min-height: 55px;
        padding: 5px;
    }

    .amf-main-proof__item img {
        max-height: 42px;
    }

    .amf-extra__toggle {
        min-height: 54px;
        font-size: 13px;
        line-height: 1.4;
    }

    .amf-extra__description {
        font-size: 12px;
        line-height: 1.6;
    }

    .amf-extra__links {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .amf-extra__links a {
        padding: 7px 0 7px 14px;
        font-size: 12px;
        line-height: 1.5;
    }

    .amf-extra__links a::before {
        top: 14px;
    }

    .amf-extra__panel {
        padding-bottom: 20px;
    }

    .amf-anpc {
        padding: 14px 0;
    }

    .amf-anpc__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .amf-anpc__label {
        font-size: 13px;
    }

    .amf-anpc__links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .amf-anpc__link {
        min-width: 0;
        padding: 6px;
    }

    .amf-anpc__link img {
        width: 100%;
        height: auto;
        max-height: 38px;
    }

    .amf-bottom {
        padding: 15px 0;
    }

    .amf-bottom__inner {
        padding-right: 40px;
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .amf-bottom__copyright {
        display: grid;
        gap: 6px;
        font-size: 10px;
        line-height: 1.5;
    }

    .amf-bottom__powered {
        justify-content: flex-start;
    }

    .amf-bottom__separator {
        display: none;
    }

    .amf-bottom__ddm {
        font-size: 10px;
    }

    .amf-bottom__ddm img {
        height: 19px;
    }

    .amf-bottom__links {
        justify-content: flex-start;
        gap: 7px 13px;
    }

    .amf-bottom__links a {
        font-size: 11px;
    }

    .amf-back-top {
        top: 0;
        transform: none;
    }

    .amf-back-top:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 400px) {
    .amf-quote__actions {
        grid-template-columns: 1fr;
    }

    .amf-main-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amf-anpc__links {
        grid-template-columns: 1fr;
    }

    .amf-bottom__copyright {
        font-size: 10px;
    }

    .amf-bottom__links a {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #amf-footer *,
    #amf-footer *::before,
    #amf-footer *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}