/* ============================================
   MC-FOOTER
   Подвал сайта — тёмный, премиальный
   ============================================ */

.mc-footer {
    background: var(--mc-green-dark);
    color: var(--mc-white);
    padding-top: clamp(40px, 6vw, 64px);
    padding-bottom: clamp(20px, 4vw, 32px);
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden; /* Страховка от выпирания */
}

/* Гарантируем отступы по краям */
.mc-footer__inner {
    width: 100%;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
}

/* ===== Верхний блок (Лого + Кнопки) ===== */
.mc-footer__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: clamp(32px, 5vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.mc-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--mc-white);
    text-decoration: none;
    transition: color 0.3s ease;
    width: fit-content;
}

.mc-footer__logo:hover {
    color: var(--mc-gold);
}

.mc-footer__logo-icon {
    width: 32px;
    height: 32px;
    flex: none;
}

.mc-footer__logo-text {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 500;
    white-space: nowrap;
}

.mc-footer__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-footer__actions .mc-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 24px;
}

/* Кнопка "Наши врачи" (белая с прозрачным фоном) */
.mc-footer__btn-outline {
    background: transparent;
    color: var(--mc-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.mc-footer__btn-outline:hover {
    border-color: var(--mc-gold);
    color: var(--mc-gold);
    background: transparent;
}

/* Кнопка "Записаться" (золотая) */
.mc-btn--promo {
    background: var(--mc-gold);
    color: var(--mc-green-dark);
}

.mc-btn--promo:hover {
    background: #d9b876;
    opacity: 1;
}

/* ===== Основной блок (Колонки) ===== */
.mc-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: clamp(32px, 5vw, 55px);
}

.mc-footer__heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mc-white);
}

.mc-footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mc-footer__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    word-break: break-word; /* Защита от длинных слов */
}

.mc-footer__list a:hover {
    color: var(--mc-gold);
}

/* ===== Блок контактов ===== */
.mc-footer__contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: clamp(32px, 5vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(20px, 3vw, 24px);
    width: 100%;
}

.mc-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mc-footer__phone {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 500;
    color: var(--mc-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-footer__phone:hover {
    color: var(--mc-gold);
}

.mc-footer__email {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    color: var(--mc-white);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all; 
}

.mc-footer__email:hover {
    color: var(--mc-gold);
}

.mc-footer__note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Соцсети */
.mc-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-items: flex-start;
}

.mc-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mc-white);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex: none; 
}

.mc-footer__social:hover {
    background: var(--mc-gold);
    color: var(--mc-green-dark);
    transform: translateY(-2px);
}

.mc-footer__social svg {
    width: 20px;
    height: 20px;
}

/* ===== Нижняя строка ===== */
.mc-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
}

.mc-footer__copy {
    margin: 0;
}

.mc-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    word-break: break-word;
}

.mc-footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mc-footer__legal a:hover {
    color: var(--mc-white);
    text-decoration-color: var(--mc-white);
}

/* ===== Общий фокус ===== */
.mc-footer a:focus-visible {
    outline: 2px solid var(--mc-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================================
   ПЛАНШЕТ: от 640px
   ============================================ */
@media (min-width: 640px) {
    .mc-footer__top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .mc-footer__actions {
        flex-direction: row;
    }

    .mc-footer__actions .mc-btn {
        width: auto;
    }

    /* Две колонки, чтобы убрать скученность */
    .mc-footer__main {
        grid-template-columns: 1fr 1fr; 
        gap: 32px 24px; 
    }

    /* Две колонки для контактов */
    .mc-footer__contacts {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        align-items: start;
    }
    
    .mc-footer__contact-info {
        flex: 0 1 auto; 
    }

    .mc-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
    }

    .mc-footer__legal {
        flex-direction: column; 
        gap: 8px;
        align-items: flex-end; 
        text-align: right;
    }
}

/* ============================================
   ДЕСКТОП: от 992px
   ============================================ */
@media (min-width: 992px) {
    .mc-footer__main {
        grid-template-columns: 6fr 6fr 5fr;
        gap: 48px;
    }

    .mc-footer__contacts {
        grid-template-columns: 6fr 6fr 5fr;
        gap: 48px;
        align-items: start;
    }

    .mc-footer__bottom {
        align-items: center;
    }

    .mc-footer__legal {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 24px;
    }
}