: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: auto !important;
    min-height: 46px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03) !important;
    z-index: 999 !important;
    padding: 8px 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;
    pointer-events: none !important;
}

.medical-warning-text {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(14px, 1.2vw, 19px) !important;
    font-weight: 600 !important;
    color: rgba(70, 70, 70, 0.7) !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25 !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: 40px !important;
        padding: 6px 15px !important;
    }

    .medical-warning-text {
        font-size: 14px !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: 34px !important;
        padding: 5px 10px !important;
    }
    .medical-warning-text {
        font-size: 12px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.02em !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;
    }
}

/* ==========================================================================
   ПЛАВАЮЩАЯ КНОПКА ЗАПИСИ НА ПРИЁМ (МОБИЛЬНАЯ ВЕРСИЯ)
   ========================================================================== */
.mobile-sticky-appointment {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-sticky-appointment {
        display: block !important;
        position: fixed !important;
        bottom: calc(54px + env(safe-area-inset-bottom, 8px)) !important;
        right: 20px !important;
        left: auto !important;
        width: auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        z-index: 998 !important;
        pointer-events: none !important;
    }

    .mobile-sticky-appointment__btn {
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 1 !important;
        background: linear-gradient(135deg, #1fc602 0%, #17a002 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        box-shadow: 0 8px 24px rgba(31, 198, 2, 0.48), 0 3px 8px rgba(0, 0, 0, 0.18) !important;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    /* Пульсирующие волны вокруг кнопки */
    .mobile-sticky-appointment__btn::before,
    .mobile-sticky-appointment__btn::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 50% !important;
        background: rgba(31, 198, 2, 0.55) !important;
        z-index: -1 !important;
        pointer-events: none !important;
        animation: pulseWave 2.8s cubic-bezier(0.2, 0.6, 0.35, 1) infinite !important;
    }

    .mobile-sticky-appointment__btn::after {
        animation-delay: 1.4s !important;
    }

    @keyframes pulseWave {
        0% {
            transform: scale(0.95);
            opacity: 0.8;
        }
        70% {
            transform: scale(1.52);
            opacity: 0;
        }
        100% {
            transform: scale(1.52);
            opacity: 0;
        }
    }

    .mobile-sticky-appointment__btn:hover {
        background: linear-gradient(135deg, #22d603 0%, #19ad02 100%) !important;
        box-shadow: 0 10px 28px rgba(31, 198, 2, 0.58), 0 4px 10px rgba(0, 0, 0, 0.22) !important;
    }

    .mobile-sticky-appointment__btn:active {
        transform: scale(0.94) !important;
        box-shadow: 0 4px 12px rgba(31, 198, 2, 0.38) !important;
    }

    .mobile-sticky-appointment__icon {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        stroke: currentColor !important;
        stroke-width: 2.2 !important;
        display: block !important;
    }

    /* Скрывать кнопку при открытом полноэкранном мобильном меню или модальном окне */
    body.menu-open .mobile-sticky-appointment,
    body:has(#appointmentModal.active) .mobile-sticky-appointment,
    body:has(.service-modal.active) .mobile-sticky-appointment {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sticky-appointment__btn::before,
    .mobile-sticky-appointment__btn::after {
        animation: none !important;
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-sticky-appointment {
        bottom: calc(50px + env(safe-area-inset-bottom, 6px)) !important;
        right: 16px !important;
    }

    .mobile-sticky-appointment__btn {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        font-size: 11px !important;
    }

    .mobile-sticky-appointment__icon {
        width: 19px !important;
        height: 19px !important;
    }
}

