/* Шриафт текста - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Основные стили */
* {
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}


html {
    scroll-behavior: smooth;
}

body {
    min-width: 1024px;
}

img {
    max-width: 100%;
}

a. button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.global-container {
    background-color: rgba(233, 233, 233, 1);
    min-height: 100vh;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}

.global-container .side-global-block {
    width: 320px;
    transition: width 0.55s cubic-bezier(.4,0,.2,1);
}

.global-container .side-global-block.collapsed {
    width: 70px;
}

.global-container .main-global-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}



/* Анимированая кнопка */
.animated-button {
    position: relative;
    background-color: rgba(255, 198, 16, 1);
    color: rgba(2, 24, 20, 1);
    border: 3px solid transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    overflow: visible;
    margin-top: -15px;
    text-decoration: none;
    display: inline-block;
}

.animated-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 4px);
    height: calc(100% + 8px);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.animated-button:hover {
    border-color: rgba(254, 231, 188, 1);
}

.animated-button:hover::before {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
}

/* Окно уведомлений */
#toast-container {
    position: fixed;
    top: 2%;
    right: 1%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    width: 350px;
    background: rgba(253, 236, 234, 0.9);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
}

.toast-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: #842029;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    color: #842029;
}

.toast-close {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #842029;
    padding-left: 10px;
    transition: color 0.2s ease;
}

.toast-progress {
    height: 4px;
    background: #e74c3c;
    width: 100%;
    position: relative;
    right: 0;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.toast-success {
    background: rgba(236, 253, 245, 0.9);
}

.toast.toast-success .toast-icon {
    background: #22c55e;
}

.toast.toast-success .toast-title {
    color: #065f46;
}

.toast.toast-success .toast-message {
    color: #065f46;
}

.toast.toast-success .toast-close {
    color: #065f46;
}

.toast.toast-success .toast-close:hover {
    color: #064e3b;
}

.toast.toast-success .toast-progress {
    background: #22c55e;
}
