/* ================== ФУТЕР ================== */
.footer {
    position: relative;
    padding: 100px 24px 36px;
    background: transparent;
    border-top: none;
    box-shadow: none;
    opacity: 0;
    animation: fadeInFooter 0.9s ease forwards;
    animation-delay: 0.2s;
    isolation: isolate;
}

@keyframes fadeInFooter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA-карточка над футером (через ::before) — тонкая линия + орнамент */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.footer::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-3), var(--accent) 60%, transparent 80%);
    box-shadow:
        0 0 0 2px rgba(244, 228, 188, 0.10),
        0 0 14px rgba(212, 175, 55, 0.65);
}

.footer-content {
    max-width: 1180px;
    margin: 0 auto 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

/* ================== ЛОГО ================== */
.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    margin-bottom: 18px;
    filter:
        drop-shadow(0 0 18px rgba(212, 175, 55, 0.45))
        drop-shadow(0 0 32px rgba(180, 130, 70, 0.22));
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.footer-logo:hover {
    transform: translateY(-2px);
    filter:
        drop-shadow(0 0 26px rgba(244, 228, 188, 0.6))
        drop-shadow(0 0 42px rgba(212, 175, 55, 0.4));
}

.footer-column h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-3);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.40);
    position: relative;
    padding-bottom: 0;
}

.footer-column h3::after {
    display: none;
}

/* ================== НАВИГАЦИЯ ================== */
.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
    position: relative;
}

.footer-nav a::before {
    content: "✦";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.25s ease, left 0.25s ease;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 18px;
}

.footer-nav a:hover::before {
    opacity: 1;
    left: 0;
}

/* ================== CTA В ФУТЕРЕ ================== */
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: auto;
    padding: 12px 22px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: linear-gradient(180deg, #f5e8d4, #d4c4a8);
    border: 1px solid rgba(120, 90, 50, 0.45);
    border-radius: var(--r-pill);
    clip-path: none;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 248, 230, 0.55),
        0 0 22px rgba(212, 175, 55, 0.20);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    margin-top: 6px;
    position: relative;
    isolation: isolate;
    text-transform: none;
    overflow: hidden;
}

.footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--sb-angle, 0deg),
        rgba(244, 228, 188, 0.95),
        rgba(212, 175, 55, 0.95),
        rgba(180, 130, 70, 0.95),
        rgba(244, 228, 188, 0.95));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: starRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.footer-cta::after {
    content: "→";
    margin-left: 2px;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
}

.footer-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #fff8e6, #e8d5a8);
    color: #1a120c;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 248, 230, 0.7),
        0 0 30px rgba(212, 175, 55, 0.4);
}

.footer-cta:hover::after {
    transform: translateX(3px);
}

.footer-description {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    font-style: normal;
    max-width: 420px;
}

/* ================== ПОЛЕЗНЫЕ ССЫЛКИ ================== */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: color 0.25s ease;
}

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

/* ================== НИЖНЯЯ ЧАСТЬ ================== */
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    border-image: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-copyright {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: linear-gradient(180deg, rgba(244, 228, 188, 0.12), rgba(244, 228, 188, 0.04));
    border-color: var(--line-strong);
    color: var(--accent-3);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(244, 228, 188, 0.14),
        0 0 0 4px rgba(212, 175, 55, 0.22);
}

@media (max-width: 900px) {
    .footer {
        padding: 70px 18px 28px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        margin-bottom: 40px;
    }

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

@media (max-width: 600px) {
    .footer {
        padding: 60px 16px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}
