/* ==========================================================================
   Safina Modern Footer Styles
   ========================================================================== */

body .safina-footer,
body footer.safina-footer {
    display: block !important;
    position: relative;
    width: 100% !important;
    min-height: auto !important;
    background: #131913 !important;
    background: linear-gradient(180deg, #161e16 0%, #111611 100%) !important;
    color: #b2bcb0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 48px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.25) !important;
    z-index: 10;
}

body .safina-footer.sticky_footer,
body footer.safina-footer.sticky_footer {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
}

.safina-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(55, 163, 3, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.safina-footer__container {
    width: calc(100% - (var(--site-container-gutter, 24px) * 2));
    max-width: var(--site-container-width, 1320px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Trust Strip (Фабричные преимущества)
   -------------------------------------------------------------------------- */
.safina-footer__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.safina-footer__trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.safina-footer__trust-item:hover {
    background: rgba(55, 163, 3, 0.06);
    border-color: rgba(55, 163, 3, 0.3);
    transform: translateY(-2px);
}

.safina-footer__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(55, 163, 3, 0.14);
    border: 1px solid rgba(55, 163, 3, 0.28);
    color: #4cd808;
}

.safina-footer__trust-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.safina-footer__trust-text {
    display: flex;
    flex-direction: column;
}

.safina-footer__trust-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 2px;
}

.safina-footer__trust-desc {
    font-size: 12px;
    color: #8c988a;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   2. Main Footer Grid
   -------------------------------------------------------------------------- */
.safina-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
    gap: 40px 32px;
    padding-bottom: 40px;
}

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

/* Brand Column */
.safina-footer__brand-col {
    padding-right: 16px;
}

.safina-footer__logo {
    display: inline-block;
    max-width: 170px;
    margin-bottom: 16px;
    transition: opacity .2s ease;
}

.safina-footer__logo:hover {
    opacity: .9;
}

.safina-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.safina-footer__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #a4b0a2;
    margin: 0 0 16px;
}

.safina-footer__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(55, 163, 3, 0.1);
    border: 1px solid rgba(55, 163, 3, 0.25);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7ce73c;
    width: fit-content;
    margin-bottom: 18px;
}

.safina-footer__status-dot {
    width: 7px;
    height: 7px;
    background-color: #4cd808;
    border-radius: 50%;
    box-shadow: 0 0 8px #4cd808;
    display: inline-block;
    animation: safinaFooterPulse 2s infinite ease-in-out;
}

@keyframes safinaFooterPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(0.85); }
}

.safina-footer__price-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #e5ece3;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.safina-footer__price-btn:hover {
    background: #37a303;
    border-color: #37a303;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(55, 163, 3, 0.3);
}

.safina-footer__price-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Nav Columns */
.safina-footer__col-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #ffffff;
    margin: 0 0 18px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.safina-footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #37a303;
    border-radius: 1px;
}

.safina-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.safina-footer__nav-link {
    display: inline-flex;
    align-items: center;
    color: #aeb9ac;
    font-size: 13.5px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
    line-height: 1.4;
}

.safina-footer__nav-link::before {
    content: '›';
    color: #37a303;
    margin-right: 7px;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.safina-footer__nav-link:hover {
    color: #7ce73c;
    text-decoration: none;
    transform: translateX(4px);
}

.safina-footer__nav-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contacts Column */
.safina-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.safina-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
}

.safina-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    color: #37a303;
}

.safina-footer__contact-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.safina-footer__contact-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.safina-footer__contact-phone {
    font-weight: 700;
    font-size: 14.5px;
    color: #ffffff;
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}

.safina-footer__contact-phone:hover {
    color: #7ce73c;
    text-decoration: none;
}

.safina-footer__contact-mail {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.safina-footer__contact-mail:hover {
    color: #7ce73c;
    text-decoration: none;
}

.safina-footer__schedule {
    font-size: 12.5px;
    color: #8c988a;
}

/* Social & Messengers in Footer */
.safina-footer__social-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8c988a;
    font-weight: 700;
    margin: 0 0 8px;
}

.safina-footer__social-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.safina-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    text-decoration: none;
}

.safina-footer__social-btn:hover {
    transform: translateY(-3px);
}

.safina-footer__social-btn.max-btn:hover {
    background: #0077ff;
    border-color: #0077ff;
}

.safina-footer__social-btn.tg-btn:hover {
    background: #229ed9;
    border-color: #229ed9;
}

.safina-footer__social-btn.wa-btn:hover {
    background: #25d366;
    border-color: #25d366;
}

.safina-footer__social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.safina-footer__social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer Callback Button */
.safina-footer__callback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 230px;
    padding: 11px 18px;
    background: #37a303;
    background: linear-gradient(135deg, #43b808 0%, #2f8e02 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 4px 14px rgba(55, 163, 3, 0.35);
}

.safina-footer__callback-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 163, 3, 0.5);
    color: #ffffff;
}

.safina-footer__callback-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Bottom Bar (Legal, Copyright, Developer)
   -------------------------------------------------------------------------- */
.safina-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: #8c988a;
}

.safina-footer__copyright {
    margin: 0;
    line-height: 1.5;
}

.safina-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.safina-footer__legal-link {
    color: #8c988a;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.safina-footer__legal-link:hover {
    color: #7ce73c;
    text-decoration-color: currentColor;
}

.safina-footer__itchelny {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #8c988a;
    transition: opacity .2s ease;
    flex-shrink: 0;
}

.safina-footer__itchelny:hover {
    opacity: .85;
    text-decoration: none;
    color: #e5ece3;
}

.safina-footer__itchelny p {
    margin: 0;
    font-size: 12px;
}

.safina-footer__itchelny img {
    height: 20px;
    width: auto;
    opacity: .85;
}

/* --------------------------------------------------------------------------
   4. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .safina-footer__trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .safina-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 30px;
    }

    .safina-footer__brand-col {
        padding-right: 0;
    }

    .safina-footer__callback-btn {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    body .safina-footer,
    body footer.safina-footer {
        padding-top: 32px !important;
    }

    .safina-footer__trust {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .safina-footer__trust-item {
        padding: 12px 14px;
    }

    .safina-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .safina-footer__col-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .safina-footer__nav-link {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
    }

    .safina-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px 0 24px;
    }

    .safina-footer__legal-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .safina-footer__itchelny {
        margin-top: 6px;
    }
}
