/* ==========================================================================
   KLUKVA GLOBAL FOOTER & PRE-FOOTER CALLOUT — WARM EDITORIAL
   Consistent across every page of the website
   ========================================================================== */

/* 1. Pre-footer Callout Section (Dark Editorial) */
.site-prefooter,
.contacts-form-section {
    scroll-margin-top: 90px;
    background: #171918;
    color: #f4f0e8;
    /* Reduced by 30px top and bottom: clamp(40px, 6vw, 90px) */
    padding: clamp(40px, 6vw, 90px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.site-prefooter-container,
.contacts-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.site-prefooter-intro,
.contacts-form-intro {
    max-width: 100%;
}

.site-prefooter-kicker,
.contacts-kicker-light {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #ec93a6;
    display: inline-block;
    margin-bottom: 12px;
}

.site-prefooter-title,
.contacts-form-intro h2 {
    margin: 0 0 16px;
    font-family: 'Onest', Arial, sans-serif;
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: #f4f0e8;
}

.site-prefooter-title em,
.contacts-form-intro h2 em {
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #ddabae;
}

.site-prefooter-lead,
.contacts-form-intro p {
    max-width: 680px;
    margin: 0 0 24px;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.72;
    color: #cbd0c7;
}

/* Row layout for action buttons + legal links (left) and care status + requisites (right) */
.site-prefooter-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-top: 28px;
}

.site-prefooter-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-prefooter-care-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.site-prefooter-buttons,
.contacts-cta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 0 !important;
}

.site-prefooter-legal-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11.5px;
    color: #8a9085;
}

.site-prefooter-legal-link {
    color: #8a9085;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 144, 133, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-prefooter-legal-link:hover {
    color: #ff2a6d;
    border-color: #ff2a6d;
}

.site-prefooter-legal-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.site-prefooter-legal-note {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    color: #72776c;
    letter-spacing: 0.02em;
}

.site-prefooter-btn,
.contacts-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 12px 3px 3px 3px;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), 
                background 0.25s, 
                border-color 0.25s, 
                color 0.25s;
    box-sizing: border-box;
}

.site-prefooter-btn--phone,
.contacts-cta-btn--phone {
    background: #b52e49;
    border: 1px solid #b52e49;
    color: #fdf7ef;
}

.site-prefooter-btn--phone:hover,
.contacts-cta-btn--phone:hover {
    background: #cd3a57;
    border-color: #cd3a57;
    transform: translateY(-2px);
    color: #fff;
}

.site-prefooter-btn--chat,
.contacts-cta-btn--chat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f4f0e8;
}

.site-prefooter-btn--chat:hover,
.contacts-cta-btn--chat:hover {
    border-color: #ec93a6;
    color: #ec93a6;
    background: rgba(236, 147, 166, 0.08);
    transform: translateY(-2px);
}

.site-prefooter-btn:focus-visible,
.contacts-cta-btn:focus-visible {
    outline: 2px solid #ec93a6;
    outline-offset: 3px;
}

/* Care status text in the same row */
.site-prefooter-care,
.contacts-care {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8fce9b !important;
    margin-top: 0 !important;
    padding: 0;
}

.contacts-care::before {
    display: none !important;
}

.site-prefooter-dot {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fce9b;
    box-shadow: 0 0 10px rgba(143, 206, 155, 0.7);
    animation: prefooterPulse 1.8s ease-out infinite;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes prefooterPulse {
    0%   { transform: scale(0.9); opacity: 1; }
    50%  { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

.site-prefooter-hours,
.contacts-care .contacts-hours {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.03em;
    color: #98a094;
    padding-left: 14px;
    border-left: 1px solid rgba(152, 160, 148, 0.35);
    display: inline-block;
}

/* 2. Site Footer Bottom Bar */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 40px;
    background: #111312;
    box-sizing: border-box;
}

.site-footer .footer-container {
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-footer .footer-main-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

@media (min-width: 1240px) {
    .site-footer .footer-main-row {
        flex-wrap: nowrap;
    }
}

.site-footer .footer-meta {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11.5px;
    color: #8a8f83;
    white-space: nowrap;
}

.site-footer .footer-links {
    display: flex;
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-link {
    color: #c9c4b8;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Onest', sans-serif;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.site-footer .footer-link:hover {
    color: #ff2a6d;
}

.site-footer .footer-contacts {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px 20px;
    white-space: nowrap;
}

.site-footer .footer-contacts-direct {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.site-footer .footer-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c9c4b8;
    text-decoration: none;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.25s ease;
}

.site-footer .footer-contact-line:hover {
    color: #ff2a6d;
}

.site-footer .footer-contact-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #c9c4b8;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-footer .footer-contact-icon:hover {
    color: #fff;
    border-color: #b52e49;
    background: rgba(181, 46, 73, 0.2);
}

/* 3. Responsive Adaptive */
@media (max-width: 1150px) {
    .site-prefooter-row {
        gap: 18px 24px;
    }
}

@media (max-width: 768px) {
    .site-prefooter-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .site-footer {
        padding: 20px 20px 84px 20px;
    }
    
    .site-prefooter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-prefooter-action-col,
    .site-prefooter-care-col {
        width: 100%;
    }

    .site-prefooter-care,
    .contacts-care {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .site-prefooter-hours,
    .contacts-care .contacts-hours {
        border-left: none;
        padding-left: 0;
    }

    .site-footer .footer-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-footer .footer-meta {
        white-space: normal;
        line-height: 1.5;
    }

    .site-footer .footer-contacts {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
        gap: 12px 16px;
    }

    .site-footer .footer-links {
        margin-right: 0;
        flex-wrap: wrap;
        gap: 10px 16px;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .site-prefooter-buttons,
    .contacts-cta {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-prefooter-btn,
    .contacts-cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 18px;
        font-size: 14px;
    }
}

/* Universal phone non-breaking rule */
.nobr-phone {
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline-block;
}
