.site-footer {
    background-color: rgb(232, 239, 247);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px 10px;
    margin-top: 25px;
    border-radius: 20px 20px 0 0;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 -4px 8px rgba(163, 177, 198, 0.2);
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1600px;
    margin: 25px auto 0;
    width: 98%;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.footer-column {
    background: transparent !important; 
    border-radius: 14px;
    padding: 12px 15px 10px;
    box-shadow: none !important; 
    backdrop-filter: none !important; 
    border: none !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible !important;
}

.footer-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(60, 60, 60, 0.9);
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    width: 100%;
    text-align: center;
}

.contacts-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.contact-grid-item {
    background: transparent !important;
    border-radius: 10px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    height: 40px;
    box-shadow: none !important; 
    transition: all 0.15s ease;
    overflow: visible;
}

.contact-grid-item:hover {
    transform: translateY(-1px);
    box-shadow: none !important; 
}

.contact-grid-item i {
    color: #007bff;
    font-size: 0.75rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    margin-top: -2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: -2px;
}

.contact-label {
    font-size: 0.55rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    opacity: 0.8;
    line-height: 0.9;
    margin-bottom: 1px;
    margin-top: -1px;
}

.contact-value {
    color: #007bff;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1;
    word-break: break-word;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-top: -1px;
}

.contact-value:hover {
    color: #0056b3;
}

.contact-grid-item.highlighted {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
}

.contact-grid-item.highlighted i {
    color: #0066cc;
    font-size: 0.75rem;
}

.address-value {
    color: #2c3e50;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    letter-spacing: -0.05px;
    margin-top: 3px; 
}

.ip-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.ip-toggle {
    display: none;
}

.ip-btn-compact.blue-theme {
    width: 100%;
    height: 100%;
    min-height: 28px;
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: white;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 
        0 1px 3px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    position: relative;
    z-index: 10;
}

.ip-btn-compact.blue-theme i {
    color: white;
    font-size: 1.0rem;
    margin: 0;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    margin-top: -8px;
}

.ip-btn-compact.blue-theme span {
    font-size: 1.0rem !important;
    font-weight: 600 !important; 
    letter-spacing: 0.2px !important; 
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    margin-top: -12px !important;
    position: relative;
    top: 2px;
}

.ip-btn-compact.blue-theme:hover {
    background: linear-gradient(135deg, #0069d9, #0099cc);
    transform: translateY(-2px);
    box-shadow: 
        0 2px 4px rgba(0, 123, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ip-btn-compact.blue-theme:hover i {
    transform: scale(1.1);
}

.ip-btn-compact.blue-theme:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ip-btn-compact.blue-theme:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.ip-dropdown-up {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    background: transparent;
    min-width: 280px;
    max-width: 90%;
}

.ip-toggle:checked ~ .ip-dropdown-up {
    display: block;
    animation: dropdownUpFadeIn 0.2s ease-out;
}

@keyframes dropdownUpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-up-content {
    background: #eef2f7;
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        4px 4px 8px rgba(163, 177, 198, 0.3),
        0 -4px 8px rgba(163, 177, 198, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10000;
    min-width: 280px;
    box-sizing: border-box;
}

.dropdown-up-content .info-line {
    display: flex;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.15);
    align-items: center;
    font-size: 0.85rem;
}

.dropdown-up-content .info-line:last-child {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.dropdown-up-content .info-label {
    flex: 0 0 100px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
}

.dropdown-up-content .info-line span:last-child {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.85rem;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
}

.close-dropdown-btn {
    width: calc(100% - 4px);
    background: linear-gradient(135deg, #007bff, #00bfff);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 
        0 1px 3px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 8px auto 0 auto;
    text-align: center;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
}

.close-dropdown-btn:hover {
    background: linear-gradient(135deg, #0069d9, #0099cc);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(0, 123, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.close-dropdown-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.close-dropdown-btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.ip-item {
    padding: 6px;
    background: transparent !important;
    box-shadow: none !important;
    height: 40px;
    position: relative;
    overflow: visible !important;
    z-index: 1000;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.footer-bottom p {
    margin: 0;
    color: #4a5568;
    font-size: 0.75rem;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.footer-bottom a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .site-footer {
        width: 98%;
    }
    
    .contacts-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .contact-grid-item {
        min-height: 40px;
        height: 40px;
        padding: 5px 6px;
    }
    
    .ip-item {
        height: 40px;
    }
    
    .ip-dropdown-up {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        min-width: auto;
        width: 100%;
        margin: 0 auto !important;
    }
    
    .ip-toggle:checked ~ .ip-dropdown-up {
        display: block;
        animation: dropdownUpFadeInMobile 0.2s ease-out;
    }
    
    @keyframes dropdownUpFadeInMobile {
        from {
            opacity: 0;
            transform: none;
            bottom: calc(100% + 15px);
        }
        to {
            opacity: 1;
            transform: none;
            bottom: calc(100% + 10px);
        }
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 12px 15px 8px;
        margin: 20px auto 0;
        width: 95%;
    }
    
    .footer-column {
        padding: 10px 12px 8px;
        border-radius: 12px;
        overflow: visible !important;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .contacts-compact-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .contact-grid-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 5px 8px;
        min-height: 35px;
        height: 35px;
        gap: 10px;
        overflow: visible;
    }
    
    .contact-grid-item i {
        margin-bottom: 0;
        margin-top: 0;
        flex-shrink: 0;
        font-size: 0.7rem;
        width: 14px;
        height: 14px;
    }
    
    .contact-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        margin-top: 0;
    }
    
    .contact-label {
        font-size: 0.5rem;
        min-width: 50px;
        text-align: left;
        line-height: 0.8;
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .contact-value,
    .address-value {
        font-size: 0.9rem !important;
        text-align: right;
        flex: 1;
        line-height: 0.9;
        margin-top: 0;
    }
    
    .address-value {
        margin-top: -1px;
    }
    
    .ip-item {
        padding: 5px 8px;
        height: 35px;
        overflow: visible;
    }
    
    .ip-btn-compact.blue-theme {
        min-height: 25px;
        flex-direction: row;
        padding: 0 10px;
        gap: 6px;
        font-size: 0.6rem;
        border-radius: 8px;
        justify-content: center;
        align-items: center;
    }
    
    .ip-btn-compact.blue-theme i {
        font-size: 0.7rem;
        height: 14px;
        margin-top: 0 !important;
    }
    
    .ip-btn-compact.blue-theme span {
        font-size: 0.6rem;
        height: 12px;
        margin-top: 0 !important;
        top: 0 !important;
    }
    
    .ip-dropdown-up {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        bottom: calc(100% + 8px);
        margin: 0 auto !important;
    }
    
    .ip-toggle:checked ~ .ip-dropdown-up {
        display: block;
        animation: dropdownUpFadeInMobile 0.2s ease-out;
    }
    
    .dropdown-up-content {
        padding: 10px;
    }
    
    .dropdown-up-content .info-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.8rem;
    }
    
    .dropdown-up-content .info-label {
        flex: none;
        margin-bottom: 1px;
        font-size: 0.8rem;
    }
    
    .close-dropdown-btn {
        width: calc(100% - 4px);
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .footer-bottom p,
    .footer-bottom a {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 10px 12px 6px;
        margin: 15px auto 0;
    }
    
    .footer-column {
        padding: 8px 10px 6px;
        border-radius: 10px;
    }
    
    .footer-title {
        font-size: 0.85rem;
    }
    
    .contact-grid-item {
        padding: 4px 6px;
        gap: 8px;
        min-height: 32px;
        height: 32px;
    }
    
    .contact-grid-item i {
        font-size: 0.65rem;
        width: 12px;
        height: 12px;
    }
    
    .contact-label {
        font-size: 0.45rem;
        min-width: 45px;
    }
    
    .contact-value,
    .address-value {
        font-size: 0.9rem !important;
    }
    
    .address-value {
        margin-top: -1px;
    }
    
    .ip-item {
        height: 32px;
    }
    
    .ip-btn-compact.blue-theme {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.55rem;
        gap: 4px;
        justify-content: center;
        align-items: center;
    }
    
    .ip-btn-compact.blue-theme i {
        font-size: 0.65rem;
        height: 12px;
        margin-top: 0 !important;
    }
    
    .ip-btn-compact.blue-theme span {
        font-size: 0.55rem;
        height: 10px;
        margin-top: 0 !important;
        top: 0 !important;
    }
    
    .ip-dropdown-up {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        bottom: calc(100% + 8px);
        margin: 0 auto !important;
        max-width: 95%;
    }
    
    .footer-bottom p,
    .footer-bottom a {
        font-size: 0.65rem;
    }
}



