/* ========== ПАТТЕРН: НАПРАВЛЕНИЯ ========== */
.directions-section {
    padding: 80px 20px;
    background: #F8FAFC;
}

.directions-container {
    max-width: 1200px;
    margin: 0 auto;
}

.directions-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.directions-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 20px;
}

.directions-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1E4A7A, #6B9AC0);
    border-radius: 2px;
}

.directions-header p {
    font-size: 1.1rem;
    color: #64748B;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.direction-card {
    background: #FFFFFF;
    border: 1px solid #EAECF0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 74, 122, 0.08);
    border-color: #CDD9E9;
}

.direction-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
}

.direction-card p {
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.5;
}

.direction-card .wp-block-button__link {
    background: transparent;
    color: #1E4A7A;
    border: 2px solid #1E4A7A;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.direction-card .wp-block-button__link:hover {
    background: #1E4A7A;
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(30, 74, 122, 0.2);
}

.directions-footer {
    text-align: center;
}

.directions-footer .wp-block-button__link {
    background: #1E4A7A;
    color: #FFFFFF;
    border: 2px solid #1E4A7A;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(30, 74, 122, 0.1);
    transition: all 0.3s ease;
}

.directions-footer .wp-block-button__link:hover {
    background: #0B2A4A;
    border-color: #0B2A4A;
    box-shadow: 0 4px 8px rgba(30, 74, 122, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .directions-section {
        padding: 60px 16px;
    }
    
    .directions-header h2 {
        font-size: 1.5rem;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .direction-card {
        padding: 24px;
    }
    
    .directions-footer .wp-block-button__link {
        padding: 12px 32px;
    }
}