/* 
 * Стили для городских страниц Яндекс.Директ
 * Использует природную палитру цветов
 */

/* Основные цвета природы */
:root {
    --nature-dark: #264653;
    --nature-teal: #2a9d8f;
    --nature-yellow: #e9c46a;
    --nature-orange: #f4a261;
    --nature-red: #e76f51;
    --nature-green: #45c4a0;
}

/* Фоновые цвета */
.bg-nature-dark { background-color: var(--nature-dark) !important; }
.bg-nature-teal { background-color: var(--nature-teal) !important; }
.bg-nature-yellow { background-color: var(--nature-yellow) !important; }
.bg-nature-orange { background-color: var(--nature-orange) !important; }
.bg-nature-red { background-color: var(--nature-red) !important; }
.bg-nature-green { background-color: var(--nature-green) !important; }

/* Мягкие фоновые цвета */
.bg-soft-nature-dark { background-color: rgba(38, 70, 83, 0.1) !important; }
.bg-soft-nature-teal { background-color: rgba(42, 157, 143, 0.1) !important; }
.bg-soft-nature-yellow { background-color: rgba(233, 196, 106, 0.1) !important; }
.bg-soft-nature-orange { background-color: rgba(244, 162, 97, 0.1) !important; }
.bg-soft-nature-red { background-color: rgba(231, 111, 81, 0.1) !important; }
.bg-soft-nature-green { background-color: rgba(69, 196, 160, 0.1) !important; }

/* Цвета текста */
.text-nature-dark { color: var(--nature-dark) !important; }
.text-nature-teal { color: var(--nature-teal) !important; }
.text-nature-yellow { color: var(--nature-yellow) !important; }
.text-nature-orange { color: var(--nature-orange) !important; }
.text-nature-red { color: var(--nature-red) !important; }
.text-nature-green { color: var(--nature-green) !important; }

/* Кнопки */
.btn-nature-dark {
    background-color: var(--nature-dark);
    border-color: var(--nature-dark);
    color: white;
}

.btn-nature-dark:hover {
    background-color: #1e4a54;
    border-color: #1e4a54;
    color: white;
}

.btn-nature-teal {
    background-color: var(--nature-teal);
    border-color: var(--nature-teal);
    color: white;
}

.btn-nature-teal:hover {
    background-color: #238276;
    border-color: #238276;
    color: white;
}

.btn-nature-yellow {
    background-color: var(--nature-yellow);
    border-color: var(--nature-yellow);
    color: var(--nature-dark);
}

.btn-nature-yellow:hover {
    background-color: #e6bb47;
    border-color: #e6bb47;
    color: var(--nature-dark);
}

.btn-nature-orange {
    background-color: var(--nature-orange);
    border-color: var(--nature-orange);
    color: white;
}

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

.btn-nature-red {
    background-color: var(--nature-red);
    border-color: var(--nature-red);
    color: white;
}

.btn-nature-red:hover {
    background-color: #e55b3c;
    border-color: #e55b3c;
    color: white;
}

/* Анимации */
@keyframes directFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes directPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes directSlide {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Карточки кейсов */
.direct-case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.direct-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(38, 70, 83, 0.15);
}

.direct-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--nature-teal), var(--nature-yellow), var(--nature-orange));
}

.direct-case-header {
    background: var(--nature-dark);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.direct-case-metrics {
    background: var(--nature-teal);
    color: white;
    padding: 1rem 1.5rem;
}

.direct-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.direct-metric-value {
    font-weight: 700;
    color: var(--nature-yellow);
    font-size: 1.1rem;
}

/* Калькулятор рекламы */
.direct-calculator {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(38, 70, 83, 0.1);
    border: 2px solid var(--nature-teal);
    position: relative;
    overflow: hidden;
}

.direct-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--nature-teal), var(--nature-yellow));
}

.direct-calculator-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.direct-calculator-input:focus {
    border-color: var(--nature-teal);
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.15);
    outline: none;
}

.direct-calculator-result {
    background: var(--nature-yellow);
    color: var(--nature-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.direct-calculator-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nature-dark);
    margin: 1rem 0;
}

/* Форматы рекламы */
.direct-format-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.direct-format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.02), rgba(233, 196, 106, 0.02));
    z-index: 1;
}

.direct-format-card > * {
    position: relative;
    z-index: 2;
}

.direct-format-card:hover {
    transform: translateY(-5px);
    border-color: var(--nature-teal);
    box-shadow: 0 20px 40px rgba(42, 157, 143, 0.1);
}

.direct-format-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.direct-format-card:hover .direct-format-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Особенности локальной рекламы */
.direct-feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
}

.direct-feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--nature-teal), var(--nature-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.direct-feature-card:hover::after {
    transform: scaleX(1);
}

.direct-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(38, 70, 83, 0.1);
    border-color: var(--nature-teal);
}

.direct-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.direct-feature-card:hover .direct-feature-icon {
    transform: scale(1.15);
    animation: directPulse 2s infinite;
}

/* Форма аудита */
.direct-audit-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(38, 70, 83, 0.15);
    border: 2px solid var(--nature-yellow);
    position: relative;
    overflow: hidden;
}

.direct-audit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--nature-yellow), var(--nature-orange));
}

.direct-audit-form .form-control,
.direct-audit-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.direct-audit-form .form-control:focus,
.direct-audit-form .form-select:focus {
    border-color: var(--nature-orange);
    box-shadow: 0 0 0 0.2rem rgba(244, 162, 97, 0.15);
}

/* Счетчики статистики */
.direct-counter {
    text-align: center;
    padding: 1rem;
}

.direct-counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--nature-orange);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.direct-counter-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Контактные блоки */
.direct-contact-block {
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.direct-contact-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.direct-contact-block > * {
    position: relative;
    z-index: 2;
}

.direct-contact-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .direct-calculator-price {
        font-size: 2rem;
    }
    
    .direct-counter-value {
        font-size: 2.5rem;
    }
    
    .direct-feature-card,
    .direct-format-card {
        padding: 1.5rem 1rem;
    }
    
    .direct-feature-icon,
    .direct-format-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Дополнительные утилиты */
.direct-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.direct-transition-all {
    transition: all 0.3s ease;
}

.direct-hover-scale:hover {
    transform: scale(1.05);
}

.direct-hover-rotate:hover {
    transform: rotate(5deg);
}

/* Загрузка анимации */
.direct-loading {
    opacity: 0;
    transform: translateY(20px);
    animation: directSlide 0.6s ease forwards;
}

.direct-loading:nth-child(1) { animation-delay: 0.1s; }
.direct-loading:nth-child(2) { animation-delay: 0.2s; }
.direct-loading:nth-child(3) { animation-delay: 0.3s; }
.direct-loading:nth-child(4) { animation-delay: 0.4s; }
