* {
    font-family: 'Inter', sans-serif;
}
.heading-font {
    font-family: 'Playfair Display', serif;
}

/* Плавная навигация без дерганий */
.nav-link {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px;
}

/* Активное состояние - только цвет текста и иконки */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Подчеркивание для активного пункта */
.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    height: 3px;
    width: 0;
    background-color: #2563eb;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link.active .nav-indicator {
    width: 80%;
    opacity: 1;
}

/* Ховер эффект */
.nav-link:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

.nav-link:hover .nav-indicator {
    width: 40%;
    opacity: 0.7;
}

/* Для мобильной навигации */
.mobile-nav-link {
    position: relative;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.mobile-nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 600;
    border-left: 4px solid #2563eb;
}

/* Параллакс эффект */
.parallax-container {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9)), url('/static/images/20220915-20220914.jpg');
    background-size: cover;
    background-position: 50%;/* center;*/
    background-attachment: fixed;
    z-index: -1;
}
.parallax-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* Плавающая навигация при скролле */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.btn-primary {
    background-color: #2563eb;
    color: white;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}
.accent-text {
    color: #2563eb;
}
.section-bg {
    background-color: #f8fafc;
}
.product-card {
    transition: all 0.4s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Индикатор прогресса скролла */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Анимация для заголовка на главной */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-title {
    animation: fadeInUp 1s ease-out 0.3s both;
}
.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.6s both;
}
.hero-button {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Плавные переходы для навигации */
.nav-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Фиксированная высота для навигации, чтобы не прыгала */
nav {
    min-height: 64px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
    height: 64px;
    display: flex;
    align-items: center;
}

/* Стили для уведомлений */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
}

.flash-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.flash-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.flash-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.flash-message .close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}

.flash-message .close-btn:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}