/* =============================================================================
   13. Site Footer
   ============================================================================= */
.site-footer {
    background: var(--color-text-dark);
    color: var(--color-white);
    position: relative;
    z-index: 200; /* Выше сайдбара статьи */
}

.footer-container {
    /* max-width / pad-x – единая сетка в _base.css; вертикаль здесь */
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Footer Logo & About */
.footer-col--about {
    max-width: 300px;
}

.footer-logo,
.ps-site-logo--footer {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 18px;
    line-height: 0;
    min-height: 40px;
}

.footer-logo:not(a),
.ps-site-logo--footer:not(a) {
    cursor: default;
    pointer-events: none;
}

/* Wordmark на тёмном фоне: белая «таблетка» логотипа читается как бренд-бейдж */
.ps-site-logo--footer .ps-site-logo__img {
    height: 40px;
    max-width: min(240px, 100%);
    aspect-ratio: 2824 / 512;
    object-fit: contain;
    object-position: left center;
}

.footer-logo__text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.footer-logo__text span {
    color: var(--color-primary-light);
}

.footer-about {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
}

@media (min-width: 922px) {
    .ps-site-logo--footer .ps-site-logo__img {
        height: 44px;
        max-width: 260px;
    }

    .footer-logo,
    .ps-site-logo--footer {
        margin-bottom: 20px;
        min-height: 44px;
    }
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-white);
    transition: all 0.2s ease;
}

.footer-social--tg {
    background: #0088cc;
}

.footer-social--tg:hover {
    background: #006da3;
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social--max {
    background: #5533ee;
}

.footer-social--max:hover {
    background: #4326cb;
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social--max img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.footer-social--email {
    background: var(--color-primary);
}

.footer-social--email:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Footer Columns */
.footer-col__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 20px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Footer Contacts */
.footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary-light);
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: var(--color-white);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
    /* max-width / pad-x – единая сетка в _base.css */
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer: база = 1 колонка, 922px = 2 колонки, 1024px = 4 колонки (десктоп) */
@media (min-width: 922px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding: 60px 20px 40px;
    }
    
    .footer-col--about {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .footer-col__title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .footer-links li {
        margin-bottom: 12px;
    }
    
    .footer-contacts li {
        justify-content: flex-start;
    }
    
    .footer-bottom__inner {
        padding: 24px 20px;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 48px;
        padding: 60px 20px 40px;
    }
    
    .footer-col--about {
        grid-column: span 1;
        max-width: 280px;
        text-align: left;
    }
    
    .footer-socials {
        justify-content: flex-start;
    }
    
    .footer-col__title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .footer-links li {
        margin-bottom: 12px;
    }
    
    .footer-contacts li {
        justify-content: flex-start;
    }
}

/* По умолчанию (мобилки, планшеты, десктоп): первый блок и контакты – по левому краю, как соседние колонки */
.footer-col--about {
    text-align: left;
}

.footer-socials {
    justify-content: flex-start;
}

.footer-col__title {
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contacts li {
    justify-content: flex-start;
    text-align: left;
}

.footer-bottom__inner {
    padding: 20px 16px;
}


/* =============================================================================
   Footer Rating Block & Badge
   ============================================================================= */
.footer-rating-block {
    margin: 0 0 20px;
}

.footer-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-rating-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.footer-rating-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 1px;
    line-height: 1;
}

.footer-rating-val {
    font-weight: 700;
    color: #ffffff;
}

.footer-rating-sep {
    color: rgba(255, 255, 255, 0.4);
}

.footer-rating-text {
    color: rgba(255, 255, 255, 0.75);
}

.footer-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-left: 6px;
    vertical-align: middle;
}

/* =============================================================================
   Устранение браузерной пунктирной / точечной обводки на ссылках в подвале
   ============================================================================= */
.site-footer a,
.site-footer a:focus,
.site-footer a:active,
.footer-container a,
.footer-container a:focus,
.footer-container a:active,
.footer-links a,
.footer-links a:focus,
.footer-links a:active,
.footer-contacts a,
.footer-contacts a:focus,
.footer-contacts a:active,
.footer-bottom a,
.footer-bottom a:focus,
.footer-bottom a:active {
    outline: none !important;
    outline-style: none !important;
    -webkit-tap-highlight-color: transparent;
}

