* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body, html {
    z-index: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: background-color 0.8s ease;
}
iframe {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}
#mht {
    top: 0;
    left: 0;
    z-index: 0;
}
#chat {
    bottom: 0;
    right: 0;
    z-index: 1;
} .chat-iframe {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 4px 8px rgba(44, 44, 44, 0.15);
    border-radius: 10px;
}
.joinchat__button {
    position: fixed;
    bottom: 28px;
    right: 41.5px;
    width: 61px;
    height: 61px;
    background-color: #caa553;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(63, 59, 45, 0.11);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}
.switch__button {
	right: 30px;
	bottom: 80px;
	width: 26px;
    height: 26px;
    transition: all 0.5s ease;
}
.switch__button__active {
	bottom: 10px;
}
.joinchat__button:hover {
    background-color: #d4b570;
}
.joinchat__button__ico svg {
    text-align: center;
    vertical-align: middle;
    color: #ffffff;
    fill: #ffffff;
}
.hidden *, .chat-container.hidden {
    
    transform: scale(0);
    pointer-events: none;
}
.chat-container {
    position: fixed;
    width: 800px;
    height: 600px;
    bottom: 88px;
    right: 48px;
    z-index: 100;
    transition: transform 0.5s ease;
}
.close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.close-chat::before, .close-chat::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 5px;
    width: 20px;
    height: 2px;
    background-color: #333;
}
.close-chat::before {
    transform: rotate(45deg);
}
.close-chat::after {
    transform: rotate(-45deg);
}



@media (max-width: 1245px) {
    .chat-container {
        width: 700px;
        height: 600px;
        bottom: 70px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .chat-container {
        width: 600px;
        height: 700px;
        bottom: 70px;
        right: 20px;
    }
}

@media (max-width: 820px) {
    .chat-container {
        width: 400px;
        height: 600px;
        bottom: 70px;
        right: 20px;
        width: 90%;
        height: 60%;
    }
    .joinchat__button {
        bottom: 10px;
        right: 10px;
    }   
}