:root {
    --accent: #1fc602;
    --background: #fff;
    --card: #fff;
    --muted: #9a9a9a;
}

/* ===== ПОДВАЛ САЙТА ===== */
.footer {
    background: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    font-family: 'Lato', Arial, sans-serif !important;
    font-size: 14px !important;
    color: #000000 !important;
    padding: 50px 0 120px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

.footer .container,
.footer .footer-container {
    max-width: 1300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

.footer .footer-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: clamp(16px, 2vw, 30px) !important;
    flex-wrap: wrap !important;
}

.footer .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 280px !important;
    width: 280px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.footer .footer-logo img {
    height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

.footer .footer-contacts {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.footer .footer-contacts p {
    margin: 0 !important;
    color: #333333 !important;
    font-size: 14px !important;
}

.footer .footer-phone a {
    color: var(--accent, #1fc602) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.footer .footer-brand > p {
    font-size: 12px !important;
    color: #888888 !important;
    margin: 5px 0 0 0 !important;
    line-height: 1.4 !important;
}

.footer .footer-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    justify-content: space-between !important;
    flex: 1 !important;
}

.footer .footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 130px !important;
}

.footer .footer-column h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    color: #111111 !important;
    white-space: nowrap !important;
}

.footer .footer-column a {
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 14px !important;
    transition: opacity 0.2s, color 0.2s !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.footer .footer-column a:hover {
    opacity: 0.8 !important;
    color: var(--accent, #1fc602) !important;
}

.footer .footer-widgets {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
    max-width: 240px !important;
    width: 240px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.footer .widget {
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 240px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.footer .widget img {
    display: block !important;
    margin: 0 auto 10px !important;
    max-height: 50px !important;
    width: auto !important;
}

.footer .widget p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #444444 !important;
}

.footer .widget a {
    color: var(--accent, #1fc602) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.footer .socials {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 0 !important;
}

.footer .socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.footer .socials a:hover {
    background: #f5f5f5 !important;
    border-color: var(--accent, #1fc602) !important;
    transform: translateY(-2px) !important;
}

.footer .socials img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
}

.footer .footer-bottom {
    border-top: 1px solid #eeeeee !important;
    margin-top: 40px !important;
    padding-top: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer .footer-bottom-container {
    max-width: 1300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
}

.footer .footer-policy {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
    width: 100% !important;
}

.footer .footer-copy,
.footer .footer-left--copy {
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    width: 100% !important;
}

.footer .footer-left--copy {
    color: #888888 !important;
    max-width: 850px !important;
    margin: 2px auto 0 !important;
}

.footer .footer-map a,
.footer .footer-policy a {
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s !important;
}

.footer .footer-map a:hover,
.footer .footer-policy a:hover {
    color: var(--accent, #1fc602) !important;
    text-decoration: underline !important;
}

.footer .footer-access {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    margin-top: 16px !important;
    color: #333333 !important;
    text-decoration: none !important;
    text-align: center !important;
}

.footer .footer-access img {
    width: 18px !important;
    height: 18px !important;
}

.footer .footer-access a {
    color: #333333 !important;
    text-decoration: none !important;
}

.footer .footer-access:hover a {
    color: var(--accent, #1fc602) !important;
}

/* Баннер противопоказаний */
.medical-warning-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 10vh !important;
    min-height: 80px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    z-index: 999 !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

.medical-warning-text {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(28px, 2.3vw, 44px) !important;
    font-weight: 800 !important;
    color: #666666 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

/* ==========================================================================
   АДАПТИВ ПОДВАЛА: ПЛАНШЕТ (Tablet: 768px – 1200px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1200px) {
    .footer {
        padding: 40px 0 160px !important;
    }

    .footer .container,
    .footer .footer-container {
        padding: 0 24px !important;
        max-width: 100% !important;
    }

    /* Верхняя часть: идеальная сетка (Бренд слева, Виджеты справа, Ссылки под ними во всю ширину) */
    .footer .footer-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "brand widgets"
            "links links" !important;
        gap: 32px 24px !important;
        align-items: start !important;
    }

    /* Бренд и контакты: слева сверху */
    .footer .footer-brand {
        grid-area: brand !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .footer .footer-logo img {
        height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .footer .footer-contacts {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .footer .footer-contacts p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        color: #333333 !important;
        margin: 0 !important;
    }

    .footer .footer-phone a {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--accent, #1fc602) !important;
        text-decoration: none !important;
    }

    .footer .footer-brand > p {
        font-size: 12px !important;
        color: #888888 !important;
        margin: 4px 0 0 0 !important;
    }

    /* Виджет и соцсети: справа сверху */
    .footer .footer-widgets {
        grid-area: widgets !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 16px !important;
    }

    .footer .widget {
        max-width: 320px !important;
        width: 100% !important;
        padding: 14px 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        text-align: left !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .footer .widget img {
        margin: 0 !important;
        max-height: 44px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .footer .widget p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #444444 !important;
        margin: 0 !important;
    }

    .footer .widget a {
        color: var(--accent, #1fc602) !important;
        font-weight: 600 !important;
        text-decoration: underline !important;
    }

    .footer .socials {
        display: flex !important;
        gap: 10px !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
    }

    .footer .socials a {
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .footer .socials img {
        width: 22px !important;
        height: 22px !important;
    }

    /* Навигационные ссылки: во 2-м ряду на всю ширину, 3 аккуратные колонки */
    .footer .footer-links {
        grid-area: links !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
        width: 100% !important;
        padding-top: 28px !important;
        border-top: 1px solid #eeeeee !important;
    }

    .footer .footer-column {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .footer .footer-column h4 {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
        white-space: normal !important;
        color: #111111 !important;
    }

    .footer .footer-column a {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-break: break-word !important;
        color: #333333 !important;
        text-decoration: none !important;
    }

    .footer .footer-column a:hover {
        color: var(--accent, #1fc602) !important;
    }

    /* Нижняя часть подвала на планшете */
    .footer .footer-bottom {
        width: 100% !important;
        margin-top: 32px !important;
        padding-top: 20px !important;
        border-top: 1px solid #eeeeee !important;
        box-sizing: border-box !important;
    }

    .footer .footer-bottom-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 0 24px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer .footer-copy {
        font-size: 13px !important;
        color: #666666 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer .footer-policy {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .footer .footer-map {
        display: inline-block !important;
        text-align: center !important;
    }

    .footer .footer-policy a,
    .footer .footer-map a {
        color: #666666 !important;
        text-decoration: none !important;
        font-size: 13px !important;
    }

    .footer .footer-policy a:hover,
    .footer .footer-map a:hover {
        color: var(--accent, #1fc602) !important;
    }

    .footer .footer-left--copy {
        grid-column: 1 / -1 !important;
        font-size: 12px !important;
        color: #888888 !important;
        line-height: 1.5 !important;
        margin-top: 4px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 850px !important;
    }

    .footer .footer-access {
        margin-top: 16px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .medical-warning-banner {
        height: auto !important;
        min-height: 55px !important;
        padding: 10px 15px !important;
    }

    .medical-warning-text {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
}

/* ==========================================================================
   АДАПТИВ ПОДВАЛА: МОБИЛЬНЫЕ (Mobile: <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 100px !important;
    }
    .footer .footer-top {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }
    .footer .footer-brand {
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .footer .footer-logo {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .footer .footer-logo img {
        margin: 0 auto !important;
    }
    .footer .footer-contacts {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .footer .footer-contacts p,
    .footer .footer-phone,
    .footer .footer-phone a,
    .footer .footer-time,
    .footer .footer-brand > p {
        text-align: center !important;
    }
    .footer .footer-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    .footer .footer-column h4,
    .footer .footer-column a {
        white-space: normal !important;
    }
    .footer .footer-widgets {
        max-width: 100% !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer .widget {
        max-width: 280px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    .footer .socials {
        justify-content: center !important;
        width: 100% !important;
    }
    .footer .footer-bottom {
        width: 100% !important;
        margin-top: 28px !important;
        padding-top: 18px !important;
        border-top: 1px solid #eeeeee !important;
        box-sizing: border-box !important;
    }
    .footer .footer-bottom-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .footer .footer-copy,
    .footer .footer-left--copy {
        text-align: center !important;
        width: 100% !important;
    }
    .footer .footer-policy {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .footer .footer-access {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: auto !important;
        margin: 18px auto 0 !important;
        text-align: center !important;
    }
    .medical-warning-banner {
        height: auto !important;
        min-height: 50px !important;
        padding: 10px 15px !important;
    }
    .medical-warning-text {
        font-size: 20px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.03em !important;
    }
}

@media (max-width: 540px) {
    .footer .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    .footer .footer-column {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
}
