/* =============================================================
   FOOTER STYLES
   ============================================================= */

/* Pre-footer: подписка */
.pre-footer {
    background: linear-gradient(135deg, #212b62 0%, #191f4a 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.pre-footer::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}
.pre-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 1; }
.pre-footer__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,165,48,.2); color: #e8a530;
    padding: 7px 14px; border-radius: 24px; font-size: 13px; font-weight: 600;
    margin-bottom: 12px; border: 1px solid rgba(232,165,48,.3);
}
.pre-footer__title { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.pre-footer__desc { color: rgba(255,255,255,.75); font-size: 15px; max-width: 480px; }
.pre-footer__form { flex-shrink: 0; }
.pre-footer__fields { display: flex; gap: 10px; }
.pre-footer__input {
    padding: 14px 22px; border: 2px solid rgba(255,255,255,.2); border-radius: 10px;
    font-size: 15px; min-width: 270px; background: rgba(255,255,255,.95); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.pre-footer__input:focus { border-color: #e8a530; box-shadow: 0 0 0 4px rgba(232,165,48,.2); }
.pre-footer__btn {
    background: #e8a530; color: #fff; border: none; padding: 14px 28px;
    border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    transition: background .2s, transform .15s;
}
.pre-footer__btn:hover { background: #d4952a; transform: translateY(-1px); }
.pre-footer__status { font-size: 13px; margin-top: 8px; min-height: 18px; color: #34d399; }
.pre-footer__status--err { color: #f87171; }

/* Footer main */
.footer { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.footer__main { padding: 52px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 44px; }
.footer__heading {
    font-size: 13px; font-weight: 700; color: #212b62; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 3px solid #212b62; display: inline-block;
}
.footer__heading a { color: inherit; text-decoration: none; }
.footer__heading a:hover { color: #e8a530; }

/* Logo */
.footer__logo { margin-bottom: 18px; }
.footer__logo img { max-height: 48px; width: auto; }
.footer__logo-text { font-size: 22px; font-weight: 800; color: #212b62; }

/* Badge */
.footer__badge {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #f59e0b;
    border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.footer__badge svg { color: #f59e0b; flex-shrink: 0; }
.footer__badge strong { font-size: 13px; color: #92400e; display: block; }
.footer__badge span { font-size: 12px; color: #a16207; }

.footer__desc { color: #6b7280; font-size: 13px; line-height: 1.8; margin-bottom: 20px; }

/* Social */
.footer__socials { display: flex; gap: 8px; }
.footer__social {
    width: 42px; height: 42px; background: #212b62; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    transition: background .2s, transform .15s;
    position: relative;
}
.footer__social svg { width: 22px; height: 22px; display: block; }
.footer__social--vk:hover { background: #0077ff; }
.footer__social--dzen:hover { background: #000; }
.footer__social--rutube:hover { background: #e51; }
.footer__social--max:hover { background: #168de2; }
.footer__social--marketplace:hover { background: #e44d26; }
.footer__social:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(33,43,98,.3); }

/* Tooltip */
.footer__social::after {
    content: attr(aria-label);
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #1f2937; color: #fff; font-size: 11px; white-space: nowrap;
    padding: 4px 8px; border-radius: 4px; pointer-events: none;
    opacity: 0; transition: opacity .2s;
}
.footer__social:hover::after { opacity: 1; }

/* Menu */
.footer__menu { list-style: none; padding: 0; margin: 0; }
.footer__menu li { margin-bottom: 5px; }
.footer__menu a {
    color: #6b7280; font-size: 14px; text-decoration: none; padding: 6px 0;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s, padding-left .2s;
}
.footer__menu a:hover { color: #212b62; padding-left: 4px; }
.footer__cnt { font-size: 11px; color: #9ca3af; }

/* Contact cards */
.footer__card {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 16px; margin-bottom: 12px;
    transition: box-shadow .2s, transform .15s;
}
.footer__card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); transform: translateY(-1px); }
.footer__card-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, #212b62, #2a3578); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer__card small { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.footer__phone { font-size: 17px; font-weight: 700; color: #212b62; text-decoration: none; display: block; }
.footer__phone:hover { color: #e8a530; }
.footer__phone--sub { font-size: 14px; font-weight: 600; margin-top: 2px; }
.footer__email { font-size: 14px; font-weight: 600; color: #212b62; text-decoration: none; display: block; }
.footer__email:hover { color: #e8a530; }

.footer__card--dark {
    background: linear-gradient(135deg, #212b62, #191f4a); color: rgba(255,255,255,.9);
    font-size: 14px; line-height: 1.6; flex-direction: column; gap: 8px;
    border-color: #212b62;
}
.footer__sched {
    display: block; font-size: 12px; background: rgba(255,255,255,.1);
    border-radius: 6px; padding: 6px 10px; margin-top: 4px; color: rgba(255,255,255,.7);
}

.footer__cta {
    display: inline-block; background: #27ae60; color: #fff; border: none;
    padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; margin-top: 8px; transition: background .2s; width: 100%;
    text-align: center;
}
.footer__cta:hover { background: #219a52; }

/* Bottom */
.footer__bottom { background: #212b62; padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__copy { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }
.footer__bottom-links { display: flex; gap: 20px; align-items: center; }
.footer__bottom-links a, .footer__inn { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; }
.footer__bottom-links a:hover { color: #fff; }

/* Scroll top */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    background: #212b62; color: #fff; border: none; border-radius: 50%;
    cursor: pointer; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 999;
}
.scroll-top.is-visible { display: flex; }

/* Responsive */
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) {
    .pre-footer__inner { flex-direction: column; text-align: center; }
    .pre-footer__desc { max-width: none; }
    .pre-footer__fields { flex-direction: column; }
    .pre-footer__input { min-width: auto; width: 100%; }
    .pre-footer__btn { width: 100%; justify-content: center; }
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__socials { justify-content: center; }
    .footer__badge { justify-content: center; text-align: left; }
    .footer__menu a { justify-content: center; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
}
