/* ============================================================
 * footer.css — подвал сайта (1:1 по образцу донора center-crm.ru)
 * Структура: .site-footer > __topbar (серое меню) + __main (чёрный блок)
 * ============================================================ */

.site-footer {
    background: #000;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
}

/* --- Верхняя серо-чёрная полоса с горизонтальным меню --- */
.site-footer__topbar {
    background: #2b2b2b;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer__topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: stretch;
}
.site-footer__topbar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}
.site-footer__topbar-list > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.site-footer__topbar-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 18px 16px;
    background-color: transparent;
    transition: color .2s ease, background-color .2s ease;
    white-space: nowrap;
}
.site-footer__topbar-list a:hover,
.site-footer__topbar-list a:focus-visible {
    color: #000;
    background-color: #fed500;
}

/* --- Основной чёрный блок --- */
.site-footer__main {
    background: #000;
    padding: 44px 0 32px;
}
.site-footer__grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.7fr 1fr;
    gap: 40px 48px;
    align-items: start;
}

/* --- Заголовки колонок --- */
.site-footer__heading {
  font-family: "Capture", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--donor-yellow, #fed500);
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  padding: 0;
}
.site-footer__heading--sm {
    font-size: 14px;
    margin-bottom: 16px;
}

/* --- Навигационные списки --- */
.site-footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.site-footer__nav-list a {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
    padding-left: 0;
    transition: color .25s ease, padding-left .25s ease;
}
.site-footer__nav-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: #fed500;
    transform: translateY(-50%);
    transition: width .3s cubic-bezier(.22,.61,.36,1);
}
.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible {
    color: #fed500;
    padding-left: 18px;
}
.site-footer__nav-list a:hover::before,
.site-footer__nav-list a:focus-visible::before {
    width: 12px;
}

/* --- Колонка контактов --- */
.site-footer__schedule,
.site-footer__address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}
.site-footer__schedule svg,
.site-footer__address svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #fed500;
    margin-top: 2px;
}
.site-footer__closed {
    color: #ef4444;
    font-size: 13px;
}
.site-footer__howtofind {
    display: inline-block;
    margin-top: 4px;
    color: #fed500;
    text-decoration: underline;
    font-size: 14px;
}
.site-footer__howtofind:hover {
    color: #fff;
}

/* --- Телефоны --- */
.site-footer__phones {
    margin-bottom: 22px;
}
.site-footer__phone-group {
    margin-bottom: 16px;
}
.site-footer__phone-label {
    font-size: 13px;
    color: #fed500;
    margin-bottom: 6px;
    font-weight: 600;
}
.site-footer__phone-values {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.site-footer__phone-values a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color .2s ease;
    white-space: nowrap;
}
.site-footer__phone-values a:hover {
    color: #fed500;
}
.site-footer__phone-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
}
.site-footer__phone-row .site-footer__phone-values a {
    font-size: 20px;
}

/* --- Правая колонка: Акции + соцсети + рейтинг --- */
.site-footer__promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.site-footer__promo-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: block;
}
.site-footer__promo-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.site-footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 18px 0 22px;
}
.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.site-footer__social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.site-footer__social-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
}
.site-footer__social-list a svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    display: block;
}
.site-footer__dev {
    color: #6b7280;
    font-size: 13px;
}

/* --- Виджет рейтинга Яндекса --- */
.site-footer__rating {
    margin: 8px 0 20px;
}
.site-footer__rating iframe {
    display: block;
    border: 0;
    max-width: 100%;
}

/* --- Нижняя строка: лого + копирайт --- */
.site-footer__bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 32px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}
.site-footer__logo img {
    max-width: 340px;
    height: auto;
    display: block;
}
.site-footer__copy {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-footer__copy a {
    color: #d1d5db;
    text-decoration: none;
}
.site-footer__copy a:hover {
    color: #fed500;
}
.site-footer__disclaimer {
    color: #6b7280;
    font-size: 13px;
    margin-top: 12px;
}

/* --- Адаптив --- */
@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .site-footer__bottom {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .site-footer__logo img {
        margin: 0 auto;
    }
}
@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .site-footer__topbar-list {
        gap: 0;
        justify-content: flex-start;
    }
    .site-footer__topbar-list a {
        font-size: 13px;
        padding: 14px 10px;
    }
    .site-footer__phone-values a {
        font-size: 18px;
    }
    .site-footer__phone-row {
        grid-template-columns: 1fr;
    }
    .site-footer__main {
        padding: 32px 0 24px;
    }
    .site-footer__bottom {
        margin-top: 24px;
        padding-top: 24px;
    }
}

/* ============================================================
 * Мобильная версия подвала: скрываем колонку «Информация».
 * Колонка имеет класс + порядковый номер (первая в .site-footer__grid).
 * ============================================================ */
@media (max-width: 640px) {
    .site-footer__grid > .site-footer__col:nth-child(1) {
        display: none !important;
    }
}

/* contrast_fix: улучшаем контраст текста в подвале (WCAG AA) */
.site-footer__dev{
    color:#a8a8a8;
}
.site-footer__disclaimer{
    color:#b0b0b0;
}
.site-footer__main a{
    color:#d8d8d8;
}
.site-footer__main a:hover,
.site-footer__main a:focus-visible{
    color:#fed500;
}

/* === A11Y_FOOTER_UNDERLINE_V2 === */
/* Подчёркивание оставляем только там, где ссылка — часть текста (WCAG).
   В навигационных списках убираем — там ссылки и так понятны по расположению. */

/* Подчёркиваем: ссылки внутри текста копирайта */
.site-footer__copy a,
.site-footer__disclaimer a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.site-footer__copy a:hover,
.site-footer__copy a:focus-visible,
.site-footer__disclaimer a:hover,
.site-footer__disclaimer a:focus-visible {
    color: #fed500;
    text-decoration-color: #fed500;
}

/* Убираем подчёркивание: навигация в колонках и верхней полосе */
.site-footer__nav-list a,
.site-footer__topbar-list a,
.site-footer__howtofind,
.site-footer__social {
    text-decoration: none;
}
.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible,
.site-footer__topbar-list a:hover,
.site-footer__topbar-list a:focus-visible {
    color: #fed500;
    text-decoration: none;
}
.site-footer__howtofind {
    color: #fed500;
}
.site-footer__howtofind:hover,
.site-footer__howtofind:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* === /A11Y_FOOTER_UNDERLINE_V2 === */

/* ============================================================
 * Topbar в подвале: при наведении текст чёрный (иначе сливается с жёлтым фоном).
 * ============================================================ */
.site-footer__topbar-list a:hover,
.site-footer__topbar-list a:focus-visible {
    color: #0c0c0c !important;
    background-color: var(--donor-yellow, #fed500) !important;
}
