/* Styles for footer.blade.php */
.footer {
        background: #0f172a; /* very dark blue, premium */
        color: #fff;
        padding: 60px 0 calc(30px + env(safe-area-inset-bottom));
        position: relative;
        overflow: hidden;
    }
    
    .footer__inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
        position: relative;
        z-index: 2;
    }

    .footer__top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer__brand {
        max-width: 320px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer__logo {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #fff;
        text-decoration: none;
    }

    .footer__logo-icon {
        width: 32px;
        height: auto;
        color: #C8A55C;
    }

    .footer__logo-text {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .footer__desc {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 40px;
        flex: 1;
        max-width: 700px;
    }

    .footer__col-title {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin: 0 0 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer__toggle-icon {
        display: none;
        transition: transform 0.3s ease;
    }

    .footer__col-content {
        display: flex;
        flex-direction: column;
    }

    .footer__link {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s, transform 0.2s;
        display: block;
        margin-bottom: 12px;
    }
    
    .footer__link:last-child {
        margin-bottom: 0;
    }

    .footer__link:hover {
        color: #fff;
        transform: translateX(2px);
    }

    /* Dynamic Widget */
    .status-widget {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 10px;
        transition: border-color 0.3s;
    }

    .status-widget__indicator {
        position: relative;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .status-widget__indicator::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 50%;
        animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    }

    .status-widget--online {
        border-color: rgba(16, 185, 129, 0.2);
    }
    .status-widget--online .status-widget__indicator {
        background-color: #10b981;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    .status-widget--online .status-widget__indicator::after {
        border: 2px solid #10b981;
    }

    .status-widget--offline {
        border-color: rgba(245, 158, 11, 0.2);
    }
    .status-widget--offline .status-widget__indicator {
        background-color: #f59e0b;
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    }
    .status-widget--offline .status-widget__indicator::after {
        border: 2px solid #f59e0b;
    }

    .status-widget__text {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.4;
        margin: 0;
    }
    
    .status-widget__title {
        font-weight: 600;
        color: #fff;
        display: block;
        margin-bottom: 2px;
    }

    @keyframes pulse-ring {
        0% { transform: scale(0.5); opacity: 0; }
        50% { opacity: 1; }
        100% { transform: scale(1.5); opacity: 0; }
    }

    .footer__bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer__copy {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.85rem;
        margin: 0;
    }

    .footer__legal {
        display: flex;
        gap: 16px;
    }

    .footer__legal a {
        color: rgba(255, 255, 255, 0.4);
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.2s;
    }

    .footer__legal a:hover {
        color: #fff;
    }

    .pay-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: border-color 0.2s, color 0.2s;
        cursor: default;
    }
    .pay-badge:hover {
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.8);
    }
    .footer__payment-block {
        margin-top: 32px;
    }
    .footer__payment-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    @media (max-width: 768px) {
        .footer {
            padding: 40px 0 calc(20px + env(safe-area-inset-bottom));
        }
        .footer__top {
            flex-direction: column;
            align-items: flex-start;
        }
        .footer__brand {
            max-width: 100%;
            align-items: flex-start;
            text-align: left;
        }
        .status-widget {
            flex-direction: row;
            text-align: left;
            align-items: center;
        }
        .footer__nav {
            grid-template-columns: 1fr;
            text-align: left;
            width: 100%;
            gap: 0; /* Reset gap, handle spacing via borders/padding */
        }
        .footer__link {
            justify-content: flex-start;
        }
        .footer__bottom {
            flex-direction: column;
            text-align: left;
            align-items: flex-start;
            gap: 16px;
        }
        .footer__legal {
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 12px;
        }
        .footer__copy {
            line-height: 1.4;
        }
        .footer__payment-block {
            margin-top: 24px;
            padding-bottom: 24px;
        }

        /* Accordion specific */
        .footer__col {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .footer__col:last-child {
            border-bottom: none;
            padding-top: 20px; /* spacing for contacts */
        }
        .footer__col-title--toggle {
            cursor: pointer;
            margin-bottom: 0;
            padding: 16px 0;
            user-select: none;
        }
        .footer__toggle-icon {
            display: block;
        }
        .footer__col-title--toggle + .footer__col-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            padding-top: 0;
            padding-bottom: 0;
        }
        .footer__col.is-open .footer__col-title--toggle + .footer__col-content {
            max-height: 500px; /* enough for links */
            opacity: 1;
            padding-bottom: 16px;
        }
        .footer__col.is-open .footer__toggle-icon {
            transform: rotate(180deg);
        }
        .footer__col-title:not(.footer__col-title--toggle) {
            padding: 0 0 16px 0;
            border-bottom: none;
        }
    }

    /* Tablet / Landscape Mobile */
    @media (min-width: 600px) and (max-width: 768px) {
        .footer__nav {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
        }
        .footer__col {
            border-bottom: none;
            padding-top: 20px;
        }
        /* Disable accordion visually for landscape */
        .footer__col-title--toggle + .footer__col-content {
            max-height: none !important;
            opacity: 1 !important;
            padding-bottom: 0 !important;
        }
        .footer__toggle-icon {
            display: none !important;
        }
        .footer__col-title--toggle {
            cursor: default;
            padding: 0 0 16px 0;
        }
    }

    .footer__contact-btn {
        margin-top: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 500;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
    }
    .footer__contact-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
/* Подсказка с полным названием способа оплаты: ховер на десктопе, тап на сенсорных */
.pay-badge {
    position: relative;
    cursor: default;
}

.pay-badge:focus {
    outline: none;
}

.pay-badge::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.4;
    padding: 7px 11px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 20;
}

.pay-badge:hover::after,
.pay-badge:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
