.premium-footer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
        linear-gradient(135deg, #070708 0%, #030304 58%, #090807 100%) !important;
    border-top: 1px solid rgba(244, 243, 238, 0.08);
    overflow: hidden;
    padding: clamp(2.9rem, 4.5vw, 4.25rem) clamp(1.25rem, 5vw, 4.5rem) 1.65rem !important;
    position: relative;
}

.premium-footer::before {
    background: linear-gradient(90deg, transparent, rgba(201, 160, 91, 0.72), rgba(244, 243, 238, 0.36), rgba(201, 160, 91, 0.72), transparent) !important;
    height: 1px !important;
    left: 50% !important;
    opacity: 0.9;
    top: 0 !important;
    transform: translateX(-50%) !important;
    width: min(1080px, calc(100% - 2.5rem)) !important;
}

.premium-footer::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
    opacity: 0.26;
    pointer-events: none;
    position: absolute;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
}

.footer-content {
    margin: 0 auto !important;
    max-width: 1120px !important;
    position: relative;
    z-index: 1;
}

.footer-top {
    align-items: start !important;
    border-bottom: 1px solid rgba(244, 243, 238, 0.1) !important;
    display: grid !important;
    gap: clamp(2.5rem, 5vw, 4rem) !important;
    grid-template-columns: minmax(17rem, 0.9fr) minmax(34rem, 1.1fr);
    justify-content: stretch !important;
    padding-bottom: clamp(2.4rem, 4vw, 3.15rem) !important;
}

.footer-brand h2 {
    color: var(--text-main, var(--text-color, #f4f3ee)) !important;
    font-family: var(--font-editorial, "Playfair Display", Georgia, "Times New Roman", serif) !important;
    font-size: clamp(2.6rem, 5.7vw, 4.4rem) !important;
    letter-spacing: 0.02em;
    line-height: 0.9 !important;
    margin: 0 0 1.35rem !important;
}

.footer-brand p {
    color: rgba(244, 243, 238, 0.56) !important;
    color: color-mix(in srgb, var(--text-main, var(--text-color, #f4f3ee)) 56%, transparent) !important;
    font-size: clamp(0.92rem, 1.05vw, 1rem) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    max-width: 390px !important;
}

.footer-links {
    align-items: start;
    display: grid !important;
    gap: clamp(1.75rem, 3.2vw, 3.1rem) !important;
    grid-template-columns: minmax(8.5rem, 0.95fr) minmax(9.5rem, 1fr) auto;
    justify-content: end;
}

.footer-social-group {
    min-width: 0;
}

.link-group h4 {
    color: var(--text-main, var(--text-color, #f4f3ee)) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    margin: 0 0 1.35rem !important;
    text-transform: uppercase;
}

.link-group > a:not(.footer-social-link) {
    color: rgba(244, 243, 238, 0.55) !important;
    color: color-mix(in srgb, var(--text-main, var(--text-color, #f4f3ee)) 55%, transparent) !important;
    display: block !important;
    font-size: 0.94rem !important;
    line-height: 1.25 !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.18rem;
    position: relative;
    width: fit-content;
}

.link-group > a:not(.footer-social-link)::after {
    background: currentColor;
    bottom: -0.08rem;
    content: "";
    height: 1px;
    left: 0;
    opacity: 0.72;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.34s cubic-bezier(0.85, 0, 0.15, 1);
    width: 100%;
}

.link-group > a:not(.footer-social-link):hover,
.link-group > a:not(.footer-social-link):focus-visible {
    color: var(--text-main, var(--text-color, #f4f3ee)) !important;
    transform: translateX(3px) !important;
}

.link-group > a:not(.footer-social-link):hover::after,
.link-group > a:not(.footer-social-link):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-socials {
    display: grid !important;
    gap: 0.62rem;
    grid-template-columns: repeat(3, 42px);
    margin-top: 0 !important;
    width: auto;
}

.footer-social-link {
    align-items: center !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(244, 243, 238, 0.13) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-main, var(--text-color, #f4f3ee)) !important;
    display: inline-flex !important;
    font-size: 0 !important;
    gap: 0;
    justify-content: center;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 42px;
    min-width: 42px;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    transform: translateZ(0) !important;
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        color 0.28s ease,
        transform 0.28s ease;
    width: 42px;
}

.footer-social-link::before {
    background:
        linear-gradient(135deg, rgba(201, 160, 91, 0.26), rgba(244, 243, 238, 0.08) 48%, rgba(255, 255, 255, 0));
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.28s ease;
}

.footer-social-link svg,
.footer-social-link span {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.footer-social-link span {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.footer-social-link svg {
    height: 16px;
    stroke-width: 2.4;
    width: 16px;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    border-color: rgba(201, 160, 91, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 34px rgba(0, 0, 0, 0.28);
    color: var(--accent-gold, var(--accent-color, #c9a05b)) !important;
    transform: translateY(-2px) !important;
}

.footer-social-link:hover::before,
.footer-social-link:focus-visible::before {
    opacity: 1;
}

.footer-bottom {
    align-items: center !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: space-between !important;
    padding-top: 1.6rem !important;
}

.footer-copyright,
.footer-credits {
    color: rgba(244, 243, 238, 0.38) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0 !important;
}

.footer-credits a {
    color: rgba(244, 243, 238, 0.84) !important;
    font-weight: 800 !important;
}

@media (max-width: 1020px) {
    .footer-top {
        grid-template-columns: 1fr !important;
    }

    .footer-links {
        grid-template-columns: minmax(8.5rem, 1fr) minmax(9.5rem, 1fr) auto !important;
        justify-content: stretch;
    }
}

@media (max-width: 760px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 1.25rem !important;
        row-gap: 1.85rem !important;
    }

    .footer-social-group {
        grid-column: 1 / -1;
    }

    .footer-social-group h4 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 620px) {
    .premium-footer {
        padding-top: 2.65rem !important;
    }

    .footer-top {
        gap: 2rem !important;
        padding-bottom: 2.2rem !important;
    }

    .footer-brand h2 {
        font-size: clamp(2.45rem, 12vw, 3.45rem) !important;
        margin-bottom: 1.1rem !important;
    }

    .footer-brand p {
        font-size: 0.92rem !important;
        line-height: 1.58 !important;
    }

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

    .link-group h4 {
        margin-bottom: 1rem !important;
    }

    .link-group > a:not(.footer-social-link) {
        font-size: 0.91rem !important;
        margin-bottom: 0.82rem !important;
    }

    .footer-socials {
        grid-template-columns: repeat(3, 42px);
        width: auto;
    }

    .footer-bottom {
        align-items: flex-start !important;
        flex-direction: column;
    }
}
