/* ====================== */
/* FOOTER STYLES          */
/* ====================== */
footer {
    background: #0f0f0f;
    color: #aaa;
    padding: 60px 20px 0;
    border-top: 1px solid #222;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: #dab672;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dab672;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-column ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #dab672;
}

.footer-column a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #dab672;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #dab672;
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: invert(0.8);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ====================== */
/* MESSENGER WIDGET       */
/* ====================== */
.messenger-widget {
    position: fixed;
    bottom: 30px;
    right: 20px;
    /* Adjusted for mobile safe area */
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    transition: opacity 0s ease;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.messenger-widget.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s ease;
}

.messenger-widget.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.messenger-widget:not(.active) .icons-container {
    /* Убедиться, что эти стили переопределяют дефолтные */
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.widget-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #424242;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    overflow: hidden;
    position: relative;
}

.widget-button:hover {
    transform: scale(1.1);
    background: #dab672;
    box-shadow: 0 6px 25px rgba(109, 91, 57, 0.5);
}

.icon-message,
.icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 35px;
    height: 35px;
}

.icon-message {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(360deg);
}

.messenger-widget.active .icon-message {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-360deg);
}

.messenger-widget.active .icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.icons-container {
    position: absolute;
    bottom: 70px;
    right: 2.5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.messenger-widget.active .icons-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.messenger-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
    opacity: 0;
}

.messenger-widget.active .messenger-icon {
    opacity: 1;
}

.messenger-icon:nth-child(1) {
    transition-delay: 0.3s;
}

.messenger-icon:nth-child(2) {
    transition-delay: 0.2s;
}

.messenger-icon:nth-child(3) {
    transition-delay: 0.1s;
}

.messenger-icon img {
    width: 55px;
    height: 55px;
    transition: transform 0.3s ease;
}

.messenger-icon:hover img {
    transform: scale(1.2);
}