/* footer.css — stopka */
.social-rail {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 90;

    display: flex;
    flex-direction: column;
    gap: 9px;

    transform: translateY(-50%);
}

.social-rail-link {
    position: relative;

    display: grid !important;
    place-items: center;

    width: 44px;
    height: 44px;
    margin: 0 !important;

    color: #ffffff !important;
    background: var(--pink);

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;

    box-shadow:
        0 8px 24px rgba(42, 64, 95, 0.16),
        0 5px 16px rgba(229, 24, 115, 0.16);

    font-size: 17px !important;
    text-decoration: none;

    opacity: 0.94;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.social-rail-link::before {
    content: attr(data-social-label);

    position: absolute;
    top: 50%;
    right: calc(100% + 10px);

    padding: 7px 10px;

    color: #ffffff;
    background: var(--navy);

    border-radius: 8px;

    box-shadow: 0 8px 20px rgba(42, 64, 95, 0.16);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.social-rail-link:hover,
.social-rail-link:focus-visible {
    color: #ffffff !important;
    background: var(--navy);

    box-shadow: 0 10px 28px rgba(42, 64, 95, 0.23);

    opacity: 1;
    outline: none;
}

.social-rail-link:hover::before,
.social-rail-link:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%);
}

.footer{
    background:#fff;
    padding:72px 0 28px;

    border-top:1px solid var(--line);
    box-shadow:0 -12px 30px rgba(42,64,95,.03);
}
.footer-grid{display:grid;grid-template-columns:1.7fr repeat(3,1fr);gap:60px}
.footer-brand img{width:145px;margin-bottom:18px}
.footer-brand p{color:var(--muted)}
.footer strong{display:block;color:var(--navy);font-size:13px;margin-bottom:17px}
.footer a{display:block;color:var(--muted);font-size:13px;margin:10px 0}
.footer a:hover{color:var(--pink)}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 22px;
    color: #999fa7;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.footer-bottom .footer-author {
    display: inline-flex;
    margin: 0;
    color: #999fa7;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-bottom .footer-author:hover {
    color: var(--pink);
}

.footer-copyright {
    text-align: left;
}

@media (max-width: 640px) {
    .social-rail {
        right: 8px;
        gap: 7px;
    }

    .social-rail-link {
        width: 36px;
        height: 36px;

        font-size: 14px !important;
    }

    .social-rail-link::before {
        display: none;
    }

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

    .footer-copyright {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-rail-link,
    .social-rail-link::before {
        transition: none;
    }
}
