/* Анимации переходов между страницами */

/* Контейнер для анимации */
.page-transition-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-container.active {
    opacity: 1;
    pointer-events: all;
}

/* Анимация загрузки страницы */
.page-load-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #005542 0%, #007a5a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-load-animation.fade-out {
    opacity: 0;
}

.page-load-animation .loader {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимация появления контента */
.content-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для ссылок */
.nav-link, .header-nav a {
    transition: all 0.3s ease;
}

.nav-link:hover, .header-nav a:hover {
    transform: translateY(-2px);
}

/* Анимация для кнопок */
.btn-default, .save-btn, button {
    transition: all 0.3s ease;
}

.btn-default:hover, .save-btn:hover, button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Анимация для карточек */
.tariff-item, .offer-item, .gallery-item {
    transition: all 0.3s ease;
}

.tariff-item:hover, .offer-item:hover, .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Анимация для модальных окон */
.modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимация для форм */
.form-section {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимация для изображений */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Анимация для текста */
h1, h2, h3, p {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимация для списков */
ul li {
    animation: slideInRight 0.3s ease-out;
    animation-fill-mode: both;
}

ul li:nth-child(1) { animation-delay: 0.05s; }
ul li:nth-child(2) { animation-delay: 0.1s; }
ul li:nth-child(3) { animation-delay: 0.15s; }
ul li:nth-child(4) { animation-delay: 0.2s; }
ul li:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 