/* Городские SEO страницы - дополнительные стили */

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Карточки кейсов */
.case-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(42, 157, 143, 0.15) !important;
}

.case-header {
    background: #264653;
    position: relative;
}

.case-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9c46a;
}

.case-metrics {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.metric {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.metric:last-child {
    border-bottom: none;
}

/* Калькулятор */
.seo-calculator {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 3px solid #2a9d8f;
    position: relative;
    overflow: hidden;
}

.seo-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2a9d8f;
}

.calculator-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calculator-input:focus {
    border-color: #2a9d8f;
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
    transform: translateY(-2px);
}

.calculator-result {
    animation: fadeInUp 0.5s ease;
    border: 2px solid #2a9d8f;
}

/* Форма аудита */
.audit-form {
    background: white;
    border: 3px solid #e9c46a;
    position: relative;
    overflow: hidden;
}

.audit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9c46a;
}

.audit-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.audit-form .form-control:focus {
    border-color: #e9c46a;
    box-shadow: 0 0 0 0.2rem rgba(233, 196, 106, 0.25);
    transform: translateY(-2px);
}

/* Иконки */
.icon-xl {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
}

/* Хэдер с фоном */
.wrapper.bg-nature-dark {
    background: #264653;
    position: relative;
    overflow: hidden;
}

.wrapper.bg-nature-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

/* Счетчики */
.counter {
    position: relative;
}

.counter-value {
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Плавающие элементы */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 4s;
}

/* Hover эффекты */
.hover-shadow-lg {
    transition: all 0.3s ease;
}

.hover-shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.175) !important;
}

/* Кнопки с эффектами */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .case-card {
        margin-bottom: 2rem;
    }
    
    .seo-calculator {
        margin: 1rem;
        padding: 1rem !important;
    }
    
    .audit-form {
        margin: 1rem;
        padding: 1rem !important;
    }
    
    .icon-xl {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-1 {
        font-size: 3rem !important;
    }
}

/* Загрузка страницы */
.content-wrapper {
    animation: fadeInUp 0.8s ease;
}

/* Дополнительные utility классы */
.transition-all {
    transition: all 0.3s ease;
}

.bg-soft-nature-teal {
    background-color: rgba(42, 157, 143, 0.1);
}

.bg-soft-nature-yellow {
    background-color: rgba(233, 196, 106, 0.1);
}

.bg-soft-nature-orange {
    background-color: rgba(244, 162, 97, 0.1);
}

.text-nature-teal {
    color: #2a9d8f;
}

.text-nature-yellow {
    color: #e9c46a;
}

.text-nature-orange {
    color: #f4a261;
}

.text-nature-red {
    color: #e76f51;
}

.bg-nature-teal {
    background-color: #2a9d8f;
}

.bg-nature-yellow {
    background-color: #e9c46a;
}

.bg-nature-orange {
    background-color: #f4a261;
}

.btn-nature-yellow {
    background-color: #e9c46a;
    border-color: #e9c46a;
    color: #264653;
    font-weight: 600;
}

.btn-nature-yellow:hover {
    background-color: #f4a261;
    border-color: #f4a261;
    color: #264653;
}

.btn-nature-orange {
    background-color: #f4a261;
    border-color: #f4a261;
    color: white;
    font-weight: 600;
}

.btn-nature-orange:hover {
    background-color: #e76f51;
    border-color: #e76f51;
    color: white;
}
