/* Стили для баннера согласия на cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007A91 0%, #005a6b 100%);
    color: white;
    padding: 1.5vw;
    box-shadow: 0 -0.3vw 1.5vw rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Gothampro', sans-serif;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 75vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5vw;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 0.5vw 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Gothampro', sans-serif;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e8f4f8;
    font-family: 'Gothampro', sans-serif;
}

.cookie-actions {
    display: flex;
    gap: 0.8vw;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8vw 1.5vw;
    border: none;
    border-radius: 0.4vw;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Gothampro', sans-serif;
    min-width: 7vw;
}

.cookie-accept {
    background-color: #ffffff;
    color: #007A91;
}

.cookie-accept:hover {
    background-color: #f0f8ff;
    transform: translateY(-0.1vw);
}

.cookie-decline {
    background-color: transparent;
    color: #ffffff;
    border: 0.15vw solid #ffffff;
}

.cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-0.1vw);
}

/* Уведомления о cookies */
.cookie-notification {
    position: fixed;
    top: 1.5vw;
    right: 1.5vw;
    padding: 1vw 1.5vw;
    border-radius: 0.6vw;
    color: white;
    font-family: 'Gothampro', sans-serif;
    font-size: 0.9rem;
    max-width: 25vw;
    box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transform: translateX(30vw);
    transition: transform 0.3s ease-in-out;
}

.cookie-notification.show {
    transform: translateX(0);
}

.cookie-notification.success {
    background-color: #28a745;
}

.cookie-notification.warning {
    background-color: #BC9408;
    color: #333;
}

.cookie-notification.info {
    background-color: #007A91;
}

/* Стили для индикатора сохранения в поле email */
.email-saved-indicator {
    position: absolute;
    right: 0.8vw;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Gothampro', sans-serif;
}

.email-saved-indicator.show {
    opacity: 1;
}

.input-minimal {
    position: relative;
}

.input-minimal.has-saved-email .email-saved-indicator {
    opacity: 1;
}

/* Стиль для поля email с сохраненными данными */
.input-minimal.has-saved-email input {
    border-color: #28a745;
}

.input-minimal.has-saved-email .input-line {
    background-color: #28a745;
}

/* Анимация появления баннера */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner {
    animation: slideUp 0.4s ease-out;
}

/* Адаптивность для планшетов */
@media (max-width: 1025px) {
    .cookie-consent-banner {
        padding: 2vw;
    }
    
    .cookie-content {
        max-width: 85vw;
        gap: 2vw;
    }
    
    .cookie-text h4 {
        font-size: 1.4rem;
        margin: 0 0 0.8vw 0;
    }
    
    .cookie-text p {
        font-size: 1.2rem;
    }
    
    .cookie-actions {
        gap: 1.2vw;
    }
    
    .cookie-btn {
        padding: 1.2vw 2vw;
        font-size: 1.2rem;
        min-width: 10vw;
        border-radius: 0.6vw;
    }
    
    .cookie-decline {
        border-width: 0.2vw;
    }
    
    .cookie-notification {
        top: 2vw;
        right: 2vw;
        padding: 1.5vw 2vw;
        font-size: 1.2rem;
        max-width: 35vw;
        border-radius: 1vw;
    }
    
    .email-saved-indicator {
        font-size: 1.2rem;
        right: 1.2vw;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 499px) {
    .cookie-consent-banner {
        padding: 3vw;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 3vw;
        max-width: 95vw;
    }
    
    .cookie-text {
        text-align: center;
    }
    
    .cookie-text h4 {
        font-size: 2.5rem;
        margin: 0 0 1.5vw 0;
    }
    
    .cookie-text p {
        font-size: 2.2rem;
    }
    
    .cookie-actions {
        justify-content: center;
        gap: 2vw;
        flex-direction: column;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 2.5vw 3vw;
        font-size: 2.2rem;
        min-width: auto;
        border-radius: 1.2vw;
    }
    
    .cookie-decline {
        border-width: 0.3vw;
    }
    
    .cookie-notification {
        top: 2vw;
        right: 2vw;
        left: 2vw;
        max-width: none;
        font-size: 2.2rem;
        padding: 2.5vw;
        border-radius: 1.5vw;
        transform: translateY(-20vw);
    }
    
    .cookie-notification.show {
        transform: translateY(0);
    }
    
    .email-saved-indicator {
        font-size: 2rem;
        right: 2vw;
    }
}